1 2019-12-30 Olivier Hainque <hainque@adacore.com>
3 * config/vxworks/stdint.h: New file. Include _yvals.h
5 * config/t-vxworks: Arrange to install the stdint.h wrapper.
6 * config.gcc (*-*-vxworks*): Add stdint-gcc.h to $extra_headers
7 so it gets copied. Set use_gcc_stdint to request _not_ crafting
8 stdint.h through the common Makefile rules.
10 2019-12-30 Olivier Hainque <hainque@adacore.com>
12 * config/vxworks/_yvals.h: New file.
13 * config/vxworks/_yvals-wrapper.h: New file.
14 * gcc/config/vxworks/math.h: Use it to wrap the VxWorks
16 * gcc/config/vxworks/complex.h: Likewise.
17 * gcc/config/vxworks/setjmp.h: Likewise.
18 * gcc/config/vxworks/inttypes.h: Likewise.
19 * config.gcc (*-*-vxworks*): Add system header wrappers
21 (powerpc-*-vxworks*): Reuse the common extra_headers.
23 2019-12-30 Olivier Hainque <hainque@adacore.com>
25 * config/vxworks/_vxworks-versions.h: New file.
26 * config.gcc (*-*-vxworks*): Add it to extra_headers.
28 2019-12-30 Olivier Hainque <hainque@adacore.com>
30 * config/t-vxworks: Rework the vxworks.o compilation
31 rules to use $(COMPILE).
33 2019-12-30 Joel Brobecker <brobecker@adacore.com>
35 * config.gcc <*-*-vxworks*>: Add vxworks-c.o to c_target_objs
36 and cxx_target_objs. Set target_has_targetcm to "yes". Add
37 vxworks-predef.h to extra_headers.
38 * config/t-vxworks (vxworks-c.o): New target.
39 * config/vxworks-c.c: New file.
40 * config/vxworks/vxworks-predef.h: New file.
42 2019-12-30 Alexandre Oliva <oliva@adacore.com>
43 Olivier Hainque <hainque@adacore.com>
45 * config/vx-common.h (WCHAR_TYPE_SIZE): 32 on VxWorks 7.
46 (WCHAR_TYPE): Pick accordingly.
47 (WINT_TYPE_SIZE): Define in terms of WCHAR_TYPE_SIZE.
48 (WINT_TYPE): Define in terms of WCHAR_TYPE.
50 2019-12-30 Olivier Hainque <hainque@adacore.com>
52 * config/vx-common.h: Minor reorganization and add
55 2019-12-30 Doug Rupp <rupp@adacore.com>
57 * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define.
59 2019-12-30 Olivier Hainque <hainque@adacore.com>
60 Jerome Lambourg <labourg@adacore.com>
62 * config/t-vxworks: Arrange to alter/restore glimits.h
63 before/after stmp-int-hdrs, so it uses a different macro
64 name to protect itself against recursive inclusions.
66 2019-12-30 Peter Bergner <bergner@linux.ibm.com>
69 * config/rs6000/rs6000-builtin.def (VAND, VANDC, VNOR, VOR, VXOR):
71 (EQV_V16QI_UNS, EQV_V8HI_UNS, EQV_V4SI_UNS, EQV_V2DI_UNS, EQV_V1TI_UNS,
72 NAND_V16QI_UNS, NAND_V8HI_UNS, NAND_V4SI_UNS, NAND_V2DI_UNS,
73 NAND_V1TI_UNS, ORC_V16QI_UNS, ORC_V8HI_UNS, ORC_V4SI_UNS, ORC_V2DI_UNS,
74 ORC_V1TI_UNS, VAND_V16QI_UNS, VAND_V16QI, VAND_V8HI_UNS, VAND_V8HI,
75 VAND_V4SI_UNS, VAND_V4SI, VAND_V2DI_UNS, VAND_V2DI, VAND_V4SF,
76 VAND_V2DF, VANDC_V16QI_UNS, VANDC_V16QI, VANDC_V8HI_UNS, VANDC_V8HI,
77 VANDC_V4SI_UNS, VANDC_V4SI, VANDC_V2DI_UNS, VANDC_V2DI, VANDC_V4SF,
78 VANDC_V2DF, VNOR_V16QI_UNS, VNOR_V16QI, VNOR_V8HI_UNS, VNOR_V8HI,
79 VNOR_V4SI_UNS, VNOR_V4SI, VNOR_V2DI_UNS, VNOR_V2DI, VNOR_V4SF,
80 VNOR_V2DF, VOR_V16QI_UNS, VOR_V16QI, VOR_V8HI_UNS, VOR_V8HI,
81 VOR_V4SI_UNS, VOR_V4SI, VOR_V2DI_UNS, VOR_V2DI, VOR_V4SF, VOR_V2DF,
82 VXOR_V16QI_UNS, VXOR_V16QI, VXOR_V8HI_UNS, VXOR_V8HI,
83 VXOR_V4SI_UNS, VXOR_V4SI, VXOR_V2DI_UNS, VXOR_V2DI, VXOR_V4SF,
84 VXOR_V2DF): Add definitions.
85 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins)
86 <ALTIVEC_BUILTIN_VAND, ALTIVEC_BUILTIN_VANDC, ALTIVEC_BUILTIN_VNOR,
87 ALTIVEC_BUILTIN_VOR, ALTIVEC_BUILTIN_VXOR>: Remove.
88 <ALTIVEC_BUILTIN_VAND_V4SF, ALTIVEC_BUILTIN_VAND_V2DF,
89 ALTIVEC_BUILTIN_VAND_V2DI, ALTIVEC_BUILTIN_VAND_V2DI_UNS,
90 ALTIVEC_BUILTIN_VAND_V4SI_UNS, ALTIVEC_BUILTIN_VAND_V4SI,
91 ALTIVEC_BUILTIN_VAND_V8HI_UNS, ALTIVEC_BUILTIN_VAND_V8HI,
92 ALTIVEC_BUILTIN_VAND_V16QI, ALTIVEC_BUILTIN_VAND_V16QI_UNS,
93 ALTIVEC_BUILTIN_VANDC_V4SF, ALTIVEC_BUILTIN_VANDC_V2DF,
94 ALTIVEC_BUILTIN_VANDC_V2DI, ALTIVEC_BUILTIN_VANDC_V2DI_UNS,
95 ALTIVEC_BUILTIN_VANDC_V4SI_UNS, ALTIVEC_BUILTIN_VANDC_V4SI,
96 ALTIVEC_BUILTIN_VANDC_V8HI_UNS, ALTIVEC_BUILTIN_VANDC_V8HI,
97 ALTIVEC_BUILTIN_VANDC_V16QI, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
98 ALTIVEC_BUILTIN_VNOR_V4SF, ALTIVEC_BUILTIN_VNOR_V2DF,
99 ALTIVEC_BUILTIN_VNOR_V2DI, ALTIVEC_BUILTIN_VNOR_V2DI_UNS,
100 ALTIVEC_BUILTIN_VNOR_V4SI, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
101 ALTIVEC_BUILTIN_VNOR_V8HI, ALTIVEC_BUILTIN_VNOR_V8HI_UNS,
102 ALTIVEC_BUILTIN_VNOR_V16QI, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
103 ALTIVEC_BUILTIN_VOR_V4SF, ALTIVEC_BUILTIN_VOR_V2DF,
104 ALTIVEC_BUILTIN_VOR_V2DI, ALTIVEC_BUILTIN_VOR_V2DI_UNS,
105 ALTIVEC_BUILTIN_VOR_V4SI_UNS, ALTIVEC_BUILTIN_VOR_V4SI,
106 ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V8HI,
107 ALTIVEC_BUILTIN_VOR_V16QI, ALTIVEC_BUILTIN_VOR_V16QI_UNS,
108 ALTIVEC_BUILTIN_VXOR_V4SF, ALTIVEC_BUILTIN_VXOR_V2DF,
109 ALTIVEC_BUILTIN_VXOR_V2DI, ALTIVEC_BUILTIN_VXOR_V2DI_UNS,
110 ALTIVEC_BUILTIN_VXOR_V4SI_UNS, ALTIVEC_BUILTIN_VXOR_V4SI,
111 ALTIVEC_BUILTIN_VXOR_V8HI, ALTIVEC_BUILTIN_VXOR_V8HI_UNS,
112 ALTIVEC_BUILTIN_VXOR_V16QI, ALTIVEC_BUILTIN_VXOR_V16QI_UNS>: Add
114 <P8V_BUILTIN_EQV_V16QI, P8V_BUILTIN_EQV_V8HI, P8V_BUILTIN_EQV_V4SI,
115 P8V_BUILTIN_EQV_V2DI, P8V_BUILTIN_NAND_V16QI, P8V_BUILTIN_NAND_V8HI,
116 P8V_BUILTIN_NAND_V4SI, P8V_BUILTIN_NAND_V2DI, P8V_BUILTIN_ORC_V16QI,
117 P8V_BUILTIN_ORC_V8HI, P8V_BUILTIN_ORC_V4SI,
118 P8V_BUILTIN_ORC_V2DI>: Change unsigned usages to use the new *_UNS
120 (rs6000_gimple_fold_builtin) <ALTIVEC_BUILTIN_VAND_V16QI_UNS,
121 ALTIVEC_BUILTIN_VAND_V16QI, ALTIVEC_BUILTIN_VAND_V8HI_UNS,
122 ALTIVEC_BUILTIN_VAND_V8HI, ALTIVEC_BUILTIN_VAND_V4SI_UNS,
123 ALTIVEC_BUILTIN_VAND_V4SI, ALTIVEC_BUILTIN_VAND_V2DI_UNS,
124 ALTIVEC_BUILTIN_VAND_V2DI, ALTIVEC_BUILTIN_VAND_V4SF,
125 ALTIVEC_BUILTIN_VAND_V2DF, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
126 ALTIVEC_BUILTIN_VANDC_V16QI, ALTIVEC_BUILTIN_VANDC_V8HI_UNS,
127 ALTIVEC_BUILTIN_VANDC_V8HI, ALTIVEC_BUILTIN_VANDC_V4SI_UNS,
128 ALTIVEC_BUILTIN_VANDC_V4SI, ALTIVEC_BUILTIN_VANDC_V2DI_UNS,
129 ALTIVEC_BUILTIN_VANDC_V2DI, ALTIVEC_BUILTIN_VANDC_V4SF,
130 ALTIVEC_BUILTIN_VANDC_V2DF, P8V_BUILTIN_NAND_V16QI_UNS,
131 P8V_BUILTIN_NAND_V8HI_UNS, P8V_BUILTIN_NAND_V4SI_UNS,
132 P8V_BUILTIN_NAND_V2DI_UNS, P8V_BUILTIN_NAND_V2DI,
133 ALTIVEC_BUILTIN_VOR_V16QI_UNS, ALTIVEC_BUILTIN_VOR_V16QI,
134 ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V8HI,
135 ALTIVEC_BUILTIN_VOR_V4SI_UNS, ALTIVEC_BUILTIN_VOR_V4SI,
136 ALTIVEC_BUILTIN_VOR_V2DI_UNS, ALTIVEC_BUILTIN_VOR_V2DI,
137 ALTIVEC_BUILTIN_VOR_V4SF, ALTIVEC_BUILTIN_VOR_V2DF,
138 P8V_BUILTIN_ORC_V16QI_UNS, P8V_BUILTIN_ORC_V8HI_UNS,
139 P8V_BUILTIN_ORC_V4SI_UNS, P8V_BUILTIN_ORC_V2DI_UNS,
140 P8V_BUILTIN_ORC_V2DI, ALTIVEC_BUILTIN_VXOR_V16QI_UNS,
141 ALTIVEC_BUILTIN_VXOR_V16QI, ALTIVEC_BUILTIN_VXOR_V8HI_UNS,
142 ALTIVEC_BUILTIN_VXOR_V8HI, ALTIVEC_BUILTIN_VXOR_V4SI_UNS,
143 ALTIVEC_BUILTIN_VXOR_V4SI, ALTIVEC_BUILTIN_VXOR_V2DI_UNS,
144 ALTIVEC_BUILTIN_VXOR_V2DI, ALTIVEC_BUILTIN_VXOR_V4SF,
145 ALTIVEC_BUILTIN_VXOR_V2DF, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
146 ALTIVEC_BUILTIN_VNOR_V16QI, ALTIVEC_BUILTIN_VNOR_V8HI_UNS,
147 ALTIVEC_BUILTIN_VNOR_V8HI, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
148 ALTIVEC_BUILTIN_VNOR_V4SI, ALTIVEC_BUILTIN_VNOR_V2DI_UNS,
149 ALTIVEC_BUILTIN_VNOR_V2DI, ALTIVEC_BUILTIN_VNOR_V4SF,
150 ALTIVEC_BUILTIN_VNOR_V2DF>: Use new definition names.
151 (builtin_function_type) <ALTIVEC_BUILTIN_VAND_V16QI_UNS,
152 ALTIVEC_BUILTIN_VAND_V8HI_UNS, ALTIVEC_BUILTIN_VAND_V4SI_UNS,
153 ALTIVEC_BUILTIN_VAND_V2DI_UNS, ALTIVEC_BUILTIN_VANDC_V16QI_UNS,
154 ALTIVEC_BUILTIN_VANDC_V8HI_UNS, ALTIVEC_BUILTIN_VANDC_V4SI_UNS,
155 ALTIVEC_BUILTIN_VANDC_V2DI_UNS, ALTIVEC_BUILTIN_VNOR_V16QI_UNS,
156 ALTIVEC_BUILTIN_VNOR_V8HI_UNS, ALTIVEC_BUILTIN_VNOR_V4SI_UNS,
157 ALTIVEC_BUILTIN_VNOR_V2DI_UNS, ALTIVEC_BUILTIN_VOR_V16QI_UNS,
158 ALTIVEC_BUILTIN_VOR_V8HI_UNS, ALTIVEC_BUILTIN_VOR_V4SI_UNS,
159 ALTIVEC_BUILTIN_VOR_V2DI_UNS, ALTIVEC_BUILTIN_VXOR_V16QI_UNS,
160 ALTIVEC_BUILTIN_VXOR_V8HI_UNS, ALTIVEC_BUILTIN_VXOR_V4SI_UNS,
161 ALTIVEC_BUILTIN_VXOR_V2DI_UNS, P8V_BUILTIN_EQV_V16QI_UNS,
162 P8V_BUILTIN_EQV_V8HI_UNS, P8V_BUILTIN_EQV_V4SI_UNS,
163 P8V_BUILTIN_EQV_V2DI_UNS, P8V_BUILTIN_EQV_V1TI_UNS,
164 P8V_BUILTIN_NAND_V16QI_UNS, P8V_BUILTIN_NAND_V8HI_UNS,
165 P8V_BUILTIN_NAND_V4SI_UNS, P8V_BUILTIN_NAND_V2DI_UNS,
166 P8V_BUILTIN_NAND_V1TI_UNS, P8V_BUILTIN_ORC_V16QI_UNS,
167 P8V_BUILTIN_ORC_V8HI_UNS, P8V_BUILTIN_ORC_V4SI_UNS,
168 P8V_BUILTIN_ORC_V2DI_UNS, P8V_BUILTIN_ORC_V1TI_UNS>: Handle unsigned
171 2019-12-29 Jakub Jelinek <jakub@redhat.com>
174 * config/i386/i386-builtins.c (ix86_builtin_vectorized_function):
175 Remove CASE_CFN_RINT handling.
176 * config/i386/i386-builtin.def (IX86_BUILTIN_RINTPD,
177 IX86_BUILTIN_RINTPS, IX86_BUILTIN_RINTPD256, IX86_BUILTIN_RINTPS256):
179 * config/i386/sse.md (nearbyint<mode>2, rint<mode>2): New expanders
182 2019-12-29 Richard Sandiford <richard.sandiford@arm.com>
184 * tree-vect-stmts.c (vect_get_strided_load_store_ops): Copy
185 DR_STEP before gimplifying it.
187 2019-12-29 Richard Sandiford <richard.sandiford@arm.com>
189 * tree-vect-stmts.c (vectorizable_condition): For extract-last
190 reductions, check that the target supports the required comparison
193 2019-12-27 Richard Sandiford <richard.sandiford@arm.com>
195 * config/aarch64/iterators.md (V_INT_CONTAINER): Fix VNx2SF entry.
197 2019-12-27 Richard Sandiford <richard.sandiford@arm.com>
199 * tree-vect-loop.c (vectorizable_reduction): Check whether the
200 target supports the required VEC_COND_EXPR operation before
201 allowing the fallback handling of masked fold-left reductions.
203 2019-12-24 Jiufu Guo <guojiufu@linux.ibm.com>
205 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
206 -fweb and -frename-registers with -funroll-loops
208 2019-12-22 Gerald Pfeifer <gerald@pfeifer.com>
210 * doc/invoke.texi (-flto): Use "compile time" as a noun.
212 2019-12-21 Martin Jambor <mjambor@suse.cz>
215 * ipa-cp.c (ipcp_store_vr_results): Check that info exists
217 2019-12-20 Michael Meissner <meissner@linux.ibm.com>
219 * config/rs6000/predicates.md (cint34_operand): Use
220 SIGNED_INTEGER_34BIT_P macro.
221 * config/rs6000/rs6000.c (num_insns_constant_gpr): Use the
222 SIGNED_INTEGER_16BIT_P and SIGNED_INTEGER_34BIT_P macros.
223 (address_to_insn_form): Use the SIGNED_INTEGER_16BIT_P and
224 SIGNED_INTEGER_34BIT_P macros.
225 * config/rs6000/rs6000.h (SIGNED_INTEGER_NBIT_P): New macro.
226 (SIGNED_INTEGER_16BIT_P): Rename SIGNED_16BIT_OFFSET_P to be
227 SIGNED_INTEGER_34BIT_P.
228 (SIGNED_INTEGER_34BIT_P): Rename SIGNED_34BIT_OFFSET_P to be
229 SIGNED_INTEGER_34BIT_P.
231 2019-12-20 Stam Markianos-Wright <stam.markianos-wright@arm.com>
233 * doc/sourcebuild.texi
234 (arm_v8_2a_bf16_neon_ok): Document new target supports option.
235 (arm_v8_2a_i8mm_ok): Likewise.
237 2019-12-20 Jakub Jelinek <jakub@redhat.com>
240 * config/i386/i386.md (*stack_protect_set_3): For pic_32bit_operand
241 always use lea{q}, no matter what value which_alternative has.
244 * config/i386/i386.md (dec reg; cmp $-1, reg; jne lab): New
247 2019-12-19 Julian Brown <julian@codesourcery.com>
249 * gimplify.c (gimplify_omp_var_data): Add GOVD_MAP_HAS_ATTACHMENTS.
250 (insert_struct_comp_map): Support derived-type member mappings
251 for arrays with descriptors which use GOMP_MAP_TO_PSET. Support
252 GOMP_MAP_ATTACH_DETACH.
253 (gimplify_scan_omp_clauses): Tidy up OACC_ENTER_DATA/OACC_EXIT_DATA
254 mappings. Handle attach/detach clauses and component references.
255 (gimplify_adjust_omp_clauses_1): Skip adjustments for explicit
256 attach/detach clauses.
257 (gimplify_omp_target_update): Handle struct mappings and finalize for
259 * omp-low.c (lower_omp_target): Support GOMP_MAP_ATTACH,
260 GOMP_MAP_DETACH, GOMP_MAP_FORCE_DETACH.
261 * tree-pretty-print.c (dump_omp_clause): Likewise, plus
262 GOMP_MAP_ATTACH_DETACH.
264 2019-12-19 Julian Brown <julian@codesourcery.com>
266 * gimplify.c (insert_struct_comp_map, extract_base_bit_offset): New.
267 (gimplify_scan_omp_clauses): Outline duplicated code into calls to
270 2019-12-19 Vladimir Makarov <vmakarov@redhat.com>
273 * lra-constraints.c (process_alt_operands): Check offmemok when
274 processing preferred_reload_class.
276 2019-12-19 Andrew Stubbs <ams@codesourcery.com>
278 * config/gcn/gcn-valu.md
279 (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>):
280 Change input predcate to gcn_alu_operand.
281 (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>):
283 (truncv64di<mode>2): Likewise.
284 (truncv64di<mode>2_exec): Likewise.
285 (<convop><mode>v64di2): Likewise.
286 (<convop><mode>v64di2_exec): Likewise.
288 2019-12-19 Andrew Stubbs <ams@codesourcery.com>
290 * config/gcn/gcn-valu.md (*plus_carry_dpp_shr_<mode>): Rename to ...
291 (*plus_carry_dpp_shr_v64si): ... this, and replace all
292 VEC_1REG_INT_MODE with V64SI.
294 2019-12-19 David Malcolm <dmalcolm@redhat.com>
296 * hash-map-tests.c (selftest::test_map_of_int_to_strings): New
298 (selftest::hash_map_tests_c_tests): Call it.
300 2019-12-19 David Malcolm <dmalcolm@redhat.com>
302 * gimple-predict.h (gimple_predict_predictor): Make "gs" param
304 (gimple_predict_outcome): Likewise.
305 * gimple-pretty-print.c (do_niy): Likewise.
306 (dump_unary_rhs): Likewise.
307 (dump_binary_rhs): Likewise.
308 (dump_ternary_rhs): Likewise.
309 (dump_gimple_assign): Likewise.
310 (dump_gimple_return): Likewise.
311 (dump_gimple_call_args): Likewise.
312 (pp_points_to_solution): Make "pt" param const.
313 (dump_gimple_call): Make "gs" param const.
314 (dump_gimple_switch): Likewise.
315 (dump_gimple_cond): Likewise.
316 (dump_gimple_label): Likewise.
317 (dump_gimple_goto): Likewise.
318 (dump_gimple_bind): Likewise.
319 (dump_gimple_try): Likewise.
320 (dump_gimple_catch): Likewise.
321 (dump_gimple_eh_filter): Likewise.
322 (dump_gimple_eh_must_not_throw): Likewise.
323 (dump_gimple_eh_else): Likewise.
324 (dump_gimple_resx): Likewise.
325 (dump_gimple_eh_dispatch): Likewise.
326 (dump_gimple_debug): Likewise.
327 (dump_gimple_omp_for): Likewise.
328 (dump_gimple_omp_continue): Likewise.
329 (dump_gimple_omp_single): Likewise.
330 (dump_gimple_omp_taskgroup): Likewise.
331 (dump_gimple_omp_target): Likewise.
332 (dump_gimple_omp_teams): Likewise.
333 (dump_gimple_omp_sections): Likewise.
334 (dump_gimple_omp_block): Likewise.
335 (dump_gimple_omp_critical): Likewise.
336 (dump_gimple_omp_ordered): Likewise.
337 (dump_gimple_omp_scan): Likewise.
338 (dump_gimple_omp_return): Likewise.
339 (dump_gimple_transaction): Likewise.
340 (dump_gimple_asm): Likewise.
341 (dump_gimple_phi): Make "phi" param const.
342 (dump_gimple_omp_parallel): Make "gs" param const.
343 (dump_gimple_omp_task): Likewise.
344 (dump_gimple_omp_atomic_load): Likewise.
345 (dump_gimple_omp_atomic_store): Likewise.
346 (dump_gimple_mem_ops): Likewise.
347 (pp_gimple_stmt_1): Likewise. Add "const" to the various as_a <>
349 * gimple-pretty-print.h (gimple_stmt_1): Make gimple * param const.
350 * gimple.h (is_a_helper <const gdebug *>::test): New.
351 (is_a_helper <const ggoto *>::test): New.
352 (is_a_helper <const glabel *>::test): New.
353 (is_a_helper <const geh_else *>::test): New.
354 (is_a_helper <const geh_mnt *>::test): New.
355 (is_a_helper <const gswitch *>::test): New.
356 (is_a_helper <const gtry *>::test): New.
357 (is_a_helper <const greturn *>::test): New.
358 (gimple_call_tail_p): Make param const.
359 (gimple_call_return_slot_opt_p): Likewise.
360 (gimple_call_va_arg_pack_p): Likewise.
361 (gimple_call_use_set): Add const overload.
362 (gimple_call_clobber_set): Likewise.
363 (gimple_has_lhs): Make param const.
364 (gimple_bind_body): Likewise.
365 (gimple_catch_handler): Likewise.
366 (gimple_eh_filter_failure): Likewise.
367 (gimple_eh_must_not_throw_fndecl): Likewise.
368 (gimple_eh_else_n_body): Likewise.
369 (gimple_eh_else_e_body): Likewise.
370 (gimple_try_eval): Likewise.
371 (gimple_try_cleanup): Likewise.
372 (gimple_phi_arg): Add const overload.
373 (gimple_phi_arg_def): Make param const.
374 (gimple_phi_arg_edge): Likewise.
375 (gimple_phi_arg_location): Likewise.
376 (gimple_phi_arg_has_location): Likewise.
377 (gimple_debug_bind_get_var): Likewise.
378 (gimple_debug_bind_get_value): Likewise.
379 (gimple_debug_source_bind_get_var): Likewise.
380 (gimple_debug_source_bind_get_value): Likewise.
381 (gimple_omp_body): Likewise.
382 (gimple_omp_for_collapse): Likewise.
383 (gimple_omp_for_pre_body): Likewise.
384 (gimple_transaction_body): Likewise.
385 * tree-eh.c (lookup_stmt_eh_lp_fn): Make param "t" const.
386 (lookup_stmt_eh_lp): Likewise.
387 * tree-eh.h (lookup_stmt_eh_lp_fn): Make param const.
388 (lookup_stmt_eh_lp): Likewise.
389 * tree-ssa-alias.h (pt_solution_empty_p): Make param const.
390 * tree-ssa-structalias.c (pt_solution_empty_p): Likewise.
392 2019-12-19 Richard Sandiford <richard.sandiford@arm.com>
394 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): When
395 handling partial SVE vectors, use the container mode rather than
396 the element mode if the constant isn't a single-element duplicate.
397 * config/aarch64/aarch64-sve.md (@aarch64_sve_reinterpret<mode>):
398 Check targetm.can_change_mode_class instead of BYTES_BIG_ENDIAN.
400 2019-12-19 Andrew Stubbs <ams@codesourcery.com>
402 * config/gcn/gcn-valu.md (addv64si3<exec_clobber>): Rename to ...
403 (add<mode>3<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
404 (addv64si3_dup<exec_clobber>): Rename to ...
405 (add<mode>3_dup<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
406 (subv64si3<exec_clobber>): Rename to ...
407 (sub<mode>3<exec_clobber>): ... this, and use VEC_ALL1REG_INT_MODE.
409 2019-12-19 Richard Sandiford <richard.sandiford@arm.com>
411 * config/aarch64/aarch64.c (aarch64_can_change_mode_class):
412 Don't allow changes between partial SVE modes and other kinds
413 of mode. Don't allow changes between two partial SVE modes
414 if they have different container or element sizes.
416 2019-12-19 Richard Sandiford <richard.sandiford@arm.com>
418 * config/aarch64/aarch64.c (aarch64_function_value_1): New function,
420 (aarch64_function_value): ...here. Handle partial SVE modes by
421 pretending that they have the associated/traditional integer mode,
422 then wrap the result in the real mode.
423 (aarch64_layout_arg): Take an orig_mode argument and pass it to
424 aarch64_function_arg_alignment. Handle partial SVE modes analogously
425 to aarch64_function_value.
426 (aarch64_function_arg): Update call accordingly.
427 (aarch64_function_arg_advance): Likewise.
429 2019-12-19 Jan Hubicka <hubicka@ucw.cz>
430 Xi Ruoyao <xry111@mengyan1223.wang>
432 * cgraph.c (cgraph_node_cannot_be_local_p_1): Prevent targets of
433 symver attributes to be localized.
434 * ipa-visibility.c (cgraph_externally_visible_p,
435 varpool_node::externally_visible_p): Likewise.
436 * symtab.c (symtab_node::verify_base): Check visibility of symbol
439 2019-12-19 Jan Hubicka <hubicka@ucw.cz>
440 Luo Xiong Hu <luoxhu@linux.ibm.com
442 * ipa-fnsummary.h (ipa_size_summary): Remove copy consturctor.
443 (ipa_size_summary_t): Add duplicate method; move to heap.
444 * ipa-fnsumary.c (ipa_fn_summary_alloc): Fix allocation.
446 2019-12-19 Feng Xue <fxue@os.amperecomputing.com>
449 * ipa-cp.c (self_recursive_agg_pass_through_p): New function.
450 (intersect_with_plats): Use error_mark_node as place holder
451 when aggregate jump function is simple pass-through for
453 (intersect_with_agg_replacements): Likewise.
454 (intersect_aggregates_with_edge): Likewise.
455 (find_aggregate_values_for_callers_subset): Likewise.
457 2019-12-18 David Malcolm <dmalcolm@redhat.com>
459 * common.opt (fdiagnostics-show-cwe): Add.
460 * diagnostic-core.h (class diagnostic_metadata): New forward decl.
461 (warning_at): Add overload taking a const diagnostic_metadata &.
462 (emit_diagnostic_valist): Add overload taking a
463 const diagnostic_metadata *.
464 * diagnostic-format-json.cc: Include "diagnostic-metadata.h".
465 (json_from_metadata): New function.
466 (json_end_diagnostic): Call it to add "metadata" child for
467 diagnostics with metadata.
468 (diagnostic_output_format_init): Clear context->show_cwe.
469 * diagnostic-metadata.h: New file.
470 * diagnostic.c: Include "diagnostic-metadata.h".
471 (diagnostic_impl): Add const diagnostic_metadata * param.
472 (diagnostic_n_impl): Likewise.
473 (diagnostic_initialize): Initialize context->show_cwe.
474 (diagnostic_set_info_translated): Initialize diagnostic->metadata.
475 (get_cwe_url): New function.
476 (print_any_cwe): New function.
477 (diagnostic_report_diagnostic): Call print_any_cwe if the
478 diagnostic has non-NULL metadata.
479 (emit_diagnostic): Pass NULL as the metadata in the call to
481 (emit_diagnostic_valist): Likewise.
482 (emit_diagnostic_valist): New overload taking a
483 const diagnostic_metadata *.
484 (inform): Pass NULL as the metadata in the call to
486 (inform_n): Likewise for diagnostic_n_impl.
488 (warning_at): Likewise. Add overload that takes a
489 const diagnostic_metadata &.
490 (warning_n): Pass NULL as the metadata in the call to
492 (pedwarn): Likewise for diagnostic_impl.
493 (permerror): Likewise.
496 (error_at): Likewise.
498 (sorry_at): Likewise.
499 (fatal_error): Likewise.
500 (internal_error): Likewise.
501 (internal_error_no_backtrace): Likewise.
502 * diagnostic.h (diagnostic_info::metadata): New field.
503 (diagnostic_context::show_cwe): New field.
504 * doc/invoke.texi (-fno-diagnostics-show-cwe): New option.
505 * opts.c (common_handle_option): Handle OPT_fdiagnostics_show_cwe.
506 * toplev.c (general_init): Initialize global_dc->show_cwe.
508 2019-12-19 Julian Brown <julian@codesourcery.com>
509 Maciej W. Rozycki <macro@codesourcery.com>
510 Tobias Burnus <tobias@codesourcery.com>
511 Thomas Schwinge <thomas@codesourcery.com>
513 * omp-low.c (lower_omp_target): Support GOMP_MAP_NO_ALLOC.
514 * tree-pretty-print.c (dump_omp_clause): Likewise.
516 2019-12-18 Eric Botcazou <ebotcazou@adacore.com>
518 * ira.c (ira): Use simple LRA algorithm when not optimizing.
520 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
522 * gimplify.c (gimplify_omp_target_update): Elaborate 'exit data'
525 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
528 * Makefile.in (CFLAGS-lto-streamer-in.o): Pass target_noncanonical on.
529 * lto-streamer-in.c (lto_input_mode_table): Improve unsupported-mode
532 2019-12-18 Wilco Dijkstra <wdijkstr@arm.com>
534 * config/aarch64/aarch64-cores.def:
535 ("cortex-a76ae"): Use neoversen1 tuning.
536 ("cortex-a77"): Likewise.
537 ("cortex-a65"): Use cortexa53 scheduler.
538 ("cortex-a65ae"): Likewise.
539 ("neoverse-e1"): Use cortexa73 tuning.
541 2019-12-18 Martin Jambor <mjambor@suse.cz>
544 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Fix
545 definition of values, release memory on exit.
547 2019-12-17 Jan Hubicka <hubicka@ucw.cz>
548 Martin Jambor <mjambor@suse.cz>
550 * ipa-param-manipulation.h (get_original_index): Declare.
551 * ipa-param-manipulation.c (ipa_param_adjustments::get_original_index):
553 * ipa-prop.c (ipcp_get_parm_bits): New function.
554 * ipa-prop.h (ipcp_get_parm_bits): Declare.
555 * tree-ssa-ccp.c: Include cgraph.h, alloc-pool.h, symbol-summary.h,
556 ipa-utils.h and ipa-prop.h
557 (get_default_value): Use ipcp_get_parm_bits.
559 2019-12-18 Jakub Jelinek <jakub@redhat.com>
562 * lto-wrapper.c (merge_and_complain): Use just "-fno-pie" instead of
563 big ? "-fno-pie" : "-fno-pie". Formatting fixes. Fix comment typo.
565 2019-12-17 Martin Sebor <msebor@redhat.com>
568 * doc/invoke.texi (-Wmismatched-tags, -Wredundant-tags): Document
571 2019-12-17 Michael Meissner <meissner@linux.ibm.com>
573 * config/rs6000/rs6000.c (num_insns_constant_gpr): Return 1 if the
574 constant can be loaded with PLI if -mcpu=future.
575 * config/rs6000/rs6000.md (add<mode>3): Add alternative to
576 generate PADDI for 34-bit constants if -mcpu=future.
577 (movdi_internal64): Add alternative to use PLI to load up 34-bit
578 constants if -mcpu=future.
579 (movsi_internal1): Add alternative to use PLI to load up 32-bit
580 constants if -mcpu=future.
581 * config/rs6000/predicates.md (add_operand): Allow eI constants.
583 2019-12-17 Jakub Jelinek <jakub@redhat.com>
586 * config/i386/i386.md (@stack_protect_set_1_<mode>,
587 @stack_protect_test_1_<mode>): Use output_asm_insn.
588 (*stack_protect_set_2_<mode>, *stack_protect_set_3): New define_insns
589 and corresponding define_peephole2s.
591 2019-12-17 Jan Hubicka <hubicka@ucw.cz>
593 * symtab.c (symtab_node::get_partitioning_class): Aliases of external
594 symbols are external.
596 2019-12-17 Christophe Lyon <christophe.lyon@linaro.org>
598 * config/arm/arm-protos.h (thumb1_gen_const_int): Add new prototype.
599 * config/arm/arm.c (arm_option_check_internal): Remove restriction
600 on MOVT for -mpure-code.
601 (thumb1_gen_const_int): New function.
602 (thumb1_legitimate_address_p): Support -mpure-code.
603 (thumb1_rtx_costs): Likewise.
604 (thumb1_size_rtx_costs): Likewise.
605 (arm_thumb1_mi_thunk): Likewise.
606 * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Likewise.
607 * config/arm/thumb1.md (thumb1_movsi_symbol_ref): New.
608 (*thumb1_movhf): Support -mpure-code.
609 * doc/invoke.texi (-mpure-code): Remove restriction on MOVT.
611 2019-12-17 Andrew Stubbs <ams@codesourcery.com>
613 * tree-vect-loop.c (vect_create_epilog_for_reduction): Mention pr92772
616 2019-12-17 Andrew Stubbs <ams@codesourcery.com>
618 * config/gcn/gcn-valu.md (extract_last_<mode>): New expander.
619 (fold_extract_last_<mode>): New expander.
621 2019-12-17 Andrew Stubbs <ams@codesourcery.com>
623 * config/gcn/gcn.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
624 (CTZ_DEFINED_VALUE_AT_ZERO): Define.
625 * config/gcn/gcn.md (s_mnemonic): Add clz and ctz.
626 (expander): Likewise.
627 (countzeros): New code iterator.
628 (<expander>si2): New insn pattern.
629 (<expander>di2): New insn pattern.
631 2019-12-17 Jakub Jelinek <jakub@redhat.com>
634 * common/config/i386/i386-common.c (processor_alias_table): Formatting
636 * doc/invoke.texi (bdver3, bdver4, znver1): Add missing closing paren.
637 (znver2): Likewise. Add RDPID and WBNOINVD, remove spurious comma
640 2019-12-17 Hongyu Wang <hongyu.wang@intel.com>
643 * config/i386/i386.h (TARGET_EXPAND_ABS): New macro.
644 * config/i386/x86-tune.def (X86_TUNE_EXPAND_ABS): New.
645 * config/i386/i386.md (abs<SWI48x>2): New define_expand.
647 2019-12-17 H.J. Lu <hjl.tools@gmail.com>
650 * config/i386/i386.c (ix86_lea_outperforms): Check !TARGET_BONNELL.
651 (ix86_avoid_lea_for_addr): When not optimizing for Bonnell, use add
652 for a = a + b and a = b + a.
654 2019-12-16 Martin Sebor <msebor@redhat.com>
657 * builtins.c (compute_objsize): Adjust offset by the array low bound.
659 2019-12-16 David Malcolm <dmalcolm@redhat.com>
661 * pretty-print.c (pp_write_text_as_html_like_dot_to_stream): New
663 * pretty-print.h (pp_write_text_as_html_like_dot_to_stream): New decl.
665 2019-12-16 Segher Boessenkool <segher@kernel.crashing.org>
667 * config/rs6000/rs6000.md (movsi_to_cr_one): Use CR0_REGNO instead of
668 hardcoding the (old, expired) register number.
671 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
673 * config.gcc: s/msp430*-*-*/msp430-*-*.
674 Handle msp430-*-elfbare.
675 * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define.
677 (__MSPMKSTR): Define.
678 (rest_of_devices_path): Use TARGET_SUBDIR value in string.
679 * config/msp430/msp430.c (msp430_option_override): Error if
680 -fuse-cxa-atexit is used when it has been disabled at configure time.
681 * config/msp430/t-msp430: Define TARGET_SUBDIR when building
683 * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare.
684 * doc/invoke.texi: Update documentation about which path devices.csv is
687 2019-12-16 Andreas Krebbel <krebbel@linux.ibm.com>
690 * config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
693 2019-12-14 Martin Sebor <msebor@redhat.com>
695 * doc/extend.texi (attribute access): Correct typos.
697 2019-12-14 Jakub Jelinek <jakub@redhat.com>
700 * ipa-fnsummary.c (ipa_fn_summary_write): Use
701 lto_symtab_encoder_iterator with lsei_start_function_in_partition and
702 lsei_next_function_in_partition instead of walking all cgraph nodes
705 PR tree-optimization/92930
706 * ipa-pure-const.c (special_builtin_state): Don't handle
707 BUILT_IN_APPLY. Formatting fixes.
708 (check_call): Formatting fixes.
710 2019-12-14 Iain Sandoe <iain@sandoe.co.uk>
712 * config/darwin.h (DARWIN_EXTRA_SPECS): Add new
713 bundle spec. (DARWIN_BUNDLE1_SPEC): New.
714 (STARTFILE_SPEC): Use darwin bundle spec.
715 * config/rs6000/darwin.h (DARWIN_BUNDLE1_SPEC): New.
716 (DARWIN_DYLIB1_SPEC): Delete duplicate.
718 2019-12-13 Martin Sebor <msebor@redhat.com>
722 * builtins.c (addr_decl_size): New function.
723 (gimple_call_alloc_size): Add arguments.
724 (compute_objsize): Add an argument. Set *PDECL even for allocated
726 Correct checking for negative wide_int.
727 Correct handling of negative outer offsets into unknown regions
728 or with unknown inner offsets.
729 Extend offsets to at most sizetype precision.
730 Only handle constant subobject sizes.
731 * builtins.h (gimple_call_alloc_size): Add arguments.
732 * tree.c (component_ref_size): Always return sizetype.
733 * tree-ssa-strlen.c (strinfo::alloc): New member.
734 (get_addr_stridx): Add argument.
735 (get_stridx): Use ptrdiff_t. Add argument.
736 (new_strinfo): Set new member.
737 (get_string_length): Handle alloca and VLA.
738 (dump_strlen_info): Dump more state.
739 (maybe_invalidate): Print more info. Decrease indentation.
740 (unshare_strinfo): Set new member.
741 (valid_builtin_call): Handle alloca and VLA.
742 (maybe_warn_overflow): Check and set no-warning bit. Improve
743 handling of offsets. Print allocated objects.
744 (handle_builtin_strlen): Handle strinfo records with null lengths.
745 (handle_builtin_strcpy): Add argument. Call maybe_warn_overflow.
746 (is_strlen_related_p): Handle dynamically allocated objects.
747 (get_range): Add argument.
748 (handle_builtin_malloc): Rename...
749 (handle_alloc): ...to this and handle all allocation functions.
750 (handle_builtin_memset): Call maybe_warn_overflow.
751 (count_nonzero_bytes): Handle more MEM_REF forms.
752 (strlen_check_and_optimize_call): Call handle_alloc_call. Pass
753 arguments to more callees.
754 (handle_integral_assign): Add argument. Create strinfo entries
755 for MEM_REF assignments.
756 (check_and_optimize_stmt): Handle more MEM_REF forms.
758 2019-12-13 Iain Sandoe <iain@sandoe.co.uk>
760 * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
762 2019-12-13 Jan Hubicka <hubicka@ucw.cz>
764 * lto-streamer-in.c (input_function): Add node parameter.
765 (lto_read_body_or_constructor): Use it.
767 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
769 PR rtl-optimization/92591
770 * modulo-sched.c (ps_add_node_check_conflicts): Improve checking
771 for history > 0 case.
773 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
775 * modulo-sched.c (sms_schedule): Use param_sms_max_ii_factor
776 value instead of macro. Adjust comment.
777 (sms_schedule_by_order): Use parameter value without macro.
778 * params.opt: Add ranges for modulo scheduler parameters,
779 set param_sms_max_ii_factor = 2 by default.
781 2019-12-13 Roman Zhuykov <zhroma@ispras.ru>
783 PR rtl-optimization/90001
784 * ddg.c (create_ddg): Init max_dist array for each node.
785 (free_ddg): Free max_dist array.
786 (create_ddg_edge): Use bool field instead of aux union.
787 (set_recurrence_length): Use prepared max_dist information instead
788 of calling longest_simple_path.
789 (create_scc): Remove graph argument, fill node's aux.count with
790 SCC id, and move set_recurrence_length call to...
791 (create_ddg_all_sccs): ...here, after filling all max_dist arrays
792 using Floyd–Warshall-like algorithm.
793 (update_dist_to_successors): Remove the whole function.
794 (longest_simple_path): Likewise.
795 * ddg.h (struct ddg_node): Add max_dist pointer.
796 (struct ddg_edge): Use bool field instead of unused aux union.
798 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
800 * config/gcn/gcn-valu.md (mulv64si3<exec>): Rename to ...
801 (mul<mode>3<exec>): ... this, and implement sub-dword patterns.
802 (mulv64si3_dup<exec>): Rename to ...
803 (mul<mode>3_dup<exec>): ... this, and implement sub-dword patterns.
805 2019-12-13 Jan Hubicka <hubicka@ucw.cz>
807 * ipa-utils.c (ipa_merge_profiles): Improve dumping; merge common
810 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
812 * config/gcn/gcn-valu.md (sdwa): New mode attribute.
813 (VCVT_FROM_MODE): Rename to ...
814 (VCVT_MODE): ... this.
815 (VCVT_TO_MODE): Delete mode iterator.
816 (VCVT_FMODE): New mode iterator.
817 (VCVT_IMODE): Likewise.
818 (<cvt_name><VCVT_FROM_MODE:mode><VCVT_TO_MODE:mode>2<exec>): Change ...
819 (<cvt_name><VCVT_MODE:mode><VCVT_FMODE:mode>2<exec>): ... to this.
820 (<cvt_name><VCVT_FMODE:mode><VCVT_IMODE:mode>2<exec>): New.
821 (zero_convert): New code iterator.
822 (convop): New code attribute.
823 (<convop><VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
825 (extend<VEC_ALL1REG_INT_ALT:mode><VEC_ALL1REG_INT_MODE:mode>2<exec>)
827 (vec_truncatev64div64si): Rename to ...
828 (truncv64di<mode>2): ... this and implement sub-dword patterns.
829 (vec_truncatev64div64si_exec): Rename to ...
830 (truncv64di<mode>2_exec): ... this and implement sub-dword patterns.
831 (<convop><mode>v64di2): New insn_and_split.
832 (<convop><mode>v64di2_exec): Likewise.
833 (mask_gather_load<mode>): Update truncate names.
834 (mask_scatter_store<mode>): Likewise.
835 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Update truncate names.
837 2019-12-13 Dennis Zhang <dennis.zhang@arm.com>
839 * config/aarch64/aarch64-arches.def (armv8.6-a): New.
840 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
841 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC and
842 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC when enabled.
843 * config/aarch64/aarch64-option-extensions.def (i8mm, bf16): New.
844 (fp): Disabling fp also disables i8mm and bf16.
845 (simd): Disabling simd also disables i8mm.
846 * config/aarch64/aarch64.h (AARCH64_FL_V8_6): New macro.
847 (AARCH64_FL_I8MM, AARCH64_FL_BF16, AARCH64_FL_FOR_ARCH8_6): Likewise.
848 (AARCH64_ISA_V8_6, AARCH64_ISA_I8MM, AARCH64_ISA_BF16): Likewise.
849 (TARGET_I8MM, TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
850 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options
851 and add a new table to list permissible values for ARCH.
853 2019-12-13 Jakub Jelinek <jakub@redhat.com>
856 * simplify-rtx.c (simplify_relational_operation): Punt for vector
857 cmp_mode and scalar mode, if simplify_relational_operation returned
859 (simplify_const_relational_operation): Change VOID_mode in function
862 2019-12-13 Kewen Lin <linkw@gcc.gnu.org>
864 * config/rs6000/rs6000.c (adjust_vectorization_cost): New function.
865 (rs6000_add_stmt_cost): Call adjust_vectorization_cost and update
868 2019-12-12 Jakub Jelinek <jakub@redhat.com>
871 * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
872 not need_temp, decrease alignment of the read because the GPR save
873 area only guarantees 8-byte alignment.
875 2019-12-12 Georg-Johann Lay <avr@gjlay.de>
877 Add support for some more AVR devices from avrxmega3 family.
879 * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
880 (attiny402, attiny404, attiny406)
881 (attiny804, attiny806, attiny807)
882 (attiny202, attiny204): Add AVR_MCU lines to support them.
883 * doc/avr-mmcu.texi: Regenerate.
885 2019-12-12 Jan Hubicka <hubicka@ucw.cz>
887 * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
888 of execution of function call parameters.
890 2019-12-12 Vineet Gupta <vgupta@synopsys.com>
892 * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
893 helps codegen generate exceptions even for quiet NaN.
894 * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
895 (get_arc_condition_code): Likewise.
896 (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
897 * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
898 * config/arc/predicates.md (proper_comparison_operator): Likewise.
899 * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
900 (cmpdf_fpu_trap): Likewise.
902 2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
904 * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
905 (cstoredi4): Use TARGET_HARD_FLOAT.
907 2019-12-11 Jakub Jelinek <jakub@redhat.com>
909 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
910 entry from -O3 or later section to -O2 or later section.
911 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
912 option is enabled by default at -O2+ rather than just at -O3.
915 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
916 vect_internal_def, use oprnd1 as is, without trying to cast it.
919 2019-12-11 Martin Sebor <msebor@redhat.com>
921 * builtins.c (compute_objsize): Add an argument and set it to offset
923 * builtins.h (compute_objsize): Add an argument.
924 * tree-object-size.c (addr_object_size): Add an argument and set it
925 to offset into destination.
926 (compute_builtin_object_size): Same.
927 * tree-object-size.h (compute_builtin_object_size): Add an argument.
928 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
929 to offset into destination.
930 (maybe_warn_overflow): New function.
931 (handle_store): Call maybe_warn_overflow to issue warnings.
933 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
935 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
936 crtbegin_no_eh.o if building for the C language.
937 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
939 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
941 [fno-exceptions]: Use crtend_no_eh.o if building for any language
943 * config/msp430/t-msp430: Add -fno-exceptions multilib.
944 * doc/install.texi: Document --disable-no-exceptions multilib configure
946 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
948 2019-12-11 David Malcolm <dmalcolm@redhat.com>
950 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
951 (pretty_printer::clone): New vfunc implementation.
952 * pretty-print.h (format_postprocessor::clone): New pure vfunc
954 (pretty_printer::pretty_printer): New copy-ctor decl.
955 (pretty_printer::clone): New vfunc decl.
957 2019-12-11 David Malcolm <dmalcolm@redhat.com>
959 * function-tests.c (selftest::make_fndecl): Make non-static.
960 * selftest.h (selftest::make_fndecl): New decl.
962 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
965 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
966 multibyte input. Fix off-by-one-bug printing the last byte before a
968 (pp_character): Don't apply line wrapping in the middle of multibyte
970 (test_utf8): New test.
971 (pretty_print_c_tests): Call the new test.
973 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
975 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
977 (ALL_FPU_EXTERNAL): New fgroup.
979 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
980 +simd from architecture specification.
981 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
982 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
983 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
984 (isa_all_fpbits): New bitmap.
985 (arm_option_override): Initialize it.
986 (arm_configure_build_target): If the target isa does not have any
987 FP enabled, do not warn about mismatches in FP-related feature bits.
989 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
991 * real.c (struct arm_bfloat_half_format,
992 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
993 * real.h (arm_bfloat_half_format): New.
995 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
998 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
999 integer mask cmov when available even with TARGET_XOP.
1001 2019-12-10 Jakub Jelinek <jakub@redhat.com>
1003 PR tree-optimization/92891
1004 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
1005 before returning it.
1007 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
1009 PR rtl-optimization/92796
1010 * lra-int.h (lra_risky_transformations_p): Rename to
1011 check_and_force_assignment_correctness_p.
1012 * lra-assigns.c: Ditto.
1013 (lra_assign): Reset check_and_force_assignment_correctness_p.
1014 * lra-constraints.c (lra_risky_transformations_p): Rename to
1015 check_and_force_assignment_correctness_p.
1016 (lra_constraints): Set up check_and_force_assignment_correctness_p
1017 only for the 1st sub-pass.
1018 * lra-eliminations.c (process_insn_for_elimination): Set up
1019 check_and_force_assignment_correctness_p if the insn chnaged its
1022 2019-12-10 Jakub Jelinek <jakub@redhat.com>
1024 PR rtl-optimization/92882
1025 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
1026 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
1030 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
1031 than *jfunc->m_vr to intersect. Formatting fix.
1034 * cfgexpand.c (add_stack_protection_conflicts): Change return type
1035 from void to bool, return true if at least one stack_vars[i].decl
1037 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
1038 (expand_used_vars): Don't call stack_protect_decl_p, instead for
1039 -fstack-protector-strong set gen_stack_protect_signal to true
1040 if add_stack_protection_conflicts returned true. Formatting fixes.
1041 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
1042 out variables or variables not living on the stack don't count.
1043 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
1044 rather than > 8 byte.
1046 * ipa-param-manipulation.c
1047 (ipa_param_body_adjustments::register_replacement): Fix comment typo
1048 - accross -> across.
1049 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
1051 (param_splitting_across_edge): Fix typo in dump message - accross
1054 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
1056 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
1057 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
1058 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
1059 (expand_all_functions): First expand ordered section and then
1061 * profile.c (compute_value_histograms): Error on out of range
1064 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
1066 * predict.c (compute_function_frequency): Check for presence of IPA
1069 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
1071 * varasm.c (default_function_section): Fix confused tests for
1072 tp_first_run reordering.
1074 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1076 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
1077 allow SVE modes in GPRs.
1079 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1081 * config/aarch64/iterators.md (vccore): New iterator.
1082 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
1084 (*vec_series<mode>_plus): Likewise.
1086 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
1088 * omp-low.c (scan_omp_for): Use clause location in warning.
1090 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1092 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
1093 (add_const_value_attribute): Likewise.
1095 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1097 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1098 handling direct_slp_reduc, allow the PHI arguments to have
1099 a different type from the vector elements.
1101 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1103 * tree-vect-stmts.c (vectorizable_condition): Record the loop
1104 masks required for extract-last reductions.
1106 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1108 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
1109 original scalar statement rather than a pattern statement.
1110 (vectorizable_condition): Likewise, in the handling of extract-last
1113 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1115 * tree-vect-loop.c (vectorizable_reduction): Don't use
1116 EXTRACT_LAST_REDUCTION for chained reductions.
1118 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
1120 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
1121 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
1122 second demangled name.
1124 2019-12-10 Jakub Jelinek <jakub@redhat.com>
1126 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
1128 2019-12-10 Martin Liska <mliska@suse.cz>
1130 PR tree-optimization/92862
1131 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
1132 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
1135 2019-12-09 David Malcolm <dmalcolm@redhat.com>
1137 * gcc-rich-location.c
1138 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
1139 label_text ctor call with label_text::borrow.
1140 * gcc-rich-location.h (text_range_label::get_text): Replace
1141 label_text ctor called with false with label_text::borrow.
1143 2019-12-09 David Malcolm <dmalcolm@redhat.com>
1145 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
1147 (selftest::test_diagnostic_show_locus_unknown_location): Remove
1148 initial newline from expected outputs.
1149 (selftest::test_one_liner_simple_caret): Likewise.
1150 (selftest::test_one_liner_caret_and_range): Likewise.
1151 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
1152 (selftest::test_one_liner_fixit_insert_before): Likewise.
1153 (selftest::test_one_liner_fixit_insert_after): Likewise.
1154 (selftest::test_one_liner_fixit_remove): Likewise.
1155 (selftest::test_one_liner_fixit_replace): Likewise.
1156 (selftest::test_one_liner_fixit_replace_non_equal_range):
1158 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
1160 (selftest::test_one_liner_fixit_validation_adhoc_locations):
1162 (selftest::test_one_liner_many_fixits_1): Likewise.
1163 (selftest::test_one_liner_many_fixits_2): Likewise.
1164 (selftest::test_one_liner_labels): Likewise.
1165 (selftest::test_one_liner_simple_caret_utf8): Likewise.
1166 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
1167 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
1169 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
1170 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
1171 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
1172 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
1173 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
1175 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
1177 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
1179 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
1180 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
1181 (selftest::test_one_liner_labels_utf8): Likewise.
1182 (selftest::test_add_location_if_nearby): Likewise.
1183 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
1184 (selftest::test_overlapped_fixit_printing): Likewise.
1185 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
1186 (selftest::test_overlapped_fixit_printing_2): Likewise.
1187 (selftest::test_fixit_insert_containing_newline): Likewise.
1188 (selftest::test_fixit_insert_containing_newline_2): Likewise.
1189 (selftest::test_fixit_replace_containing_newline): Likewise.
1190 (selftest::test_fixit_deletion_affecting_newline): Likewise.
1191 (selftest::test_line_numbers_multiline_range): Likewise.
1192 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
1193 before call to diagnostic_show_locus.
1194 (diagnostic_append_note): Likewise.
1196 2019-12-09 Martin Sebor <msebor@redhat.com>
1200 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
1202 * hash-table.h (hash_table::expand): Use placement new to copy
1203 construct objects in uninitialized storage.
1204 (hash_table::empty_slow): Avoid invoking copy assignment on
1205 uninitialized objects.
1207 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
1209 PR preprocessor/49973
1210 * input.c (location_compute_display_column): New function to help with
1211 multibyte awareness in diagnostics.
1212 (test_cpp_utf8): New self-test.
1213 (input_c_tests): Call the new test.
1214 * input.h (location_compute_display_column): Declare.
1215 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
1216 to all classes and functions.
1217 (enum column_unit): New enum.
1218 (class exploc_with_display_col): New class.
1219 (class layout_point): Convert m_column member to array m_columns[2].
1220 (layout_range::contains_point): Add col_unit argument.
1221 (test_layout_range_for_single_point): Pass new argument.
1222 (test_layout_range_for_single_line): Likewise.
1223 (test_layout_range_for_multiple_lines): Likewise.
1224 (line_bounds::convert_to_display_cols): New function.
1225 (layout::get_state_at_point): Add col_unit argument.
1226 (make_range): Use empty filename rather than dummy filename.
1227 (get_line_width_without_trailing_whitespace): Rename to...
1228 (get_line_bytes_without_trailing_whitespace): ...this.
1229 (test_get_line_width_without_trailing_whitespace): Rename to...
1230 (test_get_line_bytes_without_trailing_whitespace): ...this.
1231 (class layout): m_exploc changed to exploc_with_display_col from
1232 plain expanded_location.
1233 (layout::get_linenum_width): New accessor member function.
1234 (layout::get_x_offset_display): Likewise.
1235 (layout::calculate_linenum_width): New subroutine for the constuctor.
1236 (layout::calculate_x_offset_display): Likewise.
1237 (layout::layout): Use the new subroutines. Add multibyte awareness.
1238 (layout::print_source_line): Add multibyte awareness.
1239 (layout::print_line): Likewise.
1240 (layout::print_annotation_line): Likewise.
1241 (line_label::line_label): Likewise.
1242 (layout::print_any_labels): Likewise.
1243 (layout::annotation_line_showed_range_p): Likewise.
1244 (get_printed_columns): Likewise.
1245 (class line_label): Rename m_length to m_display_width.
1246 (get_affected_columns): Rename to...
1247 (get_affected_range): ...this; add col_unit argument and multibyte
1249 (class correction): Add m_affected_bytes and m_display_cols
1250 members. Rename m_len to m_byte_length for clarity. Add multibyte
1251 awareness throughout.
1252 (correction::insertion_p): Add multibyte awareness.
1253 (correction::compute_display_cols): New function.
1254 (correction::ensure_terminated): Use new member name m_byte_length.
1255 (line_corrections::add_hint): Add multibyte awareness.
1256 (layout::print_trailing_fixits): Likewise.
1257 (layout::get_x_bound_for_row): Likewise.
1258 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
1259 with _utf8 suffix removed, testing multibyte awareness.
1260 (test_one_liner_caret_and_range_utf8): Likewise.
1261 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
1262 (test_one_liner_fixit_insert_before_utf8): Likewise.
1263 (test_one_liner_fixit_insert_after_utf8): Likewise.
1264 (test_one_liner_fixit_remove_utf8): Likewise.
1265 (test_one_liner_fixit_replace_utf8): Likewise.
1266 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
1267 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
1268 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
1269 (test_one_liner_many_fixits_1_utf8): Likewise.
1270 (test_one_liner_many_fixits_2_utf8): Likewise.
1271 (test_one_liner_labels_utf8): Likewise.
1272 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
1273 (test_overlapped_fixit_printing_utf8): Likewise.
1274 (test_overlapped_fixit_printing): Adapt for changes to
1275 get_affected_columns, get_printed_columns and class corrections.
1276 (test_overlapped_fixit_printing_2): Likewise.
1277 (test_linenum_sep): New constant.
1278 (test_left_margin): Likewise.
1279 (test_offset_impl): Helper function for new test.
1280 (test_layout_x_offset_display_utf8): New test.
1281 (diagnostic_show_locus_c_tests): Call new tests.
1283 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
1285 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
1286 TYPE_CANONICAL from the element type only if it is true. Remove a few
1287 obsolete lines and adjust recursive call.
1288 (fld_process_array_type): Adjust call to build_array_type_1.
1289 (build_array_type): Likewise.
1290 (build_nonshared_array_type): Likewise.
1292 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
1294 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
1295 %s to %o in asm output.
1296 (gather<mode>_insn_2offsets<exec>): Likewise.
1298 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
1300 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
1303 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1305 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
1307 (unnamed define_insn_and_split): Delete.
1308 (unnamed define_insn): Delete.
1309 (unnamed define_insn): Delete.
1310 (unnamed define_split): Delete.
1312 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
1314 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
1317 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
1320 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
1321 dataflow luids once basic blocks have been reordered.
1322 * haifa-sched.c (reemit_notes): Create df insn record for each
1324 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
1325 insn has an insn record before trying to use it.
1327 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
1329 * common/config/i386/i386-common.c
1330 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
1331 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
1332 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
1333 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
1334 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
1335 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
1336 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
1337 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
1338 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
1339 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
1340 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
1341 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
1342 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
1343 OPTION_MASK_ISA_AVX512BF16_UNSET,
1344 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
1345 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
1346 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
1347 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
1348 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
1349 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
1350 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
1351 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
1352 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1353 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1354 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
1355 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
1356 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
1357 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
1358 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
1359 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
1360 OPTION_MASK_ISA_ENQCMD): Ditto.
1361 * config/i386/i386-builtin.def
1362 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1363 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1364 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
1365 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
1366 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
1367 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
1368 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
1369 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
1370 * config/i386/i386-c.c
1371 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
1372 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
1373 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
1374 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
1375 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
1376 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
1377 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
1378 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
1379 OPTION_MASK_ISA_ENQCMD): Ditto.
1380 * config/i386/i386-option.c: Ditto
1381 * config/i386/i386.opt: Ditto..
1382 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
1383 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
1384 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
1385 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
1386 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
1387 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
1388 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
1389 TARGET_ISA_ENQCMD): Ditto.
1391 2019-12-09 Sudakshina Das <sudi.das@arm.com>
1392 Richard Sandiford <richard.sandiford@arm.com>
1394 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
1395 vect_model_simple_cost call on scalar_shift_arg.
1397 2019-12-09 Jakub Jelinek <jakub@redhat.com>
1399 PR tree-optimization/92834
1400 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
1401 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
1403 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1405 PR tree-optimization/89007
1406 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
1407 target support available, generate code to distribute rshift over plus
1410 2019-12-09 Martin Liska <mliska@suse.cz>
1413 * cgraph.c (symbol_table_test::symbol_table_test): Fix
1415 * cgraph.h (symtab_node::symtab_node): New constructor.
1416 (cgraph_node::cgraph_node): Likewise.
1417 (varpool_node::varpool_node): Likewise.
1418 (symbol_table::allocate_cgraph_symbol): Use newly
1419 created constructor.
1420 (symbol_table::allocate_cgraph_symbol): Remove.
1421 * cgraphunit.c (symtab_terminator): Likewise.
1422 * varpool.c (varpool_node::create_empty): Use newly
1423 created constructor.
1425 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
1428 * config/i386/sse.md
1429 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
1430 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
1431 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
1432 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
1433 * config/i386/i386.c (ix86_print_operand): New operand substitution.
1434 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
1436 (ix86_expand_sse_cmp): Relax condition for integer mask from
1437 512-bit vector to all 128/256/512-bit vector. Delete code gen
1438 for avx512f compare patterns since we have generic pattern now.
1439 (ix86_expand_sse_movcc): Adjust condition and codegen for
1441 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
1442 when corresponding vector compare is available.
1444 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
1447 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
1449 * config/nios2/linux.h (LINK_EH_SPEC): Define.
1451 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
1453 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
1454 * cgraph.h (cgrpah_node): Likewise.
1455 (tp_first_run_node_cmp): Deeclare.
1456 * cgraphunit.c (node_cmp): Rename to ...
1457 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
1458 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
1459 (expand_all_functions): Collect tp_first_run and normal functions to
1460 two vectors so the other functions remain sorted. Do not check for
1461 flag_profile_reorder_functions it is function local flag.
1462 * profile.c (compute_value_histograms): Update tp_first_run printing.
1464 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
1466 * opts.c (common_handle_option): Do not clear ipa_reference for
1469 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
1471 * ipa-split.c (split_function): Preserve 0 tp_first_run.
1473 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
1475 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
1478 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
1480 PR tree-optimization/92860
1481 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
1484 2019-12-07 Marek Polacek <polacek@redhat.com>
1486 PR c++/91678 - wrong error with decltype and location wrapper.
1487 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
1489 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
1492 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
1493 sure to pass a valid inner mode in calls to simplify_gen_subreg.
1495 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
1496 David Malcolm <dmalcolm@redhat.com>
1497 Jakub Jelinek <jakub@redhat.com>
1500 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
1501 instead of ST sequence to terminate OSC 8 strings.
1503 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
1504 Vladimir Makarov <vmakarov@redhat.com>
1506 PR rtl-optimization/92176
1507 * lra.c (simplify_subreg_regno): Don't permit unconditional
1508 changing mode for LRA too.
1510 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
1512 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
1513 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
1514 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1517 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
1519 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
1522 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
1524 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
1525 (VEC_1REG_ALT): Likewise.
1526 (VEC_ALL1REG_MODE): New mode iterator.
1527 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
1528 (VEC_1REG_INT_ALT): Likewise.
1529 (VEC_ALL1REG_INT_MODE): New mode interator.
1530 (VEC_ALL1REG_INT_ALT): Likewise.
1531 (VEC_REG_MODE): Remove V64QI and V64HI.
1532 (VEC_ALLREG_MODE): New mode interator.
1533 (vec_merge): Change to VEC_ALLREG_MODE.
1534 (vec_merge_with_clobber): Likewise.
1535 (vec_merge_with_vcc): Likewise.
1536 (mov<mode>): Likewise.
1537 (mov<mode>_unspec): Likewise.
1538 (*mov<mode>): Change to VEC_ALL1REG_MODE.
1539 (mov<mode>_exec): Likewise.
1540 (*mov<mode>_exec_match): Likewise.
1541 (mov<mode>_sgprbase): Likewise.
1542 (reload_in<mode>): Change to VEC_ALLREG_MODE.
1543 (reload_out<mode>): Likewise.
1544 (scalar address splits): Likewise.
1545 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
1546 (vec_set<mode>): Change to VEC_ALLREG_MODE.
1547 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
1548 (vec_duplicate<mode><exec>): Likewise.
1549 (vec_extract<mode><scalar_mode>): Likewise.
1550 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
1551 (gather_load<mode>): Likewise.
1552 (gather<mode>_exec): Likewise.
1553 (gather<mode>_expr<exec>): Likewise.
1554 (gather<mode>_insn_1offset<exec>): Likewise.
1555 (gather<mode>_insn_1offset_ds<exec>): Likewise.
1556 (gather<mode>_insn_2offsets<exec>): Likewise.
1557 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
1558 (VEC_INT_MODE): Remove V64QI and V64HI.
1559 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
1560 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
1562 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
1563 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
1564 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
1565 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
1566 (maskstore<mode>di): Likewise.
1567 (mask_gather_load<mode>): Likewise.
1568 (mov_from_lane63_<mode>): Likewise.
1569 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
1570 and V64HImode vectorization.
1571 (gcn_related_vector_mode): New function.
1572 (TARGET_VECTORIZE_RELATED_MODE): New define.
1574 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
1575 Kwok Cheung Yeung <kcy@codesourcery.com>
1577 * omp-low.c (lower_omp_target): For optional arguments, deref once
1578 more to obtain the type.
1580 2019-12-06 Richard Biener <rguenther@suse.de>
1582 * match.pd (nop_convert): Remove empty match. Use nop_convert?
1585 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
1587 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
1588 for empty vectors. Avoid using ordered_remove and instead
1589 shuffle the vector as we go.
1591 2019-12-06 Richard Biener <rguenther@suse.de>
1593 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
1594 VIEW_CONVERT{0,1,2}.
1595 (expr::opt_grp): Add and initialize.
1596 (lower_opt_convert): Rename to ...
1597 (lower_opt): ... and work on opt_grp, simply switching operations
1598 from being optional to being present or not.
1599 (has_opt_convert): Rename to ...
1600 (has_opt): ... and adjust.
1601 (parser::parse_operation): Return the optional opt_grp,
1602 remove special-casing of conditional operations and more generally
1604 (parser::parse_expr): Stick on the parsed opt_grp and perform
1606 (parser::parse_for): Remove now unnecessary code.
1608 * doc/match-and-simplify.texi: Mention ? now works on all
1609 unary operations and also match predicates.
1611 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
1613 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
1614 functions, not inline clones.
1616 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
1618 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
1620 2019-12-06 Richard Biener <rguenther@suse.de>
1622 * genmatch.c (c_expr::gen_transform): Emit newlines from line
1623 number changes rather than after every semicolon.
1625 2019-12-06 Richard Biener <rguenther@suse.de>
1627 PR tree-optimization/92819
1628 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
1629 into the last lane. For two-element vectors try inserting
1630 into the last lane when inserting into the first fails.
1632 2019-12-06 Jakub Jelinek <jakub@redhat.com>
1634 * common.opt (fprofile-partial-training): Terminate description with
1637 2019-12-05 Martin Sebor <msebor@redhat.com>
1640 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
1641 left uninitialized by get_addr_base_and_unit_offset on failure.
1643 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
1645 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
1646 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
1647 (detect_type_change): Likewise.
1648 (detect_type_change_ssa): Likewise.
1649 (ipa_analyze_virtual_call_uses): Update.
1651 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
1653 * config/nios2/linux.h (LINK_EH_SPEC): Define.
1655 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
1657 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
1659 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
1661 * cgraphclones.c (localize_profile): New function.
1662 (cgraph_node::create_clone): Use it for partial profiles.
1663 * common.opt (fprofile-partial-training): New flag.
1664 * doc/invoke.texi (-fprofile-partial-training): Document.
1665 * ipa-cp.c (update_profiling_info): For partial profiles do not
1666 set function profile to zero.
1667 * profile.c (compute_branch_probabilities): With partial profile
1668 watch if edge count is zero and turn all probabilities to guessed.
1669 (compute_branch_probabilities): For partial profiles do not apply
1670 profile when entry count is zero.
1671 * tree-profile.c (tree_profiling): Only do value_profile_transformations
1672 when profile is read.
1674 2019-12-05 Sudakshina Das <sudi.das@arm.com>
1676 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
1677 check from if condition.
1679 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
1681 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
1682 and Fortran's optional arguments, unconditionally add the is-present
1683 condition before the libgomp call.
1685 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
1688 * tree-core.h (OEP_BITWISE): New flag.
1689 * fold-const.c (operand_compare::operand_equal_p): Handle it.
1690 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
1692 2019-12-05 Richard Biener <rguenther@suse.de>
1695 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
1696 heuristics on what don't care element to choose.
1697 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
1699 2019-12-05 Martin Liska <mliska@suse.cz>
1701 PR gcov-profile/92817
1702 * coverage.c (build_gcov_exit_decl): Remove superfluous
1705 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1707 * config/msp430/msp430.md (cbranch<mode>4): Use
1708 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
1709 dest operand of CMP instruction.
1710 (cbranchpsi4_real): Likewise.
1711 (cbranchqi4_real): Likewise.
1712 (cbranchhi4_real): Likewise.
1713 (cbranchpsi4_reversed): Likewise.
1714 (cbranchqi4_reversed): Likewise.
1715 (cbranchhi4_reversed): Likewise.
1717 2019-12-05 Richard Biener <rguenther@suse.de>
1719 PR tree-optimization/92803
1720 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1721 invariant vector construction.
1723 2019-12-05 Martin Liska <mliska@suse.cz>
1725 PR gcov-profile/91971
1726 * coverage.c (coverage_init): Mangle full path
1727 only when -fprofile-dir is used.
1729 2019-12-05 Jakub Jelinek <jakub@redhat.com>
1732 * config/i386/i386.md (movstrict<mode>): Move test for
1733 TARGET_PARTIAL_REG_STALL and not optimizing for size from
1734 expander's condition to the body - FAIL; in that case.
1736 2019-12-03 Martin Sebor <msebor@redhat.com>
1739 * builtins.c (gimple_call_alloc_size): New function.
1740 (compute_objsize): Add argument. Call gimple_call_alloc_size.
1741 Handle variable offsets and indices.
1742 * builtins.h (gimple_call_alloc_size): Declare.
1743 (compute_objsize): Add argument.
1744 * gimple-ssa-warn-restrict.c: Remove assertions.
1745 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
1747 2019-12-04 Julian Brown <julian@codesourcery.com>
1749 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
1751 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
1754 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
1756 (altivec_overloaded_builtins): Move to rs6000-call.c.
1757 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
1759 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
1760 (altivec_overloaded_builtins): Moved from rs6000-c.c.
1761 (rs6000_common_init_builtins): Do no define builtins that overload
1762 builtins that have been disabled.
1764 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
1766 * config/arm/arm.c (arm_option_override_internal):
1767 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
1769 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
1771 * config/aarch64/aarch64.c
1772 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
1773 (thunderx_tunings): Likewise.
1774 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
1775 (thunderx2t99_tunings): Likewise.
1776 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
1777 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
1779 2019-12-04 Richard Biener <rguenther@suse.de>
1781 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
1782 empty CTOR and memset partial-def registering. Take advantage
1783 of fancy offset analysis in memset handling.
1785 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
1787 * fold-const.c (native_encode_vector_part): Handle
1788 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
1789 (native_decode_vector_tree): Delete, moving the bulk of the code to...
1790 (native_interpret_vector_part): ...this new function. Use a pointer
1791 and length instead of a vec<> and start index.
1792 (native_interpret_vector): Use native_interpret_vector_part.
1793 (fold_view_convert_vector_encoding): Likewise.
1795 2019-12-04 Richard Biener <rguenther@suse.de>
1797 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
1798 non-constant defs in the most trivial way.
1799 (vn_reference_lookup_3): Also push down SSA partial defs.
1801 2019-12-04 Martin Liska <mliska@suse.cz>
1803 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
1804 Initialize count of newly created BB.
1806 2019-12-04 Jakub Jelinek <jakub@redhat.com>
1808 PR tree-optimization/92734
1809 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
1810 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
1812 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
1815 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
1816 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
1818 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1820 * ipa-fnsummary.c: Include tree-into-ssa.h.
1821 (compute_fn_summary): Call update_ssa.
1823 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1825 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
1826 is set only for symbol in comdat group.
1827 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
1829 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
1831 * cgraph.c: Include tree-into-ssa.h
1832 (cgraph_node::get_body): Call update_ssa.
1833 * cgraphunit.c (cgraph_node::expand): Likewise.
1834 * lto-streamer-in.c (input_function): Do not call update_ssa.
1836 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
1838 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
1839 an array element size if array_element_size is already an invariant.
1840 Similarly don't gimplify and install a field offset if
1841 component_ref_field_offset is already an invariant.
1843 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
1845 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
1846 with POLY_INT_CST size is made to a fixed-size object, force the
1847 object to live in memory.
1849 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
1851 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
1854 2019-12-03 Richard Biener <rguenther@suse.de>
1856 PR tree-optimization/92758
1857 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
1858 operation on uniform vectors.
1860 2019-12-03 Richard Biener <rguenther@suse.de>
1862 PR tree-optimization/92645
1863 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
1864 from or to a properly aligned register variable.
1866 2019-12-03 Matthias Klose <doko@ubuntu.com>
1868 * Makefile.in (SOURCES): Add doc/lto-dump.1.
1869 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1870 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1872 2019-12-03 Richard Biener <rguenther@suse.de>
1874 PR tree-optimization/92751
1875 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1876 when a clobber ends up in the partial-def vector.
1877 (vn_reference_lookup_3): Let clobbers be handled by the
1878 assignment from CTOR handling.
1880 2019-12-03 Jakub Jelinek <jakub@redhat.com>
1882 PR tree-optimization/92734
1883 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1884 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1887 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
1888 Jakub Jelinek <jakub@redhat.com>
1891 * config/i386/i386.md (peephole2 for *swap<mode>): Use
1892 general_reg_operand predicates instead of register_operand.
1894 2019-12-03 Richard Biener <rguenther@suse.de>
1896 PR tree-optimization/92645
1897 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1898 a full def of a vector via a BIT_INSERT_EXPR.
1900 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1902 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1904 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1907 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1910 * fold-const.c (fold_convertible_p): Check vector types more
1913 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1915 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1916 (aarch64_expand_mov_immediate): Use it when attempting to measure
1917 the length of an SVE vector.
1918 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1921 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1923 * config/aarch64/aarch64-sve-builtins.h
1924 (gimple_folder::force_vector): Declare.
1925 * config/aarch64/aarch64-sve-builtins.cc
1926 (gimple_folder::force_vector): New function.
1927 * config/aarch64/aarch64-sve-builtins-base.cc
1928 (svcmp_impl::fold): Likewise.
1929 (svdup_impl::fold): Handle svdup_z too.
1931 2019-12-02 Martin Liska <mliska@suse.cz>
1933 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1935 (debug_tree_odr_name): New.
1936 * ipa-utils.h (get_odr_name_for_type): New.
1938 2019-12-02 Richard Biener <rguenther@suse.de>
1940 PR tree-optimization/92742
1941 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1942 touch the def-type but verify it is consistent with the
1945 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1947 PR tree-optimization/92712
1948 * match.pd ((A * B) +- A -> (B +- 1) * A,
1949 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1950 even when we don't know anything about range of A, but do know
1951 something about range of B and the simplification won't introduce
1954 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1957 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1958 (ipa-cp-min-recursive-probability): Likewise.
1959 * params.opt (ipa-cp-max-recursive-depth): New.
1960 (ipa-cp-min-recursive-probability): Likewise.
1961 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1962 val_p and unlimited.
1963 (self_recursively_generated_p): New function.
1964 (get_val_across_arith_op): Likewise.
1965 (propagate_vals_across_arith_jfunc): Add constant propagation for
1966 self-recursive function.
1967 (incorporate_penalties): Do not penalize pure self-recursive function.
1968 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1969 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1970 (get_info_about_necessary_edges): Relax hotness check for edge to
1971 self-recursive function.
1972 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1974 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1978 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1979 objects of flexible types to be small if they have internal linkage
1980 or are declared extern.
1981 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1982 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1983 instead of the size of the object initializer.
1984 * tree.c (flexible_array_type_p): Move from C front end, and
1985 generalize to handle fields in non-C structures.
1986 * tree.h (flexible_array_type_p): Declare.
1988 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1990 * profile-count.h (profile_count::operator<): Use IPA value for
1992 (profile_count::operator>): Likewise.
1993 (profile_count::operator<=): Likewise.
1994 (profile_count::operator>=): Likewise.
1995 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1997 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1999 * ipa-inline.c (compute_max_insns): Return int64_t.
2000 (inline_small_functions): Simplify.
2002 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
2004 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
2007 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
2009 * cgraph.h (symtab_node): Add symver flag.
2010 * cgraphunit.c (process_symver_attribute): New.
2011 (process_common_attributes): Use process_symver_attribute.
2012 * lto-cgraph.c (lto_output_node): Stream symver.
2013 (lto_output_varpool_node): Stream symver.
2014 (input_overwrite_node): Stream symver.
2015 (input_varpool_node): Stream symver.
2016 * output.h (do_assemble_symver): Decalre.
2017 * symtab.c (symtab_node::dump_base): Dump symver.
2018 (symtab_node::verify_base): Verify symver.
2019 (symtab_node::resolve_alias): Handle symver.
2020 * varasm.c (do_assemble_symver): New function.
2021 * varpool.c (varpool_node::assemble_aliases): Use it.
2022 * doc/extend.texi: (symver attribute): Document.
2023 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
2025 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
2027 * target.h (type_context_kind): New enum.
2028 (verify_type_context): Declare.
2029 * target.def (verify_type_context): New target hook.
2030 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
2031 * doc/tm.texi: Regenerate.
2032 * tree.c (verify_type_context): New function.
2033 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
2035 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
2037 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
2038 (TARGET_VERIFY_TYPE_CONTEXT): Define.
2040 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
2042 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
2043 * cgraph.h (cgraph_node): Add unit_id and
2044 merged_extern_inline.
2045 (symbol_table): Add max_unit.
2046 (symbol_table::symbol_table): Initialize it.
2047 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
2048 merged_comdat, merged_extern_inline.
2049 (cgraph_node::create_clone): Likewise.
2050 (cgraph_node::create_version_clone): Likewise.
2051 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
2053 * ipa-fnsummary.h (cross_module_call_p): New inline function.
2054 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
2055 * ipa-inline.c (inline_small_functions): Likewise.
2056 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
2057 copy merged_comdat and merged_extern_inline.
2058 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
2059 merged_extern_inline and unit_id.
2060 (input_overwrite_node): Stream in these.
2061 (input_cgraph_1): Set unit_base.
2062 * lto-streamer.h (lto_file_decl_data): Add unit_base.
2063 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
2065 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
2067 * gcc.c (process_command): Only warn about an ineffective `-x'
2068 option if any input files have actually been supplied.
2070 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
2072 * doc/install.texi (Options specification): Remove the list of
2073 target library subdirectories supporting
2074 `--enable-version-specific-runtime-libs'. Document defaults for
2077 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
2079 PR rtl-optimization/92283
2080 * lra.c (lra): Update reg notes after inheritance sub-pass and
2081 before constraint sub-pass.
2083 2019-11-29 Richard Biener <rguenther@suse.de>
2085 PR tree-optimization/91003
2086 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
2087 operand number, avoid handling the non-condition operands of
2088 COND_EXPRs as comparisons.
2089 (vect_get_constant_vectors): Pass down the operand number.
2090 (vect_get_slp_defs): Likewise.
2092 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
2094 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
2095 generic_expr_could_trap_p to check if the condition of COND_EXPR or
2096 VEC_COND_EXPR can trap.
2098 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2100 PR tree-optimization/92677
2101 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
2102 to zero when dissolving a group of strided accesses.
2104 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2106 PR tree-optimization/92596
2107 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
2109 (vectorizable_operation): Likewise, instead of relying on
2110 vect_get_mask_type_for_stmt to do this.
2111 (vect_get_vector_types_for_stmt): Always return a vector type
2112 immediately, rather than deferring the choice for boolean results.
2113 Use a vector mask type instead of a normal vector if
2114 vect_use_mask_type_p.
2115 (vect_get_mask_type_for_stmt): Delete.
2116 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
2117 mask_producers argument and special boolean_type_node handling.
2118 (vect_determine_vf_for_stmt): Remove mask_producers argument and
2119 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
2120 (vect_determine_vectorization_factor): Update call accordingly.
2121 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
2122 boolean_type_node handling.
2123 (vect_slp_analyze_node_operations_1): Likewise.
2125 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2127 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
2128 (vect_use_mask_type_p): New function.
2129 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
2130 mask precision to the pattern statement.
2131 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
2132 and use it to initialize the new stmt's mask precision.
2133 (search_type_for_mask_1): Delete.
2134 (search_type_for_mask): Replace with...
2135 (integer_type_for_mask): ...this new function. Use the information
2136 cached in the stmt_vec_info.
2137 (vect_recog_bool_pattern): Update accordingly.
2138 (build_mask_conversion): Pass the scalar type associated with the
2139 mask type to append_pattern_def_seq.
2140 (vect_recog_mask_conversion_pattern): Likewise. Call
2141 integer_type_for_mask instead of search_type_for_mask.
2142 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
2143 of search_type_for_mask.
2144 (possible_vector_mask_operation_p): New function.
2145 (vect_determine_mask_precision): Likewise.
2146 (vect_determine_stmt_precisions): Call it.
2148 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2150 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
2151 the slp_tree parameter with a group size parameter.
2152 (vect_get_mask_type_for_stmt): Likewise.
2153 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
2154 (vect_get_mask_type_for_stmt): Likewise.
2155 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
2158 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2160 * tree-vect-stmts.c (vectorizable_operation): Punt early
2161 on codes that are handled elsewhere.
2163 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2165 * doc/sourcebuild.texi (vect_bool_cmp): Document.
2166 * tree-vect-patterns.c (search_type_for_mask_1): If neither
2167 operand to a boolean comparison is a natural vector mask,
2168 handle both operands like normal integers instead.
2170 2019-11-29 Richard Biener <rguenther@suse.de>
2172 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
2173 out early for too large objects.
2175 2019-11-29 Martin Jambor <mjambor@suse.cz>
2178 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
2179 the summary only if the summary exists.
2180 (find_more_scalar_values_for_callers_subset): Check node_dead in
2181 the summary only if the summary exists.
2182 (ipcp_store_bits_results): Ignore nodes without lattices.
2183 (ipcp_store_vr_results): Likewise.
2184 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
2185 header files required by them.
2186 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
2188 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
2190 PR tree-optimization/92710
2191 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
2192 vector mask arguments.
2194 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
2196 * profile-count.c (profile_count::to_cgraph_frequency,
2197 profile_count::to_sreal_scale): Check for compaibility of counts.
2198 * profile-count.h (compatible_p): Make public; add checking for
2199 global0 versus global types.
2200 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
2202 2019-11-29 Richard Biener <rguenther@suse.de>
2204 PR tree-optimization/92715
2205 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
2206 out for uniform vectors and source vectors with less elements
2207 than the destination.
2209 2019-11-29 Martin Liska <mliska@suse.cz>
2212 * ipa-devirt.c (types_same_for_odr): Check for existence
2213 of TYPE_NAMEs first.
2215 2019-11-29 Richard Biener <rguenther@suse.de>
2217 PR tree-optimization/92704
2218 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
2219 in loops performing only loads.
2221 2019-11-29 Julian Brown <julian@codesourcery.com>
2223 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
2224 BT_DFLOAT128_PTR) Remove.
2225 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
2226 TI_DFLOAT128_PTR_TYPE): Remove.
2227 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
2228 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
2229 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
2230 dfloat128_ptr_type_node): Remove macros.
2232 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2234 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
2236 (*movdi_internal64): Ditto.
2238 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2241 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
2242 indexed_or_indirect_operand to be memory_operand.
2243 (bswap<mode>2_store for HSI): Ditto.
2244 (bswapdi2_load): Ditto.
2245 (bswapdi2_store): Ditto.
2247 2019-11-28 Martin Liska <mliska@suse.cz>
2250 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
2251 headers for translation.
2253 2019-11-28 Martin Liska <mliska@suse.cz>
2256 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
2259 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2261 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
2264 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2266 * profile-count.c (profile_count::combine_with_ipa_count): Return
2267 uninitialized count if called on ininitialized count.
2269 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2271 * ipa-inline-transform.c (inline_transform): Scale profile before
2274 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2276 * profile-count.h (profile_count::max): Work on profiles of different
2278 (profile_count::apply_scale): Be sure that ret is not local or global0
2279 type if num is global.
2281 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2283 * profile-count.h (profile_count::max): Work on profiles of different
2285 (profile_count::apply_scale): Be sure that ret is not local or global0
2286 type if num is global.
2288 2019-11-28 Martin Jambor <mjambor@suse.cz>
2291 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
2293 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
2294 Removed trailig whitespace.
2296 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2298 * profile-count.h (profile_count::combine_with_ipa_count_within):
2300 * profile-count.c (profile_count::combine_with_ipa_count_within):
2302 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
2305 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2307 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
2308 of counters are done same way.
2310 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2312 * ipa-cp.c (update_profiling_info): Fix scaling.
2314 2019-11-28 Richard Biener <rguenther@suse.de>
2316 PR tree-optimization/92645
2317 * tree-inline.c (remap_gimple_stmt): When the return value
2318 is not wanted, elide GIMPLE_RETURN.
2320 2019-11-28 Richard Biener <rguenther@suse.de>
2322 PR tree-optimization/92645
2323 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
2324 conversions inside a mode class. Remove restriction on
2325 preserving the element size.
2326 (simplify_vector_constructor): Deal with the above and for
2327 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
2328 and VEC_PACK_TRUNC_EXPR.
2330 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
2332 Must use push insn to pass varargs arguments of DFmode because
2333 otherwise the middle-end generates wrong code.
2336 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
2338 2019-11-28 Jakub Jelinek <jakub@redhat.com>
2340 PR tree-optimization/92691
2341 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
2342 in function comment.
2343 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
2344 calls, return !handle_printf_call rather than always returning true.
2345 (check_and_optimize_stmt): Describe return value meaning in function
2346 comment. Formatting fix.
2348 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
2350 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
2351 combination of globa0 and global counters..
2353 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
2356 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
2357 by VECTOR_UNIT_NONE_P instead.
2359 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
2361 * config/i386/sse.md (avx512f_maskcmp<mode>3):
2362 Refine VF to VF_AVX512VL.
2364 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
2366 * config/rs6000/rs6000.md (movsi_internal): Reformat.
2367 (movdi_internal64): Reformat.
2369 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
2372 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
2373 builtin if we don't have an actual type.
2374 (builtin_function_type): If the builtin function uses a DFP type
2375 and decimal float has been disabled, then return NULL_TREE.
2377 2019-11-27 Jakub Jelinek <jakub@redhat.com>
2379 PR rtl-optimization/92510
2380 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
2381 of comparison into a comparison with different mode if both imode and
2382 omode are scalar integral modes.
2384 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
2386 PR rtl-optimization/90007
2387 * recog.c (constrain_operands): Permit hard registers too for
2388 memory when LRA is used.
2390 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
2392 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
2393 between Coldfire and regular m68k.
2394 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
2396 2019-11-27 Richard Biener <rguenther@suse.de>
2398 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2399 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
2400 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2401 * optabs-tree.c (supportable_convert_operation): Do not call
2402 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
2403 * optabs-tree.h (supportable_convert_operation): Adjust.
2404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2405 * doc/tm.texi: Regenerate.
2406 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
2407 * tree-vect-generic.c (expand_vector_conversion): Likewise.
2408 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
2409 unused decl parameter and adjust.
2410 (vect_create_vectorized_promotion_stmts): Likewise.
2411 (vectorizable_conversion): Adjust.
2413 2019-11-27 Richard Biener <rguenther@suse.de>
2415 PR tree-optimization/92690
2416 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
2417 converting elements not originally converted.
2419 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
2422 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
2423 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
2424 mpfr_rnd_t instead of mp_rnd_t.
2425 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
2426 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
2427 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
2428 Use mpfr_exp_t instead of mp_exp_t.
2429 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
2430 MPFR_RNDx instead of GMP_RNDx.
2431 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
2432 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
2433 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
2434 of mp_rnd_t and remove MPFR_RNDx poisoning.
2435 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
2437 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
2439 PR tree-optimization/91790
2440 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
2441 DR for vect_setup_realignment when first_stmt_info is different
2442 from first_stmt_info_for_drptr.
2444 2019-11-27 Richard Biener <rguenther@suse.de>
2446 PR tree-optimization/92645
2447 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2448 CTORs with just a subset of the original vectors.
2450 2019-11-27 Richard Biener <rguenther@suse.de>
2453 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
2454 edges and instead record blocks in bitmap.
2455 (gimple_expand_calls_inline): Adjust.
2456 (fold_marked_statements): Delay EH cleanup until all folding is
2458 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
2461 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
2463 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
2465 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
2468 2019-11-27 Jakub Jelinek <jakub@redhat.com>
2471 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
2473 2019-11-26 Martin Sebor <msebor@redhat.com>
2475 PR tree-optimization/92683
2476 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
2477 inadvertently removed in a previous change. Rename local variable
2480 2019-11-26 Richard Biener <rguenther@suse.de>
2483 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
2486 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
2488 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
2490 2019-11-26 Jakub Jelinek <jakub@redhat.com>
2492 PR tree-optimization/92644
2493 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
2494 next to INTEGER_CST checks.
2496 2019-11-26 Richard Biener <rguenther@suse.de>
2498 PR tree-optimization/92645
2499 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
2500 do not build the operation from scalars if the operand is.
2502 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
2504 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
2505 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
2508 2019-11-25 Martin Liska <mliska@suse.cz>
2510 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
2511 up used dump message.
2513 2019-11-25 Martin Liska <mliska@suse.cz>
2516 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
2517 too strict checking assert.
2519 2019-11-25 Joseph Myers <joseph@codesourcery.com>
2522 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
2523 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
2524 error_mark_node if corresponding global tree node is NULL.
2525 * tree.c (build_common_tree_nodes): Do not initialize
2526 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
2527 decimal floating-point not supported.
2529 2019-11-25 Joseph Myers <joseph@codesourcery.com>
2531 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
2534 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
2536 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
2537 Replace code for non-CONST_INT constants with gcc_unreachable.
2538 * config/m68k/m68k.md (cbranchdi): Don't generate individual
2540 (CMPMODE): New mode_iterator.
2541 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
2543 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
2545 (cmp<mode>_68881): Remove 'F' constraint from first comparison
2547 (bit test insns patterns): Use nonimmediate_operand, not
2548 register_operand, for source operands that allow memory in
2550 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
2551 Use register_operand, not nonimmediate_operand, for the
2553 (DBCC): New mode_iterator.
2554 (dbcc peepholes): Use it to reduce duplication.
2555 (trap): Use const_true_rtx, not const1_rtx.
2556 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
2557 from m68k_subword_comparison_operand and changed to handle
2561 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
2563 (m68k_init_cc): New declaration.
2564 (m68k_output_compare_di, m68k_output_compare_si)
2565 (m68k_output_compare_hi, m68k_output_compare_qi)
2566 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
2567 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
2568 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
2569 m68k_output_branch_float, m68k_output_branch_float_rev):
2571 (valid_dbcc_comparison_p_2, flags_in_68881)
2572 (output_btst): Remove declaration.
2573 * config/m68k/m68k.c (INCLDUE_STRING): Define.
2574 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
2575 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
2576 (flags_compare_op0, flags_compare_op1, flags_operand1,
2577 flags_operand2, flags_valid): New static variables.
2578 (m68k_find_flags_value, m68k_init_cc): New functions.
2579 (handle_flags_for_move, m68k_asm_final_postscan_insn,
2580 remember_compare_flags): New static functions.
2581 (output_dbcc_and_branch): New argument CODE. Use it, and add
2582 PLUS and MINUS to the possible codes. All callers changed.
2583 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
2584 and INSN arguments, add CODE arg. Return the comparison code
2585 to use. All callers changed. Use CODE instead of
2586 next_insn_tests_no_inequality, and replace cc_status management
2587 with changing the return code.
2588 (m68k_rtx_costs): Instead of testing for COMPARE, test for
2589 RTX_COMPARE or RTX_COMM_COMPARE.
2590 (output_move_simode, output_move_qimode): Call
2591 handle_flags_for_move.
2592 (notice_update_cc): Delete function.
2593 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
2594 m68k_output_compare_hi, m68k_output_compare_qi,
2595 m68k_output_compare_fp, m68k_output_branch_integer,
2596 m68k_output_branch_integer_rev, m68k_output_scc,
2597 m68k_output_branch_float, m68k_output_branch_float_rev,
2598 m68k_output_scc_float): New functions.
2599 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
2600 once at the start, and set flags_valid and flags_operand1 if the
2602 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
2603 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
2605 (CC_STATUS_INIT): Define.
2606 * config/m68k/m68k.md (flags_valid): New define_attr.
2607 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
2608 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
2609 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
2610 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
2611 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
2612 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
2613 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
2614 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
2615 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
2616 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
2617 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
2618 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
2619 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
2620 ctrapqi4, conditional_trap): Delete patterns.
2621 (cbranchdi4_insn): New pattern.
2622 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
2623 test high part only. When testing EQ or NE, generate beq0_di
2624 and bne0_di patterns directly.
2625 (cstoredi4): When testing LT or GE, test high part only.
2626 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
2628 (scc0_constraints, cmp1_constraints, cmp2_constraints,
2629 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
2630 cmp2_cf_predicate): New define_mode_attrs.
2631 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
2632 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
2633 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
2635 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
2636 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
2637 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
2639 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
2640 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
2642 (BTST): New define_mode_iterator.
2643 (btst_predicate, btst_constraint, btst_range): New
2645 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
2647 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
2648 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
2649 patterns): Set attr "flags_valid".
2650 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
2651 management. Set attr "flags_valid".
2652 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
2653 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
2654 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
2655 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
2656 manual CC_STATUS management.
2657 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
2658 unnamed strict_lowpart subhi and subqi patterns): Set attr
2660 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
2661 Remove code to operate on address regs and assert the case
2663 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
2664 manual CC_STATUS_INIT.
2665 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
2666 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
2667 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
2668 one_cmplqi2, unnamed strict_lowpart patterns
2669 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
2670 one_cmplhi and one_cmplqi): Set attr "flags_valid".
2671 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
2672 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
2674 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
2675 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
2676 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
2677 unnamed strict_low_part patterns for HI and
2678 QI versions): Set attr "flags_valid".
2679 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
2680 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
2681 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
2682 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
2683 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
2684 (various unnamed peepholes): Adjust compare/branch sequences
2685 for new cbranch patterns.
2686 (dbcc peepholes): Likewise, and output the comparison here
2688 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
2689 (fp_src_operand): Allow constant zero.
2690 (address_reg_operand): New predicate.
2692 * rtl.h (inequality_comparisons_p): Remove declaration.
2693 * recog.h (next_insn_tests_no_inequality): Likewise.
2694 * rtlanal.c (inequality_comparisons_p): Delete function.
2695 * recog.c (next_insn_tests_no_inequality): Likewise.
2697 2019-11-25 Richard Biener <rguenther@suse.de>
2699 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
2700 (vect_detect_hybrid_slp): Swap lane and instance iteration,
2701 properly re-building the visited hash-map for each lane.
2703 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
2705 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
2706 gcn_md_reorg): Remove unused variables.
2707 (gcn_emutls_var_init): Add missing (but unreachable) return
2709 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
2710 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
2711 an uninitialized variable.
2713 2019-11-25 Martin Jambor <mjambor@suse.cz>
2716 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
2717 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
2718 (cgraph_materialize_clone): Move removel from clone tree to the
2719 the new method and use it instead.
2720 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
2721 bodies of clones, also remove it from the clone tree.
2723 2019-11-25 Martin Jambor <mjambor@suse.cz>
2726 * ipa-sra.c (process_isra_node_results): Put the new node to the
2727 same comdat group as the original node.
2729 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
2731 Build double32 / long-double32 multilibs if needed.
2735 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
2736 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
2737 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
2738 tm_defines and pass to genmultilib.awk.
2739 * config/avr/genmultilib.awk: Use these variables to add double32
2740 and / or long-double32 multilib(s) as needed.
2741 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
2743 2019-11-25 Richard Biener <rguenther@suse.de>
2745 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
2746 loop body, defaulted to NULL.
2747 (single_likely_exit): Add exit vector argument
2748 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
2749 (number_of_iterations_exit): Likewise.
2750 (number_of_iterations_exit_assumptions): Likewise.
2751 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
2753 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
2754 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
2755 Compute exit vector around call to single_likely_exit.
2756 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
2757 loop body to loop_only_exit_p.
2758 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
2760 (number_of_iterations_exit_assumptions): Get loop body from caller
2762 (number_of_iterations_exit): Pass through new loop body arg.
2763 (infer_loop_bounds_from_undefined): Get loop body from caller.
2764 (estimate_numbers_of_iterations): Compute loop body once.
2766 2019-11-25 Richard Biener <rguenther@suse.de>
2768 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
2769 auto_bb_flag instead of an sbitmap for visited handling.
2771 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
2773 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
2775 (vector_fp_comparison_complex): Likewise.
2776 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
2778 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
2780 (vector_lt<mode> for VEC_F): Refactor with
2781 vector_fp_comparison_simple.
2782 (vector_le<mode> for VEC_F): Likewise.
2783 (vector_unge<mode> for VEC_F): Likewise.
2784 (vector_unle<mode> for VEC_F): Likewise.
2785 (vector_ne<mode> for VEC_F): Likewise.
2786 (vector_ungt<mode> for VEC_F): Likewise.
2787 (vector_unlt<mode> for VEC_F): Likewise.
2788 (vector_ltgt<mode> for VEC_F): Refactor with
2789 vector_fp_comparison_complex.
2790 (vector_ordered<mode> for VEC_F): Likewise.
2791 (vector_uneq<mode> for VEC_F): Likewise.
2792 (vector_unordered<mode> for VEC_F): Likewise.
2794 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
2796 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
2797 COMPARE, representing an overflow detection.
2799 * combine.c (combine_instructions): Record costs for jumps.
2801 * combine.c (can_combine_p): Allow autoinc in jumps.
2803 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
2805 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
2806 * doc/invoke.texi (max-inline-insns-single-O2,
2807 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
2808 early-inlining-insns-O2): Remove documentation.
2809 * ipa-fnsummary.c (analyze_function_body,
2810 compute_fn_summary): Use opt_for_fn when accessing parameters.
2811 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2812 inline_insns_auto, can_inline_edge_by_limits_p,
2813 want_early_inline_function_p, big_speedup_p,
2814 want_inline_small_function_p, want_inline_self_recursive_call_p,
2815 recursive_inlining, compute_max_insns, inline_small_functions):
2817 * opts.c (default_options): Add -O3 defaults for
2818 OPT__param_early_inlining_insns_,
2819 OPT__param_inline_heuristics_hint_percent_,
2820 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
2821 * params.opt (-param=early-inlining-insns-O2=,
2822 -param=inline-heuristics-hint-percent-O2=,
2823 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
2824 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
2825 -param=inline-min-speedup=, -param=inline-unit-growth=,
2826 -param=large-function-growth=, -param=large-stack-frame=,
2827 -param=large-stack-frame-growth=, -param=large-unit-insns=,
2828 -param=max-inline-insns-recursive=,
2829 -param=max-inline-insns-recursive-auto=,
2830 -param=max-inline-insns-single=,
2831 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
2832 -param=max-inline-recursive-depth=,
2833 -param=max-inline-recursive-depth-auto=,
2834 -param=min-inline-recursive-probability=,
2835 -param=partial-inlining-entry-probability=,
2836 -param=uninlined-function-insns=, -param=uninlined-function-time=,
2837 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
2840 2019-11-23 Jakub Jelinek <jakub@redhat.com>
2842 * ipa-fnsummary.c: Fix comment typos.
2843 * ipa-ref.h: Likewise.
2844 * ipa-predicate.h: Likewise.
2845 * ipa-split.c: Likewise.
2846 * ipa-inline-analysis.c: Likewise.
2847 * ipa-predicate.c: Likewise.
2848 * ipa-devirt.c: Likewise.
2849 * ipa-icf.h: Likewise.
2850 * profile-count.c: Likewise.
2851 * ipa-icf.c: Likewise.
2852 (sem_function::equals_wpa): Fix typos in dump messages.
2853 * ipa-icf-gimple.h: Fix comment typos.
2854 * ipa-inline-transform.c: Likewise.
2855 * ipa-polymorphic-call.c: Likewise.
2856 * ipa-fnsummary.h: Likewise.
2857 * ipa-inline.c: Likewise.
2858 (dump_inline_stats): Fix typo in debug dump message.
2859 * profile-count.h: Fix comment typos.
2862 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
2863 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
2864 register_operand, force x into register before storing it into dest.
2868 * doc/extend.texi (attribute access): Fix a typo.
2870 PR rtl-optimization/92610
2871 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2872 cse_cfg_altered is set, even when tem is 0.
2873 (rest_of_handle_cse_after_global_opts): Likewise.
2875 2019-11-22 Jakub Jelinek <jakub@redhat.com>
2878 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2879 tree_hash): Move to ...
2880 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2881 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2883 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2885 PR tree-optimization/92618
2886 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2887 containing the auto_vec and a tree.
2888 (undistribute_bitref_for_vector): Handle the case when element type
2889 of vec is not the same as type of the BIT_FIELD_REF. Formatting
2892 2019-11-22 Martin Sebor <msebor@redhat.com>
2895 * attribs.h (struct attr_access): New.
2896 * attribs.c (decl_attributes): Add an informational note.
2897 * builtins.c (check_access): Make extern. Consistently set no-warning
2898 after issuing a warning. Handle calls through function pointers. Set
2900 * builtins.h (check_access): Declare.
2901 * calls.c (rdwr_access_hash): New type.
2903 (init_attr_rdwr_indices): New function.
2904 (maybe_warn_rdwr_sizes): Same.
2905 (initialize_argument_information): Call init_attr_rdwr_indices.
2906 Call maybe_warn_rdwr_sizes.
2907 (get_size_range): Avoid null argument.
2908 * doc/extend.texi (attribute access): Document new attribute.
2910 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2912 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2913 (ACC_LDS_SIZE): Define.
2914 (OTHER_LDS_SIZE): Define.
2915 (LDS_SIZE): Redefine using above.
2916 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2918 2019-11-22 Martin Sebor <msebor@redhat.com>
2921 * builtins.c (check_nul_terminated_array): New function.
2922 (fold_builtin_0): Remove declaration.
2923 (fold_builtin_1): Same.
2924 (fold_builtin_2): Same.
2925 (fold_builtin_3): Same.
2926 (fold_builtin_strpbrk): Add argument.
2927 (fold_builtin_strspn): Same.
2928 (fold_builtin_strcspn): Same.
2929 (expand_builtin_strcat): Call it. Remove unused argument.
2930 (expand_builtin_stpncpy): Same.
2931 (expand_builtin_strncat): Same.
2932 (expand_builtin_strncpy): Same. Adjust indentation.
2933 (expand_builtin_strcmp): Same.
2934 (expand_builtin_strncmp): Same.
2935 (expand_builtin_fork_or_exec): Same.
2936 (expand_builtin): Handle more built-ins.
2937 (fold_builtin_2): Add argument.
2938 (fold_builtin_n): Make static. Add argument.
2939 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2940 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2941 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2942 (fold_call_stmt): Pass new argument to fold_builtin_n.
2943 * builtins.h: Correct a comment.
2944 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2945 check_nul_terminated_array.
2946 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2947 check_nul_terminated_array.
2948 (handle_builtin_strchr): Same.
2949 (handle_builtin_string_cmp): Same.
2951 2019-11-22 Martin Sebor <msebor@redhat.com>
2953 PR tree-optimization/92501
2954 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2955 handle unterminated arrays. Rename local variables for clarity.
2957 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2959 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2960 granulated_sgprs according to architecture.
2962 2019-11-22 Jan Hubicka <jh@suse.cz>
2964 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2965 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2966 (memory_block_pool::reduce_free_list): ... this one.
2967 (memory_block_pool::trim): New static function.
2968 * memory-block.h (memory_block_pool::freelist_size): New constant
2969 (memory_block_pool::clear_free_list): Rename to ...
2970 (memory_block_pool::reduce_free_list): ... this one.
2971 (memory_block_pool::trim): Declare.
2973 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2975 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2977 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2979 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2981 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2983 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2984 (bic_cmp0_noout): New pattern.
2985 (bic_cmp0): Likewise.
2986 (neg_scc_insn): Remove pattern.
2987 (not_scc_insn): Likewise.
2989 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2991 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2993 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2995 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2996 pedwarn instead of warning_at for fallthrough not preceding a case
2999 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3001 PR tree-optimization/92608
3002 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
3005 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3007 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
3009 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
3010 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
3011 special for FP comparisons that need a cror instruction eventually.
3012 (rs6000_emit_fp_cror): New function.
3013 (rs6000_emit_sCOND): Expand all floating point comparisons to one
3014 instruction, for normal FP modes, with HONOR_NANS.
3015 (rs6000_emit_cbranch): Reformat.
3016 * config/rs6000/rs6000.md (fp_rev): New iterator.
3017 (fp_two): New iterator.
3018 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
3019 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
3020 *cbranch_2insn: New define_insn_and_split.
3022 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
3024 PR tree-optimization/92526
3025 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
3026 versioning for alignment if the accesses do not have a consistent
3027 mask, rather than asserting that the masks are consistent.
3029 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
3031 PR tree-optimization/92595
3032 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
3034 (vectorizable_store, vectorizable_load): Likewise.
3036 2019-11-21 Jan Hubicka <jh@suse.cz>
3038 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
3039 (resolve_noninline_speculation, inline_small_functions): Avoid
3042 2019-11-21 Richard Biener <rguenther@suse.de>
3044 * lra.c (lra_insn_recog_data_pool): New.
3045 (free_insn_recog_data): Adjust.
3046 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
3047 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
3049 2019-11-21 Richard Biener <rguenther@suse.de>
3051 PR tree-optimization/92596
3052 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
3054 2019-11-21 Jan Hubicka <jh@suse.cz>
3056 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
3057 ready for some vectors to not be allocated.
3058 (evaluate_properties_for_edge): Document better; make
3059 known_vals and known_aggs caller allocated; avoid determining
3060 values of parameters which are not used.
3061 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
3063 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
3064 (do_estimate_edge_size): Likewise.
3065 (do_estimate_edge_hints): Likewise.
3066 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
3067 values are not known.
3068 (ipa_release_agg_values): Add option to not release vector itself.
3069 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
3071 2019-11-21 Richard Biener <rguenther@suse.de>
3073 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
3074 (loop_iterator::to_visit): Use an auto_vec with internal storage.
3075 (loop_iterator::loop_iterator): Adjust.
3076 * cfganal.c (compute_dominance_frontiers_1): Fold into...
3077 (compute_dominance_frontiers): ... this. Hoist invariant
3078 get_immediate_dominator call.
3079 (compute_idf): Use a work-set instead of a work-list for more
3080 optimal iteration order and duplicate avoidance.
3081 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
3082 the vector all the time, instead pre-allocate the vector only
3084 (delete_update_ssa): Simplify.
3085 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
3087 2019-11-21 Jakub Jelinek <jakub@redhat.com>
3089 PR tree-optimization/91355
3090 * tree-ssa-sink.c (select_best_block): Use >= rather than >
3091 for early_bb scaled count with best_bb count comparison.
3093 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
3095 * ipa-inline.c (edge_badness): Likewise.
3096 * lto-streamer.h (class lto_location_cache): Likewise.
3097 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
3098 gratutious -> gratuitous.
3100 2019-11-21 Richard Biener <rguenther@suse.de>
3103 2019-09-17 Richard Biener <rguenther@suse.de>
3105 PR tree-optimization/91790
3106 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3107 use the correct DR for setting up realignment.
3109 2019-11-21 Richard Biener <rguenther@suse.de>
3111 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
3112 (equiv_class_obstack): New.
3113 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
3114 (perform_var_substitution): Initialize equiv_class_obstack.
3115 (free_var_substitution_info): Free equiv_class_obstack.
3117 2019-11-20 Jan Hubicka <jh@suse.cz>
3119 * ipa-inline.c (want_early_inline_function_p): Do not estimate
3120 edge growth when callee function is very large.
3121 * ipa-inline.h (estimate_min_edge_growth): New.
3123 2019-11-20 Jan Hubicka <jh@suse.cz>
3125 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
3126 negative time in calls summary; correct roundoff errors
3127 leading to negative times.
3128 (ipa_merge_fn_summary_after_inlining): Update calls size time table
3130 (ipa_update_overall_fn_summary): Add RESET parameter.
3131 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
3132 * ipa-inline-transform.c (inline_call): Enable incremental updates.
3134 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
3136 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
3137 def types for two-operation SLP.
3139 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
3142 * doc/sourcebuild.texi (vect_char_add): Document.
3144 2019-11-20 Alexandre Oliva <oliva@adacore.com>
3146 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
3147 * function.c (record_final_call): Record even calls that might
3148 have been in the cgraph.
3149 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
3152 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
3154 * configure.ac: Use https for gcc.gnu.org
3155 * configure: Regenerated.
3156 * doc/install.texi: Use https for gcc.gnu.org.
3157 * doc/sourcebuild.texi: Likewise.
3159 2019-11-20 Julian Brown <julian@codesourcery.com>
3161 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
3163 2019-11-20 Jan Hubicka <jh@suse.cz>
3165 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
3166 parameter and update call_size_time_table.
3167 (ipa_fn_summary::max_size_time_table_size): New constant.
3168 (estimate_calls_size_and_time_1): Break out from ...
3169 (estimate_calls_size_and_time): ... here; implement summary production.
3170 (summarize_calls_size_and_time): New function.
3171 (ipa_call_context::estimate_size_and_time): Bypass
3172 estimate_calls_size_and_time for leaf functions.
3173 (ipa_update_overall_fn_summary): Likewise.
3174 * ipa-fnsummary.h (call_size_time_table): New.
3175 (ipa_fn_summary::account_size_time): Update prototype.
3177 2019-11-20 Joseph Myers <joseph@codesourcery.com>
3179 * doc/invoke.texi (-Wc11-c2x-compat): Document.
3181 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
3184 * common.opt (fcommon): Change init to 1.
3185 * doc/invoke.texi (-fcommon): Update documentation.
3187 2019-11-20 Jan Hubicka <jh@suse.cz>
3189 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
3192 2019-11-20 Jan Hubicka <jh@suse.cz>
3194 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
3195 Add allocator parameter.
3196 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
3197 (fibonacci_heap<K,V>::m_allocator): New.
3198 (fibonacci_heap<K,V>::m_own_allocator): New.
3199 (fibonacci_heap<K,V>::insert): Use allocator.
3200 (fibonacci_heap<K,V>::extract_min): Likewise.
3201 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
3203 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
3205 * fibonacci_heap.c: Include alloc-pool
3206 (test_empty_heap): Initialize allocator.
3207 (test_union): Likewise.
3208 * bb-reorder.c: Include alloc-pool.h.
3209 * tracer.c: Inlclude alloc-pool.h.
3211 2019-11-20 Jan Hubicka <jh@suse.cz>
3213 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
3214 Preallocate for 32 entries.
3215 (DFS::worklist): Likewise.
3216 (DFS::DFS): Do not initialize sccstack and worklist.
3217 (DFS::~DFS): Do not release sccstack.
3219 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3222 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
3223 Handle UNORDERED if !HONOR_NANS.
3225 2019-11-20 Jan Hubicka <jh@suse.cz>
3227 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
3228 (edge_badness): ... here.
3229 (inline_small_functions): Use monotonicity of badness calculation
3230 to avoid redundant updates.
3232 2019-11-20 Richard Biener <rguenther@suse.de>
3234 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
3235 constructors we are actually analyzing.
3236 (vect_slp_check_for_constructors): Do not vectorize uniform
3237 constuctors, do not dump here.
3239 2019-11-20 Richard Biener <rguenther@suse.de>
3241 PR tree-optimization/92537
3242 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
3243 vectorization validity check...
3244 (vect_slp_analyze_operations): ... here.
3246 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
3248 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
3249 (make_pass_arc_predicate_delay_insns): Likewise.
3250 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
3251 method, remove clone.
3252 (class pass_arc_predicate_delay_insns): Likewise.
3253 (arc_init): Remove registering of ARC specific passes.
3254 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
3255 * config/arc/arc-passes.def: New file.
3257 2019-11-20 Jakub Jelinek <jakub@redhat.com>
3260 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
3261 and has a mode that doesn't have corresponding integral type.
3264 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
3265 clear opts->x_ix86_isa_flags{,2} here...
3266 (ix86_valid_target_attribute_inner_p): ... but here when seeing
3267 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
3270 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
3272 (insert_clobbers_for_var): Fix a typo in function comment.
3274 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
3275 Jakub Jelinek <jakub@redhat.com>
3278 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
3279 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
3282 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
3284 Make 0-series device specs work with older versions of avr-gcc.
3287 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
3288 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3289 <*link_pm_base_address>: Don't write spec.
3290 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
3292 2019-11-20 Richard Biener <rguenther@suse.de>
3295 * builtins.c (compute_objsize): Deal with VLAs.
3297 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
3299 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
3301 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
3303 (power9_sched_reorder2): Call new function.
3304 (rs6000_sched_reorder2): Likewise.
3306 2019-11-18 Jan Hubicka <jh@suse.cz>
3308 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
3309 (estimate_calls_size_and_time): Update.
3311 2019-11-18 Jan Hubicka <jh@suse.cz>
3313 * ipa-inline.c (inlining_speedup): New function.
3314 (edge_badness): Use it.
3316 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
3317 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3319 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
3320 Mark as not having "likely" version.
3321 * config/mips/mips.md (insn_count): The simd_div instruction with
3322 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
3323 (can_delay): Exclude simd_branch.
3324 (defile_delay *): Add simd_branch instructions.
3325 They have one regular delay slot.
3327 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
3330 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3332 * cse.c (cse_insn): Delete no-op register moves too.
3333 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
3334 Take a second comparison to control the value for NE.
3335 (mask_to_comparison): Handle unsigned comparisons.
3336 (simplify_logical_relational_operation): Likewise. Update call
3337 to comparison_to_mask. Handle AND if !HONOR_NANs.
3338 (simplify_binary_operation_1): Call the above for AND too.
3340 2019-11-19 Martin Liska <mliska@suse.cz>
3342 * toplev.c (general_init): Move the call...
3343 (toplev::main): ... here as we need init_options_struct
3346 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
3349 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
3352 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
3354 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
3355 (armv7-a): Likewise.
3356 (armv7ve): Likewise.
3358 2019-11-19 Richard Biener <rguenther@suse.de>
3360 PR tree-optimization/92581
3361 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
3362 condition reduction chains gather all conditions involved
3363 for computing the index reduction vector.
3365 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
3367 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3368 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
3369 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
3370 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
3371 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
3372 (aarch64_init_memtag_builtins): New.
3373 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
3374 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
3375 (aarch64_expand_builtin_memtag): New.
3376 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
3377 (AARCH64_BUILTIN_SUBCODE): New macro.
3378 (aarch64_resolve_overloaded_memtag): New.
3379 (aarch64_resolve_overloaded_builtin_general): New. Call
3380 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
3381 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3382 __ARM_FEATURE_MEMORY_TAGGING when enabled.
3383 (aarch64_resolve_overloaded_builtin): Call
3384 aarch64_resolve_overloaded_builtin_general.
3385 * config/aarch64/aarch64-protos.h
3386 (aarch64_resolve_overloaded_builtin_general): New declaration.
3387 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
3388 (TARGET_MEMTAG): Likewise.
3389 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
3390 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
3391 (irg, gmi, subp, addg, ldg, stg): New instructions.
3392 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
3393 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
3394 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
3395 (__arm_mte_get_tag): Likewise.
3396 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
3397 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
3398 * config/arm/types.md (memtag): New.
3399 * doc/invoke.texi (-memtag): Update description.
3401 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
3403 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
3404 to define __GCC_ASM_FLAG_OUTPUTS__.
3405 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
3406 (arm_option_params_internal): Swap out targetm.md_asm_adjust
3407 depending on TARGET_THUMB1.
3408 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
3410 2019-11-19 Jakub Jelinek <jakub@redhat.com>
3413 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
3416 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
3417 operand is negative and one non-negative, compare the non-negative
3418 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
3419 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
3420 and s2 == 0, unless one of them is known to be negative. Remove
3421 tem2 variable, use tem where tem2 has been used before.
3423 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
3425 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
3427 2019-11-19 Jakub Jelinek <jakub@redhat.com>
3429 PR tree-optimization/92557
3430 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
3431 vmode rather than asserting it always is.
3433 2019-11-19 Richard Biener <rguenther@suse.de>
3435 PR tree-optimization/92554
3436 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
3437 for the actual condition stmt and deal with sign-changes.
3439 2019-11-19 Richard Biener <rguenther@suse.de>
3441 PR tree-optimization/92555
3442 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
3445 2019-11-19 Martin Liska <mliska@suse.cz>
3448 * config/riscv/riscv.c (riscv_address_insns): Initialize
3449 addr in order to remove boostrap -Wmaybe-uninitialized
3452 2019-11-18 Martin Sebor <msebor@redhat.com>
3454 PR tree-optimization/92493
3455 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
3458 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
3460 * cfgloop.c (get_loop_body_in_custom_order): New.
3461 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
3462 * tree-loop-distribution.c (class loop_distribution): New.
3463 (bb_top_order_cmp): Remove.
3464 (bb_top_order_cmp_r): New.
3465 (create_rdg_vertices): Move into class loop_distribution.
3466 (stmts_from_loop): Same as above.
3467 (update_for_merge): Same as above.
3468 (partition_merge_into): Same as above.
3469 (get_data_dependence): Same as above.
3470 (data_dep_in_cycle_p): Same as above.
3471 (update_type_for_merge): Same as above.
3472 (build_rdg_partition_for-vertex): Same as above.
3473 (classify_builtin_ldst): Same as above.
3474 (classify_partition): Same as above.
3475 (share_memory_accesses): Same as above.
3476 (rdg_build_partitions): Same as above.
3477 (pg_add_dependence_edges): Same as above.
3478 (build_partition_graph): Same as above.
3479 (merge_dep_scc_partitions): Same as above.
3480 (break_alias_scc_partitions): Same as above.
3481 (finalize_partitions): Same as above.
3482 (distribute_loop): Same as above.
3483 (bb_top_order_init): New method
3484 (bb_top_order_destroy): New method.
3485 (get_bb_top_order_index_size): New method.
3486 (get_bb_top_order_index_index): New method.
3487 (get_bb_top_order_index_index): New method.
3488 (loop_distribution::execute): New method.
3489 (pass_loop_distribution::execute): Instantiate loop_distribution.
3491 2019-11-18 Jan Hubicka <jh@suse.cz>
3494 * ipa-inline.c (inline_small_functions): Add new edges after reseting
3496 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
3498 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3500 * doc/sourcebuild.texi (vect_check_ptrs): Document.
3501 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
3502 * doc/md.texi: Document them.
3503 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
3505 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
3506 * internal-fn.c (check_ptrs_direct): New macro.
3507 (expand_check_ptrs_optab_fn): Likewise.
3508 (direct_check_ptrs_optab_supported_p): Likewise.
3509 (internal_check_ptrs_fn_supported_p): New fuction.
3510 * tree-data-ref.c: Include internal-fn.h.
3511 (create_ifn_alias_checks): New function.
3512 (create_intersect_range_checks): Use it.
3513 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
3514 (optab, cmp_op): Handle it.
3515 (raw_war, unspec): New int attributes.
3516 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
3518 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
3520 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
3522 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
3525 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3527 * tree.c (build_vector_from_ctor): Directly return a zero vector for
3530 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3532 * cse.c (cse_insn): Delete no-op register moves too.
3533 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
3534 Take a second comparison to control the value for NE.
3535 (mask_to_comparison): Handle unsigned comparisons.
3536 (simplify_logical_relational_operation): Likewise. Update call
3537 to comparison_to_mask. Handle AND if !HONOR_NANs.
3538 (simplify_binary_operation_1): Call the above for AND too.
3540 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3542 * fold-const.c (native_encode_vector): Turn into a wrapper function,
3543 splitting the main code out into...
3544 (native_encode_vector_part): ...this new function.
3545 (native_decode_vector_tree): New function.
3546 (fold_view_convert_vector_encoding): Likewise.
3547 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
3550 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3552 * tree-data-ref.c (create_intersect_range_checks_index): If the
3553 alias pair describes simple WAW and WAR dependencies, just check
3554 whether the first B access overlaps later A accesses.
3555 (create_waw_or_war_checks): New function that performs the same
3556 optimization on addresses.
3557 (create_intersect_range_checks): Call it.
3559 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
3561 * lra-constraints.c (valid_address_p): Take the operand and a
3562 constraint as argument. If the operand is a MEM and the constraint
3563 is a memory constraint, check whether the eliminated form of the
3564 MEM already satisfies the constraint.
3565 (process_address_1): Update calls accordingly.
3567 2019-11-18 Tom Tromey <tromey@adacore.com>
3569 * doc/tm.texi: Rebuild.
3570 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
3571 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
3573 2019-11-18 Richard Biener <rguenther@suse.de>
3575 PR tree-optimization/92516
3576 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
3577 argument, hoist bst_map creation/destruction to ...
3578 (vect_analyze_slp): ... here, forming a true graph with
3579 SLP instances being the entries.
3580 (vect_detect_hybrid_slp_stmts): Remove wrapper.
3581 (vect_detect_hybrid_slp): Use one visited set for all
3583 (vect_slp_analyze_node_operations): Simplify visited/lvisited
3584 to hash-sets of slp_tree.
3585 (vect_slp_analyze_operations): Likewise.
3586 (vect_bb_slp_scalar_cost): Remove wrapper.
3587 (vect_bb_vectorization_profitable_p): Use one visited set for
3589 (vect_schedule_slp_instance): Elide bst_map use.
3590 (vect_schedule_slp): Likewise.
3592 2019-11-18 Richard Biener <rguenther@suse.de>
3594 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
3595 was vectorized with just external refs fail.
3597 2019-11-18 Martin Liska <mliska@suse.cz>
3600 * ipa-icf.c (sem_function::init): Unset m_checker
3601 at the end of the function.
3603 2019-11-18 Richard Biener <rguenther@suse.de>
3605 PR tree-optimization/92558
3606 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
3607 reducting the width of a reduction vector def update new_phis.
3609 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
3611 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
3612 and s390*-*-linux-musl* targets.
3613 * configure: Regenerate.
3615 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
3617 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
3618 (MUSL_DYNAMIC_LINKER64): Define.
3620 2019-11-18 Martin Liska <mliska@suse.cz>
3622 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
3623 message for an unknown counter.
3624 (dbg_cnt_process_single_pair): Support 0 as minimum value.
3625 (dbg_cnt_process_opt): Remove unreachable code.
3627 2019-11-18 Martin Liska <mliska@suse.cz>
3630 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
3631 Compare LHS types of NOP_EXPR.
3633 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
3635 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
3636 "initial_pass_name" argument -- by running "*clean_state" pass.
3637 Also free the "initial_pass_name" when done.
3639 2019-11-18 Richard Biener <rguenther@suse.de>
3641 PR rtl-optimization/92462
3642 * alias.c (find_base_term): Restrict the look through ANDs.
3643 (find_base_value): Likewise.
3645 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
3647 Add support for AVR devices from the 0-series.
3650 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
3651 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
3652 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
3653 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
3654 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3655 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
3656 for spec definitions.
3657 * doc/avr-mmcu.texi: Regenerate.
3659 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
3662 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
3663 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
3664 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
3665 (ix86_reassociation_width): Ditto.
3666 * config/i386/i386-options.c (ix86_option_override_internal):
3667 Replace TARGET_AVX128_OPTIAML with
3668 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
3669 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
3670 (TARGET_AVX128_OPTIMAL): Deleted.
3671 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
3674 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3676 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
3677 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
3679 (cceq_rev_compare): Rename to...
3680 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
3682 (define_split for <bd>tf_<mode>): Add SImode first argument to
3683 gen_cceq_ior_compare.
3685 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3687 * common/config/powerpcspe: Delete.
3689 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3691 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
3692 output in UNSPEC_WRFFR.
3694 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3696 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
3697 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
3699 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3701 * tree-data-ref.c (create_intersect_range_checks_index)
3702 (create_intersect_range_checks): Print dump messages.
3704 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3706 * tree-data-ref.c (dump_alias_pair): New function.
3707 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
3709 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3711 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
3712 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
3713 merging data references with different steps.
3714 (create_intersect_range_checks_index): Take a
3715 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
3716 Bail out if DR_ALIAS_MIXED_STEPS is set.
3717 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
3718 instead of two dr_with_seg_lens. Update call to
3719 create_intersect_range_checks_index.
3720 (create_runtime_alias_checks): Update call accordingly.
3722 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3724 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
3725 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
3726 (dr_with_seg_len_pair_t::sequencing): New enum.
3727 (dr_with_seg_len_pair_t::flags): New member variable.
3728 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
3729 parameter and initialize the flags member variable.
3730 * tree-loop-distribution.c (compute_alias_check_pairs): Update
3732 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3733 Ensure the two data references in an alias pair are in statement
3734 order, if there is a defined order.
3735 * tree-data-ref.c (prune_runtime_alias_test_list): Use
3736 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
3737 swapped the references in a dr_with_seg_len_pair_t. OR together
3738 the flags when merging two dr_with_seg_len_pair_ts. After merging,
3739 try to restore the original dr_with_seg_len order, updating the
3740 flags if that fails.
3742 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3744 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
3745 swapping the dr_as based on init values until we've decided
3746 whether to merge them.
3748 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3750 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
3751 two accesses in each dr_with_seg_len_pair_t before trying to
3752 combine separate dr_with_seg_len_pair_ts.
3753 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
3755 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
3757 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3759 * config/aarch64/aarch64-sve.md
3760 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3761 (scatter_store<SVE_24:mode><v_int_container>): ...this.
3762 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3763 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
3764 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3765 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
3766 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
3768 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3769 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3770 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3771 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3773 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3775 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
3776 (SVE_4HSI): New mode iterators.
3777 (ANY_EXTEND2): New code iterator.
3778 * config/aarch64/aarch64-sve.md
3779 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
3781 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
3782 ...this, handling extension to partial modes as well as full modes.
3783 Describe the extension as a predicated rather than unpredicated
3785 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3786 Likewise extend to...
3787 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
3788 ...this, making the same adjustments.
3789 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3790 Likewise extend to...
3791 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
3792 ...this, making the same adjustments.
3793 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3794 Likewise extend to...
3795 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
3796 ...this, making the same adjustments.
3797 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
3799 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
3800 extension predicate.
3801 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3802 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3803 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
3804 Describe the extension as a predicated rather than unpredicated
3806 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
3807 Likewise. Canonicalize to a constant extension predicate.
3808 * config/aarch64/aarch64-sve-builtins-base.cc
3809 (svld1_gather_extend_impl::expand): Add an extra predicate for
3811 (svldff1_gather_extend_impl::expand): Likewise.
3813 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3815 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
3817 * config/aarch64/aarch64-sve.md
3818 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
3819 (gather_load<SVE_24:mode><v_int_container>): ...this.
3820 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
3821 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
3822 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
3823 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
3824 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
3826 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
3827 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
3828 Allow the nominal extension predicate to be different from the
3830 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
3831 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
3833 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3835 * config/aarch64/aarch64-sve.md
3836 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
3837 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
3839 (aarch64_sve_adjust_stmt_cost): Call it.
3841 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3843 * config/aarch64/aarch64-sve.md
3844 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
3845 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3846 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3848 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3849 ...this new pattern, handling extension to partial modes as well
3850 as full modes. Describe the extension as a predicated rather than
3851 unpredicated extension.
3852 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3853 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3854 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
3856 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
3857 ...this new pattern, handling extension to partial modes as well
3858 as full modes. Describe the extension as a predicated rather than
3859 unpredicated extension.
3860 * config/aarch64/aarch64-sve-builtins.cc
3861 (function_expander::use_contiguous_load_insn): Add an extra
3862 predicate for extending loads.
3863 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
3864 (aarch64_sve_adjust_stmt_cost): Likewise.
3865 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
3866 the cost of SVE vector stmts.
3868 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3870 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3871 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3872 * config/aarch64/aarch64-sve.md
3873 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3874 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3875 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3876 comment. Avoid new narrower_mask ambiguity.
3877 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3878 (*cond_uxt<mode>_2): Update comment.
3879 (*cond_uxt<mode>_any): Likewise.
3881 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3883 * config/aarch64/aarch64-modes.def: Define partial SVE vector
3885 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3887 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3888 new vector float modes.
3889 (aarch64_sve_container_bits): New function.
3890 (aarch64_sve_pred_mode): Likewise.
3891 (aarch64_get_mask_mode): Use it.
3892 (aarch64_sve_element_int_mode): Handle structure modes and partial
3894 (aarch64_sve_container_int_mode): New function.
3895 (aarch64_vectorize_related_mode): Return SVE modes when given
3896 SVE modes. Handle partial modes, taking the preferred number
3897 of units from the size of the given mode.
3898 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3900 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3901 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3902 (aarch64_split_sve_subreg_move): Use the mode form of
3903 aarch64_sve_pred_mode.
3904 (aarch64_secondary_reload): Handle partial modes in the same way
3905 as full big-endian vectors.
3906 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3907 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3908 merging with the Advanced SIMD modes. If two modes have the
3909 same size, try the Advanced SIMD mode first.
3910 (aarch64_simd_valid_immediate): Use the container rather than
3911 the element mode for INDEX constants.
3912 (aarch64_simd_vector_alignment): Make the alignment of partial
3913 SVE vector modes the same as their minimum size.
3914 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3915 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3916 (mov<SVE_ALL:mode>): ...this.
3917 (movmisalign<SVE_FULL:mode>): Extend to...
3918 (movmisalign<SVE_ALL:mode>): ...this.
3919 (*aarch64_sve_mov<mode>_le): Rename to...
3920 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3921 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3922 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3923 partial modes regardless of endianness.
3924 (aarch64_sve_reload_be): Rename to...
3925 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3926 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3927 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3928 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3929 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3930 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3931 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3932 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3933 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3934 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3935 (maskload<SVE_FULL:mode><vpred>): Extend to...
3936 (maskload<SVE_ALL:mode><vpred>): ...this.
3937 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3938 (maskstore<SVE_ALL:mode><vpred>): ...this.
3939 (vec_duplicate<SVE_FULL:mode>): Extend to...
3940 (vec_duplicate<SVE_ALL:mode>): ...this.
3941 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3942 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3943 (sve_ld1r<SVE_FULL:mode>): Extend to...
3944 (sve_ld1r<SVE_ALL:mode>): ...this.
3945 (vec_series<SVE_FULL_I:mode>): Extend to...
3946 (vec_series<SVE_I:mode>): ...this.
3947 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3948 (*vec_series<SVE_I:mode>_plus): ...this.
3949 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3950 new VPRED ambiguity.
3951 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3952 (add<SVE_FULL_I:mode>3): Extend to...
3953 (add<SVE_I:mode>3): ...this.
3954 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3955 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3956 (VPRED, vpred): Likewise.
3957 (Vctype): New iterator.
3958 (vw): Remove SVE modes.
3960 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3962 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3963 (SVE_PARTIAL_I): ...this.
3964 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3966 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3968 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3969 (SVE_FULL): ...this.
3970 (SVE_I): Rename to...
3971 (SVE_FULL_I): ...this.
3972 (SVE_F): Rename to...
3973 (SVE_FULL_F): ...this.
3974 (SVE_BHSI): Rename to...
3975 (SVE_FULL_BHSI): ...this.
3976 (SVE_HSD): Rename to...
3977 (SVE_FULL_HSD): ...this.
3978 (SVE_HSDI): Rename to...
3979 (SVE_FULL_HSDI): ...this.
3980 (SVE_HSF): Rename to...
3981 (SVE_FULL_HSF): ...this.
3982 (SVE_SD): Rename to...
3983 (SVE_FULL_SD): ...this.
3984 (SVE_SDI): Rename to...
3985 (SVE_FULL_SDI): ...this.
3986 (SVE_SDF): Rename to...
3987 (SVE_FULL_SDF): ...this.
3988 (SVE_S): Rename to...
3989 (SVE_FULL_S): ...this.
3990 (SVE_D): Rename to...
3991 (SVE_FULL_D): ...this.
3992 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3993 * config/aarch64/aarch64-sve2.md: Likewise.
3995 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3997 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3999 * doc/invoke.texi: Document it.
4000 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
4001 By default, return VECT_COMPARE_COSTS for SVE.
4003 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
4005 * target.h (VECT_COMPARE_COSTS): New constant.
4006 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
4007 * doc/tm.texi: Regenerate.
4008 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
4009 * targhooks.c (default_autovectorize_vector_modes): Likewise.
4010 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
4012 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
4013 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
4014 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
4015 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
4016 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
4017 (_loop_vec_info::vec_inside_cost): New member variables.
4018 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
4019 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
4020 (vect_analyze_loop): When autovectorize_vector_modes returns
4021 VECT_COMPARE_COSTS, try vectorizing the loop with each available
4022 vector mode and picking the one with the lowest cost.
4023 (vect_estimate_min_profitable_iters): Record the computed costs
4024 in the loop_vec_info.
4026 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
4028 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
4029 element type rather than an element mode.
4030 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4031 Use get_vectype_for_scalar_type to query the natural types
4032 for a given element type rather than basing everything on
4033 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
4034 query to MAX_FIXED_MODE_SIZE.
4035 (duplicate_and_interleave): Update call accordingly.
4036 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4038 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
4040 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
4041 optional maximum nunits.
4042 (get_vectype_for_scalar_type): Likewise. Also declare a form that
4044 (get_mask_type_for_scalar_type): Take an optional slp_tree.
4045 (vect_get_mask_type_for_stmt): Likewise.
4046 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
4047 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
4048 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
4049 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
4050 to get an assumed vector type for data references.
4051 * tree-vect-slp.c (vect_update_shared_vectype): New function.
4052 (vect_update_all_shared_vectypes): Likewise.
4053 (vect_build_slp_tree_1): Pass the group size to
4054 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
4055 for BB vectorization.
4056 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
4057 before building the vectof from scalars.
4058 (vect_analyze_slp_instance): Pass the group size to
4059 get_vectype_for_scalar_type.
4060 (vect_slp_analyze_node_operations_1): Don't recompute the vector
4061 types for BB vectorization here; just handle the case in which
4062 we deferred the choice for booleans.
4063 (vect_get_constant_vectors): Pass the slp_tree to
4064 get_vectype_for_scalar_type.
4065 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
4066 (vectorizable_call): Likewise.
4067 (vectorizable_simd_clone_call): Likewise.
4068 (vectorizable_conversion): Likewise.
4069 (vectorizable_shift): Likewise.
4070 (vectorizable_operation): Likewise.
4071 (vectorizable_comparison): Likewise.
4072 (vect_is_simple_cond): Take the slp_tree as argument and
4073 pass it to get_vectype_for_scalar_type.
4074 (vectorizable_condition): Update call accordingly.
4075 (get_vectype_for_scalar_type): Take a group_size argument.
4076 For BB vectorization, limit the the vector to that number
4077 of elements. Also define an overload that takes an slp_tree.
4078 (get_mask_type_for_scalar_type): Add an slp_tree argument and
4079 pass it to get_vectype_for_scalar_type.
4080 (vect_get_vector_types_for_stmt): Add a group_size argument
4081 and pass it to get_vectype_for_scalar_type. Don't use the
4082 cached vector type for BB vectorization if a group size is given.
4083 Handle data references in that case.
4084 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
4085 pass it to get_mask_type_for_scalar_type.
4087 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
4089 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
4091 (estimate_edge_time): Use it.
4092 * ipa-inline-analysis.c (do_estimate_edge_time): Add
4093 ret_nonspec_time parameter.
4095 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
4097 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
4099 2019-11-15 Nick Clifton <nickc@redhat.com>
4100 Szabolcs Nagy <szabolcs.nagy@arm.com>
4103 * config/microblaze/microblaze.c (print_operand): Print value as long.
4105 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
4107 * ipa-inline.c (edge_badness, inline_small_functions): Revert
4110 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4112 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
4113 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
4115 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4117 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
4118 (gcn_conditional_register_usage): Use constants in place of hard-coded
4120 (gcn_hsa_declare_function_name): Set lower bound for number of
4121 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
4122 MAX_NORMAL_VGPR_COUNT.
4124 2019-11-15 Martin Jambor <mjambor@suse.cz>
4126 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
4129 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4131 * config/gcn/gcn.c (default_requested_args): New.
4132 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
4133 set with default_requested_args.
4134 (gcn_conditional_register_usage): Limit register usage of non-kernel
4135 functions. Reassign fixed registers if a non-standard set of args is
4137 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
4139 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
4142 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
4143 aggregate jump function when inlined-to caller has no edge summary.
4145 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4147 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
4149 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4151 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
4153 (print_operand_address): Use v1 for zero vector offset.
4155 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
4157 PR tree-optimization/92515
4158 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
4159 types when converting a vector/scalar shift into a vector/vector one,
4160 using tree_nop_conversion_p instead of useless_type_conversion_p.
4161 Move the conversion code to the transform block.
4163 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
4165 * read-rtl-function.c
4166 (function_reader::add_fixup_source_location): Take additional
4167 parameter of a column.
4168 (function_reader::maybe_read_location): Optionally parse column
4169 information and pass to add_fixup_source_location.
4171 2019-11-15 Richard Biener <rguenther@suse.de>
4173 PR tree-optimization/92512
4174 * tree-vect-loop.c (check_reduction_path): Fix operand index
4175 computability check. Add check for second use in COND_EXPRs.
4177 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
4180 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
4181 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
4183 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4185 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
4186 register class for VCC_LO and VCC_HI.
4187 (gcn_spill_class): Use SGPR_REGS to spill registers in
4188 VCC_CONDITIONAL_REG.
4190 2019-11-15 Richard Biener <rguenther@suse.de>
4192 PR tree-optimization/92324
4193 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4194 singedness of SLP reduction epilouge operations. Also reduce
4195 the vector width for SLP reductions before doing elementwise
4196 operations if possible.
4198 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
4200 * passes.c (skip_pass): Set epilogue_completed if skipping the
4201 pro_and_epilogue pass.
4203 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
4205 * passes.c (should_skip_pass_p): Always run "dfinish".
4207 2019-11-15 Richard Biener <rguenther@suse.de>
4209 * ipa-inline.c (inline_small_functions): Move assignment
4210 to next before call destroying edge.
4212 2019-11-15 Richard Biener <rguenther@suse.de>
4214 PR tree-optimization/92039
4215 PR tree-optimization/91975
4216 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
4217 previous change, treat invariants consistently as non-constant.
4218 (tree_estimate_loop_size): Ternary ops with just the first op
4219 constant are not optimized away.
4221 2019-11-15 Jakub Jelinek <jakub@redhat.com>
4223 * gimplify.c (gimplify_call_expr): Don't call
4224 omp_resolve_declare_variant after gimplification.
4225 * omp-general.c (omp_context_selector_matches): For isa that might
4226 match in some other function, defer if in declare simd function.
4227 (omp_context_compute_score): Don't look for " score" in construct
4228 trait set. Set *score to -1 if it can't ever match.
4229 (omp_resolve_declare_variant): If any variants need to be deferred,
4230 don't punt immediately, but compute scores of all variants and if
4231 ther eis a score winner that doesn't need to be deferred, return that.
4233 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
4235 * ipa-comdats.c: Fix comments typo.
4236 * ipa-profile.c: Fix comments typo.
4237 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
4238 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
4239 (gimple_gen_ic_func_profiler): Likewise.
4240 (pass_ipa_tree_profile::gate): Fix comments typo.
4242 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
4244 * ipa-inline.c (inline_small_functions): Update iterator of next.
4246 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4248 * lra-spills.c (assign_spill_hard_regs): Check that the spill
4249 register is suitable for the mode.
4251 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
4253 * range-op.h (range_operator::fold_range): Return a bool.
4254 * range-op.cc (range_operator::wi_fold): Assert supported type.
4255 (range_operator::fold_range): Assert supported type and return true.
4256 (operator_equal::fold_range): Return true.
4257 (operator_not_equal::fold_range): Same.
4258 (operator_lt::fold_range): Same.
4259 (operator_le::fold_range): Same.
4260 (operator_gt::fold_range): Same.
4261 (operator_ge::fold_range): Same.
4262 (operator_plus::op1_range): Adjust call to fold_range.
4263 (operator_plus::op2_range): Same.
4264 (operator_minus::op1_range): Same.
4265 (operator_minus::op2_range): Same.
4266 (operator_exact_divide::op1_range): Same.
4267 (operator_lshift::fold_range): Return true and adjust fold_range call.
4268 (operator_rshift::fold_range): Same.
4269 (operator_cast::fold_range): Return true.
4270 (operator_logical_and::fold_range): Same.
4271 (operator_logical_or::fold_range): Same.
4272 (operator_logical_not::fold_range): Same.
4273 (operator_bitwise_not::fold_range): Adjust call to fold_range.
4274 (operator_bitwise_not::op1_range): Same.
4275 (operator_cst::fold_range): Return true.
4276 (operator_identity::fold_range): Return true.
4277 (operator_negate::fold_range): Return true and adjust fold_range call.
4278 (operator_addr_expr::fold_range): Return true.
4279 (operator_addr_expr::op1_range): Adjust call to fold_range.
4281 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
4282 (range_fold_unary_symbolics_p): Same.
4284 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
4286 PR tree-optimization/92506
4287 * range-op.cc (range_operator::fold_range): Start with range undefined.
4288 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
4289 overflow is varying.
4291 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
4293 * range-op.cc (*operator*::*range): Remove calls to
4294 range_intersect, range_invert, and range_union in favor of calling
4295 the in-place API methods.
4296 (range_tests): Same.
4297 * range.cc (range_intersect): Remove.
4298 (range_union): Remove.
4299 (range_invert): Remove.
4300 * range.h (range_intersect): Remove.
4301 (range_union): Remove.
4302 (range_intersect): Remove.
4304 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
4306 PR rtl-optimization/92430
4307 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
4308 (pass_jump_after_combine::execute): Perform jump threading
4311 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
4312 Doug Rupp <rupp@adacore.com>
4313 Olivier Hainque <hainque@adacore.com>
4315 * config.gcc: Collapse the arm-vxworks entries into
4316 a single arm-wrs-vxworks7* one, bpabi based. Update
4317 the default cpu from arm8 to armv7-a
4318 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
4319 we always use ARM_UNWIND_INFO.
4320 (DWARF2_UNWIND_INFO): Remove redefinition.
4321 (ARM_TARGET2_DWARF_FORMAT): Likewise.
4322 (VXWORKS_PERSONALITY): Define, to "llvm".
4323 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
4325 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
4327 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
4328 _VX_CPU instead of CPU and handle arm_arch8.
4330 2019-11-14 Doug Rupp <rupp@adacore.com>
4331 Olivier Hainque <hainque@adacore.com>
4332 Jerome Lambourg <lambourg@adacore.com>
4334 * config.gcc: Handle aarch64*-wrs-vxworks7*.
4335 * config/aarch64/aarch64-vxworks.h: New file.
4336 * config/aarch64/t-aarch64-vxworks: New file.
4338 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
4339 Olivier Hainque <hainque@adacore.com>
4341 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
4342 definition, pointless with a VxWorks specific version
4344 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
4345 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
4346 New local macros, controlling the addition of vxworks specific
4347 crtstuff objects depending on the EH mechanism and kind of
4348 module being linked.
4349 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
4351 2019-11-06 Pat Bernardi <bernardi@adacore.com>
4352 Jerome Lambourg <lambourg@adacore.com>
4353 Olivier Hainque <hainque@adacore.com>
4355 * config.gcc: Add comment to introduce the TARGET_VXWORKS
4356 common macro definitions, conveying VXWORKS7 or 64bit general
4357 variations. Add a block to set gcc_cv_initfini_array
4358 unconditionally to "yes" for VxWorks7.
4359 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
4360 by default. Update some comments.
4361 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
4362 default, to be added the end of VXWORKS_LIBS_RTP.
4363 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
4364 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
4366 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
4367 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
4368 to account for the now available TLS abilities.
4369 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
4370 (VXWORKS_HAVE_TLS): Likewise.
4372 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4374 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
4375 (vect_slp_convert_to_external): Likewise.
4376 (vect_slp_analyze_node_operations): If analysis fails, try building
4377 the node from scalars instead.
4379 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4381 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
4382 between vector types.
4383 * tree-vect-stmts.c (vectorizable_conversion): Extend the
4384 non-widening and non-narrowing path to handle standard
4385 conversion codes, if the target supports them.
4386 * expr.c (convert_move): Try using the extend and truncate optabs
4388 * optabs-tree.c (supportable_convert_operation): Likewise.
4389 * config/aarch64/iterators.md (Vnarroqw): New iterator.
4390 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
4391 (trunc<mode><Vnarrowq>2): New patterns.
4393 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4395 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
4396 require vectype and nunits_vectype to have the same size;
4397 instead assert that nunits_vectype has at least as many
4398 elements as vectype. Don't compute a separate nunits_vectype
4399 if the scalar type is obviously the same as vectype's.
4400 Tweak dump messages.
4402 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4404 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
4406 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
4407 (TARGET_VECTORIZE_RELATED_MODE): Define.
4409 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4411 * tree-vectorizer.h (vec_info::mode_set): New typedef.
4412 (vec_info::used_vector_mode): New member variable.
4413 (vect_chooses_same_modes_p): Declare.
4414 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
4415 chosen vector mode in vec_info::used_vector_mode.
4416 (vect_chooses_same_modes_p): New function.
4417 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
4418 the same vector statements multiple times.
4419 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
4421 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4423 * machmode.h (opt_machine_mode::operator==): New function.
4424 (opt_machine_mode::operator!=): Likewise.
4425 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
4426 (get_related_vectype_for_scalar_type): Delete.
4427 (get_vectype_for_scalar_type_and_size): Declare.
4428 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
4429 whether analysis passed or failed, and with what vector modes.
4430 Use related_vector_mode to check whether trying a particular
4431 vector mode would be redundant with the autodetected mode,
4432 and print a dump message if we decide to skip it.
4433 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4434 (vect_create_epilog_for_reduction): Use
4435 get_related_vectype_for_scalar_type instead of
4436 get_vectype_for_scalar_type_and_size.
4437 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
4439 (get_related_vectype_for_scalar_type): ...this new function.
4440 Take a starting/"prevailing" vector mode rather than a vector size.
4441 Take an optional nunits argument, with the same meaning as for
4442 related_vector_mode. Use related_vector_mode when not
4443 auto-detecting a mode, falling back to mode_for_vector if no
4445 (get_vectype_for_scalar_type): Update accordingly.
4446 (get_same_sized_vectype): Likewise.
4447 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
4449 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4451 * tree-vect-stmts.c (vectorizable_call): Require the types
4452 to have the same size.
4454 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4456 * tree-vect-stmts.c (vectorizable_call): If an operand is
4457 constant or external, use get_vectype_for_scalar_type
4458 rather than get_same_sized_vectype to get its vector type.
4459 (vectorizable_conversion, vectorizable_shift): Likewise.
4460 (vectorizable_operation): Likewise.
4462 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4464 * tree-vectorizer.h (vec_info::vector_size): Replace with...
4465 (vec_info::vector_mode): ...this new field.
4466 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
4467 (vect_analyze_loop, vect_transform_loop): Likewise.
4468 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
4469 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4470 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4471 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4472 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4474 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4476 * target.h (vector_sizes, auto_vector_sizes): Delete.
4477 (vector_modes, auto_vector_modes): New typedefs.
4478 * target.def (autovectorize_vector_sizes): Replace with...
4479 (autovectorize_vector_modes): ...this new hook.
4480 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4482 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
4483 * doc/tm.texi: Regenerate.
4484 * targhooks.h (default_autovectorize_vector_sizes): Delete.
4485 (default_autovectorize_vector_modes): New function.
4486 * targhooks.c (default_autovectorize_vector_sizes): Delete.
4487 (default_autovectorize_vector_modes): New function.
4488 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
4489 of autovectorize_vector_sizes. Use the number of units in the mode
4490 to calculate the maximum VF.
4491 * omp-low.c (omp_clause_aligned_alignment): Use
4492 autovectorize_vector_modes instead of autovectorize_vector_sizes.
4493 Use a loop based on related_mode to iterate through all supported
4494 vector modes for a given scalar mode.
4495 * optabs-query.c (can_vec_mask_load_store_p): Use
4496 autovectorize_vector_modes instead of autovectorize_vector_sizes.
4497 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
4498 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
4499 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
4501 (aarch64_autovectorize_vector_modes): ...this new function.
4502 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4503 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4504 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
4505 (arc_autovectorize_vector_modes): ...this new function.
4506 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4507 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4508 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
4509 (arm_autovectorize_vector_modes): ...this new function.
4510 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4511 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4512 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
4513 (ix86_autovectorize_vector_modes): ...this new function.
4514 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4515 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4516 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
4517 (mips_autovectorize_vector_modes): ...this new function.
4518 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
4519 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
4521 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4523 * tree-vect-stmts.c (vectorizable_shift): Check the number
4524 of vector elements as well as the type mode when deciding
4525 whether an op1_vectype is compatible. Reuse the result of
4526 this check when generating vector statements.
4528 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4530 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
4531 targetm.vectorize.preferred_simd_mode returns an integer mode,
4532 use mode_for_vector to decide what the vector type's mode
4533 should actually be. Use build_vector_type_for_mode instead
4534 of build_vector_type.
4536 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4538 * target.def (get_mask_mode): Take a vector mode itself as argument,
4539 instead of properties about the vector mode.
4540 * doc/tm.texi: Regenerate.
4541 * targhooks.h (default_get_mask_mode): Update to reflect new
4542 get_mode_mask interface.
4543 * targhooks.c (default_get_mask_mode): Likewise. Use
4544 related_int_vector_mode.
4545 * optabs-query.c (can_vec_mask_load_store_p): Update call
4547 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
4548 first that the original mode really is a vector.
4549 * tree.c (build_truth_vector_type_for): Likewise.
4550 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
4551 get_mode_mask interface.
4552 (aarch64_expand_sve_vcond): Update call accordingly.
4553 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
4554 get_mode_mask interface.
4555 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
4557 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4559 * tree.h (build_truth_vector_type): Delete.
4560 (build_same_sized_truth_vector_type): Likewise.
4561 * tree.c (build_truth_vector_type): Rename to...
4562 (build_truth_vector_type_for): ...this. Make static and take
4563 a vector type as argument.
4564 (truth_type_for): Update accordingly.
4565 (build_same_sized_truth_vector_type): Delete.
4566 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
4567 instead of build_same_sized_truth_vector_type.
4568 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
4569 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
4570 * tree-vect-patterns.c (build_mask_conversion): Likeise.
4571 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4572 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
4573 (vect_build_gather_load_calls, vectorizable_call): Likewise.
4574 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
4575 (vectorizable_store, vectorizable_condition): Likewise.
4576 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
4577 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
4578 build_truth_vector_type.
4579 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
4580 Use truth_type_for instead of build_same_sized_truth_vector_type.
4581 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
4583 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4585 * tree.h (build_truth_vector_type_for_mode): Declare.
4586 * tree.c (build_truth_vector_type_for_mode): New function,
4588 (build_truth_vector_type): ...here.
4589 (build_opaque_vector_type): Fix head comment.
4590 * tree-vectorizer.h (supportable_narrowing_operation): Remove
4592 (vect_halve_mask_nunits): Replace vec_info parameter with the
4593 mode of the new vector.
4594 (vect_double_mask_nunits): Likewise.
4595 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4596 (vect_double_mask_nunits): Likewise.
4597 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
4598 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
4599 to vect_halve_mask_nunits, getting the required mode from the unpack
4601 (vect_set_loop_condition_masked): Update call accordingly.
4602 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
4603 parameter and update call to vect_double_mask_nunits.
4604 (vectorizable_conversion): Update call accordingly.
4605 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
4606 (vectorizable_call): Update call accordingly.
4607 (supportable_widening_operation): Update call to
4608 vect_halve_mask_nunits.
4609 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4610 Use build_truth_vector_type_mode instead of build_truth_vector_type.
4612 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4614 * machmode.h (mode_for_int_vector): Delete.
4615 (related_int_vector_mode): Declare.
4616 * stor-layout.c (mode_for_int_vector): Delete.
4617 (related_int_vector_mode): New function.
4618 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
4619 instead of mode_for_int_vector.
4620 (expand_vec_perm_const): Likewise.
4621 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
4622 (aarch64_evpc_sve_tbl): Likewise.
4623 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
4624 (s390_expand_vcond): Likewise.
4626 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
4628 * target.def (related_mode): New hook.
4629 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
4630 * doc/tm.texi: Regenerate.
4631 * targhooks.h (default_vectorize_related_mode): Declare.
4632 * targhooks.c (default_vectorize_related_mode): New function.
4633 * machmode.h (related_vector_mode): Declare.
4634 * stor-layout.c (related_vector_mode): New function.
4635 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
4636 * optabs-query.c (qimode_for_vec_perm): Likewise.
4637 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
4638 (vectorizable_store, vectorizable_load): Likewise
4640 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
4642 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
4643 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
4644 * config/arm/arm-c.c (arm_cpu_builtins): Define
4645 __GCC_ASM_FLAG_OUTPUTS__.
4646 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
4647 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
4648 Define __GCC_ASM_FLAG_OUTPUTS__.
4649 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
4650 * doc/extend.texi (FlagOutputOperands): Add documentation
4651 for ARM and AArch64.
4653 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
4654 * config/arm/predicates.md (nz_comparison_operator): Rename
4655 from noov_comparison_operator.
4656 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
4657 (arm_gen_dicompare_reg): Likewise.
4658 (maybe_get_arm_condition_code): Likewise.
4659 (thumb1_final_prescan_insn): Likewise.
4660 (arm_emit_coreregs_64bit_shift): Likewise.
4661 * config/arm/arm.md (addsi3_compare0): Likewise.
4662 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
4663 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
4664 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
4665 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
4666 (*mulsi3addsi_compare0_scratch): Likewise.
4667 (*mulsi3addsi_compare0_scratch_v6): Likewise.
4668 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
4669 (*zeroextractsi_compare0_scratch): Likewise.
4670 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
4671 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
4672 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4673 (andsi_not_shiftsi_si_scc): Likewise.
4674 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
4675 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
4676 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
4677 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
4678 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
4679 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
4680 (return_addr_mask, *check_arch2): Likewise.
4681 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
4682 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
4683 (compare_scc splitters): Likewise.
4684 (movcond_addsi): Likewise.
4685 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
4686 (*thumb2_addsi3_compare0_scratch): Likewise.
4687 (*thumb2_mulsi_short_compare0): Likewise.
4688 (*thumb2_mulsi_short_compare0_scratch): Likewise.
4689 (compare peephole2s): Likewise.
4690 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
4691 nz_comparison_operator names.
4692 (cbranchsi4_insn): Likewise.
4694 * config/arm/constraints.md (c): Use cc_register predicate.
4696 * config/aarch64/constraints.md (c): New constraint.
4698 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4700 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
4701 ipa_merge_fn_summary_after_inlining): Micro optimize.
4703 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4705 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
4707 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
4709 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
4710 (ipa_value_range_from_jfunc): New function.
4711 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
4712 known_value_ranges parameter; use it to evalulate conditions.
4713 (evaluate_properties_for_edge): Compute known value ranges.
4714 (ipa_fn_summary_t::duplicate): Update use of
4715 evaluate_conditions_for_known_args.
4716 (estimate_ipcp_clone_size_and_time): Likewise.
4717 (ipa_merge_fn_summary_after_inlining): Likewise.
4718 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
4720 2019-11-14 Martin Liska <mliska@suse.cz>
4722 * ipa-inline.c (want_inline_small_function_p): Use
4723 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
4724 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
4726 2019-11-14 Martin Liska <mliska@suse.cz>
4728 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
4729 of a callee to get value of the param.
4730 * ipa-inline.c (inline_insns_auto): Use proper
4732 * opts.c (maybe_default_option): Do not overwrite param
4733 value if optimization level does not match. Note that
4734 params usually have default value set via Init() keyword.
4735 * params.opt: Remove -param=max-inline-insns-auto-O2.
4736 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
4737 * doc/invoke.texi: Remove documentation of
4738 max-inline-insns-auto-O2.
4740 2019-11-14 Martin Liska <mliska@suse.cz>
4742 * tree-switch-conversion.c (switch_conversion::switch_conversion):
4743 Do not initialize m_other_count.
4744 (switch_conversion::collect): Do not count m_default_count and
4745 m_other_count as we use frequencies for edges.
4746 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
4748 2019-11-14 Martin Liska <mliska@suse.cz>
4751 * doc/invoke.texi: Document -fallocation-dce.
4753 2019-11-14 Martin Liska <mliska@suse.cz>
4756 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
4757 PTA_ICELAKE_CLIENT which is later interited by
4758 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
4760 2019-11-14 Martin Liska <mliska@suse.cz>
4762 * ipa-icf.c (sem_item_optimizer::execute): Save
4764 (sem_item_optimizer::parse_nonsingleton_classes):
4765 Return number of loaded symbols.
4766 (sem_item_optimizer::merge_classes): Print
4767 statistics about totally needed symbols.
4768 * ipa-icf.h (parse_nonsingleton_classes): Change return
4770 (merge_classes): Add one argument.
4772 2019-11-14 Martin Liska <mliska@suse.cz>
4774 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
4775 func_checker::hash_operand by handling of FIELD_DECLs.
4777 2019-11-14 Martin Liska <mliska@suse.cz>
4779 * ipa-icf-gimple.h (func_checker::func_checker): Add
4780 default constructor.
4781 * ipa-icf.c (sem_function::init): Make operand_equal_p
4782 and hash_operand public.
4783 (sem_item::add_expr): Remove.
4784 (sem_item::add_type): Remove.
4785 (sem_function::hash_stmt): Use m_checker for hashing
4786 of GIMPLE statements.
4787 (sem_function::parse): Init with checker.
4788 (sem_variable::parse): Pass NULL as checker.
4789 (sem_item_optimizer::parse_funcs_and_vars):
4790 Pass checker to ::parse function.
4791 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
4792 (sem_variable::parse): New function.
4793 (sem_variable::get_hash): Only return computed hash value.
4794 (sem_variable::init): Initialize hash of a variable.
4795 * ipa-icf.h: Remove add_expr, add_type and add func_checker
4796 to couple of functions as a new argument.
4798 2019-11-14 Martin Liska <mliska@suse.cz>
4800 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
4802 (func_checker::compare_gimple_assign): Likewise.
4804 2019-11-14 Jakub Jelinek <jakub@redhat.com>
4806 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
4807 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
4808 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
4810 * omp-general.c (omp_context_name_list_prop): New function.
4811 (omp_context_selector_matches): Use it. Return 0 if it returns
4813 (omp_context_selector_props_compare): Allow equivalency of an
4814 identifier and a string literal containing no embedded zeros.
4816 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
4818 * range-op.cc (RANGE3): Remove.
4819 (range_tests): Remove all selftest that check for multi-ranges.
4820 Put tests in namespace selftest.
4821 * selftest.h: Move range_tests into namespace selftest.
4822 * value-range.h (class value_range): Unfriend range_tests.
4824 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
4826 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
4827 normalize_symbolics and normalize_addresses working in place.
4828 (range_fold_unary_symbolics_p): Same.
4829 (range_fold_unary_symbolics_p): Same.
4830 * value-range.cc (num_pairs): Same.
4831 (lower_bound): Same.
4832 (upper_bound): Same.
4834 (normalize_addresses): Same.
4835 (normalize_symbolics): Same.
4836 * value-range.h (normalize_symbolics): Same.
4837 (normalize_addresses): Same.
4839 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
4842 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
4843 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
4844 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
4845 (ipa_agg_jump_function): Remove member function equal_to.
4846 (ipa_agg_jump_function_p): Remove typedef.
4847 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
4848 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
4849 information for aggregate jump function.
4850 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
4851 record last definition statement.
4852 (load_from_unmodified_param_or_agg): New function.
4853 (ipa_known_agg_contents_list): Add new field type and value, remove
4855 (build_agg_jump_func_from_list): Rename parameter const_count to
4856 value_count, build aggregate jump function from ipa_load_agg_data.
4857 (analyze_agg_content_value): New function.
4858 (extract_mem_content): Analyze memory store assignment to prepare
4859 information for aggregate jump function generation.
4860 (determine_known_aggregate_parts): Add new parameter fbi, remove
4861 parameter aa_walk_budeget_p.
4862 (update_jump_functions_after_inlining): Update aggregate jump function.
4863 (ipa_find_agg_cst_for_param): Change type of parameter agg.
4864 (try_make_edge_direct_simple_call): Add new parameter new_root.
4865 (try_make_edge_direct_virtual_call): Add new parameter new_root and
4867 (update_indirect_edges_after_inlining): Pass new argument to
4868 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4869 (ipa_write_jump_function): Write aggregate jump function to file.
4870 (ipa_read_jump_function): Read aggregate jump function from file.
4871 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4872 * ipa-cp.c (ipa_get_jf_arith_result): New function.
4873 (ipa_agg_value_from_node): Likewise.
4874 (ipa_agg_value_set_from_jfunc): Likewise.
4875 (propagate_vals_across_arith_jfunc): Likewise.
4876 (propagate_aggregate_lattice): Likewise.
4877 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4878 (propagate_vals_across_pass_through): Call
4879 propagate_vals_across_arith_jfunc.
4880 (get_clone_agg_value): Move forward.
4881 (propagate_aggs_across_jump_function): Handle value propagation for
4882 aggregate jump function.
4883 (agg_jmp_p_vec_for_t_vec): Remove.
4884 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4885 with vec<ipa_agg_value>.
4886 (copy_plats_to_inter, intersect_with_plats): Likewise.
4887 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4888 (intersect_aggregate_with_edge): Likewise.
4889 (find_aggregate_values_for_callers_subset): Likewise.
4890 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4891 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4892 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4893 (gather_context_independent_values): Likewise.
4894 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4895 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4896 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4897 (evaluate_properties_for_edge): Likewise.
4898 (estimate_edge_devirt_benefit): Likewise.
4899 (estimate_edge_size_and_time): Likewise.
4900 (estimate_calls_size_and_time): Likewise.
4901 (ipa_call_context::ipa_call_context): Likewise.
4902 (estimate_ipcp_clone_size_and_time): Likewise.
4903 * ipa-fnsummary.h (ipa_call_context): Replace
4904 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4905 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4906 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4907 (do_estimate_edge_size): Likewise.
4908 (do_estimate_edge_hints): Likewise.
4910 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4912 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4915 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4917 * ipa-profile.c (check_argument_count): Check properly that e_info
4918 is non-NULL; do not check descriptors.
4920 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4922 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4923 check for ipa profiles.
4925 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4928 * ipa-prop.c (update_indirect_edges_after_inlining):
4929 Mark parameter as used.
4930 * ipa-inline.c (recursive_inlining): Reset node cache
4932 (inline_small_functions): Remove checking ifdef.
4933 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4936 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4939 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4941 (ipa_profile): Fix reversed test.
4943 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4945 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4946 (propagate_constants_topo): Fix typo.
4948 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4950 * Makefile.in (OBJS): Add value-range.o.
4951 (GTFILES): Add value-range.h.
4952 * gengtype.c (open_base_files): Add value-range.h to list of
4954 * tree-vrp.c: Move the following value_range related functions:
4955 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4956 constant_p, set_undefined, set_varying, may_contain_p,
4957 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4958 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4959 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4960 value_inside_range, ranges_from_anti_range, union_ranges,
4961 intersect_ranges, intersect_helper, union_helper, union_,
4962 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4963 upper_bound, contains_p, invert, intersect...
4964 * value-range.cc: ...to here.
4965 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4966 associated inline methods from here...
4967 * value-range.h: ...to here.
4969 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4971 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4972 instead of asserting its value.
4974 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4976 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4977 constructors and set methods so value_range_kind is the last
4978 argument and defaults to VR_RANGE.
4979 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4980 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4981 * ipa-prop.c (ipa_get_value_range): Same.
4982 (ipa_compute_jump_functions_for_edge): Same.
4983 * range-op.cc (value_range_from_overflowed_bounds): Same.
4984 (operator_cast::op1_range): Same.
4985 (range_tests): Same.
4986 * range.cc (range_nonzero): Same.
4987 * tree-ssanames.c (get_range_info): Same.
4988 * tree-vrp.c (value_range_equiv::set): Same.
4989 (value_range::value_range): Same.
4990 (value_range_equiv::value_range_equiv): Same.
4991 (value_range_equiv::update): Same.
4992 (value_range_equiv::deep_copy): Same.
4993 (value_range_equiv::move): Same.
4994 (value_range_equiv::set_undefined): Same.
4995 (value_range::set): Same.
4996 (value_range::set_nonzero): Same.
4997 (ranges_from_anti_range): Same.
4998 (extract_range_from_plus_minus_expr): Same.
4999 (value_range::intersect_helper): Same.
5000 (value_range_equiv::intersect): Same.
5001 (value_range::union_helper): Same.
5002 (value_range_equiv::union_): Same.
5003 (value_range::normalize_symbolics): Same.
5004 (value_range::invert): Same.
5005 (determine_value_range_1): Same.
5006 * tree-vrp.h (class value_range): Same.
5007 (class value_range_equiv): Same.
5008 * vr-values.c (set_value_range_to_nonnegative): Same.
5009 (set_value_range_to_truthvalue): Same.
5010 (vr_values::update_value_range): Same.
5011 (vr_values::extract_range_for_var_from_comparison_expr): Same.
5012 (vr_values::extract_range_from_binary_expr): Same.
5013 (vr_values::extract_range_from_comparison): Same.
5014 (vr_values::extract_range_basic): Same.
5015 (vr_values::adjust_range_with_scev): Same.
5016 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
5017 (vr_values::extract_range_from_phi_node): Same.
5019 2019-11-13 Ulrich Drepper <drepper@redhat.com>
5021 * tree-dump.c (dequeue_and_dump): Print first tree operand
5022 for VIEW_CONVERT_EXPR.
5024 2019-11-13 Joseph Myers <joseph@codesourcery.com>
5026 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
5027 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
5028 * real.c (get_max_float): Add norm_max argument.
5029 * real.h (get_max_float): Update prototype.
5030 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
5033 2019-11-13 Martin Liska <mliska@suse.cz>
5035 * dbgcnt.c (test_sorted_dbg_counters): New.
5036 (dbgcnt_c_tests): Likewise.
5037 * selftest-run-tests.c (selftest::run_tests): Likewise.
5038 * selftest.h (dbgcnt_c_tests): Likewise.
5040 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
5041 Martin Jambor <mjambor@suse.cz>
5044 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
5045 (identify_dead_nodes): Likewise.
5047 2019-11-13 Martin Liska <mliska@suse.cz>
5049 * ipa-icf.c (sem_function::equals_private): Do not overuse
5050 push/pop_cfun functions.
5052 2019-11-13 Martin Liska <mliska@suse.cz>
5054 * common.opt: Document change of -fdbg-cnt option.
5055 * dbgcnt.c (DEBUG_COUNTER): Remove.
5056 (dbg_cnt_is_enabled): Remove.
5057 (dbg_cnt): Work with new intervals.
5058 (dbg_cnt_set_limit_by_index): Set to new
5060 (dbg_cnt_set_limit_by_name): Likewise.
5061 (dbg_cnt_process_single_pair): Process new format.
5062 (dbg_cnt_process_opt): Likewise.
5063 (dbg_cnt_list_all_counters): Likewise.
5064 * doc/invoke.texi: Document change of -fdbg-cnt option.
5067 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
5069 * ipa-inline.c (ipa_inline): Check that function is defined before
5072 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5073 Julian Brown <julian@codesourcery.com>
5075 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
5076 flag_worker_partitioning is not set.
5077 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
5078 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
5080 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5082 * config/gcn/gcn-run.c (heap_region): New global variable.
5083 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
5084 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
5085 (get_kernarg_region): Move contents to ....
5086 (get_memory_region): .... here.
5087 (get_heap_region): New function.
5088 (init_device): Initialize the heap_region.
5089 (device_malloc): Add region parameter.
5090 (struct kernargs): Move heap ....
5091 (heap): ... to global scope.
5092 (main): Allocate heap separate to kernargs.
5094 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
5096 * ipa-prop.c (ipa_print_node_jump_functions,
5097 ipa_print_node_params): Print info about missing summaries.
5099 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
5101 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
5102 the cost of generating loop masks.
5104 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
5106 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
5108 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
5109 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5110 (vect_transform_loop): Likewise.
5111 (vect_analyze_loop_costing): Don't take the cost of versioning
5112 into account for the static profitability threshold if it turns
5113 out that no versioning is needed.
5115 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
5117 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
5118 and target_option_default_node to get -fprofile-generate ctors working
5121 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
5123 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
5124 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
5125 (vectorizable_assignment): Don't add a cost for nop conversions.
5126 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5128 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
5130 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
5132 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
5133 number of ncopies as an additional argument.
5134 (vectorizable_conversion): Update call accordingly. Use "modifier"
5135 to check whether a conversion is between vectors with the same
5138 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
5140 * config/aarch64/aarch64-sve-builtins-functions.h
5141 (unary_count::expand): Use aarch64_sve_int_mode instead of
5142 mode_for_int_vector.
5144 2019-11-13 Martin Liska <mliska@suse.cz>
5146 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
5148 2019-11-13 Martin Liska <mliska@suse.cz>
5150 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
5151 Remove call to finalize_options_struct.
5153 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
5156 * config/avr/t-avr (avr-mcus): Do not depend on
5157 $(srcdir)/config/avr/t-multilib.
5159 2019-11-13 Richard Biener <rguenther@suse.de>
5161 PR tree-optimization/92473
5162 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
5163 direct optab reduction in the correct type.
5165 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5167 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
5168 hexadecimal literal.
5170 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5172 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
5173 UNORDERED if !HONOR_NANS (DFmode).
5174 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
5175 if !HONOR_NANS (<MODE>mode).
5177 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
5179 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
5180 (ipcp_verify_propagated_values): Likewise.
5181 (propagate_constants_across_call): Likewise.
5182 (propagate_constants_topo): Likewise.
5183 (ipcp_propagate_stage): Likewise.
5185 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
5188 * ipa-profile.c (check_argument_count): Break out from ...;
5189 watch for missing summaries.
5190 (ipa_profile): Here.
5192 2019-11-12 Martin Sebor <msebor@redhat.com>
5194 PR tree-optimization/92412
5195 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
5198 2019-11-12 Martin Sebor <msebor@redhat.com>
5201 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
5202 (directive::argno): New member.
5203 (format_result::aliases, format_result::alias_count): New data members.
5204 (format_result::append_alias): New member function.
5205 (fmtresult::dst_offset): New data member.
5206 (pass_sprintf_length::call_info::dst_origin): New data member.
5207 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
5208 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
5209 (get_origin_and_offset): Same.
5210 (format_string): Call it.
5211 (format_directive): Call append_alias and set directive argument
5213 (maybe_warn_overlap): New function.
5214 (pass_sprintf_length::compute_format_length): Call it.
5215 (pass_sprintf_length::handle_gimple_call): Initialize new members.
5216 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
5218 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
5220 PR rtl-optimization/92430
5221 * cfgcleanup.c (pass_jump_after_combine::execute): Free
5222 dominance info at the beginning.
5224 2019-11-12 Richard Biener <rguenther@suse.de>
5226 PR tree-optimization/92460
5227 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
5228 expression before gimplifying.
5230 2019-11-12 Richard Biener <rguenther@suse.de>
5232 PR tree-optimization/92461
5233 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
5234 stmt after propagation.
5236 2019-11-12 Martin Liska <mliska@suse.cz>
5238 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
5239 Use SET_OPTION_IF_UNSET.
5240 (ix86_option_override_internal): Likewise.
5241 * opts.c (default_options_optimization): Likewise.
5242 (finish_options): Likewise.
5243 (enable_fdo_optimizations): Likewise.
5244 (common_handle_option): Likewise.
5246 2019-11-12 Martin Liska <mliska@suse.cz>
5248 * common/common-target.def: Remove option_validate_param and
5249 option_default_params.
5250 * common/common-targhooks.c (default_option_validate_param):
5252 * common/common-targhooks.h (default_option_validate_param):
5254 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
5255 Remove usage of this.
5256 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
5257 (aarch64_option_validate_param): Likewise.
5258 (aarch64_option_default_params): Likewise
5259 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
5260 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5261 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
5262 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5263 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
5264 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5265 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
5266 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5267 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
5268 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
5269 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
5271 * doc/tm.texi: Remove option_default_params and option_validate_param.
5272 * doc/tm.texi.in: Likewise.
5274 2019-11-12 Martin Liska <mliska@suse.cz>
5276 * common/common-target.def:
5277 Do not mention set_default_param_value
5278 and set_param_value.
5279 * doc/tm.texi: Likewise.
5281 2019-11-12 Martin Liska <mliska@suse.cz>
5283 * common.opt: Remove param_values.
5284 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
5285 Remove finalize_options_struct.
5286 * gcc.c (driver::decode_argv): Do not call global_init_params
5288 (driver::finalize): Do not call params_c_finalize
5289 and finalize_options_struct.
5290 * opt-suggestions.c (option_proposer::get_completions): Remove
5291 special casing of params.
5292 (option_proposer::find_param_completions): Remove.
5293 (test_completion_partial_match): Update expected output.
5294 * opt-suggestions.h: Remove find_param_completions.
5295 * opts-common.c (add_misspelling_candidates): Add
5296 --param with a space.
5297 * opts.c (handle_param): Remove.
5298 (init_options_struct):. Remove init_options_struct and
5300 (finalize_options_struct): Remove.
5301 (common_handle_option): Use SET_OPTION_IF_UNSET.
5302 * opts.h (finalize_options_struct): Remove.
5303 * toplev.c (general_init): Do not call global_init_params.
5304 (toplev::finalize): Do not call params_c_finalize and
5305 finalize_options_struct.
5307 2019-11-12 Martin Liska <mliska@suse.cz>
5309 * Makefile.in: Remove PARAMS_H and params.list
5311 * params-enum.h: Remove.
5312 * params-list.h: Remove.
5313 * params-options.h: Remove.
5315 * params.def: Remove.
5317 * asan.c: Do not include params.h.
5318 * auto-profile.c: Likewise.
5319 * bb-reorder.c: Likewise.
5320 * builtins.c: Likewise.
5321 * cfgcleanup.c: Likewise.
5322 * cfgexpand.c: Likewise.
5323 * cfgloopanal.c: Likewise.
5324 * cgraph.c: Likewise.
5325 * combine.c: Likewise.
5326 * common/config/aarch64/aarch64-common.c: Likewise.
5327 * common/config/gcn/gcn-common.c: Likewise.
5328 * common/config/ia64/ia64-common.c: Likewise.
5329 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
5330 * common/config/rs6000/rs6000-common.c: Likewise.
5331 * common/config/sh/sh-common.c: Likewise.
5332 * config/aarch64/aarch64.c: Likewise.
5333 * config/alpha/alpha.c: Likewise.
5334 * config/arm/arm.c: Likewise.
5335 * config/avr/avr.c: Likewise.
5336 * config/csky/csky.c: Likewise.
5337 * config/i386/i386-builtins.c: Likewise.
5338 * config/i386/i386-expand.c: Likewise.
5339 * config/i386/i386-features.c: Likewise.
5340 * config/i386/i386-options.c: Likewise.
5341 * config/i386/i386.c: Likewise.
5342 * config/ia64/ia64.c: Likewise.
5343 * config/rs6000/rs6000-logue.c: Likewise.
5344 * config/rs6000/rs6000.c: Likewise.
5345 * config/s390/s390.c: Likewise.
5346 * config/sparc/sparc.c: Likewise.
5347 * config/visium/visium.c: Likewise.
5348 * coverage.c: Likewise.
5349 * cprop.c: Likewise.
5351 * cselib.c: Likewise.
5353 * emit-rtl.c: Likewise.
5354 * explow.c: Likewise.
5355 * final.c: Likewise.
5356 * fold-const.c: Likewise.
5359 * ggc-common.c: Likewise.
5360 * ggc-page.c: Likewise.
5361 * gimple-loop-interchange.cc: Likewise.
5362 * gimple-loop-jam.c: Likewise.
5363 * gimple-loop-versioning.cc: Likewise.
5364 * gimple-ssa-split-paths.c: Likewise.
5365 * gimple-ssa-sprintf.c: Likewise.
5366 * gimple-ssa-store-merging.c: Likewise.
5367 * gimple-ssa-strength-reduction.c: Likewise.
5368 * gimple-ssa-warn-alloca.c: Likewise.
5369 * gimple-ssa-warn-restrict.c: Likewise.
5370 * graphite-isl-ast-to-gimple.c: Likewise.
5371 * graphite-optimize-isl.c: Likewise.
5372 * graphite-scop-detection.c: Likewise.
5373 * graphite-sese-to-poly.c: Likewise.
5374 * graphite.c: Likewise.
5375 * haifa-sched.c: Likewise.
5376 * hsa-gen.c: Likewise.
5377 * ifcvt.c: Likewise.
5378 * ipa-cp.c: Likewise.
5379 * ipa-fnsummary.c: Likewise.
5380 * ipa-inline-analysis.c: Likewise.
5381 * ipa-inline.c: Likewise.
5382 * ipa-polymorphic-call.c: Likewise.
5383 * ipa-profile.c: Likewise.
5384 * ipa-prop.c: Likewise.
5385 * ipa-split.c: Likewise.
5386 * ipa-sra.c: Likewise.
5387 * ira-build.c: Likewise.
5388 * ira-conflicts.c: Likewise.
5389 * loop-doloop.c: Likewise.
5390 * loop-invariant.c: Likewise.
5391 * loop-unroll.c: Likewise.
5392 * lra-assigns.c: Likewise.
5393 * lra-constraints.c: Likewise.
5394 * modulo-sched.c: Likewise.
5395 * opt-suggestions.c: Likewise.
5397 * postreload-gcse.c: Likewise.
5398 * predict.c: Likewise.
5399 * reload.c: Likewise.
5400 * reorg.c: Likewise.
5401 * resource.c: Likewise.
5402 * sanopt.c: Likewise.
5403 * sched-deps.c: Likewise.
5404 * sched-ebb.c: Likewise.
5405 * sched-rgn.c: Likewise.
5406 * sel-sched-ir.c: Likewise.
5407 * sel-sched.c: Likewise.
5408 * shrink-wrap.c: Likewise.
5410 * targhooks.c: Likewise.
5411 * toplev.c: Likewise.
5412 * tracer.c: Likewise.
5413 * trans-mem.c: Likewise.
5414 * tree-chrec.c: Likewise.
5415 * tree-data-ref.c: Likewise.
5416 * tree-if-conv.c: Likewise.
5417 * tree-inline.c: Likewise.
5418 * tree-loop-distribution.c: Likewise.
5419 * tree-parloops.c: Likewise.
5420 * tree-predcom.c: Likewise.
5421 * tree-profile.c: Likewise.
5422 * tree-scalar-evolution.c: Likewise.
5423 * tree-sra.c: Likewise.
5424 * tree-ssa-ccp.c: Likewise.
5425 * tree-ssa-dom.c: Likewise.
5426 * tree-ssa-dse.c: Likewise.
5427 * tree-ssa-ifcombine.c: Likewise.
5428 * tree-ssa-loop-ch.c: Likewise.
5429 * tree-ssa-loop-im.c: Likewise.
5430 * tree-ssa-loop-ivcanon.c: Likewise.
5431 * tree-ssa-loop-ivopts.c: Likewise.
5432 * tree-ssa-loop-manip.c: Likewise.
5433 * tree-ssa-loop-niter.c: Likewise.
5434 * tree-ssa-loop-prefetch.c: Likewise.
5435 * tree-ssa-loop-unswitch.c: Likewise.
5436 * tree-ssa-math-opts.c: Likewise.
5437 * tree-ssa-phiopt.c: Likewise.
5438 * tree-ssa-pre.c: Likewise.
5439 * tree-ssa-reassoc.c: Likewise.
5440 * tree-ssa-sccvn.c: Likewise.
5441 * tree-ssa-scopedtables.c: Likewise.
5442 * tree-ssa-sink.c: Likewise.
5443 * tree-ssa-strlen.c: Likewise.
5444 * tree-ssa-structalias.c: Likewise.
5445 * tree-ssa-tail-merge.c: Likewise.
5446 * tree-ssa-threadbackward.c: Likewise.
5447 * tree-ssa-threadedge.c: Likewise.
5448 * tree-ssa-uninit.c: Likewise.
5449 * tree-switch-conversion.c: Likewise.
5450 * tree-vect-data-refs.c: Likewise.
5451 * tree-vect-loop.c: Likewise.
5452 * tree-vect-slp.c: Likewise.
5453 * tree-vrp.c: Likewise.
5455 * value-prof.c: Likewise.
5456 * var-tracking.c: Likewise.
5458 2019-11-12 Martin Liska <mliska@suse.cz>
5460 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
5461 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
5463 (asan_sanitize_allocas_p): Likewise.
5464 (asan_emit_stack_protection): Likewise.
5465 (asan_protect_global): Likewise.
5466 (instrument_derefs): Likewise.
5467 (instrument_builtin_call): Likewise.
5468 (asan_expand_mark_ifn): Likewise.
5469 * auto-profile.c (auto_profile): Likewise.
5470 * bb-reorder.c (copy_bb_p): Likewise.
5471 (duplicate_computed_gotos): Likewise.
5472 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
5473 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
5474 (try_crossjump_bb): Likewise.
5475 * cfgexpand.c (defer_stack_allocation): Likewise.
5476 (stack_protect_classify_type): Likewise.
5477 (pass_expand::execute): Likewise.
5478 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
5479 (estimate_reg_pressure_cost): Likewise.
5480 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
5481 * combine.c (combine_instructions): Likewise.
5482 (record_value_for_reg): Likewise.
5483 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
5484 (aarch64_option_default_params): Likewise.
5485 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
5486 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
5487 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
5488 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
5489 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
5490 (aarch64_allocate_and_probe_stack_space): Likewise.
5491 (aarch64_expand_epilogue): Likewise.
5492 (aarch64_override_options_internal): Likewise.
5493 * config/alpha/alpha.c (alpha_option_override): Likewise.
5494 * config/arm/arm.c (arm_option_override): Likewise.
5495 (arm_valid_target_attribute_p): Likewise.
5496 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
5497 * config/i386/i386.c (get_probe_interval): Likewise.
5498 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
5499 (ix86_max_noce_ifcvt_seq_cost): Likewise.
5500 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
5501 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
5502 (get_stack_clash_protection_guard_size): Likewise.
5503 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5504 * config/s390/s390.c (allocate_stack_space): Likewise.
5505 (s390_emit_prologue): Likewise.
5506 (s390_option_override_internal): Likewise.
5507 * config/sparc/sparc.c (sparc_option_override): Likewise.
5508 * config/visium/visium.c (visium_option_override): Likewise.
5509 * coverage.c (get_coverage_counts): Likewise.
5510 (coverage_compute_profile_id): Likewise.
5511 (coverage_begin_function): Likewise.
5512 (coverage_end_function): Likewise.
5513 * cse.c (cse_find_path): Likewise.
5514 (cse_extended_basic_block): Likewise.
5515 (cse_main): Likewise.
5516 * cselib.c (cselib_invalidate_mem): Likewise.
5517 * dse.c (dse_step1): Likewise.
5518 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
5519 (get_max_insn_count): Likewise.
5520 (make_debug_insn_raw): Likewise.
5521 (init_emit): Likewise.
5522 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
5523 * final.c (compute_alignments): Likewise.
5524 * fold-const.c (fold_range_test): Likewise.
5525 (fold_truth_andor): Likewise.
5526 (tree_single_nonnegative_warnv_p): Likewise.
5527 (integer_valued_real_single_p): Likewise.
5528 * gcse.c (want_to_gcse_p): Likewise.
5529 (prune_insertions_deletions): Likewise.
5530 (hoist_code): Likewise.
5531 (gcse_or_cprop_is_too_expensive): Likewise.
5532 * ggc-common.c: Likewise.
5533 * ggc-page.c (ggc_collect): Likewise.
5534 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
5535 (MAX_DATAREFS): Likewise.
5536 (OUTER_STRIDE_RATIO): Likewise.
5537 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
5538 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
5539 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
5540 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
5541 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
5542 (imm_store_chain_info::output_merged_store): Likewise.
5543 (pass_store_merging::process_store): Likewise.
5544 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
5545 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
5546 (scop_to_isl_ast): Likewise.
5547 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
5548 (optimize_isl): Likewise.
5549 * graphite-scop-detection.c (build_scops): Likewise.
5550 * haifa-sched.c (set_modulo_params): Likewise.
5551 (rank_for_schedule): Likewise.
5552 (model_add_to_worklist): Likewise.
5553 (model_promote_insn): Likewise.
5554 (model_choose_insn): Likewise.
5555 (queue_to_ready): Likewise.
5556 (autopref_multipass_dfa_lookahead_guard): Likewise.
5557 (schedule_block): Likewise.
5558 (sched_init): Likewise.
5559 * hsa-gen.c (init_prologue): Likewise.
5560 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
5561 (cond_move_process_if_block): Likewise.
5562 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
5563 (merge_agg_lats_step): Likewise.
5564 (devirtualization_time_bonus): Likewise.
5565 (hint_time_bonus): Likewise.
5566 (incorporate_penalties): Likewise.
5567 (good_cloning_opportunity_p): Likewise.
5568 (ipcp_propagate_stage): Likewise.
5569 * ipa-fnsummary.c (decompose_param_expr): Likewise.
5570 (set_switch_stmt_execution_predicate): Likewise.
5571 (analyze_function_body): Likewise.
5572 (compute_fn_summary): Likewise.
5573 * ipa-inline-analysis.c (estimate_growth): Likewise.
5574 * ipa-inline.c (caller_growth_limits): Likewise.
5575 (inline_insns_single): Likewise.
5576 (inline_insns_auto): Likewise.
5577 (can_inline_edge_by_limits_p): Likewise.
5578 (want_early_inline_function_p): Likewise.
5579 (big_speedup_p): Likewise.
5580 (want_inline_small_function_p): Likewise.
5581 (want_inline_self_recursive_call_p): Likewise.
5582 (edge_badness): Likewise.
5583 (recursive_inlining): Likewise.
5584 (compute_max_insns): Likewise.
5585 (early_inliner): Likewise.
5586 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
5587 * ipa-profile.c (ipa_profile): Likewise.
5588 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
5589 (ipa_analyze_node): Likewise.
5590 (ipcp_transform_function): Likewise.
5591 * ipa-split.c (consider_split): Likewise.
5592 * ipa-sra.c (allocate_access): Likewise.
5593 (process_scan_results): Likewise.
5594 (ipa_sra_summarize_function): Likewise.
5595 (pull_accesses_from_callee): Likewise.
5596 * ira-build.c (loop_compare_func): Likewise.
5597 (mark_loops_for_removal): Likewise.
5598 * ira-conflicts.c (build_conflict_bit_table): Likewise.
5599 * loop-doloop.c (doloop_optimize): Likewise.
5600 * loop-invariant.c (gain_for_invariant): Likewise.
5601 (move_loop_invariants): Likewise.
5602 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
5603 (decide_unroll_runtime_iterations): Likewise.
5604 (decide_unroll_stupid): Likewise.
5605 (expand_var_during_unrolling): Likewise.
5606 * lra-assigns.c (spill_for): Likewise.
5607 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
5608 * modulo-sched.c (sms_schedule): Likewise.
5609 (DFA_HISTORY): Likewise.
5610 * opts.c (default_options_optimization): Likewise.
5611 (finish_options): Likewise.
5612 (common_handle_option): Likewise.
5613 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5615 * predict.c (get_hot_bb_threshold): Likewise.
5616 (maybe_hot_count_p): Likewise.
5617 (probably_never_executed): Likewise.
5618 (predictable_edge_p): Likewise.
5619 (predict_loops): Likewise.
5620 (expr_expected_value_1): Likewise.
5621 (tree_predict_by_opcode): Likewise.
5622 (handle_missing_profiles): Likewise.
5623 * reload.c (find_equiv_reg): Likewise.
5624 * reorg.c (redundant_insn): Likewise.
5625 * resource.c (mark_target_live_regs): Likewise.
5626 (incr_ticks_for_insn): Likewise.
5627 * sanopt.c (pass_sanopt::execute): Likewise.
5628 * sched-deps.c (sched_analyze_1): Likewise.
5629 (sched_analyze_2): Likewise.
5630 (sched_analyze_insn): Likewise.
5631 (deps_analyze_insn): Likewise.
5632 * sched-ebb.c (schedule_ebbs): Likewise.
5633 * sched-rgn.c (find_single_block_region): Likewise.
5634 (too_large): Likewise.
5635 (haifa_find_rgns): Likewise.
5636 (extend_rgns): Likewise.
5637 (new_ready): Likewise.
5638 (schedule_region): Likewise.
5639 (sched_rgn_init): Likewise.
5640 * sel-sched-ir.c (make_region_from_loop): Likewise.
5641 * sel-sched-ir.h (MAX_WS): Likewise.
5642 * sel-sched.c (process_pipelined_exprs): Likewise.
5643 (sel_setup_region_sched_flags): Likewise.
5644 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5645 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
5646 * toplev.c (print_version): Likewise.
5647 (process_options): Likewise.
5648 * tracer.c (tail_duplicate): Likewise.
5649 * trans-mem.c (tm_log_add): Likewise.
5650 * tree-chrec.c (chrec_fold_plus_1): Likewise.
5651 * tree-data-ref.c (split_constant_offset): Likewise.
5652 (compute_all_dependences): Likewise.
5653 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
5654 * tree-inline.c (remap_gimple_stmt): Likewise.
5655 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
5656 * tree-parloops.c (MIN_PER_THREAD): Likewise.
5657 (create_parallel_loop): Likewise.
5658 * tree-predcom.c (determine_unroll_factor): Likewise.
5659 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
5660 * tree-sra.c (analyze_all_variable_accesses): Likewise.
5661 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5662 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
5663 (dse_optimize_redundant_stores): Likewise.
5664 (dse_classify_store): Likewise.
5665 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5666 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
5667 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
5668 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5669 (try_peel_loop): Likewise.
5670 (tree_unroll_loops_completely): Likewise.
5671 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5672 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
5673 (MAX_CONSIDERED_GROUPS): Likewise.
5674 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
5675 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
5676 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
5677 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
5678 (L1_CACHE_SIZE_BYTES): Likewise.
5679 (L2_CACHE_SIZE_BYTES): Likewise.
5680 (should_issue_prefetch_p): Likewise.
5681 (schedule_prefetches): Likewise.
5682 (determine_unroll_factor): Likewise.
5683 (volume_of_references): Likewise.
5684 (add_subscript_strides): Likewise.
5685 (self_reuse_distance): Likewise.
5686 (mem_ref_count_reasonable_p): Likewise.
5687 (insn_to_prefetch_ratio_too_small_p): Likewise.
5688 (loop_prefetch_arrays): Likewise.
5689 (tree_ssa_prefetch_arrays): Likewise.
5690 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
5691 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5692 (convert_mult_to_fma): Likewise.
5693 (math_opts_dom_walker::after_dom_children): Likewise.
5694 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5695 (hoist_adjacent_loads): Likewise.
5696 (gate_hoist_loads): Likewise.
5697 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5698 (compute_partial_antic_aux): Likewise.
5699 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
5700 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
5701 (vn_reference_lookup): Likewise.
5702 (do_rpo_vn): Likewise.
5703 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
5704 * tree-ssa-sink.c (select_best_block): Likewise.
5705 * tree-ssa-strlen.c (new_stridx): Likewise.
5706 (new_addr_stridx): Likewise.
5707 (get_range_strlen_dynamic): Likewise.
5708 (class ssa_name_limit_t): Likewise.
5709 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
5710 (create_variable_info_for_1): Likewise.
5711 (init_alias_vars): Likewise.
5712 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
5713 (tail_merge_optimize): Likewise.
5714 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
5715 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
5716 (thread_jumps::find_jump_threads_backwards): Likewise.
5717 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5718 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
5719 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
5720 (jump_table_cluster::can_be_handled): Likewise.
5721 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
5722 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
5723 (param_switch_conversion_branch_ratio): Likewise.
5724 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
5725 (vect_enhance_data_refs_alignment): Likewise.
5726 (vect_prune_runtime_alias_test_list): Likewise.
5727 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
5728 (vect_get_datarefs_in_loop): Likewise.
5729 (vect_analyze_loop): Likewise.
5730 * tree-vect-slp.c (vect_slp_bb): Likewise.
5731 * tree-vectorizer.h: Likewise.
5732 * tree-vrp.c (find_switch_asserts): Likewise.
5733 (vrp_prop::check_mem_ref): Likewise.
5734 * tree.c (wide_int_to_tree_1): Likewise.
5735 (cache_integer_cst): Likewise.
5736 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
5737 (reverse_op): Likewise.
5738 (vt_find_locations): Likewise.
5740 2019-11-12 Martin Liska <mliska@suse.cz>
5742 * Makefile.in: Include params.opt.
5743 * flag-types.h (enum parloops_schedule_type): Add
5744 parloops_schedule_type used in params.opt.
5745 * params.opt: New file.
5747 2019-11-12 Martin Liska <mliska@suse.cz>
5749 * common.opt: Remove --param and --param= options.
5750 * opt-functions.awk: Mark CL_PARAMS for options
5751 that have Param keyword.
5752 * opts-common.c (decode_cmdline_options_to_array):
5753 Replace --param key=value with --param=key=value.
5754 * opts.c (print_filtered_help): Remove special
5756 (print_specific_help): Update title for params.
5757 (common_handle_option): Do not handle OPT__param.
5758 opts.h (SET_OPTION_IF_UNSET): New macro.
5759 * doc/options.texi: Document Param keyword.
5761 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5762 Frederik Harwath <frederik@codesourcery.com>
5763 Thomas Schwinge <thomas@codesourcery.com>
5765 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
5766 enumeration constant.
5767 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5768 (is_gimple_omp_offloaded): Likewise.
5769 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
5770 constant. Adjust the value of ORT_NONE accordingly.
5771 (is_gimple_stmt): Handle OACC_SERIAL.
5772 (oacc_default_clause): Handle ORT_ACC_SERIAL.
5773 (gomp_needs_data_present): Likewise.
5774 (gimplify_adjust_omp_clauses): Likewise.
5775 (gimplify_omp_workshare): Handle OACC_SERIAL.
5776 (gimplify_expr): Likewise.
5777 * omp-expand.c (expand_omp_target):
5778 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5779 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
5780 * omp-low.c (is_oacc_parallel): Rename function to...
5781 (is_oacc_parallel_or_serial): ... this.
5782 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
5783 (scan_sharing_clauses): Adjust accordingly.
5784 (scan_omp_for): Likewise.
5785 (lower_oacc_head_mark): Likewise.
5786 (convert_from_firstprivate_int): Likewise.
5787 (lower_omp_target): Likewise.
5788 (check_omp_nesting_restrictions): Handle
5789 GF_OMP_TARGET_KIND_OACC_SERIAL.
5790 (lower_oacc_reductions): Likewise.
5791 (lower_omp_target): Likewise.
5792 * tree.def (OACC_SERIAL): New tree code.
5793 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
5795 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
5797 2019-11-12 Jakub Jelinek <jakub@redhat.com>
5800 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
5801 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
5803 PR tree-optimization/92452
5804 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
5805 into NULL_TREE, set up_bound to NULL_TREE instead of computing
5808 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
5810 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
5813 2019-11-12 Alan Modra <amodra@gmail.com>
5815 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
5816 element of unspec vec.
5817 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
5819 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
5820 (tls_gd_pcrel, tls_ld_pcrel): New insns.
5821 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
5822 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
5824 2019-11-12 Alan Modra <amodra@gmail.com>
5826 * config/rs6000/rs6000.opt (mtls-markers): Delete.
5827 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
5828 (IS_NOMARK_TLSGETADDR): Likewise.
5829 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
5830 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
5831 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
5832 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
5833 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
5834 (rs6000_indirect_call_template_1): Likewise.
5835 (rs6000_pltseq_template): Likewise.
5836 (rs6000_opt_vars): Remove "tls-markers" entry.
5837 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
5839 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
5840 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
5841 (pltseq_plt_pcrel<mode>): Likewise.
5842 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
5843 (call_value_local64): Likewise.
5844 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
5845 output and length attribute sub-expression.
5846 (call_value_nonlocal_sysv<mode>),
5847 (call_value_nonlocal_sysv_secure<mode>),
5848 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
5849 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
5850 (call_value_indirect_pcrel<mode>): Likewise.
5851 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
5852 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
5853 * configure: Regenerate.
5854 * config.in: Regenerate.
5856 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
5858 * config/rs6000/predicates.md (prefixed_memory): New predicate.
5859 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
5860 address being a prefixed load/store.
5861 (stack_protect_testdi): Deal with either address being a prefixed
5864 2019-11-11 Jakub Jelinek <jakub@redhat.com>
5867 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5868 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
5871 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
5873 PR tree-optimization/92420
5874 * tree-vect-stmts.c (get_negative_load_store_type): Move further
5876 (get_group_load_store_type): Use it for reversed SLP accesses.
5878 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
5880 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5882 (ipcp_transformation_t::duplicate): Break out from ...
5883 (ipa_node_params_t::duplicate): ... here; add copying of agg
5885 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5886 (ipcp_transformation_t): Add duplicate.
5888 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
5891 * doc/install.texi: Document that the minimum MPFR version is
5894 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5896 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5897 use new register constraint letters.
5899 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5901 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5902 as well, if interesting recover the symbol and re-legitimize the
5905 2019-11-11 Martin Liska <mliska@suse.cz>
5907 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5910 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5912 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5913 account when checking if there are enough iterations to vectorize
5916 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5917 Kwok Cheung Yeung <kcy@codesourcery.com>
5919 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5920 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5921 (LANG_HOOKS_DECLS): Rename also here.
5922 * langhooks.h (lang_hooks_for_decls): Rename
5923 omp_is_optional_argument to omp_check_optional_argument; take
5924 additional bool argument.
5925 * omp-general.h (omp_check_optional_argument): Likewise.
5926 * omp-general.h (omp_check_optional_argument): Likewise.
5927 * omp-low.c (lower_omp_target): Update calls; handle absent
5928 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5930 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5933 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5934 -fPIC and -shared the last to create offload image.
5936 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5938 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5941 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5942 (config.status): Use/depend on it.
5943 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5944 * configure: Regenerate.
5946 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5948 PR tree-optimization/88760
5949 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5950 * common/config/rs6000/rs6000-common.c
5951 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5952 Turn on -funroll-loops and -munroll-only-small-loops.
5953 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5954 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5955 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5956 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5957 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5958 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5960 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5962 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5963 Make scalar_load, vector_load, unaligned_load and
5964 vector_gather_load cost more to conform hardware latency and
5967 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5969 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5970 (MACHO_SYMBOL_LINKER_VIS_P): New.
5972 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5974 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5975 registers in eliminable_regset.
5977 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5979 * ipa-inline.c (compute_uninlined_call_time,
5980 compute_inlined_call_time): Take edge frequency as
5981 parameter rather than computing it by itself.
5982 (big_speedup_p, edge_badness): Manually CSE sreal
5983 frequency calculations.
5985 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5987 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5988 case where profiles are same.
5990 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5992 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5994 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5996 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5997 args summaries of inlined edge unless it holds info about
5998 described reference.
6000 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6002 * config/rs6000/rs6000.md (CC_any): New mode iterator.
6003 (*movcc_internal1): Rename to...
6004 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
6006 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6008 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
6009 (cgraph_node::create_virtual_clone): Copy it.
6010 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
6012 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
6013 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
6015 (propagate_constants_across_call): If callee is not analyzed, give up.
6016 (propagate_constants_topo): Lower to bottom latties of all callees of
6017 functions with ipa-cp disabled.
6018 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
6019 (cgraph_edge_brings_value_p): Check for availability first.
6020 (create_specialized_node): Set ipcp_clone.
6021 (ipcp_store_bits_results): Check that info is present.
6022 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
6024 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
6025 conservative when callee summary is missing.
6026 (remap_edge_summaries): Lookup call summary only when needed.
6027 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
6028 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
6030 (ipa_analyze_node): Use get_create.
6031 (propagate_controlled_uses): Do not propagate when function is not
6033 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
6034 (ipa_read_node_info): Use get_create.
6035 * ipa-prop.h (IPA_NODE_REF): Use get.
6036 (IPA_NODE_REF_GET_CREATE): New.
6038 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6040 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
6043 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6045 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
6046 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
6047 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
6048 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
6050 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6052 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
6053 capping the growth cumulated.
6054 (offline_size): Break out from ...
6055 (estimate_growth): ... here.
6056 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
6058 (growth_likely_positive): Turn to ...
6059 (growth_positive_p): Re-implement.
6060 * ipa-inline.h (growth_likely_positive): Remove.
6061 (growth_positive_p): Declare.
6062 * ipa-inline.c (want_inline_small_function_p): Use
6064 (want_inline_function_to_all_callers_p): Likewise.
6066 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6068 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
6069 calculation of min_size.
6070 (ipa_update_overall_fn_summary): Likewise.
6072 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
6074 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
6075 estimate_edge_devirt_benefit when not computing hints;
6076 do not compute time when not asked for.
6077 (estimate_calls_size_and_time): Pass NULL hints and time when
6078 these are not computed; do not evaluate hint predicates when these are
6080 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
6083 2019-11-09 Jakub Jelinek <jakub@redhat.com>
6085 PR tree-optimization/92401
6086 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
6087 if res_op->code is an expression with code length 1.
6088 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
6089 if res_op->code is an expression with code length 2.
6090 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
6091 if res_op->code is an expression with code length 3.
6093 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
6095 * config/darwin.c (machopic_mcount_stub_name): Validate the
6096 symbol stub name when it is created.
6097 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
6100 2019-11-09 Jakub Jelinek <jakub@redhat.com>
6102 * symtab.c: Fix comment typos.
6103 * cgraphunit.c: Likewise.
6104 * cgraph.h: Likewise.
6105 * cgraphclones.c: Likewise.
6106 * cgraph.c: Likewise.
6107 * varpool.c: Likewise.
6108 * tree-ssa-strlen.c: Likewise.
6109 * ipa-sra.c: Likewise.
6110 (scan_expr_access, check_all_callers_for_issues): Fix typo
6113 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
6115 * config/darwin-protos.h: Add include quard.
6117 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
6119 * range-op.h (range_operator::fold_range): Return result in a
6120 reference parameter instead of by value.
6121 (range_operator::wi_fold): Same.
6122 * range-op.cc (range_operator::wi_fold): Return result in a reference
6123 parameter instead of by value.
6124 (range_operator::fold_range): Same.
6125 (value_range_from_overflowed_bounds): Same.
6126 (value_range_with_overflow): Same
6127 (create_possibly_reversed_range): Same.
6128 (operator_equal::fold_range): Same.
6129 (operator_not_equal::fold_range): Same.
6130 (operator_lt::fold_range): Same.
6131 (operator_le::fold_range): Same.
6132 (operator_gt::fold_range): Same.
6133 (operator_ge::fold_range): Same.
6134 (operator_plus::wi_fold): Same.
6135 (operator_plus::op1_range): Change call to fold_range.
6136 (operator_plus::op2_range): Change call to fold_range.
6137 (operator_minus::wi_fold): Return result via reference parameter.
6138 (operator_minus::op1_range): Change call to fold_range.
6139 (operator_minus::op2_range): Change call to fold_range.
6140 (operator_min::wi_fold): Return result via reference parameter.
6141 (operator_max::wi_fold): Same.
6142 (cross_product_operator::wi_cross_product): Same.
6143 (operator_mult::wi_fold): Same.
6144 (operator_div::wi_fold): Same.
6145 (operator_div op_floor_div): Fix whitespace.
6146 (operator_exact_divide::op1_range): Change call to fold_range.
6147 (operator_lshift::fold_range): Return result via reference parameter.
6148 (operator_lshift::wi_fold): Same.
6149 (operator_rshift::fold_range): Same.
6150 (operator_rshift::wi_fold): Same.
6151 (operator_cast::fold_range): Same.
6152 (operator_cast::op1_range): Change calls to fold_range.
6153 (operator_logical_and::fold_range): Return result via reference.
6154 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
6155 (operator_bitwise_and::wi_fold): Return result via reference.
6156 (operator_logical_or::fold_range): Same.
6157 (operator_bitwise_or::wi_fold): Same.
6158 (operator_bitwise_xor::wi_fold): Same.
6159 (operator_trunc_mod::wi_fold): Same.
6160 (operator_logical_not::fold_range): Same.
6161 (operator_bitwise_not::fold_range): Same.
6162 (operator_bitwise_not::op1_range): Change call to fold_range.
6163 (operator_cst::fold_range): Return result via reference.
6164 (operator_identity::fold_range): Same.
6165 (operator_abs::wi_fold): Same.
6166 (operator_absu::wi_fold): Same.
6167 (operator_negate::fold_range): Same.
6168 (operator_negate::op1_range): Change call to fold_range.
6169 (operator_addr_expr::fold_range): Return result via reference.
6170 (operator_addr_expr::op1_range): Change call to fold_range.
6171 (operator_pointer_plus::wi_fold): Return result via reference.
6172 (operator_pointer_min_max::wi_fold): Same.
6173 (operator_pointer_and::wi_fold): Same.
6174 (operator_pointer_or::wi_fold): Same.
6175 (range_op_handler): Change call to fold_range.
6177 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
6179 (range_fold_unary_symbolics_p): Same.
6180 (range_fold_binary_expr): Same.
6181 (range_fold_unary_expr): Same.
6183 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6185 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
6186 vector type as an argument rather than reading it from the
6188 (vect_create_epilog_for_reduction): Update accordingly.
6189 (vectorizable_reduction): Likewise.
6190 (vect_transform_cycle_phi): Likewise.
6192 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
6194 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
6195 the comparison codes that make sense for the mode used, and only the
6196 codes that can be done with a single branch instruction.
6198 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6200 PR tree-optimization/92351
6201 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
6202 peeling the main loop for alignment, make sure to set the misalignment
6203 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
6205 2019-11-08 Richard Biener <rguenther@suse.de>
6207 * dbgcnt.def (ivopts_loop): Add.
6208 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
6209 ivopts_loop before optimizing a loop.
6211 2019-11-08 Richard Biener <rguenther@suse.de>
6214 * tree-inline.c (declare_return_variable): Properly handle
6215 type mismatches for the return slot.
6217 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
6220 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
6221 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
6223 (got_helper_needed): New static variable.
6224 (output_load_pcrel_sym): New function.
6225 (get_pc_thunk_name): Remove after inlining...
6226 (load_got_register): ...here. Rework the initialization of the GOT
6227 register and of the GOT helper.
6228 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
6229 (sparc_file_end): Test got_helper_needed to decide whether the GOT
6230 helper must be emitted. Use output_asm_insn instead of fprintf.
6231 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
6232 if optimization is enabled.
6233 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
6234 by calling output_load_pcrel_sym.
6236 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6238 * tree-sra.c (create_access): Delay disqualifying the base
6239 for poly_int values until we know we have a base.
6241 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6243 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
6244 for loops with SIMDUID set. Enable epilogue vectorization for loops
6245 with SIMDLEN set after finding a main loop with a VF that matches it.
6247 2019-11-08 Jakub Jelinek <jakub@redhat.com>
6250 * gimple-ssa-store-merging.c (find_constituent_stores): For return
6251 value only, return non-NULL if there is a single non-clobber
6252 constituent store even if there are constituent clobbers and return
6253 one of clobber constituent stores if all constituent stores are
6255 (split_group): Handle clobbers.
6256 (imm_store_chain_info::output_merged_store): When computing
6257 bzero_first, look after all clobbers at the start. Don't count
6258 clobber stmts in orig_num_stmts, except if the first orig store is
6259 a clobber covering the whole area and split_stores cover the whole
6260 area, consider equal number of stmts ok. Punt if split_stores
6261 contains only ->orig stores and their number plus number of original
6262 clobbers is equal to original number of stmts. For ->orig, look past
6263 clobbers in the constituent stores.
6264 (imm_store_chain_info::output_merged_stores): Don't remove clobber
6266 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
6268 (store_valid_for_store_merging_p): Allow clobber stmts.
6269 (verify_clear_bit_region_be): Fix up a thinko in function comment.
6272 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
6273 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
6275 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
6276 force creation of a unique data.stack_parm slot.
6278 2019-11-08 Richard Biener <rguenther@suse.de>
6280 * genmatch.c (expr::gen_transform): Use the resimplify
6281 member function instead of hard-coding the gimple_resimplifyN variant.
6282 (dt_simplify::gen_1): Likewise.
6284 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6286 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6289 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6291 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
6292 instead of INTEGER_CST.
6294 2019-11-08 Richard Biener <rguenther@suse.de>
6296 PR tree-optimization/92324
6297 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6298 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
6299 sign-conversions as necessary.
6300 (vectorizable_reduction): Reject conversions in the chain
6301 that are not sign-conversions, base analysis on a non-converting
6302 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
6303 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
6305 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
6306 (STMT_VINFO_REDUC_VECTYPE): Likewise.
6308 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
6311 * config/avr/avr.opt (-mdouble=, -mlong-double=):
6312 Fix a missing '-' when displaying these options in the
6315 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6317 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
6319 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6321 * config/aarch64/aarch64-builtins.c
6322 (aarch64_builtin_vectorized_function): Remove bswap handling.
6324 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6326 * tree-core.h (tree_type_common::indivisible_p): New member variable.
6327 * tree.h (TYPE_INDIVISIBLE_P): New macro.
6328 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6329 Treat the vector types as indivisible.
6331 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
6333 * optabs.def (gather_load_optab, mask_gather_load_optab)
6334 (scatter_store_optab, mask_scatter_store_optab): Turn into
6335 conversion optabs, with the offset mode given explicitly.
6336 * doc/md.texi: Update accordingly.
6337 * config/aarch64/aarch64-sve-builtins-base.cc
6338 (svld1_gather_impl::expand): Likewise.
6339 (svst1_scatter_impl::expand): Likewise.
6340 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
6341 (expand_scatter_store_optab_fn): Likewise.
6342 (direct_gather_load_optab_supported_p): Likewise.
6343 (direct_scatter_store_optab_supported_p): Likewise.
6344 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
6346 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
6347 (internal_gather_scatter_fn_supported_p): Replace the offset sign
6348 argument with the offset vector type. Require the two vector
6349 types to have the same number of elements but allow their element
6350 sizes to be different. Treat the optabs as conversion optabs.
6351 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
6352 prototype accordingly.
6353 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
6354 (supports_vec_convert_optab_p): ...this new function.
6355 (supports_vec_gather_load_p): Update accordingly.
6356 (supports_vec_scatter_store_p): Likewise.
6357 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
6358 Replace the offset sign and bits parameters with a scalar type tree.
6359 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
6360 Pass back the offset vector type instead of the scalar element type.
6361 Allow the offset to be wider than the memory elements. Search for
6362 an offset type that the target supports, stopping once we've
6363 reached the maximum of the element size and pointer size.
6364 Update call to internal_gather_scatter_fn_supported_p.
6365 (vect_check_gather_scatter): Update calls accordingly.
6366 When testing a new scale before knowing the final offset type,
6367 check whether the scale is supported for any signed or unsigned
6368 offset type. Check whether the target supports the source and
6369 target types of a conversion before deciding whether to look
6370 through the conversion. Record the chosen offset_vectype.
6371 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
6372 (vect_recog_gather_scatter_pattern): Get the scalar offset type
6373 directly from the gs_info's offset_vectype instead. Pass a zero
6374 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
6375 * tree-vect-stmts.c (check_load_store_masking): Update call to
6376 internal_gather_scatter_fn_supported_p, passing the offset vector
6377 type recorded in the gs_info.
6378 (vect_truncate_gather_scatter_offset): Update call to
6379 vect_check_gather_scatter, leaving it to search for a valid
6381 (vect_use_strided_gather_scatters_p): Convert the offset to the
6382 element type of the gs_info's offset_vectype.
6383 (vect_get_gather_scatter_ops): Get the offset vector type directly
6385 (vect_get_strided_load_store_ops): Likewise.
6386 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
6387 and IFN_MASK_GATHER_LOAD.
6388 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
6389 (gather_load<mode><v_int_equiv>): ...this.
6390 (mask_gather_load<mode>): Rename to...
6391 (mask_gather_load<mode><v_int_equiv>): ...this.
6392 (scatter_store<mode>): Rename to...
6393 (scatter_store<mode><v_int_equiv>): ...this.
6394 (mask_scatter_store<mode>): Rename to...
6395 (mask_scatter_store<mode><v_int_equiv>): ...this.
6397 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
6400 * config/rs6000/predicates.md
6401 (signed_or_equality_comparison_operator): New predicate.
6402 (unsigned_or_equality_comparison_operator): Likewise.
6403 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
6404 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
6405 * config/rs6000/vector.md
6406 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
6407 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
6408 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
6409 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
6410 vector modes and same-size integer vector modes.
6411 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
6412 (vector_lt<mode> for VEC_F): New expand.
6413 (vector_le<mode> for VEC_F): Likewise.
6414 (vector_ne<mode> for VEC_F): Likewise.
6415 (vector_unge<mode> for VEC_F): Likewise.
6416 (vector_ungt<mode> for VEC_F): Likewise.
6417 (vector_unle<mode> for VEC_F): Likewise.
6418 (vector_unlt<mode> for VEC_F): Likewise.
6419 (vector_uneq<mode>): Expose name.
6420 (vector_ltgt<mode>): Likewise.
6421 (vector_unordered<mode>): Likewise.
6422 (vector_ordered<mode>): Likewise.
6424 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
6427 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
6428 Enhance ix86_expand_vector_init_concat.
6430 2019-11-08 Joseph Myers <joseph@codesourcery.com>
6432 * doc/invoke.texi (-Wold-style-definition): Document () not being
6433 considered an old-style definition for C2x.
6435 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
6437 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
6439 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
6440 insn patterns using ldcw instruction.
6441 (memory_barrier): Remove insn pattern using sync instruction.
6442 * config/pa/pa.opt (coherent-ldcw): New option.
6443 (ordered): New option.
6445 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6447 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
6450 2019-11-07 Jakub Jelinek <jakub@redhat.com>
6452 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
6453 typo - mistmatch -> mismatch.
6454 * ipa-profile.c (ipa_profile): Likewise.
6455 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
6456 - mistmatch -> mismatch.
6458 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6460 * simplify-rtx.c (comparison_to_mask): New function.
6461 (mask_to_comparison): New function.
6462 (simplify_logical_relational_operation): New function.
6463 (simplify_binary_operation_1): Call
6464 simplify_logical_relational_operation.
6466 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
6469 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
6470 modes for integer constants.
6472 2019-11-07 Jan Hubicka <jh@suse.cz>
6475 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
6478 2019-11-07 Jan Hubicka <jh@suse.cz>
6480 * optc-save-gen.awk: Generate cl_target_option_free
6481 and cl_optimization_option_free.
6482 * opth-en.awk: Declare cl_target_option_free
6483 and cl_optimization_option_free.
6484 * tree.c (free_node): Use it.
6486 2019-11-06 Jan Hubicka <jh@suse.cz>
6488 * lto-streamer-in.c: Include alloc-pool.h.
6489 (freeing_string_slot_hasher): Remove.
6490 (string_slot_allocator): New object allocator.
6491 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
6492 (file_name_obstack): New obstack.
6493 (canon_file_name): Allocate in obstack and allocator.
6494 (lto_reader_init): Initialize obstack and allocator.
6495 (lto_free_file_name_hash): New function.
6496 * lto-streamer.h (lto_free_file_name_hash): New.
6498 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
6500 PR tree-optimization/89134
6501 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
6502 * params.def: Add min-loop-cond-split-prob.
6503 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
6504 outside checks on loop into the function.
6505 (split_info): New class.
6506 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
6507 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
6508 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
6509 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
6510 (stmt_semi_invariant_p, branch_removable_p): Likewise.
6511 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
6512 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
6513 (split_loop_on_cond): Likewise.
6514 (tree_ssa_split_loops): Add loop split on conditional statement.
6516 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
6518 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
6521 2019-11-07 Richard Biener <rguenther@suse.de>
6523 PR tree-optimization/92405
6524 * tree-vect-loop.c (vectorizable_reduction): Appropriately
6525 restrict lane-reducing ops to single stmt chains.
6527 2019-11-07 Martin Jambor <mjambor@suse.cz>
6530 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
6531 * cgraph.h (gimple_check_call_matching_types): Remove
6532 * cgraph.c (gimple_check_call_args): Likewise.
6533 (gimple_check_call_matching_types): Likewise.
6534 (symbol_table::create_edge): Do not call
6535 gimple_check_call_matching_types.
6536 (cgraph_edge::make_direct): Likewise.
6537 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6538 * value-prof.h (check_ic_target): Remove.
6539 * value-prof.c (check_ic_target): Remove.
6540 (gimple_ic_transform): Do nat call check_ic_target.
6541 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
6542 (afdo_indirect_call): Likewise.
6543 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
6544 gimple_check_call_matching_types.
6545 * ipa-inline.c (early_inliner): Likewise.
6547 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6549 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
6550 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
6551 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
6552 * config/arm/arm_acle_builtins.def: Define builtins for the above.
6553 * config/arm/iterators.md (USSAT16): New int_iterator.
6554 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
6556 * config/arm/predicates.md (ssat16_imm): New predicate.
6557 (usat16_imm): Likewise.
6558 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
6560 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6562 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
6564 (arm_<simd32_op>): New define_expands.
6565 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
6566 __smuad, __smuadx): Define.
6567 * config/arm/arm_acle_builtins.def: Define builtins for the above.
6568 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
6569 (SIMD32_BINOP_Q): Likewise.
6570 (simd32_op): Handle the above.
6571 * config/arm/unspecs.md: Define unspecs for the above.
6573 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6575 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
6576 * config/arm/arm.md (APSRGE_REGNUM): Define.
6577 (arm_<simd32_op>): New define_insn.
6578 (arm_sel): Likewise.
6579 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
6580 (CALL_USED_REGISTERS): Likewise.
6581 (REG_ALLOC_ORDER): Likewise.
6582 (FIRST_PSEUDO_REGISTER): Update value.
6583 (ARM_GE_BITS_READ): Define.
6584 * config/arm/arm.c (arm_conditional_register_usage): Clear
6585 APSRGE_REGNUM from operand_reg_set.
6586 (arm_ge_bits_access): Define.
6587 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
6589 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
6590 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
6591 FAIL if ARM_GE_BITS_READ.
6592 (*arm_add<mode>3): New define_insn.
6593 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
6594 (*arm_sub<mode>3): New define_insn.
6595 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
6596 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
6598 * config/arm/arm_acle_builtins.def: Define builtins for the above.
6599 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
6600 (simd32_op): Handle the above.
6601 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
6602 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
6603 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
6604 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
6606 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6608 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
6609 (arm_smlabb): New define_expand.
6610 (*maddhisi4tb): Rename to...
6611 (maddhisi4tb): ... This.
6612 (*maddhisi4tt): Rename to...
6613 (maddhisi4tt): ... This.
6614 (arm_smlatb_setq): New define_insn.
6615 (arm_smlatb): New define_expand.
6616 (arm_smlatt_setq): New define_insn.
6617 (arm_smlatt): New define_expand.
6618 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
6619 (arm_<smlaw_op>): New define_expand.
6620 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
6621 __smlawb, __smlawt): Define.
6622 * config/arm_acle_builtins.def: Define builtins for the above.
6623 * config/arm/iterators.md (SMLAWBT): New int_iterator.
6624 (slaw_op): New int_attribute.
6625 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
6627 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6629 * config/arm/arm.md (arm_<ss_op>): New define_expand.
6630 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
6631 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
6632 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
6633 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
6634 (ss_op): New code_attr.
6636 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6638 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
6639 * config/arm/arm.md (APSRQ_REGNUM): Define.
6640 (add_setq): New define_subst.
6641 (add_clobber_q_name): New define_subst_attr.
6642 (add_clobber_q_pred): Likewise.
6643 (maddhisi4): Change to define_expand. Split into mult and add if
6645 (arm_maddhisi4): New define_insn.
6646 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
6647 (*maddhisi4tt): Likewise.
6648 (arm_ssat): New define_expand.
6649 (arm_usat): Likewise.
6650 (arm_get_apsr): New define_insn.
6651 (arm_set_apsr): Likewise.
6652 (arm_saturation_occurred): New define_expand.
6653 (arm_set_saturation): Likewise.
6654 (*satsi_<SAT:code>): Rename to...
6655 (satsi_<SAT:code><add_clobber_q_name>): ... This.
6656 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
6657 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
6658 (CALL_USED_REGISTERS): Mark apsrq.
6659 (FIRST_PSEUDO_REGISTER): Update value.
6660 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
6661 (machine_function): Add q_bit_access.
6662 (ARM_Q_BIT_READ): Define.
6663 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
6664 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
6666 (arm_q_bit_access): Define.
6667 * config/arm/arm-builtins.c: Include stringpool.h.
6668 (arm_sat_binop_imm_qualifiers,
6669 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
6670 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
6671 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
6672 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
6673 SET_SAT_QUALIFIERS): Likewise.
6674 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
6675 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
6676 Handle 0 argument expander.
6677 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
6678 (arm_check_builtin_call): Define.
6679 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
6680 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
6681 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
6682 (arm_q_bit_access): Likewise.
6683 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
6684 __saturation_occurred, __set_saturation_occurred): Define.
6685 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
6686 saturation_occurred, set_saturation_occurred.
6687 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
6688 (UNSPEC_APSR_READ): Likewise.
6689 (VUNSPEC_APSR_WRITE): Likewise.
6690 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
6691 (*arm_ssadd<mode>3): New define_insn.
6692 (sssub<mode>3): Convert to define_expand.
6693 (*arm_sssub<mode>3): New define_insn.
6694 (ssmulsa3): Convert to define_expand.
6695 (*arm_ssmulsa3): New define_insn.
6696 (usmulusa3): Convert to define_expand.
6697 (*arm_usmulusa3): New define_insn.
6698 (ssmulha3): FAIL if ARM_Q_BIT_READ.
6699 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
6700 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
6702 2019-11-07 Martin Liska <mliska@suse.cz>
6705 * cgraph.c (delete_function_version): Clear global
6706 variable version_info_node if equal to deleted
6709 2019-11-07 Martin Liska <mliska@suse.cz>
6711 * fold-const.c (operand_compare::operand_equal_p): Add comparison
6712 of CONSTRUCTOR_NO_CLEARING.
6713 (operand_compare::hash_operand): Likewise.
6715 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
6717 Support 64-bit double and 64-bit long double configurations.
6720 * config.gcc (tm_defines) [avr]: Set from --with-double=,
6721 --with-long-double=.
6722 * config/avr/t-multilib: Remove.
6723 * config/avr/t-avr: Output of genmultilib.awk is now fully
6724 dynamically generated and no more part of the repo.
6725 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
6726 Pass them down to...
6727 * config/avr/genmultilib.awk: ...here and handle them.
6728 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
6729 (-mlong-double=, avr_long_double). New option and var.
6730 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
6731 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
6732 Set default as requested by --with-double=
6733 (TARGET_HANDLE_OPTION): Define to this...
6734 (avr_handle_option): ...new hook worker.
6735 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
6736 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
6737 (avr_double_lib): New proto for spec function.
6738 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
6739 (DRIVER_SELF_SPECS): Call %:double-lib.
6740 * config/avr/avr.c (avr_option_override): Assert
6741 sizeof(long double) >= sizeof(double) for the target.
6742 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
6743 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
6744 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
6745 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
6746 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
6747 New built-in define depending on --with-double=, --with-long-double=.
6748 * config/avr/driver-avr.c (avr_double_lib): New spec function.
6749 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
6750 * doc/install.texi (Cross-Compiler-Specific Options)
6751 <--with-double=, --with-long-double=>: Doc.
6753 2019-11-07 Richard Biener <rguenther@suse.de>
6755 * dbgcnt.def (gimple_unroll): New.
6756 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
6757 gimple_unroll debug counter before applying transform.
6758 (try_peel_loop): Likewise.
6760 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
6762 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
6763 frame pointer in multiple registers.
6764 (ira_setup_eliminable_regset): Setup eliminable_regset,
6765 ira_no_alloc_regs and regs_ever_live for frame pointer in
6768 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
6770 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
6773 2019-11-06 Jan Hubicka <jh@suse.cz>
6775 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
6777 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
6778 Do not silently ignore summary corruptions.
6780 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6782 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
6783 the epilogue if there are peeled iterations for it to handle.
6785 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6787 * config/arc/arc.c (arc_split_ior): Add asserts.
6788 (arc_split_mov_const): Likewise.
6789 (arc_check_ior_const): Do not match known short immediate values.
6790 * config/arc/arc.md (movsi): Don't split predicated instructions
6793 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6795 * config/arc/arc.opt (mea): Update help string.
6796 * doc/invoke.texi(ARC): Update mea option info.
6798 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
6800 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
6801 (zero_extendqisi2_ac): Likewise.
6802 (zero_extendhisi2_i): Likewise.
6803 (extendqihi2_i): Likewise.
6804 (extendqisi2_ac): Likewise.
6805 (extendhisi2_i): Likewise.
6807 2019-11-06 Richard Biener <rguenther@suse.de>
6809 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
6810 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
6811 Simplify single_defuse_cycle condition.
6813 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6815 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
6816 epilogue loop, make sure that the VF is small enough or that
6817 the epilogue loop can be fully-masked.
6819 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
6821 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
6822 loop when we've finished, rather than returning directly from
6823 the loop. Use a local variable to track whether we're still
6824 searching for the preferred simdlen. Make vect_epilogues
6825 record whether the next iteration should try to treat the
6826 loop as an epilogue.
6828 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
6830 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
6831 __arc_hard_float__, __ARC_HARD_FLOAT__,
6832 __arc_soft_float__, __ARC_SOFT_FLOAT__
6834 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6836 PR tree-optimization/92317
6837 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
6838 update phi's with constant phi arguments.
6840 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
6841 Alexandre Oliva <oliva@adacore.com>
6843 * common.opt (-fcallgraph-info[=]): New option.
6844 * doc/invoke.texi (Developer options): Document it.
6845 * opts.c (common_handle_option): Handle it.
6846 * builtins.c (expand_builtin_alloca): Record allocation if
6847 -fcallgraph-info=da.
6848 * calls.c (expand_call): If -fcallgraph-info, record the call.
6849 (emit_library_call_value_1): Likewise.
6850 * flag-types.h (enum callgraph_info_type): New type.
6851 * explow.c: Include stringpool.h.
6852 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
6853 * function.c (allocate_stack_usage_info): New.
6854 (allocate_struct_function): Call it for -fcallgraph-info.
6855 (prepare_function_start): Call it otherwise.
6856 (record_final_call, record_dynamic_alloc): New.
6857 * function.h (struct callinfo_callee): New.
6858 (CALLEE_FROM_CGRAPH_P): New.
6859 (struct callinfo_dalloc): New.
6860 (struct stack_usage): Add callees and dallocs.
6861 (record_final_call, record_dynamic_alloc): Declare.
6862 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
6863 object if -fcallgraph-info=da.
6864 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
6865 * print-tree.h (print_decl_identifier): Declare.
6866 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6867 * print-tree.c: Include print-tree.h.
6868 (print_decl_identifier): New function.
6869 * toplev.c: Include print-tree.h.
6870 (callgraph_info_file): New global variable.
6871 (callgraph_info_external_printed): Likewise.
6872 (output_stack_usage): Rename to...
6873 (output_stack_usage_1): ... this. Make it static, add cf
6874 parameter. If -fcallgraph-info=su, print stack usage to cf.
6875 If -fstack-usage, use print_decl_identifier for
6877 (INDIRECT_CALL_NAME): New.
6878 (dump_final_node_vcg_start): New.
6879 (dump_final_callee_vcg, dump_final_node_vcg): New.
6880 (output_stack_usage): New.
6881 (lang_dependent_init): Open and start file if
6882 -fcallgraph-info. Allocated callgraph_info_external_printed.
6883 (finalize): If callgraph_info_file is not null, finish it,
6884 close it, and release callgraph_info_external_printed.
6886 2019-11-06 Gergö Barany <gergo@codesourcery.com>
6887 Frederik Harwath <frederik@codesourcery.com>
6888 Thomas Schwinge <thomas@codesourcery.com>
6890 * omp-low.c (struct omp_context): New fields
6891 local_reduction_clauses, outer_reduction_clauses.
6892 (new_omp_context): Initialize these.
6893 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6894 (scan_omp_for): Check reduction clauses for incorrect nesting.
6896 2019-11-06 Jakub Jelinek <jakub@redhat.com>
6899 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6900 operands with non-memory constraints.
6902 2019-11-05 Martin Sebor <msebor@redhat.com>
6904 PR tree-optimization/92373
6905 * tree.c (component_ref_size): Only consider initializers of objects
6906 of matching struct types.
6907 Return null for instances of interior zero-length arrays.
6909 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6911 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6913 2019-11-05 Jason Merrill <jason@redhat.com>
6915 PR tree-optimization/91825
6916 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6918 2019-11-05 Jim Wilson <jimw@sifive.com>
6921 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6922 optimize_insn_for_speed_p is true.
6924 2019-11-05 Martin Sebor <msebor@redhat.com>
6928 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6930 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6931 name and location for a temporary variable.
6933 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6935 * tree-vrp.c (value_range::value_range): Fix whitespace.
6936 (defined_ranges_p): Same.
6937 (range_fold_binary_symbolics_p): Same.
6938 (value_range::intersect_helper): Same.
6939 (value_range::union_helper): Same.
6940 * tree-vrp.h (range_fold_binary_expr): Same.
6942 2019-11-04 Martin Sebor <msebor@redhat.com>
6946 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6947 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6948 of message printed in a warning for empty arrays.
6949 (vrp_prop::check_mem_ref): Also handle function parameters and
6952 2019-11-05 Richard Biener <rguenther@suse.de>
6954 PR tree-optimization/92371
6955 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6956 on the original stmt of live stmts in the chain.
6957 (vectorizable_live_operation): Look at the original stmt when
6958 checking STMT_VINFO_REDUC_DEF.
6960 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6962 * gimple-fold.c, gimple-loop-versioning.cc,
6963 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6964 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6965 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6966 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6967 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6968 value_range_equiv, and value_range_base to value_range.
6970 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6972 * expr.c (build_personality_function): Fix generated type to
6973 match actual personality functions.
6975 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6977 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6978 enough bytes for the NULL character.
6980 2019-11-05 Richard Biener <rguenther@suse.de>
6982 PR tree-optimization/92280
6983 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6984 had a single use do not create a new CTOR.
6985 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6986 BIT_FIELD_REF of a CTOR via GENERIC.
6988 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6990 * config/s390/s390.c (s390_vector_alignment): Check if the value
6991 fits into uhwi before using it.
6993 2019-11-05 Martin Liska <mliska@suse.cz>
6995 * symbol-summary.h: Use ggc_delete.
6997 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6999 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
7000 Change vec_perm field to 10.
7002 2019-11-05 Arnaud Charlet <charlet@adacore.com>
7004 * doc/install.texi: Further fix syntax for html generation.
7006 2019-11-05 Martin Liska <mliska@suse.cz>
7008 * symbol-summary.h: Rename allocator to m_allocator and
7011 2019-11-05 Richard Biener <rguenther@suse.de>
7013 PR tree-optimization/92324
7014 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
7015 all signed or unsigned operations.
7017 2019-11-05 Jan Hubicka <jh@suse.cz>
7019 * hsa-brig.c: Include alloc-pool.h
7020 * hsa-dump.c: Likewise.
7021 * hsa-gen.c: Likewise.
7022 * hse-regalloc.c: Likewise.
7023 * ipa-hsa.c: Likewise.
7024 * ipa-predicate.c: Likewise.
7025 * ipa-reference.c: Likewise.
7026 * ipa-sra.c: Likewise.
7027 * omp-expand.c: Likewise.
7028 * omp-general.c: Likewise.
7029 * omp-low.c: Likewise.
7030 * sumbol-summary.h (function_summary_base): Add allocator.
7031 (function_summary<T *>::function_summary): Update construction.
7032 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
7033 (call_summary_base): Add allcator.
7034 (call_summary<T *>::call_summary): Update construction.
7035 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
7037 2019-11-05 Jakub Jelinek <jakub@redhat.com>
7039 PR tree-optimization/91945
7040 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
7041 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
7044 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
7046 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
7047 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
7048 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
7049 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
7050 (vrp_set_zero_nonzero_bits): Move to...
7051 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
7052 (vr_values::simplify_bit_ops_using_ranges): Rename
7053 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
7055 2019-11-05 Martin Liska <mliska@suse.cz>
7058 * fold-const.c (operand_compare::hash_operand): Remove
7059 FIELD_DECL handling.
7061 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
7063 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
7064 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
7067 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
7069 * tree-vrp.c (value_range_base::operator==): Use equal_p to
7070 properly handle symbolics.
7071 (range_compatible_p): Remove.
7073 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
7075 * common.opt (-fabi-version): Document =14.
7076 * doc/invoke.texi (C++ Dialect Options): Likewise.
7078 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7080 * tree-vrp.c (value_range_base::set): Do not special case pointers.
7082 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7084 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
7085 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7086 gcn_omp_device_kind_arch_isa.
7087 * config/gcn/t-omp-device: New file.
7088 * configure.ac: Support gcn for omp_device_property.
7089 * configure: Regenerate.
7091 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7093 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
7094 (vrp_val_max): Same.
7095 (vrp_val_is_min): Same.
7096 (vrp_val_is_max): Same.
7097 (value_range_base::nonzero_p): Remove last argument to
7099 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
7100 (vrp_val_max): Same.
7101 (vrp_val_is_min): Same.
7102 (vrp_val_is_max): Same.
7103 (value_range_base::set_varying): Remove last argument to vrp_val*.
7104 (value_range_base::dump): Same.
7105 (value_range_base::set): Same.
7106 (value_range_base::normalize_symbolics): Same.
7107 (value_range_base::num_pairs): Same.
7108 (value_range_base::lower_bound): Same.
7109 (value_range_base::upper_bound): Same.
7110 (ranges_from_anti_range): Remove handle_pointers argument.
7111 (value_range_base::singleton_p): Remove last argument to
7112 ranges_from_anti_range.
7114 2019-11-04 Jan Hubicka <jh@suse.cz>
7116 * ipa-reference.c (init_function_info): Initialize
7117 info->global.statics_read.
7119 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7121 * tree-vrp.c (value_range_base::invert): Use constructors to build
7124 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7126 * tree-vrp.c (range_int_cst_singleton_p): Remove.
7127 * tree-vrp.h (range_int_cst_singleton_p): Remove.
7129 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7131 * tree-vrp.c (value_range_base::normalize_addresses): Handle
7134 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
7136 * tree-vrp.c (dump_assert_info): New.
7137 (dump_asserts_info): New.
7139 2019-11-04 Jan Hubicka <jh@suse.cz>
7141 * ipa-inline-transform.c: Include ipa-utils.h
7142 (inline_call): Set thunk_expansion flag.
7143 * ipa-utils.h (thunk_expansion): Declare.
7144 * ipa-devirt.c (thunk_expansion): New global var.
7145 (devirt_node_removal_hook): Do not invalidate cache while
7146 doing thunk expansion.
7148 2019-11-04 Tamar Christina <tamar.christina@arm.com>
7150 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
7152 2019-11-04 Martin Sebor <msebor@redhat.com>
7154 PR tree-optimization/92349
7155 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
7156 memebers have constant sizes.
7158 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
7160 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
7162 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
7163 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
7166 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
7168 * expr.c (store_constructor): Modify to handle single element vectors.
7169 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
7171 (vect_slp_check_for_constructors): New function.
7172 (vect_slp_analyze_bb_1): Call new function to check for vector
7174 (vectorize_slp_instance_root_stmt): New function.
7175 (vect_schedule_slp): Call new function to vectorize root stmt of vector
7177 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
7179 2019-11-04 Richard Biener <rguenther@suse.de>
7181 PR tree-optimization/92345
7182 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
7183 we produced a reduction chain.
7184 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
7185 LOOP_VINFO_REDUCTIONS.
7187 2019-11-04 Jan Hubicka <jh@suse.cz>
7189 * cgraphclones.c (cgraph_node::create_version_clone): Do not
7190 duplicate summaries.
7191 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
7193 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
7194 access call summaries.
7195 (dump_ipa_call_summary): Be ready for missing edge summaries.
7196 (analyze_function_body): Use get instead of get_create to access
7198 (estimate_calls_size_and_time): Do not access summaries of
7199 inlined edges; sanity check they are missing.
7200 (ipa_call_context::estimate_size_and_time): Use get instead
7201 of get_create to access node summary.
7202 (inline_update_callee_summaries): Do not update depth of
7204 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
7206 (ipa_merge_fn_summary_after_inlining): Use get instead
7208 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
7209 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
7211 (initialize_growth_caches): Update.
7212 (do_estimate_edge_time): Remove redundant copy of context.
7213 (ipa_remove_from_growth_caches): New function.
7214 * ipa-inline.c (flatten_function): Update overall summary
7215 only when optimizing.
7216 (inline_to_all_callers): Update overall summary of function
7218 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
7219 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
7222 2019-11-04 Richard Biener <rguenther@suse.de>
7224 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
7225 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
7227 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
7229 * ggc-common.c: Include system.h before malloc.h.
7231 2019-11-04 Alexandre Oliva <oliva@adacore.com>
7233 * configure.ac: Pass --enable-obsolete=* and
7234 --enable-option-checking=* down to build configure, and fail
7235 if it fails. AC_SUBST HAVE_AUTO_BUILD.
7236 * configure: Rebuild.
7237 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
7238 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
7240 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7242 * config.in: Regenerate.
7243 * config/msp430/msp430.c (msp430_option_override): Emit an error if
7244 -mtiny-printf is used without GCC being configured with
7245 --enable-newlib-nano-formatted-io.
7246 * config/msp430/msp430.h (LINK_SPEC): Pass
7247 "--wrap puts --wrap printf" when -mtiny-printf is used.
7248 * config/msp430/msp430.opt: Document -mtiny-printf.
7249 * configure: Regenerate.
7250 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
7251 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
7252 --enable-newlib-nano-formatted-io is passed.
7253 * doc/invoke.texi: Document -mtiny-printf.
7255 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7257 * configure: Regenerate.
7259 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7261 * config/msp430/driver-msp430.c
7262 (msp430_get_linker_devices_include_path): New spec function.
7263 * config/msp430/msp430-devices.c (msp430_dirname): New function.
7264 (extract_devices_dir_from_exec_prefix): New function.
7265 (extract_devices_dir_from_collect_gcc): New function.
7266 (msp430_check_env_var_for_devices): New function.
7267 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
7268 (parse_devices_csv): Call msp430_check_env_var_for_devices if
7269 devices.csv was not found using other methods.
7270 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
7272 (msp430_dirname): Likewise.
7273 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
7274 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
7275 msp430_get_linker_devices_include_path.
7276 (TARGET_EXTRA_PRE_INCLUDES): Define.
7277 * doc/invoke.texi: Document new ways of searching for support files.
7279 2019-11-04 Richard Biener <rguenther@suse.de>
7281 PR tree-optimization/92301
7282 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
7283 as required by epilogue generation
7285 2019-11-04 Martin Liska <mliska@suse.cz>
7288 * fold-const.c (operand_compare::hash_operand): Fix field
7289 hashing of CONSTRUCTOR.
7291 2019-11-04 Martin Liska <mliska@suse.cz>
7293 * ggc.h (ggc_delete): New function.
7294 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
7295 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
7296 (ipa_free_all_node_params): Likewise.
7297 * ipa-sra.c (ipa_sra_analysis): Likewise.
7299 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
7301 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
7302 set_switch_stmt_execution_predicate, compute_bb_predicates,
7303 will_be_nonconstant_expr_predicate,
7304 phi_result_unknown_predicate,
7305 analyze_function_body): Pass arround params summary.
7306 (ipa_call_context::duplicate_from): New comment;
7307 only duplicate useful values.
7308 (ipa_call_context::equal_to): Only compare useful values.
7309 (remap_edge_summaries): Pass params_summary.
7310 (remap_hint_predicate): Likewise.
7311 (ipa_merge_fn_summary_after_inlining): Likewise.
7312 (inline_read_section): Initialize params summary used flags.
7313 * ipa-predicate.c (predicate::remap_after_inlining): Pass
7314 around param_summary.
7315 (add_condition): Initialized used params summary flags.
7316 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
7317 (inline_param_summary::useless_p): New predicate.
7318 (remap_after_inlining, add_condition): Update prototype
7319 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
7321 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
7323 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
7324 (ipa_analyze_virtual_call_uses): Likewise.
7325 (update_indirect_edges_after_inlining): Update param summaries.
7326 (ipa_print_node_params): Print used flags.
7327 (ipa_read_indirect_edge_info): Update param summareis.
7328 * ipa-prop.h (ipa_param_descriptor): Add
7329 used_by_ipa_predicates, used_by_indirect_call
7330 and used_by_polymorphic_call.
7331 (ipa_set_param_used_by_ipa_predicates,
7332 ipa_set_param_used_by_indirect_call,
7333 ipa_set_param_used_by_polymorphic_call,
7334 ipa_is_param_used_by_ipa_predicates,
7335 ipa_is_param_used_by_indirect_call,
7336 ipa_is_param_used_by_polymorphic_call): New inline functions.
7338 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
7340 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
7342 (ipa_call_context::release): Add ALL parameter.
7343 (ipa_call_context::equal_to): New member function.
7344 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
7345 duplicate_form, release, equal_to and exists_p member functoins.
7346 * ipa-inline-analysis.c (node_context_cache_entry): New
7348 (node_context_summary): Likewise.
7349 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
7350 node_context_clear): New static vars.
7351 (initialize_growth_caches): New function.
7352 (free_growth_caches): Also delete node_context_cache; output stats.
7353 (do_estimate_edge_time): Cache contexts.
7354 (reset_node_cache): New function.
7355 * ipa-inline.c (reset_edge_caches): Reset also node cache.
7356 (inline_small_functions): Initialize growth caches.
7357 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
7359 * ipa-predicate.h (inline_param_summary::equal_to): New.
7360 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
7361 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
7362 (ipa_agg_jump_function): Implement equal_to member function.
7364 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
7366 * ipa-fnsummary.c (inline_read_section): Set vector size
7369 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
7371 * ipa-fnsummary.c (ipa_call_context): New constructor.
7372 (estimate_node_size_and_time): Turn to ...
7373 (ipa_call_context::estimate_size_and_time): ... this one.
7374 (ipa_call_context::release): New.
7375 * ipa-fnsummary.h (ipa_call_context): New class.
7376 (estimate_node_size_and_time): Remove.
7377 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
7378 do_estimate_edge_hints): Update.
7380 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
7382 * config.in: Regenerate.
7383 * configure: Regenerate.
7384 * configure.ac: Check for mallinfo.
7385 * ggc-common.c: Include malloc.h if available;
7387 (report_heap_memory_use): New functoin.
7388 * ggc-page.c (ggc_grow): Do not print "start".
7389 * ggc.h (report_heap_memory_use): Declare.
7390 * pases.c (execute_one_pass): Report memory after IPA passes.
7391 (ipa_read_summaries_1): Likewise.
7392 (ipa_read_optimization_summaries_1): Likewise.
7394 2019-11-02 Jakub Jelinek <jakub@redhat.com>
7396 * gimplify.h (omp_construct_selector_matches): Change return
7397 type to int, add a new SCORES argument.
7398 * gimplify.c (omp_construct_selector_matches): Likewise. If
7399 SCORES is non-NULL, compute scores of each construct.
7400 * omp-general.h (omp_get_context_selector): Declare.
7401 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
7402 Adjust omp_construct_selector_matches callers.
7403 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
7404 (omp_context_compute_score): New function.
7405 (omp_resolve_declare_variant): Compute scores and decide based on
7409 * configure.ac: Don't look for omp-device-properties files from
7410 installed offloading compilers. Instead add tmake_file snippets
7411 for configured offloading targets and use files they generate.
7412 * Makefile.in (install): Don't depend on
7413 install-omp-device-properties.
7414 (install-omp-device-properties): Remove goal.
7415 * config/i386/t-omp-device: New file.
7416 * config/i386/t-intelmic (omp-device-properties): Remove goal.
7417 * config/nvptx/t-omp-device: New file.
7418 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
7419 * configure: Regenerated.
7421 * omp-general.h (omp_context_selector_set_compare): Declare.
7422 * omp-general.c (omp_construct_simd_compare,
7423 omp_context_selector_props_compare, omp_context_selector_set_compare,
7424 omp_context_selector_compare): New functions.
7425 (omp_resolve_declare_variant): Prune variants that are strict subset
7428 2019-11-01 Martin Sebor <msebor@redhat.com>
7434 * doc/invoke.texi (-Wzero-length-bounds): Document.
7435 * gimple-match-head.c (try_conditional_simplification): Use memcpy
7436 instead of a hand-rolled loop to avoid PR 92323.
7437 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
7439 (vrp_prop::check_mem_ref): Handle declared struct objects.
7440 * tree.c (last_field): New function.
7441 (array_at_struct_end_p): Handle MEM_REF.
7442 (get_initializer_for): New helper.
7443 (component_ref_size): Add argument. Rename locals. Call
7444 get_initializer_for instead of fold_ctor_reference. Correct handling
7445 of flexible array members.
7446 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
7448 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
7450 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
7451 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
7452 UNSPEC_VSX_CVSPUXDS): Remove.
7453 (vsx_xvcvspdp): New define_expand, old define_insn split to...
7454 (vsx_xvcvspdp_be): ... this. New. And...
7455 (vsx_xvcvspdp_le): ... this. New.
7456 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
7457 (vsx_xvcv<su>xwdp_be): ... this. New. And...
7458 (vsx_xvcv<su>xwdp_le): ... this. New.
7459 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
7460 (vsx_xvcvsp<su>xds_be): ... this. New. And...
7461 (vsx_xvcvsp<su>xds_le): ... this. New.
7463 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
7465 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
7466 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
7467 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
7468 UNSPEC_VSX_XVCVSPSXWS): Remove.
7469 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
7470 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
7472 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
7474 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
7475 (UNSPEC_VSX_XVCDPSP): Remove.
7476 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
7477 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
7479 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7481 * hooks.c (hook_tree_tree_bool_null): New.
7482 * hooks.h (hook_tree_tree_bool_null): Declare.
7483 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
7484 (LANG_HOOKS_DECLS): Add it.
7485 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
7486 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
7487 (lower_omp_target): Handle Fortran array with descriptor in
7488 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
7490 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
7492 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
7493 Assert that the type we store in abi_vector_types is its own
7495 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
7497 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
7499 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
7500 from a CONST_INT address when TARGET_THUMB2.
7502 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
7504 * config/arm/arm.md (add_not_cin): New insn.
7505 (add_not_shift_cin): Likewise.
7507 2019-10-31 Martin Liska <mliska@suse.cz>
7509 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
7510 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
7511 and compare_memory_operand.
7513 2019-10-31 Jakub Jelinek <jakub@redhat.com>
7515 * configure.ac: Compute and substitute omp_device_properties and
7516 omp_device_property_deps.
7517 * Makefile.in (generated_files): Add omp-device-properties.h.
7518 (omp-general.o): Depend on omp-device-properties.h.
7519 (omp_device_properties): New make variable.
7520 (omp-device-properties.h, s-omp-device-properties-h,
7521 install-omp-device-properties): New goals.
7522 (install): Depend on install-omp-device-properties for accelerators.
7523 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
7524 * target.h (enum omp_device_kind_arch_isa): New enum.
7525 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
7527 * omp-general.c: Include omp-device-properties.h.
7528 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
7529 colon instead of comma.
7530 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
7532 (omp_context_selector_matches): Implement device set arch/isa
7533 selectors, improve device set kind selector handling.
7534 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
7535 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
7536 TARGET_SIMD_CLONE_USABLE): Formatting fix.
7537 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7538 ix86_omp_device_kind_arch_isa.
7539 * config/i386/i386-options.c (struct ix86_target_opts): Move type
7540 definition from ix86_target_string to file scope.
7541 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
7543 (ix86_omp_device_kind_arch_isa): New function.
7544 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
7545 isa_opts definitions to file scope.
7546 * config/i386/t-intelmic (omp-device-properties): New goal.
7547 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
7548 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
7549 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
7550 nvptx_omp_device_kind_arch_isa.
7551 * configure: Regenerate.
7552 * doc/tm.texi: Regenerate.
7555 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
7556 DECL_BUILT_IN in comment. Remove redundant ()s around return
7558 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
7559 before calling fndecl_built_in_p.
7560 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
7561 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
7562 fndecl_built_in_p on it.
7564 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
7566 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
7568 2019-10-31 Martin Liska <mliska@suse.cz>
7570 * config/arm/arm.c (arm_get_pcs_model): Remove usage
7571 of cgraph_local_info and use local_info_node instead.
7572 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
7573 (bfin_function_ok_for_sibcall): Likewise.
7574 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
7575 (must_reload_pic_reg_p): Likewise.
7577 2019-10-31 Jakub Jelinek <jakub@redhat.com>
7580 * tree.h (type_initializer_zero_p): Remove.
7581 * tree.c (type_initializer_zero_p): Remove.
7583 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7585 * doc/invoke.texi (-Wshadow, -Wshadow=global
7586 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
7588 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7590 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
7591 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
7592 and 'target exit data'.
7594 2019-10-30 Martin Jambor <mjambor@suse.cz>
7597 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
7598 availability comparison.
7600 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7602 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
7603 calls to __mspabi_mpy* functions.
7604 * config/msp430/msp430.md (mulhisi3): New define_expand.
7605 (umulhisi3): New define_expand.
7606 (*mulhisi3_inline): Use old mulhisi3 define_insn.
7607 (*umulhisi3_inline): Use old umulhisi3 define_insn.
7609 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7611 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
7612 (msp430_check_plus_not_high_mem): New.
7613 (msp430_op_not_in_high_mem): Use new functions to check if the operand
7614 might be in low memory.
7615 Indicate that a 16-bit absolute address is in lower memory.
7617 2019-10-30 Martin Jambor <mjambor@suse.cz>
7619 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
7620 ultimate_alias_target.
7622 2019-10-30 Richard Biener <rguenther@suse.de>
7624 PR tree-optimization/92275
7625 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
7626 Copy all loop-closed PHIs.
7628 2019-10-30 Martin Liska <mliska@suse.cz>
7630 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
7631 const_tree as function argument.
7632 (func_checker::compare_decl): Likewise.
7633 (func_checker::operand_equal_p): Likewise.
7634 (func_checker::compare_variable_decl): Likewise.
7635 (func_checker::parse_labels): Likewise.
7636 * ipa-icf-gimple.h: Likewise.
7638 2019-10-30 Martin Liska <mliska@suse.cz>
7640 * ipa-icf-gimple.c (func_checker::compatible_types_p):
7641 Do not compare alias sets. It's handled by operand_equal_p.
7643 2019-10-30 Martin Liska <mliska@suse.cz>
7645 * ipa-icf-gimple.c (func_checker::func_checker): Do not
7646 initialize m_compare_polymorphic.
7647 (func_checker::compare_decl): Do not compare polymorphic types.
7648 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
7649 * ipa-icf.c (sem_function::equals_private): Do not call
7650 compare_polymorphic_p.
7652 2019-10-30 Martin Liska <mliska@suse.cz>
7654 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
7656 (func_checker::compare_memory_operand): Remove.
7657 (func_checker::compare_cst_or_decl): Remove.
7658 (func_checker::operand_equal_valueize): Do not handle
7660 (func_checker::compare_gimple_call): Call compare_operand.
7661 (func_checker::compare_gimple_assign): Likewise.
7662 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
7663 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
7664 * ipa-icf.h (icf_handled_component_p): Remove.
7666 2019-10-30 Martin Liska <mliska@suse.cz>
7668 * ipa-icf-gimple.c (func_checker::hash_operand): New.
7669 (func_checker::compare_cst_or_decl): Remove handling
7671 (func_checker::compare_operand): Transform to ...
7672 (func_checker::operand_equal_p): ... this.
7673 * ipa-icf-gimple.h (class func_checker): Add
7674 operand_equal_p and hash_operand.
7675 * ipa-icf.c (sem_function::equals_private): Fix
7676 pushing and popping of cfun.
7678 2019-10-30 Martin Liska <mliska@suse.cz>
7680 * fold-const.c (operand_equal_p): Move to ...
7681 (operand_compare::operand_equal_p): ... here.
7682 (operand_compare::verify_hash_value): New.
7683 (add_expr): Move to ...
7684 (operand_compare::hash_operand): ... here.
7685 * fold-const.h (operand_equal_p): Move to the class.
7686 (class operand_compare): New.
7687 * tree.c (add_expr): Remove.
7689 2019-10-30 Martin Liska <mliska@suse.cz>
7691 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
7692 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
7694 2019-10-30 Martin Liska <mliska@suse.cz>
7698 * cgraph.c (cgraph_node::get_create): Overwrite node->order
7699 from a first_clone in order to get proper LTO section
7701 (cgraph_node::get_untransformed_body):
7702 Use lto_get_section_data where symtab_node::order
7704 * cgraphclones.c (cgraph_node::find_replacement):
7705 Update also symbol order.
7706 * ipa-fnsummary.c (ipa_fn_summary_read):
7707 Use new function lto_get_summary_section_data.
7708 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
7709 * ipa-icf.c (sem_item_optimizer::read_summary):
7711 * ipa-prop.c (ipa_prop_read_jump_functions):
7713 (ipcp_read_transformation_summaries): Likewise.
7714 * ipa-sra.c (ipa_sra_read_summary): Likewise.
7715 * lto-cgraph.c (input_node): Add also order_base.
7716 (input_varpool_node): Likewise.
7717 (input_cgraph_1): Assign the order_base.
7718 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
7719 * lto-opts.c (lto_write_options): Pass new argument.
7720 * lto-section-in.c (lto_get_section_data): Add new argumente order.
7721 (lto_get_summary_section_data): New.
7722 (lto_get_raw_section_data): Add order argument.
7723 (lto_create_simple_input_block): Likewise.
7724 * lto-section-out.c (lto_destroy_simple_output_block):
7726 * lto-streamer-in.c (lto_input_toplevel_asms):
7727 Use lto_get_summary_section_data.
7728 (lto_input_mode_table): Likewise.
7729 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
7730 (lto_output_toplevel_asms): Pass new argument.
7731 (copy_function_or_variable): Likewise.
7732 (produce_lto_section):Likewise.
7733 (produce_symtab): Likewise.
7734 (lto_write_mode_table): Likewise.
7735 (produce_asm_for_decls): Likewise.
7736 * lto-streamer.c (lto_get_section_name): Concat symbol name
7738 * lto-streamer.h (lto_get_section_data): Add order argument.
7739 (lto_get_summary_section_data): New.
7740 (lto_get_raw_section_data): Add order argument.
7741 (lto_get_section_name): Likewise.
7742 * varpool.c (varpool_node::get_constructor): Pass order argument.
7744 2019-10-30 Jakub Jelinek <jakub@redhat.com>
7746 PR tree-optimization/92262
7747 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
7748 ubase or cbase here.
7749 (remove_unused_ivs): Unshare comp before using it.
7751 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
7753 * ipa-prop.c (update_jump_functions_after_inlining):
7754 Watch for missing summaries.
7756 2019-10-30 Richard Biener <rguenther@suse.de>
7758 PR tree-optimization/65930
7759 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
7760 chains also allow a leading and trailing conversion.
7761 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
7762 intermediate reduction chains.
7763 (vect_analyze_slp_instance): Likewise. Build a SLP
7764 node for a trailing conversion manually.
7766 2019-10-30 Martin Liska <mliska@suse.cz>
7768 * cgraph.c (cgraph_node::local_info): Transform to ...
7769 (cgraph_node::local_info_node): ... this.
7770 (cgraph_node::dump): Remove cgraph_local_info and
7771 put its fields directly into cgraph_node.
7772 (cgraph_node::get_availability): Likewise.
7773 (cgraph_node::make_local): Likewise.
7774 (cgraph_node::verify_node): Likewise.
7775 * cgraph.h (struct GTY): Likewise.
7776 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
7777 (duplicate_thunk_for_node): Likewise.
7778 (cgraph_node::create_clone): Likewise.
7779 (cgraph_node::create_virtual_clone): Likewise.
7780 (cgraph_node::create_version_clone): Likewise.
7781 * cgraphunit.c (cgraph_node::reset): Likewise.
7782 (cgraph_node::finalize_function): Likewise.
7783 (cgraph_node::add_new_function): Likewise.
7784 (analyze_functions): Likewise.
7785 * combine.c (setup_incoming_promotions): Likewise.
7786 * config/i386/i386.c (ix86_function_regparm): Likewise.
7787 (ix86_function_sseregparm): Likewise.
7788 (init_cumulative_args): Likewise.
7789 * ipa-cp.c (determine_versionability): Likewise.
7790 (count_callers): Likewise.
7791 (set_single_call_flag): Likewise.
7792 (initialize_node_lattices): Likewise.
7793 (estimate_local_effects): Likewise.
7794 (create_specialized_node): Likewise.
7795 (identify_dead_nodes): Likewise.
7796 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7797 (ipa_fn_summary_generate): Likewise.
7798 * ipa-hsa.c (check_warn_node_versionable): Likewise.
7799 (process_hsa_functions): Likewise.
7800 * ipa-icf.c (set_local): Likewise.
7801 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
7802 * ipa-inline.c (speculation_useful_p): Likewise.
7803 * ipa-profile.c (ipa_propagate_frequency): Likewise.
7804 (ipa_profile): Likewise.
7805 * ipa-split.c (split_function): Likewise.
7806 (execute_split_functions): Likewise.
7807 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7808 (ipa_sra_ipa_function_checks): Likewise.
7809 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7810 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7811 * lto-cgraph.c (lto_output_node): Likewise.
7812 (input_overwrite_node): Likewise.
7813 * multiple_target.c (expand_target_clones): Likewise.
7814 * omp-simd-clone.c (simd_clone_create): Likewise.
7815 * trans-mem.c (expand_call_tm): Likewise.
7816 (ipa_tm_mayenterirr_function): Likewise.
7817 (ipa_tm_diagnose_tm_safe): Likewise.
7818 (ipa_tm_diagnose_transaction): Likewise.
7819 (ipa_tm_create_version): Likewise.
7820 (ipa_tm_transform_calls_redirect): Likewise.
7821 (ipa_tm_execute): Likewise.
7822 * tree-inline.c (expand_call_inline): Likewise.
7824 2019-10-29 Martin Liska <mliska@suse.cz>
7826 * symbol-summary.h (function_summary): Pass memory location
7827 to underlaying hash_map (or vec).
7828 (V>::fast_function_summary): Likewise.
7830 2019-10-29 Martin Liska <mliska@suse.cz>
7832 * ggc.h (ggc_alloc_no_dtor): New function.
7833 * ipa-fnsummary.c (ipa_free_fn_summary): Call
7834 destructor and ggc_free.
7835 (ipa_free_size_summary): Call delete instead
7837 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
7838 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
7839 (ipa_free_all_edge_args): Call destructor and ggc_free.
7840 (ipa_free_all_node_params): Likewise.
7841 (ipcp_free_transformation_sum): Likewise.
7842 * ipa-prop.h (ipa_check_create_node_params):
7843 Call new ggc_alloc_no_dtor.
7844 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
7845 (ipa_sra_analysis): Call destructor and ggc_free.
7846 Replace release with delete operator.
7847 * symbol-summary.h (release): Remove ..
7848 (V>::~fast_function_summary): and move logic here.
7849 Likewise for other classes.
7851 2019-10-29 Richard Biener <rguenther@suse.de>
7853 PR tree-optimization/92260
7854 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
7857 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
7859 PR tree-optimization/88915
7860 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
7861 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
7862 and make the valueize function pointer also take a void pointer.
7863 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
7864 around vn_valueize, to call it without a context.
7865 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
7866 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7867 (~_loop_vec_info): Release epilogue_vinfos.
7868 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7869 number of iterations of epilogue.
7870 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7871 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
7872 versioning threshold needed for main loop.
7873 (vect_analyze_loop): Likewise.
7874 (find_in_mapping): New helper function.
7875 (update_epilogue_loop_vinfo): New function.
7876 (vect_transform_loop): When vectorizing epilogues re-use analysis done
7877 on main loop and call update_epilogue_loop_vinfo to update it.
7878 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7879 stmts on loop preheader edge.
7880 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7881 we decided to vectorize epilogues. Update epilogues NITERS and
7882 construct ADVANCE to update epilogues data references where needed.
7883 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7884 (vect_do_peeling, vect_update_inits_of_drs,
7885 determine_peel_for_niter, vect_analyze_loop): Add or update
7887 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7888 created loop_vec_info's for epilogues when available. Otherwise analyse
7889 epilogue separately.
7891 2019-10-29 Richard Biener <rguenther@suse.de>
7893 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7896 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7898 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7899 index for the COND_EXPR from stmt_info rather than reduc_info.
7901 2019-10-29 Richard Biener <rguenther@suse.de>
7903 PR tree-optimization/65930
7904 * tree-vect-loop.c (check_reduction_path): Relax single-use
7905 check allowing out-of-loop uses.
7906 (vect_is_simple_reduction): SLP reduction chains cannot have
7907 intermediate stmts used outside of the loop.
7908 (vect_create_epilog_for_reduction): The adjustment might need
7910 (vectorizable_reduction): Annotate live stmts of the reduction
7911 chain with STMT_VINFO_REDUC_DEF.
7912 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7914 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7916 * calls.c (pass_by_reference): Leave the target to decide whether
7917 POLY_INT_CST-sized arguments should be passed by value or reference,
7918 rather than forcing them to be passed by reference.
7919 (must_pass_in_stack_var_size): Likewise.
7920 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7921 V31_REGNUM to P15_REGNUM.
7922 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7923 Take an extra "silent_p" parameter, defaulting to false.
7924 (aarch64_sve::svbool_type_p): Declare.
7925 (aarch64_sve::nvectors_if_data_type): Likewise.
7926 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7927 (aarch64_frame::reg_offset): Turn into poly_int64s.
7928 (aarch64_frame::save_regs_size): Likewise.
7929 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7930 (aarch64_frame::sve_callee_adjust): Likewise.
7931 (aarch64_frame::spare_reg_reg): Likewise.
7932 (ARM_PCS_SVE): New arm_pcs value.
7933 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7934 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7935 (CUMULATIVE_ARGS::silent_p): Likewise.
7936 (BITS_PER_SVE_PRED): New macro.
7937 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7938 function. Reject aarch64_vector_pcs attributes on SVE functions.
7939 (aarch64_attribute_table): Use the above handler.
7940 (aarch64_sve_abi): New function.
7941 (aarch64_sve_argument_p): Likewise.
7942 (aarch64_returns_value_in_sve_regs_p): Likewise.
7943 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7944 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7945 descriptor for them.
7946 (aarch64_simd_decl_p): Delete.
7947 (aarch64_emit_cfi_for_reg_p): New function.
7948 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7949 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7950 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7951 as partly clobbered for the SVE PCS.
7952 (aarch64_function_ok_for_sibcall): Check whether the two functions
7953 use the same ABI, rather than checking specifically for whether
7954 they're aarch64_vector_pcs functions.
7955 (aarch64_pass_by_reference): Raise an error for attempts to pass
7956 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7957 if there are not enough free registers left, or if the argument is
7959 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7960 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7962 (aarch64_layout_arg): Take a function_arg_info rather than
7963 individual properties. Handle SVE predicates, vectors and tuples.
7964 Raise an error if they are passed to unprototyped functions.
7965 (aarch64_function_arg): If the silent_p flag is set, suppress the
7966 usual error about using float registers without TARGET_FLOAT.
7967 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7968 it in the cumulative_args structure. Initialize aapcs_nprn and
7969 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7970 error about using float registers without TARGET_FLOAT.
7971 If the silent_p flag is not set, also raise an error about
7972 using SVE functions when SVE is disabled.
7973 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7974 and call it for SVE functions too. Update aapcs_nprn similarly
7975 to the other register counts.
7976 (aarch64_layout_frame): If a big-endian function needs to save
7977 and restore Z8-Z15, search for a spare predicate that it can use.
7978 Store SVE predicates at the bottom of the register save area,
7979 followed by SVE vectors, then followed by the normal slots.
7980 Keep pointing the hard frame pointer at the base of the normal slots,
7981 above the SVE vectors. Update the various frame creation and
7982 tear-down strategies for the new layout, initializing the new
7983 sve_callee_adjust field. Add an additional layout for frames
7984 whose saved registers are all SVE registers.
7985 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7986 (aarch64_return_address_signing_enabled): Likewise.
7987 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7988 aarch64_reg_save_mode.
7989 (aarch64_adjust_sve_callee_save_base): New function.
7990 (aarch64_add_cfa_expression): Move earlier in file. Take the
7991 saved register as an rtx rather than a register number and use
7992 its mode for the MEM slot.
7993 (aarch64_save_callee_saves): Remove the mode argument and instead
7994 use aarch64_reg_save_mode to get the mode of each save slot.
7995 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7996 offsets. Allow GP offsets to be saved at a VL-based offset from
7997 the stack, handling this case using the frame pointer if available
7998 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7999 big-endian SVE functions; use normal moves for other SVE saves.
8000 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
8001 returns true. Add explicit CFA notes when not storing via the
8002 stack pointer. Do not try to pair SVE saves.
8003 (aarch64_restore_callee_saves): Cope with poly_int64 register
8004 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
8005 use normal moves for other SVE restores. Only add CFA restore notes
8006 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
8008 (aarch64_get_separate_components): Always keep the first SVE save
8009 in the prologue if we need to use it as a stack probe. Don't allow
8010 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
8011 Likewise the spare predicate register that they need. Update the
8012 offset calculation to account for the SVE save area. Use the
8013 appropriate range check for SVE LDR and STR instructions.
8014 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
8015 (aarch64_process_components): Likewise. Update the offset
8016 calculation to account for the SVE save area. Only mark the
8017 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
8018 Do not try to pair SVE saves.
8019 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
8020 reg_offsets. When handling the final allocation, expect the
8021 first SVE register save to be part of the initial allocation
8022 and for it to act as a probe at SP. Account for the SVE callee
8023 save area in the dump information.
8024 (aarch64_expand_prologue): Update the frame diagram. Fold the
8025 SVE callee allocation into the initial allocation if stack clash
8026 protection is enabled. Use new variables to track the offset
8027 of the frame chain (and hard frame pointer) from the current
8028 stack pointer, and likewise the offset of the bottom of the
8029 register save area. Update calls to aarch64_save_callee_saves
8030 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
8031 saving the FP&SIMD registers. Save the predicate registers.
8032 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
8033 into account when setting the stack pointer from the frame pointer,
8034 and when deciding whether we can inherit the initial adjustment
8035 amount from the prologue. Restore the predicate registers after
8036 the vector registers, then apply sve_callee_adjust, then restore
8037 the general registers.
8038 (aarch64_secondary_reload): Don't use secondary SVE reloads
8040 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
8041 (aarch64_short_vector_p): Return false for SVE types.
8042 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
8043 at the start of the function. Return false for SVE types.
8044 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
8046 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
8047 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
8048 to big-endian targets for bytewise moves.
8049 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
8051 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8052 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8053 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8055 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
8056 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
8057 aarch64-sve-builtins-base.o to extra_objs. Add
8058 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
8059 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
8060 (aarch64-sve-builtins-shapes.o): Likewise.
8061 (aarch64-sve-builtins-base.o): New rules.
8062 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
8063 (aarch64_resolve_overloaded_builtin): Likewise.
8064 (aarch64_check_builtin_call): Likewise.
8065 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
8066 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
8068 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
8069 (aarch64_svprfop): New enum.
8070 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
8071 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
8072 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
8073 (aarch64_output_sve_cnt_pat_immediate): Likewise.
8074 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
8075 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
8076 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
8077 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
8078 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
8079 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
8080 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
8081 (aarch64_sve::mangle_builtin_type): Likewise.
8082 (aarch64_sve::resolve_overloaded_builtin): Likewise.
8083 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
8084 (aarch64_sve::expand_builtin): Likewise.
8085 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
8086 (aarch64_sve_int_mode): Likewise.
8087 (aarch64_ptrue_all_mode): New function.
8088 (aarch64_convert_sve_data_to_pred): Make public.
8089 (svprfop_token): New function.
8090 (aarch64_output_sve_prefetch): Likewise.
8091 (aarch64_fold_sve_cnt_pat): Likewise.
8092 (aarch64_output_sve_cnt_pat_immediate): Likewise.
8093 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
8094 instead of gen_while_ult.
8095 (aarch64_replace_reg_mode): Make public.
8096 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
8097 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
8098 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
8099 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
8100 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
8101 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
8102 (aarch64_sve_ptrue_svpattern_p): Likewise.
8103 (aarch64_sve_pred_valid_immediate): Check
8104 aarch64_sve_ptrue_svpattern_p.
8105 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
8106 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
8108 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
8109 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
8110 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
8111 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
8112 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
8113 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
8115 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
8116 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
8117 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
8118 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
8119 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
8120 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
8121 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
8122 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
8123 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
8124 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
8125 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
8126 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
8127 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
8128 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
8129 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
8130 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
8131 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
8132 (Vesize): Handle partial vector modes.
8133 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
8135 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
8137 (s, paired_extend, inc_dec): New code attributes.
8138 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
8139 (SVE_INT_UNARY): Add UNSPEC_RBIT.
8140 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
8141 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
8142 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
8143 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
8145 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
8146 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
8147 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
8148 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
8149 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
8150 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
8151 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
8152 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
8153 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
8154 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
8155 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
8156 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
8157 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
8158 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
8159 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
8160 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
8162 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
8163 (binqops_op, binqops_op_rev, last_op): New int attributes.
8164 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
8165 (fn, ab): New int attributes.
8166 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
8167 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
8168 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
8169 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
8171 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
8172 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
8173 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
8174 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
8175 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
8177 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
8178 (brk_reg_con, brk_reg_opno): New int attributes.
8179 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
8180 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
8181 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
8183 (max_elem_bits): New int attribute.
8184 (min_elem_bits): Handle UNSPEC_RBIT.
8185 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
8186 TRUNCATE as well as SUBREG.
8187 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
8188 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
8189 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
8190 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
8191 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
8192 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
8193 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
8194 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
8195 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
8196 (aarch64_gather_scale_operand_h): New predicates.
8197 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
8198 (vgd, vgh, vgw, vsQ, vsS): New constraints.
8199 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
8200 (*aarch64_sve_reinterpret<mode>): Allow any source register
8201 instead of requiring an exact match.
8202 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
8203 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
8204 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
8205 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
8206 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
8207 (aarch64_update_ffrt): New patterns.
8208 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
8209 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8210 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8211 (@aarch64_ld<fn>f1<mode>): New patterns.
8212 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
8213 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8214 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8215 (@aarch64_ldnt1<mode>): New patterns.
8216 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
8217 the scalar part of the address.
8218 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
8219 scalar part of the addresse and add an alternative for handling
8221 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
8222 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
8223 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8224 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8225 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
8226 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
8227 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
8228 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
8229 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
8230 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
8231 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
8232 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
8233 (@aarch64_sve_prefetch<mode>): New patterns.
8234 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
8235 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
8236 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
8237 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
8238 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
8239 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
8240 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
8241 (@aarch64_stnt1<mode>): New patterns.
8242 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
8243 the scalar part of the address.
8244 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
8245 the scalar part of the addresse and add an alternative for handling
8247 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
8248 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
8249 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
8250 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
8251 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
8252 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
8254 (vec_duplicate<mode>): Use QI as the mode of the input operand.
8255 (extract_last_<mode>): Generalize to...
8256 (@extract_<LAST:last_op>_<mode>): ...this.
8257 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
8258 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
8259 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
8260 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
8261 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
8262 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
8263 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
8264 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
8265 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
8266 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
8267 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
8268 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
8269 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
8270 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
8271 (*aarch64_adr_uxtw_unspec): Likewise.
8272 (*aarch64_adr_uxtw): Rename to...
8273 (*aarch64_adr_uxtw_and): ...this.
8274 (@aarch64_adr<mode>_shift): New expander.
8275 (*aarch64_adr_shift_sxtw): New pattern.
8276 (aarch64_<su>abd<mode>_3): Rename to...
8277 (@aarch64_pred_<su>abd<mode>): ...this.
8278 (<su>abd<mode>_3): Update accordingly.
8279 (@aarch64_cond_<su>abd<mode>): New expander.
8280 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
8281 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
8282 (*<su>mul<mode>3_highpart): Rename to...
8283 (@aarch64_pred_<optab><mode>): ...this.
8284 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
8285 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
8286 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
8287 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
8288 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
8289 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
8290 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
8291 (*v<ASHIFT:optab><mode>3): Rename to...
8292 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
8293 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
8294 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
8295 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
8296 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
8297 (@cond_asrd<mode>): New expander.
8298 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
8299 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
8300 (*sdiv_pow2<mode>3): Delete.
8301 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
8302 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
8303 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
8304 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
8305 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
8306 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
8307 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
8308 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
8309 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
8310 (*add<SVE_F:mode>3): Rename to...
8311 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
8313 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
8314 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
8315 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
8316 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
8317 (*sub<SVE_F:mode>3): Rename to...
8318 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
8320 (@aarch64_pred_abd<SVE_F:mode>): New expander.
8321 (*fabd<SVE_F:mode>3): Rename to...
8322 (*aarch64_pred_abd<SVE_F:mode>): ...this.
8323 (@aarch64_cond_abd<SVE_F:mode>): New expander.
8324 (*mul<SVE_F:mode>3): Rename to...
8325 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
8327 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
8328 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
8330 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
8331 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
8332 (*<nlogical><PRED_ALL:mode>3): Rename to...
8333 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
8334 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
8335 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
8336 (*<logical_nn><PRED_ALL:mode>3): Rename to...
8337 (aarch64_pred_<logical_nn><mode>_z): ...this.
8338 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
8339 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
8340 (*fma<SVE_I:mode>4): Rename to...
8341 (@aarch64_pred_fma<SVE_I:mode>): ...this.
8342 (*fnma<SVE_I:mode>4): Rename to...
8343 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
8344 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
8345 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
8346 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
8347 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
8348 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
8349 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
8350 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
8351 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
8352 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
8353 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
8354 (@aarch64_sve_tmad<mode>): Likewise.
8355 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
8356 (*aarch64_sel_dup<mode>): Rename to...
8357 (@aarch64_sel_dup<mode>): ...this.
8358 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
8359 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
8360 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
8361 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
8362 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
8363 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
8364 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
8365 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
8366 (*fcm<cmp_op><mode>): Rename to...
8367 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
8368 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
8369 (*fcmuo<mode>): Rename to...
8370 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
8371 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
8372 (@aarch64_pred_fac<cmp_op><mode>): New expander.
8373 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
8374 (fold_extract_last_<mode>): Generalize to...
8375 (@fold_extract_<last_op>_<mode>): ...this.
8376 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
8377 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
8378 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
8379 DImode result explicit.
8380 (reduc_plus_scal_<mode>): Update accordingly.
8381 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
8382 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
8383 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
8384 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
8385 (*aarch64_sve_tbl<mode>): Rename to...
8386 (@aarch64_sve_tbl<mode>): ...this.
8387 (@aarch64_sve_compact<mode>): New pattern.
8388 (*aarch64_sve_dup_lane<mode>): Rename to...
8389 (@aarch64_sve_dup_lane<mode>): ...this.
8390 (@aarch64_sve_dupq_lane<mode>): New pattern.
8391 (@aarch64_sve_splice<mode>): Likewise.
8392 (aarch64_sve_<perm_insn><mode>): Rename to...
8393 (@aarch64_sve_<perm_insn><mode>): ...this.
8394 (*aarch64_sve_ext<mode>): Rename to...
8395 (@aarch64_sve_ext<mode>): ...this.
8396 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
8397 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
8399 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
8400 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8402 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8404 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
8405 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
8406 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
8407 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
8409 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
8410 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
8412 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
8413 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
8414 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
8416 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
8417 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
8418 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
8419 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
8420 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
8422 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
8423 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
8424 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
8425 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
8426 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
8427 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
8428 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
8429 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
8430 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
8431 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
8432 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
8433 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
8434 (aarch64_sve_cnt_pat): Likewise.
8435 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
8436 (*aarch64_sve_incsi_pat): Likewise.
8437 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
8438 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
8439 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
8440 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
8441 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
8442 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
8443 (*aarch64_sve_decsi_pat): Likewise.
8444 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
8445 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
8446 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
8447 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
8448 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
8449 (@aarch64_pred_cntp<mode>): Likewise.
8450 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
8452 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
8453 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
8454 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8456 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8458 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
8459 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
8460 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
8461 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
8462 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
8463 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
8464 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
8466 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
8467 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
8468 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8470 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
8472 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
8474 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
8475 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
8477 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
8478 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
8480 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
8481 * config/aarch64/arm_sve.h: New file.
8482 * config/aarch64/aarch64-sve-builtins.h: Likewise.
8483 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
8484 * config/aarch64/aarch64-sve-builtins.def: Likewise.
8485 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
8486 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
8487 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
8488 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
8489 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
8490 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
8492 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8494 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
8496 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
8499 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8501 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
8502 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
8504 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
8505 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
8506 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
8507 (aarch64_hard_regno_nregs): Handle the new register classes.
8508 (aarch64_hard_regno_mode_ok): Likewise.
8509 (aarch64_regno_regclass): Likewise.
8510 (aarch64_class_max_nregs): Likewise.
8511 (aarch64_register_move_cost): Likewise.
8512 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
8513 as general register_operands.
8515 2019-10-29 Martin Liska <mliska@suse.cz>
8517 * ggc-common.c: One can't subtract unsigned types
8518 in compare function.
8520 2019-10-29 Martin Liska <mliska@suse.cz>
8522 * cgraphunit.c (symbol_table::compile): Pass
8523 title as dump_memory_report argument.
8524 * toplev.c (dump_memory_report): New argument.
8525 (finalize): Pass new argument.
8526 * toplev.h (dump_memory_report): Add argument.
8528 2019-10-29 Martin Liska <mliska@suse.cz>
8530 * ggc-common.c: Move Leak to the first column.
8532 2019-10-29 Martin Liska <mliska@suse.cz>
8534 * cgraphunit.c (symbol_table::compile): Remove argument
8535 for dump_memory_report.
8536 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8537 (compare_final): Remove in order to make report
8539 * ggc.h (dump_ggc_loc_statistics): Remove argument.
8540 * mem-stats.h (mem_alloc_description::get_list):
8542 (mem_alloc_description::dump): Likewise here.
8543 * toplev.c (dump_memory_report): Remove final
8545 (finalize): Likewise.
8546 * toplev.h (dump_memory_report): Remove argument.
8548 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8550 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
8551 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
8552 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
8553 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
8556 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8558 * coretypes.h (string_int_pair): New typedef.
8559 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
8560 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
8561 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
8563 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
8565 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
8566 (simulate_builtin_function_decl): Declare.
8567 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
8568 (LANG_HOOKS_INITIALIZER): Include it.
8569 * langhooks.c (add_builtin_function_common): Rename to...
8570 (build_builtin_function): ...this. Add a location parameter and use
8571 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
8573 (add_builtin_function): Update accordingly, passing the returned
8574 decl to the lang hook.
8575 (add_builtin_function_ext_scope): Likewise
8576 (simulate_builtin_function_decl): New function.
8578 2019-10-29 Jakub Jelinek <jakub@redhat.com>
8580 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
8581 example, use actual names of supported offload targets.
8584 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
8586 2019-10-28 Martin Sebor <msebor@redhat.com>
8588 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
8589 (handle_store): Pass argument to get_addr_stridx.
8591 2019-10-28 Martin Sebor <msebor@redhat.com>
8593 PR tree-optimization/92226
8594 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
8595 the offset is in the open range outlined by SI's length.
8597 2019-10-28 Martin Sebor <msebor@redhat.com>
8600 * doc/cpp.texi (__has_builtin): Document.
8601 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
8603 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8606 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
8607 doubleword and low doubleword result of multiplication on
8610 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
8611 pure qualifier to the built-in.
8612 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
8614 (struct mips_builtin_description): Add is_pure flag.
8615 (mips_init_builtins): Mark built-in as pure if the flag in the
8616 corresponding mips_builtin_description struct is set.
8618 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
8619 alternative which covers the floating-point input value. Also
8620 forbid the split of insert.d pattern for floating-point values.
8622 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
8624 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
8625 * config/riscv/riscv-sr.c: New file.
8626 * config/riscv/riscv.c (riscv_reorg): New function.
8627 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8628 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
8629 (riscv_remove_unneeded_save_restore_calls): Declare.
8630 * config/riscv/t-riscv (riscv-sr.o): New build rule.
8632 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8634 PR tree-optimization/92163
8635 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
8636 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
8637 before calling bitmap_set_bit.
8638 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
8639 delete_dead_or_redundant_assignment.
8640 (dse_dom_walker::dse_optimize_stmt): Likewise.
8641 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
8643 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8646 * tree-vect-stmts.c (vectorizable_condition): Support
8647 EXTRACT_LAST_REDUCTION with fully-masked loops.
8649 2019-10-28 Richard Biener <rguenther@suse.de>
8651 PR tree-optimization/92252
8652 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
8653 STMT_VINFO_REDUC_IDX when swapping operands.
8655 2019-10-28 Richard Biener <rguenther@suse.de>
8657 PR tree-optimization/92241
8658 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
8659 we failed to update the reduction index do not use the pattern
8660 stmts for the reduction chain.
8661 (vectorizable_reduction): When the reduction chain is corrupt,
8663 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
8664 fail to update the reduction chain.
8666 2019-10-28 Richard Biener <rguenther@suse.de>
8668 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8669 STMT_VINFO_REDUC_IDX from the actual stmt.
8670 (vect_transform_reduction): Likewise.
8671 (vectorizable_reduction): Compute the reduction chain length,
8672 do not recompute the reduction operand index. Remove no longer
8673 necessary restriction for condition reduction chains.
8675 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
8678 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
8679 condition for V2DImode.
8681 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
8683 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
8684 Remove %k operand modifier.
8685 (*vec_extractv2df_1_sse): Remove %q operand modifier.
8687 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
8689 PR rtl-optimization/92007
8690 * cfgcleanup.c (thread_jump): Add an assertion that we don't
8691 call it after reload if hot/cold partitioning has been done.
8692 (class pass_postreload_jump): Rename to
8693 pass_jump_after_combine.
8694 (make_pass_postreload_jump): Rename to
8695 make_pass_jump_after_combine.
8696 * passes.def(pass_postreload_jump): Move before reload, rename
8697 to pass_jump_after_combine.
8698 * tree-pass.h (make_pass_postreload_jump): Rename to
8699 make_pass_jump_after_combine.
8701 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
8704 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
8705 for missing EDGE_REF
8706 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
8708 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
8710 PR tree-optimization/88760
8711 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
8712 Enable -funroll-loops for -O2 and above.
8713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
8714 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
8715 do not turn on web and rngreg implicitly, if the unroller is not
8718 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8720 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
8723 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
8725 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
8726 * cgraph.h (cgraph_node::rtl_info): Likewise.
8728 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8730 * ipa-cp.c (propagate_constants_across_call): If args are not available
8731 just drop everything to varying.
8732 (find_aggregate_values_for_callers_subset): Watch for missing
8734 (find_more_scalar_values_for_callers_subs): Likewise.
8735 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8736 update_jump_functions_after_inlining, propagate_controlled_uses):
8737 Watch for missing summaries.
8738 (ipa_propagate_indirect_call_infos): Remove summary after propagation
8740 (ipa_write_node_info): Watch for missing summaries.
8741 (ipa_read_edge_info): Create new ref.
8742 (ipa_edge_args_sum_t): Add remove.
8743 (IPA_EDGE_REF_GET_CREATE): New macro.
8744 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
8746 (remap_edge_change_prob): Likewise.
8748 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8750 * ipa-inline-transform.c (inline_call): update function summaries
8751 after expanidng thunk.
8753 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
8755 * ipa-icf.c (sem_function::merge): Update function summaries.
8756 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
8758 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
8760 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
8761 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
8762 operand already has scalar mode.
8763 (iptr): Remove SF/DF.
8765 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
8768 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
8769 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
8772 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
8774 * config/i386/sse.md
8775 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
8776 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
8777 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
8778 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
8779 <sse>_vmmaskcmp<mode>3):
8780 Change predicates from vector_operand to nonimmediate_operand,
8781 constraints xBm to xm, since scalar operations don't need
8782 memory address alignment.
8783 (avx512f_vmcmp<mode>3<round_saeonly_name>,
8784 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
8785 round_saeonly_nimm_predicate with
8786 round_saeonly_nimm_scalar_predicate.
8787 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8788 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
8789 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8790 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
8791 avx512f_vmfmadd_<mode>_mask3<round_name>,
8792 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8793 *avx512f_vmfmsub_<mode>_mask<round_name>,
8794 avx512f_vmfmsub_<mode>_mask3<round_name>,
8795 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
8796 *avx512f_vmfnmadd_<mode>_mask<round_name>,
8797 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8798 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8799 *avx512f_vmfnmsub_<mode>_mask<round_name>,
8800 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
8801 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
8802 cvtusi2<ssescalarmodesuffix>32<round_name>,
8803 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
8804 round_nimm_predicate with round_nimm_scalr_predicate.
8805 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
8806 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
8807 avx512er_vmrcp28<mode><round_saeonly_name>,
8808 avx512er_vmrsqrt28<mode><round_saeonly_name>,
8809 ): Replace round_saeonly_nimm_predicate with
8810 round_saeonly_nimm_scalar_predicate.
8811 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
8812 vector_operand with nonimmediate_operand.
8813 * config/i386/subst.md (round_scalar_nimm_predicate,
8814 round_saeonly_scalar_nimm_predicate): Replace
8815 vector_operand with nonimmediate_operand.
8817 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
8820 * config/i386/i386.md (*rcpsf2_sse): Add
8821 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
8822 (*rsqrtsf2_sse): Ditto.
8823 (*sqrt<mode>2_sse): Ditto.
8824 (sse4_1_round<mode>2): separate constraint vm, add
8825 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
8826 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
8828 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
8830 (*sse_vmrsqrtv4sf2): Ditto.
8831 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8832 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
8833 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
8834 <iptr> pointer size modifier since vround support memory operand.
8836 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8839 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
8842 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8843 Tobias Burnus <tobias@codesourcery.com>
8845 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
8846 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
8849 2019-10-25 Richard Biener <rguenther@suse.de>
8851 PR tree-optimization/92222
8852 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
8853 (_slp_oprnd_info::second_pattern): Likewise.
8854 (_slp_oprnd_info::any_pattern): New.
8855 (vect_create_oprnd_info): Adjust.
8856 (vect_get_and_check_slp_defs): Compute whether any stmt is
8858 (vect_build_slp_tree_2): Avoid building up a node from scalars
8859 if any of the operand defs, not just the first, is in a pattern.
8861 2019-10-25 Richard Biener <rguenther@suse.de>
8863 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
8864 swapping if we actually have to modify the IL on a shared stmt.
8865 (vect_build_slp_tree_2): Never fail swapping on shared stmts
8866 because we no longer modify the IL.
8868 2019-10-25 Martin Liska <mliska@suse.cz>
8870 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8872 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
8874 * tree-vect-loop.c (vectorizable_reduction): Restrict the
8875 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8876 handled by vect_transform_reduction. Allow fully-masked loops
8877 to be used with reduction chains.
8878 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8879 operations in fully-masked loops.
8880 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8881 operations in fully-masked loops.
8883 2019-10-25 Richard Biener <rguenther@suse.de>
8885 * tree-vect-loop.c (vectorizable_reduction): Verify
8886 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8888 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8889 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8892 2019-10-24 Jakub Jelinek <jakub@redhat.com>
8894 * gimplify.h (omp_construct_selector_matches): Declare.
8895 * gimplify.c (struct gimplify_omp_ctx): Add code member.
8896 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8897 called function if needed for flag_openmp.
8898 (gimplify_scan_omp_clauses): Set ctx->code.
8899 (omp_construct_selector_matches): New function.
8900 * omp-general.h (omp_constructor_traits_to_codes,
8901 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8902 * omp-general.c (omp_constructor_traits_to_codes,
8903 omp_context_selector_matches, omp_resolve_declare_variant): New
8906 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8908 * config/rx/rx.c (rx_print_operand): Likewise.
8909 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8910 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8911 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8913 * genemit.c (emit_c_code): Likewise.
8914 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8916 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8918 * symbols-summary.h (fast_function_summary<T *, V>::release,
8919 fast_call_summary<T *, V>::release): Free m_vector.
8921 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8923 * cgraphunit.c (symbol_table::process_new_functions): Call
8924 ipa_free_size_summary.
8925 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8926 (devirtualization_time_bonus): Update.
8927 (ipcp_propagate_stage): Update.
8928 * ipa-fnsummary.c (ipa_size_summaries): New.
8929 (ipa_fn_summary_alloc): Alloc size summary.
8930 (dump_ipa_call_summary): Update.
8931 (ipa_dump_fn_summary): Update.
8932 (analyze_function_body): Update.
8933 (compute_fn_summary): Likewise.
8934 (ipa_get_stack_frame_offset): New function.
8935 (inline_update_callee_summaries): Do not update frame offsets.
8936 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8937 remove call and function summary.
8938 (ipa_update_overall_fn_summary): Update.
8939 (inline_read_section): Update.
8940 (ipa_fn_summary_write): Update.
8941 (ipa_free_fn_summary): Do not remove summaries.
8942 (ipa_free_size_summary): New.
8943 (release summary pass): Also run at WPA.
8944 * ipa-fnsummary.h (ipa_size_summary): Declare.
8945 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8946 estimated_self_stack_size.
8947 (ipa_size_summary_t): New type.
8948 (ipa_size_summaries): Declare.
8949 (ipa_free_size_summary): Declare.
8950 (ipa_get_stack_frame_offset): Declare.
8951 * ipa-icf.c (sem_function::merge): Update.
8952 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8953 (estimate_growth): Update.
8954 (growth_likely_positive): Update.
8955 (clone_inlined_nodes): Update.
8956 (inline_call): Update.
8957 * ipa-inline.c (caller_growth_limits): Update.
8958 (edge_badness): Update.
8959 (recursive_inlining): Update.
8960 (inline_small_functions): Update.
8961 (inline_to_all_callers_1): Update.
8962 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8964 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8966 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8967 (uavg<mode>3_ceil): ... This.
8968 (altivec_vavgs<VI_char>): Rename to...
8969 (avg<mode>3_ceil): ... This.
8970 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8971 VAVGUW, VAVGSW): Adjust.
8973 2019-10-24 Nathan Sidwell <nathan@acm.org>
8975 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8977 2019-10-24 Martin Liska <mliska@suse.cz>
8979 * symbol-summary.h (gt_pch_nx): Mark all functions
8980 with gcc_unreachable as we do not expect to be called.
8982 2019-10-24 Richard Biener <rguenther@suse.de>
8984 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8985 chains try harder with operand swapping and instead of
8986 putting a shifted chain into the reduction operands put
8987 a repetition of the final reduction op there as if we'd
8988 reassociate the expression.
8990 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8992 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8993 statics_not_read and statics_not_written to statics_read and
8994 statics_written respectively.
8995 (no_module_statics): New static var.
8996 (ipa_reference_get_not_read_global): Rename to ...
8997 (ipa_reference_get_read_global): ... this.
8998 (ipa_reference_get_not_written_global): Rename to ...
8999 (ipa_reference_get_written_global): ... this.
9000 (dump_static_vars_set_to_file): Dump no_module_statics.
9001 (copy_static_var_set): Add for propagation parameter.
9002 (ipa_init): Initialize no_module_statics.
9003 (ipa_ref_opt_summary_t::duplicate): Update.
9004 (ipa_ref_opt_summary_t::remove): Update.
9005 (propagate): Update.
9006 (write_node_summary_p): Look correctly for bitmap differences.
9007 (ipa_reference_write_optimization_summary): Update.
9008 (ipa_reference_read_optimization_summary): Update.
9010 (ipa_reference_get_not_read_global): Rename to ...
9011 (ipa_reference_get_read_global): ... this.
9012 (ipa_reference_get_not_written_global): Rename to ...
9013 (ipa_reference_get_written_global): ... this.
9014 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
9015 (call_may_clobber_ref_p_1): Update.
9017 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9019 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
9021 (msp430_hard_regno_nregs_with_padding): Remove.
9023 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9025 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
9026 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
9027 shift amount is between 1 and 4.
9028 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
9031 2019-10-24 Richard Biener <rguenther@suse.de>
9033 PR tree-optimization/92205
9034 * tree-vect-loop.c (vectorizable_reduction): Restrict
9035 search for alternate vectype_in to lane-reducing patterns
9038 2019-10-24 Richard Biener <rguenther@suse.de>
9040 PR tree-optimization/92203
9041 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
9042 Skip eliminating conversion stmts inserted by insertion.
9044 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
9046 * config/s390/s390.c (s390_get_thread_pointer): Use
9047 gen_get_thread_pointer.
9048 (s390_expand_split_stack_prologue): Likewise.
9049 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
9050 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
9051 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
9052 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
9055 2019-10-24 Richard Biener <rguenther@suse.de>
9057 * tree-vect-slp.c (vect_analyze_slp): When reduction group
9058 SLP discovery fails try to handle the reduction as part
9059 of SLP reduction discovery.
9061 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
9063 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
9065 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
9066 attribute if it exists, rather than the insn size. If we use the
9067 insn size, adjust the size to remove the extra size that prefixed
9069 (rs6000_adjust_insn_length): New function.
9070 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
9071 update the instruction sized if prefixed instructions are used.
9072 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
9073 (non_prefixed_length attribute): Delete.
9074 (num_insns attribute): New insn attribute to return the number of
9076 (max_prefixed_insns attribute): New insn attribute to return the
9077 maximum number of prefixed instructions in an insn.
9078 (length attribute): Do not adjust for prefix instructions here,
9079 punt to ADJUST_INSN_LENGTH.
9080 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
9081 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
9082 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
9083 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
9084 max_prefixed_insns and num_insns.
9086 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
9087 (movtd_64bit_nodm): Reformat.
9088 (mov<mode>_32bit): Reformat.
9089 (mov<mode>_softfloat): Reformat.
9090 (FMOVE128_GPR splitter): Reformat.
9091 (DIFD splitter): Reformat.
9092 (TI2 splitter): Reformat.
9093 * config/rs6000/predicates.md (lwa_operand): If the bottom two
9094 bits of the offset for the memory address are non-zero, use PLWA
9095 if prefixed instructions are available.
9097 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
9099 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
9101 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
9103 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
9106 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
9108 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
9109 (cmp_symbol_files): New.
9110 (lto_output): Copy sections in file order.
9111 * lto-streamer.h (lto_file_decl_data): Add field order.
9113 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
9115 * ipa-reference.h (ipa_reference_var_uid): Move offline.
9116 * ipa-reference.c (reference_vars_map_t): new type.
9117 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
9118 (ipa_reference_var_uid): Implement.
9119 (varpool_node_hooks): New static var.
9120 (varpool_removal_hook): New function.
9121 (is_improper): Do not check bitmap for id==-1
9122 (get_static_name): Update.
9123 (ipa_init): Initialize new datastructures.
9124 (analyze_function): Do not recompute ids.
9125 (propagate): Free reference_vars_to_consider.
9126 (stream_out_bitmap): Update.
9127 (ipa_reference_read_optimization_summary): Update.
9129 2019-10-23 qing zhao <qing.zhao@oracle.com>
9131 PR gcov-profile/91971
9132 * coverage.c (coverage_init): Mangle the full path of filename when
9133 filename is a absolute path.
9135 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9137 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
9138 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
9139 (msp430_has_hwmult): New.
9140 (msp430_output_labelref):
9141 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
9142 * config/msp430/msp430.md (mulhisi3): Likewise.
9143 (umulhisi3): Likewise.
9144 (mulsidi3): Likewise.
9145 (umulsidi3): Likewise.
9147 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
9150 * params.def (inline-heuristics-hint-percent): Set to 600.
9152 2019-10-23 Richard Biener <rguenther@suse.de>
9154 PR tree-optimization/65930
9155 * tree-vect-loop.c (check_reduction_path): Allow conversions
9156 that only change the sign.
9157 (vectorizable_reduction): Relax latch def stmts we handle further.
9159 2019-10-23 Jakub Jelinek <jakub@redhat.com>
9162 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
9163 (remove_unused_ivs): Use it instead of get_computation_at. When
9164 choosing best candidate, only consider candidates where
9165 get_debug_computation_at actually returns non-NULL.
9167 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
9169 PR tree-optimization/92131
9170 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
9171 range would be symbolic, drop to varying for any explicit overflow
9172 in the constant part or if neither range is a singleton.
9174 2019-10-23 Martin Liska <mliska@suse.cz>
9177 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
9180 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
9182 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
9183 int_mode_for_mode rather than mode_for_int_vector for scalars.
9185 2019-10-23 Richard Biener <rguenther@suse.de>
9187 PR tree-optimization/92179
9188 * tree-vect-stmts.c (vectorizable_shift): For shift args
9189 that are all the same remove type restriction in the SLP case.
9190 Adjust SLP code to handle converting of the shift arg to
9191 only apply in case the modes are different.
9193 2019-10-23 Martin Liska <mliska@suse.cz>
9196 * ipa-inline.c (recursive_inlining): Do not print
9197 when curr->count is not initialized.
9199 2019-10-23 Richard Biener <rguenther@suse.de>
9201 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
9202 op from scalars in case there's a constant operand in its
9205 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
9207 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
9208 against out of range max skip or log values.
9210 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
9212 * cgraph.c (dump_graphviz): Change name to dump_name
9214 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
9216 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
9217 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9218 subtraction from a carry operation.
9220 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
9222 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
9224 2019-10-22 Richard Biener <rguenther@suse.de>
9226 PR tree-optimization/92173
9227 * tree-vect-loop.c (vectorizable_reduction): If
9228 vect_transform_reduction cannot handle code-generation try without
9229 the single-def-use-cycle optimization. Pass optab_vector to
9230 optab_for_tree_code to get vector shifts as that's what we'd
9233 2019-10-22 Michael Matz <matz@suse.de>
9236 * gimple-loop-jam.c (any_access_function_variant_p): New function.
9237 (adjust_unroll_factor): Use it to constrain safety, new parameter.
9238 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
9240 2019-10-22 Richard Biener <rguenther@suse.de>
9242 PR tree-optimization/92173
9243 * tree-vect-loop.c (vectorizable_reduction): If
9244 vect_transform_reduction cannot handle code-generation try without
9245 the single-def-use-cycle optimization. Pass optab_vector to
9246 optab_for_tree_code to get vector shifts as that's what we'd
9249 2019-10-22 Martin Liska <mliska@suse.cz>
9251 * diagnostic-format-json.cc (json_from_expanded_location):
9252 Use json::integer_number.
9253 * gcov.c (output_intermediate_json_line): Use new
9254 json::integer_number.
9255 (output_json_intermediate_file): Likewise.
9256 * json.cc (number::print): Move to ...
9257 (float_number::print): ... this.
9258 (integer_number::print): New.
9259 (test_writing_numbers): Move to ...
9260 (test_writing_float_numbers): ... this.
9261 (test_writing_integer_numbers): New.
9262 (json_cc_tests): Register test_writing_integer_numbers.
9263 * json.h (class value): Add forward declaration
9264 for float_number and integer_number.
9265 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
9266 (class number): Move to ...
9267 (class float_number): ... this.
9268 (class integer_number): New.
9269 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
9270 Use json::integer_number.
9271 (optrecord_json_writer::location_to_json): Likewise.
9272 (optrecord_json_writer::profile_count_to_json): Likewise.
9273 (optrecord_json_writer::pass_to_json): Likewise.
9275 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
9277 * tree-vect-slp.c (vect_slp_bb_region): Check whether
9278 autodetected_vector_size rather than vector_size is zero.
9279 * tree-vect-loop.c (vect_analyze_loop): Likewise.
9280 Set autodetected_vector_size immediately after calling
9281 vect_analyze_loop_2. Check for a fatal error before advancing
9284 2019-10-21 Jason Merrill <jason@redhat.com>
9286 * lock-and-run.sh: Check for process existence rather than timeout.
9288 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9290 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
9291 widening multiplication.
9293 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
9295 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
9296 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
9298 (subsi3_carryin_shift): Separate into register and constant controlled
9299 alternatives. Use shift_amount_operand for operand 4. Set shift
9300 attribute and simplify type attribute.
9301 (subsi3_carryin_shift_alt): Likewise.
9302 (rsbsi3_carryin_shift): Likewise.
9303 (rsbsi3_carryin_shift_alt): Likewise.
9304 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
9305 and register controlled shifts into distinct alternatives.
9306 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
9307 (andsi_not_shiftsi_si_scc): Likewise.
9308 (arm_cmpsi_negshiftsi_si): Likewise.
9309 (not_shiftsi): Remove redundant M constraint from alternative 1.
9310 (not_shiftsi_compare0): Likewise.
9311 (arm_cmpsi_insn): Remove redundant alternative 2.
9312 (cmpsi_shift_swp): Likewise.
9313 (sub_shiftsi): Likewise.
9314 (sub_shiftsi_compare0_scratch): Likewise.
9315 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
9316 (thumb2_cmpsi_neg_shiftsi): Likewise.
9318 2019-10-21 Richard Biener <rguenther@suse.de>
9320 PR tree-optimization/92162
9321 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
9322 STMT_VINFO_REDUC_IDX in reduc_info.
9323 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9325 2019-10-21 Richard Biener <rguenther@suse.de>
9327 * tree-vectorizer.h (_slp_tree::ops): New member.
9328 (SLP_TREE_SCALAR_OPS): New.
9329 (vect_get_slp_defs): Adjust prototype.
9330 * tree-vect-slp.c (vect_free_slp_tree): Release
9331 SLP_TREE_SCALAR_OPS.
9332 (vect_create_new_slp_node): Initialize it. New overload for
9333 initializing by an operands array.
9334 (_slp_oprnd_info::ops): New member.
9335 (vect_create_oprnd_info): Initialize it.
9336 (vect_free_oprnd_info): Release it.
9337 (vect_get_and_check_slp_defs): Populate the operands array.
9338 Do not swap operands in the IL when not necessary.
9339 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
9340 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
9341 swap operands in the operands array. Do not swap operands in
9343 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
9344 (vect_gather_slp_loads): Fix.
9345 (vect_detect_hybrid_slp_stmts): Likewise.
9346 (vect_slp_analyze_node_operations_1): Search for a internal
9347 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
9348 (vect_slp_analyze_node_operations): Skip ops-only stmts for
9349 the def-type push/pop dance.
9350 (vect_get_constant_vectors): Compute number_of_vectors here.
9351 Use SLP_TREE_SCALAR_OPS and simplify greatly.
9352 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
9353 (vect_get_slp_defs): Simplify greatly.
9354 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
9355 (vect_transform_reduction): Likewise.
9356 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
9357 (vectorizable_call): Likewise.
9358 (vectorizable_operation): Likewise.
9359 (vectorizable_load): Likewise.
9360 (vectorizable_condition): Likewise.
9361 (vectorizable_comparison): Likewise.
9363 2019-10-21 Richard Biener <rguenther@suse.de>
9365 PR tree-optimization/92161
9366 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
9369 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9371 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
9372 (aarch64_rndr): New define_insn.
9373 (aarch64_rndrrs): Likewise.
9374 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
9375 (TARGET_RNG): Likewise.
9376 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
9378 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
9379 Add fourth argument in prototype.
9380 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
9381 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
9382 (aarch64_init_rng_builtins): Define.
9383 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
9384 (aarch64_expand_rng_builtin): Define.
9385 (aarch64_general_expand_builtin): Use IGNORE argument, handle
9387 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9388 __ARM_FEATURE_RNG when TARGET_RNG.
9389 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
9391 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
9393 * tree-vect-stmts (ensure_base_align): Only change alignment if new
9394 alignment is more restrictive.
9396 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9398 * tree-vectorizer.h (vec_info::vector_size): New member variable.
9399 (vect_update_max_nunits): Update comment.
9400 (current_vector_size): Delete.
9401 * tree-vect-stmts.c (current_vector_size): Likewise.
9402 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
9403 of current_vector_size.
9404 (get_mask_type_for_scalar_type): Likewise.
9405 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
9406 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
9407 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
9408 (vect_double_mask_nunits, vect_transform_loop): Likewise.
9409 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
9410 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
9412 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9414 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
9415 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
9416 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
9419 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9421 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
9422 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
9423 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
9425 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9427 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9429 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
9431 (vect_set_loop_condition_masked): Update call accordingly.
9433 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9435 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
9436 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
9437 (simple_integer_narrowing): Update call accordingly.
9438 (vectorizable_conversion): Likewise.
9440 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9442 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
9443 (vectorizable_call): Update call accordingly.
9445 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9447 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
9448 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
9449 (duplicate_and_interleave): Update call accordingly.
9450 * tree-vect-loop.c (vectorizable_reduction): Likewise.
9452 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9454 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
9455 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
9456 (vect_get_constant_vectors): Update call accordingly.
9457 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
9459 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9461 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
9462 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
9463 (vect_prologue_cost_for_slp_op): Update call accordingly.
9464 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
9465 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
9466 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
9467 (get_mask_type_for_scalar_type): Likewise.
9468 (vect_get_vector_types_for_stmt): Likewise.
9469 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
9470 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9471 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
9472 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
9473 (vect_split_statement, vect_convert_input): Likewise.
9474 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
9475 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
9476 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
9477 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
9478 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
9479 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
9480 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
9481 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
9482 (vect_recog_mask_conversion_pattern): Likewise.
9483 (vect_add_conversion_to_pattern): Likewise.
9484 (vect_recog_gather_scatter_pattern): Likewise.
9485 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
9486 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
9488 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9490 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
9491 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
9492 (vect_check_load_store_mask): Update call accordingly.
9493 (vect_get_mask_type_for_stmt): Likewise.
9494 * tree-vect-patterns.c (check_bool_pattern): Likewise.
9495 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
9496 (vect_convert_mask_for_vectype): Likewise.
9498 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9500 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
9502 (vect_recog_dot_prod_pattern): Update call accordingly.
9503 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
9504 (vect_recog_widen_sum_pattern): Likewise.
9506 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9508 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
9509 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
9510 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
9513 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
9515 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
9516 get_vectype_for_scalar_type_and_size instead of
9517 get_vectype_for_scalar_type.
9519 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9521 * common.opt (-fcommon): Fix description.
9523 2019-10-20 Jakub Jelinek <jakub@redhat.com>
9525 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
9526 * config/i386/i386.c (ix86_pre_reload_split): New function.
9527 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
9528 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
9529 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
9530 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
9531 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
9532 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
9533 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
9534 *<shift_insn><dwi>3_doubleword_mask,
9535 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
9536 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
9537 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
9538 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
9539 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
9540 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
9541 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
9542 *avx2_<code>v8qiv8si2<mask_name>_2,
9543 *sse4_1_<code>v4qiv4si2<mask_name>_2,
9544 *sse4_1_<code>v4hiv4si2<mask_name>_2,
9545 *avx512f_<code>v8qiv8di2<mask_name>_2,
9546 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
9547 *sse4_1_<code>v2hiv2di2<mask_name>_2,
9548 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
9549 sse4_2_pcmpistr): Likewise.
9551 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
9553 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
9554 now defaults to https.
9556 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
9558 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
9559 skip non-zero array accesses.
9561 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
9563 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
9564 and return a boolean success value. Move the allocation and
9565 initialization of the bb_vec_info to...
9566 (vect_slp_bb_region): ...here. Update call accordingly.
9567 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
9568 than in vect_slp_analyze_bb_1.
9570 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
9572 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
9573 when processing the given datarefs for the first time and
9574 check_datarefs subsequently.
9575 (vect_slp_bb_region): New function, split out of...
9576 (vect_slp_bb): ...here. Don't recompute the region bounds and
9577 dataref sets when retrying with a different vector size.
9579 2019-10-19 Jakub Jelinek <jakub@redhat.com>
9580 Uroš Bizjak <ubizjak@gmail.com>
9583 * config/i386/predicates.md (int_nonimmediate_operand): New special
9585 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
9586 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
9587 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
9588 define_insn_and_split patterns.
9590 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
9592 * config/rs6000/rs6000.md: Delete out--of-date comment about
9593 special-casing integer loads.
9595 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
9597 * escaped_string.h (escaped_string): New header.
9598 * tree.c (escaped_string): Remove escaped_string class.
9600 2019-10-18 Martin Sebor <msebor@redhat.com>
9602 PR tree-optimization/92157
9603 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
9604 compute_string_length to return a negative result.
9606 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9608 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
9609 (negvsi3, negvdi3): Delete.
9610 (negdi2_compare): Delete.
9612 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9614 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
9616 (subdi3_compare1): Delete pattern.
9617 (subvsi3_borrow): New insn pattern.
9618 (subvsi3_borrow_imm): Likewise.
9620 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9622 * config/arm/arm.md (subv<mode>4): Delete.
9623 (subvdi4): New expander pattern.
9624 (subvsi4): Likewise. Handle some immediate values.
9625 (subvsi3_intmin): New insn pattern.
9626 (subvsi3): Likewise.
9627 (subvsi3_imm1): Likewise.
9628 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
9631 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9633 * config/arm/arm.md (usubvdi4): Allow registers or integers for
9634 incoming operands. Early split the calculation into SImode
9636 (usubvsi3_borrow): New insn pattern.
9637 (usubvsi3_borrow_imm): Likewise.
9639 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9641 * config/arm/arm.md (usubv<mode>4): Delete expansion.
9642 (usubvsi4): New pattern. Allow some immediate values for inputs.
9643 (usubvdi4): New pattern.
9645 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9647 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
9648 or second operand of the PLUS inside a DImode equality test to be
9649 sign-extend when selecting CC_Vmode.
9650 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
9652 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
9654 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
9655 (addsi3_cin_vout_0): Likewise.
9656 (adddi3_compareV): Delete.
9658 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9660 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
9661 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
9662 to transform this back into the summation version when that leads
9665 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9667 * config/arm/arm.md (addv<mode>4): Delete.
9668 (addvsi4): New pattern. Handle immediate values that the architecture
9670 (addvdi4): New pattern.
9671 (addsi3_compareV): Rename to ...
9672 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
9673 and use COMPARE rather than NE.
9674 (addsi3_compareV_imm): New pattern.
9675 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
9676 a signed-overflow check.
9678 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9680 * config/arm/arm-modes.def (CC_ADC): New CC mode.
9681 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
9683 (maybe_get_arm_condition_code): Handle CC_ADCmode.
9684 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
9686 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
9688 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
9689 (addsi3_cin_cout_imm_insn): Likewise.
9690 (adddi3_compareC): Delete insn.
9691 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
9693 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9695 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
9696 * (uaddv<mode>4): Delete expansion pattern.
9697 (uaddvsi4): New pattern.
9698 (uaddvdi4): Likewise.
9699 (addsi3_compareC): Delete pattern, change callers to use
9701 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
9702 reduce the number of alternatives and re-work type attribute handling.
9703 (addsi3_compare_op2): Clean up constraints to reduce the number of
9704 alternatives and re-work type attribute handling.
9705 (compare_addsi2_op0): Likewise.
9706 (compare_addsi2_op1): Likewise.
9708 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9710 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
9711 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
9712 for DImode operands.
9713 (arm_gen_dicompare_reg): Remove unreachable expansion code.
9714 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
9716 * config/arm/arm.md (arm_cmpdi_insn): Delete.
9717 (arm_cmpdi_unsigned): Delete.
9719 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9721 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
9722 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
9723 unchanged only if that will be cheaper.
9724 (arm_select_cc_mode): Recognize a swapped comparison that will
9725 be regenerated using RSBS or RSCS. Relax restriction on selecting
9727 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
9729 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
9731 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
9733 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
9734 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
9736 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9738 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
9739 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
9741 (arm_gen_dicompare_reg): New code to early expand the sub-operations
9742 of EQ, NE, LT, GE, LTU and GEU.
9743 * config/arm/iterators.md (CC_EXTEND): New code attribute.
9744 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
9745 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
9746 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
9747 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
9749 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9751 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
9753 (cstoredi4): Similarly, but for operand 3.
9754 * config/arm/arm.c (arm_canoncialize_comparison): Allow
9755 canonicalization of unsigned compares with a constant on Arm.
9756 Prefer using const+1 and adjusting the comparison over swapping the
9757 operands whenever the original constant was not valid.
9758 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
9760 (arm_validize_comparison): Do not force invalid DImode operands to
9763 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9765 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
9766 return CC_Zmode if comparing against a constant where one word is
9768 (arm_gen_compare_reg): Split DImode handling to ...
9769 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
9770 against simple constants.
9771 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
9773 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9775 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
9776 (rsbsi3_carryin_shift_alt): Likewise.
9778 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9780 * config/arm/arm.md (negscc_borrow): New pattern.
9781 (mov_negscc): Don't split if the insn would match negscc_borrow.
9782 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
9783 (thumb2_mov_negscc_strict_it): Likewise.
9785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9787 * config/arm/arm.c (arm_insn_cost): New function.
9788 (TARGET_INSN_COST): Override default definition.
9790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9792 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
9795 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9797 * config/arm/arm.c (strip_carry_operation): New function.
9798 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
9801 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9803 * config/arm/predicates.md (arm_carry_operation): New special
9805 * config/arm/iterators.md (LTUGEU): Delete iterator.
9806 (cnb): Delete code attribute.
9807 (optab): Delete ltu and geu elements.
9808 * config/arm/arm.md (addsi3_carryin): Renamed from
9809 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
9810 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
9811 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
9812 (addsi3_carryin_clobercc): Similarly.
9813 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
9816 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9818 * config/arm/arm.md (arm_subdi3): Delete insn.
9819 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
9821 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9823 * config/arm/arm-modes.def (CC_RSB): New CC mode.
9824 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
9825 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
9827 (maybe_get_arm_condition_code): Handle CC_RSBmode.
9828 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
9830 (subdi3): Rewrite to early-expand the sub-operations.
9831 (rsb_im_compare): New pattern.
9833 (negdi2_insn): Delete.
9834 (arm_negsi2): Correct type attribute to alu_imm.
9835 (negsi2_0compare): New insn pattern.
9836 (negsi2_carryin): New insn pattern.
9838 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9840 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
9843 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9845 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9846 to match canonical form.
9848 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9850 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
9851 (extend<mode>di2): Likewise.
9853 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9855 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
9856 * config/arm/arm.c (arm_decompose_di_binop): New function.
9857 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
9858 If not generating Thumb-1 code, decompose the operation into 32-bit
9860 * add0si_carryin_<optab>: New pattern.
9862 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
9864 * arm.md (adddi3): Only accept register operands.
9865 (arm_adddi3): Convert to simple insn with no split. Do not accept
9867 (adddi_sesidi_di): Delete patern.
9868 (adddi_zesidi_di): Likewise.
9869 (uaddv<mode>4): Use LTU as condition for branch.
9870 (adddi3_compareV): Convert to simple insn with no split.
9871 (addsi3_compareV_upper): Delete pattern.
9872 (adddi3_compareC): Convert to simple insn with no split. Correct
9873 flags setting expression.
9874 (addsi3_compareC_upper): Delete pattern.
9875 (addsi3_compareC): Correct flags setting expression.
9876 (subdi3_compare1): Convert to simple insn with no split.
9877 (subsi3_carryin_compare): Delete pattern.
9878 (arm_subdi3): Convert to simple insn with no split.
9879 (subdi_zesidi): Delete pattern.
9880 (subdi_di_sesidi): Delete pattern.
9881 (subdi_zesidi_di): Delete pattern.
9882 (subdi_sesidi_di): Delete pattern.
9883 (subdi_zesidi_zesidi): Delete pattern.
9884 (negvdi3): Use s_register_operand.
9885 (negdi2_compare): Convert to simple insn with no split.
9886 (negdi2_insn): Likewise.
9887 (negsi2_carryin_compare): Delete pattern.
9888 (negdi_zero_extendsidi): Delete pattern.
9889 (arm_cmpdi_insn): Convert to simple insn with no split.
9890 (negdi2): Don't call gen_negdi2_neon.
9891 * config/arm/neon.md (adddi3_neon): Delete pattern.
9892 (subdi3_neon): Delete pattern.
9893 (negdi2_neon): Delete pattern.
9894 (splits for negdi2_neon): Delete splits.
9896 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9899 * ggc-page.c (release_pages): Read g->alloc_size before free rather
9902 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
9904 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9905 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9906 new multilib variants and new mappings.
9908 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9911 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9913 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9914 Richard Sandiford <richard.sandiford@arm.com>
9917 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9918 and define hashmap traits for it.
9919 (loop_vec_info::scalar_cond_masked_set): New member.
9920 (vect_record_loop_mask): Adjust prototype.
9921 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9923 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9924 vect_record_loop_mask.
9925 (vectorizable_live_operation): Likewise.
9926 (vect_record_loop_mask): New param scalar_mask. Add entry
9927 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9928 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9929 Pass it as last arg to vect_record_loop_mask.
9930 (vectorizable_call): Pass scalar_mask as last arg to
9931 vect_record_loop_mask.
9932 (vectorizable_store): Likewise.
9933 (vectorizable_load): Likewise.
9934 (vectorizable_condition): Check if another part of vectorized code
9935 applies loop_mask to condition or to it's inverse, and if yes,
9936 apply loop_mask to result of vector comparison.
9938 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9940 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9942 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9944 PR tree-optimization/92056
9945 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9946 before calling compute_builtin_object_size.
9948 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9951 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9952 (movdi_low_st): Delete.
9953 * config/rs6000/rs6000.c
9954 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9955 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9956 * config/rs6000/rs6000.md (movsi_low): Delete.
9958 2019-10-17 Jason Merrill <jason@redhat.com>
9960 * gimplify.h (get_initialized_tmp_var): Add default argument to
9962 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9963 NULL post_p argument.
9964 * targhooks (std_gimplify_va_arg_expr): Likewise.
9966 2019-10-17 Richard Biener <rguenther@suse.de>
9968 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9969 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9970 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9971 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9972 * tree-vect-loop.c (vect_is_simple_reduction): Set
9973 STMT_VINFO_REDUC_CODE.
9974 (vectorizable_reduction): Remove dead and redundant code, use
9975 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9977 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9979 Fix breakage introduced by r276985.
9981 * config/avr/avr.c (avr_option_override): Remove set of
9982 PARAM_ALLOW_STORE_DATA_RACES.
9983 * common/config/avr/avr-common.c (avr_option_optimization_table)
9984 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9986 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9988 * config/i386/i386.h (processor_costs): Add clear_ratio.
9989 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9990 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9991 of 6 and move_ratio in all cost models.
9993 2019-10-17 Richard Biener <rguenther@suse.de>
9995 * tree-vect-loop.c (check_reduction_path): Compute reduction
9997 (vect_is_simple_reduction): Remove special-case of single-stmt
9998 reduction path detection.
10000 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
10002 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
10004 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
10006 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
10007 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
10008 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
10009 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
10010 New combine patterns.
10011 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
10013 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
10015 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
10017 * tree-vrp.c (value_range_base::dump): Display +INF for both
10018 pointers and integers when appropriate.
10020 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
10022 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
10023 when to use versioning threshold.
10025 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
10027 * tree-vect-loop.c (determine_peel_for_niter): New function contained
10028 outlined code from ...
10029 (vect_analyze_loop_2): ... here.
10031 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
10033 * tree-vect-loop.c (vect_transform_loop): Move code from here...
10034 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
10035 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
10037 2019-10-17 Richard Biener <rguenther@suse.de>
10039 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
10040 (vect_is_simple_reduction): Move all validity checks ...
10041 (vectorizable_reduction): ... here. Compute whether we
10042 need a fold-left reduction here.
10043 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
10044 both overloads, check needs_fold_left_reduction_p directly.
10045 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
10047 2019-10-17 Richard Biener <rguenther@suse.de>
10049 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
10050 TARGET_MEM_REF creation.
10052 2019-10-17 Richard Biener <rguenther@suse.de>
10054 PR tree-optimization/92129
10055 * tree-vect-loop.c (vectorizable_reduction): Also fail
10056 on GIMPLE_SINGLE_RHS.
10058 2019-10-17 Jakub Jelinek <jakub@redhat.com>
10060 PR tree-optimization/92056
10061 * tree-object-size.c (cond_expr_object_size): Return early if then_
10062 processing resulted in unknown size.
10064 PR tree-optimization/92115
10065 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
10066 temporary if it could trap.
10068 2019-10-17 Richard Biener <rguenther@suse.de>
10071 * dwarf2out.c (gen_formal_parameter_die): Also try to match
10072 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
10074 2019-10-16 Jakub Jelinek <jakub@redhat.com>
10076 * tree-ssa-strlen.c (maybe_invalidate): Use
10077 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
10079 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
10080 Jim Wilson <jimw@sifive.com>
10082 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
10083 regs to SIBCALL_REGS.
10084 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
10085 passing regs to SIBCALL_REGS.
10087 2019-10-16 Martin Sebor <msebor@redhat.com>
10089 PR tree-optimization/83821
10090 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
10091 the length of a string when available.
10092 (handle_builtin_memset) Add argument.
10093 (handle_store, strlen_check_and_optimize_call): Same.
10094 (check_and_optimize_stmt): Same. Pass it to callees.
10096 2019-10-16 Martin Sebor <msebor@redhat.com>
10098 PR tree-optimization/91996
10099 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
10101 (compare_nonzero_chars): Add an overload.
10102 (count_nonzero_bytes): Add an argument. Call overload above.
10103 Handle non-constant lengths in some range.
10104 (handle_store): Add an argument.
10105 (check_and_optimize_stmt): Pass an argument to handle_store.
10107 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
10109 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
10111 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
10113 * config/mips/mips.c (mips_expand_builtin_insn): Force the
10114 operands which correspond to the same input-output register to
10115 have the same pseudo assigned to them.
10117 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
10119 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
10121 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
10123 * config/aarch64/aarch64.c (aarch64_classify_symbol):
10124 Apply reasonable limit to symbol offsets.
10126 2019-10-16 Richard Biener <rguenther@suse.de>
10128 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
10129 (vect_is_simple_reduction): Delay checking to
10130 vectorizable_reduction and relax the checking.
10131 (vectorizable_reduction): Check we have a simple use. Check
10132 for bogus condition reductions.
10133 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
10134 are looking at the last stmt in a pattern sequence when
10135 filling in backedge PHI values.
10137 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
10138 Jiufu Guo <guojiufu@linux.ibm.com>
10141 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
10142 the callee explicitly disables some isa_flags the caller is using.
10144 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10146 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
10148 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10150 * genmodes.c (mode_data::order): New field.
10151 (blank_mode): Update accordingly.
10152 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
10153 (make_vector_modes): Likewise.
10154 (VECTOR_MODES): Update use accordingly.
10155 (cmp_modes): Sort by the new order field ahead of sorting by size.
10156 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
10157 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
10158 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
10159 (aarch64_classify_vector_mode): Handle the new partial modes.
10160 (aarch64_vl_bytes): New function.
10161 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
10162 when counting the number of registers in an SVE mode.
10163 (aarch64_class_max_nregs): Likewise.
10164 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
10166 (aarch64_classify_address): Treat partial vectors analogously
10168 (aarch64_print_address_internal): Consolidate the printing of
10169 MUL VL addresses, using aarch64_vl_bytes as the number of
10170 bytes represented by "VL".
10171 (aarch64_vector_mode_supported_p): Reject partial vector modes.
10173 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10175 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
10176 rather than known_lt when choosing frame layouts.
10178 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10180 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
10181 that all the adjustments add up to the full frame size.
10182 Use crtl->outgoing_args_size directly as the final adjustment
10185 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10187 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
10188 "frame" reference instead of always referring directly to
10189 "cfun->machine->frame".
10191 2019-10-16 Richard Biener <rguenther@suse.de>
10193 PR tree-optimization/92119
10194 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
10195 against missing bswap lhs.
10197 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
10199 PR middle-end/92033
10200 * poly-int.h (constant_lower_bound_with_limit): New function.
10201 (constant_upper_bound_with_limit): Likewise.
10202 * doc/poly-int.texi: Document them.
10203 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
10204 into the worst-case INTEGER_CST bounds.
10206 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
10209 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
10210 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
10211 * ipa-predicat.h (struct expr_eval_op): New struct.
10212 (expr_eval_ops): New typedef.
10213 (struct condition): Add type and param_ops fields, remove size field.
10214 (add_condition): Replace size parameter with type parameter, add
10215 param_ops parameter.
10216 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
10217 (predicate::add_clause): Add comparisons on type and param_ops.
10218 (dump_condition): Add debug dump for param_ops.
10219 (remap_after_inlining): Adjust call arguments to add_condition.
10220 (add_condition): Replace size parameter with type parameter, add
10221 param_ops parameter. Unshare constant value used in conditions.
10222 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
10223 parameter expressions using param_ops.
10224 (decompose_param_expr): New function.
10225 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
10226 to replace call to unmodified_parm_or_parm_agg_item.
10227 (set_switch_stmt_execution_predicate): Likewise.
10228 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
10230 (inline_read_section): Read param_ops from summary stream.
10231 (ipa_fn_summary_write): Write param_ops to summary stream.
10233 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
10235 PR rtl-optimization/92107
10236 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
10237 expression written.
10239 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
10241 * config/darwin.c: Update description of fix and continue.
10243 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
10245 * config/darwin.c (darwin_binds_local_p): Update to call
10246 default_binds_local_p_3 () directly. amend comments.
10248 2019-10-15 Richard Biener <rguenther@suse.de>
10250 * lto-streamer-out.c (lto_variably_modified_type_p): New.
10251 (tree_is_indexable): Use it.
10252 * tree-streamer-out.c (pack_ts_type_common_value_fields):
10253 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
10254 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10256 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10258 * config/msp430/msp430.md (zero_extendqipsi2): New.
10259 (zero_extendqisi2): Optimize case where src register and base dst
10260 register are the same.
10261 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
10262 (zero_extendpsisi2): Optimize r->m case.
10263 Add unnamed insn patterns to catch insns combine searches for when
10264 optimizing pointer manipulation.
10266 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10268 * config/msp430/msp430.md: Group zero_extend* insns together.
10270 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10272 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
10274 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
10276 (msp430_subreg): Likewise.
10277 (msp430_split_addsi): Likewise.
10278 (msp430_print_operand_addr): Likewise.
10279 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
10280 (USE_STORE_POST_INCREMENT): Define.
10281 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
10282 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
10283 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
10284 (msp430_general_dst_operand): New.
10285 (msp430_general_dst_nonv_operand): New.
10286 (msp430_nonsubreg_operand): Remove.
10287 (msp430_nonsubreg_dst_operand): New.
10288 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
10289 of defunct msp430_nonsubreg_operand.
10290 (msp430_nonsubregnonpostinc_or_imm_operand): New.
10292 2019-10-15 Richard Biener <rguenther@suse.de>
10294 PR tree-optimization/91929
10295 * tree-ssa-pre.c (pre_expr_d::loc): New member.
10296 (get_or_alloc_expr_for_name): Initialize it.
10297 (get_or_alloc_expr_for_constant): Likewise.
10298 (phi_translate_1): Copy it.
10299 (create_expression_by_pieces): Use the original location
10300 of the expression for the inserted stmt.
10301 (compute_avail): Record the location of the stmt for the
10302 expressions created.
10304 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
10306 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
10307 before using tree_to_uhwi.
10309 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
10311 * config/s390/s390.md: Run %a0:DI splitters only after reload.
10313 2019-10-15 Richard Biener <rguenther@suse.de>
10315 PR tree-optimization/92094
10316 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
10317 do not adjust the reduction definition def type.
10318 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
10319 defines the latch argument of the PHI.
10321 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
10324 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
10325 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
10326 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
10327 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
10328 _mm_maskz_roundscale_round_sd): New intrinsics.
10329 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
10330 __builtin_ia32_rndscales?_mask_round builtins instead of
10331 __builtin_ia32_rndscales?_round.
10332 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
10333 __builtin_ia32_rndscalesd_round): Remove.
10334 (__builtin_ia32_rndscaless_mask_round,
10335 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
10336 * config/i386/sse.md
10337 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
10338 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
10339 ... this, adjust and add subst atrributes to make it maskable.
10341 2019-10-15 Richard Biener <rguenther@suse.de>
10343 PR middle-end/92046
10344 * common.opt (fallow-store-data-races): New.
10345 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
10346 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
10347 * doc/invoke.texi (fallow-store-data-races): Document.
10348 (--param allow-store-data-races): Remove docs.
10349 * opts.c (default_options_table): Enable -fallow-store-data-races
10351 (default_options_optimization): Do not enable --param
10352 allow-store-data-races at -Ofast.
10353 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
10354 instead of PARAM_ALLOW_STORE_DATA_RACES.
10355 * tree-ssa-loop-im.c (execute_sm): Likewise.
10357 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10359 PR tree-optimization/92085
10360 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
10361 instead of calling it unconditionally after
10362 delete_dead_or_redundant_assignment and fix indentation.
10364 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10366 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
10368 (*fmsub<SDF:mode>4): Likewise.
10369 *fnmsub<SDF:mode>4): Likewise.
10370 (*fnmadd<SDF:mode>4): Likewise.
10372 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
10374 * doc/tree-ssa.texi: Update renamed macro name.
10376 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
10378 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
10381 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
10383 * config/darwin.c: Use unsigned ints for the picbase label
10384 counters, initialise the vars explicitly.
10385 (update_pic_label_number_if_needed): Move a variable declaration
10386 to where it's needed.
10387 (machopic_output_function_base_name): Use a more strict checking
10388 assert, and and unsigned int for the picbase label counter.
10389 (machopic_get_function_picbase): Likewise.
10391 2019-10-14 Richard Biener <rguenther@suse.de>
10393 PR middle-end/92046
10394 * dse.c (scan_insn): Use param max_active_local_stores.
10395 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
10396 based on optimization level.
10397 * loop-invariant.c (move_loop_invariants): Adjust
10398 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
10399 * opts.c (default_options_optimization): Do not adjust
10400 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
10401 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
10403 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
10405 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
10407 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
10409 * config/arm/arm.c (arm_option_override): Don't override sched
10410 pressure algorithm.
10412 2019-10-14 Richard Biener <rguenther@suse.de>
10414 PR tree-optimization/92069
10415 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
10416 cycles do not set vect_nested_cycle on the latch definition.
10418 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
10420 * function-abi.h (expr_callee_abi): Declare.
10421 * function-abi.cc (expr_callee_abi): New function.
10423 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
10425 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
10427 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
10428 non-zero being represented as [1,MAX].
10430 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
10432 * tree-sra.c (dump_access): Add missing braces.
10434 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
10436 * config/darwin.c (machopic_indirection_name): Rework the
10437 function to emit linker-visible symbols only for indirections
10438 in the data section. Clean up the code and update comments.
10440 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
10442 * config/darwin.c (machopic_indirect_data_reference): Remove
10445 2019-10-13 Nathan Sidwell <nathan@acm.org>
10447 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
10449 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10451 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
10454 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
10456 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
10457 so non-virutal are before virutals.
10458 (output_function): Avoid body modifications.
10460 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
10462 * config/pa/pa.c (pa_output_call): Load descriptor address to register
10463 %r22. Load function address before global pointer.
10464 (pa_attr_length_indirect_call): Adjust length of inline versions of
10466 (pa_output_indirect_call): Remove fast inline version of $$dyncall
10467 before normal cases. Update inline $$dyncall sequences to preserve
10468 function descriptor address in register %r22.
10469 (TRAMPOLINE_CODE_SIZE): Adjust.
10470 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
10471 register %r22 contains trampoline address.
10472 (pa_trampoline_init): Adjust offsets.
10473 (pa_trampoline_adjust_address): Likewise.
10474 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
10476 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
10479 * config/darwin.c (machopic_indirection): New field to flag
10480 non-lazy-symbol-pointers in the data section.
10481 (machopic_indirection_name): Compute if an indirection should
10482 appear in the data section.
10483 (machopic_output_data_section_indirection): New callback split
10484 from machopic_output_indirection.
10485 (machopic_output_stub_indirection): Likewise.
10486 (machopic_output_indirection): Retain the code for non-lazy
10487 symbol pointers in their regular section.
10488 (machopic_finish): Use the new callbacks to order the indirection
10491 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
10493 * config/darwin-protos.h (machopic_finish): Delete.
10494 * config/darwin.c (machopic_finish): Make static.
10496 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
10498 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
10499 sections when building kernel extension code.
10501 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
10503 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
10506 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
10508 * config/pa/pa.c (pa_option_override): Remove trailing comma
10511 2019-10-12 Jakub Jelinek <jakub@redhat.com>
10513 PR middle-end/92063
10514 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
10515 <case VEC_COND_EXPR>: Return false with *handled = false.
10516 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
10517 recursing on the first operand.
10518 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
10519 instead of tree_could_trap_p.
10520 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
10522 2019-10-11 Jim Wilson <jimw@sifive.com>
10524 PR rtl-optimization/91860
10525 * combine.c (subst): If new_rtx is a constant, also check for
10526 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
10528 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
10530 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
10531 INTVAL when calling store_bit_field.
10533 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
10535 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
10538 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
10540 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
10541 vectorizable_live_operation.
10542 (vectorizable_live_operation): Adjust parameters.
10543 * tree-vect-stmts.c (vect_init_vector,
10544 vect_gen_widened_results_half): Fix typo in function comment.
10545 (can_vectorize_live_stmts): Adjust function comment.
10546 Adjust parameters. Adjust call to vectorizable_live_operation.
10547 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
10548 (vect_transform_stmt): Adjust function comment. Adjust call to
10549 can_vectorize_live_stmts.
10550 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
10552 2019-10-11 Richard Biener <rguenther@suse.de>
10554 PR tree-optimization/90883
10555 PR tree-optimization/91091
10556 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
10557 alias-sets both for recording VN table entries and continuing
10558 walking after translating through copies. Handle same-sized
10559 reads from SSA names by returning the plain SSA name.
10560 (eliminate_dom_walker::eliminate_stmt): Properly handle
10561 non-size precision stores in redundant store elimination.
10563 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
10565 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
10566 (ggc_collect): Dump later to not interfere with release_page dump.
10567 (ggc_trim): New function.
10568 * ggc-none.c (ggc_trim): New.
10569 * ggc.h (ggc_trim): Declare.
10571 2019-10-11 Richard Biener <rguenther@suse.de>
10573 PR tree-optimization/92066
10574 PR tree-optimization/92046
10575 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10576 Fix bogus cost model check.
10578 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
10580 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
10581 (LANG_HOOKS_DECLS): Add it.
10582 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
10583 update comment for omp_is_optional_argument.
10584 * omp-general.c (omp_is_allocatable_or_ptr): New.
10585 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
10586 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
10587 Fortran's optional arguments and allocatable/pointer scalars
10588 with use_device_addr.
10590 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
10593 * config/s390/2827.md: Add new opcodes.
10594 * config/s390/2964.md: Likewise.
10595 * config/s390/3906.md: Likewise.
10596 * config/s390/8561.md: Likewise.
10597 * config/s390/s390-builtins.def (s390_vfchesb): Use
10598 the new vec_cmpgev4sf_quiet_nocc.
10599 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
10600 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
10601 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
10602 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
10603 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
10604 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
10605 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
10606 * config/s390/s390-modes.def (CCSFPS): New mode.
10607 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
10608 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
10609 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
10610 (s390_expand_vec_compare): Use non-signaling patterns where
10612 (s390_reverse_condition): Support CCSFPS.
10613 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
10614 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
10615 (asm_fcmp_op): Likewise.
10616 (*smaxv2df3_vx): Use pattern for quiet comparison.
10617 (*sminv2df3_vx): Likewise.
10618 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
10619 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
10620 (vec_cmpgt<mode>_quiet_nocc): Likewise.
10621 (vec_cmplt<mode>_quiet_nocc): New expander.
10622 (vec_cmpge<mode>_quiet_nocc): New pattern.
10623 (vec_cmple<mode>_quiet_nocc): New expander.
10624 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
10625 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
10626 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
10627 (*vec_cmpge<mode>_signaling_nocc): Likewise.
10628 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
10629 (vec_cmpungt<mode>): New expander.
10630 (vec_cmpunge<mode>): Likewise.
10631 (vec_cmpuneq<mode>): Use quiet patterns.
10632 (vec_cmpltgt<mode>): Allow only on z14+.
10633 (vec_cmpordered<mode>): Use quiet patterns.
10634 (vec_cmpunordered<mode>): Likewise.
10635 (VEC_CMP_EXPAND): Add ungt and unge.
10637 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
10639 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
10641 * lto-streamer-out.c: Include tree-dfa.h.
10642 (output_cfg): Do not use cfun.
10643 (lto_prepare_function_for_streaming): New.
10644 (output_function): Do not push cfun; do not initialize loop optimizer.
10645 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
10646 * passes.c (ipa_write_summaries): Use it.
10647 (ipa_write_optimization_summaries): Do not modify bodies.
10648 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
10649 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
10650 * tree-ssa-dse.c (pass_dse::execute): Update use of
10651 renumber_gimple_stmt_uids.
10652 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
10654 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
10656 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10657 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
10659 2019-10-10 Joseph Myers <joseph@codesourcery.com>
10661 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
10663 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
10664 Also define DFP macros for these conditions.
10665 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
10666 DEC128_SUBNORMAL_MIN): Do not define.
10667 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
10668 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
10670 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
10671 Sandra Loosemore <sandra@codesourcery.com>
10673 PR middle-end/26241
10674 * doc/lto.texi (IPA): Reference to the IPA passes.
10675 * doc/passes.texi (Pass manager): Add node IPA passes and
10676 description for each IPA pass.
10678 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10680 * ipa-reference.c: Do not include splay-tree.h
10681 (reference_vars_to_consider): Turn to hash map.
10682 (get_static_name, ipa_init, analyze_function, propagate,
10683 stream_out_bitmap, ipa_reference_write_optimization_summary,
10684 ipa_reference_write_optimization_summary): Update.
10686 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10688 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
10690 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
10692 * config/darwin.c: Lookup Objective C metadata and force indirection
10695 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
10697 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
10699 (mem_operand_gpr): Add check for prefixed addresses.
10700 (mem_operand_ds_form): Add check for prefixed addresses.
10701 (rs6000_legitimate_offset_address_p): If we support prefixed
10702 addresses, check for a 34-bit offset instead of 16-bit.
10703 (rs6000_legitimate_address_p): Add check for prefixed addresses.
10704 Do not allow load/store with update if the address is prefixed.
10705 (rs6000_mode_dependent_address): If we support prefixed
10706 addresses, check for a 34-bit offset instead of 16-bit.
10708 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
10711 * config/s390/vector.md (vcond_comparison_operator): New
10713 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
10715 2019-10-10 David Malcolm <dmalcolm@redhat.com>
10718 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
10720 * configure.ac (--with-documentation-root-url): New option.
10721 * configure: Regenerate.
10722 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
10723 option URL, add it as a new string field of the diagnostic option.
10724 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
10725 (print_option_information): If get_option_url is non-NULL, call
10726 it, and if the result is non-NULL, potentially emit an escape
10727 sequence to markup the option text with the resulting URL.
10728 * diagnostic.h (diagnostic_context::get_option_url): New callback.
10729 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
10730 example of JSON output.
10731 * opts-diagnostic.h (get_option_url): New decl.
10732 * opts.c (get_option_url): New function.
10733 * toplev.c (general_init): Initialize the get_option_url callback.
10735 2019-10-10 David Malcolm <dmalcolm@redhat.com>
10738 * common.opt (fdiagnostics-urls=): New option.
10739 (diagnostic-url.h): Add SourceInclude.
10740 (diagnostic_url_rule): New enum.
10741 * diagnostic-color.c: Include "diagnostic-url.h".
10742 (diagnostic_urls_enabled_p): New function.
10743 * diagnostic-url.h: New file.
10744 * diagnostic.c: Include "diagnostic-url.h".
10745 (diagnostic_urls_init): New function.
10746 * diagnostic.h (diagnostic_urls_init): New decl.
10747 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10748 -fdiagnostics-urls to the list.
10749 (-fdiagnostics-urls): New option.
10750 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
10751 (driver::global_initializations): Call diagnostic_urls_init.
10752 * opts-global.c (init_options_once): Likewise.
10753 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
10754 * pretty-print.c (pretty_printer::pretty_printer): Initialize
10756 (pp_begin_url): New function.
10757 (pp_end_url): New function.
10758 (selftest::test_urls): New selftest.
10759 (selftest::pretty_print_c_tests): Call it.
10760 * pretty-print.h (pretty_printer::show_urls): New field.
10761 (pp_begin_url): New decl.
10762 (pp_end_url): New decl.
10764 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
10767 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
10769 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
10772 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
10773 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
10774 also for TARGET_FPU_SH4_300.
10775 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
10777 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
10778 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
10779 (*negsf2_i): Split into ...
10780 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
10781 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
10782 (**abssf2_i): Split into ...
10783 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
10784 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
10785 (*negdf2_i): Split into ...
10786 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
10787 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
10788 (**abssf2_i): Split into ...
10789 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
10791 2019-10-10 Richard Biener <rguenther@suse.de>
10793 PR middle-end/92046
10794 * opts.c (finish_options): Do not influence global --params
10795 from options that are adjustable per function.
10796 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10797 Apply --param adjustment based on active cost-model.
10798 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
10799 further store-sinking when vectorization or if-conversion
10802 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
10804 PR middle-end/92037
10805 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
10806 rather than ggc_alloc_cleared to alloc symbol table.
10807 * toplev.c (general_init): Likewise.
10808 * cgraph.h (symbol_table): Explicitly construct every field.
10810 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
10812 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
10813 (PF_Z15): ... this.
10814 * config.gcc: Add z15 as option for --with-arch and --with-tune
10815 configure switches.
10816 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
10817 error reporting for unsupported builtins.
10818 * config/s390/s390-opts.h (enum processor_type): Rename
10819 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
10820 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
10821 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10823 * config/s390/s390-builtins.def: Likewise.
10824 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
10825 (s390_expand_builtin): Add missing check for unsupported builtins.
10826 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
10827 (s390_rtx_costs): Likewise.
10828 (s390_get_sched_attrmask): Rename arch13 to z15.
10829 (s390_get_unit_mask): Likewise.
10830 (s390_is_fpd): Likewise.
10831 (s390_is_fxd): Likewise.
10832 * config/s390/s390.h (enum processor_flags): Likewise.
10833 * config/s390/s390.md: Likewise.
10834 * config/s390/vector.md: Likewise.
10835 * config/s390/vx-builtins.md: Likewise.
10836 * config/s390/s390.opt: Add z15 to processor_type value.
10838 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
10841 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
10843 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
10844 ("split_stack_data", "split_stack_call")
10845 ("split_stack_call_<mode>", "split_stack_cond_call")
10846 ("split_stack_cond_call_<mode>"): Remove.
10847 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
10849 * config/s390/s390.c (s390_output_split_stack_data): New function.
10850 (s390_expand_split_stack_prologue): Use the merged expander.
10852 2019-10-09 Martin Sebor <msebor@redhat.com>
10854 PR tree-optimization/90879
10855 * builtins.c (check_access): Avoid using maxbound when null.
10856 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
10857 * doc/invoke.texi (-Wstring-compare): Document new warning option.
10858 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
10860 (get_range_strlen): Overwrite initial maxbound when non-null.
10861 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
10863 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
10864 (used_only_for_zero_equality): New function.
10865 (handle_builtin_memcmp): Call it.
10866 (determine_min_objsize): Return an integer instead of tree.
10867 (get_len_or_size, strxcmp_eqz_result): New functions.
10868 (maybe_warn_pointless_strcmp): New function.
10869 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
10870 between a longer string and a smaller array.
10871 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10873 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10875 * config/darwin.c (darwin_override_options): Make the check for
10876 Objective-C ABI version more specific for 64bit code.
10878 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10880 * config/darwin.c (machopic_indirect_data_reference): Set flag to
10881 indicate that the new symbol is an indirection.
10882 (machopic_indirect_call_target): Likewise.
10883 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10884 (MACHO_SYMBOL_INDIRECTION_P): New.
10885 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10887 2019-10-08 Jason Merrill <jason@redhat.com>
10889 * doc/invoke.texi: Document -fconcepts-ts.
10891 2019-10-09 Richard Biener <rguenther@suse.de>
10893 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10894 allow stmts other than GIMPLE_ASSIGN in nested cycles.
10896 2019-10-08 Richard Biener <rguenther@suse.de>
10898 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10899 (_stmt_vec_info::force_single_cycle): Likewise.
10900 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10901 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10902 * tree-vect-loop.c (vectorizable_reduction): Set
10903 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10904 (vect_transform_reduction): Use them to remove redundant code.
10905 (vect_transform_cycle_phi): Likewise.
10907 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10909 PR tree-optimization/90836
10910 * match.pd (popcount): New pattern.
10912 2019-10-08 Martin Sebor <msebor@redhat.com>
10914 PR middle-end/92026
10915 PR middle-end/92014
10916 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10917 again once nbytes has been set. Set the access size when not yet set.
10919 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10921 * config/darwin.c (machopic_select_section): Remove dead code for
10922 old Objective-C section selection method, replace with unreachable.
10924 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10926 * config/darwin.c (machopic_indirect_data_reference): Check for
10927 required indirections before making direct access to defined
10929 (machopic_output_indirection): Place the indirected pointes for
10930 required indirections into the non-lazy symbol pointers section.
10931 (darwin_encode_section_info):
10932 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10933 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10935 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10938 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10939 instead of ALL_SSE_REG to check if function call preserves some
10940 256-bit SSE registers.
10942 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10944 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10945 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10946 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10948 2019-10-08 Richard Biener <rguenther@suse.de>
10950 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10951 (_stmt_vec_info::is_reduc_info): Add.
10952 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10953 (vectorizable_condition): Remove.
10954 (vectorizable_shift): Likewise.
10955 (vectorizable_reduction): Adjust.
10956 (info_for_reduction): New.
10957 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10958 (vect_analyze_scalar_cycles_1): ... here.
10959 (vect_analyze_loop_operations): Adjust.
10960 (needs_fold_left_reduction_p): Simplify for single caller.
10961 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10962 for nested cycles not part of double reductions.
10963 (vect_model_reduction_cost): Pass in the reduction type.
10964 (info_for_reduction): New function.
10965 (vect_create_epilog_for_reduction): Use it, access reduction
10966 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10967 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10968 (vectorize_fold_left_reduction): Remove pointless assert.
10969 (vectorizable_reduction): Analyze the full reduction when
10970 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10971 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10972 stmt code-generation to vectorizable_* in most cases. Verify
10973 code-generation only for cases handled by
10974 vect_transform_reductuon.
10975 (vect_transform_reduction): Use info_for_reduction to get at
10976 reduction meta. Simplify.
10977 (vect_transform_cycle_phi): Likewise.
10978 (vectorizable_live_operation): Likewise.
10979 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10980 at the PHI node for STMT_VINFO_REDUC_TYPE.
10981 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10982 longer necessary code.
10983 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10984 (vectorizable_condition): Likewise. Get at reduction related
10985 info via info_for_reduction.
10986 (vect_analyze_stmt): Adjust.
10987 (vect_transform_stmt): Likewise.
10988 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10989 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10991 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10993 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10994 -fno-fp-int-builtin-inexact default for C2X.
10996 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10997 Richard Biener <rguenther@suse.de>
10999 PR tree-optimization/91532
11000 * tree-if-conv.c: Include tree-ssa-dse.h.
11001 (ifcvt_local_dce): Change param from bb to loop,
11002 and call dse_classify_store.
11003 (tree_if_conversion): Pass loop instead of loop->header as arg
11004 to ifcvt_local_dce.
11005 * tree-ssa-dse.c: Include tree-ssa-dse.h.
11006 (delete_dead_or_redundant_assignment): Remove static qualifier from
11007 declaration, and add prototype in tree-ssa-dse.h.
11008 (dse_store_status): Move to tree-ssa-dse.h.
11009 (dse_classify_store): Remove static qualifier and add new tree param
11010 stop_at_vuse, and add prototype in tree-ssa-dse.h.
11011 * tree-ssa-dse.h: New header.
11013 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
11015 * config/darwin.c (machopic_output_indirection): Don't put
11016 hidden symbol indirections into the .data section, use the
11017 non-lazy symbol pointers section as normal.
11018 (darwin_encode_section_info): Record if a symbol is hidden.
11019 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
11020 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
11022 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
11024 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
11025 predicates instead of accessing bits directly.
11026 (machopic_indirect_call_target): Likewise.
11027 (machopic_output_indirection): Likewise.
11028 (darwin_encode_section_info): Improve description. Use renamed
11029 symbol flags. Use predicate macros for variables and functions.
11031 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
11032 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
11033 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
11034 (MACHO_SYMBOL_VARIABLE_P): New.
11035 (MACHO_SYMBOL_DEFINED_P):New.
11036 (MACHO_SYMBOL_STATIC_P): New.
11037 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
11038 (SYMBOL_FLAG_SUBT_DEP): New.
11039 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
11041 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11043 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
11044 (msp430_expand_epilogue): Likewise.
11045 * config/msp430/predicates.md: Likewise.
11046 * config/msp430/msp430.md: Likewise.
11047 Replace blocks of 8 spaces with tabs.
11049 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11051 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
11052 * config/msp430/msp430.c (msp430_split_addsi): New.
11053 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
11054 a block of C code for splitting addsi.
11056 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
11058 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
11059 ix86_expand_rounddf_32): Reorder functions.
11060 * config/i386/i386-protos.h: Update.
11062 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11064 * config.in: Regenerate.
11065 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
11066 Add new "Yx" constraint.
11067 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
11069 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
11071 * config/msp430/msp430.c (msp430_option_override): Allow the lower
11072 code/data region to be selected in the small memory model.
11073 (msp430_section_attr): Don't warn if the "section" and "lower"
11074 attributes are used together.
11075 (msp430_handle_generic_attribute): Likewise.
11076 (msp430_var_in_low_mem): New function.
11077 (TARGET_ENCODE_SECTION_INFO): Define.
11078 (msp430_encode_section_info): New function.
11079 (gen_prefix): Return early in the small memory model.
11080 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
11081 ".lower" prefix if -m{code,data}-region=lower have been passed.
11082 (msp430_output_aligned_decl_common): Emit common symbols when
11083 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
11085 (TARGET_ASM_FILE_END): Define.
11086 (msp430_file_end): New function.
11087 (msp430_do_not_relax_short_jumps): Allow relaxation when
11088 function will be in the lower region.
11089 (msp430_op_not_in_high_mem): New function.
11090 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
11091 the 'X' operand selector.
11092 Clarify comment for 'x' operand selector.
11093 * config/msp430/msp430.h (LINK_SPEC): Propagate
11094 -m{code,data}-region to the linker via spec function
11095 msp430_propagate_region_opt.
11096 (msp430_propagate_region_opt): New prototype.
11097 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
11098 (SYMBOL_FLAG_LOW_MEM): Define.
11099 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
11101 (zero_extendqihi2): Fix operand number used by "%X" selector.
11102 (zero_extendqisi2): Likewise.
11103 (zero_extendhisi2): Likewise.
11104 (movqi): Use "Yx" constraint in place of "%X" operand selector.
11106 (addqi3): Likewise.
11107 (addhi3): Likewise.
11108 (addsi3): Likewise.
11109 (addhi3_cy): Likewise.
11110 (addchi4_cy): Likewise.
11111 (subqi3): Likewise.
11112 (subhi3): Likewise.
11113 (subsi3): Likewise.
11114 (bic<mode>3): Likewise.
11115 (and<mode>3): Likewise.
11116 (ior<mode>3): Likewise.
11117 (xor<mode>3): Likewise.
11118 (slli_1): Add missing "%X" operand selector.
11119 (slll_1): Likewise.
11120 (slll_2): Likewise.
11121 (srai_1): Likewise.
11122 (sral_1): Likewise.
11123 (sral_2): Likewise.
11124 (srli_1): Likewise.
11125 (srll_1): Likewise.
11126 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
11128 (cbranchhi4_real): Likewise.
11129 (cbranchqi4_reversed): Likewise.
11130 (cbranchhi4_reversed): Likewise.
11131 (*bitbranch<mode>4): Likewise.
11132 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
11133 * config/msp430/msp430.opt (mcode-region=): Set default to
11134 MSP430_REGION_LOWER. Improve docstring.
11135 (mdata-region=): Likewise.
11136 (muse-lower-region-prefix): New option.
11137 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
11138 mdata-region=none multilib.
11139 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
11140 mdata-region=none multilib.
11141 MULTILIB_EXCEPTIONS: Remove.
11142 MULTILIB_REQUIRED: Define.
11143 * configure: Regenerate.
11144 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
11145 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
11146 * doc/extend.texi: Clarify comment for {upper,lower,either}
11147 function attributes.
11148 Add separate description for "lower" variable attribute.
11150 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
11153 * optabs-tree.c (vcond_icode_p): New function.
11154 (vcond_eq_icode_p): Likewise.
11155 (expand_vec_cond_expr_p): Use vcond_icode_p and
11157 * optabs.c (can_vcond_compare_p): New function.
11158 * optabs.h (can_vcond_compare_p): Likewise.
11160 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
11163 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
11164 caller passes a non-trapping condition.
11165 (is_gimple_condexpr): Allow trapping conditions.
11166 (is_gimple_condexpr_1): New helper function.
11167 (is_gimple_condexpr_for_cond): New function, acts like old
11168 is_gimple_condexpr.
11169 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
11170 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
11171 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
11172 * gimplify.c (gimplify_cond_expr): Use
11173 is_gimple_condexpr_for_cond.
11174 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
11175 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
11177 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
11178 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
11179 is_gimple_condexpr_for_cond, remove pointless tmp check
11180 (forward_propagate_into_cond): Remove pointless tmp check.
11182 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
11184 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
11185 match that of other gsi_next_* functions. Adjust the comment.
11186 (gsi_start_nonvirtual_phis): New function.
11187 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
11188 gsi_next_nonvirtual_phi accordingly. (No functional change.)
11190 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
11192 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
11193 setjmp situation here. Fix a verb's ending: "the exact variables or
11194 elements for which there are warnings depends" -> "... depend".
11196 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
11198 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
11200 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
11202 * ipa-prop.c (ipa_vr::nonzero_p): New.
11203 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
11205 * ipa-prop.h (class ipa_vr): Add nonzero_p.
11206 * tree-vrp.c (range_has_numeric_bounds_p): New.
11207 (range_int_cst_p): Use range_has_numeric_bounds_p.
11208 (get_range_op_handler): New.
11209 (supported_types_p): New.
11210 (defined_ranges_p): New.
11211 (drop_undefines_to_varying): New.
11212 (range_fold_binary_symbolics_p): New.
11213 (range_fold_unary_symbolics_p): New.
11214 (range_fold_unary_expr): Extract out into above functions.
11215 (range_fold_binary_expr): Same.
11216 (value_range_base::normalize_addresses): New.
11217 (value_range_base::normalize_symbolics): Normalize addresses.
11218 * tree-vrp.h (class value_range_base): Add normalize_addresses.
11220 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
11222 * tree-vrp.c (value_range_base::singleton_p): Use
11223 value_range_base::num_pairs instead of vrp_val_is* to check
11224 if a range has one sub-range.
11226 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
11228 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
11229 DEF is not a true earlyclobber but is tied to a specific input
11230 operand, and so is effectively earlyclobber wrt inputs that have
11232 (make_early_clobber_and_input_conflicts): Pass this case to the above.
11234 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
11236 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
11237 (pod_mode): Mark operators likewise.
11238 (scalar_int_mode): Mark non-default constructors and
11239 operators with CONSTEXPR.
11240 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
11241 (fixed_size_mode): Likewise.
11243 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
11246 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
11247 and wrap the unspec_volatile in a parallel.
11248 (*avx_vzeroupper): New define_insn. Use a match_parallel around
11249 the unspec_volatile.
11250 * config/i386/predicates.md (vzeroupper_pattern): Expect the
11251 unspec_volatile to be wrapped in a parallel.
11252 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
11253 (ix86_add_reg_usage_to_vzerouppers): New functions.
11254 (rest_of_handle_insert_vzeroupper): Use them to add register
11255 usage information to the vzeroupper instructions.
11257 2019-10-07 Richard Biener <rguenther@suse.de>
11259 PR tree-optimization/91975
11260 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
11263 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
11265 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
11266 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
11268 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
11270 * config/darwin.c (darwin_override_options): Adjust objective-c
11271 ABI version error messages to avoid punctuation and contracted
11274 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
11276 * ipa-inline.c: Fix type; compute size rather than self_size
11277 for size of caller function.
11279 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
11282 * config/darwin.c (darwin_rodata_section): Add relocation flag,
11283 choose const_data section for constants with relocations.
11284 (machopic_select_section): Pass relocation flag to
11285 darwin_rodata_section ().
11287 2019-10-05 Jakub Jelinek <jakub@redhat.com>
11289 PR tree-optimization/91734
11290 * generic-match-head.c: Include fold-const-call.h.
11291 * match.pd (sqrt(x) cmp c): Check the boundary value and
11292 in case inexact computation of c*c affects comparison of the boundary,
11293 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
11294 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
11295 for -frounding-math. For c2, try the next smaller or larger floating
11296 point constant depending on comparison code and if it has the same
11297 sqrt as c2, use it instead of c2.
11299 2019-10-04 Martin Sebor <msebor@redhat.com>
11301 PR middle-end/91977
11302 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
11303 MEM_REF right operand. Avoid failing for MEM_REF assignments from
11304 uninitialized objects.
11306 2019-10-04 Martin Sebor <msebor@redhat.com>
11308 * builtins.c (compute_objsize): Add an argument.
11309 * tree-object-size.c (addr_object_size): Same.
11310 (compute_builtin_object_size): Same.
11311 * tree-object-size.h (compute_builtin_object): Same.
11313 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
11315 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
11317 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
11319 * match.pd (sinh (x) / cosh (x)): New simplification rule.
11321 2019-10-04 Martin Jambor <mjambor@suse.cz>
11323 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
11324 fntype when switching to calling memcpy instead of memset.
11326 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11328 * hash-table.h (hash_table::empty_slow): Don't assign
11329 size_t values to int variables.
11331 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11333 * expr.c (convert_mode_scalar): Remove shadowing local var.
11334 (emit_block_move): Rename local vars.
11335 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
11336 (emit_push_insn): Rename local vars.
11337 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
11338 shadowing local vars.
11339 (store_constructor): Remove shadowing local vars. Rename local var.
11340 (store_field, expand_cond_expr_using_cmove,
11341 expand_expr_real_2): Remove shadowing local vars.
11342 (expand_expr_real_1,
11343 do_store_flag): Remove shadowing local vars. Rename local vars.
11345 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11347 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
11349 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11351 * genmatch.c (commutate): Rename local var.
11352 (lower_cond): Reuse local var.
11353 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
11354 dt_operand::gen, dt_operand::gen_gimple_expr,
11355 dt_simplify::gen): Add a param. Rename generated vars.
11356 (decision_tree::insert_operand,
11357 (capture_info::walk_match, capture_info::walk_result,
11358 capture_info::walk_c_expr): Rename local vars.
11359 (expr::gen_transform): Rename generated vars.
11360 Use snprintf. Rename local vars.
11361 (capture::gen_transform, dt_operand::get_name,
11362 dt_operand::gen_opname): Rename generated vars.
11363 (write_predicate): Adjust call to gen_kids.
11364 (parser::get_internal_capture_id): Rename generated vars.
11365 (parser::parse_expr): Rename local vars.
11366 (parser::parse_if): Remove local var.
11367 (parser::parse_pattern, add_operator): Rename local vars.
11369 2019-10-04 Joseph Myers <joseph@codesourcery.com>
11371 * builtins.def (DEF_C2X_BUILTIN): New macro.
11372 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
11373 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
11374 (strndup): Use DEF_C2X_BUILTIN.
11375 * coretypes.h (enum function_class): Add function_c2x_misc.
11377 2019-10-04 Maya Rashish <coypu@sdf.org>
11379 * ira-color.c (update_costs_from_allocno): Call
11380 ira_init_register_move_cost_if_necessary.
11382 2019-10-04 Jeff Law <law@redhat.com>
11384 * config/h8300/h8300.md (cpymemsi): Disable.
11385 (movmd, movmd_internal_<mode>, movstr, movsd):
11386 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
11387 (movmd splitter, movsd splitter): Likewise.
11389 * range-op.cc (range_tests): Avoid two tests when ints and
11390 shorts are the same size.
11392 2019-10-04 Richard Biener <rguenther@suse.de>
11395 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
11398 2019-10-04 Richard Biener <rguenther@suse.de>
11400 PR tree-optimization/91982
11401 * tree-vect-loop.c (vectorizable_live_operation): Also guard
11402 against EXTRACT_LAST_REDUCTION.
11403 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
11405 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
11407 * range-op.o (value_range_from_overflowed_bounds): Rename from
11408 adjust_overflow_bound.
11409 (value_range_with_overflow): Rename from
11410 create_range_with_overflow.
11411 (create_possibly_reversed_range): Adjusted for above renames.
11412 (operator_*::wi_fold): Same.
11413 (cross_product_operator::wi_cross_productor): Same.
11415 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11417 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
11418 -Wshadow=compatible-local): Fix description.
11419 Add an example where -Wshadow=compatible-local does not
11422 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
11424 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
11426 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
11427 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
11429 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
11431 * expr.c (emit_block_move_hints): Slightly cleaner fix to
11432 can_move_by_pieces issue.
11434 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
11437 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
11438 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
11439 is available and the user has not set one on the command line.
11441 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11444 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
11445 instead of REGNO equality check on addr.reg.
11447 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
11449 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
11450 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
11451 * doc/invoke.texi (inline-heuristics-hint-percent,
11452 inline-heuristics-hint-percent-O2): Document.
11453 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
11455 (can_inline_edge_by_limits_p): Use it.
11457 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
11459 * config/arm/arm.c (arm_print_value): Use real_to_decimal
11460 to print CONST_DOUBLEs.
11462 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
11464 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
11465 * ipa-prop.c (ipcp_free_transformation_sum): New function.
11466 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
11468 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
11470 * Makefile.in (OBJS): Add range.o and range-op.o.
11471 Remove wide-int-range.o.
11472 * function-tests.c (test_ranges): New.
11473 (function_tests_c_tests): Call test_ranges.
11474 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
11475 range_fold_unary_expr instead of extract_range_from_unary_expr.
11476 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
11477 * range-op.cc: New file.
11478 * range-op.h: New file.
11479 * range.cc: New file.
11480 * range.h: New file.
11481 * selftest.h (range_tests): New prototype.
11482 * ssa.h: Include range.h.
11483 * tree-vrp.c (value_range_base::value_range_base): New
11485 (value_range_base::singleton_p): Do not call
11486 ranges_from_anti_range until sure we will need to.
11487 (value_range_base::type): Rename gcc_assert to
11488 gcc_checking_assert.
11489 (vrp_val_is_max): New argument.
11490 (vrp_val_is_min): Same.
11491 (wide_int_range_set_zero_nonzero_bits): Move from
11493 (extract_range_into_wide_ints): Remove.
11494 (extract_range_from_multiplicative_op): Remove.
11495 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
11496 from extract_range_from_binary_expr.
11497 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
11498 from extract_range_from_binary_expr.
11499 (extract_range_from_binary_expr): Remove.
11500 (normalize_for_range_ops): New.
11501 (range_fold_binary_expr): New.
11502 (range_fold_unary_expr): New.
11503 (value_range_base::num_pairs): New.
11504 (value_range_base::lower_bound): New.
11505 (value_range_base::upper_bound): New.
11506 (value_range_base::upper_bound): New.
11507 (value_range_base::contains_p): New.
11508 (value_range_base::invert): New.
11509 (value_range_base::union_): New.
11510 (value_range_base::intersect): New.
11511 (range_compatible_p): New.
11512 (value_range_base::operator==): New.
11513 (determine_value_range_1): Call range_fold_*expr instead of
11514 extract_range_from_*expr.
11515 * tree-vrp.h (class value_range_base): Add new constructors.
11516 Add methods for union_, intersect, operator==, contains_p,
11517 num_pairs, lower_bound, upper_bound, invert.
11518 (vrp_val_is_min): Add handle_pointers argument.
11519 (vrp_val_is_max): Same.
11520 (extract_range_from_unary_expr): Remove.
11521 (extract_range_from_binary_expr): Remove.
11522 (range_fold_unary_expr): New.
11523 (range_fold_binary_expr): New.
11524 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
11525 range_fold_binary_expr instead of extract_range_from_binary_expr.
11526 (vr_values::extract_range_basic): Same.
11527 (vr_values::extract_range_from_unary_expr): Call
11528 range_fold_unary_expr instead of extract_range_from_unary_expr.
11529 * wide-int-range.cc: Remove.
11530 * wide-int-range.h: Remove.
11532 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
11534 * config/rs6000/rs6000.c (mem_operand_gpr): Use
11535 SIGNED_16BIT_OFFSET_EXTRA_P macro.
11536 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
11537 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
11540 2019-10-02 Joseph Myers <joseph@codesourcery.com>
11542 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
11543 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
11544 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
11545 * glimits.h: Likewise.
11547 2019-10-03 Jakub Jelinek <jakub@redhat.com>
11549 PR rtl-optimization/91976
11550 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
11551 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
11552 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
11554 2019-10-02 Martin Sebor <msebor@redhat.com>
11556 PR tree-optimization/80936
11557 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
11559 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
11561 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
11562 instead of reg_class_contents[ALL_REGS].
11564 2019-09-30 Jason Merrill <jason@redhat.com>
11566 Add some hash_map_safe_* functions like vec_safe_*.
11567 * hash-map.h (default_hash_map_size): New variable.
11568 (create_ggc): Use it as default argument.
11569 (hash_map_maybe_create, hash_map_safe_get)
11570 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
11572 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
11574 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
11575 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
11576 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
11577 (can_inline_edge_by_limits_p): Use it.
11578 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
11579 (want_inline_small_function_p): Use O2 bounds.
11580 (edge_badness): LIkewise.
11581 * opts.c (default_options): Add OPT_finline_functions.
11582 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
11583 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
11585 * doc/invoke.texi (-finline-functions): Update documentation.
11586 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
11587 inline-min-speedup-O2): Document.
11588 (early-inlining-insns-O2): Simplify docs.
11590 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
11592 PR rtl-optimization/87047
11593 * ifcvt.c (average_cost): New static function. Use it...
11594 (noce_process_if_block): ... here.
11596 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
11598 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
11599 * config/rs6000/rs6000-string.c (expand_block_move): Add
11600 might_overlap parm.
11601 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
11602 (cpymemsi): Add might_overlap parm to expand_block_move() call.
11604 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
11606 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
11607 (expand_builtin_memcpy): Use might_overlap parm.
11608 (expand_builtin_mempcpy_args): Use might_overlap parm.
11609 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
11610 (expand_builtin_memory_copy_args): Add might_overlap parm.
11611 * expr.c (emit_block_move_via_cpymem): Rename to
11612 emit_block_move_via_pattern, add might_overlap parm, use cpymem
11613 or movmem optab as appropriate.
11614 (emit_block_move_hints): Add might_overlap parm, do the right
11615 thing for might_overlap==true.
11616 * expr.h (emit_block_move_hints): Update prototype.
11618 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
11620 * tree-eh.h (unsplit_eh_edges): Declare.
11621 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
11622 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
11623 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
11624 (struct store_immediate_info): Add lp_nr field.
11625 (store_immediate_info::store_immediate_info): Add NR2 parameter and
11626 initialize lp_nr with it.
11627 (struct merged_store_group): Add lp_nr and only_constants fields.
11628 (merged_store_group::merged_store_group): Initialize them.
11629 (merged_store_group::can_be_merged_into): Deal with them.
11630 (pass_store_merging): Rename terminate_and_release_chain into
11631 terminate_and_process_chain.
11632 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
11633 renaming and remove useless assertions.
11634 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
11635 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
11636 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
11637 instead of always recomputing it and compare lp_nr.
11638 (imm_store_chain_info::output_merged_store): If the group is in an
11639 active EH region, register new stores if they can throw. Moreover,
11640 if the insertion has created new basic blocks, adjust the PHI nodes
11641 of the post landing pad.
11642 (imm_store_chain_info::output_merged_stores): If the original stores
11643 are in an active EH region, deregister them.
11644 (lhs_valid_for_store_merging_p): Prettify.
11645 (adjust_bit_pos): New function extracted from...
11646 (mem_valid_for_store_merging): ...here. Use it for the base address
11647 and also for the offset if it is the addition of a constant.
11648 (lp_nr_for_store): New function.
11649 (pass_store_merging::process_store): Change return type to bool.
11650 Call lp_nr_for_store to initialize the store info. Propagate the
11651 return status of various called functions to the return value.
11652 (store_valid_for_store_merging_p): New predicate.
11653 (enum basic_block_status): New enumeration.
11654 (get_status_for_store_merging): New function.
11655 (pass_store_merging::execute): If the function can throw and catch
11656 non-call exceptions, unsplit the EH edges on entry and clean up the
11657 CFG on exit if something changed. Call get_status_for_store_merging
11658 for every basic block and keep the chains open across basic blocks
11659 when possible. Terminate and process open chains at the end, if any.
11661 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
11663 * reginfo.c (globalize_reg): Fix shadowed variable in
11664 function_abis walk.
11666 2019-10-02 Martin Jambor <mjambor@suse.cz>
11668 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
11669 do not compute some stuff when set.
11670 (cgraph_node::create_edge): Likewise.
11671 (cgraph_node::create_indirect_edge): Renamed last parameter to
11672 coning_p and flipped its meaning, don't even calculate
11673 inline_failed when set.
11674 * cgraph.h (cgraph_node::create_edge): Add new parameter.
11675 (symbol_table::::create_edge): Likewise.
11676 (cgraph_node::create_indirect_edge): Rename last parameter, flip
11678 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
11679 call graph edge creating functions.
11681 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11684 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
11687 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
11689 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
11691 2019-10-02 Richard Biener <rguenther@suse.de>
11693 * tree-vectorizer.h (vect_transform_reduction): Declare.
11694 * tree-vect-stmts.c (vect_transform_stmt): Use it.
11695 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
11696 stmt transform to ...
11697 (vect_transform_reduction): ... this.
11699 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
11701 * omp-low.c (lower_omp_target): Dereference optional argument
11702 to work with the right pointer.
11704 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
11706 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
11708 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
11709 * langhooks.h (omp_is_optional_argument): New hook.
11710 * omp-general.c (omp_is_optional_argument): New.
11711 * omp-general.h (omp_is_optional_argument): New declaration.
11712 * omp-low.c (lower_omp_target): Create temporary for received value
11713 and take the address for new_var if the original variable was a
11714 DECL_BY_REFERENCE. Use size of referenced object when a
11715 pass-by-reference optional argument used as argument to firstprivate.
11717 2019-10-02 Jakub Jelinek <jakub@redhat.com>
11719 PR tree-optimization/91940
11720 * tree-vect-patterns.c: Include tree-vector-builder.h and
11721 vec-perm-indices.h.
11722 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
11723 unpromoting the argument back to uint16_t, or by converting into a
11724 rotate, or into shifts plus ior.
11726 2019-10-02 Richard Biener <rguenther@suse.de>
11728 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
11730 (vect_transform_cycle_phi): Declare.
11731 * tree-vect-stmts.c (vect_transform_stmt): Call
11732 vect_transform_cycle_phi.
11733 * tree-vect-loop.c (vectorizable_reduction): Split out
11734 PHI transformation stage to ...
11735 (vect_transform_cycle_phi): ... here.
11737 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
11739 PR middle-end/91957
11740 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
11741 eliminable registers.
11742 (make_hard_regno_live): Likewise, and don't make them live.
11744 2019-10-01 David Malcolm <dmalcolm@redhat.com>
11746 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
11747 Call pp_emit_prefix.
11748 (layout::print_source_line): Likewise.
11749 (layout::start_annotation_line): Likewise.
11750 (diagnostic_show_locus): Remove call to temporarily clear the
11752 (selftest::test_one_liner_fixit_remove): Add test coverage for the
11753 interaction of pp_set_prefix with rulers and fix-it hints.
11754 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
11755 prefix when calling diagnostic_show_locus, rather than destroying
11757 (print_parseable_fixits): Temporarily clear prefix.
11758 * pretty-print.c (pp_format): Save and restore line_length, rather
11759 than assuming it is zero.
11760 (pp_output_formatted_text): Remove assertion that line_length is
11763 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11765 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11767 (nonoverlapping_refs_since_match_p): ... this; handle also
11769 (alias_stats): Update stats.
11770 (dump_alias_stats): Likewise.
11771 (cheap_array_ref_low_bound): New function.
11772 (aliasing_matching_component_refs_p): Add partial_overlap
11774 pass it to nonoverlapping_refs_since_match_p.
11775 (aliasing_component_refs_walk): Update call of
11776 aliasing_matching_component_refs_p
11777 (nonoverlapping_array_refs_p): New function.
11778 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
11779 indirect_refs_may_alias_p): Update calls of
11780 nonoverlapping_refs_since_match_p.
11782 2019-10-01 Maya Rashish <coypu@sdf.org>
11785 * ira-color.c (allocno_copy_cost_saving): Call
11786 ira_init_register_move_cost_if_necessary.
11788 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
11790 * Makefile.in (gnat_install_lib): New variable.
11791 * configure.ac: Substitute it.
11792 * configure: Regenerate.
11794 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11797 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
11798 is matched with non-C++ type
11800 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11802 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
11805 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
11807 * doc/invoke.texi (early-inlining-insns-O2): Document.
11808 (early-inlining-insns): Update.
11809 * params.def (early-inlining-insns-O2): New bound.
11810 (early-inlining-insns): Update docs.
11811 * ipa-inline.c (want_early_inline_function_p): Use new bound.
11813 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
11816 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
11817 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
11818 a memory access insn.
11820 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
11822 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
11825 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
11828 * config/s390/s390.c (s390_expand_vec_compare): Use
11829 gen_vec_cmpordered and gen_vec_cmpunordered.
11830 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
11831 vec_unordered): Delete.
11832 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
11833 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
11834 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
11835 (vec_cmp<code>): Generic dispatcher.
11837 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
11840 * config/s390/vector.md (V_HW): Add V1TI in order to make
11841 vcond$a$b generate vcondv1tiv1tf.
11843 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11845 PR rtl-optimization/91948
11846 * ira-build.c (ira_create_allocno): Initialize
11847 ALLOCNO_CROSSED_CALLS_ABIS.
11848 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
11849 than regno to ira_need_caller_save_p.
11851 2019-10-01 Alexandre Oliva <oliva@adacore.com>
11853 * config/i386/i386-options.c
11854 (ix86_recompute_optlev_based_flags): New, moved out of...
11855 (ix86_option_override_internal): ... this. Call it.
11856 (ix86_override_options_after_change): Call it here too.
11859 * dwarf2out.c (override_type_for_decl_p): New.
11860 (gen_variable_die): Use it.
11862 2019-10-01 Richard Biener <rguenther@suse.de>
11864 * tree-vect-loop.c (vectorizable_reduction): Move variables
11865 to where they are used.
11867 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11869 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11870 (build_def_use): Use PC instead of CC0 in a comment.
11872 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11874 * rtl.def (CLOBBER_HIGH): Delete.
11875 * doc/rtl.texi (clobber_high): Remove documentation.
11876 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11877 (reg_is_clobbered_by_clobber_high): Delete.
11878 (gen_hard_reg_clobber_high): Likewise.
11879 * alias.c (record_set): Remove CLOBBER_HIGH handling.
11880 * cfgexpand.c (expand_gimple_stmt): Likewise.
11881 * combine-stack-adj.c (single_set_for_csa): Likewise.
11882 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11883 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11884 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11885 * cse.c (invalidate_reg): Remove clobber_high parameter.
11886 (invalidate): Update call accordingly.
11887 (canonicalize_insn): Remove CLOBBER_HIGH handling.
11888 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11889 (count_reg_usage, insn_live_p): Likewise.
11890 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11891 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11892 (cselib_invalidate_rtx_note_stores): Update call accordingly.
11893 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11894 (cselib_invalidate_regno, cselib_process_insn): Likewise.
11895 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11896 (mark_nonreg_stores_2): Likewise.
11897 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11898 (df_get_call_refs): Likewise.
11899 * dwarf2out.c (mem_loc_descriptor): Likewise.
11900 * emit-rtl.c (verify_rtx_sharing): Likewise.
11901 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11902 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11903 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11904 * genemit.c (gen_exp, gen_insn): Likewise.
11905 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11906 * haifa-sched.c (haifa_classify_rtx): Likewise.
11907 * ira-build.c (create_insn_allocnos): Likewise.
11908 * ira-costs.c (scan_one_insn): Likewise.
11909 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11910 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11911 * jump.c (mark_jump_label_1): Likewise.
11912 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11913 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11915 (mark_not_eliminable): Likewise.
11916 * lra-lives.c (process_bb_lives): Likewise.
11917 * lra.c (new_insn_reg): Remove clobber_high parameter.
11918 (collect_non_operand_hard_regs): Likewise. Update call to new
11919 insn_reg. Remove CLOBBER_HIGH handling.
11920 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11921 to collect_non_operand_hard_regs.
11922 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11923 Update call to new_insn_reg.
11924 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11925 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11926 (move2add_note_store): Likewise.
11927 * print-rtl.c (print_pattern): Likewise.
11928 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11929 (if_test_bypass_p): Likewise.
11930 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11931 * reginfo.c (reg_scan_mark_refs): Likewise.
11932 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11933 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11934 (forget_old_reloads_1): Likewise.
11935 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11936 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11937 (dbr_schedule): Likewise.
11938 * resource.c (update_live_status, mark_referenced_resources)
11939 (mark_set_resources): Likewise.
11940 * rtl.c (copy_rtx): Likewise.
11941 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11942 (note_pattern_stores): Likewise.
11943 (reg_is_clobbered_by_clobber_high): Delete.
11944 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11945 CLOBBER_HIGH handling.
11947 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11950 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11951 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11952 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11953 Handle ARM_PCS_TLSDESC.
11954 (aarch64_tlsdesc_abi_id): New function.
11955 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11956 rtx instead of a list of clobbers and clobber_highs.
11957 (tlsdesc_small_<mode>): Update accordingly.
11959 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11961 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11962 extra callee_abi argument.
11963 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11964 Insert a CALLEE_ABI unspec into the call pattern as the second
11965 element in the PARALLEL.
11966 (aarch64_simd_call_p): Delete.
11967 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11968 the new CALLEE_ABI element of the PARALLEL.
11969 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11970 from the function type, if given.
11971 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11972 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11973 when passed the function_arg_info end marker.
11974 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11975 final argument of gen_sibcall.
11976 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11977 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11978 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11980 (call_value): Likewise operand 3.
11981 (sibcall): Likewise operand 2. Place the unspec before rather than
11983 (sibcall_value): Likewise operand 3.
11984 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11985 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11986 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11987 constraint strings.
11988 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11990 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11992 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11993 choose_hard_reg_mode.
11994 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11996 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11998 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11999 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
12000 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
12002 2019-09-30 David Malcolm <dmalcolm@redhat.com>
12004 * diagnostic-show-locus.c (line_label::line_label): Initialize
12006 (line_label::comparator): Reverse the sort order by m_state_idx,
12007 so that when the list is walked backwards the labels appear in
12008 order of insertion into the rich_location.
12009 (line_label::m_has_vbar): New field.
12010 (layout::print_any_labels): When dealing with multiple labels at
12011 the same line and column, only print vertical bars for the one
12012 with the highest label_line.
12013 (selftest::test_one_liner_labels): Update test for multiple labels
12014 to expect the labels to be in the order of insertion into the
12015 rich_location. Add a test for many such labels, where the column
12016 numbers are out-of-order relative to the insertion order.
12018 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12020 * config/i386/i386.h (ix86_frame::expensive_p): New field.
12021 (ix86_frame::expensive_count): Likewise.
12022 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
12023 of use_fast_prologue_epilogue robust against incidental changes
12026 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
12029 * config/s390/vector.md (vec_unordered<mode>): Call
12030 gen_vec_ordered<mode>.
12032 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
12034 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
12035 New pattern for ASRD.
12036 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
12037 * internal-fn.def (IFN_DIV_POW2): New internal function.
12038 * optabs.def (sdiv_pow2_optab): New optab.
12039 * tree-vect-patterns.c (vect_recog_divmod_pattern):
12040 Modify pattern to support new operation.
12041 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
12042 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
12043 Document new target selector.
12045 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12047 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
12048 to test whether we're compiling a vector PCS function and to test
12049 whether the function needs to save a particular register.
12050 Remove the vector PCS handling of df_set_regs_ever_live.
12051 (aarch64_components_for_bb): Use crtl->abi to test whether
12052 the function needs to save a particular register.
12053 (aarch64_process_components): Use crtl->abi to test whether
12054 we're compiling a vector PCS function.
12055 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
12056 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
12058 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12060 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
12062 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
12063 whether the block calls a function that clobbers more registers
12064 than the current function is allowed to.
12065 (aarch64_use_simple_return_insn_p): Delete.
12066 * config/aarch64/aarch64.md (simple_return): Remove condition.
12068 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12070 * function-abi.h (function_abi_aggregator): New class.
12071 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
12073 * ira.c (update_equiv_regs_prescan): New function. Call
12074 set_paradoxical_subreg here rather than...
12075 (update_equiv_regs): ...here.
12076 (ira): Call update_equiv_regs_prescan.
12078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12080 * hard-reg-set.h (regs_invalidated_by_call): Only define if
12082 (call_used_or_fixed_regs): Likewise.
12083 (call_used_or_fixed_reg_p): Likewise.
12084 * reginfo.c (regs_invalidated_by_call): New macro.
12086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12088 * shrink-wrap.c: Include function-abi.h.
12089 (requires_stack_frame_p): Use crtl->abi to test whether the
12090 current function can use a register without saving it first.
12092 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12094 * sel-sched-ir.h (_def::crosses_call): Replace with...
12095 (_def::crossed_call_abis): ..this new field.
12096 (def_list_add): Take a mask of ABIs instead of a crosses_call
12098 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
12099 of _def accordingly.
12100 * sel-sched.c: Include function-abi.h.
12101 (hard_regs_data::regs_for_call_clobbered): Delete.
12102 (reg_rename::crosses_call): Replace with...
12103 (reg_rename::crossed_call_abis): ...this new field.
12104 (fur_static_params::crosses_call): Replace with...
12105 (fur_static_params::crossed_call_abis): ...this new field.
12106 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
12107 (init_hard_regs_data): Use crtl->abi to test which registers the
12108 current function would need to save before it uses them.
12109 (mark_unavailable_hard_regs): Update handling of call-clobbered
12110 registers, using call_clobbers_in_region to find out which registers
12111 might be call-clobbered (but without taking -fipa-ra into account
12112 for now). Remove separate handling of partially call-clobbered
12114 (verify_target_availability): Use crossed_call_abis instead of
12116 (get_spec_check_type_for_insn, find_used_regs): Likewise.
12117 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
12119 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12121 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
12122 function to test whether a register is fully or partly clobbered.
12124 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12126 * rtlanal.c: Include function-abi.h.
12127 (reg_set_p): Use insn_callee_abi to get the ABI of the called
12128 function and clobbers_reg_p to test whether the register
12130 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
12131 to get the ABI of the called function and full_reg_clobbers to
12132 get the set of fully call-clobbered registers. Warn about the
12133 pitfalls of using this mode.
12135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12137 * reload.c: Include function-abi.h.
12138 (find_equiv_reg): Use clobbers_reg_p to test whether either
12139 of the equivalent registers is clobbered by a call.
12140 * reload1.c: Include function-abi.h.
12141 (reg_reloaded_call_part_clobbered): Delete.
12142 (reload): Use crtl->abi to test which registers would need
12143 saving in the prologue before use.
12144 (find_reg): Likewise.
12145 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
12146 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
12147 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
12149 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12151 * regrename.h (du_head::call_clobber_mask): New field.
12152 (du_head::need_caller_save_reg): Replace with...
12153 (du_head::call_abis): ...this new field.
12154 * regrename.c: Include function-abi.h.
12155 (call_clobbered_in_chain_p): New function.
12156 (check_new_reg_p): Use crtl->abi when deciding whether a register
12157 is free for use after RA. Use call_clobbered_in_chain_p to test
12158 whether a candidate register would be clobbered by a call.
12159 (find_rename_reg): Don't add call-clobber conflicts here.
12160 (rename_chains): Check call_abis instead of need_caller_save_reg.
12161 (merge_chains): Update for changes to du_head.
12162 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
12163 target. Record the ABI identifier in call_abis and the set of
12164 fully or partially clobbered registers in call_clobber_mask.
12165 Add fully-clobbered registers to hard_conflicts here rather
12166 than in find_rename_reg.
12167 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
12168 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
12169 * config/aarch64/falkor-tag-collision-avoidance.c: Include
12171 * config/c6x/c6x.c: Likewise.
12173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12175 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
12176 mode of the register when deciding whether it is no longer
12177 available after a call.
12179 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12181 * recog.c: Include function-abi.h.
12182 (peep2_find_free_register): Use crtl->abi when deciding whether
12183 a register is free for use after RA.
12185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12187 * postreload-gcse.c: Include regs.h and function-abi.h.
12188 (record_opr_changes): Use insn_callee_abi to get the ABI of the
12189 call insn target. Conservatively assume that partially-clobbered
12190 registers are altered.
12192 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12194 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
12195 when deciding whether a register is free for use after RA.
12196 (reload_combine): Remove unnecessary use of fixed_reg_set.
12197 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
12198 call insn target. Use reg_mode when testing whether a register
12199 is no longer available.
12201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12203 * target.def (return_call_with_max_clobbers): Delete.
12204 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
12205 * doc/tm.texi: Regenerate.
12206 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
12207 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
12208 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
12209 (lra_reg::call_insn): Delete.
12210 * lra.c: Include function-abi.h.
12211 (initialize_lra_reg_info_element): Don't initialize the fields above.
12212 (lra): Use crtl->abi to test whether the current function needs to
12213 save a register in the prologue. Remove special pre-inheritance
12214 lra_create_live_ranges pass for flag_ipa_ra.
12215 * lra-assigns.c: Include function-abi.h
12216 (find_hard_regno_for_1): Use crtl->abi to test whether the current
12217 function needs to save a register in the prologue.
12218 (lra_assign): Assert that registers aren't allocated to a
12219 conflicting register, rather than checking only for overlaps
12220 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
12221 and for registers that are not live across a call.
12222 * lra-constraints.c (last_call_for_abi): New variable.
12223 (full_and_partial_call_clobbers): Likewise.
12224 (setup_next_usage_insn): Remove the register from
12225 full_and_partial_call_clobbers.
12226 (need_for_call_save_p): Use call_clobbered_in_region_p to test
12227 whether the register needs a caller save.
12228 (need_for_split_p): Use full_and_partial_reg_clobbers instead
12229 of call_used_or_fixed_regs.
12230 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
12231 full_and_partial_call_clobbers.
12232 * lra-lives.c (check_pseudos_live_through_calls): Replace
12233 last_call_used_reg_set and call_insn arguments with an abi argument.
12234 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
12235 as the set of conflicting registers.
12236 (calls_have_same_clobbers_p): Delete.
12237 (process_bb_lives): Track the ABI of the last call instead of an
12238 insn/HARD_REG_SET pair. Update calls to
12239 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
12240 the set of registers that could be clobbered by an EH edge.
12241 Include partially-clobbered as well as fully-clobbered registers.
12242 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
12243 * lra-remat.c: Include function-abi.h.
12244 (call_used_regs_arr_len, call_used_regs_arr): Delete.
12245 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
12246 registers and bitmap_view to combine them into dead_regs.
12247 (call_used_input_regno_present_p): Take a function_abi argument
12248 and use it to test whether a register is call-clobbered.
12249 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
12250 call insn target. Update tje call to call_used_input_regno_present_p.
12251 (do_remat): Likewise.
12252 (lra_remat): Remove the initialization of call_used_regs_arr_len
12253 and call_used_regs_arr.
12255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12257 * loop-iv.c: Include regs.h and function-abi.h.
12258 (simplify_using_initial_values): Use insn_callee_abi to get the
12259 ABI of the call insn target. Conservatively assume that
12260 partially-clobbered registers are altered.
12262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12264 * function-abi.h (call_clobbers_in_region): Declare.
12265 (call_clobbered_in_region_p): New function.
12266 * function-abi.cc (call_clobbers_in_region): Likewise.
12267 * ira-int.h: Include function-abi.h.
12268 (ira_allocno::crossed_calls_abis): New field.
12269 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
12270 (ira_need_caller_save_regs): New function.
12271 (ira_need_caller_save_p): Likewise.
12272 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
12273 of call_used_or_fixed_regs.
12274 (do_reload): Use crtl->abi to test whether the current function
12275 needs to save a register in the prologue. Count registers that
12276 need to be saved rather than registers that don't.
12277 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
12278 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12279 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
12280 (propagate_some_info_from_allocno): Likewise.
12281 (copy_info_to_removed_store_destinations): Likewise.
12282 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
12283 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
12284 (ira_build): Use ira_need_caller_save_regs instead of
12285 call_used_or_fixed_regs.
12286 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
12287 whether the current function would need to save a register
12289 (calculate_spill_cost): Likewise.
12290 (allocno_reload_assign): Use ira_need_caller_save_regs and
12291 ira_need_caller_save_p instead of call_used_or_fixed_regs.
12292 * ira-conflicts.c (ira_build_conflicts): Use
12293 ira_need_caller_save_regs rather than call_used_or_fixed_regs
12294 as the set of call-clobbered registers. Remove the
12295 call_used_or_fixed_regs mask from the calculation of
12296 temp_hard_reg_set and mask its use instead. Remove special
12297 handling of partially-clobbered registers.
12298 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
12299 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
12300 calculate the set of conflicting registers for calls that
12301 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
12302 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
12303 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12304 Use eh_edge_abi to calculate the set of registers that could
12305 be clobbered by an EH edge. Include partially-clobbered as
12306 well as fully-clobbered registers.
12308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12310 * haifa-sched.c: Include function-abi.h.
12311 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
12312 the function would need to save a register before using it.
12314 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12316 * gcse.c: Include function-abi.h.
12317 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
12318 the call insn target. Invalidate partially call-clobbered
12319 registers as well as fully call-clobbered ones.
12321 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12323 * function.c (aggregate_value_p): Work out which ABI the
12324 function is using before testing which registers are at least
12325 partly preserved by a call.
12327 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12329 * early-remat.c: Include regs.h and function-abi.h.
12330 (early_remat::maybe_add_candidate): Don't check for call-clobbered
12332 (early_remat::restrict_remat_for_unavail_regs): New function.
12333 (early_remat::restrict_remat_for_call): Likewise.
12334 (early_remat::process_block): Before calling emit_remat_insns
12335 for a previous call in the block, invalidate any candidates
12336 that would clobber call-preserved registers.
12337 (early_remat::emit_remat_insns_for_block): Likewise for the
12338 final call in a block. Do the same thing for live-in registers
12339 when calling emit_remat_insns at the head of a block.
12341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12343 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
12344 whether the current function needs to save at least part of a
12345 register before using it.
12346 (df_get_exit_block_use_set): Likewise for epilogue restores.
12348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12350 * df-problems.c: Include regs.h and function-abi.h.
12351 (df_rd_problem_data): Rename sparse_invalidated_by_call to
12352 sparse_invalidated_by_eh and dense_invalidated_by_call to
12353 dense_invalidated_by_eh.
12354 (df_print_bb_index): Update accordingly.
12355 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
12356 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
12357 that are clobbered by an EH edge. Clobber partially-clobbered
12358 registers as well as fully-clobbered ones.
12359 (df_md_confluence_n): Likewise.
12360 (df_rd_local_compute): Likewise. Update for changes to
12361 df_rd_problem_data.
12362 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
12363 of registers that are clobbered by an EH edge. Includde partially-
12364 clobbered registers as well as fully-clobbered ones.
12366 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12368 * cselib.c (cselib_process_insn): If we know what mode a
12369 register was set in, check whether it is clobbered in that
12370 mode by a call. Only fall back to reg_raw_mode if that fails.
12372 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12374 * cse.c: Include regs.h and function-abi.h.
12375 (invalidate_for_call): Take the call insn as an argument.
12376 Use insn_callee_abi to get the ABI of the call and invalidate
12377 partially clobbered registers as well as fully clobbered ones.
12378 (cse_insn): Update call accordingly.
12380 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12382 * combine.c: Include function-abi.h.
12383 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
12384 of the target of call insns. Invalidate partially-clobbered
12385 registers as well as fully-clobbered ones.
12387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12389 * cfgloopanal.c: Include regs.h and function-abi.h.
12390 (init_set_costs): Use default_function_abi to test whether
12391 a general register is call-clobbered.
12393 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12395 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
12396 instead of the call-clobbered sets.
12398 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12400 * caller-save.c (setup_save_areas): Remove redundant |s of
12402 (save_call_clobbered_regs): Likewise. Use the call ABI rather
12403 than call_used_or_fixed_regs to decide whether a REG_RETURNED
12406 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12408 * rtl.h (predefined_function_abi): Declare.
12409 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
12410 instead of a boolean call_save flag.
12411 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
12413 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12414 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12415 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
12416 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12417 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12418 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
12419 * reginfo.c (init_reg_modes_target): Likewise.
12420 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
12421 instead of a boolean call_save flag.
12422 * targhooks.c: Include function-abi.h.
12423 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
12424 using eh_edge_abi to choose the mode.
12426 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12428 * target.def (hard_regno_call_part_clobbered): Take an ABI
12429 identifier instead of an rtx_insn.
12430 * doc/tm.texi: Regenerate.
12431 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
12432 (hook_bool_uint_uint_mode_false): New function.
12433 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
12434 (hook_bool_uint_uint_mode_false): New function.
12435 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
12436 Take an ABI identifier instead of an rtx_insn.
12437 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
12438 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
12439 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
12440 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
12441 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
12443 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
12444 * cselib.c: Include function-abi.h.
12445 (cselib_process_insn): Update call to
12446 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12447 to get the appropriate ABI identifier.
12448 * function-abi.cc (predefined_function_abi::initialize): Update call
12449 to targetm.hard_regno_call_part_clobbered.
12450 * ira-conflicts.c (ira_build_conflicts): Likewise.
12451 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12452 * lra-constraints.c: Include function-abi.h.
12453 (need_for_call_save_p): Update call to
12454 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12455 to get the appropriate ABI identifier.
12456 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
12457 * regcprop.c (copyprop_hardreg_forward_1): Update call
12458 to targetm.hard_regno_call_part_clobbered.
12459 * reginfo.c (choose_hard_reg_mode): Likewise.
12460 * regrename.c (check_new_reg_p): Likewise.
12461 * reload.c (find_equiv_reg): Likewise.
12462 * reload1.c (emit_reload_insns): Likewise.
12463 * sched-deps.c: Include function-abi.h.
12464 (deps_analyze_insn): Update call to
12465 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
12466 to get the appropriate ABI identifier.
12467 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
12468 call to targetm.hard_regno_call_part_clobbered.
12469 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
12471 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12473 * config/i386/i386.c: Include function-abi.h.
12474 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
12475 if they preserve some 256-bit or 512-bit SSE registers.
12477 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12479 * target.def (insn_callee_abi): New hook.
12480 (remove_extra_call_preserved_regs): Delete.
12481 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
12482 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
12483 * doc/tm.texi: Regenerate.
12484 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
12485 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
12486 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
12488 (aarch64_remove_extra_call_preserved_regs): Delete.
12489 (aarch64_insn_callee_abi): New function.
12490 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
12491 (TARGET_INSN_CALLEE_ABI): New macro.
12492 * rtl.h (get_call_fndecl): Declare.
12493 (cgraph_rtl_info): Fix formatting. Tweak comment for
12494 function_used_regs. Remove function_used_regs_valid.
12495 * rtlanal.c (get_call_fndecl): Moved from final.c
12496 * function-abi.h (insn_callee_abi): Declare.
12497 (target_function_abi_info): Mention insn_callee_abi.
12498 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
12499 way to get_call_reg_set_usage did.
12500 (insn_callee_abi): New function.
12501 * regs.h (get_call_reg_set_usage): Delete.
12502 * final.c: Include function-abi.h.
12503 (collect_fn_hard_reg_usage): Add fixed and stack registers to
12504 function_used_regs before the main loop rather than afterwards.
12505 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
12506 if function_used_regs ends up not being useful.
12507 (get_call_fndecl): Move to rtlanal.c
12508 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
12509 * caller-save.c: Include function-abi.h.
12510 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
12511 instead of get_call_reg_set_usage.
12512 * cfgcleanup.c: Include function-abi.h.
12513 (old_insns_match_p): Use insn_callee_abi instead of
12514 get_call_reg_set_usage.
12515 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
12517 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
12518 function_used_regs.
12519 * df-scan.c: Include function-abi.h.
12520 (df_get_call_refs): Use insn_callee_abi instead of
12521 get_call_reg_set_usage.
12522 * ira-lives.c: Include function-abi.h.
12523 (process_bb_node_lives): Use insn_callee_abi instead of
12524 get_call_reg_set_usage.
12525 * lra-lives.c: Include function-abi.h.
12526 (process_bb_lives): Use insn_callee_abi instead of
12527 get_call_reg_set_usage.
12528 * postreload.c: Include function-abi.h.
12529 (reload_combine): Use insn_callee_abi instead of
12530 get_call_reg_set_usage.
12531 * regcprop.c: Include function-abi.h.
12532 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
12533 get_call_reg_set_usage.
12534 * resource.c: Include function-abi.h.
12535 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
12536 instead of get_call_reg_set_usage.
12537 * var-tracking.c: Include function-abi.h.
12538 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
12539 get_call_reg_set_usage.
12541 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12543 * target.def (fntype_abi): New target hook.
12544 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
12545 * doc/tm.texi: Regenerate.
12546 * target.h (predefined_function_abi): Declare.
12547 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
12549 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
12550 * config/aarch64/aarch64.c: Include function-abi.h.
12551 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
12552 (TARGET_FNTYPE_ABI): Define.
12554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12556 * Makefile.in (OBJS): Add function-abi.o.
12557 (GTFILES): Add function-abi.h.
12558 * function-abi.cc: New file.
12559 * function-abi.h: Likewise.
12560 * emit-rtl.h (rtl_data::abi): New field.
12561 * function.c: Include function-abi.h.
12562 (prepare_function_start): Initialize crtl->abi.
12563 * read-rtl-function.c: Include regs.h and function-abi.h.
12564 (read_rtl_function_body): Initialize crtl->abi.
12565 (read_rtl_function_body_from_file_range): Likewise.
12566 * reginfo.c: Include function-abi.h.
12567 (init_reg_sets_1): Initialize default_function_abi.
12568 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
12569 when making a register global.
12570 * target-globals.h (this_target_function_abi_info): Declare.
12571 (target_globals::function_abi_info): New field.
12572 (restore_target_globals): Copy it.
12573 * target-globals.c: Include function-abi.h.
12574 (default_target_globals): Initialize the function_abi_info field.
12575 (target_globals): Allocate it.
12576 (save_target_globals): Free it.
12578 2019-09-30 Nick Clifton <nickc@redhat.com>
12581 * config/frv/frv.c (frv_register_move_cost): Add break statements
12582 to avoid falling through to the wrong cases. Tidy code.
12584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
12586 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
12587 For multi-registers modes, test how big each register part is.
12589 2019-09-30 Nick Clifton <nickc@redhat.com>
12592 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
12593 (TARGET_ASM_SELECT_SECTION): Remove definition.
12594 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
12596 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
12598 * emit-rtl.c (init_raw_REG): New function.
12599 (gen_raw_REG): Use init_raw_REG.
12600 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
12602 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
12603 * rtl.h (rtx_init): New function.
12604 (rtx_alloca): New function.
12605 (init_raw_REG): New function.
12606 (alloca_raw_REG): New macro.
12608 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
12610 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
12611 (pcrel_local_address): Replace pcrel_address predicate, use the
12612 new function address_to_insn_form.
12613 (pcrel_external_address): Replace with new implementation using
12614 address_to_insn_form..
12615 (prefixed_mem_operand): Delete predicate which is now unused.
12616 (pcrel_external_mem_operand): Delete predicate which is now
12618 * config/rs6000/rs6000-protos.h (enum insn_form): New
12620 (enum non_prefixed_form): New enumeration.
12621 (address_to_insn_form): New declaration.
12622 (prefixed_load_p): New declaration.
12623 (prefixed_store_p): New declaration.
12624 (prefixed_paddi_p): New declaration.
12625 (rs6000_asm_output_opcode): New declaration.
12626 (rs6000_final_prescan_insn): Move declaration and update calling
12628 (address_is_prefixed): New helper inline function.
12629 * config/rs6000/rs6000.c(print_operand_address): Check for either
12630 PC-relative local symbols or PC-relative external symbols.
12631 (rs6000_emit_move): Support loading PC-relative addresses.
12632 (mode_supports_prefixed_address_p): Delete, no longer used.
12633 (rs6000_prefixed_address_mode_p): Delete, no longer used.
12634 (address_to_insn_form): New function to decode an address format.
12635 (reg_to_non_prefixed): New function to identify what the
12636 non-prefixed memory instruction format is for a register.
12637 (prefixed_load_p): New function to identify prefixed loads.
12638 (prefixed_store_p): New function to identify prefixed stores.
12639 (prefixed_paddi_p): New function to identify prefixed load
12641 (next_insn_prefixed_p): New static state variable.
12642 (rs6000_final_prescan_insn): New function to determine if an insn
12643 uses a prefixed instruction.
12644 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
12645 prefixed instruction.
12646 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
12647 (ASM_OUTPUT_OPCODE): New target hook.
12648 * config/rs6000/rs6000.md (prefixed): New insn attribute for
12649 prefixed instructions.
12650 (prefixed_length): New insn attribute for the size of prefixed
12652 (non_prefixed_length): New insn attribute for the size of
12653 non-prefixed instructions.
12654 (pcrel_local_addr): New insn to load up a local PC-relative
12656 (pcrel_extern_addr): New insn to load up an external PC-relative
12658 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
12659 GPR and loading a 128-bit floating point type to a GPR.
12661 2019-09-30 Richard Biener <rguenther@suse.de>
12663 * gimple.c (gimple_get_lhs): For PHIs return the result.
12664 * tree-vectorizer.h (vectorizable_live_operation): Also get the
12665 SLP instance as argument.
12666 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
12667 double-reduction PHIs with vectorizable_lc_phi.
12668 (vect_analyze_loop_operations): Adjust.
12669 (vect_create_epilog_for_reduction): Remove all code not dealing
12670 with reduction LC PHI or epilogue generation.
12671 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
12672 for live stmts of reductions.
12673 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
12674 do not handle defs that are not vect_internal_def.
12675 (can_vectorize_live_stmts): Adjust.
12676 (vect_analyze_stmt): When the vectorized stmt defined a value
12677 used on backedges adjust the backedge uses of vectorized PHIs.
12679 2019-09-30 Martin Jambor <mjambor@suse.cz>
12682 * tree-inline.c (force_value_to_type): New function.
12683 (setup_one_parameter): Use force_value_to_type to convert type.
12684 * tree-inline.c (force_value_to_type): Declare.
12685 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
12686 with register type mismatches.
12688 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
12690 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
12692 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
12693 * config/rs6000/t-freebsd64: Make use of the above define and build
12694 the 32-bit libraries with secure-plt.
12696 2019-09-30 Jakub Jelinek <jakub@redhat.com>
12699 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
12700 gen_int_mode instead of GEN_INT.
12702 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
12704 * config/darwin.c (gen_macho_low): Amend to include the mode
12706 (machopic_indirect_data_reference): Amend gen_macho_low call
12707 to include mode argument
12708 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
12709 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
12710 the macho_high expander and two define_insn entries.
12712 2019-09-29 Jakub Jelinek <jakub@redhat.com>
12715 * optc-save-gen.awk: Fix up printing string option differences.
12717 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
12719 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
12720 vec_perm cost to 1 for non-Power7 VSX architectures.
12722 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
12724 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
12725 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
12726 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
12728 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
12730 * config/darwin.c (gen_macho_high): Amend to include the mode
12732 (machopic_indirect_data_reference): Amend gen_macho_high call
12733 to include mode argument.
12734 (machopic_legitimize_pic_address): Likewise.
12735 * config/rs6000/rs6000.c (rs6000_legitimize_address):
12736 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
12737 the macho_high expander and two define_insn entries.
12739 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12742 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12744 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12747 * config/sh/sh.c (parse_validate_atomic_model_option): Use
12748 std::string::compare instead of std::string::find.
12750 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
12752 * configure: Regenerate.
12754 2019-09-27 Jakub Jelinek <jakub@redhat.com>
12756 PR middle-end/91920
12757 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
12758 variables as shared.
12760 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
12762 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
12763 replaces the expander and two define_insn entries.
12764 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
12766 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
12768 2019-09-27 David Malcolm <dmalcolm@redhat.com>
12770 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
12771 (fibonacci_heap::nodes): Likewise.
12772 (fibonacci_heap::min_key): Likewise.
12773 (fibonacci_heap::min): Likewise.
12775 2019-09-27 David Malcolm <dmalcolm@redhat.com>
12777 * cgraph.c (cgraph_node::get_fun): Make const.
12778 * cgraph.h (cgraph_node::get_fun): Likewise.
12780 2019-09-27 Jakub Jelinek <jakub@redhat.com>
12783 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
12786 2019-09-27 Richard Biener <rguenther@suse.de>
12788 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
12789 (STMT_VINFO_REDUC_FN): Likewise.
12790 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12791 STMT_VINFO_REDUC_FN.
12792 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
12793 for condition reductions.
12794 (vect_create_epilog_for_reduction): Compute all required state
12795 from the stmt to be vectorized.
12796 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
12797 invocation and remove then dead code. For single def-use chains
12798 record only a single vector stmt.
12800 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12802 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
12803 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
12804 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
12805 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
12806 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
12807 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
12808 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
12809 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
12810 (aarch64_general_builtin_rsqrt): Declare.
12811 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
12813 (aarch64_mangle_builtin_type): Rename to...
12814 (aarch64_general_mangle_builtin_type): ...this.
12815 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
12816 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
12817 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
12818 aarch64_general_add_builtin instead of add_builtin_function.
12819 (aarch64_init_builtins): Rename to...
12820 (aarch64_general_init_builtins): ...this. Use
12821 aarch64_general_add_builtin instead of add_builtin_function.
12822 (aarch64_builtin_decl): Rename to...
12823 (aarch64_general_builtin_decl): ...this and remove the unused
12825 (aarch64_expand_builtin): Rename to...
12826 (aarch64_general_expand_builtin): ...this and remove the unused
12828 (aarch64_builtin_rsqrt): Rename to...
12829 (aarch64_general_builtin_rsqrt): ...this.
12830 (aarch64_fold_builtin): Rename to...
12831 (aarch64_general_fold_builtin): ...this. Take the function subcode
12832 and return type as arguments. Remove the "ignored" argument.
12833 (aarch64_gimple_fold_builtin): Rename to...
12834 (aarch64_general_gimple_fold_builtin): ...this. Take the function
12835 subcode and gcall as arguments, and return the new function call.
12836 * config/aarch64/aarch64.c (aarch64_init_builtins)
12837 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
12838 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
12839 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
12840 instead of aarch64_builtin_rsqrt.
12841 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
12842 instead of aarch64_mangle_builtin_type.
12844 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12846 * target.def (check_builtin_call): New target hook.
12847 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
12848 * doc/tm.texi: Regenerate.
12850 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
12852 PR tree-optimization/91909
12853 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
12854 reduc_index parameter. When handling COND_REDUCTION, make sure
12855 that the reduction phi operand is in the correct arm of the
12857 (vectorizable_reduction): Pass reduc_index to the above.
12859 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
12861 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
12862 New combine pattern.
12864 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
12866 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12867 loop instruction into new basic block before the loop when basic
12868 block that precedes the loop is empty.
12870 2019-09-26 Jakub Jelinek <jakub@redhat.com>
12872 * function.c (gimplify_parameters): Use build_clobber function.
12873 * tree-ssa.c (execute_update_addresses_taken): Likewise.
12874 * tree-inline.c (expand_call_inline): Likewise.
12875 * tree-sra.c (clobber_subtree): Likewise.
12876 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12877 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12878 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12879 lower_omp_target): Likewise.
12880 * omp-expand.c (expand_omp_for_generic): Likewise.
12881 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12883 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
12885 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12886 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12887 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12888 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12889 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12890 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12891 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12892 LD_ELEMREV_V16QI): Use the PURE attribute.
12894 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
12896 * config/rs6000/darwin.md: Replace the expanders for
12897 load_macho_picbase and reload_macho_picbase with use of '@'
12898 and <mode> in their respective define_insns.
12899 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12900 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12901 Pmode to gen_load_macho_picbase.
12902 * config/rs6000/rs6000.md: Likewise.
12904 2019-09-25 Richard Biener <rguenther@suse.de>
12906 PR tree-optimization/91896
12907 * tree-vect-loop.c (vectorizable_reduction): The single
12908 def-use cycle optimization cannot apply when there's more
12909 than one pattern stmt involved.
12911 2019-09-26 Richard Biener <rguenther@suse.de>
12913 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12914 loop-closed PHIs that are vect_internal_def.
12915 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12917 (vectorizable_lc_phi): New.
12918 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12919 (vect_transform_stmt): Likewise.
12920 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12921 (vectorizable_lc_phi): Declare.
12923 2019-09-26 Richard Biener <rguenther@suse.de>
12925 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12926 vectorizable_reduction for vect_double_reduction_def.
12927 (vect_transform_loop): Likewise.
12928 (vect_create_epilog_for_reduction): Move double-reduction
12929 PHI creation and preheader argument setting of PHIs ...
12930 (vectorizable_reduction): ... here. Also process
12931 vect_double_reduction_def PHIs, creating the vectorized
12932 PHI nodes, remembering the scalar adjustment computed for
12933 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12934 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12935 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12936 Initialize STMT_VINFO_REDUC_CODE.
12937 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12938 (_stmt_vec_info::reduc_code): Likewise.
12939 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12940 (STMT_VINFO_REDUC_CODE): Likewise.
12942 2019-09-26 Matt Turner <mattst88@gmail.com>
12945 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12946 (mtune=): Add Negative(mtune=).
12947 (mcpu=): Add Negative(mcpu=).
12948 * config/arm/arm.opt: Likewise.
12950 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12952 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12953 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12955 * config/arm/arm_acle.h: Define builtins for the above.
12956 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12957 (simd32_op): Handle the above.
12958 * config/arm/unspecs.md: Define unspecs for the above.
12960 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12962 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12963 (arm_<sup>xtb16): Likewise.
12964 (arm_usada8): Likewise.
12965 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12966 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12967 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12968 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12969 __sxtb16, __uxtab16, __uxtb16): Define.
12970 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12971 * config/arm/unspecs.md: Define unspecs for the above.
12972 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12973 (USXTB16): Likewise.
12974 (simd32_op): New int_attribute.
12975 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12976 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12978 2019-09-26 Martin Jambor <mjambor@suse.cz>
12980 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12983 2019-09-26 Martin Jambor <mjambor@suse.cz>
12985 * ipa-sra.c (process_scan_results): Fix continue condition.
12987 2019-09-26 Martin Liska <mliska@suse.cz>
12989 PR tree-optimization/91885
12990 * tree-vectorizer.c (try_vectorize_loop_1): Add
12991 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12993 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12995 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12996 aarch64_plus_immediate rather than aarch64_uimm12_shift
12997 to test for valid PLUS immediates.
12999 2019-09-25 Martin Jambor <mjambor@suse.cz>
13001 * tree-sra.c (no_accesses_p): Remove.
13002 (no_accesses_representant): Likewise.
13004 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13006 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
13008 (vaba_s16): Likewise.
13009 (vaba_s32): Likewise.
13010 (vaba_u8): Likewise.
13011 (vaba_u16): Likewise.
13012 (vaba_u32): Likewise.
13013 (vabal_high_s8): Likewise.
13014 (vabal_high_s16): Likewise.
13015 (vabal_high_s32): Likewise.
13016 (vabal_high_u8): Likewise.
13017 (vabal_high_u16): Likewise.
13018 (vabal_high_u32): Likewise.
13019 (vabal_s8): Likewise.
13020 (vabal_s16): Likewise.
13021 (vabal_s32): Likewise.
13022 (vabal_u8): Likewise.
13023 (vabal_u16): Likewise.
13024 (vabal_u32): Likewise.
13025 (vabaq_s8): Likewise.
13026 (vabaq_s16): Likewise.
13027 (vabaq_s32): Likewise.
13028 (vabaq_u8): Likewise.
13029 (vabaq_u16): Likewise.
13030 (vabaq_u32): Likewise.
13031 (vabd_s8): Likewise.
13032 (vabd_s16): Likewise.
13033 (vabd_s32): Likewise.
13034 (vabd_u8): Likewise.
13035 (vabd_u16): Likewise.
13036 (vabd_u32): Likewise.
13037 (vabdl_high_s8): Likewise.
13038 (vabdl_high_s16): Likewise.
13039 (vabdl_high_s32): Likewise.
13040 (vabdl_high_u8): Likewise.
13041 (vabdl_high_u16): Likewise.
13042 (vabdl_high_u32): Likewise.
13043 (vabdl_s8): Likewise.
13044 (vabdl_s16): Likewise.
13045 (vabdl_s32): Likewise.
13046 (vabdl_u8): Likewise.
13047 (vabdl_u16): Likewise.
13048 (vabdl_u32): Likewise.
13049 (vabdq_s8): Likewise.
13050 (vabdq_s16): Likewise.
13051 (vabdq_s32): Likewise.
13052 (vabdq_u8): Likewise.
13053 (vabdq_u16): Likewise.
13054 (vabdq_u32): Likewise.
13055 (vaddlv_s8): Likewise.
13056 (vaddlv_s16): Likewise.
13057 (vaddlv_u8): Likewise.
13058 (vaddlv_u16): Likewise.
13059 (vaddlvq_s8): Likewise.
13060 (vaddlvq_s16): Likewise.
13061 (vaddlvq_s32): Likewise.
13062 (vaddlvq_u8): Likewise.
13063 (vaddlvq_u16): Likewise.
13064 (vaddlvq_u32): Likewise.
13065 (vcvtx_f32_f64): Likewise.
13066 (vcvtx_high_f32_f64): Likewise.
13067 (vcvtxd_f32_f64): Likewise.
13068 (vmla_n_f32): Likewise.
13069 (vmla_n_s16): Likewise.
13070 (vmla_n_s32): Likewise.
13071 (vmla_n_u16): Likewise.
13072 (vmla_n_u32): Likewise.
13073 (vmla_s8): Likewise.
13074 (vmla_s16): Likewise.
13075 (vmla_s32): Likewise.
13076 (vmla_u8): Likewise.
13077 (vmla_u16): Likewise.
13078 (vmla_u32): Likewise.
13079 (vmlal_high_n_s16): Likewise.
13080 (vmlal_high_n_s32): Likewise.
13081 (vmlal_high_n_u16): Likewise.
13082 (vmlal_high_n_u32): Likewise.
13083 (vmlal_high_s8): Likewise.
13084 (vmlal_high_s16): Likewise.
13085 (vmlal_high_s32): Likewise.
13086 (vmlal_high_u8): Likewise.
13087 (vmlal_high_u16): Likewise.
13088 (vmlal_high_u32): Likewise.
13089 (vmlal_n_s16): Likewise.
13090 (vmlal_n_s32): Likewise.
13091 (vmlal_n_u16): Likewise.
13092 (vmlal_n_u32): Likewise.
13093 (vmlal_s8): Likewise.
13094 (vmlal_s16): Likewise.
13095 (vmlal_s32): Likewise.
13096 (vmlal_u8): Likewise.
13097 (vmlal_u16): Likewise.
13098 (vmlal_u32): Likewise.
13099 (vmlaq_n_f32): Likewise.
13100 (vmlaq_n_s16): Likewise.
13101 (vmlaq_n_s32): Likewise.
13102 (vmlaq_n_u16): Likewise.
13103 (vmlaq_n_u32): Likewise.
13104 (vmlaq_s8): Likewise.
13105 (vmlaq_s16): Likewise.
13106 (vmlaq_s32): Likewise.
13107 (vmlaq_u8): Likewise.
13108 (vmlaq_u16): Likewise.
13109 (vmlaq_u32): Likewise.
13110 (vmls_n_f32): Likewise.
13111 (vmls_n_s16): Likewise.
13112 (vmls_n_s32): Likewise.
13113 (vmls_n_u16): Likewise.
13114 (vmls_n_u32): Likewise.
13115 (vmls_s8): Likewise.
13116 (vmls_s16): Likewise.
13117 (vmls_s32): Likewise.
13118 (vmls_u8): Likewise.
13119 (vmls_u16): Likewise.
13120 (vmls_u32): Likewise.
13121 (vmlsl_high_n_s16): Likewise.
13122 (vmlsl_high_n_s32): Likewise.
13123 (vmlsl_high_n_u16): Likewise.
13124 (vmlsl_high_n_u32): Likewise.
13125 (vmlsl_high_s8): Likewise.
13126 (vmlsl_high_s16): Likewise.
13127 (vmlsl_high_s32): Likewise.
13128 (vmlsl_high_u8): Likewise.
13129 (vmlsl_high_u16): Likewise.
13130 (vmlsl_high_u32): Likewise.
13131 (vmlsl_n_s16): Likewise.
13132 (vmlsl_n_s32): Likewise.
13133 (vmlsl_n_u16): Likewise.
13134 (vmlsl_n_u32): Likewise.
13135 (vmlsl_s8): Likewise.
13136 (vmlsl_s16): Likewise.
13137 (vmlsl_s32): Likewise.
13138 (vmlsl_u8): Likewise.
13139 (vmlsl_u16): Likewise.
13140 (vmlsl_u32): Likewise.
13141 (vmlsq_n_f32): Likewise.
13142 (vmlsq_n_s16): Likewise.
13143 (vmlsq_n_s32): Likewise.
13144 (vmlsq_n_u16): Likewise.
13145 (vmlsq_n_u32): Likewise.
13146 (vmlsq_s8): Likewise.
13147 (vmlsq_s16): Likewise.
13148 (vmlsq_s32): Likewise.
13149 (vmlsq_u8): Likewise.
13150 (vmlsq_u16): Likewise.
13151 (vmlsq_u32): Likewise.
13152 (vmovl_high_s8): Likewise.
13153 (vmovl_high_s16): Likewise.
13154 (vmovl_high_s32): Likewise.
13155 (vmovl_high_u8): Likewise.
13156 (vmovl_high_u16): Likewise.
13157 (vmovl_high_u32): Likewise.
13158 (vmovl_s8): Likewise.
13159 (vmovl_s16): Likewise.
13160 (vmovl_s32): Likewise.
13161 (vmovl_u8): Likewise.
13162 (vmovl_u16): Likewise.
13163 (vmovl_u32): Likewise.
13164 (vmovn_high_s16): Likewise.
13165 (vmovn_high_s32): Likewise.
13166 (vmovn_high_s64): Likewise.
13167 (vmovn_high_u16): Likewise.
13168 (vmovn_high_u32): Likewise.
13169 (vmovn_high_u64): Likewise.
13170 (vmovn_s16): Likewise.
13171 (vmovn_s32): Likewise.
13172 (vmovn_s64): Likewise.
13173 (vmovn_u16): Likewise.
13174 (vmovn_u32): Likewise.
13175 (vmovn_u64): Likewise.
13176 (vmull_high_n_s16): Likewise.
13177 (vmull_high_n_s32): Likewise.
13178 (vmull_high_n_u16): Likewise.
13179 (vmull_high_n_u32): Likewise.
13180 (vmull_high_p8): Likewise.
13181 (vmull_high_s8): Likewise.
13182 (vmull_high_s16): Likewise.
13183 (vmull_high_s32): Likewise.
13184 (vmull_high_u8): Likewise.
13185 (vmull_high_u16): Likewise.
13186 (vmull_high_u32): Likewise.
13187 (vmull_n_s16): Likewise.
13188 (vmull_n_s32): Likewise.
13189 (vmull_n_u16): Likewise.
13190 (vmull_n_u32): Likewise.
13191 (vmull_p8): Likewise.
13192 (vmull_s8): Likewise.
13193 (vmull_s16): Likewise.
13194 (vmull_s32): Likewise.
13195 (vmull_u8): Likewise.
13196 (vmull_u16): Likewise.
13197 (vmull_u32): Likewise.
13198 (vpadal_s8): Likewise.
13199 (vpadal_s16): Likewise.
13200 (vpadal_s32): Likewise.
13201 (vpadal_u8): Likewise.
13202 (vpadal_u16): Likewise.
13203 (vpadal_u32): Likewise.
13204 (vpadalq_s8): Likewise.
13205 (vpadalq_s16): Likewise.
13206 (vpadalq_s32): Likewise.
13207 (vpadalq_u8): Likewise.
13208 (vpadalq_u16): Likewise.
13209 (vpadalq_u32): Likewise.
13210 (vpaddl_s8): Likewise.
13211 (vpaddl_s16): Likewise.
13212 (vpaddl_s32): Likewise.
13213 (vpaddl_u8): Likewise.
13214 (vpaddl_u16): Likewise.
13215 (vpaddl_u32): Likewise.
13216 (vpaddlq_s8): Likewise.
13217 (vpaddlq_s16): Likewise.
13218 (vpaddlq_s32): Likewise.
13219 (vpaddlq_u8): Likewise.
13220 (vpaddlq_u16): Likewise.
13221 (vpaddlq_u32): Likewise.
13222 (vpaddq_s8): Likewise.
13223 (vpaddq_s16): Likewise.
13224 (vpaddq_s32): Likewise.
13225 (vpaddq_s64): Likewise.
13226 (vpaddq_u8): Likewise.
13227 (vpaddq_u16): Likewise.
13228 (vpaddq_u32): Likewise.
13229 (vpaddq_u64): Likewise.
13230 (vqdmulh_n_s16): Likewise.
13231 (vqdmulh_n_s32): Likewise.
13232 (vqdmulhq_n_s16): Likewise.
13233 (vqdmulhq_n_s32): Likewise.
13234 (vqmovn_high_s16): Likewise.
13235 (vqmovn_high_s32): Likewise.
13236 (vqmovn_high_s64): Likewise.
13237 (vqmovn_high_u16): Likewise.
13238 (vqmovn_high_u32): Likewise.
13239 (vqmovn_high_u64): Likewise.
13240 (vqmovun_high_s16): Likewise.
13241 (vqmovun_high_s32): Likewise.
13242 (vqmovun_high_s64): Likewise.
13243 (vqrdmulh_n_s16): Likewise.
13244 (vqrdmulh_n_s32): Likewise.
13245 (vqrdmulhq_n_s16): Likewise.
13246 (vqrdmulhq_n_s32): Likewise.
13247 (vrsqrte_u32): Likewise.
13248 (vrsqrteq_u32): Likewise.
13249 (vtst_p8): Likewise.
13250 (vtst_p16): Likewise.
13251 (vtst_p64): Likewise.
13252 (vtstq_p8): Likewise.
13253 (vtstq_p16): Likewise.
13254 (vtstq_p64): Likewise.
13255 (vaddlv_s32): Likewise.
13256 (vaddlv_u32): Likewise.
13257 (vqtbl1_p8): Likewise.
13258 (vqtbl1_s8): Likewise.
13259 (vqtbl1_u8): Likewise.
13260 (vqtbl1q_p8): Likewise.
13261 (vqtbl1q_s8): Likewise.
13262 (vqtbl1q_u8): Likewise.
13263 (vqtbx1_s8): Likewise.
13264 (vqtbx1_u8): Likewise.
13265 (vqtbx1_p8): Likewise.
13266 (vqtbx1q_s8): Likewise.
13267 (vqtbx1q_u8): Likewise.
13268 (vqtbx1q_p8): Likewise.
13269 (vtbl1_s8): Likewise.
13270 (vtbl1_u8): Likewise.
13271 (vtbl1_p8): Likewise.
13272 (vtbl2_s8): Likewise.
13273 (vtbl2_u8): Likewise.
13274 (vtbl2_p8): Likewise.
13275 (vtbl3_s8): Likewise.
13276 (vtbl3_u8): Likewise.
13277 (vtbl3_p8): Likewise.
13278 (vtbl4_s8): Likewise.
13279 (vtbl4_u8): Likewise.
13280 (vtbl4_p8): Likewise.
13281 (vtbx2_s8): Likewise.
13282 (vtbx2_u8): Likewise.
13283 (vtbx2_p8): Likewise.
13284 (vld1_f32): Likewise.
13285 (vld1_f64): Likewise.
13286 (vld1_p8): Likewise.
13287 (vld1_p16): Likewise.
13288 (vld1_p64): Likewise.
13289 (vld1_s8): Likewise.
13290 (vld1_s16): Likewise.
13291 (vld1_s32): Likewise.
13292 (vld1_s64): Likewise.
13293 (vld1_u8): Likewise.
13294 (vld1_u16): Likewise.
13295 (vld1_u32): Likewise.
13296 (vld1_u64): Likewise.
13297 (vld1q_f32): Likewise.
13298 (vld1q_f64): Likewise.
13299 (vld1q_p8): Likewise.
13300 (vld1q_p16): Likewise.
13301 (vld1q_p64): Likewise.
13302 (vld1q_s8): Likewise.
13303 (vld1q_s16): Likewise.
13304 (vld1q_s32): Likewise.
13305 (vld1q_s64): Likewise.
13306 (vld1q_u8): Likewise.
13307 (vld1q_u16): Likewise.
13308 (vld1q_u32): Likewise.
13309 (vld1q_u64): Likewise.
13310 (vpmax_s8): Likewise.
13311 (vpmax_s16): Likewise.
13312 (vpmax_s32): Likewise.
13313 (vpmax_u8): Likewise.
13314 (vpmax_u16): Likewise.
13315 (vpmax_u32): Likewise.
13316 (vpmaxq_s8): Likewise.
13317 (vpmaxq_s16): Likewise.
13318 (vpmaxq_s32): Likewise.
13319 (vpmaxq_u8): Likewise.
13320 (vpmaxq_u16): Likewise.
13321 (vpmaxq_u32): Likewise.
13322 (vpmax_f32): Likewise.
13323 (vpmaxq_f32): Likewise.
13324 (vpmaxq_f64): Likewise.
13325 (vpmaxqd_f64): Likewise.
13326 (vpmaxs_f32): Likewise.
13327 (vpmaxnm_f32): Likewise.
13328 (vpmaxnmq_f32): Likewise.
13329 (vpmaxnmq_f64): Likewise.
13330 (vpmaxnmqd_f64): Likewise.
13331 (vpmaxnms_f32): Likewise.
13332 (vpmin_s8): Likewise.
13333 (vpmin_s16): Likewise.
13334 (vpmin_s32): Likewise.
13335 (vpmin_u8): Likewise.
13336 (vpmin_u16): Likewise.
13337 (vpmin_u32): Likewise.
13338 (vpminq_s8): Likewise.
13339 (vpminq_s16): Likewise.
13340 (vpminq_s32): Likewise.
13341 (vpminq_u8): Likewise.
13342 (vpminq_u16): Likewise.
13343 (vpminq_u32): Likewise.
13344 (vpmin_f32): Likewise.
13345 (vpminq_f32): Likewise.
13346 (vpminq_f64): Likewise.
13347 (vpminqd_f64): Likewise.
13348 (vpmins_f32): Likewise.
13349 (vpminnm_f32): Likewise.
13350 (vpminnmq_f32): Likewise.
13351 (vpminnmq_f64): Likewise.
13352 (vpminnmqd_f64): Likewise.
13353 (vpminnms_f32): Likewise.
13354 (vmla_f32): Likewise.
13355 (vmlaq_f32): Likewise.
13356 (vmlaq_f64): Likewise.
13357 (vmls_f32): Likewise.
13358 (vmlsq_f32): Likewise.
13359 (vmlsq_f64): Likewise.
13360 (vqtbl2_s8): Likewise.
13361 (vqtbl2_u8): Likewise.
13362 (vqtbl2_p8): Likewise.
13363 (vqtbl2q_s8): Likewise.
13364 (vqtbl2q_u8): Likewise.
13365 (vqtbl2q_p8): Likewise.
13366 (vqtbl3_s8): Likewise.
13367 (vqtbl3_u8): Likewise.
13368 (vqtbl3_p8): Likewise.
13369 (vqtbl3q_s8): Likewise.
13370 (vqtbl3q_u8): Likewise.
13371 (vqtbl3q_p8): Likewise.
13372 (vqtbl4_s8): Likewise.
13373 (vqtbl4_u8): Likewise.
13374 (vqtbl4_p8): Likewise.
13375 (vqtbl4q_s8): Likewise.
13376 (vqtbl4q_u8): Likewise.
13377 (vqtbl4q_p8): Likewise.
13378 (vqtbx2_s8): Likewise.
13379 (vqtbx2_u8): Likewise.
13380 (vqtbx2_p8): Likewise.
13381 (vqtbx2q_s8): Likewise.
13382 (vqtbx2q_u8): Likewise.
13383 (vqtbx2q_p8): Likewise.
13384 (vqtbx3_s8): Likewise.
13385 (vqtbx3_u8): Likewise.
13386 (vqtbx3_p8): Likewise.
13387 (vqtbx3q_s8): Likewise.
13388 (vqtbx3q_u8): Likewise.
13389 (vqtbx3q_p8): Likewise.
13390 (vqtbx4_s8): Likewise.
13391 (vqtbx4_u8): Likewise.
13392 (vqtbx4_p8): Likewise.
13393 (vqtbx4q_s8): Likewise.
13394 (vqtbx4q_u8): Likewise.
13395 (vqtbx4q_p8): Likewise.
13396 (vrev16_p8): Likewise.
13397 (vrev16_s8): Likewise.
13398 (vrev16_u8): Likewise.
13399 (vrev16q_p8): Likewise.
13400 (vrev16q_s8): Likewise.
13401 (vrev16q_u8): Likewise.
13402 (vrev32_p8): Likewise.
13403 (vrev32_p16): Likewise.
13404 (vrev32_s8): Likewise.
13405 (vrev32_s16): Likewise.
13406 (vrev32_u8): Likewise.
13407 (vrev32_u16): Likewise.
13408 (vrev32q_p8): Likewise.
13409 (vrev32q_p16): Likewise.
13410 (vrev32q_s8): Likewise.
13411 (vrev32q_s16): Likewise.
13412 (vrev32q_u8): Likewise.
13413 (vrev32q_u16): Likewise.
13414 (vrev64_f32): Likewise.
13415 (vrev64_p8): Likewise.
13416 (vrev64_p16): Likewise.
13417 (vrev64_s8): Likewise.
13418 (vrev64_s16): Likewise.
13419 (vrev64_s32): Likewise.
13420 (vrev64_u8): Likewise.
13421 (vrev64_u16): Likewise.
13422 (vrev64_u32): Likewise.
13423 (vrev64q_f32): Likewise.
13424 (vrev64q_p8): Likewise.
13425 (vrev64q_p16): Likewise.
13426 (vrev64q_s8): Likewise.
13427 (vrev64q_s16): Likewise.
13428 (vrev64q_s32): Likewise.
13429 (vrev64q_u8): Likewise.
13430 (vrev64q_u16): Likewise.
13431 (vrev64q_u32): Likewise.
13432 (vsha1cq_u32): Likewise.
13433 (vsha1mq_u32): Likewise.
13434 (vsha1pq_u32): Likewise.
13435 (vsha1h_u32): Likewise.
13436 (vsha1su0q_u32): Likewise.
13437 (vsha1su1q_u32): Likewise.
13438 (vsha256hq_u32): Likewise.
13439 (vsha256h2q_u32): Likewise.
13440 (vsha256su0q_u32): Likewise.
13441 (vsha256su1q_u32): Likewise.
13442 (vmull_p64): Likewise.
13443 (vmull_high_p64): Likewise.
13444 (vsqrt_f32): Likewise.
13445 (vsqrtq_f32): Likewise.
13446 (vsqrt_f64): Likewise.
13447 (vsqrtq_f64): Likewise.
13448 (vst1_f32): Likewise.
13449 (vst1_f64): Likewise.
13450 (vst1_p8): Likewise.
13451 (vst1_p16): Likewise.
13452 (vst1_p64): Likewise.
13453 (vst1_s8): Likewise.
13454 (vst1_s16): Likewise.
13455 (vst1_s32): Likewise.
13456 (vst1_s64): Likewise.
13457 (vst1_u8): Likewise.
13458 (vst1_u16): Likewise.
13459 (vst1_u32): Likewise.
13460 (vst1_u64): Likewise.
13461 (vst1q_f32): Likewise.
13462 (vst1q_f64): Likewise.
13463 (vst1q_p8): Likewise.
13464 (vst1q_p16): Likewise.
13465 (vst1q_p64): Likewise.
13466 (vst1q_s8): Likewise.
13467 (vst1q_s16): Likewise.
13468 (vst1q_s32): Likewise.
13469 (vst1q_s64): Likewise.
13470 (vst1q_u8): Likewise.
13471 (vst1q_u16): Likewise.
13472 (vst1q_u32): Likewise.
13473 (vst1q_u64): Likewise.
13474 (vst1_s64_x2): Likewise.
13475 (vst1_u64_x2): Likewise.
13476 (vst1_f64_x2): Likewise.
13477 (vst1_s8_x2): Likewise.
13478 (vst1_p8_x2): Likewise.
13479 (vst1_s16_x2): Likewise.
13480 (vst1_p16_x2): Likewise.
13481 (vst1_s32_x2): Likewise.
13482 (vst1_u8_x2): Likewise.
13483 (vst1_u16_x2): Likewise.
13484 (vst1_u32_x2): Likewise.
13485 (vst1_f16_x2): Likewise.
13486 (vst1_f32_x2): Likewise.
13487 (vst1_p64_x2): Likewise.
13488 (vst1q_s8_x2): Likewise.
13489 (vst1q_p8_x2): Likewise.
13490 (vst1q_s16_x2): Likewise.
13491 (vst1q_p16_x2): Likewise.
13492 (vst1q_s32_x2): Likewise.
13493 (vst1q_s64_x2): Likewise.
13494 (vst1q_u8_x2): Likewise.
13495 (vst1q_u16_x2): Likewise.
13496 (vst1q_u32_x2): Likewise.
13497 (vst1q_u64_x2): Likewise.
13498 (vst1q_f16_x2): Likewise.
13499 (vst1q_f32_x2): Likewise.
13500 (vst1q_f64_x2): Likewise.
13501 (vst1q_p64_x2): Likewise.
13502 (vst1_s64_x3): Likewise.
13503 (vst1_u64_x3): Likewise.
13504 (vst1_f64_x3): Likewise.
13505 (vst1_s8_x3): Likewise.
13506 (vst1_p8_x3): Likewise.
13507 (vst1_s16_x3): Likewise.
13508 (vst1_p16_x3): Likewise.
13509 (vst1_s32_x3): Likewise.
13510 (vst1_u8_x3): Likewise.
13511 (vst1_u16_x3): Likewise.
13512 (vst1_u32_x3): Likewise.
13513 (vst1_f16_x3): Likewise.
13514 (vst1_f32_x3): Likewise.
13515 (vst1_p64_x3): Likewise.
13516 (vst1q_s8_x3): Likewise.
13517 (vst1q_p8_x3): Likewise.
13518 (vst1q_s16_x3): Likewise.
13519 (vst1q_p16_x3): Likewise.
13520 (vst1q_s32_x3): Likewise.
13521 (vst1q_s64_x3): Likewise.
13522 (vst1q_u8_x3): Likewise.
13523 (vst1q_u16_x3): Likewise.
13524 (vst1q_u32_x3): Likewise.
13525 (vst1q_u64_x3): Likewise.
13526 (vst1q_f16_x3): Likewise.
13527 (vst1q_f32_x3): Likewise.
13528 (vst1q_f64_x3): Likewise.
13529 (vst1q_p64_x3): Likewise.
13530 (vst2_s64): Likewise.
13531 (vst2_u64): Likewise.
13532 (vst2_f64): Likewise.
13533 (vst2_s8): Likewise.
13534 (vst2_p8): Likewise.
13535 (vst2_s16): Likewise.
13536 (vst2_p16): Likewise.
13537 (vst2_s32): Likewise.
13538 (vst2_u8): Likewise.
13539 (vst2_u16): Likewise.
13540 (vst2_u32): Likewise.
13541 (vst2_f16): Likewise.
13542 (vst2_f32): Likewise.
13543 (vst2_p64): Likewise.
13544 (vst2q_s8): Likewise.
13545 (vst2q_p8): Likewise.
13546 (vst2q_s16): Likewise.
13547 (vst2q_p16): Likewise.
13548 (vst2q_s32): Likewise.
13549 (vst2q_s64): Likewise.
13550 (vst2q_u8): Likewise.
13551 (vst2q_u16): Likewise.
13552 (vst2q_u32): Likewise.
13553 (vst2q_u64): Likewise.
13554 (vst2q_f16): Likewise.
13555 (vst2q_f32): Likewise.
13556 (vst2q_f64): Likewise.
13557 (vst2q_p64): Likewise.
13558 (vst3_s64): Likewise.
13559 (vst3_u64): Likewise.
13560 (vst3_f64): Likewise.
13561 (vst3_s8): Likewise.
13562 (vst3_p8): Likewise.
13563 (vst3_s16): Likewise.
13564 (vst3_p16): Likewise.
13565 (vst3_s32): Likewise.
13566 (vst3_u8): Likewise.
13567 (vst3_u16): Likewise.
13568 (vst3_u32): Likewise.
13569 (vst3_f16): Likewise.
13570 (vst3_f32): Likewise.
13571 (vst3_p64): Likewise.
13572 (vst3q_s8): Likewise.
13573 (vst3q_p8): Likewise.
13574 (vst3q_s16): Likewise.
13575 (vst3q_p16): Likewise.
13576 (vst3q_s32): Likewise.
13577 (vst3q_s64): Likewise.
13578 (vst3q_u8): Likewise.
13579 (vst3q_u16): Likewise.
13580 (vst3q_u32): Likewise.
13581 (vst3q_u64): Likewise.
13582 (vst3q_f16): Likewise.
13583 (vst3q_f32): Likewise.
13584 (vst3q_f64): Likewise.
13585 (vst3q_p64): Likewise.
13586 (vst4_s64): Likewise.
13587 (vst4_u64): Likewise.
13588 (vst4_f64): Likewise.
13589 (vst4_s8): Likewise.
13590 (vst4_p8): Likewise.
13591 (vst4_s16): Likewise.
13592 (vst4_p16): Likewise.
13593 (vst4_s32): Likewise.
13594 (vst4_u8): Likewise.
13595 (vst4_u16): Likewise.
13596 (vst4_u32): Likewise.
13597 (vst4_f16): Likewise.
13598 (vst4_f32): Likewise.
13599 (vst4_p64): Likewise.
13600 (vst4q_s8): Likewise.
13601 (vst4q_p8): Likewise.
13602 (vst4q_s16): Likewise.
13603 (vst4q_p16): Likewise.
13604 (vst4q_s32): Likewise.
13605 (vst4q_s64): Likewise.
13606 (vst4q_u8): Likewise.
13607 (vst4q_u16): Likewise.
13608 (vst4q_u32): Likewise.
13609 (vst4q_u64): Likewise.
13610 (vst4q_f16): Likewise.
13611 (vst4q_f32): Likewise.
13612 (vst4q_f64): Likewise.
13613 (vst4q_p64): Likewise.
13614 (vtbx4_s8): Likewise.
13615 (vtbx4_u8): Likewise.
13616 (vtbx4_p8): Likewise.
13617 (vtrn_f32): Likewise.
13618 (vtrn_p8): Likewise.
13619 (vtrn_p16): Likewise.
13620 (vtrn_s8): Likewise.
13621 (vtrn_s16): Likewise.
13622 (vtrn_s32): Likewise.
13623 (vtrn_u8): Likewise.
13624 (vtrn_u16): Likewise.
13625 (vtrn_u32): Likewise.
13626 (vtrnq_f32): Likewise.
13627 (vtrnq_p8): Likewise.
13628 (vtrnq_p16): Likewise.
13629 (vtrnq_s8): Likewise.
13630 (vtrnq_s16): Likewise.
13631 (vtrnq_s32): Likewise.
13632 (vtrnq_u8): Likewise.
13633 (vtrnq_u16): Likewise.
13634 (vtrnq_u32): Likewise.
13635 (vrsqrte_f16): Likewise.
13636 (vrsqrteq_f16): Likewise.
13637 (vsqrt_f16): Likewise.
13638 (vsqrtq_f16): Likewise.
13639 (vabd_f16): Likewise.
13640 (vabdq_f16): Likewise.
13641 (vpadd_f16): Likewise.
13642 (vpaddq_f16): Likewise.
13643 (vpmax_f16): Likewise.
13644 (vpmaxq_f16): Likewise.
13645 (vpmaxnm_f16): Likewise.
13646 (vpmaxnmq_f16): Likewise.
13647 (vpmin_f16): Likewise.
13648 (vpminq_f16): Likewise.
13649 (vpminnm_f16): Likewise.
13650 (vpminnmq_f16): Likewise.
13651 (vrsqrts_f16): Likewise.
13652 (vrsqrtsq_f16): Likewise.
13654 2019-09-25 Richard Biener <rguenther@suse.de>
13656 PR tree-optimization/91896
13657 * tree-vect-loop.c (vectorizable_reduction): The single
13658 def-use cycle optimization cannot apply when there's more
13659 than one pattern stmt involved.
13661 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
13663 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
13664 the 'P' mode iterator, replacing the (removed) SI and DI variants.
13665 (reload_macho_picbase_<mode>): Likewise.
13667 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
13669 * config/rs6000/rs6000.md: Move darwin.md include until
13670 after the definition of the mode iterators.
13672 2019-09-23 Martin Sebor <msebor@redhat.com>
13674 PR tree-optimization/91570
13675 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
13676 non-constant minlen, maxlen and maxbound.
13678 2019-09-24 Richard Biener <rguenther@suse.de>
13680 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
13682 (_stmt_vec_info::cond_reduc_code): ... this.
13683 (_stmt_vec_info::induc_cond_initial_val): Add.
13684 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
13685 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
13686 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
13687 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
13688 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
13689 the reduction code.
13690 (vect_create_epilog_for_reduction): Drop special
13691 induction condition reduction params, pass in reduction code
13693 (vectorizable_reduction): Perform condition reduction kind
13694 selection only at analysis time. Adjust passing on state.
13696 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13698 * config/aarch64/aarch64.md (mov<mode>): Don't call
13699 aarch64_split_dimode_const_store on volatile MEM.
13701 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
13703 * config/aarch64/aarch64-option-extensions.def (fp16fml):
13704 Update hwcap string for fp16fml.
13706 2019-09-24 Jakub Jelinek <jakub@redhat.com>
13708 PR middle-end/91866
13709 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
13710 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
13712 2019-09-24 Martin Liska <mliska@suse.cz>
13714 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
13715 instead of if-elseif-elseif-...
13716 * gimple-expr.c (extract_ops_from_tree): Likewise.
13717 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13718 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
13720 2019-09-24 Martin Jambor <mjambor@suse.cz>
13723 * ipa-param-manipulation.c (carry_over_param): Make a method of
13724 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
13725 in case of a context mismatch.
13726 (ipa_param_body_adjustments::common_initialization): Adjust call to
13728 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
13729 private method carry_over_param.
13731 2019-09-24 Martin Jambor <mjambor@suse.cz>
13734 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
13736 2019-09-24 Richard Biener <rguenther@suse.de>
13738 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
13741 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13743 * config/arm/t-arm (arm-builtins.o): Add dependency on
13744 arm_acle_builtins.def.
13746 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
13749 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
13750 canonical CONST_INTs. Use gen_rtvec.
13752 2019-09-23 Richard Biener <rguenther@suse.de>
13754 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
13755 avoid adjusting by + 0 or * 1.
13756 (vect_create_epilog_for_reduction): Get reduction code only
13757 when necessary. Deal with adjustment_def only when necessary.
13759 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
13761 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
13764 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13767 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
13770 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
13772 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
13773 code. Merge code blocks with common conditionals. Use declared
13774 macro instead of a magic number for PIC level.
13776 2019-09-21 Martin Sebor <msebor@redhat.com>
13778 PR middle-end/91830
13779 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
13780 Simplify computation of the offset of the referenced subobject.
13782 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
13784 * config/darwin.c (machopic_legitimize_pic_address): Check
13785 for lra not reload.
13787 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
13789 * ira-conflicts.c (can_use_same_reg_p): New function.
13790 (process_reg_shuffles): Take an insn parameter. Ignore cases
13791 in which input operand op_num could seemingly never be allocated
13792 to the same register as the destination.
13793 (add_insn_allocno_copies): Update call to process_reg_shuffles.
13795 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
13797 * simplify-rtx.c (neg_const_int): Replace with...
13798 (neg_poly_int_rtx): ...this new function.
13799 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
13800 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
13801 (simplify_plus_minus): Likewise for constant terms here.
13803 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
13805 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
13806 HOST_WIDE_PRINT_UNSIGNED.
13808 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
13810 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
13813 2019-09-20 Maya Rashish <coypu@sdf.org>
13816 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
13817 Define to speculation_safe_value_not_needed.
13819 2019-09-20 Richard Biener <rguenther@suse.de>
13820 Uros Bizjak <ubizjak@gmail.com>
13823 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
13825 (general_scalar_chain::convert_op): Force not suitable memory
13826 operands to a register.
13828 2019-09-20 Richard Biener <rguenther@suse.de>
13830 PR tree-optimization/91821
13831 * tree-vect-loop.c (check_reduction_path): Check we can compute
13833 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
13834 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
13835 operands in canonical order.
13836 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
13837 STMT_VINFO_REDUC_IDX.
13838 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
13839 (STMT_VINFO_REDUC_IDX): Likewise.
13841 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
13844 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13846 2019-09-20 Richard Biener <rguenther@suse.de>
13848 PR tree-optimization/91822
13849 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
13851 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
13852 for reduc_index in nested cycles, adjust vectorizable_condition
13854 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
13856 (vect_analyze_stmt): Adjust.
13857 (vect_transform_stmt): Likewise.
13859 2019-09-20 Richard Biener <rguenther@suse.de>
13862 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
13863 Ensure there's a sequence point between allocating the new register
13864 and passing a reference to a reg via regno_reg_rtx.
13866 2019-09-20 Martin Jambor <mjambor@suse.cz>
13868 * coretypes.h (cgraph_edge): Declare.
13869 * ipa-param-manipulation.c: Rewrite.
13870 * ipa-param-manipulation.h: Likewise.
13871 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13872 (OBJS): Added ipa-sra.o.
13873 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13874 and ref_p, added fields param_adjustments and performed_splits.
13875 (struct cgraph_clone_info): Remove ags_to_skip and
13876 combined_args_to_skip, new field param_adjustments.
13877 (cgraph_node::create_clone): Changed parameters to use
13878 ipa_param_adjustments.
13879 (cgraph_node::create_virtual_clone): Likewise.
13880 (cgraph_node::create_virtual_clone_with_body): Likewise.
13881 (tree_function_versioning): Likewise.
13882 (cgraph_build_function_type_skip_args): Removed.
13883 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13884 using ipa_param_adjustments.
13885 (clone_of_p): Likewise.
13886 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13887 (build_function_decl_skip_args): Likewise.
13888 (duplicate_thunk_for_node): Adjust parameters using
13889 ipa_param_body_adjustments, copy param_adjustments instead of
13891 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13892 (cgraph_node::create_virtual_clone): Likewise.
13893 (cgraph_node::create_version_clone_with_body): Likewise.
13894 (cgraph_materialize_clone): Likewise.
13895 (symbol_table::materialize_all_clones): Likewise.
13896 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13897 ipa_replace_map check.
13898 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13899 (initialize_node_lattices): Make aware that some parameters might have
13900 already been removed.
13901 (want_remove_some_param_p): New function.
13902 (create_specialized_node): Convert to using ipa_param_adjustments and
13903 deal with possibly pre-existing adjustments.
13904 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13905 (output_node_opt_summary): Do not stream removed fields. Stream
13906 parameter adjustments instead of argumetns to skip.
13907 (input_node_opt_summary): Likewise.
13908 (input_node_opt_summary): Likewise.
13909 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13910 * lto-streamer.h (lto_section_type): Likewise.
13911 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13913 (copy_decl_to_var): Declare.
13914 * tree-inline.c (update_clone_info): Do not remap old_tree.
13915 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13916 statements, walk all extra generated statements and remap their
13918 (redirect_all_calls): Add killed SSA names to a hash set.
13919 (remap_ssa_name): Do not remap killed SSA names.
13920 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13921 half of functionality moved to ipa_param_body_adjustments.
13922 (copy_decl_to_var): Make exported.
13923 (copy_body): Destroy killed_new_ssa_names hash set.
13924 (expand_call_inline): Remap performed splits.
13925 (update_clone_info): Likewise.
13926 (tree_function_versioning): Simplify tree_map processing. Updated to
13927 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13928 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13929 for the new interface.
13930 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13931 (simd_clone_compute_base_data_type): Likewise.
13932 (simd_clone_init_simd_arrays): Adjust for the new interface.
13933 (simd_clone_adjust_argument_types): Likewise.
13934 (struct modify_stmt_info): Likewise.
13935 (ipa_simd_modify_stmt_ops): Likewise.
13936 (ipa_simd_modify_function_body): Likewise.
13937 (simd_clone_adjust): Likewise.
13938 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13939 (type_internals_preclude_sra_p): Make public.
13940 * tree-sra.h: New file.
13941 * ipa-inline-transform.c (save_inline_function_body): Update to
13942 refelct new tree_function_versioning signature.
13943 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13944 ipa_param_adjustments to get current parameter indices.
13945 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13946 (ipcp_update_bits): Likewise.
13947 (ipcp_update_vr): Likewise.
13948 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13949 * ipa-sra.c: New file.
13950 * multiple_target.c (create_target_clone): Update to reflet new type
13951 of create_version_clone_with_body.
13952 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13953 tree_function_versioning.
13954 (modify_function): Update to reflect new type of
13955 tree_function_versioning.
13956 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13957 * passes.def: Remove old IPA-SRA and add new one.
13958 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13959 (make_pass_ipa_sra): Declare.
13960 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13962 * doc/invoke.texi (ipa-sra-max-replacements): New.
13964 2019-09-19 Martin Sebor <msebor@redhat.com>
13966 PR middle-end/91631
13967 * builtins.c (component_size): Correct trailing array computation,
13968 rename to component_ref_size and move...
13969 (compute_objsize): Adjust.
13970 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13971 (builtin_access::strict): Do not consider memmove.
13972 (builtin_access::write_off): New function.
13973 (builtin_memref::builtin_memref): Initialize refsize.
13974 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13976 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13978 (builtin_access::builtin_access): Initialize dstoff to destination
13979 refeence offset here instead of in maybe_diag_overlap. Adjust
13980 referencess even to unrelated objects. Adjust sizrange of bounded
13981 string functions to reflect bound. For strcat, adjust destination
13982 sizrange by that of source.
13983 (builtin_access::strcat_overlap): Adjust offsets and sizes
13984 to reflect the increase in destination sizrange above.
13985 (builtin_access::overlap): Do not set dstoff here but instead
13986 in builtin_access::builtin_access.
13987 (check_bounds_or_overlap): Use builtin_access::write_off.
13988 (maybe_diag_access_bounds): Add argument. Add informational notes.
13989 (dump_builtin_memref, dump_builtin_access): New functions.
13990 * tree.c (component_ref_size): ...to here.
13991 * tree.h (component_ref_size): Declare.
13992 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13993 nul in the size of the source string.
13995 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13998 * doc/cpp.texi: Document support for extended characters in
14000 * doc/cppopts.texi: Likewise.
14002 2019-09-19 Richard Biener <rguenther@suse.de>
14004 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
14005 (check_reduction_path): New overload having the path as result.
14006 (vect_is_simple_reduction): From the detected reduction
14007 path build a SLP reduction chain if possible.
14009 2019-09-19 Richard Biener <rguenther@suse.de>
14012 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
14013 Force operand to a register if it isn't nonimmediate_operand.
14015 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
14017 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
14018 * config/arm/iterators.md (optab): Add and, ior, xor entries.
14019 (logical_op): Remove code attribute.
14020 (logical_OP): Likewise.
14022 2019-09-19 Martin Liska <mliska@suse.cz>
14024 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
14025 Use proper casting.
14027 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
14029 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
14032 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
14033 for NE comparison of TImode values.
14034 (aarch64_emit_load_exclusive): Add support for TImode.
14035 (aarch64_emit_store_exclusive): Likewise.
14036 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
14037 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
14038 Change iterator from ALLI to ALLI_TI.
14039 (@atomic_compare_and_swap<JUST_TI>): New.
14040 (@atomic_compare_and_swap<JUST_TI>_lse): New.
14041 (aarch64_load_exclusive_pair): New.
14042 (aarch64_store_exclusive_pair): New.
14043 * config/aarch64/iterators.md (JUST_TI): New.
14045 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
14046 strong_zero_p for aarch64_track_speculation; unify some code paths;
14047 use aarch64_gen_compare_reg instead of open-coding.
14049 * config/aarch64/aarch64.opt (-moutline-atomics): New.
14050 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
14051 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
14052 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
14053 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
14054 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
14055 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
14056 (atomic_<atomic_op><ALLI>): Likewise.
14057 (atomic_fetch_<atomic_op><ALLI>): Likewise.
14058 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
14059 * doc/invoke.texi: Document -moutline-atomics.
14061 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
14063 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
14064 trivial predicate for condition branch.
14065 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
14067 (compute_bb_predicates): Update predicate based on post-dominating
14069 (analyze_function_body): Calculate post-dominating information.
14071 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
14073 * tree-vectorizer.h (vectorizable_condition): Take an int
14074 reduction index instead of a boolean flag.
14075 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14076 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
14077 reductions if the reduction accumulator is the "then" rather
14078 than the "else" value.
14079 (vect_analyze_stmt): Update call accordingly.
14080 (vect_transform_stmt): Likewise.
14081 * tree-vect-loop.c (vectorizable_reduction): Likewise,
14082 asserting that the index is > 0.
14084 2019-09-19 Martin Liska <mliska@suse.cz>
14086 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
14087 (sort_congruence_classes_by_decl_uid): Likewise.
14088 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
14090 (sem_item_optimizer::merge_classes): Likewise.
14092 2019-09-19 Richard Biener <rguenther@suse.de>
14094 PR tree-optimization/91812
14095 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
14098 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
14100 * defaults.h (TARGET_UNIT): New macro.
14101 (target_unit): New type.
14102 * rtl.h (native_encode_rtx, native_decode_rtx)
14103 (native_decode_vector_rtx, subreg_size_lsb): Declare.
14104 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
14105 * rtlanal.c (subreg_lsb_1): Delete.
14106 (subreg_size_lsb): New function.
14107 * simplify-rtx.c: Include rtx-vector-builder.h
14108 (simplify_immed_subreg): Delete.
14109 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
14110 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
14112 (simplify_subreg): Use them.
14113 (test_vector_subregs_modes, test_vector_subregs_repeating)
14114 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
14115 (test_vector_subregs): New functions.
14116 (test_vector_ops): Call test_vector_subregs for integer vector
14117 modes with at least 2 elements.
14119 2019-09-19 Richard Biener <rguenther@suse.de>
14121 * tree-parloops.c (parloops_is_slp_reduction): Do not set
14122 LOOP_VINFO_OPERANDS_SWAPPED.
14123 (parloops_is_simple_reduction): Likewise.
14124 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
14125 initialize operands_swapped.
14126 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
14127 (vect_is_slp_reduction): Do not swap operands.
14128 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
14129 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
14131 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
14134 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
14135 Add avx_partial_xmm_update.
14137 2019-09-18 Jim Wilson <jimw@sifive.com>
14140 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
14141 (riscv_move_integer): Likewise.
14142 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
14143 riscv_move_integer arg.
14144 (riscv_legitimize_move): Likewise.
14145 (riscv_force_temporary): New parameter in_splitter. Don't call
14147 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
14149 (riscv_add_offset): Likewise.
14150 (riscv_split_symbol): New parameter in_splitter. Pass to
14151 riscv_force_temporary.
14152 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
14154 (riscv_move_integer): New parameter in_splitter. New local
14155 can_create_psuedo. Don't call riscv_split_integer or force_reg when
14157 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
14158 riscv_split_symbol, and riscv_force_temporary args.
14159 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
14160 riscv_move_integer arg.
14161 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
14163 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
14166 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
14167 hard register store cost to 6.
14169 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
14172 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
14173 pseudo register store cost from 3 to 6 to make it the same as
14176 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
14179 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
14180 (one_cmpldi2): Likewise.
14181 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
14182 of the constant parts is simple.
14183 * config/arm/iterators.md (LOGICAL): Add new code iterator.
14184 (logical_op): Add new code attribute.
14185 (logical_OP): Likewise.
14186 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
14187 (arm_iordi_operand): Add predicate.
14188 (arm_xordi_operand): Add predicate.
14190 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
14192 * config/arm/arm.md (maddsidi4): Remove expander.
14193 (mulsidi3adddi): Remove pattern.
14194 (mulsidi3adddi_v6): Likewise.
14195 (mulsidi3_nov6): Likewise.
14196 (mulsidi3_v6): Likewise.
14197 (umulsidi3): Remove expander.
14198 (umulsidi3_nov6): Remove pattern.
14199 (umulsidi3_v6): Likewise.
14200 (umulsidi3adddi): Likewise.
14201 (umulsidi3adddi_v6): Likewise.
14202 (<Us>mulsidi3): Add combined expander.
14203 (<Us>maddsidi4): Likewise.
14204 (<US>mull): Add combined umull and smull pattern.
14205 (<US>mlal): Likewise.
14206 * config/arm/iterators.md (Us): Add new iterator.
14208 2019-09-18 Richard Biener <rguenther@suse.de>
14210 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
14212 (vectorize_fold_left_reduction): Remove assert.
14213 (vectorizable_reduction): Also expect COND_EXPR non-reduction
14214 operand in position 2. Remove assert.
14216 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
14218 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
14219 (smulsi3_highpart_nov6): Remove pattern.
14220 (smulsi3_highpart_v6): Likewise.
14221 (umulsi3_highpart): Likewise.
14222 (umulsi3_highpart_nov6): Likewise.
14223 (umulsi3_highpart_v6): Likewise.
14224 (<US>mull_high): Add new combined multiply pattern.
14226 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
14228 * config/arm/arm.md (arm_mulsi3): Remove pattern.
14229 (arm_mulsi3_v6): Likewise.
14230 (mulsi3addsi_v6): Likewise.
14231 (mulsi3subsi): Likewise.
14232 (mul): Add new multiply pattern.
14236 2019-09-18 Richard Biener <rguenther@suse.de>
14238 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
14239 (parloops_valid_reduction_input_p): Copy from
14240 valid_reduction_input_p.
14241 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
14242 (parloops_needs_fold_left_reduction_p): Copy from
14243 needs_fold_left_reduction_p.
14244 (parloops_is_simple_reduction): Copy from
14245 vect_is_simple_reduction.
14246 (parloops_force_simple_reduction): Copy from
14247 vect_force_simple_reduction.
14248 (gather_scalar_reductions): Adjust.
14249 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
14250 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
14252 2019-09-18 Richard Biener <rguenther@suse.de>
14254 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
14255 * tree-vect-loop.c (get_initial_def_for_reduction): Make
14257 (vect_create_epilog_for_reduction): Remove dead code.
14259 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
14261 * varasm.c (assemble_real): Generate canonical const_ints.
14263 2019-09-18 Richard Biener <rguenther@suse.de>
14266 * lto-streamer-in.c (input_eh_regions): Move EH init to
14267 lto_materialize_function.
14268 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
14271 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
14273 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
14276 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
14278 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
14279 of checking specifically for INTEGER_CST.
14281 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
14283 * stor-layout.c (compute_record_mode): Operate on poly_uint64
14284 sizes instead of uhwi sizes.
14286 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
14288 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
14289 (add_const_value_attribute): Handle CONST_POLY_INT.
14291 2019-09-18 Martin Liska <mliska@suse.cz>
14293 * dbgcnt.def (store_merging): New counter.
14294 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
14295 Use it in store merging.
14297 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
14299 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
14301 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
14302 * config/arm/arm.c (arm_sched_variable_issue): New function.
14303 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
14305 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
14307 * config/arm/types.md (no_reservation): New reservation.
14308 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
14310 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
14311 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
14312 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
14313 * config/arm/arm1020e.md (1020alu_op): Likewise.
14314 * config/arm/arm1026ejs.md (alu_op): Likewise.
14315 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14316 * config/arm/arm926ejs.md (9_alu_op): Likewise.
14317 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14318 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
14319 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14320 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14321 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
14322 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
14323 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14324 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14325 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14326 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
14327 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
14328 * config/arm/fa526.md (526_alu_op): Likewise.
14329 * config/arm/fa606te.md (606te_alu_op): Likewise.
14330 * config/arm/fa626te.md (626te_alu_op): Likewise.
14331 * config/arm/fa726te.md (726te_alu_op): Likewise.
14332 * config/arm/xgene1.md (xgene1_nop): Likewise.
14334 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
14336 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
14337 "no_insn" to "branch".
14339 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
14341 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
14343 2019-09-17 Richard Biener <rguenther@suse.de>
14346 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
14347 was missing generate locations only once.
14349 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
14352 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
14354 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
14355 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
14356 for switch default case using range analysis information.
14358 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
14361 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
14362 mode attributed is supported by FDPIC.
14364 2019-09-17 Richard Biener <rguenther@suse.de>
14366 PR tree-optimization/91790
14367 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
14368 use the correct DR for setting up realignment.
14370 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
14373 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
14374 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
14375 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
14376 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
14378 2019-09-16 Jason Merrill <jason@redhat.com>
14380 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
14382 2019-09-16 Martin Liska <mliska@suse.cz>
14384 * gimple-fold.c (or_comparisons_1): Remove rules moved
14386 * match.pd: ... here.
14388 2019-09-16 Martin Liska <mliska@suse.cz>
14390 * gimple-fold.c (or_comparisons_1): Remove rules
14392 * match.pd: ... here.
14394 2019-09-16 Martin Liska <mliska@suse.cz>
14396 * genmatch.c (dt_node::append_simplify): Do not print
14397 warning when we have duplicate patterns belonging
14398 to a same simplify rule.
14399 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
14400 (maybe_fold_comparisons_from_match_pd): Handle
14401 tcc_comparison as a results.
14402 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
14404 2019-09-16 Li Jia He <helijia@linux.ibm.com>
14405 Qi Feng <ffengqi@linux.ibm.com>
14407 PR middle-end/88784
14408 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
14409 (x > y && x == XXX_MIN): Optimize into 'false'.
14410 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
14411 (x < y && x != XXX_MAX): Optimize into 'x < y'.
14412 (x < y && x == XXX_MAX): Optimize into 'false'.
14413 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
14414 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
14415 (x <= y || x != XXX_MIN): Optimize into 'true'.
14416 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
14417 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
14418 (x >= y || x != XXX_MAX): Optimize into 'true'.
14419 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
14421 2019-09-16 Li Jia He <helijia@linux.ibm.com>
14422 Martin Liska <mliska@suse.cz>
14424 * gimple-fold.c (and_comparisons_1): Add type as first
14426 (and_var_with_comparison): Likewise.
14427 (and_var_with_comparison_1): Likewise.
14428 (or_comparisons_1): Likewise.
14429 (or_var_with_comparison): Likewise.
14430 (or_var_with_comparison_1): Likewise.
14431 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
14432 (maybe_fold_or_comparisons): Likewise.
14433 (maybe_fold_comparisons_from_match_pd): New.
14434 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
14435 (maybe_fold_or_comparisons): Likewise.
14436 * gimple.c (gimple_size): Make it public and add num_ops argument.
14437 (gimple_init): New function.
14438 (gimple_alloc): Call gimple_init.
14439 * gimple.h (gimple_size): New.
14440 (gimple_init): Likewise.
14441 * tree-if-conv.c (fold_or_predicates): Pass type.
14442 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14443 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
14444 (optimize_vec_cond_expr): Likewise.
14445 (ovce_extract_ops): Return type of conditional expression.
14446 * tree-ssanames.c (init_ssa_name_imm_use): New.
14447 (make_ssa_name_fn): Use init_ssa_name_imm_use.
14448 * tree-ssanames.h (init_ssa_name_imm_use): New.
14450 2019-09-16 Richard Biener <rguenther@suse.de>
14452 PR tree-optimization/91756
14453 PR tree-optimization/87132
14454 * tree-ssa-alias.h (enum translate_flags): New.
14455 (get_continuation_for_phi): Use it instead of simple bool flag.
14456 (walk_non_aliased_vuses): Likewise.
14457 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14458 (get_continuation_for_phi): When looking across backedges only
14459 disallow valueization.
14460 (walk_non_aliased_vuses): Adjust.
14461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
14464 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
14466 PR middle-end/80791
14467 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
14468 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
14469 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
14470 * target.def (have_count_reg_decr_p): New hook.
14471 (doloop_cost_for_generic): Likewise.
14472 (doloop_cost_for_address): Likewise.
14473 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
14474 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
14475 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
14476 * doc/tm.texi: Regenerate.
14477 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
14479 (record_group): Init doloop_p.
14480 (add_candidate_1): Add optional argument doloop, change the handlings
14482 (add_candidate): Likewise.
14483 (generic_predict_doloop_p): Update attribute.
14484 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
14485 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
14486 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
14488 (get_computation_cost): Update for doloop IV cand extra cost.
14489 (determine_group_iv_cost_cond): Update for doloop IV cand.
14490 (determine_iv_cost): Likewise.
14491 (ivopts_estimate_reg_pressure): Likewise.
14492 (may_eliminate_iv): Update handlings for doloop IV cand.
14493 (add_iv_candidate_for_doloop): New function.
14494 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
14495 (iv_ca_set_no_cp): Update for doloop IV cand.
14496 (iv_ca_set_cp): Likewise.
14497 (iv_ca_dump): Dump register cost.
14498 (find_doloop_use): New function.
14499 (analyze_and_mark_doloop_use): Likewise.
14500 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
14502 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
14504 PR middle-end/91708
14505 * cse.c (cse_insn): Do not replace anything with a
14508 2019-09-13 Ian Lance Taylor <iant@golang.org>
14510 * doc/invoke.texi (Optimize Options): Fix typo.
14512 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
14514 PR tree-optimization/89386
14515 * config/i386/sse.md (smulhrs<mode>3): New expander.
14516 (smulhrsv4hi3): Ditto.
14518 2019-09-12 Richard Biener <rguenther@suse.de>
14520 PR tree-optimization/91750
14521 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
14522 in the type of the evolution.
14524 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
14526 PR tree-optimization/89386
14527 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
14528 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
14529 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
14530 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
14531 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
14532 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
14533 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
14534 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
14535 (su, r): Handle the unspecs above.
14536 (bt): New int attribute.
14537 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
14538 * internal-fn.c (first_commutative_argument): Commutativity info for
14540 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
14541 (umulhrs_optab): New optabs.
14542 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
14543 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
14544 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
14546 (vect_vect_recog_func_ptrs): Add it.
14548 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
14550 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
14553 2019-09-11 Nathan Sidwell <nathan@acm.org>
14555 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
14556 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
14558 2019-09-11 Richard Biener <rguenther@suse.de>
14560 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
14561 * lto-wrapper.c (merge_and_complain): Pick up -g.
14562 (append_compiler_options): Likewise.
14563 (run_gcc): Re-instantiate handling -g0 at link-time.
14564 * doc/invoke.texi (flto): Document debug info generation.
14566 2019-09-11 Richard Biener <rguenther@suse.de>
14568 PR tree-optimization/90387
14569 * vr-values.c (vr_values::extract_range_basic): After inlining
14570 simplify non-constant __builtin_constant_p to false.
14572 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
14574 PR rtl-optimization/89795
14575 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
14576 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
14578 2019-09-11 Jakub Jelinek <jakub@redhat.com>
14580 PR tree-optimization/91723
14581 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
14582 instead of pointer equality when checking if argument vectypes are
14585 PR middle-end/91725
14586 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
14587 of get_nonzero_bits, only call it for integral types.
14589 2019-09-11 Richard Biener <rguenther@suse.de>
14592 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14594 * match.pd: Add flag_unsafe_math_optimizations check
14595 before deciding on the widest type in a binary math operation.
14597 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14599 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
14600 and CALL_REALLY_USED_REGISTERS must be defined, and that
14601 CALL_REALLY_USED_REGISTERS is preferred.
14602 * doc/tm.texi: Regenerate.
14603 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
14604 (call_really_used_regs): Likewise.
14605 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
14606 CALL_REALLY_USED_REGISTERS are defined.
14607 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
14608 initial value if defined.
14609 (initial_call_really_used_regs): Delete.
14610 (saved_call_really_used_regs): Likewise.
14611 (CALL_REALLY_USED_REGNO_P): Likewise.
14612 (init_reg_sets): Remove handling of call_really_used_regs.
14613 (save_register_info, restore_register_info, globalize_reg): Likewise.
14614 (init_reg_sets_1): Likewise. Use call_used_regs instead of
14615 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
14616 outside operand_reg_set.
14617 (fix_register): Don't change call_used_regs if
14618 CALL_REALLY_USED_REGISTERS is defined.
14619 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
14620 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
14621 instead of call_really_used_regs.
14622 (csky_conditional_register_usage): Remove the old handling of
14623 call_used_regs and change the handling of call_really_used_regs
14624 to use call_used_regs instead.
14625 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
14626 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
14627 making a register fixed.
14628 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
14629 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
14630 instead of call_really_used_regs.
14631 (m32r_conditional_register_usage): Don't set call_used_regs when
14632 making a register fixed.
14633 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
14634 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
14635 instead of call_really_used_regs.
14636 (mips_interrupt_extra_call_saved_reg_p): Likewise.
14637 (mips_cfun_call_saved_reg_p): Likewise.
14638 (mips_swap_registers): Remove the old handling of call_used_regs
14639 and change the handling of call_really_used_regs to use call_used_regs
14641 (mips_conditional_register_usage): Likewise.
14642 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
14643 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
14644 instead of call_really_used_regs.
14645 (mn10300_get_live_callee_saved_regs): Likewise.
14646 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
14647 (mn10300_conditional_register_usage): Don't set call_used_regs when
14648 making a register fixed.
14649 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
14650 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
14651 Remove the old handling of call_used_regs and change the handling
14652 of call_really_used_regs to use call_used_regs instead.
14653 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
14654 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
14655 instead of call_really_used_regs.
14656 (s390_register_info_gprtofpr, s390_register_info): Likewise.
14657 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
14658 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
14659 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
14660 (s390_conditional_register_usage): Remove the old handling of
14661 call_used_regs and change the handling of call_really_used_regs
14662 to use call_used_regs instead.
14663 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
14664 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
14665 (sh_fix_range, reg_unused_after): Likewise.
14666 (sh_conditional_register_usage): Remove the old handling of
14667 call_used_regs and change the handling of call_really_used_regs
14668 to use call_used_regs instead.
14669 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
14670 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
14671 call_used_regs when making a register fixed.
14672 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
14673 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
14674 call_used_regs when making a register fixed.
14675 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
14676 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
14677 set call_used_regs when making a register fixed.
14678 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
14679 * config/visium/visium.c (visium_conditional_register_usage): Remove
14680 the old handling of call_used_regs and change the handling of
14681 call_really_used_regs to use call_used_regs instead.
14683 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14685 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
14686 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
14687 * reginfo.c (call_used_regs): New macro.
14689 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14691 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
14693 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14694 (bpf_expand_epilogue): Likewise.
14695 * config/c6x/c6x.c (c6x_save_reg): Likewise.
14696 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14697 (ft32_expand_epilogue): Likewise.
14698 * config/i386/i386.c (ix86_save_reg): Likewise.
14699 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
14700 (moxie_expand_epilogue): Likewise.
14701 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14702 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14703 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14705 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14707 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
14708 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
14709 instead of testing call_used_regs directly.
14710 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
14711 (aarch64_components_for_bb): Likewise.
14712 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
14713 * config/arc/arc.c (arc_must_save_register): Likewise.
14714 (arc_epilogue_uses): Likewise.
14715 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
14716 (legitimize_pic_address, callee_saved_reg_p): Likewise.
14717 (arm_compute_save_reg0_reg12_mask): Likewise.
14718 (arm_compute_save_core_reg_mask): Likewise.
14719 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
14720 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
14721 (cmse_nonsecure_entry_clear_before_return): Likewise.
14722 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
14723 (arm_expand_epilogue): Likewise.
14724 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
14725 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
14726 (_reg_unused_after): Likewise.
14727 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
14728 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
14729 (add_to_reg, hwloop_optimize): Likewise.
14730 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
14731 (bpf_expand_epilogue): Likewise.
14732 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
14733 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
14734 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
14735 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
14736 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
14737 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
14738 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
14739 * config/frv/frv.c (frv_stack_info): Likewise.
14740 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
14741 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
14742 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
14743 (move_callee_saved_registers): Likewise.
14744 * config/h8300/h8300.c (byte_reg): Likewise.
14745 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
14746 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
14747 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
14748 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
14749 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
14750 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
14751 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
14752 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
14753 * config/m32c/m32c.c (need_to_save): Likewise.
14754 * config/m68k/m68k.c (m68k_save_reg): Likewise.
14755 * config/mcore/mcore.c (calc_live_regs): Likewise.
14756 * config/microblaze/microblaze.c (microblaze_must_save_register):
14758 * config/mmix/mmix.c (mmix_local_regno): Likewise.
14759 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
14760 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
14761 (mmix_expand_epilogue): Likewise.
14762 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
14763 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
14764 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
14765 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
14766 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
14767 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
14768 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
14769 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
14770 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
14771 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
14772 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
14773 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
14774 * config/rl78/rl78.c (need_to_save): Likewise.
14775 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
14776 (rs6000_stack_info, generate_set_vrsave): Likewise.
14777 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
14778 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
14779 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14780 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14781 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
14782 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
14783 (save_local_or_in_reg_p): Likewise.
14784 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
14785 (xstormy16_epilogue_uses): Likewise.
14786 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
14787 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
14788 * config/v850/v850.c (compute_register_save_size): Likewise.
14789 * config/vax/vax.c (vax_expand_prologue): Likewise.
14790 * config/visium/visium.c (visium_save_reg_p): Likewise.
14791 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
14792 * cselib.c (cselib_process_insn): Likewise.
14793 * df-scan.c (df_get_entry_block_def_set): Likewise.
14794 * function.c (aggregate_value_p): Likewise.
14795 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
14796 * ira-lives.c (process_bb_node_lives): Likewise.
14797 * ira.c (do_reload): Likewise.
14798 * lra-lives.c (process_bb_lives): Likewise.
14799 * lra-remat.c (lra_remat): Likewise.
14800 * lra.c (lra): Likewise.
14801 * postreload.c (reload_combine_recognize_pattern): Likewise.
14802 (reload_cse_move2add): Likewise.
14803 * recog.c (peep2_find_free_register): Likewise.
14804 * regrename.c (check_new_reg_p): Likewise.
14805 * reload.c (find_equiv_reg): Likewise.
14806 * reload1.c (reload, find_reg): Likewise.
14807 * sel-sched.c (init_hard_regs_data): Likewise.
14809 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14811 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
14812 regs_invalidated_by_call & ~fixed_reg_set instead of
14813 call_used_or_fixed_regs & ~fixed_reg_set.
14814 * config/sh/sh.c (output_stack_adjust): Likewise.
14816 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14818 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
14819 (call_used_reg_set): Delete.
14820 (call_used_or_fixed_regs): New macro.
14821 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
14822 of call_used_reg_set.
14823 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
14824 instead of call_used_regs.
14825 (save_call_clobbered_regs): Likewise.
14826 * cfgcleanup.c (old_insns_match_p): Likewise.
14827 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
14828 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14830 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14831 * config/sh/sh.c (output_stack_adjust): Likewise.
14832 * final.c (collect_fn_hard_reg_usage): Likewise.
14833 * ira-build.c (ira_build): Likewise.
14834 * ira-color.c (calculate_saved_nregs): Likewise.
14835 (allocno_reload_assign, calculate_spill_cost): Likewise.
14836 * ira-conflicts.c (ira_build_conflicts): Likewise.
14837 * ira-costs.c (ira_tune_allocno_costs): Likewise.
14838 * ira-lives.c (process_bb_node_lives): Likewise.
14839 * ira.c (setup_reg_renumber): Likewise.
14840 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
14841 * lra-constraints.c (need_for_call_save_p): Likewise.
14842 (need_for_split_p, inherit_in_ebb): Likewise.
14843 * lra-lives.c (process_bb_lives): Likewise.
14844 * lra-remat.c (call_used_input_regno_present_p): Likewise.
14845 * postreload.c (reload_combine): Likewise.
14846 * regrename.c (find_rename_reg): Likewise.
14847 * reload1.c (reload_as_needed): Likewise.
14848 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14849 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14850 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14852 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14854 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
14855 (no_caller_save_reg_set): Delete.
14856 * caller-save.c (init_caller_save): Don't initialize it.
14857 * ira-conflicts.c (ira_build_conflicts): Calculate
14858 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
14860 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14862 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
14863 (target_hard_regs::x_savable_regs): New field.
14864 (call_fixed_reg_set): Delete.
14865 (savable_regs): New macro,
14866 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14867 (init_reg_sets_1): Likewise. Initialize savable_regs.
14868 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14869 for all registers. Set savable_regs instead of call_fixed_reg_set.
14870 (setup_save_areas, save_call_clobbered_regs): Replace uses of
14871 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14872 * config/sh/sh.c (output_stack_adjust): Likewise.
14874 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14876 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14877 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14878 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14880 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14882 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14883 * rtlanal.c (get_call_rtx_from): Likewise.
14884 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14885 than the pattern to get_call_rtx_from.
14886 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14887 an rtx_insn * instead of an rtx.
14888 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14890 2019-09-10 Martin Liska <mliska@suse.cz>
14892 * common.opt: Use newly added WarnRemoved.
14893 * config/aarch64/aarch64.opt: Likewise.
14894 * config/arm/arm.opt: Likewise.
14895 * config/i386/i386.opt: Likewise.
14896 * config/ia64/ia64.opt: Likewise.
14897 * config/rs6000/rs6000.opt: Likewise.
14898 * doc/options.texi: Document WarnRemoved properly.
14899 * dwarf2out.c (gen_producer_string): Handle renamed
14900 OPT_SPECIAL_warn_removed.
14901 * lto-opts.c (lto_write_options): Likewise.
14902 * lto-wrapper.c (merge_and_complain): Likewise.
14903 * opts-common.c (decode_cmdline_option): Likewise.
14904 (prune_options): Likewise.
14905 (read_cmdline_option): Likewise.
14906 (control_warning_option): Likewise.
14907 * opts.c (print_filtered_help): Likewise.
14908 * optc-gen.awk: Parse for WarnRemoved and make usage
14909 of Deprecated an error.
14910 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14912 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14914 * doc/install.texi: Fix syntax for html generation.
14916 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14918 PR middle-end/91680
14919 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14920 the shift type to type.
14922 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14924 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14926 (stack_protect_combined_test_insn): Likewise.
14928 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14929 Mickaël Guêné <mickael.guene@st.com>
14931 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14932 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14933 (load_tp_soft_fdpic): New pattern.
14934 (load_tp_soft): Disable in FDPIC mode.
14936 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14937 Mickaël Guêné <mickael.guene@st.com>
14939 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14940 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14941 (arm_call_tls_get_addr): Add FDPIC support.
14942 (legitimize_tls_address): Likewise.
14943 (arm_emit_tls_decoration): Likewise.
14945 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14946 Mickaël Guêné <mickael.guene@st.com>
14948 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14950 (arm_trampoline_init): Likewise.
14951 (arm_trampoline_adjust_address): Likewise.
14952 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14954 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14955 Mickaël Guêné <mickael.guene@st.com>
14957 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14958 (legitimize_pic_address): Enforce binding rules on function
14959 pointers in FDPIC mode.
14960 (arm_assemble_integer): Likewise.
14962 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14963 Mickaël Guêné <mickael.guene@st.com>
14965 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14966 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14969 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14970 Mickaël Guêné <mickael.guene@st.com>
14972 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14975 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14976 Mickaël Guêné <mickael.guene@st.com>
14978 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14980 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14982 * config/arm/arm.c (arm_option_override): Define pic register to
14984 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14985 have no decl or go through PLT.
14986 (calculate_pic_address_constant): New function.
14987 (legitimize_pic_address): Call calculate_pic_address_constant.
14988 (arm_load_pic_register): Handle TARGET_FDPIC.
14989 (arm_is_segment_info_known): New function.
14990 (arm_pic_static_addr): Add support for FDPIC.
14991 (arm_load_function_descriptor): New function.
14992 (arm_emit_call_insn): Add support for FDPIC.
14993 (arm_assemble_integer): Add support for FDPIC.
14994 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14995 Define. (FDPIC_REGNUM): New define.
14996 * config/arm/arm.md (call): Add support for FDPIC.
14997 (call_value): Likewise.
14998 (restore_pic_register_after_call): New pattern.
14999 (untyped_call): Disable if FDPIC.
15000 (untyped_return): Likewise.
15001 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
15003 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
15004 Mickaël Guêné <mickael.guene@st.com>
15006 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
15007 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
15008 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
15009 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
15010 (CC1_SPEC): Use FDPIC_CC1_SPEC.
15011 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
15012 * config/arm/uclinuxfdpiceabi.h: New file.
15014 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
15016 * config.gcc: Handle *-*-uclinuxfdpiceabi.
15018 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
15019 Mickaël Guêné <mickael.guene@st.com>
15021 * config/arm/arm.opt: Add -mfdpic option.
15022 * doc/invoke.texi: Add documentation for -mfdpic.
15024 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
15026 * expmed.c (extract_bit_field): Update function comment
15028 * expr.c (expand_expr_real): Update function comment
15030 (expand_misaligned_mem_ref): New helper function.
15031 (expand_expr_real_2): Use expand_misaligned_mem_ref.
15032 Remove duplicate assignment to "base" at case MEM_REF.
15033 Remove a shadowed variable "unsignedp" at case VCE.
15035 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15037 * regset.h (regs_invalidated_by_call_regset): Delete.
15038 (fixed_reg_set_regset): Likewise.
15039 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
15040 (fixed_reg_set_regset, persistent_obstack): Likewise.
15041 (init_reg_sets_1, globalize_reg): Update accordingly.
15042 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
15043 instead of a bitmap.
15044 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
15045 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
15046 instead of regs_invalidated_by_call_regset.
15047 (df_lr_confluence_n, df_md_confluence_n): Likewise.
15048 * df-scan.c (df_scan_start_dump): Likewise.
15049 * dse.c (copy_fixed_regs): Likewise.
15050 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
15052 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15054 * array-traits.h: New file.
15055 * coretypes.h (array_traits, bitmap_view): New types.
15056 * bitmap.h: Include "array-traits.h"
15057 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
15058 (base_bitmap_view, bitmap_view): New classes.
15059 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
15060 * hard-reg-set.h: Include array-traits.h.
15061 (array_traits<HARD_REG_SET>): New struct.
15062 * regset.h (IOR_REG_SET_HRS): New macro.
15063 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
15064 rather than iterating over each hard register.
15065 * sched-deps.c (sched_analyze_insn): Likewise.
15066 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
15068 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15070 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
15071 instead of a HARD_REG_SET *.
15072 * ira-build.c (ior_hard_reg_conflicts): Likewise.
15073 (ira_build): Update call accordingly.
15074 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
15076 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15078 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
15079 (HARD_REG_SET::operator!=): Likewise.
15080 (hard_reg_set_equal_p): Delete.
15081 * cfgcleanup.c (old_insns_match_p): Use == instead of
15082 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
15083 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
15084 (add_allocno_hard_regs_to_forest): Likewise.
15085 (setup_allocno_available_regs_num): Likewise.
15086 * ira.c (setup_pressure_classes): Likewise.
15087 (setup_allocno_and_important_classes): Likewise.
15088 (setup_reg_class_relations): Likewise.
15089 * lra-lives.c (process_bb_lives): Likewise.
15090 * reg-stack.c (change_stack, convert_regs_1): Likewise.
15092 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15094 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
15095 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15096 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
15097 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
15099 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
15100 * ira.c (setup_reg_renumber): Likewise.
15101 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15102 * regrename.c (regrename_find_superclass): Likewise.
15103 * reload1.c (find_reg): Likewise.
15105 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15107 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
15108 * caller-save.c (setup_save_areas): Use "&~" instead of
15109 AND_COMPL_HARD_REG_SET.
15110 (save_call_clobbered_regs): Likewise.
15111 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
15113 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
15114 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15115 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
15116 * config/mips/mips.c (mips_class_max_nregs): Likewise.
15117 (mips_conditional_register_usage): Likewise.
15118 * config/sh/sh.c (output_stack_adjust): Likewise.
15119 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
15120 (setup_profitable_hard_regs): Likewise.
15121 (get_conflict_and_start_profitable_regs): Likewise.
15122 * ira-conflicts.c (print_allocno_conflicts): Likewise.
15123 (ira_build_conflicts): Likewise.
15124 * ira-costs.c (restrict_cost_classes): Likewise.
15125 (setup_regno_cost_classes_by_aclass): Likewise.
15126 * ira-lives.c (process_bb_node_lives): Likewise.
15127 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
15128 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
15129 (setup_allocno_and_important_classes, setup_class_translate_array)
15130 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
15132 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15133 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15134 (process_alt_operands, inherit_in_ebb): Likewise.
15135 * lra-eliminations.c (update_reg_eliminate): Likewise.
15136 * lra-lives.c (process_bb_lives): Likewise.
15137 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
15138 * resource.c (find_dead_or_set_registers): Likewise.
15139 (mark_target_live_regs): Likewise.
15140 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
15141 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15142 (implicit_clobber_conflict_p): Likewise.
15143 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15144 (try_shrink_wrapping): Likewise.
15146 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15148 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
15149 (HARD_REG_SET::operator|=): Likewise.
15150 (IOR_HARD_REG_SET): Delete.
15151 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
15153 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
15154 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
15155 * final.c (collect_fn_hard_reg_usage): Likewise.
15156 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
15157 * ira-build.c (merge_hard_reg_conflicts): Likewise.
15158 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
15159 (propagate_some_info_from_allocno): Likewise.
15160 (copy_info_to_removed_store_destinations): Likewise.
15161 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
15162 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
15163 (fast_allocation): Likewise.
15164 * ira-conflicts.c (ira_build_conflicts): Likewise.
15165 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
15166 (process_bb_node_lives): Likewise.
15167 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
15168 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15169 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
15170 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
15171 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
15172 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
15173 (process_bb_lives): Likewise.
15174 * lra-spills.c (assign_spill_hard_regs): Likewise.
15175 * postreload.c (reload_combine): Likewise.
15176 * reginfo.c (init_reg_sets_1): Likewise.
15177 * regrename.c (merge_overlapping_regs, find_rename_reg)
15178 (merge_chains): Likewise.
15179 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
15180 (find_reload_regs, finish_spills, choose_reload_regs_init)
15181 (emit_reload_insns): Likewise.
15182 * reorg.c (redundant_insn): Likewise.
15183 * resource.c (find_dead_or_set_registers, mark_set_resources)
15184 (mark_target_live_regs): Likewise.
15185 * rtlanal.c (find_all_hard_reg_sets): Likewise.
15186 * sched-deps.c (sched_analyze_insn): Likewise.
15187 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15188 (find_best_reg_for_expr): Likewise.
15189 * shrink-wrap.c (try_shrink_wrapping): Likewise.
15191 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15193 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
15194 (HARD_REG_SET::operator&): Likewise.
15195 (AND_HARD_REG_SET): Delete.
15196 * caller-save.c (setup_save_areas): Use "&" instead of
15198 (save_call_clobbered_regs): Likewise.
15199 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15200 * config/m32c/m32c.c (reduce_class): Likewise.
15201 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
15202 * final.c (get_call_reg_set_usage): Likewise.
15203 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
15204 (setup_left_conflict_sizes_p): Likewise.
15205 * ira-conflicts.c (print_allocno_conflicts): Likewise.
15206 (ira_build_conflicts): Likewise.
15207 * ira-costs.c (restrict_cost_classes): Likewise.
15208 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
15209 (setup_reg_class_relations): Likewise.
15210 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
15211 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
15212 * resource.c (find_dead_or_set_registers): Likewise.
15213 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15215 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15217 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
15218 (COMPL_HARD_REG_SET): Delete.
15219 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
15220 of COMPL_HARD_REG_SET.
15221 (try_rename_operands): Likewise.
15222 * config/sh/sh.c (push_regs): Likewise.
15223 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15224 * lra-constraints.c (contains_reg_p): Likewise.
15225 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
15227 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15229 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
15230 * caller-save.c (save_call_clobbered_regs): Use assignment instead
15231 of COPY_HARD_REG_SET.
15232 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
15233 (epiphany_conditional_register_usage): Likewise.
15234 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
15235 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15236 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15237 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
15238 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
15239 * config/mips/mips.c (mips_class_max_nregs): Likewise.
15240 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
15241 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
15242 * config/sh/sh.c (output_stack_adjust): Likewise.
15243 * final.c (collect_fn_hard_reg_usage): Likewise.
15244 (get_call_reg_set_usage): Likewise.
15245 * ira-build.c (ira_create_object, remove_low_level_allocnos)
15246 (ira_flattening): Likewise.
15247 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
15248 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
15249 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
15250 (ira_reassign_pseudos): Likewise.
15251 * ira-conflicts.c (print_allocno_conflicts): Likewise.
15252 (ira_build_conflicts): Likewise.
15253 * ira-costs.c (restrict_cost_classes): Likewise.
15254 (setup_regno_cost_classes_by_aclass): Likewise.
15255 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
15256 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
15257 (setup_stack_reg_pressure_class, setup_pressure_classes)
15258 (setup_allocno_and_important_classes, setup_class_translate_array)
15259 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
15260 (ira_setup_eliminable_regset): Likewise.
15261 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15262 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
15263 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15264 (process_alt_operands, inherit_in_ebb): Likewise.
15265 * lra-lives.c (process_bb_lives): Likewise.
15266 * lra-spills.c (assign_spill_hard_regs): Likewise.
15267 * lra.c (lra): Likewise.
15268 * mode-switching.c (new_seginfo): Likewise.
15269 * postreload.c (reload_combine): Likewise.
15270 * reg-stack.c (straighten_stack): Likewise.
15271 * reginfo.c (save_register_info, restore_register_info): Likewise.
15272 (init_reg_sets_1, record_subregs_of_mode): Likewise
15273 * regrename.c (create_new_chain, rename_chains): Likewise.
15274 * reload1.c (order_regs_for_reload, find_reg): Likewise.
15275 (find_reload_regs): Likewise.
15276 * resource.c (find_dead_or_set_registers): Likewise.
15277 (mark_target_live_regs): Likewise.
15278 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15280 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15282 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
15283 (note_pattern_stores): Declare.
15284 (note_stores): Take an rtx_insn *.
15285 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
15286 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
15287 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
15288 (note_stores): Take an rtx_insn * as argument and process
15289 CALL_INSN_FUNCTION_USAGE. Rename old function to...
15290 (note_pattern_stores): ...this.
15291 (find_first_parameter_load): Pass the insn rather than
15292 its pattern to note_stores.
15293 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
15294 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
15295 (insert_one_insn): Likewise.
15296 * combine.c (combine_instructions): Likewise.
15297 (likely_spilled_retval_p): Likewise.
15298 (try_combine): Use note_pattern_stores instead of note_stores.
15299 (record_dead_and_set_regs): Pass the insn rather than its pattern
15301 (reg_dead_at_p): Likewise.
15302 * config/bfin/bfin.c (workaround_speculation): Likewise.
15303 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
15304 rather than an rtx.
15305 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
15306 instead of note_stores.
15307 (frv_optimize_membar_local): Pass the insn rather than its pattern
15309 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
15310 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
15311 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
15312 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
15313 (mips_reorg_process_insns): Likewise.
15314 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
15315 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
15317 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
15318 its pattern to note_stores.
15319 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
15321 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
15322 the insn to note_stores.
15323 (prescan_insns_for_dce): Update call accordingly.
15324 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
15326 * df-problems.c (can_move_insns_across): Likewise.
15327 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
15328 * function.c (assign_parm_setup_reg): Likewise.
15329 * gcse-common.c (record_last_mem_set_info_common): Likewise.
15330 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
15331 (single_set_gcse): Likewise.
15332 * ira.c (validate_equiv_mem): Likewise.
15333 (update_equiv_regs): Use note_pattern_stores rather than note_stores
15335 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
15336 pattern to note_stores.
15337 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15338 * loop-iv.c (simplify_using_initial_values): Likewise.
15339 * mode-switching.c (optimize_mode_switching): Likewise.
15340 * optabs.c (emit_libcall_block_1): Likewise.
15341 (expand_atomic_compare_and_swap): Likewise.
15342 * postreload-gcse.c (load_killed_in_block_p): Likewise.
15343 (record_opr_changes): Likewise. Remove explicit handling of
15344 CALL_INSN_FUNCTION_USAGE.
15345 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
15346 * regcprop.c (kill_clobbered_values): Likewise.
15347 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
15349 * regrename.c (build_def_use): Likewise.
15350 * reload1.c (reload): Use note_pattern_stores instead of note_stores
15351 for mark_not_eliminable.
15352 (reload_as_needed): Pass the insn rather than its pattern
15354 (emit_output_reload_insns): Likewise.
15355 * resource.c (mark_target_live_regs): Likewise.
15356 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15357 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
15358 instead of note_stores.
15359 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
15360 its pattern to note_stores.
15361 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
15362 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
15364 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15366 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
15367 than a #define. Use a structure rather than an array as the
15368 fallback definition. Remove special cases for low array sizes.
15369 (const_hard_reg_set): New typedef.
15370 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
15371 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
15372 (hard_reg_set_empty_p): Likewise.
15373 (SET_HARD_REG_BIT): Use a function rather than a macro to
15374 handle the case in which HARD_REG_SET is a structure.
15375 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
15376 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
15377 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
15378 (IOR_COMPL_HARD_REG_SET): Likewise.
15379 (hard_reg_set_iterator::pset): Constify the pointer target.
15380 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
15381 of a "const HARD_REG_SET". Update the handling of non-integer
15383 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
15384 * reload.h: Likewise.
15385 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
15386 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
15387 of a "const HARD_REG_SET".
15388 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
15389 (range_in_hard_reg_set_p): Likewise.
15390 * ira-costs.c (restrict_cost_classes): Likewise.
15391 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
15392 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15393 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
15394 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
15395 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
15396 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
15397 take an unsigned int and open-code the HARD_REG_SET operations.
15399 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
15401 * Makefile.in (OBJS): Remove bt-load.o.
15402 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
15403 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
15404 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
15405 document that the option no longer does anything.
15406 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
15407 * target.def (branch_target_register_class): Delete.
15408 (branch_target_register_callee_saved): Likewise.
15409 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
15410 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
15411 * doc/tm.texi: Regenerate.
15412 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
15413 (make_pass_branch_target_load_optimize2): Likewise.
15414 * passes.def (pass_branch_target_load_optimize1): Likewise.
15415 (pass_branch_target_load_optimize2): Likewise.
15416 * targhooks.h (default_branch_target_register_class): Likewise.
15417 * targhooks.c (default_branch_target_register_class): Likewise.
15418 * opt-suggestions.c (test_completion_valid_options): Remove
15419 -fbtr-bb-exclusive from the list of test options.
15420 * bt-load.c: Remove.
15422 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
15424 * match.pd: Add flag_unsafe_math_optimizations check
15425 before deciding on the widest type in a binary math operation.
15427 2019-09-09 Martin Liska <mliska@suse.cz>
15429 * config/i386/i386.opt: Update comment of removed
15430 options that are preserved only for backward
15433 2019-09-09 Jakub Jelinek <jakub@redhat.com>
15436 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
15437 instead of __v16qs.
15440 * config/i386/avxintrin.h (__v32qs): New typedef.
15441 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
15442 instead of __v32qi.
15444 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
15446 * doc/invoke.texi (Option Summary): Cover eBPF.
15447 (eBPF Options): New section.
15448 * doc/extend.texi (BPF Built-in Functions): Likewise.
15449 (BPF Kernel Helpers): Likewise.
15451 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
15453 * config.gcc: Support for bpf-*-* targets.
15454 * common/config/bpf/bpf-common.c: New file.
15455 * config/bpf/t-bpf: Likewise.
15456 * config/bpf/predicates.md: Likewise.
15457 * config/bpf/constraints.md: Likewise.
15458 * config/bpf/bpf.opt: Likewise.
15459 * config/bpf/bpf.md: Likewise.
15460 * config/bpf/bpf.h: Likewise.
15461 * config/bpf/bpf.c: Likewise.
15462 * config/bpf/bpf-protos.h: Likewise.
15463 * config/bpf/bpf-opts.h: Likewise.
15464 * config/bpf/bpf-helpers.h: Likewise.
15465 * config/bpf/bpf-helpers.def: Likewise.
15467 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
15469 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15472 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
15474 * opt-functions.awk (integer_range_info): Make sure values are in
15475 numeric context before operating with them.
15477 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
15479 * genemit.c (gen_split): Print the filename and line number where the
15480 splitter (or peephole2) was defined, to the dump file.
15482 2019-09-07 Jakub Jelinek <jakub@redhat.com>
15484 PR tree-optimization/91665
15485 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
15486 incompatible with the type of PHI result.
15488 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
15491 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
15492 gen_unaligned_storedi for 4-byte aligned addresses.
15494 2019-09-06 Jim Wilson <jimw@sifive.com>
15496 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
15499 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
15501 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
15503 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
15505 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
15506 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
15508 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
15511 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
15512 cost of SSE->integer and integer->SSE moves from 2 to 6.
15513 (core_cost): Ditto.
15515 2019-09-06 Jakub Jelinek <jakub@redhat.com>
15517 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
15518 before testing TYPE_TRANSPARENT_AGGR.
15519 * calls.c (initialize_argument_information, load_register_parameters):
15522 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
15524 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
15526 (cmp_ior): Likewise.
15528 2019-09-06 Martin Liska <mliska@suse.cz>
15530 * doc/match-and-simplify.texi: Separate tuples with ;.
15532 2019-09-06 Martin Liska <mliska@suse.cz>
15535 * Makefile.in: Remove tlink.o.
15536 * collect2.c (do_link): New function isolated
15539 * collect2.h (do_tlink): Remove declaration of do_tlink.
15540 * doc/extend.texi: Remove documentation of -frepo.
15541 * doc/invoke.texi: Likewise.
15542 * doc/sourcebuild.texi: Remove cleanup-repo-files.
15545 2019-09-05 Jakub Jelinek <jakub@redhat.com>
15546 Jim Wilson <jimw@sifive.com>
15549 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
15550 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
15551 paradoxical_subreg_p (operands[0]).
15552 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
15553 use as intermediate value.
15555 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
15557 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
15558 (sync_compare_and_swap<mode>_insn): Likewise.
15560 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
15562 PR middle-end/91615
15563 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
15564 without movmisalign optab.
15566 2019-09-05 Jakub Jelinek <jakub@redhat.com>
15568 PR middle-end/91001
15569 PR middle-end/91105
15570 PR middle-end/91106
15571 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
15572 types, use type of their first field instead of type of
15573 args[i].tree_value.
15575 2019-09-05 Richard Biener <rguenther@suse.de>
15577 PR rtl-optimization/91656
15578 * postreload-gcse.c (record_last_mem_set_info): Revert addition
15581 2019-09-05 Richard Biener <rguenther@suse.de>
15583 PR middle-end/90501
15584 * tree-inline.c (declare_return_variable): Mark the return
15585 slot as addressable after building an address of it.
15587 2019-09-05 Arnaud Charlet <charlet@adacore.com>
15589 * doc/install.texi: Update and clarify requirements to build GNAT.
15591 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
15593 PR middle-end/91577
15594 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
15595 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
15596 call to be in memory.
15597 (pass_expand::execute): Call discover_nonconstant_array_refs before
15598 setting currently_expanding_to_rtl.
15600 2019-09-04 Caroline Tice <cmtice@google.com>
15602 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
15603 specified together.
15605 2019-09-04 Marek Polacek <polacek@redhat.com>
15607 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
15609 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
15612 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15613 for QI and HImode moves between SSE and general registers.
15615 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15618 * doc/invoke.texi: Document -Wenum-conversion.
15620 2019-09-04 Richard Biener <rguenther@suse.de>
15622 PR rtl-optimization/36262
15623 * postreload-gcse.c: Include intl.h and gcse.h.
15624 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
15625 to avoid linear list walk.
15626 (record_last_mem_set_info): Gate off if not computing transparentness.
15627 (get_bb_avail_insn): If transparentness isn't computed give up
15629 (gcse_after_reload_main): Skip compute_transp and extended PRE
15630 if gcse_or_cprop_is_too_expensive says so.
15632 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15634 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
15636 (msp430_select_section): Handle decls with the "noinit" attribute with
15637 default_elf_select_section.
15638 Handle SECCAT_RODATA_MERGE_* section types with
15639 default_elf_select_section.
15640 Add comments about handling of unsupported section types.
15641 (msp430_section_type_flags): Remove handling of the noinit section.
15643 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15645 * config/msp430/msp430.c (msp430_attr): Remove warnings about
15646 conflicting msp430-specific attributes.
15647 (msp430_section_attr): Likewise.
15648 Add warnings about conflicts with generic "noinit" and "section"
15650 Fix grammar in -mlarge error message.
15651 (msp430_data_attr): Rename to msp430_persist_attr.
15652 Add warnings about conflicts with generic "noinit" and "section"
15654 Add warning for when variable is not initialized.
15655 Chain conditionals which prevent the attribute being added.
15656 (ATTR_EXCL): New helper.
15657 (attr_reent_exclusions): New exclusion table.
15658 (attr_naked_exclusions): Likewise.
15659 (attr_crit_exclusions): Likewise.
15660 (attr_lower_exclusions): Likewise.
15661 (attr_upper_exclusions): Likewise.
15662 (attr_either_exclusions): Likewise.
15663 (attr_persist_exclusions): Likewise.
15664 (msp430_attribute_table): Update with exclusion rules.
15665 (msp430_output_aligned_decl_common): Don't output common symbol if decl
15668 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15670 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
15671 (msp430_handle_generic_attribute): New function.
15672 * doc/tm.texi: Regenerate.
15673 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
15674 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15675 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
15676 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
15678 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
15680 PR tree-optimization/91504
15681 * match.pd: Add ((~a & b) ^a) --> (a | b).
15683 2019-09-03 Jakub Jelinek <jakub@redhat.com>
15686 * config/i386/i386-expand.c (split_double_mode): If there is more than
15687 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
15688 already split matching MEM operand instead of calling adjust_address
15691 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
15693 * config.gcc: Obsolete spu target. Remove references to spu.
15694 * configure.ac: Remove references to spu.
15695 * configure: Regenerate.
15696 * config/spu/: Remove directory.
15697 * common/config/spu/: Remove directory.
15699 * doc/extend.texi: Remove references to spu.
15700 * doc/invoke.texi: Likewise.
15701 * doc/md.texi: Likewise.
15702 * doc/sourcebuild.texi: Likewise.
15704 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15706 PR middle-end/91603
15707 PR middle-end/91612
15708 PR middle-end/91613
15709 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
15710 and SSA_NAME referring to CONSTANT_P correctly.
15712 2019-09-03 Richard Biener <rguenther@suse.de>
15714 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
15715 (vn_nary_op_insert): Likewise.
15716 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
15717 (vn_nary_op_lookup): Likewise.
15718 (vn_nary_op_insert): Likewise.
15720 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
15722 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
15723 (*op0, 1) instead of XEXP (*op1, 0).
15725 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15727 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
15728 (aarch64_fjcvtzs): New define_insn.
15729 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
15730 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
15732 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
15733 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
15734 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15735 __ARM_FEATURE_JCVT where appropriate.
15736 * config/aarch64/arm_acle.h (__jcvt): Define.
15738 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15740 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
15741 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
15742 (aarch64_<frintnzs_op><mode>): New define_insn.
15743 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
15744 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15745 __ARM_FEATURE_FRINT when appropriate.
15746 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
15747 frint32x, frint64z, frint64x.
15748 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
15749 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
15750 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
15751 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
15752 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
15753 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
15754 * config/aarch64/iterators.md (VSFDF): Define.
15755 (FRINTNZX): Likewise.
15756 (frintnzs_op): Likewise.
15758 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
15760 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
15761 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
15763 * config/aarch64/aarch64-tune.md: Regenerated.
15764 * doc/invoke.texi: Document the new processors.
15766 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15768 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
15772 (sve2-sm4): Likewise.
15773 (sveaes): Likewise.
15774 (svesha3): Likewise.
15775 (svebitperm): Likewise.
15777 2019-09-03 Jakub Jelinek <jakub@redhat.com>
15778 Richard Biener <rguenther@suse.de>
15780 PR tree-optimization/91597
15781 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
15782 BIT_AND_EXPR optimization for pointers, even if both operand
15783 ranges don't include NULL, the result can be NULL.
15785 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15787 PR middle-end/91605
15788 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
15789 (non_mem_decl_p): ...this.
15790 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
15791 (expand_assignment): Call mem_ref_referes_to_non_mem_p
15792 unconditionally as before.
15794 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
15797 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
15798 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
15799 * tree.def (LTGT_EXPR): Likewise.
15800 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
15802 2019-09-02 Jakub Jelinek <jakub@redhat.com>
15805 * fold-const.c (range_check_type): For enumeral and boolean
15806 type, pass 1 to type_for_size langhook instead of
15807 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
15808 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
15809 (build_range_check): Don't call unsigned_type_for for pointer types.
15810 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
15811 range_check_type result.
15813 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
15815 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
15816 (replace_ref): Do not replace a chain of only two candidates which are
15817 valid memory references.
15819 2019-09-02 Martin Liska <mliska@suse.cz>
15821 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
15822 Bail out when we'll end up with the same number of clusters as
15824 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
15825 (jump_table_cluster::can_be_handled): Remove the guard
15826 as it's already handled in ::is_enabled. Allocate output
15827 after early bail out.
15829 2019-09-02 Martin Liska <mliska@suse.cz>
15831 PR gcov-profile/91601
15832 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
15833 (path_contains_zero_or_negative_cycle_arc): ... this and handle
15834 also negative edges.
15835 (circuit): Handle also negative edges as they can happen
15836 in some situations.
15838 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
15841 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
15842 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
15843 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
15845 2019-09-01 Jakub Jelinek <jakub@redhat.com>
15847 PR middle-end/91623
15848 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
15849 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
15850 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
15854 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
15855 GIMPLE_ASM TREE_LIST operands.
15857 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
15859 * doc/generic.texi (Unary and Binary Expressions): Mark up
15860 an instance of TYPE_MIN.
15862 2019-08-31 Stafford Horne <shorne@gmail.com>
15864 * config/or1k/constraints.md (t): New constraint.
15865 * config/or1k/or1k.h (GOT_REGS): New register class.
15866 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15868 2019-08-30 Jim Wilson <jimw@sifive.com>
15870 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15871 and -fpic and -mplt then disable -msave-restore and warn.
15873 2019-08-30 Martin Sebor <msebor@redhat.com>
15875 PR middle-end/91599
15876 * tree-ssa-strlen.c (handle_store): Use a fallback location if
15877 the statement doesn't have one.
15878 * gimple-pretty-print.c (percent_G_format): Same.
15880 PR middle-end/91584
15881 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15882 before using them to validate MEM_REF offset.
15884 2019-08-30 Marek Polacek <polacek@redhat.com>
15886 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15888 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
15890 * config/arm/arm.md (unaligned_loaddi,
15891 unaligned_storedi): New unspec insn patterns.
15892 * config/arm/neon.md (unaligned_storev8qi): Likewise.
15893 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15894 and unaligned_storedi for 4-byte aligned memory.
15895 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15896 4-byte aligned memory.
15898 2019-08-30 Martin Jambor <mjambor@suse.cz>
15900 tree-optimization/91579
15901 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15902 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15904 (arg_needs_copy_p): Removed.
15905 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15907 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15909 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15911 * config/i386/i386-features.c
15912 (general_scalar_chain::compute_convert_gain):
15913 Correct cost for double-word shifts.
15914 (general_scalar_to_vector_candidate_p): Reject count operands
15915 greater or equal to mode bitsize.
15917 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15919 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15920 for moves between SSE and non-general registers and between
15921 mask and non-general registers.
15922 (ix86_register_move_cost): Remove stalled comment.
15924 2019-08-29 Richard Biener <rguenther@suse.de>
15926 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15927 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15929 2019-08-29 Richard Biener <rguenther@suse.de>
15932 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15933 Do not emit scalar copies for debug-insns, instead replace
15934 their uses with the reg copy used in the chain or reset them
15935 if there is a reaching definition outside of the chain as well.
15937 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15940 * config/i386/i386-expand.c (expand_vec_perm_movs,
15941 expand_vec_perm_blend, expand_vec_perm_vpermil,
15942 expand_vec_perm_pshufb, expand_vec_perm_1,
15943 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15944 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15945 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15946 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15947 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15948 comments - replace ix86_expand_vec_perm_builtin_1 with
15949 ix86_expand_vec_perm_const_1.
15950 (expand_vec_perm2_vperm2f128_vblend): New function.
15951 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15952 expand_vec_perm2_vperm2f128_vblend as last resort.
15953 (canonicalize_perm): Formatting fix.
15955 PR tree-optimization/91351
15956 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15958 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15959 range_check_type returns NULL.
15960 * tree-switch-conversion.c (switch_conversion::build_one_array):
15961 Use range_check_type instead of unsigned_type_for, don't perform
15962 linear opt if it returns NULL.
15963 (bit_test_cluster::find_bit_tests): Formatting fix.
15964 (bit_test_cluster::emit): Use range_check_type instead of
15966 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15969 2019-08-29 Richard Biener <rguenther@suse.de>
15971 PR tree-optimization/91568
15972 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15973 (vect_update_max_nunits): Add overload for poly_uint64.
15974 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15975 (vect_build_slp_tree): Record max_nunits into the subtree
15976 and merge it upwards.
15977 (vect_print_slp_tree): Print max_nunits.
15979 2019-08-28 Marek Polacek <polacek@redhat.com>
15981 Implement P1152R4: Deprecating some uses of volatile.
15983 * doc/invoke.texi: Document -Wvolatile.
15985 2019-08-28 Marek Polacek <polacek@redhat.com>
15987 PR c++/91360 - Implement C++20 P1143R2: constinit.
15988 * doc/invoke.texi: Document -Wc++20-compat.
15990 2019-08-28 Martin Sebor <msebor@redhat.com>
15992 PR tree-optimization/91457
15993 * builtins.c (component_size): New function.
15994 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15995 * builtins.h (compute_objsize): Add argument.
15996 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15997 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15998 (vrp_prop::check_mem_ref): Same.
15999 (vrp_prop::search_for_addr_array): Set no-warning bit.
16000 (check_array_bounds): Same.
16002 2019-08-28 Martin Sebor <msebor@redhat.com>
16005 * opts-common.c (option_enabled): Correct checking for language
16008 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
16010 * config/i386/i386.c (ix86_register_move_cost): Do not
16011 limit the cost of moves to/from XMM register to minimum 8.
16013 2019-08-28 Martin Jambor <mjambor@suse.cz>
16016 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
16017 checking assert a normal assert to test it really is redundant.
16018 * ipa-prop.c (compute_complex_assign_jump_func): Removed
16020 (update_jump_functions_after_inlining): Removed combining unary
16021 arithmetic operations with an ancestor jump function.
16022 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
16025 2019-08-28 Richard Biener <rguenther@suse.de>
16027 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
16028 add the MD problem.
16030 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16031 Richard Biener <rguenther@suse.de>
16033 * expr.c (expand_assignment): Handle misaligned DECLs.
16034 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
16035 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
16037 (assign_parm_setup_stack): Allocate properly aligned stack slots.
16038 * varasm.c (build_constant_desc): Align constants of misaligned types.
16039 * config/arm/predicates.md (aligned_operand): New predicate.
16040 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
16041 aligned_operand to check restrictions on memory addresses.
16042 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
16043 * config/arm/vec-common.md (mov<VALL>): Likewise.
16045 2019-08-28 Jakub Jelinek <jakub@redhat.com>
16048 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
16049 V_128 iterator instead of VI_128.
16051 2019-08-28 Martin Liska <mliska@suse.cz>
16053 PR tree-optimization/90970
16054 * builtins.c (check_access): Remove assignment to maxread
16055 as it hasn't been used since when it was introduced in r255755.
16057 2019-08-27 Martin Sebor <msebor@redhat.com>
16059 PR tree-optimization/91567
16060 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
16061 of unknown strings.
16062 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
16063 to PTRDIFF_MAX - 2.
16065 2019-08-27 Jeff Law <law@redhat.com>
16067 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
16068 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
16070 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
16073 * config/i386/i386-features.c (convert_scalars_to_vector):
16074 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
16075 crtl->stack_realign_processed. Update crtl->drap_reg by calling
16076 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
16077 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
16079 2019-08-27 Richard Biener <rguenther@suse.de>
16081 * config/i386/i386-features.h
16082 (general_scalar_chain::~general_scalar_chain): Add.
16083 (general_scalar_chain::insns_conv): New bitmap.
16084 (general_scalar_chain::n_sse_to_integer): New.
16085 (general_scalar_chain::n_integer_to_sse): Likewise.
16086 (general_scalar_chain::make_vector_copies): Adjust signature.
16087 * config/i386/i386-features.c
16088 (general_scalar_chain::general_scalar_chain): Outline,
16089 initialize new members.
16090 (general_scalar_chain::~general_scalar_chain): New.
16091 (general_scalar_chain::mark_dual_mode_def): Record insns
16092 we need to insert conversions at and count them.
16093 (general_scalar_chain::compute_convert_gain): Account
16094 for conversion instructions at chain boundary.
16095 (general_scalar_chain::make_vector_copies): Generate a single
16096 copy for a def by a specific insn.
16097 (general_scalar_chain::convert_registers): First populate
16098 defs_map, then make copies at out-of chain insns.
16100 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
16102 * config/arm/arm.md (stack_protect_set_insn): Add security-related
16104 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
16106 2019-08-27 Martin Liska <mliska@suse.cz>
16108 * cgraph.c (cgraph_node::remove): Remove dead assignment before
16110 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
16111 Enclose in anonymous namespace.
16112 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
16113 hard_register initialization in braces.
16114 * tree-vrp.h (value_range_base::supports_type_p): Return false
16115 for function with boolean return type.
16117 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
16119 * config/i386/i386.c (emit_i387_cw_initialization)
16120 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
16122 2019-08-26 Martin Sebor <msebor@redhat.com>
16125 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
16126 (sprintf_dom_walker): Remove class.
16127 (get_int_range): Make argument const.
16128 (directive::fmtfunc, directive::set_precision): Same.
16129 (format_none): Same.
16130 (build_intmax_type_nodes): Same.
16131 (adjust_range_for_overflow): Same.
16132 (format_floating): Same.
16133 (format_character): Same.
16134 (format_string): Same.
16135 (format_plain): Same.
16136 (get_int_range): Cast away constness.
16137 (format_integer): Same.
16138 (get_string_length): Call get_range_strlen_dynamic. Handle
16139 null lendata.maxbound.
16140 (should_warn_p): Adjust argument scope qualifier.
16141 (maybe_warn): Same.
16142 (format_directive): Same.
16143 (parse_directive): Same.
16144 (is_call_safe): Same.
16145 (try_substitute_return_value): Same.
16146 (sprintf_dom_walker::handle_printf_call): Rename...
16147 (handle_printf_call): ...to this. Initialize target to host charmap
16148 here instead of in pass_sprintf_length::execute.
16149 (struct call_info): Make global.
16150 (sprintf_dom_walker::compute_format_length): Make global.
16151 (sprintf_dom_walker::handle_gimple_call): Same.
16152 * passes.def (pass_sprintf_length): Replace with pass_strlen.
16153 * print-rtl.c (print_pattern): Reduce the number of spaces to
16154 avoid -Wformat-truncation.
16155 * tree-pass.h (make_pass_warn_printf): New function.
16156 * tree-ssa-strlen.c (strlen_optimize): New variable.
16157 (get_string_length): Add comments.
16158 (get_range_strlen_dynamic): New function.
16159 (check_and_optimize_call): New function.
16160 (handle_integral_assign): New function.
16161 (strlen_check_and_optimize_stmt): Factor code out into
16162 strlen_check_and_optimize_call and handle_integral_assign.
16163 (strlen_dom_walker::evrp): New member.
16164 (strlen_dom_walker::before_dom_children): Use evrp member.
16165 (strlen_dom_walker::after_dom_children): Use evrp member.
16166 (printf_strlen_execute): New function.
16167 (pass_strlen::gate): Update to handle printf calls.
16168 (dump_strlen_info): New function.
16169 (pass_data_warn_printf): New variable.
16170 (pass_warn_printf): New class.
16171 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
16172 (handle_printf_call): Same.
16173 * tree-vrp.c (value_range_base::type): Adjust assertion.
16174 * vr-values.c (vr_values::update_value_range): Use type of the first
16175 argument rather than the second.
16177 2019-08-26 Richard Biener <rguenther@suse.de>
16179 * config/i386/i386-features.c (general_remove_non_convertible_regs):
16181 (convert_scalars_to_vector): Do not call it.
16183 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
16184 Uros Bizjak <ubizjak@gmail.com>
16186 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
16187 CASE_MATHFN_FLOATN for roundeven.
16188 * config/i386/i386.c (ix86_i387_mode_needed): Add case
16190 (ix86_mode_needed): Likewise.
16191 (ix86_mode_after): Likewise.
16192 (ix86_mode_entry): Likewise.
16193 (ix86_mode_exit): Likewise.
16194 (ix86_emit_mode_set): Likewise.
16195 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
16196 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
16197 (ix86_entity): Add I387_ROUNDEVEN.
16198 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
16199 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
16200 (define_int_iterator): Likewise.
16201 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
16202 (define_constant): Define ROUND_ROUNDEVEN mode.
16203 (define_attr): Add roundeven mode for i387_cw.
16204 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
16205 * internal-fn.def (ROUNDEVEN): New builtin function.
16206 * optabs.def (roundeven_optab): New optab.
16208 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
16210 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
16212 * builtins.def: Added function definitions for roundeven function
16214 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
16215 function call. Adjust condition for floor, ceil, trunc and round.
16216 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
16217 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
16218 (integer_valued_real_call_p): Added case for roundeven function.
16219 * real.c (is_even): New function. Returns true if real number is even,
16220 otherwise returns false.
16221 (is_halfway_below): New function. Returns true if real number is
16222 halfway between two integers, else return false.
16223 (real_roundeven): New function. Round real number to nearest integer,
16224 rounding halfway cases towards even.
16225 * real.h (real_value): Added descriptive comments. Added function
16226 declaration for roundeven function.
16227 * doc/extend.texi (Other Builtins): List roundeven variants among
16228 functions which can be handled as builtins.
16230 2019-08-26 Richard Biener <rguenther@suse.de>
16234 * config/i386/i386-features.h (general_scalar_chain::defs_map):
16236 (general_scalar_chain::replace_with_subreg): Remove.
16237 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
16238 (general_scalar_chain::convert_reg): Adjust signature.
16239 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
16240 iterate over all defs of a reg.
16241 (general_scalar_chain::replace_with_subreg): Remove.
16242 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
16243 (general_scalar_chain::make_vector_copies): Populate defs_map,
16244 place copy only after defs that are used as vectors in the chain.
16245 (general_scalar_chain::convert_reg): Emit a copy for a specific
16246 def in a specific instruction.
16247 (general_scalar_chain::convert_op): All reg uses are converted here.
16248 (general_scalar_chain::convert_insn): Emit copies for scalar
16249 uses of defs here. Replace uses with the copies we created.
16250 Replace and convert the def. Adjust REG_DEAD notes, remove
16251 REG_EQUIV/EQUAL notes.
16252 (general_scalar_chain::convert_registers): Only handle copies
16253 into the chain here.
16255 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
16257 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
16259 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
16261 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
16262 Add nop_convert case.
16263 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
16264 Fold all statements if requested.
16265 * tree-ssa-propagate.h (class substitute_and_fold_engine):
16266 Allow to fold all statements.
16267 * tree-vrp.c (class vrp_folder):
16268 Let substitute_and_fold_engine fold all statements.
16270 2019-08-26 Richard Biener <rguenther@suse.de>
16272 PR tree-optimization/91526
16273 * passes.def: Note that after late FRE we do TODO_update_address_taken.
16274 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
16275 TODO_update_address_taken.
16277 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
16279 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
16282 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16284 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
16285 machine mode for unspec_volatile operand.
16287 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
16289 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
16290 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
16291 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
16292 (prefer_neon_for_64bits): Remove.
16293 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
16294 (tune_params): Remove PREF_NEON_64_FALSE uses.
16295 (arm_option_override): Remove prefer_neon selection code.
16296 (arm_print_tune_info): Remove prefer_neon_for_64bits.
16297 * config/arm/arm-protos.h (tune_params): Remove
16298 prefer_neon_for_64bits.
16299 (prefer_neon_for_64bits): Remove.
16301 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
16304 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
16305 and issue any diagnostics needed before collecting the pre-PCH
16308 2019-08-23 Jakub Jelinek <jakub@redhat.com>
16310 PR middle-end/91283
16311 * common.opt (fexcess-precision=): Add Optimization flag. Use
16312 flag_excess_precision variable instead of
16313 flag_excess_precision_cmdline.
16314 * flags.h (class target_flag_state): Remove x_flag_excess_precision
16316 (flag_excess_precision): Don't define.
16317 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
16318 flag_excess_precision_cmdline. Remove comment.
16319 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
16320 and x_flag_excess_precision instead of
16321 frontend_set_flag_excess_precision_cmdline and
16322 x_flag_excess_precision_cmdline.
16323 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
16324 x_flag_excess_precision_cmdline.
16325 * toplev.c (init_excess_precision): Remove.
16326 (lang_dependent_init_target): Don't call it.
16328 2019-08-23 Martin Liska <mliska@suse.cz>
16330 * lto-wrapper.c (run_gcc): When setting jobserver
16331 set also parallel to 1. This was done so before r273908.
16333 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
16335 * config/arm/arm-cpus.in (cortex-m35p): New entry.
16336 (cortex-a76ae): Likewise.
16337 (cortex-a77): Likewise
16338 * config/arm/arm-tables.opt: Regenerate.
16339 * config/arm/arm-tune.md: Likewise.
16340 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
16341 cortex-a77 CPU options.
16343 2019-08-23 Martin Liska <mliska@suse.cz>
16345 * profile.c (instrument_values): Do not set
16346 0 as last argument.
16347 * tree-profile.c (gimple_gen_interval_profiler): Remove
16349 (gimple_gen_pow2_profiler): Likewise.
16350 (gimple_gen_topn_values_profiler): Likewise.
16351 (gimple_gen_ic_profiler): Likewise.
16352 (gimple_gen_time_profiler): Likewise.
16353 (gimple_gen_average_profiler): Likewise.
16354 (gimple_gen_ior_profiler): Likewise.
16355 * value-prof.c (dump_histogram_value): Use default
16356 in switch statement instead of HIST_TYPE_MAX.
16357 (stream_in_histogram_value): Likewise.
16358 (gimple_duplicate_stmt_histograms): Do not
16359 use NULL for implicitly set arguments.
16360 (gimple_divmod_values_to_profile): Do not use
16361 reserve+quick_push.
16362 (gimple_indirect_call_to_profile): Likewise.
16363 (gimple_find_values_to_profile): Use implicit
16364 function call arguments.
16365 * value-prof.h (gimple_alloc_histogram_value):
16366 Set default values.
16367 (gimple_gen_interval_profiler): Remove last argument.
16368 (gimple_gen_pow2_profiler): Likewise.
16369 (gimple_gen_topn_values_profiler): Likewise.
16370 (gimple_gen_ic_profiler): Likewise.
16371 (gimple_gen_time_profiler): Likewise.
16372 (gimple_gen_average_profiler): Likewise.
16373 (gimple_gen_ior_profiler): Likewise.
16375 2019-08-22 Martin Sebor <msebor@redhat.com>
16377 PR middle-end/91490
16378 * builtins.c (c_strlen): Rename argument and introduce new local.
16379 Set no-warning bit on original argument.
16380 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
16381 Fold empty and zero constructors into empty strings.
16382 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
16383 for missing initializers.
16384 * tree.c (build_string_literal): Handle optional argument.
16385 * tree.h (build_string_literal): Add defaulted argument.
16386 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
16387 no-warning bit on original expression.
16389 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
16392 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
16393 and UNSPEC_DARN_RAW.
16394 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
16396 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
16397 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
16398 (darn): Use an unspec_volatile, and UNSPECV_DARN.
16400 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
16402 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
16403 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
16404 * config/rs6000/rs6000.md (unspec): ... here.
16405 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
16406 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
16407 cmpeqb, *cmpeqb_internal): Delete, move to...
16408 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
16409 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
16410 cmpeqb, *cmpeqb_internal): ... here.
16412 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16414 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
16415 intrinsics if __ARM_FP.
16416 Use __ARM_FEATURE_CRC32 ifdef guard.
16418 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
16420 * config/arm/arm.md (neon_for_64bits): Remove.
16421 (avoid_neon_for_64bits): Remove.
16422 (arm_adddi3): Always split early.
16423 (arm_subdi3): Always split early.
16424 (negdi2): Remove Neon expansion.
16425 (split zero_extend): Split before reload.
16426 (split sign_extend): Split before reload.
16428 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
16430 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
16431 (qhs_extenddi_cstr): Likewise.
16432 * config/arm/arm.md (ashldi3): Always expand early.
16433 (ashlsi3): Likewise.
16434 (ashrsi3): Likewise.
16435 (zero_extend<mode>di2): Remove Neon variants.
16436 (extend<mode>di2): Likewise.
16437 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
16438 (signed_shift_di3_neon): Likewise.
16439 (unsigned_shift_di3_neon): Likewise.
16440 (ashrdi3_neon_imm_noclobber): Likewise.
16441 (lshrdi3_neon_imm_noclobber): Likewise.
16442 (<shift>di3_neon): Likewise.
16443 (split extend): Remove DI extend split patterns.
16445 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
16447 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
16448 (split not): Add DImode not splitter.
16449 (anddi3): Remove pattern.
16450 (anddi3_insn): Likewise.
16451 (anddi_zesidi_di): Likewise.
16452 (anddi_sesdi_di): Likewise.
16453 (anddi_notdi_di): Likewise.
16454 (anddi_notzesidi_di): Likewise.
16455 (anddi_notsesidi_di): Likewise.
16456 (iordi3): Likewise.
16457 (iordi3_insn): Likewise.
16458 (iordi_zesidi_di): Likewise.
16459 (iordi_sesidi_di): Likewise.
16460 (xordi3): Likewise.
16461 (xordi3_insn): Likewise.
16462 (xordi_sesidi_di): Likewise.
16463 (xordi_zesidi_di): Likewise.
16464 (one_cmpldi2): Likewise.
16465 (one_cmpldi2_insn): Likewise.
16466 * config/arm/constraints.md: Remove De, Df, Dg constraints.
16467 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
16469 (iwmmxt_xordi3): Likewise.
16470 (iwmmxt_anddi3): Likewise.
16471 * config/arm/neon.md (orndi3_neon): Remove pattern.
16472 (anddi_notdi_di): Likewise.
16473 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
16474 (arm_iordi_operand_neon): Likewise.
16475 (arm_xordi_operand_neon): Likewise.
16476 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
16477 (iordi_notzesidi_di): Likewise.
16478 (iordi_notdi_zesidi): Likewise.
16479 (iordi_notsesidi_di): Likewise.
16481 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
16483 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
16485 (iorsi3_compare0_scratch): Likewise.
16487 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
16489 * config/aarch64/aarch64-simd-builtins.def:
16492 * config/aarch64/aarch64-simd.md:
16493 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
16494 (aarch64_st1x4<VALLDIF:mode>): Likewise.
16495 (aarch64_ld1_x4_<mode>): Likewise.
16496 (aarch64_st1_x4_<mode>): Likewise.
16497 * config/aarch64/arm_neon.h:
16498 (vld1_s8_x4): New function.
16499 (vld1q_s8_x4): Likewise.
16500 (vld1_s16_x4): Likewise.
16501 (vld1q_s16_x4): Likewise.
16502 (vld1_s32_x4): Likewise.
16503 (vld1q_s32_x4): Likewise.
16504 (vld1_u8_x4): Likewise.
16505 (vld1q_u8_x4): Likewise.
16506 (vld1_u16_x4): Likewise.
16507 (vld1q_u16_x4): Likewise.
16508 (vld1_u32_x4): Likewise.
16509 (vld1q_u32_x4): Likewise.
16510 (vld1_f16_x4): Likewise.
16511 (vld1q_f16_x4): Likewise.
16512 (vld1_f32_x4): Likewise.
16513 (vld1q_f32_x4): Likewise.
16514 (vld1_p8_x4): Likewise.
16515 (vld1q_p8_x4): Likewise.
16516 (vld1_p16_x4): Likewise.
16517 (vld1q_p16_x4): Likewise.
16518 (vld1_s64_x4): Likewise.
16519 (vld1_u64_x4): Likewise.
16520 (vld1_p64_x4): Likewise.
16521 (vld1q_s64_x4): Likewise.
16522 (vld1q_u64_x4): Likewise.
16523 (vld1q_p64_x4): Likewise.
16524 (vld1_f64_x4): Likewise.
16525 (vld1q_f64_x4): Likewise.
16526 (vst1_s8_x4): Likewise.
16527 (vst1q_s8_x4): Likewise.
16528 (vst1_s16_x4): Likewise.
16529 (vst1q_s16_x4): Likewise.
16530 (vst1_s32_x4): Likewise.
16531 (vst1q_s32_x4): Likewise.
16532 (vst1_u8_x4): Likewise.
16533 (vst1q_u8_x4): Likewise.
16534 (vst1_u16_x4): Likewise.
16535 (vst1q_u16_x4): Likewise.
16536 (vst1_u32_x4): Likewise.
16537 (vst1q_u32_x4): Likewise.
16538 (vst1_f16_x4): Likewise.
16539 (vst1q_f16_x4): Likewise.
16540 (vst1_f32_x4): Likewise.
16541 (vst1q_f32_x4): Likewise.
16542 (vst1_p8_x4): Likewise.
16543 (vst1q_p8_x4): Likewise.
16544 (vst1_p16_x4): Likewise.
16545 (vst1q_p16_x4): Likewise.
16546 (vst1_s64_x4): Likewise.
16547 (vst1_u64_x4): Likewise.
16548 (vst1_p64_x4): Likewise.
16549 (vst1q_s64_x4): Likewise.
16550 (vst1q_u64_x4): Likewise.
16551 (vst1q_p64_x4): Likewise.
16552 (vst1_f64_x4): Likewise.
16553 (vst1q_f64_x4): Likewise.
16555 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16557 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
16559 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16560 Richard Sandiford <richard.sandiford@arm.com>
16563 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
16564 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
16566 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16569 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
16570 in reg if it fails aarch64_plus_operand predicate.
16572 2019-08-21 Richard Biener <rguenther@suse.de>
16574 PR tree-optimization/91482
16575 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
16576 BUILT_IN_ASSUME_ALIGNED calls.
16578 2019-08-21 Richard Biener <rguenther@suse.de>
16582 * config/i386/i386-features.c
16583 (general_scalar_chain::make_vector_copies): Copy stack temporary
16584 rtx when using it multiple times.
16585 (general_scalar_chain::convert_reg): Likewise.
16587 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16589 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
16591 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
16593 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
16594 catch more redundant zero initialization cases.
16595 (dse_dom_walker::dse_optimize_stmt): Likewise.
16597 2019-08-20 Richard Biener <rguenther@suse.de>
16600 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
16601 by collect2 when targetm.have_ctors_dtors which avoids dragging
16602 in temporary filenames from LTO input objects.
16604 2019-08-20 Richard Biener <rguenther@suse.de>
16606 PR tree-optimization/37242
16607 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
16608 to (T)a + (T)b if we know that a + b does not overflow.
16610 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
16612 PR rtl-optimization/91347
16613 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
16614 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
16616 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16618 * calls.h (function_arg_info): Add a pass_by_reference field,
16619 defaulting to false.
16620 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
16621 when applying pass-by-reference semantics.
16622 (initialize_argument_information): Likewise.
16623 (emit_library_call_value_1): Likewise.
16624 * function.c (assign_parm_data_one): Remove passed_pointer field.
16625 (assign_parm_find_data_types): Don't set it.
16626 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
16627 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
16628 arg.pass_by_reference instead of passed_pointer.
16630 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16632 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
16633 into a single function_arg_info, updating its fields when we
16634 apply pass-by-reference and promotion semantics. Use the
16635 function_arg_info to track the mode rather than keeping it in
16636 a separate local variable.
16637 (initialize_argument_information): Likewise. Base the final
16638 arg_to_skip on this new function_arg_info rather than creating
16639 a new one from scratch.
16641 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16643 * function.c (assign_parm_data_one): Replace passed_type,
16644 promoted_mode and named_arg with a function_arg_info field.
16645 (assign_parm_find_data_types): Remove local variables and
16646 assign directly to "data". Make data->passed_mode shadow
16647 data->arg.mode until promotion, then assign the promoted
16648 mode to data->arg.mode.
16649 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
16650 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
16651 (assign_parm_remove_parallels, assign_parm_setup_block_p)
16652 (assign_parm_setup_block, assign_parm_setup_reg)
16653 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
16654 arg.mode instead of promoted_mode, arg.type instead of passed_type
16655 and arg.named instead of named_arg. Use data->arg for
16656 function_arg_info structures that had the field values passed_type,
16657 promoted_mode and named_arg. Base other function_arg_infos on
16658 data->arg, changing the necessary properties.
16660 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16662 * calls.h (apply_pass_by_reference_rules): Declare.
16663 * calls.c (apply_pass_by_reference_rules): New function.
16664 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
16665 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
16666 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
16667 * function.c (assign_parm_find_data_types): Likewise.
16668 * var-tracking.c (prepare_call_arguments): Likewise.
16670 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16672 * target.def (must_pass_in_stack): Take a function_arg_info instead
16673 of a mode and a type.
16674 * doc/tm.texi: Regenerate.
16675 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
16676 instead of a mode and a type.
16677 (must_pass_in_stack_var_size_or_pad): Likewise.
16678 * calls.c (must_pass_in_stack_var_size): Likewise.
16679 (must_pass_in_stack_var_size_or_pad): Likewise.
16680 (initialize_argument_information): Update call to
16681 targetm.calls.must_pass_in_stack.
16682 (must_pass_va_arg_on_stack): Likewise.
16683 * function.c (assign_parm_find_entry_rtl): Likewise.
16684 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
16685 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16686 (alpha_function_arg_advance): Likewise.
16687 * config/cr16/cr16.c (cr16_function_arg): Likewise.
16688 (cr16_function_arg_advance): Likewise.
16689 * config/cris/cris.c (cris_pass_by_reference): Likewise.
16690 (cris_arg_partial_bytes): Likewise.
16691 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16692 * config/lm32/lm32.c (lm32_function_arg): Likewise.
16693 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
16694 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
16695 * config/mips/mips.c (mips_pass_by_reference): Likewise.
16696 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
16697 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
16698 * config/sh/sh.c (sh_pass_by_reference): Likewise.
16699 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16700 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
16701 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
16702 instead of a mode and a type.
16703 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
16704 (fr30_num_arg_regs): Likewise.
16705 (fr30_setup_incoming_varargs): Update calls accordingly.
16706 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
16707 (fr30_function_arg_advance): Likewise.
16708 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
16709 instead of a mode and a type.
16710 * config/gcn/gcn.c (num_arg_regs): Likewise.
16711 (gcn_function_arg, gcn_function_arg_advance): Update calls to
16712 num_arg_regs and targetm.calls.must_pass_in_stack.
16713 (gcn_arg_partial_bytes): Likewise.
16714 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
16715 function_arg_info instead of a mode and a type.
16716 (classify_argument): Update call accordingly.
16717 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
16718 function_arg_info instead of a mode and a type.
16719 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
16721 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
16722 (rs6000_parm_needs_stack): Update call accordingly.
16723 (setup_incoming_varargs): Likewise.
16725 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16727 * target.def (callee_copies): Take a function_arg_info instead
16728 of a mode, type and named flag.
16729 * doc/tm.texi: Regenerate.
16730 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
16731 instead of a mode, type and named flag.
16732 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16733 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16734 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16735 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
16736 instead of a mode, type and named flag.
16737 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
16738 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
16739 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
16740 * calls.h (reference_callee_copied): Take a function_arg_info
16741 instead of a mode, type and named flag.
16742 * calls.c (reference_callee_copied): Likewise.
16743 (initialize_argument_information): Update call accordingly.
16744 (emit_library_call_value_1): Likewise.
16745 * function.c (gimplify_parameters): Likewise.
16746 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
16747 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
16748 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
16749 * config/c6x/c6x.c (c6x_callee_copies): Delete.
16750 (TARGET_CALLEE_COPIES): Define to
16751 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16752 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
16753 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16754 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16755 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
16756 instead of a mode, type and named flag.
16757 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
16758 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16759 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16760 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
16761 * config/msp430/msp430.c (msp430_callee_copies): Delete.
16762 (TARGET_CALLEE_COPIES): Define to
16763 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
16764 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
16765 instead of a mode, type and named flag.
16766 * config/sh/sh.c (sh_callee_copies): Likewise.
16767 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
16768 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
16769 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
16771 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16773 * target.def (function_arg_advance): Take a function_arg_info instead
16774 of a mode, type and named flag.
16775 * doc/tm.texi: Regenerate.
16776 * targhooks.h (default_function_arg_advance): Take a function_arg_info
16777 instead of a mode, type and named flag.
16778 * targhooks.c (default_function_arg_advance): Likewise.
16779 * calls.c (initialize_argument_information): Update call to
16780 targetm.calls.function_arg_advance.
16781 (emit_library_call_value_1): Likewise.
16782 * dse.c (get_call_args): Likewise.
16783 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16784 * function.c (assign_parms, gimplify_parameters): Likewise.
16785 * var-tracking.c (prepare_call_arguments): Likewise.
16786 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
16787 function_arg_info instead of a mode, type and named flag.
16788 (aarch64_setup_incoming_varargs): Update call accordingly.
16789 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
16790 function_arg_info instead of a mode, type and named flag.
16791 (alpha_setup_incoming_varargs): Update call accordingly.
16792 * config/arc/arc.c (arc_function_arg_advance): Take a
16793 function_arg_info instead of a mode, type and named flag.
16794 (arc_setup_incoming_varargs): Update call accordingly.
16795 * config/arm/arm.c (arm_function_arg_advance): Take a
16796 function_arg_info instead of a mode, type and named flag.
16797 (cmse_func_args_or_return_in_stack): Update call accordingly.
16798 (arm_function_ok_for_sibcall): Likewise.
16799 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16800 * config/avr/avr.c (avr_function_arg_advance): Take a
16801 function_arg_info instead of a mode, type and named flag.
16802 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
16803 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
16804 (c6x_call_saved_register_used): Update call accordingly.
16805 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
16806 function_arg_info instead of a mode, type and named flag.
16807 * config/cris/cris.c (cris_function_arg_advance): Likewise.
16808 * config/csky/csky.c (csky_function_arg_advance): Likewise.
16809 (csky_setup_incoming_varargs): Update call accordingly.
16810 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
16811 function_arg_info instead of a mode, type and named flag.
16812 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
16813 * config/frv/frv.c (frv_function_arg_advance): Likewise.
16814 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
16815 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
16816 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
16817 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
16818 (ix86_setup_incoming_varargs): Update call accordingly.
16819 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
16820 function_arg_info instead of a mode, type and named flag.
16821 (ia64_setup_incoming_varargs): Update call accordingly.
16822 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
16823 function_arg_info instead of a mode, type and named flag.
16824 (iq2000_expand_prologue): Update call accordingly.
16825 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
16826 function_arg_info instead of a mode, type and named flag.
16827 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
16828 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
16829 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
16830 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
16831 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
16833 (microblaze_expand_prologue): Update call accordingly.
16834 * config/mips/mips.c (mips_function_arg_advance): Take a
16835 function_arg_info instead of a mode, type and named flag.
16836 (mips_setup_incoming_varargs): Update call accordingly.
16837 (mips_output_args_xfer): Likewise.
16838 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
16839 function_arg_info instead of a mode, type and named flag.
16840 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
16841 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
16842 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
16843 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
16844 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
16845 (nios2_setup_incoming_varargs): Update call accordingly.
16846 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
16847 function_arg_info instead of a mode, type and named flag.
16848 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
16849 * config/pa/pa.c (pa_function_arg_advance): Likewise.
16850 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
16851 * config/pru/pru.c (pru_function_arg_advance): Likewise.
16852 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
16853 (riscv_setup_incoming_varargs): Update call accordingly.
16854 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
16855 function_arg_info instead of a mode, type and named flag.
16856 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
16858 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
16859 (rs6000_parm_needs_stack): Update call accordingly.
16860 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
16861 instead of a mode, type and named flag.
16862 * config/s390/s390.c (s390_function_arg_advance): Likewise.
16863 (s390_call_saved_register_used): Update call accordingly.
16864 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
16865 instead of a mode, type and named flag.
16866 (sh_output_mi_thunk): Update call accordingly.
16867 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16868 function_arg_info instead of a mode, type and named flag.
16869 * config/spu/spu.c (spu_function_arg_advance): Likewise.
16870 (spu_setup_incoming_varargs): Update call accordingly.
16871 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16872 function_arg_info instead of a mode, type and named flag.
16873 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16874 (tilegx_setup_incoming_varargs): Update call accordingly.
16875 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16876 function_arg_info instead of a mode, type and named flag.
16877 (tilegx_setup_incoming_varargs): Update call accordingly.
16878 * config/v850/v850.c (v850_function_arg_advance): Take a
16879 function_arg_info instead of a mode, type and named flag.
16880 * config/vax/vax.c (vax_function_arg_advance): Likewise.
16881 * config/visium/visium.c (visium_function_arg_advance): Likewise.
16882 (visium_setup_incoming_varargs): Update call accordingly.
16883 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16884 function_arg_info instead of a mode, type and named flag.
16886 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16888 * target.def (function_arg, function_incoming_arg): Take a
16889 function_arg_info instead of a mode, tree and named flag.
16890 * doc/tm.texi: Regenerate.
16891 * targhooks.h (default_function_arg): Take a function_arg_info
16892 instead of a mode, tree and named flag.
16893 (default_function_incoming_arg): Likewise.
16894 * targhooks.c (default_function_arg): Likewise.
16895 (default_function_incoming_arg): Likewise.
16896 * calls.h (function_arg_info::end_marker_p): New function.
16897 (function_arg_info::end_marker): Likewise.
16898 * calls.c (prepare_call_address, initialize_argument_information)
16899 (expand_call, emit_library_call_value_1): Update calls to
16900 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16901 * dse.c: Include calls.h.
16902 (get_call_args): Update call to targetm.calls.function_arg.
16903 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16904 * var-tracking.c (prepare_call_arguments): Likewise.
16905 * function.c (assign_parm_find_entry_rtl): Update call to
16906 targetm.calls.function_incoming_arg.
16907 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16908 function_arg_info instead of a mode, tree and named flag.
16909 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16910 * config/arc/arc.c (arc_function_arg): Likewise.
16911 * config/arm/arm.c (arm_function_arg): Likewise.
16912 (cmse_func_args_or_return_in_stack): Update call accordingly.
16913 (arm_function_ok_for_sibcall): Likewise.
16914 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16915 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16916 instead of a mode, tree and named flag.
16917 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16918 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16919 (c6x_call_saved_register_used): Update call accordingly.
16920 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16921 instead of a mode, tree and named flag.
16922 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16923 (cris_function_arg_1): Likewise.
16924 * config/csky/csky.c (csky_function_arg): Likewise.
16925 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16926 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16927 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16928 (frv_function_arg_1): Likewise.
16929 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16930 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16931 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16932 * config/i386/i386.c (ix86_function_arg): Likewise.
16933 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16934 (ia64_function_arg_1): Likewise.
16935 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16936 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16938 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16939 instead of a mode, tree and named flag.
16940 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16941 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16942 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16943 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16944 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16945 (microblaze_expand_prologue): Update call accordingly.
16946 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16947 instead of a mode, tree and named flag.
16948 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16949 (mmix_function_arg_1): Likewise.
16950 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16951 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16952 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16953 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16954 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16955 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16956 (nvptx_function_incoming_arg): Likewise.
16957 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16958 * config/pa/pa.c (pa_function_arg): Likewise.
16959 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16960 * config/pru/pru.c (pru_function_arg): Likewise.
16961 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16962 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16963 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16964 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16965 (rs6000_parm_needs_stack): Update call accordingly.
16966 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16967 instead of a mode, tree and named flag.
16968 * config/s390/s390.c (s390_function_arg): Likewise.
16969 (s390_call_saved_register_used): Update call accordingly.
16970 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16971 instead of a mode, tree and named flag.
16972 (sh_output_mi_thunk): Update call accordingly.
16973 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16974 (sparc_function_incoming_arg): Take a function_arg_info instead of
16975 a mode, tree and named flag.
16976 * config/spu/spu.c (spu_function_arg): Likewise.
16977 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16978 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16979 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16980 * config/v850/v850.c (v850_function_arg): Likewise.
16981 * config/vax/vax.c (vax_function_arg): Likewise.
16982 * config/visium/visium.c (visium_function_arg): Likewise.
16983 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16984 (xtensa_function_incoming_arg): Likewise.
16986 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16988 * target.def (setup_incoming_varargs): Take a function_arg_info
16989 instead of a mode and tree.
16990 * doc/tm.texi: Regenerate.
16991 * targhooks.h (default_setup_incoming_varargs): Take a
16992 function_arg_info instead of a mode and tree.
16993 * targhooks.c (default_setup_incoming_varargs): Likewise.
16994 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16995 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16996 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16997 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16998 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16999 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
17000 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
17001 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
17003 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
17004 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
17005 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
17006 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
17007 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
17008 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
17009 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17010 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
17011 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
17012 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
17013 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
17014 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
17015 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
17016 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
17017 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
17018 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
17019 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
17020 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
17021 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
17022 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
17023 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
17024 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
17025 * function.c (assign_parms_setup_varargs): Update call to
17026 targetm.calls.setup_incoming_varargs.
17028 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
17030 * target.def (pass_by_reference): Take a function_arg_info instead
17031 of a mode, type and named flag.
17032 * doc/tm.texi: Regenerate.
17033 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
17035 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
17036 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
17037 function_arg_info instead of a mode, type and named flag.
17038 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
17039 * calls.h (pass_by_reference): Take a function_arg_info instead of a
17040 mode, type and named flag.
17041 * calls.c (pass_by_reference): Likewise.
17042 (pass_va_arg_by_reference): Update call accordingly.
17043 (initialize_argument_information): Likewise.
17044 (emit_library_call_value_1): Likewise.
17045 * function.c (assign_parm_find_data_types): Likewise.
17046 * var-tracking.c (prepare_call_arguments): Likewise.
17047 * stor-layout.c: Include calls.h.
17048 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
17049 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
17050 function_arg_info instead of a mode, type and named flag.
17051 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
17052 * config/arc/arc.c (arc_pass_by_reference): Likewise.
17053 * config/arm/arm.c (arm_pass_by_reference): Likewise.
17054 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
17055 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
17056 (c6x_call_saved_register_used): Update call to pass_by_reference.
17057 * config/cris/cris.c (cris_pass_by_reference): Take a
17058 function_arg_info instead of a mode, type and named flag.
17059 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
17060 function_arg_info instead of a mode, type and named flag.
17061 (epiphany_arg_partial_bytes): Update call accordingly.
17062 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
17063 function_arg_info instead of a mode, type and named flag.
17064 (ft32_arg_partial_bytes): Update call accordingly.
17065 * config/i386/i386.c (ix86_pass_by_reference): Take a
17066 function_arg_info instead of a mode, type and named flag.
17067 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
17068 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
17069 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
17070 (m32r_return_in_memory): Update call accordingly.
17071 * config/mips/mips.c (mips_pass_by_reference): Take a
17072 function_arg_info instead of a mode, type and named flag.
17073 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
17074 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
17075 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
17076 (moxie_arg_partial_bytes): Update call accordingly.
17077 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
17078 function_arg_info instead of a mode, type and named flag.
17079 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
17080 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
17081 * config/pa/pa.c (pa_pass_by_reference): Likewise.
17082 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
17083 (riscv_return_in_memory): Update call accordingly.
17084 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
17085 function_arg_info instead of a mode, type and named flag.
17086 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
17087 (rs6000_parm_needs_stack): Update call to pass_by_reference.
17088 * config/s390/s390.c (s390_pass_by_reference): Take a
17089 function_arg_info instead of a mode, type and named flag.
17090 (s390_call_saved_register_used): Update call accordingly.
17091 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
17092 instead of a mode, type and named flag.
17093 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
17094 * config/spu/spu.c (spu_pass_by_reference): Likewise.
17095 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
17096 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
17097 * config/v850/v850.c (v850_pass_by_reference): Likewise.
17098 * config/visium/visium.c (visium_pass_by_reference): Likewise.
17100 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
17102 * target.def (arg_partial_bytes): Take a function_arg_info instead
17103 of a mode, type and named flag.
17104 * doc/tm.texi: Regenerate.
17105 * target.h (function_arg_info): Declare.
17106 * calls.h (function_arg_info): New class.
17107 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
17108 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
17109 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
17110 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
17111 * calls.c (initialize_argument_information): Update call to
17112 targetm.calls.partial_bytes.
17113 (emit_library_call_value_1): Likewise.
17114 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
17115 * function.c (assign_parm_find_entry_rtl): Likewise.
17116 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
17117 function_arg_info instead of a mode, type and named flag.
17118 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
17119 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
17120 (cmse_func_args_or_return_in_stack): Update accordingly.
17121 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
17122 function_arg_info instead of a mode, type and named flag.
17123 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
17124 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
17125 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
17126 * config/fr30/fr30.c: Include calls.h.
17127 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
17128 type and named flag.
17129 * config/frv/frv.c: Include calls.h.
17130 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
17131 type and named flag.
17132 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
17133 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
17134 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
17135 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
17136 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
17137 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
17138 * config/microblaze/microblaze.c (function_arg_partial_bytes):
17140 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
17141 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
17142 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
17143 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
17144 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
17145 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
17146 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
17147 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
17148 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
17149 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
17150 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
17151 (rs6000_parm_needs_stack): Update call accordingly.
17152 * config/sh/sh.c (sh_arg_partial_bytes): Take a
17153 function_arg_info instead of a mode, type and named flag.
17154 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
17155 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
17157 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
17159 * calls.h (must_pass_va_arg_in_stack): Declare.
17160 * calls.c (must_pass_va_arg_in_stack): New function.
17161 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
17162 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
17163 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
17165 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
17169 * calls.h (pass_va_arg_by_reference): Declare.
17170 * calls.c (pass_va_arg_by_reference): New function.
17171 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
17172 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
17173 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
17174 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
17175 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17176 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
17177 (mips_gimplify_va_arg_expr): Likewise.
17178 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
17179 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17180 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
17181 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17182 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17183 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17184 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
17185 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
17186 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
17187 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
17188 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17190 2019-08-20 Richard Biener <rguenther@suse.de>
17193 * config/i386/i386-features.c (general_scalar_chain::convert_op):
17194 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
17195 (convert_scalars_to_vector): Add timode_p parameter and use it
17196 to guard TImode-only operation.
17197 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
17198 (pass_stv::execute): Pass down timode_p.
17200 2019-08-20 Lili Cui <lili.cui@intel.com>
17202 * common/config/i386/i386-common.c
17203 (processor_names): Add tigerlake and cooperlake.
17204 (processor_alias_table): Add tigerlake and cooperlake.
17205 * config.gcc: Add -march=tigerlake and cooperlake.
17206 * config/i386/driver-i386.c
17207 (host_detect_local_cpu): Detect tigerlake and cooperlake.
17208 Add "has_avx" to classify processor.
17209 * config/i386/i386-builtins.c (processor_model) :
17210 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
17211 (arch_names_table): Add tigerlake and cooperlake.
17212 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
17213 and PROCESSOR_COOPERLAKE.
17214 * config/i386/i386-c.c
17215 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
17216 * config/i386/i386-options.c
17217 (m_TIGERLAKE): Define.
17218 (m_COOPERLAKE): Ditto.
17219 (m_CORE_AVX512): Ditto.
17220 (processor_cost_table): Add cascadelake.
17221 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
17222 * config/i386/i386.h
17223 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
17224 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
17225 (PTA_MOVDIRI): Ditto.
17226 (PTA_MOVDIR64B): Ditto.
17227 (PTA_COOPERLAKE): Ditto.
17228 (PTA_TIGERLAKE): Ditto.
17229 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
17230 * doc/extend.texi: Add tigerlake and cooperlake.
17231 * doc/invoke.texi: Add tigerlake and cooperlake.
17233 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
17235 * doc/install.texi (Specific, alpha): Remove note to use
17236 binutils 2.11.2 or later.
17238 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17240 PR middle-end/89544
17241 * function.c (assign_parm_find_stack_rtl): Use larger alignment
17244 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
17246 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
17247 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
17248 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
17249 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
17250 * config/aarch64/constraints.md (Dt): New constraint
17251 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
17253 2019-08-19 Richard Biener <rguenther@suse.de>
17255 PR tree-optimization/91403
17256 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
17257 cases we can handle with tail-recursion...
17258 (follow_ssa_edge_expr): ... here. Do so.
17260 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
17263 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
17264 implemented for -fsanitize=kernel-address, and merge check logic
17265 with -fsanitize=address.
17267 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
17269 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
17270 for cpu and machine. Factor 64/32b builtins.
17272 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
17274 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
17275 gone, point to sourceforge.net.
17277 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
17279 * doc/ux.texi (User Experience Guidelines): Update reference.
17281 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
17283 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
17286 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
17288 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
17289 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
17291 2019-08-16 Martin Sebor <msebor@redhat.com>
17293 * tree.def (TYPE_SIZE): Clarify.
17294 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
17296 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
17298 PR tree-optimization/91109
17299 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
17300 * lra.c (lra): Use lra_need_for_scratch_reg_p.
17301 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
17303 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
17305 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
17306 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
17307 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
17308 (uavg<mode>3_ceil): New expander.
17309 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
17310 mode iterator when creating CONST1_RTX.
17311 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
17312 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
17313 mode iterator for const1_operand predicate.
17315 2019-08-16 Richard Biener <rguenther@suse.de>
17317 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
17318 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
17320 (follow_ssa_edge_in_condition_phi_branch): Likewise.
17321 (analyze_evolution_in_loop): Likewise.
17322 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
17323 (follow_ssa_edge_expr): ... here. Refactor code.
17325 2019-08-16 Richard Biener <rguenther@suse.de>
17328 * config/i386/i386-features.c
17329 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
17331 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17334 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
17335 only if subst_name matches curr_attr string.
17337 2019-08-16 Richard Biener <rguenther@suse.de>
17339 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
17340 stmt at gsi_p, instead replace it with a NOP removed later.
17341 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
17342 that became dead because of that.
17344 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
17346 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
17347 for which we can't represent a range.
17348 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
17350 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
17351 Set VR_UNDEFINED if type is not supported.
17352 * tree-ssanames.c (get_range_info): Pass type to set_varying.
17353 * tree-vrp.c (value_range_base::check): Assert that a varying has
17355 (value_range_base::equal_p): Early bail for undefines.
17356 (value_range_base::set_varying): Accept a type.
17357 (value_range::set_varying): Same.
17358 (value_range_base::type): VARYING can have a type, while UNDEFINE
17360 (value_range_base::dump): Print type for VARYING nodes.
17361 (value_range_base::set): Add type to VARYING.
17362 (extract_range_from_multiplicative_op): Pass type to set_varying.
17363 (extract_range_from_binary_expr): Same.
17364 (value_range_base::intersect_helper): Same.
17365 (value_range_base::union_helper): Same.
17366 (value_range_base::normalize_symbolics): Same.
17367 (determine_value_range_1): Same.
17368 * tree-vrp.h (class value_range_base): Add type to set_varying.
17369 Add prototype for dump(void).
17370 Add prototype for supports_type_p.
17371 (class value_range): Add type to set_varying.
17372 Add prototype for dump(void).
17373 * vr-values.c (set_value_range_to_truthvalue): Pass type to
17375 (vr_values::get_lattice_entry): Set varying even if propagation
17377 Pass type to set_varying.
17378 (vr_values::get_value_range): Remove vr_const_varying.
17379 Reallocate the lattice if needed.
17380 (vr_values::update_value_range): Pass type to set_varying.
17381 (vr_values::extract_range_for_var_from_comparison_expr): Same.
17382 (vr_values::extract_range_from_binary_expr): Same.
17383 (vr_values::extract_range_from_unary_expr): Same.
17384 (vr_values::extract_range_from_cond_expr): Same.
17385 (vr_values::check_for_binary_op_overflow): Same.
17386 (vr_values::extract_range_basic): Same.
17387 (vr_values::extract_range_from_assignment): Same.
17388 (vr_values::vr_values): Increase size of num_vr_values.
17389 (vr_values::extract_range_from_phi_node): Pass type to
17392 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
17395 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
17396 for costs of hard register moves.
17397 (ix86_register_move_cost): Likewise.
17398 * config/i386/i386.h (processor_costs): Move costs of hard
17399 register moves to hard_register. Add int_load, int_store,
17400 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
17401 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
17402 for costs of RTL expressions.
17403 * config/i386/x86-tune-costs.h: Move costs of hard register
17404 moves to hard_register. Duplicate int_load, int_store,
17405 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
17406 sse_load, sse_store for costs of RTL expressions.
17408 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17410 * target.def (setup_incoming_vararg_bounds): Remove.
17411 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
17412 * doc/tm.texi: Regenerate.
17413 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
17414 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
17415 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
17416 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
17418 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17420 MSP430: Fix lines over 80 characters long in
17421 config/msp430/*.{c,h} files
17423 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
17424 specifier in string.
17425 (msp430_select_hwmult_lib): Split line more than 80 characters long.
17426 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
17427 redundant old comment.
17428 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
17429 Split line more than 80 characters long.
17430 * config/msp430/msp430.c (msp430_option_override): Likewise.
17431 (msp430_return_in_memory): Likewise.
17432 (msp430_gimplify_va_arg_expr): Likewise.
17433 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
17434 (msp430_legitimate_constant): Likewise.
17435 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
17436 (msp430_attr): Likewise.
17437 (msp430_data_attr): Likewise.
17438 (msp430_start_function): Likewise.
17439 (gen_prefix): Likewise.
17440 (msp430_init_sections): Likewise.
17441 (msp430_select_section): Likewise.
17442 (msp430_function_section): Likewise.
17443 (msp430_unique_section): Likewise.
17444 (msp430_output_aligned_decl_common): Likewise.
17445 (msp430_do_not_relax_short_jumps): Likewise.
17446 (msp430_init_builtins): Likewise.
17447 (msp430_expand_delay_cycles): Likewise.
17448 (msp430_expand_prologue): Likewise.
17449 (msp430_expand_epilogue): Likewise.
17450 (msp430_expand_helper): Likewise.
17451 (msp430_split_movsi): Likewise.
17452 (msp430_print_operand): Likewise.
17453 (msp430_return_addr_rtx): Likewise.
17454 (msp430x_extendhisi): Likewise.
17455 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
17456 (ASM_SPEC): Likewise.
17457 Remove very obvious comments.
17458 (LIB_SPEC): Split line more than 80 characters long.
17459 (EH_RETURN_HANDLER_RTX): Likewise.
17460 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17462 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17464 MSP430: Fix whitespace errors and incorrect indentation in
17465 config/msp430/*.{c,h} files
17467 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
17468 (msp430_select_hwmult_lib): Likewise.
17469 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
17470 (msp430_extract_mcu_data): Likewise.
17471 (struct t_msp430_mcu_data): Likewise.
17472 * config/msp430/msp430.c (struct machine_function): Remove whitespace
17473 before left square bracket.
17474 (msp430_option_override): Fix indentation.
17475 (msp430_hard_regno_nregs_with_padding): Likewise.
17476 (msp430_initial_elimination_offset): Likewise.
17477 (msp430_special_register_convention_p): Remove whitespace before left
17478 square bracket and after exclamation mark.
17479 (msp430_evaluate_arg): Likewise.
17480 (msp430_callee_copies): Fix indentation.
17481 (msp430_gimplify_va_arg_expr): Likewise.
17482 (msp430_function_arg_advance): Remove whitespace before left square
17484 (reg_ok_for_addr): Likewise.
17485 (msp430_preserve_reg_p): Likewise.
17486 (msp430_compute_frame_info): Likewise.
17487 (msp430_asm_output_addr_const_extra): Add space between function name
17488 and open parenthesis.
17489 (has_section_name): Fix indentation.
17490 (msp430_attr): Remove trailing whitespace.
17491 (msp430_section_attr): Likewise.
17492 (msp430_data_attr): Likewise.
17493 (struct msp430_attribute_table): Fix comment and whitespace.
17494 (msp430_start_function): Remove whitespace before left square bracket.
17495 Add space between function name and open parenthesis.
17496 (msp430_select_section): Remove trailing whitespace.
17497 (msp430_section_type_flags): Remove trailing whitespace.
17498 (msp430_unique_section): Remove space before closing parenthesis.
17499 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
17500 (msp430_builtins): Remove whitespace before left square bracket.
17501 (msp430_init_builtins): Fix indentation.
17502 (msp430_expand_prologue): Remove whitespace before left square bracket.
17503 Remove space before closing parenthesis.
17504 (msp430_expand_epilogue): Remove whitespace before left square bracket.
17505 (msp430_split_movsi): Remove space before closing parenthesis.
17506 (helper_function_name_mappings): Fix indentation.
17507 (msp430_use_f5_series_hwmult): Fix whitespace.
17508 (use_32bit_hwmult): Likewise.
17509 (msp430_no_hwmult): Likewise.
17510 (msp430_output_labelref): Remove whitespace before left square bracket.
17511 (msp430_print_operand_raw): Likewise.
17512 (msp430_print_operand_addr): Likewise.
17513 (msp430_print_operand): Add two spaces after '.' in comment.
17514 Fix trailing whitespace.
17515 (msp430x_extendhisi): Fix indentation.
17516 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
17518 (PC_REGNUM): Likewise.
17519 (STACK_POINTER_REGNUM): Likewise.
17520 (CC_REGNUM): Likewise.
17522 2019-08-15 Richard Biener <rguenther@suse.de>
17525 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
17527 (general_scalar_chain::make_vector_copies): Use it.
17529 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
17531 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
17533 2019-08-15 Martin Liska <mliska@suse.cz>
17535 * tree-ssa-dce.c (propagate_necessity): We can't reach now
17536 operators with no arguments.
17537 (eliminate_unnecessary_stmts): Likewise here.
17539 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
17541 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
17542 <case COMPARE>: Revert 2019-08-14 change.
17543 (convertible_comparison_p): Revert 2019-08-14 change. Return false
17544 for (TARGET_64BIT || mode != DImode).
17546 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
17548 * tree-vrp.c (value_range_base::set): Merge in code from
17549 value_range_base::set_and_canonicalize.
17550 Enforce canonicalization at set time.
17551 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
17552 (value_range_base::set_undefined): Inline call to set().
17553 (value_range_base::set_varying): Same.
17554 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
17555 (vrp_val_max): New argument handle_pointers.
17556 (vrp_val_min): Same.
17557 (ranges_from_anti_range): Same.
17558 (extract_range_into_wide_ints): Use tree argument instead of sign
17560 (extract_range_from_multiplicative_op): Take in tree type instead
17561 of precision and sign. Adapt function for canonicalized ranges.
17562 (extract_range_from_binary_expr): Pass type to
17563 extract_range_from_multiplicative_op.
17564 Adapt for canonicalized ranges.
17565 (extract_range_from_unary_expr): Same.
17566 (value_range_base::intersect_helper): Adjust for canonicalized
17568 (value_range_base::union_helper): Same.
17569 (value_range_base::normalize_symbolics): New.
17570 * tree-vrp.h (class value_range_base): Remove
17571 set_and_canonicalize.
17572 New prototype for normalize_symbolics.
17573 (class value_range): Remove set_and_canonicalize.
17574 (vrp_val_min): Adjust prototype.
17575 (vrp_val_max): Same.
17577 (vr_values::extract_range_for_var_from_comparison_expr): Call set
17578 instead of set_and_canonicalize.
17580 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17582 PR middle-end/91444
17583 * tree-vect-stmts.c (vectorizable_call): Check that the function
17584 is a BUILT_IN_MD function before passing it to
17585 targetm.vectorize.builtin_md_vectorized_function.
17587 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17589 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
17590 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
17591 (aarch64_select_early_remat_modes): Use it.
17593 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17595 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
17596 16 for SVE predicates even if they are fixed-length.
17598 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17600 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
17601 operand order match the MOV /Z alias.
17603 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17605 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
17606 the vector pattern as an aarch64_svpattern argument. Update the
17607 overloaded caller accordingly.
17608 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
17609 (aarch64_output_sve_vector_inc_dec): Likewise.
17611 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17613 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
17614 multiplication case, try to compute VG * (lowest set bit) directly
17615 rather than always basing the multiplication on VG. Use
17616 expand_mult for the multiplication if we can.
17618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17620 * config/aarch64/aarch64-protos.h
17621 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
17622 (aarch64_sve_inc_dec_immediate_p): Rename to...
17623 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17624 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
17625 (aarch64_output_sve_scalar_inc_dec): Declare.
17626 (aarch64_output_sve_inc_dec_immediate): Rename to...
17627 (aarch64_output_sve_vector_inc_dec): ...this.
17628 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
17629 (aarch64_output_sve_scalar_inc_dec): New functions.
17630 (aarch64_output_sve_addvl_addpl): Remove the base and offset
17631 arguments. Only handle true ADDVL and ADDPL instructions;
17632 don't emit an INC or DEC.
17633 (aarch64_sve_inc_dec_immediate_p): Rename to...
17634 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
17635 (aarch64_output_sve_inc_dec_immediate): Rename to...
17636 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
17637 aarch64_sve_vector_inc_dec_immediate_p.
17638 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
17639 (aarch64_sve_plus_immediate): New predicates.
17640 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
17641 rather than aarch64_sve_addvl_addpl_immediate.
17642 (aarch64_sve_inc_dec_immediate): Rename to...
17643 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
17644 aarch64_sve_vector_inc_dec_immediate_p.
17645 (aarch64_sve_add_operand): Update accordingly.
17646 * config/aarch64/constraints.md (Uai): New constraint.
17647 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
17648 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
17649 operand into a register if it satisfies aarch64_sve_plus_immediate.
17650 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
17651 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
17652 * config/aarch64/aarch64-sve.md (add<mode>3): Call
17653 aarch64_output_sve_vector_inc_dec instead of
17654 aarch64_output_sve_inc_dec_immediate.
17656 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17658 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
17659 (UNSPEC_REVW): New constants.
17660 (elem_bits): New mode attribute.
17661 (SVE_INT_UNARY): New int iterator.
17662 (optab): Handle UNSPEC_REV[BHW].
17663 (sve_int_op): New int attribute.
17664 (min_elem_bits): Handle VNx16QI and the predicate modes.
17665 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
17666 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
17667 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
17668 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
17669 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
17670 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
17671 unspecs based on the total width of the reversed data.
17672 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
17673 reinterpret followed by a subreg on big-endian targets.
17675 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17676 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17678 * config/aarch64/aarch64-sve.md
17679 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
17680 alternatives in which one of the inputs is in the same register
17683 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17685 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
17686 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
17688 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17690 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
17691 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
17693 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17694 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17696 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
17697 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
17698 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
17700 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17701 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17703 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
17704 Add an alternative that uses reversed shifts.
17706 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17708 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
17711 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17713 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
17714 a commutativity marker.
17716 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17717 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17719 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
17720 (aarch64_prepare_sve_cond_int_fma): Declare.
17721 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
17722 (aarch64_prepare_sve_int_fma): New functions.
17723 (aarch64_prepare_sve_cond_int_fma): Likewise.
17724 * config/aarch64/aarch64-sve.md
17725 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
17726 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
17727 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
17728 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
17729 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
17730 (*madd<mode>): Rename to...
17731 (*fma<mode>4): ...this.
17732 (*msub<mode>): Rename to...
17733 (*fnma<mode>4): ...this.
17735 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17736 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17738 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
17739 Print 2.0 naturally.
17740 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
17741 * config/aarch64/predicates.md
17742 (aarch64_sve_float_negated_arith_immediate): New predicate,
17743 renamed from aarch64_sve_float_arith_with_sub_immediate.
17744 (aarch64_sve_float_arith_with_sub_immediate): Test for both
17745 positive and negative constants.
17746 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
17747 or an aarch64_sve_float_arith_with_sub_immediate.
17748 * config/aarch64/constraints.md (vsN): Use
17749 aarch64_sve_float_negated_arith_immediate.
17750 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
17752 (sve_pred_fp_rhs2_immediate): New int attribute.
17753 * config/aarch64/aarch64-sve.md
17754 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
17755 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
17756 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
17757 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
17758 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
17759 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
17761 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17762 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17764 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
17765 (*aarch64_cond_abd<SVE_F:mode>_3)
17766 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
17768 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17769 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17771 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
17772 (*aarch64_cond_<su>abd<mode>_any): New patterns.
17774 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
17775 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17777 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
17778 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
17779 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
17780 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
17782 * optabs.h (create_convert_operand_from): Expand comment.
17783 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
17784 when mapping scalar rtxes to vector operands.
17785 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
17786 ashiftrt and lshiftrt.
17787 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
17788 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
17789 (*cond_<optab><mode>_any_const): New patterns.
17791 2019-08-15 Martin Liska <mliska@suse.cz>
17794 * cgraph.c (cgraph_node::remove): When setting
17795 n->origin = NULL for all nested functions, reset
17798 2019-08-15 Martin Liska <mliska@suse.cz>
17800 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
17803 2019-08-15 Martin Liska <mliska@suse.cz>
17806 * passes.c (order): Remove.
17807 (uid_hash_t): Likewise).
17808 (remove_cgraph_node_from_order): Remove from set
17809 of pointers (cgraph_node *).
17810 (insert_cgraph_node_to_order): New.
17811 (duplicate_cgraph_node_to_order): New.
17812 (do_per_function_toporder): Register all 3 cgraph hooks.
17813 Skip removed_nodes now as we know about all of them.
17815 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
17817 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
17818 <case E_V8QImode>: Use vector_set path for
17819 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17820 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
17821 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17823 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17825 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
17827 2019-08-14 Martin Sebor <msebor@redhat.com>
17829 PR tree-optimization/91294
17830 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
17831 source length as exact.
17833 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
17835 * doc/extend.texi: Add "noinit" attribute documentation.
17836 * doc/sourcebuild.texi: Add noinit effective target documentation.
17837 * varasm.c (default_section_type_flags): Add support for "noinit"
17839 (default_elf_select_section): Add support for "noinit" attribute.
17840 * config/msp430/msp430.c (msp430_attribute_table): Remove
17843 2019-08-14 Richard Biener <rguenther@suse.de>
17844 Uroš Bizjak <ubizjak@gmail.com>
17847 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
17849 (scalar_chain::smode): New member.
17850 (scalar_chain::vmode): Likewise.
17851 (dimode_scalar_chain): Rename to...
17852 (general_scalar_chain): ... this.
17853 (general_scalar_chain::general_scalar_chain): Take mode arguments.
17854 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
17855 base with TImode and V1TImode.
17856 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
17857 (general_scalar_chain::vector_const_cost): Adjust for SImode
17859 (general_scalar_chain::compute_convert_gain): Likewise. Add
17860 {S,U}{MIN,MAX} support.
17861 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
17862 (general_scalar_chain::make_vector_copies): Likewise. Handle
17863 non-DImode chains appropriately.
17864 (general_scalar_chain::convert_reg): Likewise.
17865 (general_scalar_chain::convert_op): Likewise.
17866 (general_scalar_chain::convert_insn): Likewise. Add
17867 fatal_insn_not_found if the result is not recognized.
17868 (convertible_comparison_p): Pass in the scalar mode and use that.
17869 (general_scalar_to_vector_candidate_p): Likewise. Rename from
17870 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
17871 (scalar_to_vector_candidate_p): Remove by inlining into single
17873 (general_remove_non_convertible_regs): Rename from
17874 dimode_remove_non_convertible_regs.
17875 (remove_non_convertible_regs): Remove by inlining into single caller.
17876 (convert_scalars_to_vector): Handle SImode and DImode chains
17877 in addition to TImode chains.
17878 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17879 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17880 (*<maxmin>di3_doubleword): Likewise.
17882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17883 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17885 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17886 (*cond_bic<mode>_any): New patterns.
17888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17890 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17891 take the equivalent mask, as well as a bit count.
17892 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17893 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17894 (aarch64_sve_pred_and_operand): New predicates.
17895 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17897 * config/aarch64/aarch64-sve.md
17898 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17899 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17901 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17903 * config/aarch64/aarch64-sve.md
17904 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17905 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17908 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17909 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17911 * config/aarch64/aarch64-sve.md
17912 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17913 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17915 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17916 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17918 * config/aarch64/aarch64-sve.md
17919 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17920 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17922 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17924 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17925 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17928 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17929 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17931 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17933 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17934 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17936 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17937 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17938 (aarch64_print_operand): Add support for %I.
17939 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17940 Bitcast floating-point constants to the corresponding integer constant.
17941 (aarch64_float_const_representable_p): Handle vectors as well
17943 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17944 for the new vcond_mask_<mode><vpred> expander.
17945 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17946 test aarch64_float_const_representable_p.
17947 (aarch64_sve_reg_or_dup_imm): New predicate.
17948 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17949 gen_vcond_mask_<mode><vpred> instead of
17950 gen_aarch64_sve_dup<mode>_const.
17951 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17952 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17953 for operands 1 and 2 respectively. Force operand 2 into a
17954 register if operand 1 is a register. Fold old define_insn...
17955 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17956 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17957 floating-point constants that can be moved as integers. Add
17958 alternatives for MOV /M and FMOV /M.
17959 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17960 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17961 1 and 2 respectively.
17962 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17964 (vss): New constraint.
17966 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17968 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17969 (aarch64_sve_float_maxmin_operand): New predicates.
17970 * config/aarch64/constraints.md (vsB): New constraint.
17972 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17973 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17974 UNSPEC_COND_FMINNM.
17975 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17976 Use aarch64_sve_float_maxmin_operand for operand 2.
17977 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17978 Add alternatives for the constant forms.
17980 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17982 * config/aarch64/constraints.md (vsb): New constraint.
17983 (vsm): Generalize description.
17984 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17986 (sve_imm_con): Handle smax, smin, umax and umin.
17987 (sve_imm_prefix): New code attribute.
17988 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17989 (aarch64_sve_vsb_operand): New predicates.
17990 (aarch64_sve_mul_immediate): Rename to...
17991 (aarch64_sve_vsm_immediate): ...this.
17992 (aarch64_sve_mul_operand): Rename to...
17993 (aarch64_sve_vsm_operand): ...this.
17994 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17995 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17996 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17997 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17998 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17999 add movprfx support for the immediate alternatives.
18000 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
18002 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
18005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18007 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
18008 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
18009 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
18011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18013 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
18014 (optab, sve_int_op): Handle them.
18015 * config/aarch64/aarch64-sve.md: Expand comment.
18017 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18019 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
18020 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
18021 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
18023 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18025 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
18026 (aarch64_expand_sve_const_pred_trn): New functions.
18027 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
18028 use the above functions when the parameter is true.
18029 (aarch64_expand_sve_const_pred): Update call accordingly.
18030 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
18032 (@aarch64_sve_<perm_insn><mode>): ...this.
18034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18036 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
18038 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
18039 (aarch64_sve_emit_int_cmp): New functions.
18040 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
18041 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
18042 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
18043 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
18044 (UNSPEC_PRED_Z): New unspec.
18045 (set_clobber_cc_nzc): Delete.
18046 * config/aarch64/aarch64-sve.md: Add a block comment about
18048 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
18049 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
18050 the old pattern with that name. Use UNSPEC_PRED_Z instead of
18051 UNSPEC_MERGE_PTRUE.
18052 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
18053 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
18054 check for compatible predicates.
18055 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
18056 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
18057 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
18060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18062 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
18063 * config/aarch64/aarch64-sve.md: Add a section describing it.
18064 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
18065 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
18066 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
18067 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
18068 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
18069 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
18070 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
18071 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
18072 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
18073 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
18074 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
18075 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
18076 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
18077 (aarch64_evpc_rev_local): Update accordingly.
18079 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18081 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
18083 (SVE_BHSI, SVE_SDI): Tweak comment.
18084 (SVE_HSDI): Likewise. Fix definition.
18085 (SVE_SDF): New mode iterator.
18086 (elem_bits): New mode attribute.
18087 (SVE_COND_FCVT): New int iterator.
18088 * config/aarch64/aarch64-sve.md
18089 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
18090 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
18091 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
18092 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
18093 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
18094 ...these new patterns.
18095 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
18096 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
18097 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
18099 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
18100 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
18101 ...these new patterns.
18102 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
18103 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
18104 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
18105 ...this new pattern.
18106 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
18107 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
18108 ...this new pattern.
18109 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
18111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18113 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
18114 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
18115 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
18117 (optab, su): Handle them.
18118 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
18119 * config/aarch64/aarch64-sve.md
18120 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
18121 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
18122 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
18123 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
18124 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
18125 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
18126 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
18127 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
18128 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
18130 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
18131 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
18132 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
18133 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
18134 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
18135 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
18136 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
18137 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
18138 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
18139 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
18140 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
18141 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
18142 of UNSPEC_FLOAT_CONVERT.
18143 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
18144 aarch64_sve_extend<mode><Vwide>2.
18146 2019-08-14 Richard Biener <rguenther@suse.de>
18149 * config/i386/i386-features.c
18150 (dimode_scalar_chain::compute_convert_gain): Compute and dump
18151 individual instruction gain. Fix reg-reg copy GRP cost. Use
18152 ix86_cost->sse_op for vector instruction costs.
18154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18156 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
18157 (cmp_op): Handle it.
18158 (SVE_COND_FP_CMP): Rename to...
18159 (SVE_COND_FP_CMP_I0): ...this.
18160 (SVE_FP_CMP): Remove.
18161 * config/aarch64/aarch64-sve.md
18162 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
18163 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
18164 using unspecs to represent the comparison.
18165 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
18166 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
18168 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
18169 (aarch64_unspec_cond_code): Move after integer code. Handle
18171 (aarch64_emit_sve_predicated_cond): Replace with...
18172 (aarch64_emit_sve_fp_cond): ...this new function.
18173 (aarch64_emit_sve_or_conds): Replace with...
18174 (aarch64_emit_sve_or_fp_conds): ...this new function.
18175 (aarch64_emit_sve_inverted_cond): Replace with...
18176 (aarch64_emit_sve_invert_fp_cond): ...this new function.
18177 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
18179 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18181 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
18182 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
18183 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
18184 SVE_HSD instead of SVE_SD.
18186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18187 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
18189 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
18191 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
18193 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
18194 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
18195 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
18196 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
18197 (*div<SVE_F:mode>3): Generalize to...
18198 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
18200 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18201 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
18203 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
18205 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
18207 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
18209 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
18211 * config/aarch64/aarch64-sve.md: Add a block comment about the
18212 handling of predicated FP operations.
18213 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
18214 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
18215 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
18216 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
18217 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
18219 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
18220 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
18222 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
18223 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
18224 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
18225 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
18226 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
18227 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
18228 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18229 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
18230 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
18231 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
18232 strictness operands. Use aarch64_sve_pred_dominates_p to check
18233 whether the predicate on the conditional operation is suitable
18234 for merging. Split patterns into the canonical equal-predicate form.
18235 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
18236 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
18238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18239 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
18241 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
18242 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
18243 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
18245 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
18246 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
18249 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18250 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
18252 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
18253 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
18254 actually has, rather than relying on REG_EQUAL notes.
18255 Make the insn operand order match the SVE operand order.
18256 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
18257 the SVE operand order.
18259 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18261 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
18262 (aarch64_emit_set_immediate): Likewise.
18263 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
18264 (aarch64_pfalse_reg): Likewise.
18265 (aarch64_convert_sve_data_to_pred): New function.
18266 (aarch64_sve_move_pred_via_while): Take an optional target register
18267 and the required register mode.
18268 (aarch64_expand_sve_const_pred_1): New function.
18269 (aarch64_expand_sve_const_pred): Likewise.
18270 (aarch64_expand_mov_immediate): Build an all-true predicate
18271 if the significant bits of the immediate are all true. Use
18272 aarch64_expand_sve_const_pred for all compile-time predicate constants.
18273 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
18274 before register allocation.
18275 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
18276 a VNx16BI PTRUE when splitting the memory alternative.
18277 (vec_duplicate<mode>): Update accordingly.
18278 (*pred_cmp<cmp_op><mode>): Rename to...
18279 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
18281 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
18283 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
18284 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
18285 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
18286 (UNSPEC_PTEST): New unspec.
18287 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
18288 * config/aarch64/iterators.md (data_bytes): New mode attribute.
18289 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
18290 * config/aarch64/aarch64-sve.md: Add a new section describing the
18291 handling of UNSPEC_PTEST.
18292 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
18293 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
18294 (ptest_ptrue<mode>): Replace with...
18295 (aarch64_ptest<mode>): ...this new pattern.
18296 (cbranch<mode>4): Update after above changes.
18297 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
18298 UNSPEC_PTEST_PTRUE.
18299 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
18300 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
18301 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
18303 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
18306 * builtins.c (builtin_with_linkage_p): New function.
18307 * builtins.h (builtin_with_linkage_p): New function.
18308 * symtab.c (write_symbol): Remove redundant assert.
18309 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
18310 Remove FIXME and use builtin_with_linkage_p.
18312 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18314 PR middle-end/91421
18315 * tree-core.h (function_decl::function_code): Change type to
18317 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
18318 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
18319 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
18320 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
18321 is BUILT_IN_NORMAL.
18322 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
18323 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
18324 (fndecl_built_in_p): Change the type of the "name" argument to
18326 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
18327 after check for DECL_BUILT_IN_CLASS.
18328 * cgraphclones.c (build_function_decl_skip_args): Use
18329 set_decl_built_in_function.
18330 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
18331 * ipa-split.c (split_function): Likewise.
18332 * langhooks.c (add_builtin_function_common): Likewise.
18333 * omp-simd-clone.c (simd_clone_create): Likewise.
18334 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18335 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
18336 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
18337 DECL_FUNCTION_CODE.
18338 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
18339 instead of DECL_FUNCTION_CODE.
18340 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
18341 instead of DECL_FUNCTION_CODE.
18342 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18343 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
18344 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
18345 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
18346 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
18347 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
18348 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
18349 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
18350 (alpha_gimple_fold_builtin): Likewise.
18351 * config/arc/arc.c (arc_expand_builtin): Likewise.
18352 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
18353 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
18354 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
18355 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
18356 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
18357 * config/frv/frv.c (frv_expand_builtin): Likewise.
18358 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
18359 (gcn_expand_builtin): Likewise.
18360 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
18361 (fold_builtin_cpu): Likewise.
18362 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
18363 * config/i386/i386.c (ix86_fold_builtin): Likewise.
18364 (ix86_gimple_fold_builtin): Likewise.
18365 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
18366 (ia64_expand_builtin): Likewise.
18367 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
18368 * config/mips/mips.c (mips_expand_builtin): Likewise.
18369 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
18370 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
18371 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
18372 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
18373 * config/pa/pa.c (pa_expand_builtin): Likewise.
18374 * config/pru/pru.c (pru_expand_builtin): Likewise.
18375 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
18376 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18378 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
18379 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
18380 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
18381 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
18382 (rs6000_builtin_reciprocal): Likewise.
18383 * config/rx/rx.c (rx_expand_builtin): Likewise.
18384 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
18385 * config/s390/s390.c (s390_expand_builtin): Likewise.
18386 * config/sh/sh.c (sh_expand_builtin): Likewise.
18387 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
18388 (sparc_fold_builtin): Likewise.
18389 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18390 * config/spu/spu.c (spu_expand_builtin): Likewise.
18391 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
18392 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
18393 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
18394 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
18395 (xtensa_expand_builtin): Likewise.
18397 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18399 PR middle-end/91421
18400 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
18401 before the DECL_FUNCTION_CODE.
18402 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
18403 to check for a BUILT_IN_ALLOCA call.
18404 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
18405 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
18406 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
18407 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18408 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
18409 for BUILT_IN_NORMAL functions.
18410 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
18411 test for BUILT_IN_TM_ABORT.
18412 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
18413 to check for a BUILT_IN_STACK_RESTORE call.
18414 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
18415 * tree-ssa-threadedge.c
18416 (record_temporary_equivalences_from_stmts_at_dest): Check for a
18417 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
18418 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
18419 test for a BUILT_IN_NORMAL call instead of a negative test for
18420 an internal function call.
18422 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18424 * tree.h (build_vector_a_then_b): Declare.
18425 * tree.c (build_vector_a_then_b): New function.
18426 * fold-const-call.c (fold_while_ult): Likewise.
18427 (fold_const_call): Use it to handle IFN_WHILE_ULT.
18428 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
18429 (aarch64_svpattern): New enum.
18430 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
18431 constants through aarch64_expand_mov_immediate.
18432 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
18433 than general_operand as the predicate for operand 1.
18434 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
18435 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
18437 (simd_immediate_info::simd_immediate_info): New overload that
18438 takes a scalar_int_mode and an svpattern.
18439 (simd_immediate_info::u): Add a "pattern" field.
18440 (svpattern_token): New function.
18441 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
18442 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
18443 (aarch64_sve_move_pred_via_while): New functions.
18444 (aarch64_expand_mov_immediate): Try using
18445 aarch64_sve_move_pred_via_while for predicates that contain N ones
18446 followed by M zeros but that do not correspond to a VLnnn pattern.
18447 (aarch64_sve_pred_valid_immediate): New function.
18448 (aarch64_simd_valid_immediate): Use it instead of dealing directly
18449 with PTRUE and PFALSE.
18450 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
18453 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
18455 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
18457 (darwin_override_options): Likewise.
18458 * config/darwin.h: Likewise.
18459 * config/darwin.opt: Likewise.
18460 * config/i386/i386.c (output_pic_addr_const): Likewise.
18461 * config/rs6000/darwin.h: Likewise.
18462 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
18463 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
18464 ... this TARGET_MACHO_SYMBOL_STUBS.
18465 (FUNCTION_PROFILER):Likewise.
18466 * config/i386/i386.h: Likewise.
18468 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
18470 * config/i386/i386-expand.c (ix86_expand_vector_extract)
18471 <case E_V2SImode>: Use vec_extr path for
18472 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18473 <case E_V8QImode>: Ditto.
18474 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
18475 Use SWI48 mode iterator. Use %k to output operand 0.
18476 (*mmx_pextrw): New insn pattern.
18477 (*mmx_pextrb): Ditto.
18478 (*mmx_pextrb_zext): Ditto.
18480 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
18482 * target.def (libc_has_function, libc_has_fast_function): Improve
18483 documentation strings.
18484 * doc/tm.texi: Regenerate.
18486 2019-08-13 Caroline Tice <cmtice@google.com>
18489 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
18490 vtv_end.o or vtv_end_preinit.o files if !static.
18492 2019-08-13 Olivier Hainque <hainque@adacore.com>
18494 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
18496 2019-08-13 Olivier Hainque <hainque@adacore.com>
18498 * rtlanal.c (tablejump_casesi_pattern): New function, to
18499 determine if a tablejump insn is a casesi dispatcher. Extracted
18500 from patch_jump_insn.
18501 * rtl.h (tablejump_casesi_pattern): Declare.
18502 * cfgrtl.c (patch_jump_insn): Use it.
18503 * dwarf2cfi.c (create_trace_edges): Use it.
18505 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
18508 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
18509 operand is larger than a long int.
18511 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18513 * machmode.h (opt_mode::else_mode): New function.
18514 (opt_mode::else_blk): Use it.
18515 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
18516 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
18517 (aarch64_gen_stepped_int_parallel): Likewise.
18518 (aarch64_stepped_int_parallel_p): Likewise.
18519 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
18521 * config/aarch64/aarch64.c
18522 (aarch64_expand_sve_widened_duplicate): Delete.
18523 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
18524 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
18525 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
18526 argument. Use early returns in the !CONST_INT_P handling.
18527 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
18528 than handling some inline.
18529 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
18531 (aarch64_simd_container_mode): ...here.
18532 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
18533 (aarch64_sve_ld1rq_operand_p): New functions.
18534 * config/aarch64/predicates.md (descending_int_parallel)
18535 (aarch64_sve_ld1rq_operand): New predicates.
18536 * config/aarch64/constraints.md (UtQ): New constraint.
18537 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
18538 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
18539 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
18540 (@aarch64_sve_reinterpret<mode>): New expander.
18541 (*aarch64_sve_reinterpret<mode>): New pattern.
18542 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
18543 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
18544 (*sve_ld1rq<Vesize>): Replace with...
18545 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
18547 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
18549 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
18552 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18554 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
18555 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
18556 (msp430_check_path_for_devices): New.
18557 (parse_devices_csv_1): New.
18558 (parse_devices_csv): New.
18559 (msp430_extract_mcu_data): Try to find devices.csv and search for the
18560 MCU data in devices.csv before using the hard-coded data.
18561 Warn if devices.csv isn't found and the MCU wasn't found in the
18562 hard-coded data either.
18563 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
18564 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
18565 Search for devices.csv on -I and -L paths.
18566 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
18567 msp430_set_driver_var.
18568 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
18569 -mdevices-csv-loc=.
18570 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
18571 searched for devices.csv.
18572 (mwarn-devices-csv): Document option.
18574 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18576 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
18577 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
18578 Use a single Dn alternative instead of separate Dz and Dm
18579 alternatives. Use aarch64_output_sve_move_immediate.
18580 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
18582 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
18583 for predicates too.
18584 (aarch64_output_sve_mov_immediate): Handle predicate modes.
18585 (aarch64_output_ptrue): Delete.
18587 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18589 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
18591 (simd_immediate_info::value, simd_immediate_info::step)
18592 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
18594 (simd_immediate_info::u): ...this new union.
18595 (simd_immediate_info::simd_immediate_info): Update accordingly.
18596 (aarch64_output_simd_mov_immediate): Likewise.
18597 (aarch64_output_sve_mov_immediate): Likewise.
18599 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18601 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
18603 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
18604 (msp430_select_cpu): New spec function.
18605 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
18607 * config/msp430/msp430-devices.c: New file.
18608 * config/msp430/msp430-devices.h: New file.
18609 * config/msp430/msp430.c: Remove msp430_mcu_data.
18610 (msp430_option_override): Use msp430_extract_mcu_data to extract
18612 (msp430_use_f5_series_hwmult): Likewise.
18613 (use_32bit_hwmult): Likewise.
18614 (msp430_no_hwmult): Likewise.
18615 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
18617 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
18619 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
18620 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
18621 Remove hard-coded MCU multilib data.
18623 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18625 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
18626 based on the mode instead of testing properties of it.
18628 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18630 * doc/md.texi: Document the x and y constraints for AArch64.
18631 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
18632 (FP_LO8_REGS): New reg_class.
18633 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
18634 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
18635 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
18636 * config/aarch64/predicates.md (aarch64_simd_register): Use
18637 FP_REGNUM_P instead of checking the classes manually.
18638 * config/aarch64/constraints.md (y): New constraint.
18640 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
18642 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
18643 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
18644 * config/aarch64/aarch64-simd.md
18645 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
18646 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
18647 from the asm template.
18648 * config/aarch64/aarch64-sve.md
18649 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
18650 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
18651 from the asm template.
18652 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
18653 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
18654 from the asm template.
18655 * config/aarch64/aarch64-simd-builtins.def: Update comment.
18657 2019-08-13 Martin Liska <mliska@suse.cz>
18659 * value-prof.c (gimple_ic_transform): Add new line.
18660 Print details with MSG_NOTE.
18662 2019-08-13 Martin Liska <mliska@suse.cz>
18664 * doc/invoke.texi: Document automatic detection of jobserver.
18665 * lto-wrapper.c (run_gcc): Detect jobserver always.
18667 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
18669 * config/i386/i386-expand.c (ix86_expand_vector_set)
18670 <case E_V2SImode>: Use vec_merge path for
18671 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
18672 <case E_V8QImode>: Ditto.
18673 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
18674 (*mmx_pinsrb): Ditto.
18676 2019-08-12 Jakub Jelinek <jakub@redhat.com>
18680 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
18681 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
18682 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
18683 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
18684 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
18686 2019-08-12 Richard Biener <rguenther@suse.de>
18689 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
18692 2019-08-12 Richard Biener <rguenther@suse.de>
18695 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
18696 lang_mask option, always use CL_DRIVER.
18697 (get_options_from_collect_gcc_options): Adjust.
18698 (find_and_merge_options): Likewise.
18699 (run_gcc): Likewise.
18701 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18703 * ipa-predicate.c (add_condition): Restore inverted test.
18705 2019-08-10 Jakub Jelinek <jakub@redhat.com>
18707 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
18708 (enum omp_clause_device_type_kind): New enum.
18709 (struct tree_omp_clause): Add subcode.device_type_kind.
18710 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
18711 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18712 for device_type clause.
18713 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
18714 * tree-pretty-print.c (dump_omp_clause): Likewise.
18717 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
18720 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
18722 * reload1.c (finish_spills): Do not check ira_conflicts_p when
18723 handling spilled pseudos.
18725 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
18728 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
18729 to preserve the contents of the original insns.
18731 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
18733 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
18734 (addsi3_compare_op2): Likewise.
18736 2019-08-09 Martin Liska <mliska@suse.cz>
18738 * alias.c (alias_ptr_types_compatible_p): Strengten
18739 type comparison in LTO mode.
18741 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
18743 PR middle-end/90313
18744 * tree-tailcall.c (find_tail_calls): Reject calls that might
18745 read from an escaped RESULT_DECL.
18747 2019-08-09 Martin Liska <mliska@suse.cz>
18749 * doc/invoke.texi: Document the option value.
18750 * lto-wrapper.c (run_gcc): Set auto_parallel
18751 only with -flto=auto.
18753 2019-08-09 Martin Liska <mliska@suse.cz>
18755 * opts.c (common_handle_option): Error for an invalid argument
18758 2019-08-09 Martin Liska <mliska@suse.cz>
18760 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
18761 use dump_printf to report optimization.
18762 (sem_variable::merge): Likwise.
18763 (sem_item_optimizer::merge_classes): Use dump_printf to report
18766 2019-08-09 Martin Liska <mliska@suse.cz>
18768 * value-prof.c (gimple_divmod_fixed_value_transform):
18769 Use dump_printf_loc.
18770 (gimple_mod_pow2_value_transform): Likewise.
18771 (gimple_mod_subtract_transform): Likewise.
18772 (init_node_map): Likewise.
18773 (gimple_ic_transform): Likewise.
18774 (gimple_stringops_transform): Likewise.
18776 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
18778 * doc/extend.texi: Add const qualifier to ld intrinsics.
18780 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18782 * config/rs6000/dfp.md (D64_D128): Rename to ...
18783 (DDTD): ... this, throughout.
18784 (dfp_suffix): Rename to ...
18785 (q): ... this, throughout.
18787 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18789 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
18790 (dfp_suffix): Ditto.
18791 (adddd3, addtd3): Merge to ...
18792 (add<mode>3 for D64_D128): ... this.
18793 (subdd3, subtd3): Merge to ...
18794 (sub<mode>3 for D64_D128): ... this.
18795 (muldd3, multd3): Merge to ...
18796 (mul<mode>3 for D64_D128): ... this.
18797 (divdd3, divtd3): Merge to ...
18798 (div<mode>3 for D64_D128): ... this.
18799 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
18800 (*cmp<mode>_internal1 for D64_D128): ... this.
18801 (ftruncdd2, ftrunctd2): Merge to ...
18802 (ftrunc<mode>2 for D64_D128): ... this.
18803 (fixdddi2, fixtddi2): Merge to ...
18804 (fix<mode>di2 for D64_D128): ... this.
18806 2019-08-08 Jim Wilson <jimw@sifive.com>
18809 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
18810 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
18811 Pass into recursive call.
18812 (riscv_flatten_aggregate_argument): New arg. Pass to
18813 riscv_flatten_aggregate_field.
18814 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
18815 riscv_flatten_aggregate_argument twice, with false and true as last
18816 arg. Process result twice. Compare results and warn if different.
18817 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
18819 2019-08-08 Martin Liska <mliska@suse.cz>
18822 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
18823 * lto-wrapper.c (jobserver_active_p): Likewise.
18825 2019-08-08 Martin Liska <mliska@suse.cz>
18827 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
18828 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
18829 (create_version_clone_with_body): Likewise.
18831 2019-08-08 Jakub Jelinek <jakub@redhat.com>
18833 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
18834 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
18835 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
18836 GOVD_EXPLICIT flags.
18837 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
18838 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
18839 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
18840 call install_var_field with mask 11 instead of 3.
18841 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
18842 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
18844 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18846 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
18847 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
18849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18851 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
18852 MOVPRFX alternatives. Make the GPR alternatives more expensive
18855 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18857 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
18858 Disparage the GPR alternative relative to the FPR one.
18859 Fix handling of 8-bit and 16-bit FPR values.
18861 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18863 * config/aarch64/iterators.md (BITWISEV): Delete.
18864 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
18865 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
18866 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18867 UNSPEC_FMINNMV, UNSPEC_FMINV.
18868 (bit_reduc_op): Delete.
18869 (sve_int_op): New int attribute.
18870 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18871 UNSPEC_FMINNMV, UNSPEC_FMINV.
18872 * config/aarch64/aarch64-sve.md
18873 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18874 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18875 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18876 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18877 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18878 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18880 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18881 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18882 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18883 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18884 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18887 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18889 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18890 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18891 (fms<mode>4, *fms<mode>4): Replace with...
18892 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18893 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18894 Use unspecs instead of rtx codes.
18895 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18896 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18900 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18902 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18903 * config/aarch64/aarch64-sve.md
18904 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18905 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18906 use a single unspec for the rhs.
18907 (*<su><maxmin><mode>3): Delete.
18908 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18910 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18912 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18913 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18914 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18915 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18916 (optab, sve_fp_op): Handle them.
18917 (SVE_FP_UNARY): Delete.
18918 (optab): Remove sqrt entry.
18919 (sve_fp_op): Remove neg, abs and sqrt entries.
18920 (SVE_COND_FP_UNARY): New int iterator.
18921 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18922 (*<frint_pattern><mode>2): Delete.
18923 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18924 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18925 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18926 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18928 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18930 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18932 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18934 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18935 (UNSPEC_COND_FADD): ...this.
18936 (UNSPEC_COND_SUB): Rename to...
18937 (UNSPEC_COND_FSUB): ...this.
18938 (UNSPEC_COND_MUL): Rename to...
18939 (UNSPEC_COND_FMUL): ...this.
18940 (UNSPEC_COND_DIV): Rename to...
18941 (UNSPEC_COND_FDIV): ...this.
18942 (UNSPEC_COND_MAX): Rename to...
18943 (UNSPEC_COND_FMAXNM): ...this.
18944 (UNSPEC_COND_MIN): Rename to...
18945 (UNSPEC_COND_FMINNM): ...this.
18946 (UNSPEC_COND_LT): Rename to...
18947 (UNSPEC_COND_FCMLT): ...this.
18948 (UNSPEC_COND_LE): Rename to...
18949 (UNSPEC_COND_FCMLE): ...this.
18950 (UNSPEC_COND_EQ): Rename to...
18951 (UNSPEC_COND_FCMEQ): ...this.
18952 (UNSPEC_COND_NE): Rename to...
18953 (UNSPEC_COND_FCMNE): ...this.
18954 (UNSPEC_COND_GE): Rename to...
18955 (UNSPEC_COND_FCMGE): ...this.
18956 (UNSPEC_COND_GT): Rename to...
18957 (UNSPEC_COND_FCMGT): ...this.
18958 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18959 (sve_fp_op_rev): Update accordingly.
18960 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18962 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18964 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18966 * config/aarch64/check-sve-md.awk: New file.
18967 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18968 (insn-conditions.md): Depend on it.
18970 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18973 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18974 (*negsi2_cmpz_zext): Ditto.
18976 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18978 * config/aarch64/iterators.md (commutative): Remove.
18980 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18983 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18984 processing COLLECT_GCC_OPTIONS.
18985 (run_gcc): Likewise.
18987 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18989 PR tree-optimization/91109
18990 * lra-remat.c (update_scratch_ops): Remove assignment of the
18993 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18995 * data-streamer.h (streamer_write_poly_uint64): Declare.
18996 (streamer_read_poly_uint64): Likewise.
18997 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18998 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18999 * ipa-predicate.h (condition::size): Turn into a poly_int64.
19000 (add_condition): Take a poly_int64 size.
19001 * ipa-predicate.c (add_condition): Likewise.
19002 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
19003 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
19004 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
19005 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
19006 condition::size as a poly_int64.
19007 (unmodified_parm_1): Take a poly_int64 size pointer.
19008 (unmodified_parm): Likewise.
19009 (unmodified_parm_or_parm_agg_item): Likewise.
19010 (set_cond_stmt_execution_predicate): Update accordingly.
19011 (set_switch_stmt_execution_predicate): Likewise.
19012 (will_be_nonconstant_expr_predicate): Likewise.
19013 (will_be_nonconstant_predicate): Likewise.
19014 (inline_read_section): Stream condition::size as a poly_int.
19015 (ipa_fn_summary_write): Likewise.
19017 2019-08-07 Martin Liska <mliska@suse.cz>
19019 * fold-const.c (twoval_comparison_p): Replace int
19020 with bool as a return type.
19021 (simple_operand_p): Likewise.
19022 (operand_equal_p): Replace int with bool as a return type.
19023 * fold-const.h (operand_equal_p): Likewise.
19025 2019-08-07 Jakub Jelinek <jakub@redhat.com>
19027 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
19028 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
19029 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
19030 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
19031 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
19032 * tree-pretty-print.c (dump_omp_clause): Likewise.
19033 * tree-nested.c (convert_nonlocal_omp_clauses,
19034 convert_local_omp_clauses): Likewise.
19035 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19037 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
19038 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
19039 clause with array or reference to array types, no matter what type
19040 except for reference it has.
19042 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
19044 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
19046 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
19048 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
19049 (arch_canonicalize): Support rv32g and rv64g and fix error
19052 2019-08-06 Martin Liska <mliska@suse.cz>
19054 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
19055 and DECL_IS_OPERATOR_DELETE_P.
19057 2019-08-06 Jakub Jelinek <jakub@redhat.com>
19059 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
19060 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
19061 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
19062 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
19063 (gimplify_omp_for): Don't do C++ random access iterator clause
19064 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
19065 don't predetermine the artificial iterator in case of C++ random
19066 access iterators as lastprivate, but private. For OMP_LOOP, force
19067 bind expr around simd body and force for_pre_body before the
19068 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
19069 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
19070 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
19071 diff var of C++ random access iterators. Handle
19072 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
19073 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
19074 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
19075 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
19076 * omp-low.c (lower_rec_input_clauses): For
19077 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
19078 variables instead of default constructing them.
19079 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
19080 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
19081 is_taskloop_ctx check from the assert to the guarding condition.
19083 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
19085 * config/riscv/multilib-generator: (canonical_order): New.
19086 (arch_canonicalize): Dito.
19087 Apply arch_canonicalize for alts.
19089 2019-08-05 Martin Sebor <msebor@redhat.com>
19091 * doc/extend.texi (Common Variable Attributes): Document alias
19094 2019-08-05 Marek Polacek <polacek@redhat.com>
19096 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
19097 * doc/invoke.texi: Document -Wcomma-subscript.
19099 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
19101 * tree-core.h (tree_function_decl): Make function_code an
19102 independent field. Group the remaining bitfields into bytes
19103 and move decl_type so that it contines to be at a byte boundary.
19104 Leave 12 bits for future expansion.
19106 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
19108 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
19109 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
19110 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
19113 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
19115 * gimple.h (gimple_move_vops): Declare.
19116 * gimple.c (gimple_move_vops): New function
19117 * gimple-fold.c (replace_call_with_call_and_fold)
19118 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
19119 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
19120 (gimple_fold_call): Use it.
19121 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
19122 * tree-call-cdce.c (use_internal_fn): Likewise.
19123 * tree-if-conv.c (predicate_load_or_store): Likewise.
19124 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
19125 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
19126 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
19127 (update_call_from_tree): Likewise.
19128 * tree-vect-stmts.c (vectorizable_load): Likewise.
19129 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
19131 2019-08-05 Martin Liska <mliska@suse.cz>
19134 * tree-ssa-dce.c (propagate_necessity): Handle new operators
19135 with not arguments.
19136 (eliminate_unnecessary_stmts): Likewise.
19138 2019-08-05 Richard Biener <rguenther@suse.de>
19140 PR middle-end/91169
19141 * fold-const.c (get_array_ctor_element_at_index): Create
19142 offset_ints according to the sign of the index type and treat
19143 that as signed if it is obviously so.
19145 2019-08-05 Jakub Jelinek <jakub@redhat.com>
19148 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
19149 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
19150 _mm256_storeu2_m128i): New function.
19152 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
19154 * config/riscv/riscv.c (riscv_promote_function_mode): New.
19155 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
19157 2019-08-05 Alan Modra <amodra@gmail.com>
19160 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
19161 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
19163 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
19165 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
19166 bug that was fixed in Tcl 8.6.1.
19168 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
19170 * config/rs6000/future.md: New file.
19171 * config/rs6000/rs6000.md: Include future.md.
19172 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
19174 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19176 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
19177 check to use targetm.slow_unaligned_access instead.
19179 * function.c (assign_param_data_one): Remove unused data members.
19181 2019-08-02 Steve Ellcey <sellcey@marvell.com>
19183 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
19184 build_distinct_type_copy.
19185 (simd_clone_adjust_argument_types): Ditto.
19186 (simd_clone_adjust): Call build_distinct_type_copy here.
19187 (expand_simd_clones): Ditto.
19189 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
19192 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
19194 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
19196 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
19197 from 'const void *'.
19198 (sort_locs_in_loop_postorder_cmp): Likewise.
19200 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
19202 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
19203 (hot-bb-count-ws-permille): Likewise.
19204 (hot-bb-frequency-fraction): Likewise.
19205 (unlikely-bb-count-fraction): Likewise.
19206 * params.def (hot-bb-count-fraction): Rework description.
19207 (hot-bb-count-ws-permille): Likewise.
19208 (hot-bb-frequency-fraction): Likewise.
19209 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
19210 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
19212 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
19215 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
19218 2019-08-02 Richard Biener <rguenther@suse.de>
19220 * vec.h (vec::sort): Add gcc_qsort_r support.
19221 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
19222 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
19223 to gcc_qsort_r style callback.
19224 (sort_locs_in_loop_postorder_cmp): Likewise.
19225 (analyze_memory_references): Use gcc_sort_r interfaces.
19226 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
19228 2019-08-02 Martin Liska <mliska@suse.cz>
19231 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
19232 to detect working job server.
19233 (driver::detect_jobserver): Test whether jobserver
19234 is active from GCC driver. That will prevent situation where
19235 GCC is invoked from a LD plugin and the linker already uses
19236 file descriptors suggested by make. That leads to a wrong
19238 * gcc.h (driver): Add detect_jobserver.
19239 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
19240 not scanning for --jobserver-auth prefix.
19242 2019-08-02 Jakub Jelinek <jakub@redhat.com>
19244 PR tree-optimization/91201
19245 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
19246 V16QImode extraction without sse4.1 try to use V4SImode lowpart
19249 2019-08-01 Martin Sebor <msebor@redhat.com>
19252 * tree.c (type_initializer_zero_p): Define.
19253 * tree.h (type_initializer_zero_p): New function.
19255 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
19257 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
19259 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
19261 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
19262 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
19263 * predict.c (maybe_hot_count_p): Likewise.
19264 (maybe_hot_bb_p): Tweak comment.
19265 (maybe_hot_edge_p): Likewise.
19266 (probably_never_executed): Likewise. Minor tweak.
19267 (probably_never_executed_bb_p): Likewise.
19268 (unlikely_executed_edge_p): Likewise.
19269 (probably_never_executed_edge_p): Likewise.
19270 (optimize_function_for_size_p): Likewise.
19271 (optimize_function_for_speed_p): Likewise.
19272 (function_optimization_type): Likewise.
19273 (optimize_bb_for_size_p): Likewise.
19274 (optimize_bb_for_speed_p): Likewise.
19275 (bb_optimization_type): Likewise.
19276 (optimize_edge_for_size_p): Likewise.
19277 (optimize_edge_for_speed_p): Likewise.
19278 (optimize_insn_for_size_p): Likewise.
19279 (optimize_insn_for_speed_p): Likewise.
19280 (optimize_loop_for_size_p): Likewise.
19281 (optimize_loop_for_speed_p): Likewise.
19282 (optimize_loop_nest_for_speed_p): Likewise.
19283 (optimize_loop_nest_for_size_p): Likewise.
19284 (predictable_edge_p): Likewise.
19285 (handle_missing_profiles): Minor tweak.
19287 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
19289 * config/rs6000/predicates.md (pcrel_external_address): Update
19292 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
19295 * config/i386/mmx.md (usadv8qi): New expander.
19297 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
19300 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
19301 with reserved names that are in a system header.
19303 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
19305 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
19306 (*vec_extractv2si_0_zext_sse4): New insn pattern.
19307 (*vec_extractv2si_0_zext): Ditto.
19308 (*vec_extractv2si_1): Add (rm,x) alternative.
19309 (*vec_extractv2si_1_zext): New insn pattern.
19310 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
19313 2019-08-01 Richard Biener <rguenther@suse.de>
19315 * domwalk.c (bb_postorder): Remove static variable.
19316 (cmp_bb_postorder): Adjust.
19317 (sort_bbs_postorder): Adjust and use gcc_sort_r.
19318 (dom_walker::walk): Adjust.
19320 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
19322 * sort.cc (sort_r_ctx): New struct.
19323 (reorder23): Make templated on context type.
19324 (reorder45): Ditto.
19325 (cmp1): Ditto. Adjust signature.
19327 (mergesort): Ditto.
19328 [CHECKING_P] (cmp2to3): New static function. Use it...
19329 (gcc_qsort) [CHECKING_P]: ...here.
19330 (gcc_sort_r): New function.
19331 * system.h (sort_r_cmp_fn): New function typedef.
19332 (qsort_chk): Adjust signature.
19333 (gcc_sort_r): Declare.
19334 * vec.c (qsort_chk_error): Adjust.
19335 (qsort_chk): Adjust.
19337 2019-08-01 Richard Biener <rguenther@suse.de>
19339 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
19340 (compute_antic): Localize it here.
19342 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
19344 * common/config/riscv/riscv-common.c: Check -march string ends
19347 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
19349 * ipa-devirt.c (type_warning_cmp): Make static.
19350 (decl_warning_cmp): Ditto.
19352 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
19355 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
19356 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
19357 use of deleted rs6000_dejagnu_cpu_index variable.
19358 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
19359 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
19360 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
19361 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
19362 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
19363 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
19365 2019-07-31 Richard Biener <rguenther@suse.de>
19367 PR tree-optimization/91280
19368 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19369 Decompose MEM_REF manually for offset handling.
19371 2019-07-31 Richard Biener <rguenther@suse.de>
19373 PR tree-optimization/91293
19374 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
19375 of reduction stmts.
19377 2019-07-31 Matt Thomas <matt@3am-software.com>
19378 Nick Hudson <nick@nthcliff.demon.co.uk>
19379 Matthew Green <mrg@eterna.com.au>
19380 Maya Rashish <coypu@sdf.org>
19382 * config.gcc (hppa*-*-netbsd*): New target.
19383 * config/pa/pa-netbsd.h: New file.
19384 * config/pa/pa32-netbsd.h: New file.
19386 2019-07-31 Jakub Jelinek <jakub@redhat.com>
19388 PR tree-optimization/91201
19389 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
19391 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
19393 * config/gcn/gcn-valu.md
19394 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
19395 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
19396 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
19397 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
19398 struct ilist. Add nops for delayeduse insns.
19399 * config/gcn/gcn.md (delayeduse): New attribute.
19400 (*movbi): Remove s_waitcnt from stores.
19401 (*mov<mode>_insn): Likewise.
19402 (*movti_insn): Likewise. Add delayeduse attribute.
19403 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
19404 (atomic_store<mode>): Remove or adjust s_waitcnt.
19406 2019-07-31 Richard Biener <rguenther@suse.de>
19408 * vr-values.h (vr_values::swap_vr_value): New.
19409 (vr_values::free_value_range): likewise.
19410 * vr-values.c (vr_values::swap_vr_value): Implement.
19411 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
19412 Do not return a range or take a var.
19413 (evrp_range_analyzer::stack): Change back to recording a non-const
19415 * gimple-ssa-evrp-analyze.c
19416 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
19418 (evrp_range_analyzer::pop_to_marker): Adjust.
19419 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
19420 (evrp_range_analyzer::pop_value_range): Likewise. Free the
19421 no longer needed value-range.
19423 2019-07-31 Martin Liska <mliska@suse.cz>
19425 * tree-ssa-dce.c (propagate_necessity): Delete operator can
19426 have size and (or) alignment as 2nd and later arguments.
19427 Mark all of them as necessary.
19429 2019-07-31 Richard Biener <rguenther@suse.de>
19431 PR tree-optimization/91178
19432 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19433 Use tail-recursion.
19435 2019-07-31 Jakub Jelinek <jakub@redhat.com>
19437 PR tree-optimization/91201
19438 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
19439 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
19441 (reduc_plus_scal_<mode>): Improve formatting by introducing
19444 2019-07-31 Sudakshina Das <sudi.das@arm.com>
19446 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
19447 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
19448 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
19449 (aarch64_init_tme_builtins): New.
19450 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
19451 (aarch64_expand_builtin_tme): New.
19452 (aarch64_expand_builtin): Handle TME builtins.
19453 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
19454 __ARM_FEATURE_TME when enabled.
19455 * config/aarch64/aarch64-option-extensions.def: Add "tme".
19456 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
19458 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
19459 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
19461 (tstart, ttest, tcommit, tcancel): New instructions.
19462 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
19463 (__tcancel, __ttest): New.
19464 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
19465 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
19466 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
19467 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
19468 * config/arm/types.md: Add new tme type attr.
19469 * doc/invoke.texi: Document "tme".
19471 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
19473 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
19474 warn_unused_result attribute.
19475 (cmse_check_address_range): Add warn_unused_result attribute.
19477 2019-07-31 Richard Biener <rguenther@suse.de>
19479 PR tree-optimization/91257
19480 * tree-vrp.c (union_ranges): Unify equality and less tests
19481 by using compare_values. Re-order cheap tests first.
19483 2019-07-31 Jakub Jelinek <jakub@redhat.com>
19485 PR middle-end/91301
19486 * gimplify.c (gimplify_omp_for): If for class iterator on
19487 distribute parallel for there is no data sharing clause
19488 on inner_for_stmt, look for private clause on combined
19489 parallel too and if found, move it to inner_for_stmt.
19491 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
19493 * lra-int.h (lra_operand_data): Remove early_clobber field.
19494 (lra_insn_reg): Likewise.
19495 * lra.c (debug_operand_data): Update accordingly.
19496 (setup_operand_alternative): Likewise.
19497 (new_insn_reg): Likewise. Remove early_clobber parameter.
19498 (collect_non_operand_hard_regs): Update call accordingly.
19499 Don't assign to lra_insn_reg::early_clobber.
19500 (add_regs_to_insn_regno_info): Remove early_clobber parameter
19501 and update calls to new_insn_reg.
19502 (lra_update_insn_regno_info): Update calls accordingly.
19503 * lra-constraints.c (update_and_check_small_class_inputs): Take the
19504 alternative number as a parameter and test whether the operand
19505 is earlyclobbered in that particular alternative.
19506 (process_alt_operands): Update call accordingly. Use per-alternative
19507 checks for earyclobber here too.
19508 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
19509 against zero for IRA_UNKNOWN_ALT.
19511 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
19513 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
19515 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
19517 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
19518 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19520 2019-07-30 Martin Liska <mliska@suse.cz>
19523 * cgraph.c (cgraph_edge::make_direct): Use
19524 edge->indirect_unknown_callee as edge->resolve_speculation can
19525 deallocate edge which is this pointer.
19527 2019-07-30 Richard Biener <rguenther@suse.de>
19529 PR tree-optimization/91257
19530 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
19532 2019-07-30 Martin Liska <mliska@suse.cz>
19534 * doc/invoke.texi: Document new behavior.
19535 * lto-wrapper.c (cpuset_popcount): New function
19536 is a copy of libgomp/config/linux/proc.c.
19537 (init_num_threads): Likewise.
19538 (run_gcc): Automatically detect core count for -flto.
19539 (jobserver_active_p): New function.
19541 2019-07-30 Richard Biener <rguenther@suse.de>
19543 PR tree-optimization/91257
19544 * bitmap.h (bitmap_ior_into_and_free): Declare.
19545 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
19546 whether to add the unliked element to the freelist.
19547 (bitmap_list_insert_element_after): Add defaulted param for
19548 an already allocated element.
19549 (bitmap_ior_into_and_free): New function.
19550 * tree-ssa-structalias.c (condense_visit): Reduce the
19551 ponts-to and edge bitmaps of the SCC members in a
19552 logarithmic fashion rather than all to one.
19554 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
19556 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
19557 parameter. When nonnull, make sure that the addition or subtraction
19558 has the same condition.
19559 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
19560 for CFN_COND_MUL too.
19562 2019-07-30 Richard Biener <rguenther@suse.de>
19564 PR tree-optimization/91291
19565 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
19568 2019-07-30 Jakub Jelinek <jakub@redhat.com>
19570 PR middle-end/91216
19571 * omp-low.c (global_nonaddressable_vars): New variable.
19572 (use_pointer_for_field): For global decls, if they are non-addressable,
19573 remember it in the global_nonaddressable_vars bitmap, if they are
19574 addressable and in the global_nonaddressable_vars bitmap, ignore their
19575 TREE_ADDRESSABLE bit.
19576 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
19577 vars in global_nonaddressable_vars bitmap.
19578 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
19581 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
19582 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
19583 comparison to unsigned HOST_WIDE_INT before shifting it left.
19585 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
19587 * config/i386/i386.md (movstrict<mode>): Use register_operand
19588 predicate for operand 0. Add expander condition. Assert that
19589 operand 0 is a SUBREG RTX.
19590 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
19591 Update operand constraints and insn condition.
19592 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
19593 (zero_extendqihi2_and): Do not call gen_movstrictqi.
19594 (*setcc_qi_slp): Use register_operand predicate for operand 0.
19595 Update operand 0 constraints.
19596 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
19598 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19600 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
19601 when -m{code,data}-region are used without -mlarge.
19602 * config/msp430/msp430.c (msp430_option_override): Error when a
19603 non-default code or data region is used without -mlarge.
19604 (msp430_section_attr): Emit a warning and do not add upper/lower/either
19605 attributes when they are used without -mlarge.
19607 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19610 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
19612 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19614 PR middle-end/91242
19615 * wide-int.h (generic_wide_int::sext_elt): New function.
19616 * inchash.h (hash::add_wide_int): Use it instead of elt.
19618 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19620 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
19622 * config/arm/arm.md (<crc_variant>): Rename to...
19623 (arm_<crc_variant>): ... This.
19624 (<cdp>): Rename to...
19625 (arm_<cdp>): ... This.
19626 (<ldc>): Rename to...
19627 (arm_<ldc>): ... This.
19628 (<stc>): Rename to...
19629 (arm_<stc>): ... This.
19630 (<mcr>): Rename to...
19631 (arm_<mcr>): ... This.
19632 (<mrc>): Rename to...
19633 (arm_<mrc>): ... This.
19634 (<mcrr>): Rename to...
19635 (arm_<mcrr>): ... This.
19636 (<mrrc>): Rename to...
19637 (arm_<mrrc>): ... This.
19639 2019-07-29 Richard Biener <rguenther@suse.de>
19641 PR tree-optimization/91257
19642 * tree-ssa-sccvn.h (struct vn_avail): New.
19643 (struct vn_ssa_aux): Add avail member.
19644 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
19645 member, add m_avail_freelist one.
19646 (rpo_elim::~rpo_elim): Remove.
19647 (rpo_elim::eliminate_avail): Adjust to new avail tracking
19649 (rpo_elim::eliminate_push_avail): Likewise.
19650 (do_unwind): Likewise.
19651 (do_rpo_vn): Likewise.
19653 2019-07-29 Richard Biener <rguenther@suse.de>
19655 PR tree-optimization/91257
19656 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
19657 most cases, instead call compare_values which handles the
19658 symbolic ranges we handle specially.
19659 (compare_values_warnv): Do not call operand_less_p but open-code
19660 the effective fold calls. Avoid converting so much.
19662 2019-07-29 Martin Liska <mliska@suse.cz>
19664 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
19665 remove LHS of operator new call. It's handled latter.
19667 2019-07-29 Richard Biener <rguenther@suse.de>
19669 PR tree-optimization/91267
19670 * vr-values.c (vr_values::update_value_range): Add early return
19671 for effectively VARYING lattice entry.
19673 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19676 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
19677 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
19678 necessary if keep_all_vdefs_p is true.
19679 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
19680 that keep_all_vdefs_p is false.
19681 (mark_all_reaching_defs_necessary): Likewise.
19682 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
19684 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19686 * common.opt (Og): Change the initial value of flag_dse to 0.
19687 * opts.c (default_options_table): Move OPT_ftree_dse from
19688 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
19689 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
19690 entry before the OPT_ftree_sra entry.
19691 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
19692 of flags disabled by Og.
19694 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19696 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
19699 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19701 * doc/sourcebuild.texi (check-function-bodies): Document.
19703 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19705 * simplify-rtx.c (simplify_const_unary_operation): Fold a
19706 VEC_DUPLICATE of a fixed-length vector even if the result
19707 is variable-length. Likewise fold a duplicate of a
19708 variable-length vector if the variable-length vector is
19709 itself a duplicate of a fixed-length sequence.
19710 (test_vector_ops_duplicate): Test more cases.
19712 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
19714 * vector-builder.h (vector_builder): Add a shape template parameter.
19715 (vector_builder::new_unary_operation): New function, generalizing
19716 the old tree_vector_builder function.
19717 (vector_builder::new_binary_operation): Likewise.
19718 (vector_builder::binary_encoded_nelts): Likewise.
19719 * int-vector-builder.h (int_vector_builder): Update template
19720 parameters to vector_builder.
19721 (int_vector_builder::shape_nelts): New function.
19722 * rtx-vector-builder.h (rtx_vector_builder): Update template
19723 parameters to vector_builder.
19724 (rtx_vector_builder::shape_nelts): New function.
19725 (rtx_vector_builder::nelts_of): Likewise.
19726 (rtx_vector_builder::npatterns_of): Likewise.
19727 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
19728 * tree-vector-builder.h (tree_vector_builder): Update template
19729 parameters to vector_builder.
19730 (tree_vector_builder::shape_nelts): New function.
19731 (tree_vector_builder::nelts_of): Likewise.
19732 (tree_vector_builder::npatterns_of): Likewise.
19733 (tree_vector_builder::nelts_per_pattern_of): Likewise.
19734 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
19735 (tree_vector_builder::new_binary_operation): Delete.
19736 (tree_vector_builder::binary_encoded_nelts): Likewise.
19737 * simplify-rtx.c: Include rtx-vector-builder.h.
19738 (distributes_over_addition_p): New function.
19739 (simplify_const_unary_operation)
19740 (simplify_const_binary_operation): Generalize handling of vector
19741 constants to include variable-length vectors.
19742 (test_vector_ops_series): Add more tests.
19744 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
19747 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
19748 than INDENTIFIER_POINTER.
19750 2019-07-28 Martin Liska <mliska@suse.cz>
19753 * cgraph.c (symbol_table::create_edge): Always allocate
19755 (symbol_table::free_edge): Store summary_id to
19756 edge_released_summary_ids if != -1;
19757 * cgraph.h (NEXT_FREE_NODE): Remove.
19758 (SET_NEXT_FREE_NODE): Likewise.
19759 (NEXT_FREE_EDGE): Likewise.
19760 (symbol_table::release_symbol): Store summary_id to
19761 cgraph_released_summary_ids if != -1;
19762 (symbol_table::allocate_cgraph_symbol): Always allocate
19765 2019-07-28 Alan Modra <amodra@gmail.com>
19767 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19770 2019-07-28 Alan Modra <amodra@gmail.com>
19773 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
19775 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
19776 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
19777 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
19779 2019-07-28 Alan Modra <amodra@gmail.com>
19782 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
19783 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
19784 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
19785 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
19786 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
19787 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
19788 in asm_default spec.
19789 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
19790 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
19792 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
19794 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
19796 2019-07-26 Tamar Christina <tamar.christina@arm.com>
19799 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
19800 * config/aarch64/aarch64-option-extensions.def: Add new comments
19801 and restore easier to read options.
19803 2019-07-26 Tamar Christina <tamar.christina@arm.com>
19805 * convert.c (convert_to_real_1): Move part of conversion code...
19806 * match.pd: ...To here.
19808 2019-07-26 Martin Jambor <mjambor@suse.cz>
19811 * ipa-inline-transform.c (check_speculations_1): New function.
19812 (push_all_edges_in_set_to_vec): Likewise.
19813 (check_speculations): Use check_speculations_1, new parameter
19815 (inline_call): Pass new_edges to check_speculations.
19816 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
19818 (speculation_useful_p): Early return true if edge is inlined, remove
19819 later checks for inline_failed.
19821 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
19823 PR rtl-optimization/91223
19824 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
19825 matching with INOUT operand.
19827 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
19829 * stmt.c (expand_case): Try to narrow the index type if it's larger
19830 than a word. Tidy up.
19832 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
19834 * cif-code.def (NEVER_CALL): New code.
19835 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
19836 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
19838 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
19840 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
19841 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19843 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19845 * ipa-devirt.c (add_type_duplicate): Fix return value.
19847 2019-07-25 Richard Biener <rguenther@suse.de>
19849 * tree-vrp.c (extract_range_from_multiplicative_op): Add
19850 type parameter and use it instead of guessing expression
19851 type from the first operand.
19852 (extract_range_from_binary_expr): Pass expr_type down.
19854 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19856 * config/arm/arm.md (SATrev): Change to code attribute.
19857 (*satsi_<SAT:code>): Adjust for the above.
19858 (*satsi_<SAT:code>_shift): Likewise.
19860 2019-07-25 Richard Biener <rguenther@suse.de>
19862 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
19863 Make value_range * temporary const.
19864 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
19866 (evrp_range_analyzer::record_ranges_from_): Likewise.
19867 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19868 deal with having recorded a const one.
19869 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19870 Return a const value_range *.
19871 (evrp_range_analyzer::pop_value_range): Likewise.
19872 (evrp_range_analyzer::stack): Record const value_range *s.
19873 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19875 * gimple-ssa-sprintf.c (get_int_range): Likewise.
19876 (format_integer): Likewise.
19877 (sprintf_dom_walker::handle_gimple_call): Likewise.
19878 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19879 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19880 (vrp_prop::get_value_range): Adjust.
19881 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19882 modifying the lattice in-place.
19883 (vrp_prop::visit_stmt): Likewise.
19884 * vr-values.c (vr_values::get_lattice_entry): New private method.
19885 (vr_values::get_value_range): Wrap it and return a const
19887 (vr_values::set_def_to_varying): New.
19888 (vr_values::set_defs_to_varying): Use it.
19889 (vr_values::update_value_range): Likewise.
19890 (vr_values::vrp_stmt_computes_nonzero): Adjust.
19891 (values::op_with_constant_singleton_va): Likewise.
19892 (vr_values::extract_range_for_var_from_co): Likewise.
19893 (vr_values::extract_range_from_ssa_name): Likewise.
19894 (vr_values::extract_range_from_cond_expr): Likewise.
19895 (vr_values::extract_range_basic): Likewise.
19896 (compare_ranges): Take const value_range *, adjust.
19897 (compare_range_with_value): Likewise.
19898 (vrp_valueize): Adjust.
19899 (vrp_valueize_1): Likewise.
19900 (vr_values::get_vr_for_comparison): Return a const value_range *.
19901 (vr_values::compare_name_with_value): Adjust.
19902 (vr_values::compare_names): Likewise.
19903 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19905 (vr_values::vrp_evaluate_conditional): Likewise.
19906 (find_case_label_ranges): Take a const value_range *.
19907 (vr_values::vrp_visit_switch_stmt): Adjust.
19908 (vr_values::extract_range_from_phi_node): Likewise.
19909 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19910 (vr_values::simplify_abs_using_ranges): Likewise.
19911 (test_for_singularity): Take a const value_range *.
19912 (range_fits_type_p): Likewise.
19913 (vr_values::simplify_cond_using_ranges_1): Adjust.
19914 (vr_values::simplify_cond_using_ranges_2): Likewise.
19915 (vr_values::simplify_switch_using_ranges): Likewise.
19916 (vr_values::simplify_float_conversion_usi): Likewise.
19917 (vr_values::two_valued_val_range_p): Likewise.
19918 * vr-values.h (vr_values::get_value_range): Return a const
19920 (vr_values::set_def_to_varying): New.
19921 (vr_values::get_lattice_entry): New private method.
19922 (vr_values::get_vr_for_comparison): Return a const value_range *.
19924 2019-07-25 Martin Liska <mliska@suse.cz>
19925 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19928 * common.opt: Add -fallocation-dce
19929 * gimple.c (gimple_call_operator_delete_p): New.
19930 * gimple.h (gimple_call_operator_delete_p): Likewise.
19931 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19932 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19933 DECL_IS_OPERATOR_DELETE_P.
19934 (mark_all_reaching_defs_necessary_1): Likewise.
19935 (propagate_necessity): Likewise.
19936 (eliminate_unnecessary_stmts): Handle
19937 gimple_call_operator_delete_p.
19938 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19939 Add packing of OPERATOR_DELETE.
19940 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19942 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19943 (DECL_SET_IS_OPERATOR_DELETE): New.
19944 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19946 2019-07-25 Martin Liska <mliska@suse.cz>
19948 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19949 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19950 * coverage.c (coverage_begin_function): Likewise.
19951 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19952 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19953 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19954 (sem_item::hash_referenced_symbol_properties): Likewise.
19955 * lto-streamer-out.c (hash_tree): Likewise.
19956 * predict.c (expr_expected_value_1): Likewise.
19957 * tree-inline.c (expand_call_inline): Likewise.
19958 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19959 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19960 * tree-core.h (enum function_decl_type): New enum.
19961 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19962 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19963 (set_function_decl_type): Likewise.
19964 (DECL_IS_OPERATOR_NEW_P): New.
19965 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19966 (DECL_LAMBDA_FUNCTION): Likewise.
19967 (DECL_LAMBDA_FUNCTION_P): Likewise.
19968 (DECL_IS_OPERATOR_NEW): Remove.
19969 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19971 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19973 * ipa-profile.c (get_most_common_single_value): Use
19974 get_nth_most_common_value.
19975 * profile.c (sort_hist_value): New function.
19976 (compute_value_histograms): Call sort_hist_value to sort the
19977 values after loading from disk.
19978 * value-prof.c (get_most_common_single_value): Rename to ...
19979 get_nth_most_common_value. Add input params n, return
19980 the n_th value and count.
19981 (gimple_divmod_fixed_value_transform): Use
19982 get_nth_most_common_value.
19983 (gimple_ic_transform): Likewise.
19984 (gimple_stringops_transform): Likewise.
19985 * value-prof.h (get_most_common_single_value): Add input params
19988 2019-07-25 Richard Biener <rguenther@suse.de>
19990 PR tree-optimization/91236
19991 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19992 size of CONSTRUCTOR write. Fix buffer size we pass to
19993 native_encode_expr.
19995 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19997 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19998 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
20001 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20003 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
20004 explicitly disabled with --disable-initfini-array.
20006 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20008 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
20011 2019-07-24 Martin Sebor <msebor@redhat.com>
20013 PR tree-optimization/91183
20014 PR tree-optimization/86688
20015 * builtins.c (compute_objsize): Handle MEM_REF.
20016 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
20017 (get_min_string_length): Remove.
20018 (count_nonzero_bytes): New function.
20019 (handle_char_store): Rename...
20020 (handle_store): to this. Handle multibyte stores via integer types.
20021 (strlen_check_and_optimize_stmt): Adjust conditional and the called
20024 2019-07-24 Martin Sebor <msebor@redhat.com>
20027 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
20028 (diagnostic_report_diagnostic): Same.
20029 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
20030 (diagnostic_context::lang_mask): New data member.
20031 * ipa-pure-const.c (suggest_attribute): Use
20032 lang_hooks.option_lang_mask ().
20033 * opts-common.c (option_enabled): Handle new argument.
20034 (get_option_state): Pass an additional argument.
20035 * opts.c (print_filtered_help): Print supported languages for
20036 unsupported options. Adjust printing of current state.
20037 * opts.h (option_enabled): Add argument.
20038 * toplev.c (print_switch_values): Use lang_mask.
20039 (general_init): Set global_dc->lang_mask.
20041 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
20044 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
20046 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
20048 * cgraphunit.c (symbol_table::compile): Start and stop
20049 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
20050 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
20052 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
20054 * gimplify.c (flag_instrument_functions_exclude_p): Include
20055 namespace/class information in the printable name.
20056 * opts.c (add_comma_separated_to_vector): Add NUL terminator
20057 to tokens entered into the vector.
20059 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
20061 * tree-nested.c (build_simple_mem_ref_notrap): New function.
20062 (get_static_chain): Call it instead of build_simple_mem_ref.
20063 (get_frame_field): Likewise.
20064 (get_nonlocal_debug_decl): Likewise.
20065 (convert_nonlocal_reference_op): Likewise.
20067 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
20069 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
20071 (arc_compute_frame_size): Millicode is disabled when compiling
20073 (arc_return_address_register): Likewise.
20074 (arc_compute_function_type): Likewise.
20075 (arc_compute_frame_size): Likewise.
20076 (secondary_reload_info): Likewise.
20077 (arc_get_unalign): Likewise.
20078 (arc_can_use_return_insn): Declare.
20079 * config/arc/arc.c (AUX_LP_START): Define
20080 (AUX_LP_END): Likewise.
20081 (arc_frame_info): Update gmask member to 64-bit datum.
20082 (GMASK_LEN): Update.
20083 (arc_compute_function_type): Make it static, move it forward.
20084 (arc_must_save_register): Update, consider the extra regs.
20085 (arc_compute_millicode_save_restore_regs): Update to use the 64
20087 (arc_compute_frame_size): Likewise.
20088 (arc_enter_leave_p): Likewise.
20089 (arc_save_callee_saves): Likewise.
20090 (arc_restore_callee_saves): Likewise.
20091 (arc_save_callee_enter): Likewise.
20092 (arc_restore_callee_leave): Likewise.
20093 (arc_save_callee_milli): Likewise.
20094 (arc_restore_callee_milli): Likewise.
20095 (arc_expand_prologue): Add new interrupt handling.
20096 (arc_return_address_register): Make it static, move it forward.
20097 (arc_expand_epilogue): Add new interrupt handling.
20098 (arc_get_unalign): Delete.
20099 (arc_epilogue_uses): Make sure we do not remove the extra
20100 saved/restored registers when interrupt.
20101 (arc_can_use_return_insn): New function.
20102 (push_reg): Likewise.
20103 (pop_reg): Likewise.
20104 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
20106 (arc_restore_callee_saves): Likewise, but restoring.
20107 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
20108 (R33_REG): Likewise.
20109 (R34_REG): Likewise.
20110 (R35_REG): Likewise.
20111 (R36_REG): Likewise.
20112 (R37_REG): Likewise.
20113 (R38_REG): Likewise.
20114 (R39_REG): Likewise.
20115 (R45_REG): Likewise.
20116 (R46_REG): Likewise.
20117 (R47_REG): Likewise.
20118 (R48_REG): Likewise.
20119 (R49_REG): Likewise.
20120 (R50_REG): Likewise.
20121 (R51_REG): Likewise.
20122 (R52_REG): Likewise.
20123 (R53_REG): Likewise.
20124 (R54_REG): Likewise.
20125 (R55_REG): Likewise.
20126 (R56_REG): Likewise.
20127 (R58_REG): Likewise.
20128 (type): Add rtie attribute.
20129 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
20130 (movsi_insn): Accept moves to lp_count.
20131 (rtie): Update pattern.
20132 (simple_return): Simplify it, don't use this pattern as a return
20134 (arc600_rtie): New pattern.
20135 (p_return_i): Clean up.
20136 (return): Likewise.
20137 * config/arc/builtins.def (rtie): Only available for non ARC6xx
20139 * config/arc/predicates.md (move_src_operand): Consider lp_count
20142 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
20144 * config/s390/predicates.md (addv_const_operand): New predicate.
20145 * config/s390/s390-modes.def (CCO): New condition code mode.
20146 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
20147 (s390_branch_condition_mask): Likewise.
20148 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
20149 ("mulv<mode>4"): New expanders.
20150 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
20151 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
20152 pattern definitions.
20154 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20156 PR middle-end/91166
20157 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
20158 (define_predicates): Add entry for uniform_vector_p.
20159 (vec_same_elem_p): New match pattern.
20161 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
20164 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
20165 * config/i386/darwin32-biarch.h .. to here.
20166 * config/i386/darwin64-biarch.h: Adjust comments.
20167 * config/rs6000/darwin32-biarch.h: Likewise.
20168 * config/rs6000/darwin64-biarch.h: Likewise.
20169 * config.gcc: Missed commit from r273746
20170 (*-*-darwin*): Don't include CPU t-darwin here.
20171 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
20172 an error message if i686-darwin configuration is attempted for
20175 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
20178 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
20179 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
20180 an error message if i686-darwin configuration is attempted for
20182 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
20183 (powerpc-*-darwin*): Use biarch files where needed.
20184 (powerpc64-*-darwin*): Likewise.
20185 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
20186 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
20188 * config/i386/darwin32-biarch.h: New.
20189 * config/i386/darwin64.h: Rename.
20190 * config/i386/darwin64-biarch.h: To this.
20191 * config/i386/t-darwin: Rename.
20192 * config/i386/t-darwin32-biarch: To this.
20193 * config/i386/t-darwin64: Rename.
20194 * config/i386/t-darwin64-biarch: To this.
20195 * config/rs6000/darwin32-biarch.h: New.
20196 * config/rs6000/darwin64.h: Rename.
20197 * config/rs6000/darwin64-biarch.h: To this.
20198 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
20200 * config/rs6000/t-darwin8: Rename.
20201 * config/rs6000/t-darwin32-biarch: To this.
20202 * config/rs6000/t-darwin64 Rename.
20203 * config/rs6000/t-darwin64-biarch: To this.
20205 2019-07-23 Martin Sebor <msebor@redhat.com>
20207 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
20209 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
20211 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
20212 (rh): New alias for it.
20214 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
20216 * gdbhooks.py: Pass replace=True to
20217 gdb.printing.register_pretty_printer.
20219 2019-07-23 Richard Biener <rguenther@suse.de>
20222 * lto-streamer-in.c (input_function): Drop inline-entry markers
20223 that ended up with an unknown location block.
20225 2019-07-23 Richard Biener <rguenther@suse.de>
20227 PR tree-optimization/83518
20228 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
20229 init from a constant even when partial defs are already recorded.
20231 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
20233 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
20234 * config/i386/znver1.md: Enable patterns for znver2 and add store
20235 variants which use extra AGU unit.
20237 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
20239 * config/i386/i386-options.c (ix86_option_override_internal): Default
20240 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
20241 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
20244 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
20246 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
20247 (znver2_costs): Update 256 bit SSE costs and multiplication.
20249 2019-07-23 Jan Beulich <jbeulich@suse.com>
20251 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
20252 Require only AVX512F.
20253 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
20254 alternative expanding to vpternlog.
20256 2019-07-23 Martin Liska <mliska@suse.cz>
20258 * dwarf2out.c (gen_producer_string): Canonize -flto=N
20259 to -flto in dwarf producer string.
20261 2019-07-23 Richard Biener <rguenther@suse.de>
20263 * tree-cfg.c (label_for_bb): Remove global var.
20264 (main_block_label): Take label_for_bb as argument.
20265 (cleanup_dead_labels_eh): Likewise, adjust.
20266 (cleanup_dead_labels): Adjust.
20268 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
20270 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
20271 Configurations): Add documentation for __builtin_mtfsf.
20273 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
20275 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
20276 * config/riscv/riscv.c (riscv_constant_alignment): Use
20277 riscv_align_data_type.
20278 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
20279 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
20280 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
20281 * config/riscv/riscv.opt (malign-data): New.
20282 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
20284 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
20286 * cgraph.c (dump_graphviz): New function.
20287 * cgraph.h (dump_graphviz): New function.
20288 * symtab.c (dump_graphviz): New function.
20290 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
20292 * config/aarch64/aarch64-simd.md
20293 (*aarch64_simd_sra<mode>): New.
20294 * config/aarch64/iterators.md
20295 (SHIFTRT): New iterator.
20296 (sra_op): New attribute.
20298 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20300 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
20301 callee-saved regs R4->R10 in an interrupt function that calls another
20304 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
20306 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
20307 (_mm_blendv_epi8): New.
20309 2019-07-22 Richard Biener <rguenther@suse.de>
20311 PR tree-optimization/91221
20312 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
20313 restrict partial-def handling of empty constructors and
20314 memset to refs with known offset.
20316 2019-07-22 Jan Beulich <jbeulich@suse.com>
20318 * config/i386/sse.md (ternlogsuffix): New.
20319 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
20321 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
20323 2019-07-22 Martin Liska <mliska@suse.cz>
20325 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
20327 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
20329 2019-07-22 Martin Liska <mliska@suse.cz>
20331 * lto-section-in.c (lto_get_section_data):
20332 Use new function get_compression.
20333 * lto-streamer-out.c (produce_lto_section): Use
20334 set_compression to encode compression algorithm.
20335 * lto-streamer.h (struct lto_section): Do not
20336 use bitfields in the format.
20338 2019-07-22 Martin Liska <mliska@suse.cz>
20341 * opts-common.c (decode_cmdline_option): Decode
20342 argument of -Werror and check it for a wrong language.
20343 * opts-global.c (complain_wrong_lang): Remove such case.
20345 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
20347 * config/arc/arc.c (prepare_move_operands): Always use an
20348 intermediate register when storing a TLS symbols.
20350 2019-07-22 Stafford Horne <shorne@gmail.com>
20352 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
20355 2019-07-22 Stafford Horne <shorne@gmail.com>
20357 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
20358 and munordered-float validations.
20359 * config/or1k/constraints.md (d): New register constraint.
20360 * config/or1k/predicates.md (fp_comparison_operator): New.
20361 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
20363 (or1k_expand_compare): Normalize unordered comparisons.
20364 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
20365 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
20366 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
20367 * config/or1k/or1k.md (type): Add fpu.
20368 (fpu): New instruction reservation.
20369 (F, f, fr, fi, FI, FOP, fop): New.
20370 (<fop><F:mode>3): New ALU instruction definition.
20371 (float<fi><F:mode>2): New conversion instruction definition.
20372 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
20373 (fpcmpcc): New code iterator.
20374 (*sf_fp_insn): New instruction definition.
20375 (cstore<F:mode>4): New expand definition.
20376 (cbranch<F:mode>4): New expand definition.
20377 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
20378 munordered-float): New options.
20379 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
20382 2019-07-22 Stafford Horne <shorne@gmail.com>
20384 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
20385 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
20386 documenation to be more clear.
20387 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
20389 * config/or1k/or1k.opt (mrori): New option.
20390 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
20391 msfimm, mshftimm): Rewrite documentation to be more clear.
20392 * config/or1k/or1k.md (insn_support): Add ror and rori.
20393 (enabled): Add conditions for ror and rori.
20394 (rotrsi3): Replace condition for shftimm with ror and rori.
20396 2019-07-22 Stafford Horne <shorne@gmail.com>
20399 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
20400 (extend<mode>si2): Update predicate.
20401 * config/or1k/predicates.md (volatile_mem_operand): New.
20402 (reg_or_mem_operand): New.
20404 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
20406 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
20407 * config/rs6000/rs6000-call.c: ... to here.
20409 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20411 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
20414 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20416 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
20418 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20420 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
20422 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20424 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
20425 (any_memory_operand): New predicate.
20426 (reg_or_mem_operand): Use it.
20428 2019-07-20 Jakub Jelinek <jakub@redhat.com>
20431 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
20433 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
20435 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
20436 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
20438 2019-07-20 Jakub Jelinek <jakub@redhat.com>
20440 * tree.def (OMP_LOOP): New tree code.
20441 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
20442 (enum omp_clause_bind_kind): New enum.
20443 (struct tree_omp_clause): Add subcode.bind_kind.
20444 * tree.h (OMP_LOOP_CHECK): Rename to ...
20445 (OMP_LOOPING_CHECK): ... this.
20446 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
20447 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
20448 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
20449 (OMP_CLAUSE_BIND_KIND): Define.
20450 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20451 bind clause entries.
20452 (walk_tree_1): Handle OMP_CLAUSE_BIND.
20453 * tree-pretty-print.c (dump_omp_clause): Likewise.
20454 (dump_generic_node): Handle OMP_LOOP.
20455 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
20456 (in_omp_construct): New variable.
20457 (is_gimple_stmt): Handle OMP_LOOP.
20458 (gimplify_scan_omp_clauses): For lastprivate don't set
20459 check_non_private if code == OMP_LOOP. For reduction clause
20460 on OMP_LOOP combined with parallel or teams propagate as shared
20461 on the combined construct. Handle OMP_CLAUSE_BIND.
20462 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
20463 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
20464 for constructs from a loop construct to gimplify_scan_omp_clauses.
20465 Don't predetermine iterator linear on OMP_SIMD from loop construct.
20466 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
20467 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
20468 to match the implicit ORT_TARGET construct around whole body.
20469 Temporarily clear in_omp_construct when processing body.
20470 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
20471 etc. temporarily set in_omp_construct when processing body.
20472 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
20473 * omp-low.c (struct omp_context): Add loop_p.
20474 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
20475 in that the original var might be private.
20476 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
20477 (check_omp_nesting_restrictions): Adjust nesting restrictions for
20478 addition of loop construct.
20479 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
20481 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
20482 lastprivate non-addressable iterator of a collapse(1) simd.
20484 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
20486 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
20489 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
20491 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
20492 refer to default conditions. Warn for the 'y' spec which is ignored
20493 by current linkers.
20495 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
20497 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
20498 cpu_supports_info, builtin_hash_struct, builtin_hasher,
20499 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
20500 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
20501 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
20502 init_cumulative_args, rs6000_promote_function_mode,
20503 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
20504 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
20505 rs6000_function_arg_boundary, rs6000_parm_offset,
20506 rs6000_parm_start, rs6000_arg_size,
20507 rs6000_darwin64_record_arg_advance_flush,
20508 rs6000_darwin64_record_arg_advance_recurse,
20509 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
20510 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
20511 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
20512 rs6000_mixed_function_arg, rs6000_psave_function_arg,
20513 rs6000_finish_function_arg, rs6000_function_arg,
20514 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
20515 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
20516 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
20517 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
20518 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
20519 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
20520 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
20521 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
20522 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
20523 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
20524 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
20525 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
20526 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
20527 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
20528 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
20529 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
20530 get_element_number, altivec_expand_vec_set_builtin,
20531 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
20532 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
20533 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
20534 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
20535 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
20536 rs6000_expand_builtin, rs6000_vector_type,
20537 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
20538 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
20539 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
20541 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
20542 cpu_supports_info, builtin_hash_struct, builtin_hasher,
20543 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
20544 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
20545 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
20546 init_cumulative_args, rs6000_promote_function_mode,
20547 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
20548 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
20549 rs6000_function_arg_boundary, rs6000_parm_offset,
20550 rs6000_parm_start, rs6000_arg_size,
20551 rs6000_darwin64_record_arg_advance_flush,
20552 rs6000_darwin64_record_arg_advance_recurse,
20553 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
20554 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
20555 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
20556 rs6000_mixed_function_arg, rs6000_psave_function_arg,
20557 rs6000_finish_function_arg, rs6000_function_arg,
20558 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
20559 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
20560 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
20561 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
20562 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
20563 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
20564 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
20565 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
20566 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
20567 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
20568 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
20569 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
20570 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
20571 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
20572 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
20573 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
20574 get_element_number, altivec_expand_vec_set_builtin,
20575 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
20576 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
20577 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
20578 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
20579 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
20580 rs6000_expand_builtin, rs6000_vector_type,
20581 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
20582 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
20583 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
20584 to here from rs6000.c.
20585 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
20586 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
20587 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
20588 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
20589 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
20590 rs6000_return_in_memory, rs6000_return_in_msb,
20591 rs6000_pass_by_reference, setup_incoming_varargs,
20592 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
20593 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
20594 rs6000_function_arg_padding, rs6000_function_arg,
20595 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
20596 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
20597 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
20598 rs6000_passes_long_double, rs6000_passes_vector,
20599 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
20600 altivec_builtin_mask_for_load) Add declarations.
20601 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
20602 * config/config.gcc: Add new source file rs6000-call.c to garbage
20603 collector and extra_objs.
20605 2019-07-19 Jeff Law <law@redhat.com>
20607 PR tree-optimization/86061
20608 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
20609 strncpy. Drop some trivial dead code.
20610 (maybe_trim_memstar_call): Handle strncpy.
20612 2019-07-19 Richard Biener <rguenther@suse.de>
20614 PR tree-optimization/91211
20615 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
20616 memset encoding size.
20618 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
20621 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
20623 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
20626 * ipa-inline.c (recursive_inlining): Fix limits check.
20628 2019-07-19 Richard Biener <rguenther@suse.de>
20630 PR tree-optimization/91200
20631 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
20632 no PHI nodes in middle-bb.
20634 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
20636 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
20638 * config/aarch64/aarch64-option-extensions.def: Likewise.
20640 2019-07-19 Jakub Jelinek <jakub@redhat.com>
20642 PR middle-end/91190
20643 * function.c (insert_temp_slot_address): Store into the hash table
20644 a copy of address to avoid RTL sharing issues.
20646 2019-07-19 Richard Biener <rguenther@suse.de>
20648 PR tree-optimization/91207
20650 2019-07-17 Richard Biener <rguenther@suse.de>
20652 PR tree-optimization/91178
20653 * tree-vect-stmts.c (get_group_load_store_type): For SLP
20654 loads with a gap larger than the vector size always use
20656 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20657 avoid loading vectors that are only contained in the gap
20658 and thus are not needed.
20660 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
20662 * config/i386/i386.md (*addqi_2_slp): Remove.
20663 (*<code>qi_2_slp): Ditto.
20665 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
20667 * config/rs6000/predicates.md (prefixed_mem_operand): Call
20668 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
20669 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
20670 Rename function from rs6000_prefixed_address.
20671 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20673 (TARGET_TOC): Likewise.
20674 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20676 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20678 (TARGET_TOC): Likewise.
20679 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20681 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20683 (TARGET_TOC): Likewise.
20684 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20685 check to require -mcmodel=medium for pc-relative addressing.
20686 (create_TOC_reference): Add assertion for TARGET_TOC.
20687 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
20689 (rs6000_emit_move): Likewise.
20690 (TOC_alias_set): Rename TOC alias set static variable from 'set'
20691 to 'TOC_alias_set'.
20692 (get_TOC_alias_set): Likewise.
20693 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
20695 (rs6000_can_eliminate): Likewise.
20696 (rs6000_prefixed_address_mode_p): Rename function from
20697 rs6000_prefixed_address.
20698 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
20699 TARGET_HAS_TOC and not pc-relative.
20700 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
20701 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
20703 (TARGET_TOC): Likewise.
20704 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
20707 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
20710 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
20711 for operand 0. Do not use (match_dup) to match operand 1 with
20712 operand 0. Add check in insn constraint that either input operand
20713 matches operand 0. Use SWI12 mode iterator to also handle
20715 (*and<mode>_1_slp): Ditto.
20716 (*<code>qi_1_slp): Ditto.
20717 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
20718 Do not use (match_dup) to match operand 1 with operand 0. Add
20719 check in insn constraint that operand 1 matches operand 0.
20720 Use SWI12 mode iterator to also handle HImode operands.
20721 (*ashl<mode>3_1_slp): Ditto.
20722 (*<shift_insn><mode>3_1_slp): Ditto.
20723 (*<rotate_insn><mode>3_1_slp): Ditto.
20725 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
20727 * config/arm/arm-builtins.c
20728 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
20729 (arm_expand_unop_builtin): Likewise.
20730 * config/arm/crypto.md
20731 (crypto_sha1h): Convert from define_insn to define_expand.
20732 (crypto_<crypto_pattern>): Likewise.
20733 (crypto_sha1h_lb): New define_insn.
20734 (crypto_<crypto_pattern>_lb): Likewise.
20736 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
20739 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
20740 (vsha1cq_u32): Likewise.
20741 (vsha1pq_u32): Likewise.
20742 (vsha1mq_u32): Likewise.
20743 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
20745 (crypto_sha1c): Correct vec select.
20746 (crypto_sha1m): Likewise.
20747 (crypto_sha1p): Likewise.
20749 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
20751 * config/arm/predicates.md (arm_borrow_operation): New predicate.
20752 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
20753 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
20754 (subdi_zesidi_zesidi): Likewise.
20755 (negdi2_compare, negdi2_insn): Likewise.
20756 (negdi_extensidi): Likewise.
20757 (negdi_zero_extendsidi): Likewise.
20758 (arm_cmpdi_insn): Likewise.
20759 (subsi3_carryin): Use arm_borrow_operation.
20760 (subsi3_carryin_const): Likewise.
20761 (subsi3_carryin_const0): Likewise.
20762 (subsi3_carryin_compare): Likewise.
20763 (subsi3_carryin_compare_const): Likewise.
20764 (subsi3_carryin_compare_const0): Likewise.
20765 (subsi3_carryin_shift): Likewise.
20766 (rsbsi3_carryin_shift): Likewise.
20767 (negsi2_carryin_compare): Likewise.
20769 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
20771 PR tree-optimization/91137
20772 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
20773 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
20774 Init, use and fini the above new field.
20775 (determine_base_object_1): New function.
20776 (determine_base_object): Reimplement using walk_tree.
20778 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
20780 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
20781 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
20782 CLEANUP_FORCE_FAST_DCE is set.
20783 * ifcvt.c (rest_of_handle_if_conversion): Pass
20784 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
20785 if-conversion succeeded.
20787 2019-07-18 Richard Biener <rguenther@suse.de>
20789 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
20790 branches to make code less indented.
20792 2019-07-17 Alexandre Oliva <oliva@adacore.com>
20794 PR middle-end/81824
20795 * attribs.c (decls_mismatched_attributes): Simplify the logic
20796 that avoids duplicates and false positives.
20798 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
20800 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
20801 data into data section when generating PIC code.
20802 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
20803 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
20804 generating code for SOM targets earlier than HP-UX 11. Otherwise,
20805 return 2 for SOM and 0 for other targets.
20807 2019-07-17 Jeff Law <law@redhat.com>
20809 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
20810 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
20811 avoid unexpected switch statement fallthru.
20813 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
20815 * config/i386/i386.md (*add<dwi>3_doubleword):
20816 Remove redundant constraints.
20817 (*add<mode>_1): Ditto.
20820 (*addqi_1_slp): Ditto.
20821 (*add<mode>_2): Ditto.
20822 (*addv<mode>4): Ditto.
20823 (*sub<dwi>3_doubleword): Ditto.
20824 (*sub<mode>_1): Ditto.
20825 (*subqi_1_slp): Ditto.
20826 (*sub<mode>_2): Ditto.
20827 (*subv<mode>4): Ditto.
20828 (*sub<mode>_3): Ditto.
20829 (@add<mode>3_carry): Ditto.
20830 (@sub<mode>3_carry): Ditto.
20831 (*add<mode>3_cc_overflow_1): Ditto.
20832 (*add<mode>3_zext_cc_overflow_2): Ditto.
20834 (*and<mode>_1): Ditto.
20836 (*andqi_1_slp): Ditto.
20838 (*andqi_2_maybe_si): Ditto.
20839 (*and<mode>_2): Ditto.
20840 (*andqi_2_slp): Ditto.
20841 (*<code><mode>_1): Ditto.
20842 (*<code>qi_1): Ditto.
20843 (*<code>qi_1_slp): Ditto.
20844 (*<code><mode>_2): Ditto.
20845 (*<code>qi_2_slp): Ditto.
20847 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
20849 * alias.c (record_component_aliases): Do not simplify pointed-to
20850 types of ODR types.
20852 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
20854 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
20855 partial reg stall on alternative 2.
20857 2019-07-17 Richard Biener <rguenther@suse.de>
20859 PR tree-optimization/91178
20860 * tree-ssa.c (release_defs_bitset): Iterate from higher to
20861 lower SSA names to avoid quadratic behavior in the common case.
20862 * tree-data-ref.c (split_constant_offset): Add limit argument
20863 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20864 (split_constant_offset_1): Add limit argument and use it to
20865 limit SSA def walking. Optimize the common plus/minus case.
20867 2019-07-17 Richard Biener <rguenther@suse.de>
20869 PR tree-optimization/91178
20870 * tree-vect-stmts.c (get_group_load_store_type): For SLP
20871 loads with a gap larger than the vector size always use
20873 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20874 avoid loading vectors that are only contained in the gap
20875 and thus are not needed.
20877 2019-07-17 Richard Biener <rguenther@suse.de>
20879 PR tree-optimization/91180
20880 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20881 computation for memset partial defs.
20883 2019-07-17 Jakub Jelinek <jakub@redhat.com>
20885 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20886 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20887 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20888 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20889 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20890 * omp-grid.c (grid_process_grid_body,
20891 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20892 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20893 == GF_OMP_FOR_KIND_SIMD.
20894 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20895 check_omp_nesting_restrictions, scan_omp_1_stmt,
20896 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20897 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20898 omp_find_scan): Likewise.
20899 * omp-expand.c (expand_omp_for): Likewise.
20900 * omp-general.c (omp_extract_for_data): Likewise.
20902 PR tree-optimization/91157
20903 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20904 a vector boolean with scalar mode.
20905 (expand_vector_condition): Handle first operand being a vector boolean
20907 (expand_vector_operations_1): For comparisons, don't bail out early
20908 if the return type is vector boolean with scalar mode, but comparison
20909 operand type is not.
20911 2019-07-17 Richard Biener <rguenther@suse.de>
20913 PR tree-optimization/91181
20914 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20915 IFN_LOADs as calls.
20917 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20919 * config/i386/i386.md (*testdi_1): Match CCZmode for
20920 constants that might have the SImode sign bit set.
20921 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20922 Use correct constraints for pentium pairing.
20923 (*test<mode>_1): Ditto.
20925 2019-07-16 Jeff Law <law@redhat.com>
20927 PR rtl-optimization/91173
20928 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20929 SSA_NAME with a constant value, fold its value into the offset
20930 and clear the base before calling gen_addr_rtx.
20932 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20934 PR rtl-optimization/91164
20935 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20936 invalidate dominance info.
20938 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20940 * read-md.h (md_reader::record_potential_iterator_use): Add a
20941 file_location parameter.
20942 * read-rtl.c (attribute_use::loc): New field.
20943 (map_attr_string): Take a file_location parameter. Report cases
20944 in which attributes map to multiple distinct values.
20945 (apply_attribute_uses): Update call accordingly.
20946 (md_reader::handle_overloaded_name): Likewise.
20947 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20949 (record_attribute_use): Take a file_location parameter.
20950 Initialize attribute_use::loc.
20951 (md_reader::record_potential_iterator_use): Take a file_location
20952 parameter. Update call to record_attribute_use.
20953 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20954 (rtx_reader::read_rtx_code): Likewise.
20955 (rtx_reader::read_rtx_operand): Likewise. Record a location
20956 for implicitly-expanded empty strings.
20958 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20960 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20961 Use file_location instead of separate fields.
20962 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20963 separate filename and line number.
20964 * read-md.c (ptr_loc): As above.
20965 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20966 (md_reader::fprint_md_ptr_loc): Likewise.
20967 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20968 instead of a separate filename and line number.
20969 (md_reader::read_string): Update call accordingly.
20971 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20973 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20974 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20975 leaving the choice between SFDF and P implicit.
20976 (*mov<mode>_update2): Likewise.
20977 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20978 rather than leaving the choice betweem IBM128 and GPR implicit.
20979 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20980 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20982 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20983 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20984 * config/rs6000/vsx.md
20985 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20986 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20987 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20988 and VSX_EXTRACT_I implicit.
20990 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20992 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20993 Explicitly use <MOVEP1:MODE> for the mode attribute.
20995 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20998 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
21000 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
21003 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
21004 .machine directive.
21006 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
21008 * config/i386/i386.md (@test<mode>_ccno_1):
21009 Rename from test<mode>_ccno_1.
21010 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
21011 (*testqi_1_maybe_si): Remove modrm attribute.
21012 (*test<mode>_1): Ditto.
21013 * config/i386/i386-expand.c (ix86_split_idivmod): Use
21014 gen_test_ccno_1 and gen_extend_insn.
21016 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
21018 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
21021 2019-07-15 Richard Biener <rguenther@suse.de>
21023 PR middle-end/91162
21024 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
21025 node make sure to replace all uses with something valid.
21027 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
21029 PR tree-optimization/88497
21030 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
21031 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
21032 function undistribute_bitref_for_vector.
21033 (undistribute_bitref_for_vector): New function.
21034 (cleanup_vinfo_map): Likewise.
21035 (sort_by_mach_mode): Likewise.
21037 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
21039 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
21040 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
21041 and testdi_ccno_1 using SWI48 mode attribute.
21042 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
21043 x86_64_szext_general_operand.
21044 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
21045 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
21046 instead of genera_operand mode attribute.
21048 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
21050 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
21051 fopen and fclose to their respective types.
21052 (DotFn.invoke): Ditto.
21054 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
21056 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
21057 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
21058 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
21059 (array_index_predicate): Remove.
21060 (analyze_function_body): Account cost for variable ofsetted array
21062 (estimate_node_size_and_time): Do not compute array index hint.
21063 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
21064 (inline_read_section): Do not read array index hint.
21065 (ipa_fn_summary_write): Do not write array index hint.
21066 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
21067 * ipa-cp.c (hint_time_bonus): Remove.
21068 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
21069 (ipa_fnsummary): Remove array_index.
21070 * ipa-inline.c (want_inline_small_function_p): Do not use
21072 (edge_badness): Likewise.
21073 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
21075 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
21078 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
21079 superfluous "builtin function" phrasing.
21081 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
21083 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
21085 (aliasing_component_refs_walk): Break out from ...
21086 (aliasing_component_refs_p): ... here.
21088 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
21091 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
21092 "builtin function" phrasing.
21094 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21097 * recog.h (temporary_volatile_ok): New class.
21098 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
21099 volatile_ok temporarily to true using temporary_volatile_ok.
21100 * expr.c (emit_block_move_via_cpymem): Likewise.
21101 * optabs.c (maybe_legitimize_operand): Likewise.
21103 2019-07-13 Jakub Jelinek <jakub@redhat.com>
21105 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
21106 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
21107 uses inside of order(concurrent) constructs.
21108 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
21109 OMP_CLAUSE_ORDER is seen.
21110 * omp-low.c (struct omp_context): Add order_concurrent member.
21111 (scan_sharing_clauses): Set ctx->order_concurrent if
21112 OMP_CLAUSE_ORDER is seen.
21113 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
21114 of simd order(concurrent). Diagnose constructs not allowed inside of
21115 for order(concurrent).
21116 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
21117 complaining about static double setjmp (double); or class static
21118 methods or non-global namespace setjmps.
21119 (omp_runtime_api_call): New function.
21120 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
21121 order(concurrent) loops.
21123 2019-07-12 Martin Sebor <msebor@redhat.com>
21125 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
21126 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
21127 * tree-vrp.c (vrp_prop::check_mem_ref): Use
21128 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
21130 2019-07-12 Jan Hubicka <jh@suse.cz>
21132 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
21133 (indirect_refs_may_alias_p): ... here.
21134 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
21135 mem refs in the access paths.
21137 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
21139 PR tree-optimization/89430
21140 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
21141 store elimination for local variable without address escape.
21143 2019-07-12 Jeff Law <law@redhat.com>
21145 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
21146 for the ".far" section.
21148 2019-07-12 Richard Biener <rguenther@suse.de>
21150 PR tree-optimization/91145
21151 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
21154 2019-07-12 Alexandre Oliva <oliva@adacore.com>
21156 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
21157 rather than this_state as the lowering context for the ELSE
21158 seq in a GIMPLE_EH_ELSE.
21160 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
21162 * vector-builder.h (vector_builder::elt): Allow already-supplied
21163 elements to be read back before building is complete.
21165 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
21167 PR rtl-optimization/91136
21168 * df-core.c (ACCESSING REFS): Fix typos in comment.
21169 * resource.c (mark_target_live_reg): Add artificial defs that occur at
21170 the beginning of the block to the initial set of live registers.
21172 2019-07-12 Richard Biener <rguenther@suse.de>
21174 * fold-const.h (get_array_ctor_element_at_index): Adjust.
21175 * fold-const.c (get_array_ctor_element_at_index): Add
21176 ctor_idx output parameter informing the caller where in
21177 the constructor the element was (not) found. Add early exit
21178 for when the ctor is sorted.
21179 * gimple-fold.c (fold_array_ctor_reference): Support constant
21180 folding across multiple array elements.
21182 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
21184 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
21185 doesn't have location, set the current location to the function's end.
21187 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
21189 * config/aarch64/aarch64.md (*compare_condjump<mode>)
21190 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
21191 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
21192 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
21193 * config/aarch64/aarch64-simd.md
21194 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
21195 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
21196 * config/aarch64/aarch64-sve.md
21197 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
21198 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
21200 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
21202 * doc/md.texi: Document that @ patterns can have different
21203 numbers of operands.
21204 * genemit.c (handle_overloaded_gen): Handle this case.
21205 * genopinit.c (handle_overloaded_gen): Likewise.
21206 * gensupport.c (replace_operands_with_dups): Iterate over
21207 the new rtx's format rather than the old one's.
21209 2019-07-12 Jakub Jelinek <jakub@redhat.com>
21211 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
21212 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21213 order clause entries.
21214 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
21215 * tree-pretty-print.c (dump_omp_clause): Likewise.
21216 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
21218 * omp-low.c (scan_sharing_clauses): Likewise.
21219 * tree-nested.c (convert_nonlocal_omp_clauses,
21220 convert_local_omp_clauses): Likewise.
21222 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
21224 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
21225 fallthrough target of current basic block isn't the placed
21228 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
21231 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
21232 (_mm512_storeu_epi64): Likewise.
21233 (_mm512_loadu_epi32): Likewise.
21234 (_mm512_storeu_epi32): Likewise.
21235 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
21236 (_mm_storeu_epi64): Likewise.
21237 (_mm256_storeu_epi32): Likewise.
21238 (_mm_storeu_epi32): Likewise.
21240 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
21242 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
21244 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
21246 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
21249 2019-07-11 Jakub Jelinek <jakub@redhat.com>
21252 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
21253 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
21254 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
21255 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
21256 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
21257 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
21259 (ufix_truncv2dfv2si2<mask_name>): Change into ...
21260 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
21261 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
21263 (sse2_cvttpd2dq<mask_name>): Change into ...
21264 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
21265 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
21266 (*sse2_cvtpd2dq<mask_name>): Change into ...
21267 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
21268 Add "C" constraint to const0_operand.
21269 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
21270 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
21274 * config/i386/i386-builtin-types.def
21275 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
21276 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
21277 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
21278 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
21279 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
21280 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
21281 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
21282 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
21283 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
21284 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
21285 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
21286 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
21287 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
21288 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
21289 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
21290 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
21291 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
21292 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
21293 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
21294 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
21295 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
21296 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
21297 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
21298 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
21299 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
21300 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
21301 __builtin_ia32_vpdpbusd_v4si_maskz,
21302 __builtin_ia32_vpdpbusds_v16si_mask,
21303 __builtin_ia32_vpdpbusds_v16si_maskz,
21304 __builtin_ia32_vpdpbusds_v8si_mask,
21305 __builtin_ia32_vpdpbusds_v8si_maskz,
21306 __builtin_ia32_vpdpbusds_v4si_mask,
21307 __builtin_ia32_vpdpbusds_v4si_maskz,
21308 __builtin_ia32_vpdpwssd_v16si_mask,
21309 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
21310 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
21311 __builtin_ia32_vpdpwssd_v4si_maskz,
21312 __builtin_ia32_vpdpwssds_v16si_mask,
21313 __builtin_ia32_vpdpwssds_v16si_maskz,
21314 __builtin_ia32_vpdpwssds_v8si_mask,
21315 __builtin_ia32_vpdpwssds_v8si_maskz,
21316 __builtin_ia32_vpdpwssds_v4si_mask,
21317 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
21318 suffixed types rather than *_INT.
21319 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
21320 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
21321 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
21322 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
21323 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
21324 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
21326 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
21328 * tree-vrp.c (intersect_ranges): If we know the intersection is
21329 empty, there is no need to conservatively add anything else to
21332 2019-07-11 Richard Biener <rguenther@suse.de>
21334 PR middle-end/91131
21335 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
21336 when the object is volatile and we have not cleared it even though
21337 there are no nonzero elements.
21339 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
21341 * config/rs6000/predicates.md (cint34_operand): Update
21342 SIGNED_34BIT_OFFSET_P call.
21343 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
21344 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
21345 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
21346 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
21347 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
21349 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
21350 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
21351 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
21352 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
21353 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
21355 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
21357 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
21358 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
21359 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
21360 (DEF_MIN_OSX_VERSION): New.
21362 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
21364 * fold-const.c (fold_relational_const): Fix folding of
21365 vector-to-scalar NE_EXPRs.
21366 (test_vector_folding): Add more tests.
21368 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
21371 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
21372 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
21373 (vec_setv2di_internal): Reexpress as...
21374 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
21375 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
21376 rather than gen_neon_vset_lane<mode>.
21378 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
21381 * lra-constraints.c (process_alt_operands): Don't match user
21382 defined regs only if they are early clobbers.
21384 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
21386 * wide-int.h (wi::lshift): Reject negative values for the fast path.
21388 2019-07-10 Richard Biener <rguenther@suse.de>
21390 PR tree-optimization/91126
21391 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
21392 native encoding offset for BYTES_BIG_ENDIAN.
21393 (vn_reference_lookup_3): Likewise.
21395 2019-07-10 Richard Biener <rguenther@suse.de>
21397 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
21398 LHS whenever possible.
21400 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
21402 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
21403 from ...; work also on duplicated types.
21404 (nonoverlapping_component_refs_since_match): ... here
21405 (ncr_type_uid): Break out from ...
21406 (ncr_compar): ... here; look for TYPE_UID of canonical type if
21408 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
21409 the types and nonoverlapping_component_refs_p_1 to disambiguate.
21411 2019-07-09 Martin Sebor <msebor@redhat.com>
21413 PR tree-optimization/90989
21414 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
21415 optimization to just single character stores.
21417 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
21419 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
21420 Swap operands only once.
21422 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
21424 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
21425 for both call instructions.
21427 2019-07-09 John Darrington <john@darrington.wattle.id.au>
21429 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
21430 rather than GET_MODE_BITSIZE to better handle partial integer modes.
21432 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
21434 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
21435 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
21436 function from rs6000-logue.c back to rs6000.c.
21437 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
21439 2019-07-09 Martin Sebor <msebor@redhat.com>
21442 * auto-profile.c: Change class-key of PODs to struct and others
21444 * basic-block.h: Same.
21445 * bitmap.c (bitmap_alloc): Same.
21447 * builtins.c (expand_builtin_prefetch): Same.
21448 (expand_builtin_interclass_mathfn): Same.
21449 (expand_builtin_strlen): Same.
21450 (expand_builtin_mempcpy_args): Same.
21451 (expand_cmpstr): Same.
21452 (expand_builtin___clear_cache): Same.
21453 (expand_ifn_atomic_bit_test_and): Same.
21454 (expand_builtin_thread_pointer): Same.
21455 (expand_builtin_set_thread_pointer): Same.
21456 * caller-save.c (setup_save_areas): Same.
21457 (replace_reg_with_saved_mem): Same.
21458 (insert_restore): Same.
21459 (insert_save): Same.
21460 (add_used_regs): Same.
21461 * cfg.c (get_bb_copy): Same.
21462 (set_loop_copy): Same.
21465 * cfgexpand.c (alloc_stack_frame_space): Same.
21466 (add_stack_var): Same.
21467 (add_stack_var_conflict): Same.
21468 (add_scope_conflicts_1): Same.
21469 (update_alias_info_with_stack_vars): Same.
21470 (expand_used_vars): Same.
21471 * cfghooks.c (redirect_edge_and_branch_force): Same.
21472 (delete_basic_block): Same.
21473 (split_edge): Same.
21474 (make_forwarder_block): Same.
21475 (force_nonfallthru): Same.
21476 (duplicate_block): Same.
21477 (lv_flush_pending_stmts): Same.
21478 * cfghooks.h: Same.
21479 * cfgloop.c (flow_loops_cfg_dump): Same.
21480 (flow_loop_nested_p): Same.
21481 (superloop_at_depth): Same.
21482 (get_loop_latch_edges): Same.
21483 (flow_loop_dump): Same.
21484 (flow_loops_dump): Same.
21485 (flow_loops_free): Same.
21486 (flow_loop_nodes_find): Same.
21487 (establish_preds): Same.
21488 (flow_loop_tree_node_add): Same.
21489 (flow_loop_tree_node_remove): Same.
21490 (flow_loops_find): Same.
21491 (find_subloop_latch_edge_by_profile): Same.
21492 (find_subloop_latch_edge_by_ivs): Same.
21493 (mfb_redirect_edges_in_set): Same.
21494 (form_subloop): Same.
21495 (merge_latch_edges): Same.
21496 (disambiguate_multiple_latches): Same.
21497 (disambiguate_loops_with_multiple_latches): Same.
21498 (flow_bb_inside_loop_p): Same.
21499 (glb_enum_p): Same.
21500 (get_loop_body_with_size): Same.
21501 (get_loop_body): Same.
21502 (fill_sons_in_loop): Same.
21503 (get_loop_body_in_dom_order): Same.
21504 (get_loop_body_in_custom_order): Same.
21505 (release_recorded_exits): Same.
21506 (get_loop_exit_edges): Same.
21507 (num_loop_branches): Same.
21508 (remove_bb_from_loops): Same.
21509 (find_common_loop): Same.
21510 (delete_loop): Same.
21511 (cancel_loop): Same.
21512 (verify_loop_structure): Same.
21513 (loop_preheader_edge): Same.
21514 (loop_exit_edge_p): Same.
21515 (single_exit): Same.
21516 (loop_exits_to_bb_p): Same.
21517 (loop_exits_from_bb_p): Same.
21518 (get_loop_location): Same.
21519 (record_niter_bound): Same.
21520 (get_estimated_loop_iterations_int): Same.
21521 (max_stmt_executions_int): Same.
21522 (likely_max_stmt_executions_int): Same.
21523 (get_estimated_loop_iterations): Same.
21524 (get_max_loop_iterations): Same.
21525 (get_max_loop_iterations_int): Same.
21526 (get_likely_max_loop_iterations): Same.
21527 * cfgloop.h (simple_loop_desc): Same.
21529 (loop_depth): Same.
21530 (loop_outer): Same.
21531 (loop_iterator::next): Same.
21532 (loop_outermost): Same.
21533 * cfgloopanal.c (mark_irreducible_loops): Same.
21534 (num_loop_insns): Same.
21535 (average_num_loop_insns): Same.
21536 (expected_loop_iterations_unbounded): Same.
21537 (expected_loop_iterations): Same.
21538 (mark_loop_exit_edges): Same.
21539 (single_likely_exit): Same.
21540 * cfgloopmanip.c (fix_bb_placement): Same.
21541 (fix_bb_placements): Same.
21542 (remove_path): Same.
21543 (place_new_loop): Same.
21545 (scale_loop_frequencies): Same.
21546 (scale_loop_profile): Same.
21547 (create_empty_if_region_on_edge): Same.
21548 (create_empty_loop_on_edge): Same.
21551 (fix_loop_placements): Same.
21552 (copy_loop_info): Same.
21553 (duplicate_loop): Same.
21554 (duplicate_subloops): Same.
21555 (loop_redirect_edge): Same.
21556 (can_duplicate_loop_p): Same.
21557 (duplicate_loop_to_header_edge): Same.
21558 (mfb_keep_just): Same.
21559 (has_preds_from_loop): Same.
21560 (create_preheader): Same.
21561 (create_preheaders): Same.
21562 (lv_adjust_loop_entry_edge): Same.
21563 (loop_version): Same.
21564 * cfgloopmanip.h: Same.
21566 * cgraphbuild.c: Same.
21567 * combine.c (make_extraction): Same.
21568 * config/i386/i386-features.c: Same.
21569 * config/i386/i386-features.h: Same.
21570 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
21571 (ix86_emit_outlined_ms2sysv_restore): Same.
21572 (ix86_noce_conversion_profitable_p): Same.
21573 (ix86_init_cost): Same.
21574 (ix86_simd_clone_usable): Same.
21575 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
21577 * coretypes.h: Same.
21578 * data-streamer-in.c (string_for_index): Change class-key of PODs
21579 to struct and others to class.
21580 (streamer_read_indexed_string): Same.
21581 (streamer_read_string): Same.
21582 (bp_unpack_indexed_string): Same.
21583 (bp_unpack_string): Same.
21584 (streamer_read_uhwi): Same.
21585 (streamer_read_hwi): Same.
21586 (streamer_read_gcov_count): Same.
21587 (streamer_read_wide_int): Same.
21588 * data-streamer.h (streamer_write_bitpack): Same.
21589 (bp_unpack_value): Same.
21590 (streamer_write_char_stream): Same.
21591 (streamer_write_hwi_in_range): Same.
21592 (streamer_write_record_start): Same.
21593 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
21594 (add_cross_iteration_register_deps): Same.
21595 (build_intra_loop_deps): Same.
21596 * df-core.c (df_analyze): Same.
21597 (loop_post_order_compute): Same.
21598 (loop_inverted_post_order_compute): Same.
21599 * df-problems.c (df_rd_alloc): Same.
21600 (df_rd_simulate_one_insn): Same.
21601 (df_rd_local_compute): Same.
21602 (df_rd_init_solution): Same.
21603 (df_rd_confluence_n): Same.
21604 (df_rd_transfer_function): Same.
21605 (df_rd_free): Same.
21606 (df_rd_dump_defs_set): Same.
21607 (df_rd_top_dump): Same.
21608 (df_lr_alloc): Same.
21609 (df_lr_reset): Same.
21610 (df_lr_local_compute): Same.
21611 (df_lr_init): Same.
21612 (df_lr_confluence_n): Same.
21613 (df_lr_free): Same.
21614 (df_lr_top_dump): Same.
21615 (df_lr_verify_transfer_functions): Same.
21616 (df_live_alloc): Same.
21617 (df_live_reset): Same.
21618 (df_live_init): Same.
21619 (df_live_confluence_n): Same.
21620 (df_live_finalize): Same.
21621 (df_live_free): Same.
21622 (df_live_top_dump): Same.
21623 (df_live_verify_transfer_functions): Same.
21624 (df_mir_alloc): Same.
21625 (df_mir_reset): Same.
21626 (df_mir_init): Same.
21627 (df_mir_confluence_n): Same.
21628 (df_mir_free): Same.
21629 (df_mir_top_dump): Same.
21630 (df_word_lr_alloc): Same.
21631 (df_word_lr_reset): Same.
21632 (df_word_lr_init): Same.
21633 (df_word_lr_confluence_n): Same.
21634 (df_word_lr_free): Same.
21635 (df_word_lr_top_dump): Same.
21636 (df_md_alloc): Same.
21637 (df_md_simulate_one_insn): Same.
21638 (df_md_reset): Same.
21639 (df_md_init): Same.
21640 (df_md_free): Same.
21641 (df_md_top_dump): Same.
21642 * df-scan.c (df_insn_delete): Same.
21643 (df_insn_rescan): Same.
21644 (df_notes_rescan): Same.
21645 (df_sort_and_compress_mws): Same.
21646 (df_install_mws): Same.
21647 (df_refs_add_to_chains): Same.
21648 (df_ref_create_structure): Same.
21649 (df_ref_record): Same.
21650 (df_def_record_1): Same.
21651 (df_find_hard_reg_defs): Same.
21652 (df_uses_record): Same.
21653 (df_get_conditional_uses): Same.
21654 (df_get_call_refs): Same.
21655 (df_recompute_luids): Same.
21656 (df_get_entry_block_def_set): Same.
21657 (df_entry_block_defs_collect): Same.
21658 (df_get_exit_block_use_set): Same.
21659 (df_exit_block_uses_collect): Same.
21660 (df_mws_verify): Same.
21661 (df_bb_verify): Same.
21662 * df.h (df_scan_get_bb_info): Same.
21663 * doc/tm.texi: Same.
21664 * dse.c (record_store): Same.
21665 * dumpfile.h: Same.
21666 * emit-rtl.c (const_fixed_hasher::equal): Same.
21667 (set_mem_attributes_minus_bitpos): Same.
21668 (change_address): Same.
21669 (adjust_address_1): Same.
21670 (offset_address): Same.
21671 * emit-rtl.h: Same.
21672 * except.c (dw2_build_landing_pads): Same.
21673 (sjlj_emit_dispatch_table): Same.
21674 * explow.c (allocate_dynamic_stack_space): Same.
21675 (emit_stack_probe): Same.
21676 (probe_stack_range): Same.
21677 * expmed.c (store_bit_field_using_insv): Same.
21678 (store_bit_field_1): Same.
21679 (store_integral_bit_field): Same.
21680 (extract_bit_field_using_extv): Same.
21681 (extract_bit_field_1): Same.
21682 (emit_cstore): Same.
21683 * expr.c (emit_block_move_via_cpymem): Same.
21684 (expand_cmpstrn_or_cmpmem): Same.
21685 (set_storage_via_setmem): Same.
21686 (emit_single_push_insn_1): Same.
21687 (expand_assignment): Same.
21688 (store_constructor): Same.
21689 (expand_expr_real_2): Same.
21690 (expand_expr_real_1): Same.
21691 (try_casesi): Same.
21693 * function.c (try_fit_stack_local): Same.
21694 (assign_stack_local_1): Same.
21695 (assign_stack_local): Same.
21696 (cut_slot_from_list): Same.
21697 (insert_slot_to_list): Same.
21698 (max_slot_level): Same.
21699 (move_slot_to_level): Same.
21700 (temp_address_hasher::equal): Same.
21701 (remove_unused_temp_slot_addresses): Same.
21702 (assign_temp): Same.
21703 (combine_temp_slots): Same.
21704 (update_temp_slot_address): Same.
21705 (preserve_temp_slots): Same.
21706 * function.h: Same.
21708 * gcc-rich-location.h: Same.
21710 * genattrtab.c (check_attr_test): Same.
21711 (check_attr_value): Same.
21712 (convert_set_attr_alternative): Same.
21713 (convert_set_attr): Same.
21714 (check_defs): Same.
21715 (copy_boolean): Same.
21716 (get_attr_value): Same.
21717 (expand_delays): Same.
21718 (make_length_attrs): Same.
21720 (make_alternative_compare): Same.
21721 (simplify_test_exp): Same.
21722 (tests_attr_p): Same.
21723 (get_attr_order): Same.
21724 (clear_struct_flag): Same.
21726 (compares_alternatives_p): Same.
21729 (find_attrs_to_cache): Same.
21730 (write_test_expr): Same.
21731 (walk_attr_value): Same.
21732 (write_attr_get): Same.
21733 (eliminate_known_true): Same.
21734 (write_insn_cases): Same.
21735 (write_attr_case): Same.
21736 (write_attr_valueq): Same.
21737 (write_attr_value): Same.
21738 (write_dummy_eligible_delay): Same.
21739 (next_comma_elt): Same.
21741 (make_internal_attr): Same.
21742 (copy_rtx_unchanging): Same.
21743 (gen_insn_reserv): Same.
21744 (check_tune_attr): Same.
21745 (make_automaton_attrs): Same.
21746 (handle_arg): Same.
21747 * genextract.c (gen_insn): Same.
21748 (VEC_char_to_string): Same.
21749 * genmatch.c (print_operand): Same.
21751 (parser::parse_operation): Same.
21752 (parser::parse_capture): Same.
21753 (parser::parse_c_expr): Same.
21754 (parser::parse_simplify): Same.
21756 * genoutput.c (output_operand_data): Same.
21757 (output_get_insn_name): Same.
21758 (compare_operands): Same.
21759 (place_operands): Same.
21760 (process_template): Same.
21761 (validate_insn_alternatives): Same.
21762 (validate_insn_operands): Same.
21763 (gen_expand): Same.
21764 (note_constraint): Same.
21765 * genpreds.c (write_one_predicate_function): Same.
21766 (add_constraint): Same.
21767 (process_define_register_constraint): Same.
21768 (write_lookup_constraint_1): Same.
21769 (write_lookup_constraint_array): Same.
21770 (write_insn_constraint_len): Same.
21771 (write_reg_class_for_constraint_1): Same.
21772 (write_constraint_satisfied_p_array): Same.
21773 * genrecog.c (optimize_subroutine_group): Same.
21774 * gensupport.c (process_define_predicate): Same.
21775 (queue_pattern): Same.
21776 (remove_from_queue): Same.
21777 (process_rtx): Same.
21778 (is_predicable): Same.
21779 (change_subst_attribute): Same.
21780 (subst_pattern_match): Same.
21781 (alter_constraints): Same.
21782 (alter_attrs_for_insn): Same.
21783 (shift_output_template): Same.
21784 (alter_output_for_subst_insn): Same.
21785 (process_one_cond_exec): Same.
21787 (process_define_cond_exec): Same.
21788 (mnemonic_htab_callback): Same.
21789 (gen_mnemonic_attr): Same.
21790 (read_md_rtx): Same.
21791 * ggc-page.c: Same.
21792 * gimple-loop-interchange.cc (dump_reduction): Same.
21793 (dump_induction): Same.
21794 (loop_cand::~loop_cand): Same.
21795 (free_data_refs_with_aux): Same.
21796 (tree_loop_interchange::interchange_loops): Same.
21797 (tree_loop_interchange::map_inductions_to_loop): Same.
21798 (tree_loop_interchange::move_code_to_inner_loop): Same.
21799 (compute_access_stride): Same.
21800 (compute_access_strides): Same.
21801 (proper_loop_form_for_interchange): Same.
21802 (tree_loop_interchange_compute_ddrs): Same.
21803 (prune_datarefs_not_in_loop): Same.
21804 (prepare_data_references): Same.
21805 (pass_linterchange::execute): Same.
21806 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
21807 (unroll_jam_possible_p): Same.
21808 (fuse_loops): Same.
21809 (adjust_unroll_factor): Same.
21810 (tree_loop_unroll_and_jam): Same.
21811 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
21812 (loop_versioning::expensive_stmt_p): Same.
21813 (loop_versioning::version_for_unity): Same.
21814 (loop_versioning::dump_inner_likelihood): Same.
21815 (loop_versioning::find_per_loop_multiplication): Same.
21816 (loop_versioning::analyze_term_using_scevs): Same.
21817 (loop_versioning::record_address_fragment): Same.
21818 (loop_versioning::analyze_expr): Same.
21819 (loop_versioning::analyze_blocks): Same.
21820 (loop_versioning::prune_conditions): Same.
21821 (loop_versioning::merge_loop_info): Same.
21822 (loop_versioning::add_loop_to_queue): Same.
21823 (loop_versioning::decide_whether_loop_is_versionable): Same.
21824 (loop_versioning::make_versioning_decisions): Same.
21825 (loop_versioning::implement_versioning_decisions): Same.
21826 * gimple-ssa-evrp-analyze.c
21827 (evrp_range_analyzer::record_ranges_from_phis): Same.
21828 * gimple-ssa-store-merging.c (split_store::split_store): Same.
21829 (count_multiple_uses): Same.
21830 (split_group): Same.
21831 (imm_store_chain_info::output_merged_store): Same.
21832 (pass_store_merging::process_store): Same.
21833 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
21834 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
21836 (alloca_call_type): Same.
21837 (pass_walloca::execute): Same.
21838 * gimple-streamer-in.c (input_phi): Same.
21839 (input_gimple_stmt): Same.
21840 * gimple-streamer.h: Same.
21841 * godump.c (go_force_record_alignment): Same.
21842 (go_format_type): Same.
21843 (go_output_type): Same.
21844 (go_output_fndecl): Same.
21845 (go_output_typedef): Same.
21846 (keyword_hash_init): Same.
21847 (find_dummy_types): Same.
21848 * graph.c (draw_cfg_nodes_no_loops): Same.
21849 (draw_cfg_nodes_for_loop): Same.
21850 * hard-reg-set.h (hard_reg_set_iter_next): Same.
21851 * hsa-brig.c: Same.
21852 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
21853 * hsa-dump.c (dump_hsa_cfun): Same.
21854 * hsa-gen.c (gen_function_def_parameters): Same.
21855 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
21856 * input.c (dump_line_table_statistics): Same.
21857 (test_lexer): Same.
21859 * internal-fn.c (get_multi_vector_move): Same.
21860 (expand_load_lanes_optab_fn): Same.
21861 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
21862 (expand_GOMP_SIMT_EXIT): Same.
21863 (expand_GOMP_SIMT_LAST_LANE): Same.
21864 (expand_GOMP_SIMT_ORDERED_PRED): Same.
21865 (expand_GOMP_SIMT_VOTE_ANY): Same.
21866 (expand_GOMP_SIMT_XCHG_BFLY): Same.
21867 (expand_GOMP_SIMT_XCHG_IDX): Same.
21868 (expand_addsub_overflow): Same.
21869 (expand_neg_overflow): Same.
21870 (expand_mul_overflow): Same.
21871 (expand_call_mem_ref): Same.
21872 (expand_mask_load_optab_fn): Same.
21873 (expand_scatter_store_optab_fn): Same.
21874 (expand_gather_load_optab_fn): Same.
21875 * ipa-cp.c (ipa_get_parm_lattices): Same.
21876 (print_all_lattices): Same.
21877 (ignore_edge_p): Same.
21878 (build_toporder_info): Same.
21879 (free_toporder_info): Same.
21880 (push_node_to_stack): Same.
21881 (ipcp_lattice<valtype>::set_contains_variable): Same.
21882 (set_agg_lats_to_bottom): Same.
21883 (ipcp_bits_lattice::meet_with): Same.
21884 (set_single_call_flag): Same.
21885 (initialize_node_lattices): Same.
21886 (ipa_get_jf_ancestor_result): Same.
21887 (ipcp_verify_propagated_values): Same.
21888 (propagate_scalar_across_jump_function): Same.
21889 (propagate_context_across_jump_function): Same.
21890 (propagate_bits_across_jump_function): Same.
21891 (ipa_vr_operation_and_type_effects): Same.
21892 (propagate_vr_across_jump_function): Same.
21893 (set_check_aggs_by_ref): Same.
21894 (set_chain_of_aglats_contains_variable): Same.
21895 (merge_aggregate_lattices): Same.
21896 (agg_pass_through_permissible_p): Same.
21897 (propagate_aggs_across_jump_function): Same.
21898 (call_passes_through_thunk_p): Same.
21899 (propagate_constants_across_call): Same.
21900 (devirtualization_time_bonus): Same.
21901 (good_cloning_opportunity_p): Same.
21902 (context_independent_aggregate_values): Same.
21903 (gather_context_independent_values): Same.
21904 (perform_estimation_of_a_value): Same.
21905 (estimate_local_effects): Same.
21906 (value_topo_info<valtype>::add_val): Same.
21907 (add_all_node_vals_to_toposort): Same.
21908 (value_topo_info<valtype>::propagate_effects): Same.
21909 (ipcp_propagate_stage): Same.
21910 (ipcp_discover_new_direct_edges): Same.
21911 (same_node_or_its_all_contexts_clone_p): Same.
21912 (cgraph_edge_brings_value_p): Same.
21913 (gather_edges_for_value): Same.
21914 (create_specialized_node): Same.
21915 (find_more_scalar_values_for_callers_subset): Same.
21916 (find_more_contexts_for_caller_subset): Same.
21917 (copy_plats_to_inter): Same.
21918 (intersect_aggregates_with_edge): Same.
21919 (find_aggregate_values_for_callers_subset): Same.
21920 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21921 (decide_about_value): Same.
21922 (decide_whether_version_node): Same.
21923 (spread_undeadness): Same.
21924 (identify_dead_nodes): Same.
21925 (ipcp_store_vr_results): Same.
21926 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21927 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21928 (redirect_to_unreachable): Same.
21929 (edge_set_predicate): Same.
21930 (evaluate_conditions_for_known_args): Same.
21931 (evaluate_properties_for_edge): Same.
21932 (ipa_fn_summary_t::duplicate): Same.
21933 (ipa_call_summary_t::duplicate): Same.
21934 (dump_ipa_call_summary): Same.
21935 (ipa_dump_fn_summary): Same.
21936 (eliminated_by_inlining_prob): Same.
21937 (set_cond_stmt_execution_predicate): Same.
21938 (set_switch_stmt_execution_predicate): Same.
21939 (compute_bb_predicates): Same.
21940 (will_be_nonconstant_expr_predicate): Same.
21941 (phi_result_unknown_predicate): Same.
21942 (analyze_function_body): Same.
21943 (compute_fn_summary): Same.
21944 (estimate_edge_devirt_benefit): Same.
21945 (estimate_edge_size_and_time): Same.
21946 (estimate_calls_size_and_time): Same.
21947 (estimate_node_size_and_time): Same.
21948 (remap_edge_change_prob): Same.
21949 (remap_edge_summaries): Same.
21950 (ipa_merge_fn_summary_after_inlining): Same.
21951 (ipa_fn_summary_generate): Same.
21952 (inline_read_section): Same.
21953 (ipa_fn_summary_read): Same.
21954 (ipa_fn_summary_write): Same.
21955 * ipa-fnsummary.h: Same.
21956 * ipa-hsa.c (ipa_hsa_read_section): Same.
21957 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21958 * ipa-icf.c (sem_function::param_used_p): Same.
21959 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21960 * ipa-inline.c (edge_badness): Same.
21961 (inline_small_functions): Same.
21962 * ipa-polymorphic-call.c
21963 (ipa_polymorphic_call_context::stream_out): Same.
21964 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21965 (predicate::remap_after_inlining): Same.
21966 (predicate::stream_out): Same.
21967 * ipa-predicate.h: Same.
21968 * ipa-profile.c (ipa_profile_read_summary): Same.
21969 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21970 (count_formal_params): Same.
21971 (ipa_dump_param): Same.
21972 (ipa_alloc_node_params): Same.
21973 (ipa_print_node_jump_functions_for_edge): Same.
21974 (ipa_print_node_jump_functions): Same.
21975 (ipa_load_from_parm_agg): Same.
21976 (get_ancestor_addr_info): Same.
21977 (ipa_compute_jump_functions_for_edge): Same.
21978 (ipa_analyze_virtual_call_uses): Same.
21979 (ipa_analyze_stmt_uses): Same.
21980 (ipa_analyze_params_uses_in_bb): Same.
21981 (update_jump_functions_after_inlining): Same.
21982 (try_decrement_rdesc_refcount): Same.
21983 (ipa_impossible_devirt_target): Same.
21984 (update_indirect_edges_after_inlining): Same.
21985 (combine_controlled_uses_counters): Same.
21986 (ipa_edge_args_sum_t::duplicate): Same.
21987 (ipa_write_jump_function): Same.
21988 (ipa_write_indirect_edge_info): Same.
21989 (ipa_write_node_info): Same.
21990 (ipa_read_edge_info): Same.
21991 (ipa_prop_read_section): Same.
21992 (read_replacements_section): Same.
21993 * ipa-prop.h (ipa_get_param_count): Same.
21994 (ipa_get_param): Same.
21995 (ipa_get_type): Same.
21996 (ipa_get_param_move_cost): Same.
21997 (ipa_set_param_used): Same.
21998 (ipa_get_controlled_uses): Same.
21999 (ipa_set_controlled_uses): Same.
22000 (ipa_get_cs_argument_count): Same.
22001 * ipa-pure-const.c (analyze_function): Same.
22002 (pure_const_read_summary): Same.
22004 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
22005 * ipa-split.c (test_nonssa_use): Same.
22006 (dump_split_point): Same.
22007 (dominated_by_forbidden): Same.
22008 (split_part_set_ssa_name_p): Same.
22009 (find_split_points): Same.
22010 * ira-build.c (finish_loop_tree_nodes): Same.
22011 (low_pressure_loop_node_p): Same.
22012 * ira-color.c (ira_reuse_stack_slot): Same.
22014 * ira.c (setup_reg_equiv): Same.
22015 (print_insn_chain): Same.
22017 * loop-doloop.c (doloop_condition_get): Same.
22019 (record_reg_sets): Same.
22020 (doloop_optimize): Same.
22021 * loop-init.c (loop_optimizer_init): Same.
22022 (fix_loop_structure): Same.
22023 * loop-invariant.c (merge_identical_invariants): Same.
22024 (compute_always_reached): Same.
22025 (find_exits): Same.
22026 (may_assign_reg_p): Same.
22027 (find_invariants_bb): Same.
22028 (find_invariants_body): Same.
22029 (replace_uses): Same.
22030 (can_move_invariant_reg): Same.
22031 (free_inv_motion_data): Same.
22032 (move_single_loop_invariants): Same.
22033 (change_pressure): Same.
22034 (mark_ref_regs): Same.
22035 (calculate_loop_reg_pressure): Same.
22036 * loop-iv.c (biv_entry_hasher::equal): Same.
22037 (iv_extend_to_rtx_code): Same.
22038 (check_iv_ref_table_size): Same.
22039 (clear_iv_info): Same.
22040 (latch_dominating_def): Same.
22041 (iv_get_reaching_def): Same.
22042 (iv_constant): Same.
22048 (get_biv_step): Same.
22050 (analyzed_for_bivness_p): Same.
22051 (record_biv): Same.
22052 (iv_analyze_biv): Same.
22053 (iv_analyze_expr): Same.
22054 (iv_analyze_def): Same.
22055 (iv_analyze_op): Same.
22056 (iv_analyze): Same.
22057 (iv_analyze_result): Same.
22059 (eliminate_implied_conditions): Same.
22060 (simplify_using_initial_values): Same.
22061 (shorten_into_mode): Same.
22062 (canonicalize_iv_subregs): Same.
22063 (determine_max_iter): Same.
22064 (check_simple_exit): Same.
22065 (find_simple_exit): Same.
22066 (get_simple_loop_desc): Same.
22067 * loop-unroll.c (report_unroll): Same.
22068 (decide_unrolling): Same.
22069 (unroll_loops): Same.
22070 (loop_exit_at_end_p): Same.
22071 (decide_unroll_constant_iterations): Same.
22072 (unroll_loop_constant_iterations): Same.
22073 (compare_and_jump_seq): Same.
22074 (unroll_loop_runtime_iterations): Same.
22075 (decide_unroll_stupid): Same.
22076 (unroll_loop_stupid): Same.
22077 (referenced_in_one_insn_in_loop_p): Same.
22078 (reset_debug_uses_in_loop): Same.
22079 (analyze_iv_to_split_insn): Same.
22080 * lra-eliminations.c (lra_debug_elim_table): Same.
22081 (setup_can_eliminate): Same.
22083 (lra_get_elimination_hard_regno): Same.
22084 (lra_eliminate_regs_1): Same.
22085 (eliminate_regs_in_insn): Same.
22086 (update_reg_eliminate): Same.
22087 (init_elimination): Same.
22088 (lra_eliminate): Same.
22090 * lra-lives.c (initiate_live_solver): Same.
22091 * lra-remat.c (create_remat_bb_data): Same.
22092 * lra-spills.c (lra_spill): Same.
22093 * lra.c (lra_set_insn_recog_data): Same.
22094 (lra_set_used_insn_alternative_by_uid): Same.
22095 (init_reg_info): Same.
22096 (expand_reg_info): Same.
22097 * lto-cgraph.c (output_symtab): Same.
22098 (read_identifier): Same.
22099 (get_alias_symbol): Same.
22100 (input_node): Same.
22101 (input_varpool_node): Same.
22103 (input_edge): Same.
22104 (input_cgraph_1): Same.
22105 (input_refs): Same.
22106 (input_symtab): Same.
22107 (input_offload_tables): Same.
22108 (output_cgraph_opt_summary): Same.
22109 (input_edge_opt_summary): Same.
22110 (input_cgraph_opt_section): Same.
22111 * lto-section-in.c (lto_free_raw_section_data): Same.
22112 (lto_create_simple_input_block): Same.
22113 (lto_free_function_in_decl_state_for_node): Same.
22114 * lto-streamer-in.c (lto_tag_check_set): Same.
22115 (lto_location_cache::revert_location_cache): Same.
22116 (lto_location_cache::input_location): Same.
22117 (lto_input_location): Same.
22118 (stream_input_location_now): Same.
22119 (lto_input_tree_ref): Same.
22120 (lto_input_eh_catch_list): Same.
22121 (input_eh_region): Same.
22122 (lto_init_eh): Same.
22123 (make_new_block): Same.
22125 (fixup_call_stmt_edges): Same.
22126 (input_struct_function_base): Same.
22127 (input_function): Same.
22128 (lto_read_body_or_constructor): Same.
22129 (lto_read_tree_1): Same.
22130 (lto_read_tree): Same.
22131 (lto_input_scc): Same.
22132 (lto_input_tree_1): Same.
22133 (lto_input_toplevel_asms): Same.
22134 (lto_input_mode_table): Same.
22135 (lto_reader_init): Same.
22136 (lto_data_in_create): Same.
22137 * lto-streamer-out.c (output_cfg): Same.
22138 * lto-streamer.h: Same.
22139 * modulo-sched.c (duplicate_insns_of_cycles): Same.
22140 (generate_prolog_epilog): Same.
22141 (mark_loop_unsched): Same.
22142 (dump_insn_location): Same.
22143 (loop_canon_p): Same.
22144 (sms_schedule): Same.
22145 * omp-expand.c (expand_omp_for_ordered_loops): Same.
22146 (expand_omp_for_generic): Same.
22147 (expand_omp_for_static_nochunk): Same.
22148 (expand_omp_for_static_chunk): Same.
22149 (expand_omp_simd): Same.
22150 (expand_omp_taskloop_for_inner): Same.
22151 (expand_oacc_for): Same.
22152 (expand_omp_atomic_pipeline): Same.
22153 (mark_loops_in_oacc_kernels_region): Same.
22154 * omp-offload.c (oacc_xform_loop): Same.
22155 * omp-simd-clone.c (simd_clone_adjust): Same.
22156 * optabs-query.c (get_traditional_extraction_insn): Same.
22157 * optabs.c (expand_vector_broadcast): Same.
22158 (expand_binop_directly): Same.
22159 (expand_twoval_unop): Same.
22160 (expand_twoval_binop): Same.
22161 (expand_unop_direct): Same.
22162 (emit_indirect_jump): Same.
22163 (emit_conditional_move): Same.
22164 (emit_conditional_neg_or_complement): Same.
22165 (emit_conditional_add): Same.
22166 (vector_compare_rtx): Same.
22167 (expand_vec_perm_1): Same.
22168 (expand_vec_perm_const): Same.
22169 (expand_vec_cond_expr): Same.
22170 (expand_vec_series_expr): Same.
22171 (maybe_emit_atomic_exchange): Same.
22172 (maybe_emit_sync_lock_test_and_set): Same.
22173 (expand_atomic_compare_and_swap): Same.
22174 (expand_atomic_load): Same.
22175 (expand_atomic_store): Same.
22176 (maybe_emit_op): Same.
22177 (valid_multiword_target_p): Same.
22178 (create_integer_operand): Same.
22179 (maybe_legitimize_operand_same_code): Same.
22180 (maybe_legitimize_operand): Same.
22181 (create_convert_operand_from_type): Same.
22182 (can_reuse_operands_p): Same.
22183 (maybe_legitimize_operands): Same.
22184 (maybe_gen_insn): Same.
22185 (maybe_expand_insn): Same.
22186 (maybe_expand_jump_insn): Same.
22187 (expand_insn): Same.
22188 * optabs.h (create_expand_operand): Same.
22189 (create_fixed_operand): Same.
22190 (create_output_operand): Same.
22191 (create_input_operand): Same.
22192 (create_convert_operand_to): Same.
22193 (create_convert_operand_from): Same.
22195 * poly-int.h: Same.
22196 * predict.c (optimize_insn_for_speed_p): Same.
22197 (optimize_loop_for_size_p): Same.
22198 (optimize_loop_for_speed_p): Same.
22199 (optimize_loop_nest_for_speed_p): Same.
22200 (get_base_value): Same.
22201 (predicted_by_loop_heuristics_p): Same.
22202 (predict_extra_loop_exits): Same.
22203 (predict_loops): Same.
22204 (predict_paths_for_bb): Same.
22205 (predict_paths_leading_to): Same.
22206 (propagate_freq): Same.
22207 (pass_profile::execute): Same.
22209 * profile-count.c (profile_count::differs_from_p): Same.
22210 (profile_probability::differs_lot_from_p): Same.
22211 * profile-count.h: Same.
22212 * profile.c (branch_prob): Same.
22213 * regrename.c (free_chain_data): Same.
22214 (mark_conflict): Same.
22215 (create_new_chain): Same.
22216 (merge_overlapping_regs): Same.
22217 (init_rename_info): Same.
22218 (merge_chains): Same.
22219 (regrename_analyze): Same.
22220 (regrename_do_replace): Same.
22221 (scan_rtx_reg): Same.
22222 (record_out_operands): Same.
22223 (build_def_use): Same.
22224 * regrename.h: Same.
22226 * reload1.c (init_reload): Same.
22227 (maybe_fix_stack_asms): Same.
22228 (copy_reloads): Same.
22229 (count_pseudo): Same.
22230 (count_spilled_pseudo): Same.
22232 (find_reload_regs): Same.
22233 (select_reload_regs): Same.
22234 (spill_hard_reg): Same.
22235 (fixup_eh_region_note): Same.
22236 (set_reload_reg): Same.
22237 (allocate_reload_reg): Same.
22238 (compute_reload_subreg_offset): Same.
22239 (reload_adjust_reg_for_icode): Same.
22240 (emit_input_reload_insns): Same.
22241 (emit_output_reload_insns): Same.
22242 (do_input_reload): Same.
22243 (inherit_piecemeal_p): Same.
22245 * sanopt.c (maybe_get_dominating_check): Same.
22246 (maybe_optimize_ubsan_ptr_ifn): Same.
22247 (can_remove_asan_check): Same.
22248 (maybe_optimize_asan_check_ifn): Same.
22249 (sanopt_optimize_walker): Same.
22250 * sched-deps.c (add_dependence_list): Same.
22251 (chain_to_prev_insn): Same.
22252 (add_insn_mem_dependence): Same.
22253 (create_insn_reg_set): Same.
22254 (maybe_extend_reg_info_p): Same.
22255 (sched_analyze_reg): Same.
22256 (sched_analyze_1): Same.
22257 (get_implicit_reg_pending_clobbers): Same.
22258 (chain_to_prev_insn_p): Same.
22259 (deps_analyze_insn): Same.
22260 (deps_start_bb): Same.
22261 (sched_free_deps): Same.
22263 (init_deps_reg_last): Same.
22265 * sched-ebb.c: Same.
22266 * sched-int.h: Same.
22267 * sched-rgn.c (add_branch_dependences): Same.
22268 (concat_insn_mem_list): Same.
22270 (sched_rgn_compute_dependencies): Same.
22271 * sel-sched-ir.c (reset_target_context): Same.
22272 (copy_deps_context): Same.
22273 (init_id_from_df): Same.
22274 (has_dependence_p): Same.
22275 (change_loops_latches): Same.
22276 (bb_top_order_comparator): Same.
22277 (make_region_from_loop_preheader): Same.
22278 (sel_init_pipelining): Same.
22279 (get_loop_nest_for_rgn): Same.
22280 (make_regions_from_the_rest): Same.
22281 (sel_is_loop_preheader_p): Same.
22282 * sel-sched-ir.h (inner_loop_header_p): Same.
22283 (get_all_loop_exits): Same.
22284 * selftest.h: Same.
22285 * sese.c (sese_build_liveouts): Same.
22286 (sese_insert_phis_for_liveouts): Same.
22287 * sese.h (defined_in_sese_p): Same.
22288 * sreal.c (sreal::stream_out): Same.
22290 * streamer-hooks.h: Same.
22291 * target-globals.c (save_target_globals): Same.
22292 * target-globals.h: Same.
22293 * target.def: Same.
22295 * targhooks.c (default_has_ifunc_p): Same.
22296 (default_empty_mask_is_expensive): Same.
22297 (default_init_cost): Same.
22298 * targhooks.h: Same.
22300 * tree-affine.c (aff_combination_mult): Same.
22301 (aff_combination_expand): Same.
22302 (aff_combination_constant_multiple_p): Same.
22303 * tree-affine.h: Same.
22304 * tree-cfg.c (build_gimple_cfg): Same.
22305 (replace_loop_annotate_in_block): Same.
22306 (replace_uses_by): Same.
22308 (dump_cfg_stats): Same.
22309 (gimple_duplicate_sese_region): Same.
22310 (gimple_duplicate_sese_tail): Same.
22311 (move_block_to_fn): Same.
22312 (replace_block_vars_by_duplicates): Same.
22313 (move_sese_region_to_fn): Same.
22314 (print_loops_bb): Same.
22315 (print_loop): Same.
22316 (print_loops): Same.
22318 (debug_loops): Same.
22319 * tree-cfg.h: Same.
22320 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
22321 (chrec_fold_multiply_poly_poly): Same.
22322 (chrec_evaluate): Same.
22323 (chrec_component_in_loop_num): Same.
22324 (reset_evolution_in_loop): Same.
22325 (is_multivariate_chrec): Same.
22326 (chrec_contains_symbols): Same.
22327 (nb_vars_in_chrec): Same.
22328 (chrec_convert_1): Same.
22329 (chrec_convert_aggressive): Same.
22330 * tree-chrec.h: Same.
22331 * tree-core.h: Same.
22332 * tree-data-ref.c (dump_data_dependence_relation): Same.
22333 (canonicalize_base_object_address): Same.
22334 (data_ref_compare_tree): Same.
22335 (prune_runtime_alias_test_list): Same.
22336 (get_segment_min_max): Same.
22337 (create_intersect_range_checks): Same.
22338 (conflict_fn_no_dependence): Same.
22339 (object_address_invariant_in_loop_p): Same.
22340 (analyze_ziv_subscript): Same.
22341 (analyze_siv_subscript_cst_affine): Same.
22342 (analyze_miv_subscript): Same.
22343 (analyze_overlapping_iterations): Same.
22344 (build_classic_dist_vector_1): Same.
22345 (add_other_self_distances): Same.
22346 (same_access_functions): Same.
22347 (build_classic_dir_vector): Same.
22348 (subscript_dependence_tester_1): Same.
22349 (subscript_dependence_tester): Same.
22350 (access_functions_are_affine_or_constant_p): Same.
22351 (get_references_in_stmt): Same.
22352 (loop_nest_has_data_refs): Same.
22353 (graphite_find_data_references_in_stmt): Same.
22354 (find_data_references_in_bb): Same.
22355 (get_base_for_alignment): Same.
22356 (find_loop_nest_1): Same.
22357 (find_loop_nest): Same.
22358 * tree-data-ref.h (dr_alignment): Same.
22359 (ddr_dependence_level): Same.
22360 * tree-if-conv.c (fold_build_cond_expr): Same.
22361 (add_to_predicate_list): Same.
22362 (add_to_dst_predicate_list): Same.
22363 (phi_convertible_by_degenerating_args): Same.
22364 (idx_within_array_bound): Same.
22365 (all_preds_critical_p): Same.
22366 (pred_blocks_visited_p): Same.
22367 (predicate_bbs): Same.
22368 (build_region): Same.
22369 (if_convertible_loop_p_1): Same.
22370 (is_cond_scalar_reduction): Same.
22371 (predicate_scalar_phi): Same.
22372 (remove_conditions_and_labels): Same.
22373 (combine_blocks): Same.
22374 (version_loop_for_if_conversion): Same.
22375 (versionable_outer_loop_p): Same.
22376 (ifcvt_local_dce): Same.
22377 (tree_if_conversion): Same.
22378 (pass_if_conversion::gate): Same.
22379 * tree-if-conv.h: Same.
22380 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
22381 * tree-loop-distribution.c (bb_top_order_cmp): Same.
22383 (stmt_has_scalar_dependences_outside_loop): Same.
22384 (copy_loop_before): Same.
22385 (create_bb_after_loop): Same.
22386 (const_with_all_bytes_same): Same.
22387 (generate_memset_builtin): Same.
22388 (generate_memcpy_builtin): Same.
22389 (destroy_loop): Same.
22390 (build_rdg_partition_for_vertex): Same.
22391 (compute_access_range): Same.
22392 (data_ref_segment_size): Same.
22393 (latch_dominated_by_data_ref): Same.
22394 (compute_alias_check_pairs): Same.
22395 (fuse_memset_builtins): Same.
22396 (finalize_partitions): Same.
22397 (find_seed_stmts_for_distribution): Same.
22398 (prepare_perfect_loop_nest): Same.
22399 * tree-parloops.c (lambda_transform_legal_p): Same.
22400 (loop_parallel_p): Same.
22401 (reduc_stmt_res): Same.
22402 (add_field_for_name): Same.
22403 (create_call_for_reduction_1): Same.
22404 (replace_uses_in_bb_by): Same.
22405 (transform_to_exit_first_loop_alt): Same.
22406 (try_transform_to_exit_first_loop_alt): Same.
22407 (transform_to_exit_first_loop): Same.
22409 (gen_parallel_loop): Same.
22410 (gather_scalar_reductions): Same.
22411 (get_omp_data_i_param): Same.
22412 (try_create_reduction_list): Same.
22413 (oacc_entry_exit_single_gang): Same.
22414 (parallelize_loops): Same.
22415 * tree-pass.h: Same.
22416 * tree-predcom.c (determine_offset): Same.
22417 (last_always_executed_block): Same.
22418 (split_data_refs_to_components): Same.
22419 (suitable_component_p): Same.
22420 (valid_initializer_p): Same.
22421 (find_looparound_phi): Same.
22422 (insert_looparound_copy): Same.
22423 (add_looparound_copies): Same.
22424 (determine_roots_comp): Same.
22425 (predcom_tmp_var): Same.
22426 (initialize_root_vars): Same.
22427 (initialize_root_vars_store_elim_1): Same.
22428 (initialize_root_vars_store_elim_2): Same.
22429 (finalize_eliminated_stores): Same.
22430 (initialize_root_vars_lm): Same.
22431 (remove_stmt): Same.
22432 (determine_unroll_factor): Same.
22433 (execute_pred_commoning_cbck): Same.
22434 (base_names_in_chain_on): Same.
22435 (combine_chains): Same.
22436 (pcom_stmt_dominates_stmt_p): Same.
22437 (try_combine_chains): Same.
22438 (prepare_initializers_chain_store_elim): Same.
22439 (prepare_initializers_chain): Same.
22440 (prepare_initializers): Same.
22441 (prepare_finalizers_chain): Same.
22442 (prepare_finalizers): Same.
22443 (insert_init_seqs): Same.
22444 * tree-scalar-evolution.c (loop_phi_node_p): Same.
22445 (compute_overall_effect_of_inner_loop): Same.
22446 (add_to_evolution_1): Same.
22447 (add_to_evolution): Same.
22448 (follow_ssa_edge_binary): Same.
22449 (follow_ssa_edge_expr): Same.
22450 (backedge_phi_arg_p): Same.
22451 (follow_ssa_edge_in_condition_phi_branch): Same.
22452 (follow_ssa_edge_in_condition_phi): Same.
22453 (follow_ssa_edge_inner_loop_phi): Same.
22454 (follow_ssa_edge): Same.
22455 (analyze_evolution_in_loop): Same.
22456 (analyze_initial_condition): Same.
22457 (interpret_loop_phi): Same.
22458 (interpret_condition_phi): Same.
22459 (interpret_rhs_expr): Same.
22460 (interpret_expr): Same.
22461 (interpret_gimple_assign): Same.
22462 (analyze_scalar_evolution_1): Same.
22463 (analyze_scalar_evolution): Same.
22464 (analyze_scalar_evolution_for_address_of): Same.
22465 (get_instantiated_value_entry): Same.
22466 (loop_closed_phi_def): Same.
22467 (instantiate_scev_name): Same.
22468 (instantiate_scev_poly): Same.
22469 (instantiate_scev_binary): Same.
22470 (instantiate_scev_convert): Same.
22471 (instantiate_scev_not): Same.
22472 (instantiate_scev_r): Same.
22473 (instantiate_scev): Same.
22474 (resolve_mixers): Same.
22475 (initialize_scalar_evolutions_analyzer): Same.
22476 (scev_reset_htab): Same.
22477 (scev_reset): Same.
22478 (derive_simple_iv_with_niters): Same.
22479 (simple_iv_with_niters): Same.
22480 (expression_expensive_p): Same.
22481 (final_value_replacement_loop): Same.
22482 * tree-scalar-evolution.h (block_before_loop): Same.
22483 * tree-ssa-address.h: Same.
22484 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
22485 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
22486 (record_edge_info): Same.
22487 * tree-ssa-live.c (var_map_base_fini): Same.
22488 (remove_unused_locals): Same.
22489 * tree-ssa-live.h: Same.
22490 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
22491 (pass_ch_vect::execute): Same.
22492 (pass_ch::process_loop_p): Same.
22493 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
22494 (movement_possibility): Same.
22495 (outermost_invariant_loop): Same.
22497 (determine_max_movement): Same.
22498 (invariantness_dom_walker::before_dom_children): Same.
22499 (move_computations): Same.
22500 (may_move_till): Same.
22501 (force_move_till_op): Same.
22502 (force_move_till): Same.
22503 (memref_free): Same.
22504 (record_mem_ref_loc): Same.
22505 (set_ref_stored_in_loop): Same.
22506 (mark_ref_stored): Same.
22507 (sort_bbs_in_loop_postorder_cmp): Same.
22508 (sort_locs_in_loop_postorder_cmp): Same.
22509 (analyze_memory_references): Same.
22510 (mem_refs_may_alias_p): Same.
22511 (find_ref_loc_in_loop_cmp): Same.
22512 (rewrite_mem_ref_loc::operator): Same.
22513 (first_mem_ref_loc_1::operator): Same.
22514 (sm_set_flag_if_changed::operator): Same.
22515 (execute_sm_if_changed_flag_set): Same.
22516 (execute_sm): Same.
22517 (hoist_memory_references): Same.
22518 (ref_always_accessed::operator): Same.
22519 (refs_independent_p): Same.
22520 (record_dep_loop): Same.
22521 (ref_indep_loop_p_1): Same.
22522 (ref_indep_loop_p): Same.
22523 (can_sm_ref_p): Same.
22524 (find_refs_for_sm): Same.
22525 (loop_suitable_for_sm): Same.
22526 (store_motion_loop): Same.
22527 (store_motion): Same.
22528 (fill_always_executed_in): Same.
22529 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
22530 (estimated_unrolled_size): Same.
22531 (loop_edge_to_cancel): Same.
22532 (remove_exits_and_undefined_stmts): Same.
22533 (remove_redundant_iv_tests): Same.
22534 (unloop_loops): Same.
22535 (estimated_peeled_sequence_size): Same.
22536 (try_peel_loop): Same.
22537 (canonicalize_loop_induction_variables): Same.
22538 (canonicalize_induction_variables): Same.
22539 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
22541 (stmt_after_inc_pos): Same.
22542 (contains_abnormal_ssa_name_p): Same.
22543 (niter_for_exit): Same.
22546 (find_givs_in_bb): Same.
22547 (find_induction_variables): Same.
22548 (find_interesting_uses_cond): Same.
22549 (outermost_invariant_loop_for_expr): Same.
22550 (idx_find_step): Same.
22551 (add_candidate_1): Same.
22552 (add_iv_candidate_derived_from_uses): Same.
22553 (alloc_use_cost_map): Same.
22554 (prepare_decl_rtl): Same.
22555 (generic_predict_doloop_p): Same.
22556 (computation_cost): Same.
22557 (determine_common_wider_type): Same.
22558 (get_computation_aff_1): Same.
22559 (get_use_type): Same.
22560 (determine_group_iv_cost_address): Same.
22562 (difference_cannot_overflow_p): Same.
22563 (may_eliminate_iv): Same.
22564 (determine_set_costs): Same.
22565 (cheaper_cost_pair): Same.
22566 (compare_cost_pair): Same.
22567 (iv_ca_cand_for_group): Same.
22568 (iv_ca_recount_cost): Same.
22569 (iv_ca_set_remove_invs): Same.
22570 (iv_ca_set_no_cp): Same.
22571 (iv_ca_set_add_invs): Same.
22572 (iv_ca_set_cp): Same.
22573 (iv_ca_add_group): Same.
22574 (iv_ca_cost): Same.
22575 (iv_ca_compare_deps): Same.
22576 (iv_ca_delta_reverse): Same.
22577 (iv_ca_delta_commit): Same.
22578 (iv_ca_cand_used_p): Same.
22579 (iv_ca_delta_free): Same.
22581 (iv_ca_free): Same.
22582 (iv_ca_dump): Same.
22583 (iv_ca_extend): Same.
22584 (iv_ca_narrow): Same.
22585 (iv_ca_prune): Same.
22586 (cheaper_cost_with_cand): Same.
22587 (iv_ca_replace): Same.
22588 (try_add_cand_for): Same.
22589 (get_initial_solution): Same.
22590 (try_improve_iv_set): Same.
22591 (find_optimal_iv_set_1): Same.
22592 (create_new_iv): Same.
22593 (rewrite_use_compare): Same.
22594 (remove_unused_ivs): Same.
22595 (determine_scaling_factor): Same.
22596 * tree-ssa-loop-ivopts.h: Same.
22597 * tree-ssa-loop-manip.c (create_iv): Same.
22598 (compute_live_loop_exits): Same.
22599 (add_exit_phi): Same.
22600 (add_exit_phis): Same.
22601 (find_uses_to_rename_use): Same.
22602 (find_uses_to_rename_def): Same.
22603 (find_uses_to_rename_in_loop): Same.
22604 (rewrite_into_loop_closed_ssa): Same.
22605 (check_loop_closed_ssa_bb): Same.
22606 (split_loop_exit_edge): Same.
22607 (ip_end_pos): Same.
22608 (ip_normal_pos): Same.
22609 (copy_phi_node_args): Same.
22610 (gimple_duplicate_loop_to_header_edge): Same.
22611 (can_unroll_loop_p): Same.
22612 (determine_exit_conditions): Same.
22613 (scale_dominated_blocks_in_loop): Same.
22614 (niter_for_unrolled_loop): Same.
22615 (tree_transform_and_unroll_loop): Same.
22616 (rewrite_all_phi_nodes_with_iv): Same.
22617 * tree-ssa-loop-manip.h: Same.
22618 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
22619 (number_of_iterations_ne): Same.
22620 (assert_no_overflow_lt): Same.
22621 (assert_loop_rolls_lt): Same.
22622 (number_of_iterations_lt): Same.
22623 (adjust_cond_for_loop_until_wrap): Same.
22624 (tree_simplify_using_condition): Same.
22625 (simplify_using_initial_conditions): Same.
22626 (simplify_using_outer_evolutions): Same.
22627 (loop_only_exit_p): Same.
22628 (ssa_defined_by_minus_one_stmt_p): Same.
22629 (number_of_iterations_popcount): Same.
22630 (number_of_iterations_exit): Same.
22631 (find_loop_niter): Same.
22632 (finite_loop_p): Same.
22633 (chain_of_csts_start): Same.
22634 (get_val_for): Same.
22635 (loop_niter_by_eval): Same.
22636 (derive_constant_upper_bound_ops): Same.
22637 (do_warn_aggressive_loop_optimizations): Same.
22638 (record_estimate): Same.
22639 (get_cst_init_from_scev): Same.
22640 (record_nonwrapping_iv): Same.
22641 (idx_infer_loop_bounds): Same.
22642 (infer_loop_bounds_from_ref): Same.
22643 (infer_loop_bounds_from_array): Same.
22644 (infer_loop_bounds_from_pointer_arith): Same.
22645 (infer_loop_bounds_from_signedness): Same.
22646 (bound_index): Same.
22647 (discover_iteration_bound_by_body_walk): Same.
22648 (maybe_lower_iteration_bound): Same.
22649 (estimate_numbers_of_iterations): Same.
22650 (estimated_loop_iterations): Same.
22651 (estimated_loop_iterations_int): Same.
22652 (max_loop_iterations): Same.
22653 (max_loop_iterations_int): Same.
22654 (likely_max_loop_iterations): Same.
22655 (likely_max_loop_iterations_int): Same.
22656 (estimated_stmt_executions_int): Same.
22657 (max_stmt_executions): Same.
22658 (likely_max_stmt_executions): Same.
22659 (estimated_stmt_executions): Same.
22660 (stmt_dominates_stmt_p): Same.
22661 (nowrap_type_p): Same.
22662 (loop_exits_before_overflow): Same.
22663 (scev_var_range_cant_overflow): Same.
22664 (scev_probably_wraps_p): Same.
22665 (free_numbers_of_iterations_estimates): Same.
22666 * tree-ssa-loop-niter.h: Same.
22667 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
22668 (idx_analyze_ref): Same.
22669 (analyze_ref): Same.
22670 (gather_memory_references_ref): Same.
22671 (mark_nontemporal_store): Same.
22672 (emit_mfence_after_loop): Same.
22673 (may_use_storent_in_loop_p): Same.
22674 (mark_nontemporal_stores): Same.
22675 (should_unroll_loop_p): Same.
22676 (volume_of_dist_vector): Same.
22677 (add_subscript_strides): Same.
22678 (self_reuse_distance): Same.
22679 (insn_to_prefetch_ratio_too_small_p): Same.
22680 * tree-ssa-loop-split.c (split_at_bb_p): Same.
22681 (patch_loop_exit): Same.
22682 (find_or_create_guard_phi): Same.
22683 (easy_exit_values): Same.
22684 (connect_loop_phis): Same.
22685 (connect_loops): Same.
22686 (compute_new_first_bound): Same.
22687 (split_loop): Same.
22688 (tree_ssa_split_loops): Same.
22689 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
22690 (is_maybe_undefined): Same.
22691 (tree_may_unswitch_on): Same.
22692 (simplify_using_entry_checks): Same.
22693 (tree_unswitch_single_loop): Same.
22694 (tree_unswitch_loop): Same.
22695 (tree_unswitch_outer_loop): Same.
22696 (empty_bb_without_guard_p): Same.
22697 (used_outside_loop_p): Same.
22698 (get_vop_from_header): Same.
22699 (hoist_guard): Same.
22700 * tree-ssa-loop.c (gate_oacc_kernels): Same.
22701 (get_lsm_tmp_name): Same.
22702 * tree-ssa-loop.h: Same.
22703 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
22704 (build_and_add_sum): Same.
22705 (no_side_effect_bb): Same.
22707 (linearize_expr): Same.
22708 (should_break_up_subtract): Same.
22709 (linearize_expr_tree): Same.
22710 * tree-ssa-scopedtables.c: Same.
22711 * tree-ssa-scopedtables.h: Same.
22712 * tree-ssa-structalias.c (condense_visit): Same.
22713 (label_visit): Same.
22714 (dump_pred_graph): Same.
22715 (perform_var_substitution): Same.
22716 (move_complex_constraints): Same.
22717 (remove_preds_and_fake_succs): Same.
22718 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
22719 (determine_bb_domination_status): Same.
22720 (duplicate_thread_path): Same.
22721 (thread_through_all_blocks): Same.
22722 * tree-ssa-threadupdate.h: Same.
22723 * tree-streamer-in.c (streamer_read_string_cst): Same.
22724 (input_identifier): Same.
22725 (unpack_ts_type_common_value_fields): Same.
22726 (unpack_ts_block_value_fields): Same.
22727 (unpack_ts_translation_unit_decl_value_fields): Same.
22728 (unpack_ts_omp_clause_value_fields): Same.
22729 (streamer_read_tree_bitfields): Same.
22730 (streamer_alloc_tree): Same.
22731 (lto_input_ts_common_tree_pointers): Same.
22732 (lto_input_ts_vector_tree_pointers): Same.
22733 (lto_input_ts_poly_tree_pointers): Same.
22734 (lto_input_ts_complex_tree_pointers): Same.
22735 (lto_input_ts_decl_minimal_tree_pointers): Same.
22736 (lto_input_ts_decl_common_tree_pointers): Same.
22737 (lto_input_ts_decl_non_common_tree_pointers): Same.
22738 (lto_input_ts_decl_with_vis_tree_pointers): Same.
22739 (lto_input_ts_field_decl_tree_pointers): Same.
22740 (lto_input_ts_function_decl_tree_pointers): Same.
22741 (lto_input_ts_type_common_tree_pointers): Same.
22742 (lto_input_ts_type_non_common_tree_pointers): Same.
22743 (lto_input_ts_list_tree_pointers): Same.
22744 (lto_input_ts_vec_tree_pointers): Same.
22745 (lto_input_ts_exp_tree_pointers): Same.
22746 (lto_input_ts_block_tree_pointers): Same.
22747 (lto_input_ts_binfo_tree_pointers): Same.
22748 (lto_input_ts_constructor_tree_pointers): Same.
22749 (lto_input_ts_omp_clause_tree_pointers): Same.
22750 (streamer_read_tree_body): Same.
22751 * tree-streamer.h: Same.
22752 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
22753 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
22754 (vect_analyze_possibly_independent_ddr): Same.
22755 (vect_analyze_data_ref_dependence): Same.
22756 (vect_compute_data_ref_alignment): Same.
22757 (vect_enhance_data_refs_alignment): Same.
22758 (vect_analyze_data_ref_access): Same.
22759 (vect_check_gather_scatter): Same.
22760 (vect_find_stmt_data_reference): Same.
22761 (vect_create_addr_base_for_vector_ref): Same.
22762 (vect_setup_realignment): Same.
22763 (vect_supportable_dr_alignment): Same.
22764 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
22765 (adjust_phi_and_debug_stmts): Same.
22766 (vect_set_loop_mask): Same.
22767 (add_preheader_seq): Same.
22768 (vect_maybe_permute_loop_masks): Same.
22769 (vect_set_loop_masks_directly): Same.
22770 (vect_set_loop_condition_masked): Same.
22771 (vect_set_loop_condition_unmasked): Same.
22772 (slpeel_duplicate_current_defs_from_edges): Same.
22773 (slpeel_add_loop_guard): Same.
22774 (slpeel_can_duplicate_loop_p): Same.
22775 (create_lcssa_for_virtual_phi): Same.
22777 (vect_update_ivs_after_vectorizer): Same.
22778 (vect_gen_vector_loop_niters_mult_vf): Same.
22779 (slpeel_update_phi_nodes_for_loops): Same.
22780 (slpeel_update_phi_nodes_for_guard1): Same.
22781 (find_guard_arg): Same.
22782 (slpeel_update_phi_nodes_for_guard2): Same.
22783 (slpeel_update_phi_nodes_for_lcssa): Same.
22784 (vect_do_peeling): Same.
22785 (vect_create_cond_for_alias_checks): Same.
22786 (vect_loop_versioning): Same.
22787 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
22788 (vect_inner_phi_in_double_reduction_p): Same.
22789 (vect_analyze_scalar_cycles_1): Same.
22790 (vect_fixup_scalar_cycles_with_patterns): Same.
22791 (vect_get_loop_niters): Same.
22792 (bb_in_loop_p): Same.
22793 (vect_get_max_nscalars_per_iter): Same.
22794 (vect_verify_full_masking): Same.
22795 (vect_compute_single_scalar_iteration_cost): Same.
22796 (vect_analyze_loop_form_1): Same.
22797 (vect_analyze_loop_form): Same.
22798 (vect_active_double_reduction_p): Same.
22799 (vect_analyze_loop_operations): Same.
22800 (neutral_op_for_slp_reduction): Same.
22801 (vect_is_simple_reduction): Same.
22802 (vect_model_reduction_cost): Same.
22803 (get_initial_def_for_reduction): Same.
22804 (get_initial_defs_for_reduction): Same.
22805 (vect_create_epilog_for_reduction): Same.
22806 (vectorize_fold_left_reduction): Same.
22807 (vectorizable_reduction): Same.
22808 (vectorizable_induction): Same.
22809 (vectorizable_live_operation): Same.
22810 (loop_niters_no_overflow): Same.
22811 (vect_get_loop_mask): Same.
22812 (vect_transform_loop_stmt): Same.
22813 (vect_transform_loop): Same.
22814 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
22815 (vect_determine_precisions): Same.
22816 (vect_pattern_recog_1): Same.
22817 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
22818 * tree-vect-stmts.c (stmt_vectype): Same.
22819 (process_use): Same.
22820 (vect_init_vector_1): Same.
22821 (vect_truncate_gather_scatter_offset): Same.
22822 (get_group_load_store_type): Same.
22823 (vect_build_gather_load_calls): Same.
22824 (vect_get_strided_load_store_ops): Same.
22825 (vectorizable_simd_clone_call): Same.
22826 (vectorizable_store): Same.
22827 (permute_vec_elements): Same.
22828 (vectorizable_load): Same.
22829 (vect_transform_stmt): Same.
22830 (supportable_widening_operation): Same.
22831 * tree-vectorizer.c (vec_info::replace_stmt): Same.
22832 (vec_info::free_stmt_vec_info): Same.
22833 (vect_free_loop_info_assumptions): Same.
22834 (vect_loop_vectorized_call): Same.
22835 (set_uid_loop_bbs): Same.
22836 (vectorize_loops): Same.
22837 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
22838 * tree.c (add_tree_to_fld_list): Same.
22839 (fld_type_variant_equal_p): Same.
22840 (fld_decl_context): Same.
22841 (fld_incomplete_type_of): Same.
22842 (free_lang_data_in_binfo): Same.
22843 (need_assembler_name_p): Same.
22844 (find_decls_types_r): Same.
22845 (get_eh_types_for_runtime): Same.
22846 (find_decls_types_in_eh_region): Same.
22847 (find_decls_types_in_node): Same.
22848 (assign_assembler_name_if_needed): Same.
22849 * value-prof.c (stream_out_histogram_value): Same.
22850 * value-prof.h: Same.
22851 * var-tracking.c (use_narrower_mode): Same.
22852 (prepare_call_arguments): Same.
22853 (vt_expand_loc_callback): Same.
22854 (resolve_expansions_pending_recursion): Same.
22855 (vt_expand_loc): Same.
22856 * varasm.c (const_hash_1): Same.
22857 (compare_constant): Same.
22858 (tree_output_constant_def): Same.
22859 (simplify_subtraction): Same.
22860 (get_pool_constant): Same.
22861 (output_constant_pool_2): Same.
22862 (output_constant_pool_1): Same.
22863 (mark_constants_in_pattern): Same.
22864 (mark_constant_pool): Same.
22865 (get_section_anchor): Same.
22866 * vr-values.c (compare_range_with_value): Same.
22867 (vr_values::extract_range_from_phi_node): Same.
22868 * vr-values.h: Same.
22869 * web.c (unionfind_union): Same.
22870 * wide-int.h: Same.
22872 2019-07-09 Martin Sebor <msebor@redhat.com>
22875 * align.h: Change class-key from class to struct and vice versa
22876 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22877 * alloc-pool.h: Same.
22878 * asan.c (shadow_mem_size): Same.
22879 * auto-profile.c: Same.
22880 * basic-block.h: Same.
22882 * cfgexpand.c (set_rtl): Same.
22883 (expand_one_stack_var_at): Same.
22884 * cfghooks.h: Same.
22887 * config/i386/i386.h: Same.
22888 * df-problems.c (df_print_bb_index): Same.
22890 * df.h (df_single_use): Same.
22891 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22892 (layout::annotation_line_showed_range_p): Same.
22893 (get_printed_columns): Same.
22894 (correction::ensure_terminated): Same.
22895 (line_corrections::~line_corrections): Same.
22898 * dump-context.h: Same.
22899 * dumpfile.h: Same.
22900 * dwarf2out.c: Same.
22901 * edit-context.c: Same.
22902 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22904 * function.c (assign_stack_local): Same.
22905 * function.h: Same.
22907 * gcov.c (block_info::block_info): Same.
22908 * genattrtab.c: Same.
22909 * genextract.c: Same.
22910 * genmatch.c (comparison_code_p): Same.
22911 (id_base::id_base): Same.
22912 (decision_tree::print): Same.
22913 * genoutput.c: Same.
22914 * genpreds.c (write_one_predicate_function): Same.
22915 * genrecog.c (validate_pattern): Same.
22916 (find_operand_positions): Same.
22917 (optimize_subroutine_group): Same.
22918 (merge_pattern_transition::merge_pattern_transition): Same.
22919 (merge_pattern_info::merge_pattern_info): Same.
22920 (merge_state_result::merge_state_result): Same.
22921 (merge_into_state): Same.
22922 * gensupport.c: Same.
22923 * gensupport.h: Same.
22924 * ggc-common.c (init_ggc_heuristics): Same.
22925 * ggc-tests.c (test_union): Same.
22926 * gimple-loop-interchange.cc (dump_induction): Same.
22927 * gimple-loop-versioning.cc: Same.
22928 * gimple-match.h (gimple_match_cond::any_else): Same.
22929 * gimple-ssa-backprop.c: Same.
22930 * gimple-ssa-sprintf.c: Same.
22931 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22933 (store_immediate_info::store_immediate_info): Same.
22934 (merged_store_group::apply_stores): Same.
22935 (get_location_for_stmts): Same.
22936 * gimple-ssa-strength-reduction.c: Same.
22937 * gimple-ssa-warn-alloca.c: Same.
22938 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22939 * godump.c (go_type_decl): Same.
22940 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22941 * hash-map.h: Same.
22942 * hash-set-tests.c (test_set_of_strings): Same.
22943 * hsa-brig.c: Same.
22944 * hsa-common.h: Same.
22945 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22946 * input.c (assert_loceq): Same.
22949 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22950 * ipa-fnsummary.h: Same.
22951 * ipa-inline.h: Same.
22952 * ipa-prop.h: Same.
22953 * ipa-split.c (visit_bb): Same.
22954 * ira-int.h (minmax_set_iter_next): Same.
22955 * loop-invariant.c: Same.
22957 * lra-eliminations.c: Same.
22959 * lra-lives.c (mark_regno_dead): Same.
22960 * lra-remat.c: Same.
22961 * lra-spills.c: Same.
22962 * lto-streamer.h: Same.
22963 * mem-stats.h: Same.
22964 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22965 * omp-low.c (omp_clause_aligned_alignment): Same.
22966 * optabs-query.h (get_vcond_eq_icode): Same.
22968 * opts.c (wrap_help): Same.
22969 * poly-int.h: Same.
22970 * predict.c (predict_paths_leading_to_edge): Same.
22971 * pretty-print.h: Same.
22972 * profile-count.h: Same.
22974 * read-rtl-function.c: Same.
22977 * regrename.c: Same.
22978 * regrename.h: Same.
22980 * rtl-iter.h: Same.
22981 * rtl.h (costs_add_n_insns): Same.
22983 * sched-int.h: Same.
22984 * sel-sched-ir.h: Same.
22985 * selftest.h: Same.
22986 * sese.h (vec_find): Same.
22988 * target-globals.h: Same.
22989 * tree-affine.c (aff_combination_find_elt): Same.
22990 * tree-affine.h: Same.
22991 * tree-data-ref.h: Same.
22992 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22993 * tree-predcom.c: Same.
22994 * tree-scalar-evolution.c (find_var_scev_info): Same.
22995 * tree-ssa-alias.h: Same.
22996 * tree-ssa-ccp.c: Same.
22997 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22998 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22999 (rewrite_mem_refs): Same.
23000 (execute_sm_if_changed): Same.
23001 (hoist_memory_references): Same.
23002 * tree-ssa-loop-ivopts.c (operator<=): Same.
23003 * tree-ssa-loop.h: Same.
23004 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
23005 * tree-ssa-structalias.c: Same.
23006 * tree-switch-conversion.h (cluster::cluster): Same.
23007 (simple_cluster::simple_cluster): Same.
23008 * tree-vect-patterns.c (type_conversion_p): Same.
23009 * tree-vectorizer.c (dump_stmt_cost): Same.
23010 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
23011 * tree.c (protected_set_expr_location): Same.
23012 * tree.h (desired_pro_or_demotion_p): Same.
23013 (fndecl_built_in_p): Same.
23014 * unique-ptr-tests.cc: Same.
23015 * var-tracking.c (delete_variable_part): Same.
23016 * varasm.c (assemble_real): Same.
23017 (tree_output_constant_def): Same.
23019 * wide-int-bitmask.h: Same.
23020 * wide-int.h (decompose): Same.
23022 2019-07-09 Richard Biener <rguenther@suse.de>
23024 PR tree-optimization/91114
23025 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
23026 find a vector type isn't fatal.
23028 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
23030 * config/aarch64/aarch64-simd.md
23031 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
23032 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
23033 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
23034 (*aarch64_crypto_aese_fused,
23035 *aarch64_crypto_aesd_fused): Update to new definition.
23036 * config/aarch64/aarch64.c
23037 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
23039 2019-07-09 Richard Biener <rguenther@suse.de>
23041 * gimple-match.h (gimple_match_op::resimplify): New.
23042 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
23043 gimple_resimplify4, gimple_resimplify5): Remove.
23044 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
23045 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
23047 (gimple_match_op::resimplify): New.
23048 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
23049 according to availability. Use gimple_match_op::resimplify.
23051 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
23053 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
23055 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
23057 * config/arm/crypto.md:
23058 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
23059 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
23060 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
23061 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
23063 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
23064 * config/arm/aarch-common-protos.h
23065 (aarch_crypto_can_dual_issue): Remove.
23066 * config/arm/aarch-common.c
23067 (aarch_crypto_can_dual_issue): Likewise.
23068 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
23069 * config/arm/cortex-a53.md: Likewise.
23070 * config/arm/cortex-a57.md: Likewise.
23071 * config/arm/iterators.md:
23072 (CRYPTO_BINARY): Redefine.
23073 (CRYPTO_UNARY): Removed.
23074 (CRYPTO_AES, CRYPTO_AESMC): New.
23076 2019-07-09 Richard Biener <rguenther@suse.de>
23078 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
23079 (vn_reference_lookup_3): If the main ref has no access path recorded
23080 but orig_ref has use it to do access-path based disambiguation.
23081 (vn_reference_lookup_pieces): Adjust.
23082 (vn_reference_lookup): Pass down original ref if we valueized.
23084 2019-07-09 Martin Liska <mliska@suse.cz>
23086 * doc/extend.texi: Document influence on loop
23089 2019-07-09 Martin Liska <mliska@suse.cz>
23091 * lto-compress.c (lto_normalized_zstd_level): Do not use
23092 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
23093 of libzstd. One can use 0 as a default compression level.
23095 2019-07-09 Martin Liska <mliska@suse.cz>
23097 * doc/invoke.texi: Add link from -fprofile-dir option.
23098 Use better wording for 'gcno filename'.
23100 2019-07-08 Martin Sebor <msebor@redhat.com>
23102 PR middle-end/71924
23103 PR middle-end/90549
23104 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
23106 (args_loc_t): New type.
23107 (args_loc_t, locmap_t): same.
23108 (diag_returned_locals): New function.
23109 (is_addr_local): Same.
23110 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
23111 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
23112 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
23114 2019-07-08 Jakub Jelinek <jakub@redhat.com>
23116 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
23117 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
23118 and casts in offset when different, both through gimple stmts
23119 and through trees. Rewritten using loops to minimize code duplication
23122 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
23124 * emit-rtl.c (set_insn_locations): New function moved from...
23125 * function.c (set_insn_locations): ...here.
23126 * ira-emit.c (emit_moves): Propagate location of the first instruction
23127 to the inserted move instructions.
23128 * reg-stack.c (compensate_edge): Set the location if the sequence is
23129 inserted on the edge.
23130 * rtl.h (set_insn_locations): Declare.
23132 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
23134 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
23135 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
23138 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
23140 PR rtl-optimization/88233
23141 * common.opt (fsplit-wide-types-early): New option.
23142 * common/config/rs6000/rs6000-common.c
23143 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
23145 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
23146 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
23147 flag_split_wide_types_early.
23148 (pass_data_lower_subreg3): New.
23149 (pass_lower_subreg3): New.
23150 (make_pass_lower_subreg3): New.
23151 * passes.def (pass_lower_subreg2): Move after the loop passes.
23152 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
23153 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
23154 the pass pipeline; its previous place is taken by ...
23155 (make_pass_lower_subreg3): ... this.
23157 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
23159 * config/s390/s390.c (s390_shift_truncation_mask): Define.
23160 (TARGET_SHIFT_TRUNCATION_MASK): Define.
23162 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
23164 * config/s390/constraints.md: Add new jsc constraint.
23165 * config/s390/predicates.md: New predicates.
23166 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
23167 * config/s390/s390.c (s390_valid_shift_count): New function.
23168 (print_shift_count_operand): Use s390_valid_shift_count.
23169 (print_operand): Likewise.
23170 * config/s390/s390.md: Use new predicate.
23171 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
23172 * config/s390/vector.md: Use new predicate.
23174 2019-07-08 Andrew Waterman <andrew@sifive.com>
23175 Jim Wilson <jimw@sifive.com>
23177 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
23178 bitsize instead of BITS_PER_WORD.
23180 2019-07-08 Martin Liska <mliska@suse.cz>
23182 * collect2.c (defined): Revert to before r254460.
23183 (scan_prog_file): Revert to before r254460.
23185 2019-07-08 Richard Biener <rguenther@suse.de>
23187 PR tree-optimization/83518
23188 * tree-ssa-sccvn.c: Include splay-tree.h.
23189 (struct pd_range, struct pd_data): New.
23190 (struct vn_walk_cb_data): Add data to track partial definitions.
23191 (vn_walk_cb_data::~vn_walk_cb_data): New.
23192 (vn_walk_cb_data::push_partial_def): New.
23193 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
23194 (vn_reference_lookup_2): When partial defs are registered give up.
23195 (vn_reference_lookup_3): Track partial defs for memset and
23196 constructor zeroing and for defs from constants.
23198 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
23200 * doc/install.texi (bootstrap-Og): Document.
23202 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
23204 * config/riscv/pic.md (*local_pic_load_s<mode>)
23205 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
23206 referenced by <mode>, giving...
23207 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
23208 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
23209 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
23210 use <X:MODE> for the mode attribute.
23212 2019-07-07 Jeff Law <law@redhat.com>
23214 PR tree-optimization/91090
23215 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
23216 in handling of ranges to simplify switch statements.
23218 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
23220 * config/darwin.c (darwin_override_options): Make a final check on PIC
23223 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
23225 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
23226 on for kernel code.
23228 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
23231 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
23232 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
23233 instead of matching them to "l" output operands.
23235 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
23237 * config/mips/mips.c (mips_split_move): Zero-initialize addr
23238 and check whether addr.reg is nonnull before using it.
23240 2019-07-06 Jakub Jelinek <jakub@redhat.com>
23242 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
23243 ctx->for_simd_scan_phase simd copy the outer var to the privatized
23244 variable(s). For conditional lastprivate look through outer
23245 GIMPLE_OMP_SCAN context.
23246 (lower_omp_1): For conditional lastprivate look through outer
23247 GIMPLE_OMP_SCAN context.
23249 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
23250 member to combined_into_simd_safelen1.
23251 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
23252 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
23253 clauses if ctx->combined_into_simd_safelen1 put statements after the
23254 predicate conditionalized block rather than into it.
23256 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
23258 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
23260 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
23261 Make the choice of <mode> explicit, giving...
23262 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
23264 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
23266 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
23267 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
23269 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
23270 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
23271 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
23272 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
23273 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
23274 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
23275 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
23276 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
23277 (*avx512f_scatterdi<mode>): Likewise.
23278 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
23280 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
23282 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
23283 specify the mode iterator referenced by <mode>, giving...
23284 (*push1_h8300hs_<QHI:mode>): ...this.
23286 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
23288 * config/gcn/gcn-valu.md
23289 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
23290 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
23291 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
23292 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
23293 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
23294 but using the _exec comparison patterns.
23295 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
23296 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
23297 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
23298 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
23299 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
23300 but using the _exec comparison patterns.
23302 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
23304 * config/arm/sync.md
23305 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
23306 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
23307 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
23308 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
23309 <SIDI:cas_cmp_str>.
23311 2019-07-06 Jakub Jelinek <jakub@redhat.com>
23313 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
23314 (maybe_lookup_ctx): Add forward declaration.
23315 (omp_find_scan): Likewise. Walk into body of simd if composited
23316 with worksharing loop.
23317 (scan_omp_simd_scan): New function.
23318 (scan_omp_1_stmt): Call it.
23319 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
23320 ctx->for_simd_scan_phase.
23321 (lower_rec_input_clauses): Do much less work for inscan reductions
23322 in ctx->for_simd_scan_phase is_simd regions.
23323 (lower_omp_scan): Set is_simd also on simd constructs composited
23324 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
23325 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
23326 emit their body after in simd constructs composited with worksharing
23328 (lower_omp_for_scan): Handle worksharing loop composited with simd.
23330 * omp-low.c (omp_find_scan): Make static.
23331 (lower_omp_for_scan): Fix order of merge arguments in input phase of
23332 the second loop, var2 represents the first partial sum and so needs
23333 to go before rprivb[ivar].
23335 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
23337 * config/rs6000/rs6000-logue.c: Remove unused code.
23339 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
23341 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
23343 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
23346 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
23347 check with a frame laid out check.
23349 2019-07-05 Richard Biener <rguenther@suse.de>
23351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
23352 when comparing against a store with possibly the same value.
23354 2019-07-05 Richard Biener <rguenther@suse.de>
23356 PR tree-optimization/91091
23357 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
23358 (walk_non_aliased_vuses): Likewise.
23359 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
23360 (get_continuation_for_phi): New tbaa_p parameter and pass
23362 (walk_non_aliased_vuses): Likewise.
23363 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
23364 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
23365 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
23367 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
23368 (adjust_offsets_for_equal_base_address): New function.
23369 (vn_reference_lookup_3): Use it to catch more base equivalences.
23370 Handle and pass down tbaa_p flag.
23371 (vn_reference_lookup_pieces): Adjust.
23372 (vn_reference_lookup): Remove alias-set altering, instead pass
23373 down false as tbaa_p.
23375 2019-07-05 Richard Biener <rguenther@suse.de>
23377 PR tree-optimization/91091
23378 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
23379 accesses can happen with -fno-strict-aliasing.
23381 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
23383 * tree-ssa-alias.c (alias_stats): Add
23384 nonoverlapping_component_refs_since_match_p_must_overlap.
23385 (dump_alias_stats): Print it.
23386 (nonoverlapping_component_refs_since_match_p): Add early exit.
23387 (nonoverlapping_component_refs_p): Do not account early exit.
23389 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
23391 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
23392 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
23393 (emit_eh_dispatch): Delete.
23394 (lower_catch): Emit the eh_dispatch manually and set the location of
23395 the first catch statement onto it.
23396 (lower_eh_filter): Emit the eh_dispatch manually and set location.
23397 (lower_eh_dispatch): Propagate location.
23398 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
23399 (eliminate_build): Likewise.
23401 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
23403 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
23404 phi nodes if possible.
23405 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
23406 location info on the newly created statement.
23407 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
23408 newly created increment if needed.
23410 2019-07-04 Jakub Jelinek <jakub@redhat.com>
23412 PR middle-end/78884
23413 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
23414 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
23415 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
23416 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
23417 ctx->add_safelen1 is set.
23419 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
23420 GOMP_loop_start at the start of second worksharing loop in a scan.
23421 For nowait, don't emit GOMP_loop_end_nowait at the end of first
23422 worksharing loop in a scan even if there are conditional lastprivates,
23423 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
23425 2019-07-04 Jan Hubicka <jh@suse.cz>
23427 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
23428 Fix check for match in the ref walk.
23430 2019-07-04 Martin Liska <mliska@suse.cz>
23432 * tree-ssa-loop-niter.c
23433 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
23434 (estimate_numbers_of_iterations):
23435 Support __builtin_expect_with_probability for analysis
23436 of # of loop iterations.
23438 2019-07-04 Alexandre Oliva <oliva@adacore.com>
23440 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
23441 * except.c: Likewise.
23442 * expr.c (expand_expr_real_1): Reject it.
23443 * gimplify.c (gimplify_expr): Gimplify it, within
23445 * tree-dump.c (dequeue_and_dump): Dump it.
23446 * tree-pretty-print.c (dump_generic_node): Likewise.
23447 * tree.c (block_may_fallthru): Handle it.
23448 * tree.def (EH_ELSE_EXPR): Introduce it.
23449 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
23450 with GIMPLE_EH_ELSE as try/finally/else.
23452 2019-07-04 Richard Biener <rguenther@suse.de>
23455 * tree-pass.h (execute_all_ipa_transforms): Add a flag
23456 parameter whether to disable GC collection.
23457 * passes.c (execute_one_ipa_transform_pass): Likewise, and
23459 (execute_all_ipa_transforms): Likewise and pass it down.
23460 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
23461 collection from applying IPA transforms.
23462 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
23463 from applying IPA transforms.
23465 2019-07-04 Richard Biener <rguenther@suse.de>
23467 PR tree-optimization/90911
23468 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
23469 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
23470 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23471 scalar_loop_scaling.
23472 (vect_transform_loop): Scale scalar loop profile if needed.
23473 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
23474 the loop copy from if-conversion adjust edge probabilities
23475 and scale the vectorized loop body profile, queue the scalar
23476 profile for updating after peeling.
23478 2019-07-04 Jan Hubicka <jh@suse.cz>
23480 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
23481 parameters; return early for must-alias.
23482 (indirect_ref_may_alias_decl_p): Likewise; when establishing
23483 outer types match, try nonoverlapping_component_refs
23484 if must-alias is not obvious.
23485 (indirect_refs_may_alias_p): Likewise.
23486 (refs_may_alias_p_2): Likewise.
23488 2019-07-04 Richard Biener <rguenther@suse.de>
23490 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
23492 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
23494 (struct vn_walk_cb_data): New callback data struct.
23495 (vn_reference_lookup_2): Adjust.
23496 (vn_reference_lookup_3): Likewise.
23497 (vn_reference_lookup_pieces): Likewise.
23498 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
23499 (visit_reference_op_load): Adjust.
23501 2019-07-04 Jakub Jelinek <jakub@redhat.com>
23503 PR tree-optimization/91063
23504 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
23505 stmt from stmts sequence before calling vect_init_vector_1.
23508 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23511 * fwprop.c (reg_single_def_p): New function.
23512 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
23513 (forward_propagate_into): New parameter reg_prop_only
23514 with default value false.
23515 Propagate def's src into loop only if SET_SRC and SET_DEST
23516 of def_set have single definitions.
23517 Likewise if reg_prop_only is set to true.
23518 (fwprop): New param fwprop_addr_p.
23519 Integrate fwprop_addr into fwprop.
23520 (fwprop_addr): Remove.
23521 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
23523 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
23524 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
23525 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
23527 2019-07-04 Jakub Jelinek <jakub@redhat.com>
23529 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
23530 in worksharing loop scans.
23532 PR tree-optimization/91074
23533 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
23536 PR rtl-optimization/90756
23537 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
23540 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
23542 * config/aarch64/aarch64.md: Remove redundant constraints from
23543 define_expand but keep some patterns untouched if they are
23544 specially selected by TARGET_SECONDARY_RELOAD hook.
23545 * config/aarch64/aarch64-sve.md: Likewise.
23546 * config/aarch64/atomics.md: Remove redundant constraints from
23548 * config/aarch64/aarch64-simd.md: Likewise.
23550 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
23552 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
23553 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
23554 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
23556 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
23559 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
23561 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
23562 (STARTFILE_SPEC): Split crt3 into a separate spec.
23563 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
23564 (DARWIN_CRT2_SPEC): New.
23565 (DARWIN_CRT3_SPEC): New.
23566 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
23567 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
23568 (DARWIN_CRT3_SPEC): New.
23570 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
23572 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
23573 Change the RTL attribute "length" from "4" to "*" to allow the
23574 length attribute to be adjusted automatically for prefixed load,
23575 store, and add immediate instructions.
23576 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
23578 (extendsi<mode>2, EXTSI iterator): Likewise.
23579 (movsi_internal1): Likewise.
23580 (movsi_from_sf): Likewise.
23581 (movdi_from_sf_zero_ext): Likewise.
23582 (mov<mode>_internal): Likewise.
23583 (movcc_internal1, QHI iterator): Likewise.
23584 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
23585 (movsf_from_si): Likewise.
23586 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
23587 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
23588 (mov<mode>, FMOVE128 iterator): Likewise.
23589 (movdi_internal64): Likewise.
23590 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
23592 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
23593 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
23594 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
23595 (vsx_splat_v4sf): Likewise.
23597 2019-07-03 Mark Wielaard <mark@klomp.org>
23600 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
23601 DW_AT_addr_base if there is actually a .debug_addr section with
23603 (output_addr_table): Add DWARF5 table header generation here after
23604 checking there are actually any addresses from...
23605 (dwarf2out_finish): ...here.
23607 2019-07-03 Richard Biener <rguenther@suse.de>
23609 PR middle-end/91069
23610 * match.pd (vec_perm -> bit_insert): Fix element read from
23613 2019-07-03 Martin Liska <mliska@suse.cz>
23615 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
23616 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
23618 * generic-match-head.c: Include dbgcnt.h.
23619 * gimple-match-head.c: Likewise.
23621 2019-07-03 Martin Liska <mliska@suse.cz>
23623 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
23624 (GCOV_COUNTER_V_TOPN): New.
23625 (GCOV_COUNTER_V_INDIR): Use _topn.
23626 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
23627 (GCOV_TOPN_VALUES): New.
23628 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
23629 (GCOV_TOPN_VALUES_COUNTERS): New.
23630 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
23632 (gimple_init_gcov_profiler): Rename variables from one_value
23634 (gimple_gen_one_value_profiler): Remove.
23635 (gimple_gen_topn_values_profiler): New function.
23636 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
23637 names instead of SINGLE_VALUE.
23638 (stream_out_histogram_value): Likewise.
23639 (stream_in_histogram_value): Likewise.
23640 (get_most_common_single_value): Likewise.
23641 (gimple_divmod_fixed_value_transform): Likewise.
23642 (gimple_stringops_transform): Likewise.
23643 (gimple_divmod_values_to_profile): Likewise.
23644 (gimple_stringops_values_to_profile): Likewise.
23645 (gimple_find_values_to_profile): Likewise.
23646 * value-prof.h (enum hist_type): Rename to TOPN.
23647 (gimple_gen_one_value_profiler): Remove.
23648 (gimple_gen_topn_values_profiler): New.
23650 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
23652 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
23653 if it has the DW_AT_data_member_location attribute.
23655 2019-07-03 Richard Biener <rguenther@suse.de>
23657 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
23660 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
23662 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
23663 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
23664 (tlsdesc_small_sve_<mode>): Likewise.
23666 2019-07-03 Martin Liska <mliska@suse.cz>
23668 * Makefile.in: Define ZSTD_LIB.
23669 * common.opt: Adjust compression level
23670 to support also zstd levels.
23671 * config.in: Regenerate.
23672 * configure: Likewise.
23673 * configure.ac: Add --with-zstd and --with-zstd-include options
23675 * doc/install.texi: Mention zstd dependency.
23676 * gcc.c: Print supported LTO compression algorithms.
23677 * lto-compress.c (lto_normalized_zstd_level): Likewise.
23678 (lto_compression_zstd): Likewise.
23679 (lto_uncompression_zstd): Likewise.
23680 (lto_end_compression): Dispatch in between zlib and zstd.
23681 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
23682 (lto_uncompression_zlib): Make it static.
23683 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
23684 * lto-section-in.c (lto_get_section_data): Pass info
23685 about used compression.
23686 * lto-streamer-out.c: By default use zstd when possible.
23687 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
23688 (TV_IPA_LTO_COMPRESS): Likewise for compression.
23690 2019-07-03 Martin Liska <mliska@suse.cz>
23692 * lto-section-in.c (lto_get_section_data): Add "lto" section.
23693 * lto-section-out.c (lto_destroy_simple_output_block): Never
23694 compress LTO_section_lto section.
23695 * lto-streamer-out.c (produce_asm): Do not set major_version
23697 (lto_output_toplevel_asms): Likewise.
23698 (produce_lto_section): New function.
23699 (lto_output): Call produce_lto_section.
23700 (lto_write_mode_table): Do not set major_version and
23702 (produce_asm_for_decls): Likewise.
23703 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
23705 (struct lto_header): Remove.
23706 (struct lto_section): New struct.
23707 (struct lto_simple_header): Do not inherit from lto_header.
23708 (struct lto_file_decl_data): Add lto_section_header field.
23710 2019-07-03 Martin Liska <mliska@suse.cz>
23712 * lra-eliminations.c (eliminate_regs_in_insn): Remove
23714 * reg-stack.c (check_asm_stack_operands): Likewise.
23715 * tree-ssa-structalias.c (create_function_info_for): Likewise.
23716 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
23717 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
23718 force_expand_binop.
23720 2019-07-03 Martin Liska <mliska@suse.cz>
23722 PR tree-optimization/90892
23723 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
23724 in string constants.
23726 2019-07-03 Martin Liska <mliska@suse.cz>
23728 PR middle-end/90899
23729 * multiple_target.c (create_dispatcher_calls): Add to comdat
23730 group only if set for ifunc.
23732 2019-07-03 Martin Liska <mliska@suse.cz>
23735 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23736 Define local_object_name in outer scope in order to handle
23737 use-after-scope issue.
23739 2019-07-03 Martin Liska <mliska@suse.cz>
23741 * common.opt: Add fprofile-note.
23742 * coverage.c (coverage_init): Append the option
23744 * doc/invoke.texi: Document -fprofile-note.
23746 2019-07-03 Jakub Jelinek <jakub@redhat.com>
23748 PR tree-optimization/91033
23749 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
23750 vect_analyze_data_refs): Add bool * arguments.
23751 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
23752 if failure is due to scatter/gather, set *fatal to false if non-NULL.
23753 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23754 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
23755 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
23756 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
23757 vect_analyze_data_refs caller.
23759 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
23761 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
23762 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
23763 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
23764 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23765 OMP_CLAUSE__SCANTEMP_ entry.
23766 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
23767 * tree-pretty-print.c (dump_omp_clause): Likewise.
23768 * tree-nested.c (convert_nonlocal_omp_clauses,
23769 convert_local_omp_clauses): Likewise.
23770 * omp-general.h (struct omp_for_data): Add have_scantemp and
23771 have_nonctrl_scantemp members.
23772 * omp-general.c (omp_extract_for_data): Initialize them.
23773 * omp-low.c (struct omp_context): Add scan_exclusive member.
23774 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
23775 result again with GF_OMP_FOR_KIND_MASK. Initialize also
23776 ctx->scan_exclusive.
23777 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
23778 of !ctx->scan_inclusive.
23779 (lower_rec_input_clauses): Simplify gimplification of dtors using
23780 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
23781 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
23782 loops. Don't add barrier for reduction_omp_orig_ref if
23783 ctx->scan_??xclusive.
23784 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
23785 (lower_omp_scan): Use ctx->scan_exclusive instead
23786 of !ctx->scan_inclusive. Handle worksharing loops with inscan
23787 reductions. Use new_vard != new_var instead of repeated
23788 omp_is_reference calls.
23789 (omp_find_scan, lower_omp_for_scan): New functions.
23790 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
23792 * omp-expand.c (expand_omp_scantemp_alloc): New function.
23793 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
23794 and fd->have_scantemp.
23796 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
23797 on worksharing loop propagate it as shared clause to containing
23800 * omp-expand.c (expand_omp_for_static_nochunk,
23801 expand_omp_for_static_chunk): For nowait worksharing loop with
23802 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
23805 2019-07-02 qing zhao <qing.zhao@oracle.com>
23807 PR preprocessor/90581
23808 * doc/cppopts.texi: Add document for -fmax-include-depth.
23809 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
23811 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
23813 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
23814 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
23815 (mmx_packssdw): Ditto.
23816 (mmx_punpckhbw): Ditto.
23817 (mmx_punpcklbw): Ditto.
23818 (mmx_punpckhwd): Ditto.
23819 (mmx_punpcklwd): Ditto.
23820 (mmx_punpckhdq): Ditto.
23821 (mmx_punpckldq): Ditto.
23822 (*vec_dupv4hi): Ditto.
23823 (*vec_dupv2si): Ditto.
23824 (mmx_pmovmskb): Ditto.
23825 * config/i386/sse.md (sse_cvtpi2ps): Use
23826 TARGET_SSE2 && SSE_REG_P in split condition.
23827 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
23828 TARGET_SSSE3 && SSE_REGNO_P in split condition.
23829 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
23830 (ssse3_pshufbv8qi3): Ditto.
23831 (ssse3_palignrdi): Ditto.
23833 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
23835 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
23836 with inlined save and restore.
23838 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
23840 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
23841 to be inserted on single successor edge of the entry block. Then call
23842 commit_edge_insertions instead of inserting the instructions manually.
23843 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
23844 RTL expansion and rebuild jump labels chain.
23846 2019-07-02 Richard Biener <rguenther@suse.de>
23848 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
23850 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23852 * tree.c (build_common_tree_nodes): Initialize them.
23853 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
23854 Make declarations comments.
23855 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
23856 chrec_known): Remove definitions.
23857 (initialize_scalar_evolutions_analyzer): Remove.
23858 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
23859 * tree-streamer.c (preload_common_nodes): Do not preload
23860 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
23862 2019-07-02 Jan Hubicka <jh@suse.cz>
23864 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
23867 2019-07-02 Jan Hubicka <jh@suse.cz>
23869 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23871 (nonoverlapping_component_refs_since_match_p): ... this one;
23872 handle also non-decl bases; return -1 if search gave up.
23873 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23874 nonoverlapping_component_refs_of_decl_p_no_alias to
23875 nonoverlapping_component_refs_since_match_p_may_alias,
23876 nonoverlapping_component_refs_since_match_p_no_alias.
23877 (dump_alias_stats): Update dumping.
23878 (aliasing_matching_component_refs_p): Break out from ...;
23879 dispatch to nonoverlapping_component_refs_for_decl_p
23880 and nonoverlapping_component_refs_since_match_p.
23881 (aliasing_component_refs_p): ... here; call
23882 nonoverlapping_component_refs_p in scenarios where we can not
23883 precisely determine base match.
23884 (decl_refs_may_alias_p): Use
23885 nonoverlapping_component_refs_since_match_p.
23886 (indirect_ref_may_alias_decl_p): Do not call
23887 nonoverlapping_component_refs_p.
23888 (indirect_refs_may_alias_p): Likewise.
23890 2019-07-02 Jan Hubicka <jh@suse.cz>
23892 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23893 to clobber of return value.
23895 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23897 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23898 for is_neon_type instructions that have not already been categorized.
23900 2019-07-02 Richard Biener <rguenther@suse.de>
23902 PR tree-optimization/58483
23903 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23904 for MEM_REF base hashing.
23905 (equal_mem_array_ref_p): Likewise for base comparison.
23907 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23909 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23910 parameterized name.
23911 (signbit<mode>2): Use that name. Simplify.
23913 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23915 PR middle-end/66726
23916 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23917 Tune heuristic from PR71016 to allow MIN / MAX.
23919 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23921 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23922 parameterized name.
23923 (abs<mode>2): Use that name. Simplify.
23925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23927 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23928 parameterized name.
23929 (neg<mode>2): Use that name. Simplify.
23931 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23933 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23935 (abs<mode>2): Use that name. Simplify.
23937 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23939 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23941 (neg<mode>2): Use that name. Simplify.
23943 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23945 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23946 ("enabled" attribute): Handle sse_noavx isa attribute.
23947 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23948 Use TARGET_SSE && SSE_REGNO_P in split condition.
23949 (*vec_dupv2sf): Ditto.
23951 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23953 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23955 (floatsi<mode>2): Use that name. Simplify.
23957 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23959 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23960 parameterized name.
23961 (extenddf<mode>2_vsx): Make this a parameterized name.
23962 (extenddf<mode>2): Use those names. Simplify.
23964 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23966 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23968 (eh_return): Use that name. Simplify.
23970 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23972 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23973 (doloop_end): Use that name. Simplify.
23975 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23977 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23978 parameterized name.
23979 (indirect_jump): Use that name. Simplify.
23981 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23983 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23984 parameterized name.
23985 (abs<mode>2): Use that name. Simplify.
23987 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23989 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23990 parameterized name.
23991 (fix_trunc<mode>si2): Use that name. Simplify.
23993 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23995 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23996 (allocate_stack): Use that name. Simplify.
23998 2019-07-01 Martin Sebor <msebor@redhat.com>
24000 PR middle-end/90923
24001 * hash-map.h (hash_map::put): On insertion invoke element ctor.
24002 (hash_map::get_or_insert): Same. Reformat comment.
24003 * hash-set.h (hash_set::add): On insertion invoke element ctor.
24004 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
24005 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
24006 * hash-table.h (hash_table::operator=): Prevent copy assignment.
24007 (hash_table::hash_table (const hash_table&)): Use copy ctor
24008 instead of assignment to copy elements.
24010 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
24011 John David Anglin <danglin@gcc.gnu.org>
24014 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
24015 using saved frame pointer.
24017 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
24019 PR middle-end/64242
24020 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
24021 Add frame clobber and schedule blockage.
24023 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
24025 * doc/invoke.texi (Link Options): Further editorial changes to
24026 -flinker-output docs.
24028 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
24030 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
24031 Load both operands of a PLUS into registers separately.
24033 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
24035 * config/s390/vector.md: Fix shift count operand printing.
24037 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
24039 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
24041 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
24043 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
24044 Use recog_data to test for an output operand.
24046 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
24048 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
24049 exclude any others that are disparaged or that are bound to need
24051 (ira_get_dup_out_num): Expand comment.
24053 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
24055 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
24056 constraint string for each operand/alternative combo. Only handle
24057 '%' at the start of constraint strings, and look for it outside
24060 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
24062 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
24063 alternative_mask instead of HARD_REG_SET to represent a
24064 bitmask of alternatives.
24065 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
24066 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
24068 2019-07-01 Martin Liska <mliska@suse.cz>
24070 * edit-context.c (test_applying_fixits_unreadable_file): Do not
24071 use () for a constructor call.
24072 (test_applying_fixits_line_out_of_range): Likewise.
24073 * ggc-page.c (alloc_page): Use (void *) for %p printf format
24075 (free_page): Likewise.
24077 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
24079 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
24080 parameter names to match usage (no functional change).
24081 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
24083 2019-07-01 Richard Biener <rguenther@suse.de>
24085 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
24087 (pass_fre::execute): Honor it.
24088 * passes.def: Adjust pass_fre invocations to allow iterating,
24089 add non-iterating pass_fre before late threading/dom.
24091 2019-07-01 Richard Biener <rguenther@suse.de>
24093 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
24094 TARGET_MEM_REF handling to also handle address-taken ones.
24096 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
24098 * doc/sourcebuild.texi (Effective-Target Keywords, Other
24099 hardware attributes): Document avx512vp2intersect.
24101 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
24103 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
24104 (abs<mode>2): New expander.
24105 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
24106 Use CODE_FOR_ssse3_absv8qi2.
24107 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
24108 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
24110 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
24112 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
24113 to sse, sse_noavx and avx. Update all uses.
24115 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
24117 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
24118 (*mmx_<plusminus_insn><mode>3): Ditto.
24119 (*mmx_mulv4hi3"): Ditto.
24120 (*mmx_smulv4hi3_highpart): Ditto.
24121 (*mmx_umulv4hi3_highpart): Ditto.
24122 (*mmx_pmaddwd): Ditto.
24123 (*sse2_umulv1siv1di3): Ditto.
24124 (*mmx_<code>v4hi3): Ditto.
24125 (*mmx_<code>v8qi3): Ditto.
24126 (mmx_ashr<mode>3): Ditto.
24127 ("mmx_<shift_insn><mode>3): Ditto.
24128 (*mmx_eq<mode>3): Ditto.
24129 (mmx_gt<mode>3): Ditto.
24130 (mmx_andnot<mode>3): Ditto.
24131 (*mmx_<code><mode>3): Ditto.
24132 (*mmx_pinsrw): Ditto.
24133 (*mmx_pextrw): Ditto.
24134 (mmx_pshufw_1): Ditto.
24135 (*mmx_uavgv8qi3): Ditto.
24136 (*mmx_uavgv4hi3): Ditto.
24137 ("mmx_psadbw): Ditto.
24138 * config/i386/sse.md (sse_cvtps2pi): Ditto.
24139 (sse_cvttps2pi): Ditto.
24140 (ssse3_pmaddubsw): Ditto.
24141 (*ssse3_pmulhrswv4hi3): Ditto.
24142 (ssse3_psign<mode>3): Ditto.
24144 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
24146 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
24147 adjustment for bit-fields to all aggregate types.
24149 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
24151 * config/rs6000/predicates.md (pcrel_address): Use
24152 SYMBOL_REF_LOCAL_P to determine if a label is local.
24153 (pcrel_external_address): New predicate.
24154 (non_prefixed_mem_operand): Delete, predicate not used.
24155 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
24156 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
24158 (SYMBOL_REF_PCREL_P): Likewise.
24161 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
24163 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
24164 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
24165 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
24167 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
24169 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
24170 override on extra_headers.
24172 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
24174 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
24175 * config/darwin-driver.c (darwin_default_min_version): Remove newline
24177 (darwin_driver_init): Likewise.
24179 2019-06-28 Jan Beulich <jbeulich@suse.com>
24181 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
24182 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
24183 Eliminate redundant alternative.
24185 2019-06-28 Jan Beulich <jbeulich@suse.com>
24187 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
24188 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
24189 Use vector_operand.
24191 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
24193 * config/arc/arc.c (arc_rtx_costs): All short instructions are
24194 having a lower cost regardless of the speed option.
24196 2019-06-28 Jan Beulich <jbeulich@suse.com>
24198 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
24199 vector_operand plus, on both alternatives, "Bm" constraint.
24201 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
24203 * config/arm/arm.md: Remove redundant constraints from
24204 define_expand but leave reload_inm and reload_outm patterns
24205 untouched since they need special constraints to work.
24206 * config/arm/arm-fixed.md: Remove redundant constraints from
24208 * config/arm/iwmmxt.md: Likewise.
24209 * config/arm/neon.md: Likewise.
24210 * config/arm/sync.md: Likewise.
24211 * config/arm/thumb1.md: Likewise.
24212 * config/arm/vec-common.md: Likewise.
24214 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
24216 * doc/install.texi: Document --disable-tm-clone-registry.
24218 2019-06-27 Jakub Jelinek <jakub@redhat.com>
24221 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
24224 PR tree-optimization/91010
24225 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
24226 return true. Otherwise, don't call operand_equal_p if offset1 or
24227 offset2 is NULL and just return false.
24229 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
24231 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
24232 user-specified float mode choice for kernel mode code.
24234 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
24236 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
24239 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
24241 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
24242 use longcall for 64b code.
24244 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
24246 * builtins.c (get_memory_rtx): Fix comment.
24247 * optabs.def (movmem_optab): Change to cpymem_optab.
24248 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
24249 (emit_block_move_hints): Change movmem to cpymem.
24250 * defaults.h: Change movmem to cpymem.
24251 * targhooks.c (get_move_ratio): Change movmem to cpymem.
24252 (default_use_by_pieces_infrastructure_p): Ditto.
24253 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
24254 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
24256 * config/aarch64/aarch64.h: Change movmem to cpymem.
24257 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
24258 * config/alpha/alpha.h: Change movmem to cpymem in comment.
24259 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
24261 * config/arc/arc-protos.h: Change movmem to cpymem.
24262 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
24263 * config/arc/arc.h: Change movmem to cpymem in comment.
24264 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
24265 * config/arm/arm-protos.h: Change movmem to cpymem in names.
24266 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
24267 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
24268 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
24269 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
24270 * config/avr/avr-protos.h: Change movmem to cpymem.
24271 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
24272 avr_out_movmem): Change movmem to cpymem.
24273 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
24274 Change movmem to cpymem.
24275 * config/bfin/bfin-protos.h: Change movmem to cpymem.
24276 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
24277 Change movmem to cpymem.
24278 * config/bfin/bfin.h: Change movmem to cpymem in comment.
24279 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
24280 * config/c6x/c6x-protos.h: Change movmem to cpymem.
24281 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
24282 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
24283 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
24284 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
24285 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
24286 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
24287 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
24288 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
24289 expand_small_cpymem_or_setmem,
24290 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
24291 expand_set_or_cpymem_constant_prologue,
24292 ix86_expand_set_or_cpymem): Change movmem to cpymem.
24293 * config/i386/i386-protos.h: Change movmem to cpymem.
24294 * config/i386/i386.h: Change movmem to cpymem in comment.
24295 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
24296 (setmem<mode>): Change expansion function name.
24297 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
24298 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
24299 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
24300 * config/m32c/m32c-protos.h: Change movmem to cpymem.
24301 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
24302 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
24303 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
24305 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
24306 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
24307 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
24308 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
24309 Change movmem to cpymem.
24310 * config/mips/mips.h: Change movmem to cpymem.
24311 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
24312 * config/nds32/nds32-memory-manipulation.c
24313 (nds32_expand_movmemsi_loop_unknown_size,
24314 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
24315 nds32_expand_movmemsi_unroll,
24316 nds32_expand_movmemsi): Change movmem to cpymem.
24317 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
24318 * config/nds32/nds32-protos.h: Change movmem to cpymem.
24319 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
24320 (pa_adjust_insn_length): Change call to compute_movmem_length.
24321 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
24322 movmemdi, movmemdi_prereload,
24323 movmemdi_postreload): Change movmem to cpymem.
24324 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
24325 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
24326 * config/riscv/riscv.c: Change movmem to cpymem in comment.
24327 * config/riscv/riscv.h: Change movmem to cpymem.
24328 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
24329 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
24330 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
24332 * config/s390/s390-protos.h: Change movmem to cpymem.
24333 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
24334 s390_expand_insv): Change movmem to cpymem.
24335 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
24336 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
24337 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
24338 * config/sparc/sparc.h: Change movmem to cpymem in comment.
24339 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
24340 for nonexistent function.
24341 * config/vax/vax.h: Change movmem to cpymem in comment.
24342 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
24343 * config/visium/visium.h: Change movmem to cpymem in comment.
24344 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
24345 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
24346 * doc/md.texi: Change movmem to cpymem and update description to match.
24347 * doc/rtl.texi: Change movmem to cpymem.
24348 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
24349 * doc/tm.texi: Regenerate.
24351 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
24353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
24354 -fvariable-expansion-in-unroller by default.
24355 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
24358 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
24361 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
24362 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
24364 * config.gcc(rs6000-*-*): Define target_gtfiles.
24366 2019-06-27 Jan Hubicka <jh@suse.cz>
24368 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
24369 (add_type_duplicate): When odr hash is not allocated, to nothing.
24370 (odr_based_tbaa_p): New function.
24371 (set_type_canonical_for_odr_type): New function.
24372 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
24373 set_type_canonical_for_odr_type): New.
24374 * tree.c (gimple_canonical_types_compatible_p): ODR types with
24375 ODR based TBAA are not equivalent to non-ODR types.
24377 2019-06-27 Martin Liska <mliska@suse.cz>
24379 PR tree-optimization/90974
24380 PR rtl-optimization/90975
24381 PR rtl-optimization/90976
24383 PR tree-optimization/91017
24384 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
24386 * lra.c (lra_set_insn_recog_data): Remove a leftover from
24387 initial commit of IRA.
24388 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
24390 * tree-vect-loop.c (vect_create_epilog_for_reduction):
24391 Remove unused mode1.
24392 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
24395 2019-06-27 Jakub Jelinek <jakub@redhat.com>
24398 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
24399 instead of register_operand for operands[1], add m to its constraints
24400 if operands[2] uses "C" constraint. Ensure in condition that if
24401 operands[2] is not 0, then operands[1] is not a MEM. For last two
24402 alternatives, use unaligned loads instead of aligned if operands[1] is
24403 misaligned_operand.
24405 2019-06-27 Martin Liska <mliska@suse.cz>
24407 * asan.c (asan_emit_allocas_unpoison): Remove obviously
24409 * bt-load.c (move_btr_def): Likewise.
24410 * builtins.c (expand_builtin_apply_args_1): Likewise.
24411 (expand_builtin_apply): Likewise.
24412 * cfgexpand.c (expand_asm_stmt): Likewise.
24413 (construct_init_block): Likewise.
24414 * cfghooks.c (verify_flow_info): Likewise.
24415 * cfgloopmanip.c (remove_path): Likewise.
24416 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
24417 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
24418 * combine.c (simplify_if_then_else): Likewise.
24419 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
24420 (choose_basereg): Likewise.
24421 (ix86_expand_prologue): Likewise.
24422 (ix86_preferred_output_reload_class): Likewise.
24423 * cselib.c (cselib_record_sets): Likewise.
24424 * df-scan.c (df_scan_alloc): Likewise.
24425 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
24426 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
24427 * emit-rtl.c (try_split): Likewise.
24428 * graphite-scop-detection.c (assign_parameter_index_in_region):
24430 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
24431 * ira-color.c (setup_profitable_hard_regs): Likewise.
24432 * ira.c (rtx_moveable_p): Likewise.
24433 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
24434 * read-rtl.c (read_subst_mapping): Likewise.
24435 * regrename.c (scan_rtx): Likewise.
24436 * reorg.c (fill_slots_from_thread): Likewise.
24437 * tree-inline.c (tree_function_versioning): Likewise.
24438 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
24439 * tree-ssa-sink.c (statement_sink_location): Likewise.
24440 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
24441 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
24442 (vect_create_epilog_for_reduction): Likewise.
24443 * tree.c (build_nonstandard_integer_type): Likewise.
24445 2019-06-27 Richard Biener <rguenther@suse.de>
24447 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
24449 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
24451 PR tree-optimization/89772
24452 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
24453 out-of-bound accesses checking.
24455 2019-06-27 Martin Liska <mliska@suse.cz>
24457 PR tree-optimization/91014
24458 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
24459 when LHS is NULL_TREE.
24461 2019-06-27 Martin Liska <mliska@suse.cz>
24463 * symbol-summary.h (traverse): Pass
24464 argument a to the call of callback.
24465 (gt_ggc_mx): Mark arguments as unused.
24466 (gt_pch_nx): Likewise.
24468 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
24471 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
24474 2019-06-26 Jeff Law <law@redhat.com>
24476 PR tree-optimization/90883
24477 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
24478 (delete_dead_or_redundant_assignment): Likewise.
24480 PR tree-optimization/90883
24481 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
24482 * tree-ssa-dse.c: Update various comments to distinguish between
24483 dead and redundant stores.
24484 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
24485 (dse_optimize_redundant_stores): New function.
24486 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
24487 Distinguish between dead and redundant calls in dump output. All
24489 (delete_dead_or_redundant_assignment): Similarly for assignments.
24490 (dse_optimize_stmt): Handle _CHK variants. For statements which
24491 store 0 into multiple memory locations, try to prove a subsequent
24492 store is redundant.
24494 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
24497 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
24498 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
24500 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
24502 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
24503 (branch_islands): New extern.
24504 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
24505 * config/rs6000/rs6000.c: .. here.
24507 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
24509 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
24510 (powerpc*-*-*) ... to here.
24512 2019-06-26 Jeff Law <law@redhat.com>
24514 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
24515 memcpy, memmove and memset builtins.
24516 (maybe_trim_memstar_call): Likewise.
24518 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
24520 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
24522 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
24524 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
24526 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
24528 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
24530 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
24532 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
24535 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
24537 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
24539 2019-06-26 Richard Biener <rguenther@suse.de>
24542 * tree-inline.c (remap_ssa_name): Copy SSA range info.
24544 2019-06-26 Richard Biener <rguenther@suse.de>
24546 * lto-streamer.h (lto_bitmap_alloc): Remove.
24547 (lto_bitmap_free): Likewise.
24548 * lto-streamer.c (lto_bitmap_alloc): Remove.
24549 (lto_bitmap_free): Likewise.
24550 (lto_obstack): Likewise.
24551 (lto_obstack_initialized): Likewise.
24552 * lto-streamer-out.c (lto_output): Use own obstack for local
24553 bitmap, free it consistently.
24555 2019-06-26 Jakub Jelinek <jakub@redhat.com>
24558 * config/i386/sse.md
24559 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
24560 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
24561 insns if operands[2] is misaligned_operand.
24563 2019-06-26 Li Jia He <helijia@linux.ibm.com>
24565 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
24567 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
24570 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
24572 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
24574 2019-06-26 Martin Liska <mliska@suse.cz>
24576 PR tree-optimization/90973
24577 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
24578 epilogue_cost_vec instead of prologue_cost_vec for
24581 2019-06-26 Martin Liska <mliska@suse.cz>
24583 * bb-reorder.c (connect_better_edge_p): Add missing else
24584 statement in the middle of if-else statements.
24586 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
24587 H.J. Lu <hongjiu.lu@intel.com>
24588 Olga Makhotina <olga.makhotina@intel.com>
24590 * common/config/i386/i386-common.c
24591 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
24592 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
24593 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
24594 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
24595 (ix86_handle_option): Handle -mavx512vp2intersect.
24596 * config/i386/avx512vp2intersectintrin.h: New.
24597 * config/i386/avx512vp2intersectvlintrin.h: New.
24598 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
24599 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24600 AVX512VP2INTERSECT.
24601 * config/i386/i386-builtin-types.def: Add new types.
24602 * config/i386/i386-builtin.def: Add new builtins.
24603 * config/i386/i386-builtins.c: (enum processor_features): Add
24604 F_AVX512VP2INTERSECT.
24605 (static const _isa_names_table isa_names_table): Ditto.
24606 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24607 __AVX512VP2INTERSECT__.
24608 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
24609 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
24610 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
24611 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
24612 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
24613 * config/i386/i386-options.c (ix86_target_string): Add
24614 -mavx512vp2intersect.
24615 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
24616 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
24617 P2HImode and P2QImode.
24618 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
24619 number for P2QImode and P2HImode.
24620 (ix86_regmode_natural_size): New function.
24621 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
24622 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
24623 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
24624 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
24625 * config/i386/i386.opt: Add -mavx512vp2intersect.
24626 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
24627 avx512vp2intersectvlintrin.h.
24628 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
24629 (define_mode_iterator VI48_AVX512VP2VL): New.
24630 (avx512vp2intersect_2intersect<mode>,
24631 avx512vp2intersect_2intersectv16si): New define_insn patterns.
24632 * config.gcc: Add avx512vp2intersectvlintrin.h and
24633 avx512vp2intersectintrin.h to extra_headers.
24634 * doc/invoke.texi: Document -mavx512vp2intersect.
24636 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
24638 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
24640 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
24642 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
24643 savres_routine_syms, savres_routine_name, morestack_ref,
24644 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24645 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24646 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24647 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24648 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24649 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24650 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24651 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24652 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24653 get_stack_clash_protection_probe_interval,
24654 get_stack_clash_protection_guard_size,
24655 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24656 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24657 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24658 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24659 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24660 gen_frame_mem_offset, rs6000_savres_routine_name,
24661 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24662 ptr_regno_for_savres, rs6000_emit_savres_rtx,
24663 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24664 rs6000_global_entry_point_prologue_needed_p,
24665 rs6000_get_separate_components, rs6000_components_for_bb,
24666 rs6000_disqualify_components, rs6000_emit_prologue_components,
24667 rs6000_emit_epilogue_components, rs6000_set_handled_components,
24668 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24669 rs6000_output_savres_externs, rs6000_output_function_prologue,
24670 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24671 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24672 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24673 rs6000_output_function_epilogue, gen_add3_const,
24674 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24675 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24677 (machine_function): Moved to rs6000.h.
24678 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
24680 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
24681 savres_routine_syms, savres_routine_name, morestack_ref,
24682 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
24683 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
24684 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
24685 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
24686 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
24687 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
24688 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
24689 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
24690 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
24691 get_stack_clash_protection_probe_interval,
24692 get_stack_clash_protection_guard_size,
24693 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
24694 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
24695 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
24696 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
24697 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
24698 gen_frame_mem_offset, rs6000_savres_routine_name,
24699 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
24700 ptr_regno_for_savres, rs6000_emit_savres_rtx,
24701 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
24702 rs6000_global_entry_point_prologue_needed_p,
24703 rs6000_get_separate_components, rs6000_components_for_bb,
24704 rs6000_disqualify_components, rs6000_emit_prologue_components,
24705 rs6000_emit_epilogue_components, rs6000_set_handled_components,
24706 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
24707 rs6000_output_savres_externs, rs6000_output_function_prologue,
24708 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
24709 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
24710 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
24711 rs6000_output_function_epilogue, gen_add3_const,
24712 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
24713 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
24714 to here from rs6000.c.
24715 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
24716 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
24717 quad_address_offset_p) Moved to here from rs6000.c.
24718 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
24719 * config/config.gcc: Add new source file rs6000-logue.c to garbage
24722 2019-06-25 Martin Liska <mliska@suse.cz>
24724 * hash-table.c (hashtab_chk_error): Move here from ...
24725 * hash-table.h (hashtab_chk_error): ... here.
24727 2019-06-25 Martin Liska <mliska@suse.cz>
24729 PR tree-optimization/90978
24730 * df-scan.c (df_update_entry_block_defs): Remove dead else
24732 (df_update_exit_block_uses): Likewise.
24734 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
24735 Andrew Stubbs <ams@codesourcery.com>
24737 * config.gcc (thread_file): Set to gcn for AMD GCN.
24738 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
24739 (TARGET_EMUTLS_VAR_INIT): New hook.
24741 2019-06-25 Martin Jambor <mjambor@suse.cz>
24744 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
24746 2019-06-25 Richard Biener <rguenther@suse.de>
24748 PR tree-optimization/90930
24749 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
24750 into parallel form in the last pass instance.
24752 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
24754 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
24755 (arc_legitimize_pic_address): Simplify and cleanup the function.
24756 (SYMBOLIC_CONST): Remove.
24757 (prepare_pic_move): Likewise.
24758 (prepare_move_operands): Handle complex mov cases here.
24759 (arc_legitimize_address_0): Remove call to
24760 arc_legitimize_pic_address.
24761 (arc_legitimize_address): Remove call to
24762 arc_legitimize_tls_address.
24763 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
24764 (movhi_insn): Likewise.
24766 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24768 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
24770 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
24771 format of "__intN" types for UINTMAX_TYPE.
24772 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
24773 format of "__intN" types for SIZETYPE.
24774 * tree.c (build_common_tree_nodes): Accept "__intN__"
24775 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
24776 * doc/invoke.texi: Document that __intN__ disables pedantic
24779 2019-06-25 Jan Hubicka <jh@suse.cz>
24781 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
24782 base2_alias_set is non-zero before doing TBAA based disambiguation.
24784 2019-06-25 Martin Liska <mliska@suse.cz>
24786 PR tree-optimization/90973
24787 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
24788 of prologue and epilogue.
24790 2019-06-24 Jan Hubicka <jh@suse.cz>
24792 * ipa-utils.h (type_with_linkage_p): Verify that type is
24794 (odr_type_p): Remove extra return.
24795 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
24796 hash STRING_FLAG only for arrays and integers.
24797 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
24798 Update analogously.
24799 * tree-streamer-out.c (pack_ts_type_common_value_fields):
24801 * print-tree.c (print_node): Print cxx-odr-p
24803 * tree.c (need_assembler_name_p): Also check that type
24805 (verify_type_variant): Update verification of SRING_FLAG;
24806 also check CXX_ODR_P.
24807 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
24808 (TYPE_STRING_FLAG): Use it.
24809 (TYPE_CXX_ODR_P): New macro.
24810 * dwarf2out.c (gen_array_type_die): First check that type
24811 is an array and then test string flag.
24813 2019-06-24 Richard Biener <rguenther@suse.de>
24815 PR tree-optimization/90972
24816 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
24817 in common code, dealing with STRING_CST properly.
24819 2019-06-24 Richard Biener <rguenther@suse.de>
24821 PR tree-optimization/90930
24822 PR tree-optimization/90316
24823 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
24824 decrement of limit.
24826 2019-06-24 Martin Sebor <msebor@redhat.com>
24828 * tree-pretty-print.h: Remove unnecessary punctuation characters
24830 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
24832 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
24834 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
24835 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
24836 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
24838 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
24840 * config/rs6000/darwin.h: Handle GCC target pragma.
24842 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
24844 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
24846 2019-06-22 Jeff Law <law@redhat.com>
24848 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24850 2019-06-22 Jan Hubicka <jh@suse.cz>
24852 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
24853 give up on bitfields; continue searching for different refs
24856 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24858 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24859 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
24860 containing the offset as possible simd lane access. Look through
24861 widening conversion. Move the
24862 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
24864 2019-06-21 Richard Biener <rguenther@suse.de>
24866 PR tree-optimization/90930
24867 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24868 flag on new stmts to avoid re-processing them.
24870 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
24872 PR c++/90875 - added -Wswitch-outside-range option
24873 * doc/invoke.texi (Wswitch-outside-range): Document.
24875 2019-06-21 Jeff Law <law@redhat.com>
24877 PR tree-optimization/90949
24878 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24879 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24881 2019-06-21 Richard Biener <rguenther@suse.de>
24884 * dwarf2out.c (prune_unused_types_walk): Always consider
24885 function-local extern declarations as used.
24887 2019-06-21 Richard Biener <rguenther@suse.de>
24889 PR tree-optimization/90913
24890 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24891 the scalar variant of if-conversion versioning.
24893 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24895 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24896 create another "omp scan inscan exclusive" array if
24897 !ctx->scan_inclusive.
24898 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24899 (lower_omp_scan): Likewise.
24900 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24901 2-bit bitfield for simd_lane_access_p member.
24902 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24903 aux == (void *)-4 as simd lane access.
24904 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
24905 comment with permutations to show the canonical permutation order.
24906 (vectorizable_scan_store): Handle exclusive scan.
24907 (vectorizable_store): Call vectorizable_scan_store even for
24908 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24910 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24911 "omp simd array" arrays with one byte elements.
24913 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24915 * config/alpha/alpha.md (@unaligned_store<mode>):
24916 Rename from unaligned_store<mode>.
24917 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24918 * config/alpha/sync.md (@load_locked_<mode>): Rename
24919 from load_locked_<mode>.
24920 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24921 (@atomic_compare_and_swap<mode>_1): Rename
24922 from atomic_compare_and_swap<mode>_1.
24923 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24924 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24925 Use gen_reload_in_aligned and gen_unaligned_store.
24926 (emit_load_locked): Remove.
24927 (emit_store_conditional): Ditto.
24928 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24929 (alpha_split_compare_and_swap): Ditto.
24930 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24931 (alpha_split_compare_and_swap_12): Use gen_load_locked
24932 and gen_store_conditional.
24933 (alpha_split_atomic_exchange): Ditto.
24934 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24935 (alpha_split_atomic_exchange_12): Use gen_load_locked
24936 and gen_store_conditional.
24938 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24940 * config/aarch64/aarch64-errata.h: New file.
24941 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24942 (CA53_ERR_843419_SPEC): Delete.
24943 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24944 * config/aarch64/aarch64-linux.h: Likewise.
24945 * config/aarch64/aarch64-netbsd.h: Likewise.
24946 * config/aarch64/aarch64-freebsd.h: Likewise.
24948 2019-06-20 Marek Polacek <polacek@redhat.com>
24950 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24952 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24954 * config/rs6000/rs6000.md (isa attribute): Add support for
24955 for a future processor.
24957 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24960 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24961 standard scalar operation pattern for V2DF.
24962 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24963 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24964 (*ieee_<ieee_maxmin><mode>3): Likewise.
24965 (vec_setv2df_0): Likewise.
24967 2019-06-20 Jan Hubicka <jh@suse.cz>
24969 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24970 parameter; it has no use in gimple memory model.
24971 (indirect_ref_may_alias_decl_p): Update.
24973 2019-06-20 Martin Liska <mliska@suse.cz>
24975 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24978 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24980 * tree-vect-stmts.c (enum scan_store_kind): New type.
24981 (scan_store_can_perm_p): Change last argument from int * to
24982 vec<enum scan_store_kind> *, record precisely which permutations
24983 need whole vector left shift or that plus VEC_COND_EXPR.
24984 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24985 and additional VEC_COND_EXPR only for those iterations that need it.
24987 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24989 * config.gcc: Fix ARM --with-fpu checking and error message.
24991 2019-06-19 Marek Polacek <polacek@redhat.com>
24993 PR c++/60364 - noreturn after first decl not diagnosed.
24994 * attribs.c (get_attribute_namespace): No longer static.
24995 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24997 (attr_noreturn_exclusions): Make it extern.
24998 * attribs.h (get_attribute_namespace): Declare.
24999 * tree-inline.c (function_attribute_inlinable_p): Use
25000 get_attribute_name.
25002 2019-06-19 Martin Sebor <msebor@redhat.com>
25004 PR tree-optimization/90626
25005 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
25007 PR tree-optimization/90626
25008 * tree-ssa-strlen.c (strxcmp_unequal): New function.
25009 (handle_builtin_string_cmp): Call it.
25011 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
25013 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
25014 and DARWIN_NOPIE_SPEC.
25015 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
25016 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
25017 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
25018 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
25019 (DARWIN_EXPORT_DYNAMIC): Delete.
25020 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
25021 and pie options processing to darwin.h.
25022 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
25024 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
25026 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
25027 in computing the number of options to be moved.
25029 2019-06-19 Maya Rashish <coypu@sdf.org>
25031 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
25032 (CLEAR_INSN_CACHE) Use it.
25034 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
25036 * config/i386/i386.md (cmpstrnsi): Remove dead code.
25038 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
25040 PR middle-end/84521
25041 * builtins.c (expand_builtin_setjmp_setup): Save
25042 hard_frame_pointer_rtx.
25043 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
25045 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
25047 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
25049 (remove_reg_equal_offset_note): Remove unused function.
25050 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
25052 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25053 (arc_builtin_setjmp_frame_value): Remove function.
25054 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25055 (avr_builtin_setjmp_frame_value): Remove function.
25056 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25057 (ix86_builtin_setjmp_frame_value): Remove function.
25058 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
25059 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25060 (sparc_builtin_setjmp_frame_value): Remove function.
25061 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
25062 (vax_builtin_setjmp_frame_value): Remove function.
25063 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
25064 pointer if has_nonlocal_label.
25066 2019-06-19 Jakub Jelinek <jakub@redhat.com>
25068 * doc/md.texi: Document vec_shl_<mode> pattern.
25069 * optabs.def (vec_shl_optab): New optab.
25070 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
25071 argument, if == vec_shl_optab, check for left whole vector shift
25072 pattern rather than right shift.
25073 (expand_vec_perm_const): Add vec_shl_optab support.
25074 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
25076 * tree-vect-generic.c (lower_vec_perm): Support permutations which
25077 can be handled by vec_shl_optab.
25078 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
25079 (check_scan_store): Use it.
25080 (vectorizable_scan_store): If target can't do normal permutations,
25081 try to use whole vector left shifts and if needed a VEC_COND_EXPR
25083 * config/i386/sse.md (vec_shl_<mode>): New expander.
25085 * omp-low.c (lower_rec_input_clauses): Handle references properly
25087 (lower_omp_scan): Likewise.
25089 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
25091 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
25092 mem_mode is BLKmode.
25094 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
25097 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
25098 pointer adjustment for the case of no callee-saved registers and
25099 stack frame bigger than 128 bytes.
25101 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
25103 PR middle-end/90862
25104 * omp-low.c (check_omp_nesting_restrictions): Handle
25105 GF_OMP_TARGET_KIND_OACC_DECLARE.
25107 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
25109 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
25110 (@add<mode>3_carry): Rename from add<mode>3_carry.
25111 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
25112 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
25113 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
25114 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
25115 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
25116 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
25117 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
25118 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
25119 (cmpstrnsi): Use gen_cmp_1.
25120 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
25121 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
25122 (@umonitor_<mode>): Rename from umonitor_<mode>.
25123 * config/i386/i386-expand.c (ix86_expand_copysign):
25124 Use gen_copysign3_const and gen_copysign3_var.
25125 (ix86_expand_xorsign): Use gen_xorsign3_1.
25126 (ix86_expand_branch): Use gen_sub3_carry_ccc,
25127 gen_sub3_carry_ccgz and gen_cmp1.
25128 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
25129 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
25130 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
25131 (ix86_split_lshr): Ditto.
25132 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
25134 2019-06-18 Jason Merrill <jason@redhat.com>
25136 * tree.c (build_constructor): Add MEM_STAT_DECL.
25138 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25140 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
25141 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
25142 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
25143 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
25144 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
25145 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
25146 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
25147 Use CC_NZC instead of CC.
25148 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
25149 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
25150 (aarch64_print_operand): Handle E_CC_NZCmode.
25151 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
25152 of gen_set_clobber_cc.
25154 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25156 * config/aarch64/aarch64-sve.md: Tabify file.
25158 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25160 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
25161 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
25162 * config/aarch64/aarch64-sve.md: Use it.
25164 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25166 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
25167 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
25168 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
25169 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
25170 (aarch64_expand_sve_vec_cmp_int): Use it.
25171 (aarch64_expand_sve_vec_cmp_float): Likewise.
25172 * config/aarch64/aarch64-sve.md: Likewise throughout.
25174 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25175 Kugan Vivekanandarajah <kuganv@linaro.org>
25177 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
25178 (*cond_<optab><mode>_z): Fold into...
25179 (*cond_<optab><mode>_any): ...here. Also handle cases in which
25180 operand 4 can be tied to operand 0 (either inherently or via RA).
25182 2019-06-18 Richard Biener <rguenther@suse.de>
25185 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
25186 as if optimized away.
25188 2019-06-18 Tom de Vries <tdevries@suse.de>
25190 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
25191 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
25192 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
25194 (define_insn "@set_softstack_<mode>"): ... this.
25195 (define_insn "omp_simt_enter_<mode>"): Rename to ...
25196 (define_insn "@omp_simt_enter_<mode>"): ... this.
25197 (define_insn "omp_simt_exit_<mode>"): Rename to ...
25198 (define_insn "@omp_simt_exit_<mode>"): ... this.
25200 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
25202 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
25203 vf parameter. Restore the previous iv step of nscalars_step,
25204 but give it iv_type rather than compare_type. Tweak code order
25205 to match the comments.
25206 (vect_set_loop_condition_masked): Update accordingly.
25207 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
25208 for iv_precision. Tweak comment formatting.
25210 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
25212 * config/darwin.c: Strip trailing whitespace.
25214 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
25216 * config/darwin.c (darwin_emit_unwind_label): New default to false.
25217 (darwin_override_options): Set darwin_emit_unwind_label as needed.
25219 2019-06-18 Martin Jambor <mjambor@suse.cz>
25222 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
25223 caller does not have flag_ipa_cp set.
25225 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25227 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
25228 from "*fold_left_plus_<mode>", updated operands order.
25229 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
25230 * internal-fn.c (mask_fold_left_direct): New define.
25231 (expand_mask_fold_left_optab_fn): Likewise.
25232 (direct_mask_fold_left_optab_supported_p): Likewise.
25233 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
25234 * optabs.def (mask_fold_left_plus_optab): New optab.
25235 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
25236 masked internal_fn for a reduction ifn.
25237 (vectorize_fold_left_reduction): Add support for masking reductions.
25239 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
25241 PR middle-end/80791
25242 * target.def (predict_doloop_p): New hook.
25243 * targhooks.h (default_predict_doloop_p): New declaration.
25244 * targhooks.c (default_predict_doloop_p): New function.
25245 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
25246 * doc/tm.texi: Regenerate.
25247 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
25248 (TARGET_PREDICT_DOLOOP_P): New macro.
25249 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
25251 2019-06-17 Jakub Jelinek <jakub@redhat.com>
25253 * omp-low.c (struct omp_context): Add scan_inclusive field.
25254 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
25256 (struct omplow_simd_context): Add lastlane member.
25257 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
25258 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
25260 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
25261 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
25262 (lower_omp_scan): New function.
25263 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
25264 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
25265 check 3rd argument if present rather than 2nd.
25266 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
25267 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
25269 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25270 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
25272 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
25273 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
25274 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
25276 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
25277 IFN_GOMP_SIMD_LANE argument.
25278 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
25279 encoded ->aux value.
25280 * tree-vect-stmts.c: Include attribs.h.
25281 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
25282 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
25284 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
25285 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
25287 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
25290 * config/i386/i386.md (*nabstf2_1): New insn pattern.
25291 (*nabs<mode>2_1): Ditto.
25292 (nabs sse-reg splitter): New splitter.
25293 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
25295 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
25297 PR bootstrap/90873.
25298 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
25301 2019-06-17 Tom de Vries <tdevries@suse.de>
25303 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
25304 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
25305 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
25307 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
25309 (define_insn "omp_simt_enter_insn"): Rename to ...
25310 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
25311 match_operand 0, 1 and 2, as well as the unspec_volatile result.
25312 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
25313 gen_omp_simt_enter_si.
25314 (define_expand "omp_simt_exit"): New.
25315 (define_insn "omp_simt_exit"): Rename to ...
25316 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
25319 2019-06-17 Matthew Green <mrg@eterna.com.au>
25320 Maya Rashish <coypu@sdf.org>
25322 * config.gcc (aarch64*-*-netbsd*): New target.
25323 * config/aarch64/aarch64-netbsd.h: New file.
25324 * config/aarch64/t-aarch64-netbsd: Likewise.
25326 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
25328 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
25329 the access path from base to first VIEW_CONVERT_EXPR or
25332 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
25334 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
25335 access path on BIT_FIELD_REFs.
25337 2019-06-17 Martin Liska <mliska@suse.cz>
25340 * ipa-utils.h (odr_type_p): Remove dead code.
25342 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25344 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
25345 alternative Solaris 11.4 format.
25346 * configure: Regenerate.
25348 2019-06-17 Tom de Vries <tdevries@suse.de>
25350 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
25351 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
25353 (define_insn "call_value_insn"): Rename to ...
25354 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
25356 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
25359 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
25361 PR middle-end/64242
25362 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
25363 frame clobbers and schedule block.
25364 (builtin_longjmp): Likewise.
25366 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25368 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
25369 describe how to perform MSPABI compliant 64-bit shift.
25370 * config/msp430/msp430.md (ashldi3): New define_expand.
25371 (ashrdi3): New define_expand.
25372 (lshrdi3): New define_expand.
25374 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25376 * doc/sourcebuild.texi: Document new effective target keyword
25379 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
25381 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
25382 indirect_refs_may_alias_p): Revert accidental commits.
25384 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
25385 at the end of structures.
25387 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
25389 * config/darwin.c (machopic_indirect_call_target): Use renamed
25390 darwin_picsymbol_stubs to decide on output.
25391 (darwin_override_options): Handle darwin_picsymbol_stubs.
25392 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
25393 (LD64_VERSION): Revise default.
25394 * config/darwin.opt: (mpic-symbol-stubs): New option.
25395 (darwin_picsymbol_stubs): New variable.
25396 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
25397 rename to TARGET_MACHO_PICSYM_STUBS.
25398 * config/i386/i386.c (output_pic_addr_const): Likewise.
25399 * config/i386/i386.h Likewise.
25400 * config/rs6000/darwin.h: Likewise.
25401 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
25402 darwin_picsymbol_stubs.
25404 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
25406 * config/darwin.opt (prebind, noprebind, seglinkedit,
25407 noseglinkedit): Add RejectNegative.
25409 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
25411 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
25412 in my previous patch.
25414 2019-06-16 Tom de Vries <tdevries@suse.de>
25416 PR tree-optimization/89376
25417 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
25419 2019-06-15 Maya Rashish <coypu@sdf.org>
25421 * doc/invoke.texi (Spec Files): Update location of the
25424 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
25426 * doc/extend.texi (Common Function Attributes): Clarify
25427 no_sanitize. Fix grammar.
25429 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
25431 * tree-ssa-alias.c (alias_stats): Add
25432 nonoverlapping_component_refs_p_may_alias,
25433 nonoverlapping_component_refs_p_no_alias,
25434 nonoverlapping_component_refs_of_decl_p_may_alias,
25435 nonoverlapping_component_refs_of_decl_p_no_alias.
25436 (dump_alias_stats): Dump them.
25437 (nonoverlapping_component_refs_of_decl_p): Add stats.
25438 (nonoverlapping_component_refs_p): Add stats; do not stop on first
25441 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
25443 * config/i386/i386.md (and<mode>3): Generate zero-extends for
25444 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
25446 (*anddi3_doubleword): Split before reload. Merge with
25447 anddi->zext pre-reload splitter.
25448 (*andndi3_doubleword): Split before reload.
25449 (*<code>di3_doubleword): Ditto.
25450 (*one_cmpldi2_doubleword): Ditto.
25452 2019-06-15 Jakub Jelinek <jakub@redhat.com>
25454 PR middle-end/90779
25455 * gimplify.c: Include omp-offload.h and context.h.
25456 (gimplify_bind_expr): Add "omp declare target" attributes
25457 to static block scope variables inside of target region or target
25460 2019-06-15 Tom de Vries <tdevries@suse.de>
25462 PR tree-optimization/90009
25463 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
25464 Return NULL if bb contains IFN_UNIQUE.
25466 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
25468 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
25469 (un): New define_mode_attr.
25470 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
25471 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
25472 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
25474 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
25476 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
25478 * config/darwin.opt: Add RejectNegative where needed, reorder
25479 and add minimal functional descriptions.
25481 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
25483 PR rtl-optimization/90765
25484 * calls.c (update_stack_alignment_for_call): New function.
25485 (expand_call): Call update_stack_alignment_for_call when
25486 outgoing parameter is passed in the stack.
25487 (emit_library_call_value_1): Likewise.
25488 * function.c (locate_and_pad_parm): Don't update
25489 stack_alignment_needed and preferred_stack_boundary.
25491 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
25494 * config/i386/i386-features.c
25495 (dimode_scalar_chain::compute_convert_gain): Replace
25496 mmxsse_to_integer with sse_to_integer.
25497 * config/i386/i386.c (ix86_register_move_cost): Verify that
25498 moves between MMX and non-MMX units require secondary memory.
25499 Correct costs of moves between SSE and integer units.
25500 * config/i386/i386.h (processor_costs): Rename cost of moving
25501 SSE register to integer to sse_to_integer. Rename cost of
25503 2019-06-14 Matt Thomas <matt@3am-software.com>
25504 Matthew Green <mrg@eterna.com.au>
25505 Nick Hudson <skrll@netbsd.org>
25506 Maya Rashish <coypu@sdf.org>
25507 Richard Earnshaw <rearnsha@arm.com>
25509 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
25510 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
25511 * config/arm/netbsd-eabi.h: New file.
25512 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
25514 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
25515 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
25516 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
25517 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
25519 2019-06-14 Richard Biener <rguenther@suse.de>
25521 * tree-loop-distribution.c (classify_partition): Return
25522 whether a reduction appeared in all partitions and do not
25523 stop builtin detection because of this.
25524 (distribute_loop): Sort a non-builtin partition last if
25525 there's a reduction in all partitions and make sure the
25526 partition prevailing as last is not a builtin.
25528 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
25531 * ipa-prop.c (add_to_agg_contents_list): New function.
25532 (clobber_by_agg_contents_list_p): Likewise.
25533 (extract_mem_content): Likewise.
25534 (get_place_in_agg_contents_list): Delete.
25535 (determine_known_aggregate_parts): Renamed from
25536 determine_locally_known_aggregate_parts. New parameter
25539 2019-06-13 Martin Sebor <msebor@redhat.com>
25541 PR tree-optimization/90662
25542 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
25545 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
25548 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
25549 dbase is not TARGET_MEM_REF.
25551 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
25553 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
25555 (and<mode>3): Use gen_extend_insn instead of indirect functions.
25556 Do not generate DImode extends for 32bit targets.
25557 (and->zext post-reload splitter): Use gen_extend_insn
25558 instead of indirect functions.
25559 (anddi->zext pre-reload splitter): New.
25560 (*zext<mode>_doubleword_and): Remove.
25561 (*zext<mode>_doubleword): Ditto.
25562 (*zextsi_doubleword): Dittto.
25564 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
25566 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
25567 Use gen_sub3_insn instead of indirect function.
25568 (ix86_expand_ashl_const): Use gen_add2_insn instead of
25570 (ix86_adjust_counter): Ditto.
25572 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
25573 Lijia He <helijia@linux.ibm.com>
25575 PR tree-optimization/77820
25576 * tree-ssa-threadedge.c
25577 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
25579 (thread_across_edge): Add call to
25580 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
25582 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
25584 * config/darwin-driver.c (validate_macosx_version_min): New.
25585 (darwin_default_min_version): Cleanup and validate supplied version.
25586 (darwin_driver_init): Likewise and push cleaned version into opts.
25588 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
25590 PR tree-optimization/90869
25591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
25592 converts in MEM_REF referencing decl rather than view converts
25593 from decl type to MEM_REF type.
25595 2019-06-13 Richard Biener <rguenther@suse.de>
25597 PR tree-optimization/90856
25598 * tree-sra.c (build_ref_for_model): Only use
25599 build_reconstructed_reference when address-spaces are the same.
25601 2019-06-13 Jakub Jelinek <jakub@redhat.com>
25603 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
25604 wrap ei variable name in the declaration in ()s.
25605 (nvptx_single): Actually use mode_label variable. Formatting fix.
25607 2019-06-13 Richard Biener <rguenther@suse.de>
25609 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
25610 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
25611 also return the condition stmt.
25612 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
25613 loop we can version and version that, reusing the loop version
25614 created by if-conversion instead of versioning again.
25616 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
25618 * gimple-loop-versioning.cc (prune_loop_conditions): Use
25620 * tree-vrp (value_range_base::may_contain_p): Call into
25621 value_inside_range.
25622 (value_inside_range): Make private inside value_range_base class.
25623 Take min/max from *this.
25624 (range_includes_p): Remove.
25625 * tree-vrp.h (value_range_base): Add value_inside_range.
25626 (range_includes_p): Remove.
25627 (range_includes_zero_p): Call may_contain_p.
25628 * vr-values.c (compare_range_with_value): Same.
25630 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
25632 * doc/extend.texi (ARC Function Attributes): Update info.
25634 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
25636 PR tree-optimization/89713
25637 * doc/invoke.texi (-ffinite-loops): Document new option.
25638 * common.opt (-ffinite-loops): New option.
25639 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
25640 IFN_GOACC_LOOP calls as necessary.
25641 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
25643 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
25644 IFN_GOACC_LOOP call is not used.
25645 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
25647 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
25650 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
25651 compare_type is not with Pmode size, we will create an IV with
25652 Pmode size with truncated use (i.e. converted to the correct type).
25653 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
25654 (vect_iv_limit_for_full_masking): New. Factored out of
25655 vect_set_loop_condition_masked.
25656 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
25657 (vect_iv_limit_for_full_masking): Declare.
25659 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
25662 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
25663 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
25664 (get_alias_ptr_type_for_ptr_address): Likewise.
25665 (add_iv_candidate_for_use): Add scaled index candidate if useful.
25666 * tree-ssa-address.c (preferred_mem_scale_factor): New.
25667 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
25670 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
25672 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
25674 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
25676 * common/config/pru/pru-common.c: New file.
25677 * config.gcc: Add PRU target.
25678 * config/pru/alu-zext.md: New file.
25679 * config/pru/constraints.md: New file.
25680 * config/pru/predicates.md: New file.
25681 * config/pru/pru-opts.h: New file.
25682 * config/pru/pru-passes.c: New file.
25683 * config/pru/pru-pragma.c: New file.
25684 * config/pru/pru-protos.h: New file.
25685 * config/pru/pru.c: New file.
25686 * config/pru/pru.h: New file.
25687 * config/pru/pru.md: New file.
25688 * config/pru/pru.opt: New file.
25689 * config/pru/t-pru: New file.
25690 * doc/extend.texi: Document PRU pragmas.
25691 * doc/invoke.texi: Document PRU-specific options.
25692 * doc/md.texi: Document PRU asm constraints.
25694 2019-06-12 Martin Sebor <msebor@redhat.com>
25696 PR middle-end/90676
25697 * tree-pretty-print.c (dump_mem_ref): New function. Include
25698 MEM_REF type in output when different size than operand.
25699 (dump_generic_node): Move code to dump_mem_ref and call it.
25701 2019-06-12 Martin Sebor <msebor@redhat.com>
25703 PR tree-optimization/90662
25704 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
25707 2019-06-12 Tom de Vries <tdevries@suse.de>
25709 PR tree-optimization/90009
25710 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
25712 2019-06-12 Martin Liska <mliska@suse.cz>
25714 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
25716 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
25717 * mem-stats.h (mem_alloc_description::mem_alloc_description):
25718 Do not sanitize created maps.
25720 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
25722 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
25723 value_range::singleton_p.
25724 * tree-vrp.c (value_range_constant_singleton): Remove.
25725 * tree-vrp.h (value_range_constant_singleton): Remove.
25726 * vr-values.c (vr_values::singleton): Use
25727 value_range::singleton_p.
25729 2019-06-12 Jakub Jelinek <jakub@redhat.com>
25732 * cfgexpand.c (align_local_variable): Add really_expand argument,
25733 don't SET_DECL_ALIGN if it is false.
25734 (add_stack_var): Add really_expand argument, pass it through to
25735 align_local_variable.
25736 (expand_one_stack_var_1): Pass true as really_expand to
25737 align_local_variable.
25738 (expand_one_ssa_partition): Pass true as really_expand to
25740 (expand_one_var): Pass really_expand through to add_stack_var.
25742 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
25744 * config/arm/iterators.md (VABAL): New int iterator.
25745 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
25746 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
25747 UNSPEC_VABAL_U values.
25749 2019-06-12 Martin Liska <mliska@suse.cz>
25751 * value-prof.c (stream_out_histogram_value): Only first value
25754 2019-06-12 Jakub Jelinek <jakub@redhat.com>
25757 * symtab.c (symtab_node::set_section): Allow being called on aliases
25758 as long as they aren't analyzed yet.
25760 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
25762 * config/mips/mips.c (mips_final_postscan_insn): Modify call
25763 to `mips_set_text_contents_type' to indicate whether a
25764 non-debug insn follows.
25766 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
25768 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
25769 enabling -mpcrel by default.
25770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
25771 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
25772 that the test against -mcpu=future is done first. Then test if
25773 -mprefixed-addr is on for -mpcrel.
25774 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
25776 2019-06-11 Jakub Jelinek <jakub@redhat.com>
25779 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
25780 instead of and.u%d.
25782 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
25784 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
25786 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
25788 PR c++/90449 - add -Winaccessible-base option.
25789 * doc/invoke.texi (Winaccessible-base): Document.
25791 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
25793 PR tree-optimization/62041
25794 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
25796 2019-06-11 Jason Merrill <jason@redhat.com>
25798 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
25799 * tree.c (get_tree_code_name): Likewise.
25800 * print-tree.c (print_node): Only briefly print a node with an
25803 2019-06-11 Jakub Jelinek <jakub@redhat.com>
25806 * trans-mem.c (tm_memopt_compute_available): Add assertion
25807 that blocks is not empty. Formatting fix.
25809 2019-06-11 Martin Liska <mliska@suse.cz>
25812 * hash-table.h: Extend create_gcc, add one parameter
25813 that is passed into hash_table::hash_table.
25815 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
25817 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
25819 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
25820 Emit clobber also for non-sse operations.
25821 (ix86_split_fp_absneg_operator): New function.
25822 * config/i386/i386.md (SSEMODEF): New mode iterator.
25823 (ssevecmodef): New mode attribute.
25824 (<code>tf2): Use absneg code iterator.
25825 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
25826 Add three-operand AVX alternatives.
25827 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
25828 Use absneg code iterator and X87MODEF mode iterator.
25829 (absneg fp_reg non-sse splitter): Call absneg code iterator
25830 and X87MODEF mode iterator.
25831 (absneg general_reg non-sse splitter): Use absneg code iterator
25832 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
25833 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
25834 code iterator. Add three-operand AVX alternative.
25835 (absneg sse_reg splitter): Use absneg code iterator
25836 and SSEMODEF mode iterator. Handle AVX operands.
25837 (absneg fp_reg splitter): Use absneg code iterator
25838 and MODEF mode iterator.
25839 (absneg general_reg splitter): Merge splitters using MODEF mode
25840 iterator. Use absneg code iterator. Call
25841 ix86_split_fp_absneg_operator.
25842 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
25843 Do not enable for non-sse modes before reload.
25844 (CSGNMODE): Remove.
25845 (CSGNVMODE): Ditto.
25846 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
25847 ssevecmodef mode attribute instaed of CSGNVMODE.
25848 (copysign<mode>3_const): Ditto.
25849 (copysign<mode>3_var): Ditto.
25850 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
25851 Use absneg code iterator. Simplify code using std::swap.
25852 * config/i386/predicates.md (absneg_operator): Remove.
25854 2019-06-10 Martin Sebor <msebor@redhat.com>
25856 * gimple-fold.c (get_range_strlen): Update comment that didn't
25857 make it into r267503 or related commits.
25859 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
25861 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
25862 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
25864 2019-06-10 Jakub Jelinek <jakub@redhat.com>
25866 * tree.def (OMP_SCAN): New tree code.
25867 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25868 OMP_CLAUSE_EXCLUSIVE.
25869 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25870 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25871 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25872 OMP_CLAUSE_{IN,EX}CLUSIVE.
25873 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25874 * tree-nested.c (convert_nonlocal_reference_stmt,
25875 convert_local_reference_stmt, convert_gimple_call): Handle
25877 * tree-pretty-print.c (dump_omp_clause): Handle
25878 OMP_CLAUSE_{IN,EX}CLUSIVE.
25879 (dump_generic_node): Handle OMP_SCAN.
25880 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25881 * gimple.h (gomp_scan): New type.
25882 (is_a_helper <gomp_scan *>::test,
25883 is_a_helper <const gomp_scan *>::test): New templates.
25884 (gimple_build_omp_scan): Declare.
25885 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25886 gimple_omp_scan_set_clauses): New inline functions.
25887 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25888 * gimple.c (gimple_build_omp_scan): New function.
25889 (gimple_copy): Handle GIMPLE_OMP_SCAN.
25890 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25891 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25892 GIMPLE_OMP_TASKGROUP.
25893 (dump_gimple_omp_scan): New function.
25894 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25895 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25896 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25897 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25898 (is_gimple_stmt): Handle OMP_SCAN.
25899 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25900 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25901 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25902 mentioned in nested #pragma omp scan. Handle
25903 OMP_CLAUSE_{IN,EX}CLUSIVE.
25904 (gimplify_expr): Handle OMP_SCAN.
25905 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25906 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25908 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25911 2019-06-10 Martin Liska <mliska@suse.cz>
25913 * ipa-cp.c (ignore_edge_p): New function.
25914 (build_toporder_info): Use it.
25915 * ipa-inline.c (ignore_edge_p): New function.
25916 (inline_small_functions): Use it.
25917 * ipa-pure-const.c (ignore_edge_for_nothrow):
25918 Verify opt_for_fn for caller and callee.
25919 (ignore_edge_for_pure_const): Likewise.
25920 * ipa-reference.c (ignore_edge_p): Extend to check
25922 * ipa-utils.c (searchc): Refactor.
25923 * ipa-utils.h: Fix coding style.
25925 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25927 * config/arc/arc.c (arc_rtx_costs): Update costs.
25929 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25931 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25932 (arc_split_ior): Likewise.
25933 (arc_check_mov_const): Likewise.
25934 (arc_split_mov_const): Likewise.
25935 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25936 (arc_rtx_costs): Replace check Crr with Cax constraint.
25937 (prepare_move_operands): Cleanup, remove unused code.
25938 (arc_split_ior): New function.
25939 (arc_check_ior_const): Likewise.
25940 (arc_split_mov_const): Likewise.
25941 (arc_check_mov_const): Likewise.
25942 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25943 in define_insn_and_split pattern.
25944 (iorsi3): Likewise.
25945 (mulsi3_v2): Add new matching variant.
25946 (andsi3_i): Cleanup pattern.
25947 (rotrsi3_cnt1): Update pattern.
25948 (rotrsi3_cnt8): New pattern.
25949 (ashlsi2_cnt8): Likewise.
25950 (ashlsi2_cnt16): Likewise.
25951 * config/arc/constraints.md (C0p): Update constraint.
25953 (C0x): New pattern.
25954 (Cax): New pattern.
25956 2019-06-10 Martin Liska <mliska@suse.cz>
25958 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25959 Update coding style.
25960 (sem_item_optimizer::dump_cong_classes):
25961 Print how many items are in a non-singular class. Improve
25964 2019-06-10 Martin Liska <mliska@suse.cz>
25966 * value-prof.c (dump_histogram_value): Change dump format.
25967 (gimple_mod_subtract_transform): Remove legacy comment.
25969 2019-06-10 Martin Liska <mliska@suse.cz>
25971 * value-prof.c (dump_histogram_value): Print histogram values
25974 2019-06-10 Martin Liska <mliska@suse.cz>
25976 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25977 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25978 * ipa-profile.c (ipa_profile_generate_summary):
25979 Use get_most_common_single_value.
25980 * tree-profile.c (gimple_init_gcov_profiler):
25981 Instrument with __gcov_one_value_profiler_v2
25982 and __gcov_indirect_call_profiler_v4.
25983 * value-prof.c (dump_histogram_value):
25984 Print all values for HIST_TYPE_SINGLE_VALUE.
25985 (stream_out_histogram_value): Update assert for
25987 (stream_in_histogram_value): Set number of
25988 counters for HIST_TYPE_SINGLE_VALUE.
25989 (get_most_common_single_value): New.
25990 (gimple_divmod_fixed_value_transform):
25991 Use get_most_common_single_value.
25992 (gimple_ic_transform): Likewise.
25993 (gimple_stringops_transform): Likewise.
25994 (gimple_find_values_to_profile): Set number
25995 of counters for HIST_TYPE_SINGLE_VALUE.
25996 * value-prof.h (get_most_common_single_value): New.
25998 2019-06-10 Martin Liska <mliska@suse.cz>
26000 * hash-map.h: Pass default value to hash_table ctor.
26001 * hash-table.h: Add default value to call of a ctor.
26003 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
26005 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
26006 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
26008 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
26011 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
26012 Call pa_output_function_label.
26013 (TARGET_ASM_FUNCTION_PROLOGUE): define.
26014 * config/pa/pa-protos.h (pa_output_function_label): Declare.
26015 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
26017 (pa_linux_output_function_prologue): Declare.
26018 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
26019 (pa_output_function_label): New.
26020 (pa_output_function_prologue): Revise to use pa_output_function_label.
26021 (pa_linux_output_function_prologue): New.
26022 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
26024 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
26026 * tree-vrp.h (value_range_base::intersect): New.
26027 (value_range::intersect_helper): Move from here...
26028 (value_range_base::intersect_helper): ...to here.
26029 * tree-vrp.c (value_range::intersect_helper): Rename to...
26030 (value_range_base::intersect_helper): ...this, and rewrite to
26031 return a value instead of modifying THIS in place.
26032 Also, move equivalence handling...
26033 (value_range::intersect): ...here, while calling intersect_helper.
26034 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
26036 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
26038 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
26040 2019-06-07 Jakub Jelinek <jakub@redhat.com>
26042 * Makefile.in (genprogerr): Add condmd.
26043 (genprog): Remove it here.
26045 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
26047 * doc/invoke.texi (AMD GCN Options): Add gfx906.
26049 2019-06-07 Richard Biener <rguenther@suse.de>
26052 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
26053 that appear after user labels.
26055 2019-06-07 Martin Liska <mliska@suse.cz>
26057 * cselib.c (cselib_init): Disable hash table
26059 * hash-set.h: Pass new default argument to m_table.
26060 * hash-table.c: Add global variable with hash table
26061 sanitization limit.
26062 * hash-table.h (Allocator>::hash_table): Add new argument
26064 (hashtab_chk_error): New.
26065 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
26066 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
26067 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
26069 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
26071 * common.opt (flto-odr-type-merging): Ignore.
26072 * invoke.texi (-flto-odr-type-merging): Remove.
26073 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
26074 (can_be_vtable_hashed_p): Remove.
26075 (hash_odr_vtable): Remove.
26076 (odr_vtable_hasher::hash): Remove.
26077 (types_same_for_odr): Remove.
26078 (types_odr_comparable): Remove.
26079 (odr_vtable_hasher::equal): Remove.
26080 (odr_vtable_hash_type, odr_vtable_hash): Remove.
26081 (add_type_duplicate): Do not synchronize vtable and name hashtables.
26082 (get_odr_type): Do not use vtable hash.
26083 (dump_odr_type): Remove commented out code.
26084 (build_type_inheritance_graph): Do not allocate vtable hash.
26085 (rebuild_type_inheritance_graph): Do not delete vtable hash.
26086 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
26087 (odr_type_p): Likewise.
26088 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
26091 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
26093 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
26094 immediately after same_types_for_tbaa_p returns -1 and continue
26095 looking for possible exact match; if matching types are arrays
26096 watch for partial overlaps.
26097 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
26098 (indirect_refs_may_alias_p): Do type based disambiguation first;
26101 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
26103 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
26105 2019-06-07 Martin Liska <mliska@suse.cz>
26107 * doc/invoke.texi: Remove param.
26108 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
26110 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
26111 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
26112 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
26113 * profile.c (instrument_values): Remove
26114 HIST_TYPE_INDIR_CALL_TOPN.
26115 * tree-profile.c (init_ic_make_global_vars):
26116 Always build __gcov_indirect_call only.
26117 (gimple_init_gcov_profiler): Remove usage
26118 of PARAM_INDIR_CALL_TOPN_PROFILE.
26119 (gimple_gen_ic_profiler): Likewise.
26120 * value-prof.c (dump_histogram_value): Likewise.
26121 (stream_in_histogram_value): Likewise.
26122 (gimple_indirect_call_to_profile): Likewise.
26123 (gimple_find_values_to_profile): Likewise.
26124 * value-prof.h (enum hist_type): Likewise.
26126 2019-06-07 Martin Liska <mliska@suse.cz>
26128 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
26131 2019-06-07 Martin Liska <mliska@suse.cz>
26133 PR tree-optimization/78902
26134 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
26135 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
26136 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
26137 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
26138 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
26139 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
26140 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
26141 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
26142 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
26143 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
26144 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
26145 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
26146 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
26148 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
26149 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
26150 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
26151 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
26152 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
26153 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
26154 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
26155 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
26156 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
26157 warn_unused_result attribute.
26158 (BUILT_IN_STRDUP): Likewise.
26159 (BUILT_IN_STRNDUP): Likewise.
26160 (BUILT_IN_ALLOCA): Likewise.
26161 (BUILT_IN_CALLOC): Likewise.
26162 (BUILT_IN_MALLOC): Likewise.
26163 (BUILT_IN_REALLOC): Likewise.
26165 2019-06-06 Jim Wilson <jimw@sifive.com>
26168 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
26169 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
26170 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
26172 2019-06-06 Martin Sebor <msebor@redhat.com>
26174 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
26175 (handle_builtin_malloc): Remove trailing spaces.
26176 (handle_builtin_memset): Same.
26177 (handle_builtin_memcmp): Same.
26178 (compute_string_length): Same.
26179 (determine_min_objsize): Same.
26180 (handle_builtin_string_cmp): Same.
26181 (handle_char_store): Same. Break up excessively long line.
26183 2019-06-06 Martin Jambor <mjambor@suse.cz>
26185 * tree-sra.c (build_reconstructed_reference): Drop the alignment
26188 2019-06-06 Martin Jambor <mjambor@suse.cz>
26190 * tree-sra.c (struct access): New field grp_same_access_path.
26191 (dump_access): Dump it.
26192 (build_reconstructed_reference): New function.
26193 (build_ref_for_model): Use it if possible.
26194 (path_comparable_for_same_access): New function.
26195 (same_access_path_p): Likewise.
26196 (sort_and_splice_var_accesses): Set the new flag.
26197 (analyze_access_subtree): Likewise.
26198 (propagate_subaccesses_across_link): Propagate zero value of the new
26199 flag down the access tree.
26201 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
26203 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
26204 * config/gcn/gcn.opt (gpu_type): Add gfx906.
26205 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
26206 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
26209 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26211 PR tree-optimization/90332
26212 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
26213 Handle VALS containing two vectors.
26214 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
26216 (@aarch64_combinez<mode>): ... This.
26217 (*aarch64_combinez_be<mode>): Rename to...
26218 (@aarch64_combinez_be<mode>): ... This.
26219 (vec_init<mode><Vhalf>): New define_expand.
26220 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
26222 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
26224 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
26225 library functions only when not optimizing for size.
26226 (ashlsi3): Likewise.
26227 (ashrhi3): Likewise.
26228 (ashrsi3): Likewise.
26229 (lshrhi3): Likewise.
26230 (lshrsi3): Likewise.
26232 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
26234 PR rtl-optimization/88751
26235 * ira.c (ira): Use the number of the actually referenced registers
26236 when calculating the threshold.
26238 2019-06-06 Jakub Jelinek <jakub@redhat.com>
26240 * configure: Regenerate.
26242 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
26244 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
26245 register if it is in memory, so the shift can be emulated with a rotate
26247 (ashrhi3): Likewise.
26248 (lshrhi3): Likewise.
26250 2019-06-06 Martin Liska <mliska@suse.cz>
26252 PR tree-optimization/87954
26253 * match.pd: Simplify mult where both arguments are 0 or 1.
26255 2019-06-06 Richard Biener <rguenther@suse.de>
26257 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
26258 put equivalences on UNDEFINED ranges.
26259 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
26260 Make sure to drop defs of stmts added during simplification
26263 2019-06-06 Richard Biener <rguenther@suse.de>
26265 * tree-ssa-structalias.c: Include tree-cfg.h.
26266 (make_heapvar): Do not make heap vars artificial.
26267 (find_func_aliases_for_builtin_call): Handle stack allocation
26269 (find_func_aliases): Delay processing of simple enough returns
26271 (set_uids_in_ptset): Adjust.
26272 (find_what_var_points_to): Likewise.
26273 (solve_constraints): Do not dump points-to sets here.
26274 (compute_points_to_sets): Post-process return statements,
26275 amending the escaped solution. Dump points-to sets afterwards.
26276 (ipa_pta_execute): Dump points-to sets.
26278 2019-06-06 Martin Liska <mliska@suse.cz>
26281 * doc/install.texi: Fix HTML headers and
26282 titles for 'Installing GCC' pages.
26284 2019-06-06 Martin Liska <mliska@suse.cz>
26286 * ipa-icf-gimple.h (dump_message_1): Remove.
26287 (dump_message): Likewise.
26288 (return_false_with_message_1): Print also file.
26289 (return_false_with_msg): Likewise.
26290 (return_with_result): Likewise.
26291 (return_with_debug): Likewise.
26292 * ipa-icf.c (sem_function::equals_private): Remove call
26295 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
26297 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
26298 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
26299 memory operand for it.
26300 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
26302 2019-06-05 Martin Sebor <msebor@redhat.com>
26304 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
26305 Adjust quoting and hyphenation.
26306 * convert.c (convert_to_real_1): Same.
26307 * gcc.c (driver_wrong_lang_callback): Same.
26308 (driver::handle_unrecognized_options): Same.
26309 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
26310 * opts-common.c (cmdline_handle_error): Same.
26311 (read_cmdline_option): Same.
26312 * opts-global.c (complain_wrong_lang): Same.
26313 (print_ignored_options): Same.
26314 (handle_common_deferred_options): Same.
26315 * pretty-print.h: Same.
26316 * print-rtl.c (debug_bb_n_slim): Same.
26317 * sched-rgn.c (make_pass_sched_fusion): Same.
26318 * tree-cfg.c (verify_gimple_assign_unary): Same.
26319 (verify_gimple_label): Same.
26320 * tree-ssa-operands.c (verify_ssa_operands): Same.
26321 * varasm.c (do_assemble_alias): Same.
26322 (assemble_alias): Same.
26324 2019-06-05 Richard Henderson <rth@twiddle.net>
26326 * config/alpha/alpha.c (direct_return): Move down after
26327 struct machine_function definition; use saved frame_size;
26329 (struct machine_function): Add sa_mask, sa_size, frame_size.
26330 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
26331 (alpha_compute_frame_layout): ... new function.
26332 (TARGET_COMPUTE_FRAME_LAYOUT): New.
26333 (alpha_initial_elimination_offset): Use saved sa_size.
26334 (alpha_vms_initial_elimination_offset): Likewise.
26335 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
26336 (alpha_expand_prologue): Use saved frame data. Merge integer
26337 and fp register save loops.
26338 (alpha_expand_epilogue): Likewise.
26339 (alpha_start_function): Use saved frame data.
26340 * config/alpha/alpha-protos.h (direct_return): Update.
26341 (alpha_sa_size): Remove.
26343 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
26345 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
26346 multiplication by a power-of-two value.
26347 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
26348 and turn the modulo operation into a masking operation.
26350 2019-06-05 Jakub Jelinek <jakub@redhat.com>
26353 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
26354 with VOIDmode inner operands.
26356 2019-06-05 Richard Biener <rguenther@suse.de>
26358 PR middle-end/90726
26359 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
26360 turn an expression graph into a tree.
26362 2019-06-05 Jakub Jelinek <jakub@redhat.com>
26364 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
26366 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
26367 treat it like explicit monotonic schedule modifier.
26368 (expand_omp_for): Initialize has_lastprivate_conditional.
26369 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
26372 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
26373 references, lookup in in hash map MEM_REF operand instead of the
26375 (lower_omp_1): When looking for lastprivate conditional assignments,
26376 handle MEM_REFs with REFERENCE_TYPE operands.
26378 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
26379 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
26380 and references a VLA. Handle references to non-VLAs if is_simd
26381 all privatization clauses like reductions.
26382 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
26383 If omp_is_reference, use always omp simd arrays and set
26384 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
26385 fails, emit reference initialization.
26387 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
26390 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
26391 _mm_mask_fpclass_sd_mask): New intrinsics.
26392 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
26393 * config/i386/i386-builtin.def
26394 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
26396 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
26397 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
26398 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
26399 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
26400 case QI_FTYPE_V2SF_INT): Ditto.
26401 * config/i386/sse.md
26402 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
26403 Extended to insnstructions with mask operands.
26405 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26407 * config/rs6000/constraints.md (define_register_constraint "wp"):
26409 (define_register_constraint "wq"): Delete.
26410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26411 (rs6000_init_hard_regno_mode_ok): Adjust.
26412 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26413 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
26414 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
26415 (define_mode_attr VSa): Delete.
26416 (define_mode_attr VSisa): New.
26417 (rest of file): Adjust.
26418 * doc/md.texi (Machine Constraints): Adjust.
26420 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26422 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
26423 (define_attr "enabled"): Handle those new isa values.
26425 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26427 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
26428 (define_mode_attr VSr5): Delete.
26429 (define_mode_attr VStype_sqrt): Delete.
26430 (define_mode_iterator VSX_SPDP): Delete.
26431 (define_mode_attr VS_spdp_res): Delete.
26432 (define_mode_attr VS_spdp_insn): Delete.
26433 (define_mode_attr VS_spdp_type): Delete.
26434 (*vsx_sqrt<mode>2): Adjust.
26435 (vsx_<VS_spdp_insn>): Delete, split to...
26436 (vsx_xscvdpsp): ... this. New. And...
26437 (vsx_xvcvspdp): ... this. New. And...
26438 (vsx_xvcvdpsp): ... this. New.
26440 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26442 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
26444 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
26445 (rest of file): Adjust.
26447 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26449 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
26450 (vsx_extract_<mode>_var): Ditto.
26452 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26454 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
26457 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26459 * config/rs6000/constraints.md (define_register_constraint "ww"):
26461 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26462 (rs6000_init_hard_regno_mode_ok): Adjust.
26463 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26464 RS6000_CONSTRAINT_ww.
26465 * config/rs6000/rs6000.md: Adjust.
26466 * config/rs6000/vsx.md: Adjust.
26467 * doc/md.texi (Machine Constraints): Adjust.
26469 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26471 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
26472 (define_mode_attr sd): New.
26473 (define_mode_attr s): New.
26474 (define_mode_attr Ftrad): Delete.
26475 (define_mode_attr Fvsx): Delete.
26476 (define_mode_attr Fs): Delete.
26477 (rest of file): Use the new mode attributes.
26478 * config.rs6000/vsx.md: Use the new mode attributes.
26480 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26482 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
26485 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26487 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
26488 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
26489 used with VSX_B, VSX_D, or VSX_F, with just "wa".
26491 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
26494 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
26495 C++ with strict ANSI requirements.
26497 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
26499 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
26500 computations when step is 1.
26502 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26504 * config/rs6000/constraints.md (define_register_constraint "wf"):
26506 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26507 (rs6000_init_hard_regno_mode_ok): Adjust.
26508 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26509 RS6000_CONSTRAINT_wf.
26510 * config/rs6000/rs6000.md: Adjust.
26511 * config/rs6000/vsx.md: Adjust.
26512 * doc/md.texi (Machine Constraints): Adjust.
26514 2019-06-04 Andrew Pinski <apinski@marvell.com>
26516 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
26519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26521 * config/rs6000/constraints.md (define_register_constraint "wd"):
26523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26524 (rs6000_init_hard_regno_mode_ok): Adjust.
26525 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26526 RS6000_CONSTRAINT_wd.
26527 * config/rs6000/rs6000.md: Adjust.
26528 * config/rs6000/vsx.md: Adjust.
26529 * doc/md.texi (Machine Constraints): Adjust.
26531 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26533 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
26534 (rest of file): Adjust.
26536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26538 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
26539 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
26540 (vsx_splat_<mode>_reg): Adjust.
26542 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26544 * config/rs6000/constraints.md (define_register_constraint "ws"):
26546 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26547 (rs6000_init_hard_regno_mode_ok): Adjust.
26548 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26549 RS6000_CONSTRAINT_ws.
26550 * config/rs6000/rs6000.md: Adjust.
26551 * config/rs6000/vsx.md: Adjust.
26552 * doc/md.texi (Machine Constraints): Adjust.
26554 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26556 * config/rs6000/constraints.md (define_register_constraint "wv"):
26558 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26559 (rs6000_init_hard_regno_mode_ok): Adjust.
26560 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26561 RS6000_CONSTRAINT_wv.
26562 * config/rs6000/rs6000.md: Adjust.
26563 * config/rs6000/vsx.md: Adjust.
26564 * doc/md.texi (Machine Constraints): Adjust.
26566 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
26568 * config/rs6000/constraints.md (define_register_constraint "wi"):
26570 (define_register_constraint "wt"): Delete.
26571 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26572 (rs6000_init_hard_regno_mode_ok): Adjust.
26573 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26574 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
26575 * config/rs6000/rs6000.md: Adjust.
26576 * config/rs6000/vsx.md: Adjust.
26577 * doc/md.texi (Machine Constraints): Adjust.
26579 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26581 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
26583 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
26584 default_elf_asm_output_external.
26586 2019-06-04 Martin Liska <mliska@suse.cz>
26588 * ipa-icf.c (INCLUDE_LIST): Remove.
26589 (sem_item_optimizer::execute): Remove call to init_wpa.
26590 * ipa-icf.h (init_wpa): Remove.
26592 2019-06-04 Jakub Jelinek <jakub@redhat.com>
26594 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
26595 conditional on combined for simd.
26596 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
26598 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
26599 constructs, don't remove lastprivate_conditional_map, but instead set
26600 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
26601 to parent construct temporaries.
26602 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
26603 like !ctx->lastprivate_conditional_map.
26604 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
26605 use up->outer context instead of up.
26606 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
26607 gimple_omp_for_combined_p.
26608 (expand_omp_for_static_nochunk): Likewise.
26609 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
26610 probably moved over into expand_omp_for_generic rather than being copied
26613 2019-06-04 Martin Liska <mliska@suse.cz>
26615 * value-prof.c (dump_histogram_value): Fix typo.
26616 (gimple_mod_subtract_transform): Likewise.
26618 2019-06-04 Richard Biener <rguenther@suse.de>
26620 PR middle-end/90726
26621 * tree-chrec.c (chrec_contains_symbols): Add to visited.
26622 (tree_contains_chrecs): Likewise.
26623 (chrec_contains_symbols_defined_in_loop): Move here and avoid
26624 exponential behaivor from ...
26625 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26627 (expression_expensive_p): Avoid exponential behavior and compute
26628 expanded size, rejecting any expansion.
26629 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
26630 (idx_contains_abnormal_ssa_name_p): Likewise.
26631 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
26632 (contains_abnormal_ssa_name_p): Simplify and use
26633 walk_tree_without_duplicates.
26635 2019-06-04 Richard Biener <rguenther@suse.de>
26637 PR tree-optimization/90738
26639 2019-06-03 Richard Biener <rguenther@suse.de>
26641 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26642 full reference tree and record in ref->ref.
26643 (vn_reference_lookup_3): Pass in original ref to
26644 ao_ref_init_from_vn_reference.
26645 (vn_reference_lookup): Likewise.
26646 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26647 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26648 Handle non-decl bases in the original reference.
26650 2019-06-04 Martin Liska <mliska@suse.cz>
26652 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
26653 number of references.
26654 (sem_item_optimizer::do_congruence_step):
26655 (sem_item_optimizer::worklist_push): Dump how references
26657 (sem_item_optimizer::worklist_pop): Use heap.
26658 (sem_item_optimizer::process_cong_reduction): Likewise.
26659 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
26661 2019-06-04 Martin Liska <mliska@suse.cz>
26663 * ipa-icf.h (struct sem_usage_pair_hash): New.
26664 (sem_usage_pair_hash::hash): Likewise.
26665 (sem_usage_pair_hash::equal): Likewise.
26666 (struct sem_usage_hash): Likewise.
26667 * ipa-icf.c (sem_item::sem_item): Initialize
26668 referenced_by_count.
26669 (sem_item::add_reference): Register a reference
26670 in ref_map and not in target->usages.
26671 (sem_item::setup): Remove initialization of
26673 (sem_item::~sem_item): Remove usage of dead vectors.
26674 (sem_item::dump): Remove dump of references.
26675 (sem_item_optimizer::sem_item_optimizer): Initialize
26677 (sem_item_optimizer::read_section): Remove useless
26679 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
26680 (sem_item_optimizer::build_graph): Pass m_references
26681 to ::add_reference.
26682 (sem_item_optimizer::verify_classes): Remove usage of dead
26684 (sem_item_optimizer::traverse_congruence_split): Return true
26685 when a class is split.
26686 (sem_item_optimizer::do_congruence_step_for_index): Use
26687 hash_map for look up of (sem_item *, index). That brings
26688 significant speed up.
26689 (sem_item_optimizer::do_congruence_step): Return true
26690 when a split is done.
26691 (congruence_class::is_class_used): Use referenced_by_count.
26693 2019-06-04 Alan Modra <amodra@gmail.com>
26696 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
26699 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
26701 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
26702 * config/rs6000/rs6000.c (direct_move_p): Adjust.
26703 (rs6000_secondary_reload_simple_move): Adjust.
26704 (rs6000_opt_masks): Neuter the "mfpgpr" option.
26705 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
26706 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
26709 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
26710 (floatunssi<mode>2_lfiwzx): Adjust.
26711 (fix_trunc<mode>si2_stfiwx): Adjust.
26712 (fixuns_trunc<mode>si2_stfiwx): Adjust.
26713 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
26714 (mfpgpr): Mark as deprecated.
26715 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
26716 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
26717 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
26719 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
26721 * config/rs6000/constraints.md (define_register_constraint "wg"):
26723 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26724 RS6000_CONSTRAINT_wg.
26725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26726 (rs6000_init_hard_regno_mode_ok): Adjust.
26727 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
26728 Delete "wg" alternatives.
26729 * doc/md.texi (Machine Constraints): Adjust.
26731 2019-06-03 Alan Modra <amodra@gmail.com>
26733 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
26734 (get_uncond_jump_length): Assert length less than INT_MAX and
26737 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
26739 PR middle-end/64242
26740 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
26742 (expand_builtin_nonlocal_goto): Likewise.
26744 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26746 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
26747 (aarch64_asm_output_external): Declare.
26748 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
26749 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
26750 (aarch64_asm_output_alias): New.
26751 (aarch64_asm_output_external): New.
26752 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
26753 (ASM_OUTPUT_EXTERNAL): Define.
26755 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
26756 * tree-vrp.h (value_range_base::nonzero_p): New.
26757 (value_range_base::set_nonnull): Rename to...
26758 (value_range_base::set_nonzero): ...this.
26759 (value_range_base::set_null): Rename to...
26760 (value_range_base::set_zero): ...this.
26761 (value_range::set_nonnull): Remove.
26762 (value_range::set_null): Remove.
26763 * tree-vrp.c (range_is_null): Remove.
26764 (range_is_nonnull): Remove.
26765 (extract_range_from_binary_expr): Use value_range_base::*zero_p
26766 instead of range_is_*null.
26767 (extract_range_from_unary_expr): Same.
26768 (value_range_base::set_nonnull): Rename to...
26769 (value_range_base::set_nonzero): ...this.
26770 (value_range::set_nonnull): Remove.
26771 (value_range_base::set_null): Rename to...
26772 (value_range_base::set_zero): ...this.
26773 (value_range::set_null): Remove.
26774 (extract_range_from_binary_expr): Rename set_*null uses to
26776 (extract_range_from_unary_expr): Same.
26777 (union_helper): Same.
26778 * vr-values.c (get_value_range): Use set_*zero instead of
26780 (vr_values::extract_range_from_binary_expr): Same.
26781 (vr_values::extract_range_basic): Same.
26783 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
26786 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
26788 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26790 * config/aarch64/iterators.md (MAX_OPP): New code attr.
26791 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
26793 (aarch64_<su>abd<mode>_3): ... This.
26794 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
26796 2019-06-03 Richard Biener <rguenther@suse.de>
26798 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
26799 full reference tree and record in ref->ref.
26800 (vn_reference_lookup_3): Pass in original ref to
26801 ao_ref_init_from_vn_reference.
26802 (vn_reference_lookup): Likewise.
26803 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
26804 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
26805 Handle non-decl bases in the original reference.
26807 2019-06-03 Martin Liska <mliska@suse.cz>
26809 * doc/generic.texi: Remove Java Trees.
26811 2019-06-03 Martin Liska <mliska@suse.cz>
26813 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
26814 returns 0 when operands are equal.
26816 2019-06-03 Richard Biener <rguenther@suse.de>
26818 PR tree-optimization/90716
26819 * tree-loop-distribution.c (destroy_loop): Process blocks in
26822 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26825 * vector-builder.h (vector_builder::count_dups): New method.
26826 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
26828 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
26829 (vec_init<mode><Vel>): New pattern.
26830 * config/aarch64/aarch64.c (emit_insr): New function.
26831 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
26832 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
26833 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
26834 (aarch64_sve_expand_vector_init): Define two overloaded functions.
26836 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26838 PR tree-optimization/90681
26839 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
26840 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
26841 special case for SLP, but fail on non-groupped loads.
26843 2019-06-03 Martin Liska <mliska@suse.cz>
26845 * cfg.c (debug): Use TDF_DETAILS for debug and
26846 print edge info only once.
26848 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
26851 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
26853 2019-06-01 Martin Sebor <msebor@redhat.com>
26855 PR middle-end/90694
26856 * tree-pretty-print.c (dump_generic_node): Add parentheses.
26858 2019-05-31 Jan Hubicka <jh@suse.cz>
26860 * alias.c: Include ipa-utils.h.
26861 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
26862 * ipa-devirt.c (prevailing_odr_type): New.
26863 * ipa-utils.h (previaling_odr_type): Declare.
26865 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
26866 Hongtao Liu <hongtao.liu@intel.com>
26869 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26870 NOTE_INSN_DELETED_LABEL check.
26872 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
26873 Robert Suchanek <robert.suchanek@mips.com>
26875 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26876 and 3rd operands of the fmadd/fmsub/maddv builtin.
26878 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26880 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26881 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26882 on OMP_SIMD if not nested inside of worksharing loop that also has
26883 lastprivate conditional clause for the same decl.
26884 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26885 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26887 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
26889 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26891 (lower_lastprivate_clauses): Likewise.
26892 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26893 calling lower_rec_input_clauses.
26894 (lower_omp_for): Likewise.
26895 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26896 clause on simd construct.
26897 * omp-expand.c (expand_omp_simd): Initialize cond_var if
26898 OMP_CLAUSE__CONDTEMP_ clause is present.
26900 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26903 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
26906 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26907 TEX_D32, TEX_D64 or TEX_D128.
26909 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26911 * match.pd (~(vec?cst1:cst2)): New transformation.
26913 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26915 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26916 ((size_t)(A /[ex] B) CMP C): New transformation.
26918 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26920 * doc/md.texi: Document define_insn_and_rewrite.
26921 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26922 * gensupport.c (queue_elem): Update comment.
26923 (replace_operands_with_dups): New function.
26924 (gen_rewrite_sequence): Likewise.
26925 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26926 * read-rtl.c (apply_subst_iterator): Likewise.
26927 (add_condition_to_rtx, named_rtx_p): Likewise.
26928 (rtx_reader::read_rtx_operand): Likewise.
26929 * config/aarch64/aarch64-sve.md
26930 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26931 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26932 define_insn_and_rewrite.
26933 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26934 Remove separate define_split.
26936 2019-05-31 Jan Hubicka <jh@suse.cz>
26938 * tree-ssa-alias.c (type_has_components_p): New function.
26939 (aliasing_component_refs_p): Use it.
26941 2019-05-31 Martin Liska <mliska@suse.cz>
26943 * gdbhooks.py: Add const_tree to TreePrinter.
26945 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26948 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26949 * doc/invoke.texi (Debugging Options): Document new default of
26950 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26952 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26954 PR tree-optimization/90671
26955 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26956 template_block used to be empty on the first call, don't use
26957 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26958 seq with bb_seq and set it with set_bb_seq.
26960 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26962 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26964 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26965 Michael Meissner <meissner@linux.ibm.com>
26967 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26968 (prefixed_mem_operand): Likewise.
26969 (non_prefixed_mem_operand): Likewise.
26970 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26972 * config/rs6000/rs6000.c (print_operand_address): Handle
26973 PC-relative addresses.
26974 (mode_supports_prefixed_address_p): New function.
26975 (rs6000_prefixed_address): New function.
26976 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26977 (SYMBOL_REF_PCREL_P): Likewise.
26979 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26981 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26982 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26983 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26984 is nested inside of parallel region, add _condtemp_ clause to both.
26985 * tree-nested.c (convert_nonlocal_omp_clauses,
26986 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26988 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26990 * omp-general.c (omp_extract_for_data): Compute it.
26991 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26992 (lower_rec_input_clauses): Likewise.
26993 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26994 clause is already present, just add one further one after it.
26995 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26996 (lower_send_shared_vars): Clear _condtemp_ vars.
26997 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26998 or section or taskgroup.
26999 * omp-expand.c (determine_parallel_type): Disallow combining only if
27000 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
27001 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
27002 (expand_omp_for_generic, expand_omp_for_static_nochunk,
27003 expand_omp_for_static_chunk, expand_omp_for): Use
27004 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
27005 determine if a special set of API routines are needed and if condtemp
27006 needs to be initialized, while always initialize cond_var if
27007 fd->lastprivate_conditional is non-zero.
27009 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
27010 Michael Meissner <meissner@linux.ibm.com>
27012 * config/rs6000/constraints.md (eI): New constraint.
27013 * config/rs6000/predicates.md (cint34_operand): New predicate.
27014 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
27015 (SIGNED_34BIT_OFFSET_P): Likewise.
27016 * doc/md.texi (eI): Document constraint.
27018 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
27020 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
27022 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
27023 Michael Meissner <meissner@linux.ibm.com>
27025 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
27026 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
27027 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
27028 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
27029 (OTHER_FUTURE_MASKS): Likewise.
27030 (POWERPC_MASKS): Likewise.
27031 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
27032 specified without -mprefixed-addr or -mcpu=future. Error if
27033 -mprefixed-addr is specified without -mcpu=future.
27034 (rs6000_opt_masks): Add entry for prefixed-addr.
27035 * rs6000.opt (mprefixed-addr): New option.
27037 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
27039 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
27040 cfun->is_thunk check.
27042 2019-05-30 Jakub Jelinek <jakub@redhat.com>
27044 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
27047 2019-05-30 Martin Liska <mliska@suse.cz>
27049 * gdbinit.in: Fix 'ptc' command. Add trt
27050 that prints TREE_TYPE($).
27052 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
27053 Alan Modra <amodra@gmail.com>
27055 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
27057 (rs6000_indirect_call_template_1): ...and here.
27058 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
27059 plt16_ha, plt16_lo, mtctr indirect calls. Use
27060 rs6000_pltseq_enum.
27061 (rs6000_decl_ok_for_sibcall): New function.
27062 (rs6000_function_ok_for_sibcall): Refactor.
27063 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
27064 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
27065 when pcrel. Reorganize.
27066 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
27067 * rs6000.h (rs6000_pltseq_enum): New enum.
27068 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
27069 (*pltseq_tocsave): Use rs6000_pltseq_enum.
27070 (*pltseq_plt16_ha): Likewise.
27071 (*pltseq_plt16_lo): Likewise.
27072 (*pltseq_mtctr): Likewise.
27073 (*pltseq_plt_pcrel): New insn.
27074 (*call_local_aix): Handle @notoc calls.
27075 (*call_value_local_aix): Likewise.
27076 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
27077 (*call_value_nonlocal_aix): Likewise.
27078 (*call_indirect_pcrel): New insn.
27079 (*call_value_indirect_pcrel): Likewise.
27081 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
27083 * config/i386/sse.md (*save_multiple<mode>): Rename from
27084 save_multiple<mode>.
27085 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
27086 (*restore_multiple_and_return<mode>): Rename from
27087 restore_multiple_and_return<mode>.
27088 (*restore_multiple_leave_return<mode>): Rename from
27089 restore_multiple_leave_return<mode>.
27091 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
27093 * config.gcc (rx-*-linux*): New target.
27094 * config/rx/elf.opt: New file.
27095 * config/rx/linux.h: Likewise.
27096 * config/rx/t-linux: Likewise.
27097 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
27099 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
27100 (ASM_APP_OFF): Likewise.
27101 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
27104 2019-05-29 Jan Hubicka <jh@suse.cz>
27106 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
27107 variants are pointer equivalent.
27109 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27111 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
27112 * config/aarch64/aarch64-sve2.md: New file.
27113 (<u>avg<mode>3_floor): New pattern.
27114 (<u>avg<mode>3_ceil): Likewise.
27115 (*<sur>h<addsub><mode>): Likewise.
27116 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
27117 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
27119 2019-05-29 Jakub Jelinek <jakub@redhat.com>
27122 * optc-save-gen.awk: In cl_optimization_print, use correct condition
27123 for var_opt_string printing. In cl_optimization_print_diff, print
27124 (null) instead of invoking undefined behavior if one of the
27125 var_opt_string pointers is NULL and use && instead of first || in the
27126 guarding condition. For var_target_other options, handle const char *
27127 target variables similarly to const char * optimize node variables.
27129 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
27131 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
27132 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
27133 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
27134 Add autib1716 and pacib1716 initialisation.
27135 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
27136 for autib1716 and pacib1716.
27137 * config/aarch64/aarch64-protos.h (aarch64_key_type,
27138 aarch64_post_cfi_startproc): Define.
27139 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
27140 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
27141 aarch64_handle_pac_ret_protection): Set default sign key to A.
27142 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
27143 aarch64_expand_prologue): Add check for b-key.
27144 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
27145 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
27146 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
27147 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
27148 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
27149 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
27150 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27151 * config/aarch64/aarch64.md (do_return): Add check for b-key.
27152 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
27153 pauth_hint_num_a with pauth_hint_num.
27154 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
27155 pauth_hint_num_a with pauth_hint_num.
27156 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
27157 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
27158 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27159 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
27160 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
27161 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
27162 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
27163 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
27164 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
27165 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
27166 UNSPEC_AUTIA1716 respectively.
27167 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
27168 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
27169 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
27170 * doc/invoke.texi (-mbranch-protection): Add b-key type.
27171 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
27172 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
27174 2019-05-29 Jakub Jelinek <jakub@redhat.com>
27176 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
27177 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
27178 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
27179 explicit clause on combined parallel into implicit shared clause.
27180 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
27181 and firstprivate if the decl has one too from combined parallel to
27182 the worksharing construct.
27184 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
27185 Michael Meissner <meissner@linux.ibm.com>
27187 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
27189 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
27191 * rtl.h (LABEL_REF_P): New #define.
27193 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
27195 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
27197 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27199 * internal-fn.c: Marked mask_load_direct as vectorizable.
27200 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
27201 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
27202 combined even if masks different with allow_slp_p param.
27203 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
27204 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
27205 dissolve SLP-only vectorizable groups when SLP has been discarded.
27206 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
27207 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
27209 (vect_build_slp_tree_1): Fixed comment typo.
27210 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
27211 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
27212 loads for SLP only.
27213 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
27215 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
27217 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27219 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
27220 Remove obsolete use_thunk reference.
27221 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27222 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27223 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27224 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27225 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27226 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27227 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27228 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27229 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27231 2019-05-28 Nathan Sidwell <nathan@acm.org>
27233 * tree.h (IDENTIFIER_ANON_P): New.
27234 (anon_aggrname_format, anon_aggname_p): Don't declare.
27235 (make_anon_name): Declare.
27236 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
27237 (hash_tree): Likewise.
27238 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
27239 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
27240 (anon_cnt, make_anon_name): New.
27242 2019-05-28 Martin Liska <mliska@suse.cz>
27245 * opts-global.c (decode_options): Print help for all
27246 help_option_arguments.
27247 * opts.c (print_help): Add new argument.
27248 (common_handle_option): Remember all values into
27249 help_option_arguments.
27250 * opts.h (print_help): Add new argument.
27252 2019-05-28 Martin Liska <mliska@suse.cz>
27255 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
27256 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
27257 (func_checker::compare_bb): Call compare_loops.
27259 2019-05-27 Jakub Jelinek <jakub@redhat.com>
27261 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
27262 on sections construct.
27263 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
27265 (lower_omp_sections): Handle lastprivate conditional.
27266 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
27267 lastprivate_conditional_map.
27268 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
27270 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
27271 critical, taskgroup and section regions when looking for a region
27272 with non-NULL lastprivate_conditional_map.
27274 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
27276 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
27277 (*ix86_gen_sub3): Ditto.
27278 (*ix86_gen_sub3_carry): Ditto.
27279 (*ix86_gen_one_cmpl2): Ditto.
27280 (*ix86_gen_andsp): Ditto.
27281 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
27282 (gen_and2_insn): New static function.
27283 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
27284 Use gen_add3_insn instead of ix86_gen_add3.
27285 (ix86_expand_split_stack_prologue): Use gen_add2_insn
27286 instead of ix86_gen_add3.
27287 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
27288 Use gen_sub3_insn instead of ix86_gen_sub3.
27289 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
27290 instead of ix86_gen_add3.
27291 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
27292 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
27293 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
27294 * config/i386/i386-options.c (ix86_option_override_internal):
27295 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
27296 ix86_gen_one_cmpl2 and ix86_gen_andsp.
27298 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
27300 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
27301 and DW_OP_GNU_const_index opcodes.
27303 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
27305 * config/i386/i386.h (STACK_SIZE_MODE): Define.
27307 2019-05-27 Richard Biener <rguenther@suse.de>
27309 PR tree-optimization/90637
27310 * tree-ssa-sink.c (statement_sink_location): Honor the
27311 computed sink location for single-uses.
27313 2019-05-27 Richard Biener <rguenther@suse.de>
27315 PR middle-end/90610
27316 * match.pd (vec_perm): Avoid clobbering op0 when not generating
27319 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
27321 * config/i386/i386.md (@sub<mode>3_carry): Rename
27322 from sub<mode>3_carry.
27323 (@leave_<mode>): New expander.
27324 (*leave): Rename from leave.
27325 (*leave_rex64): Rename from leave_rex64.
27326 (@monitorx_<mode>): Rename from monitorx_<mode>.
27327 (@clzero_<mode>): Rename from clzero_<mode>.
27328 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
27329 from sse3_monitor_<mode>.
27330 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
27331 (*ix86_gen_leave): Ditto.
27332 (*ix86_gen_monitor): Ditto.
27333 (*ix86_gen_monitorx): Ditto.
27334 (*ix86_gen_clzero): Ditto.
27335 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
27336 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
27337 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
27338 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
27339 Use gen_sse3_monitor instead of ix86_gen_monitor.
27340 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
27341 instead of ix86_gen_monitorx.
27342 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
27343 instead of ix86_gen_clzero.
27344 * config/i386/i386-options.c (ix86_option_override_internal):
27345 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
27346 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
27348 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
27350 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
27351 Rename from tls_global_dynamic_64_<mode>.
27352 (@tls_local_dynamic_base_64_<mode>): Rename from
27353 tls_local_dynamic_base_64_<mode>.
27354 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
27355 Remove indirect function.
27356 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
27357 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
27358 instead of ix86_gen_tls_global_dynamic_64.
27359 Use gen_tls_local_dynamic_base_64 instead of
27360 ix86_gen_tls_local_dynamic_base_64.
27361 * config/i386/i386-options.c (ix86_option_override_internal):
27362 Do not initialize ix86_gen_tls_global_dynamic_64 and
27363 ix86_gen_tls_local_dynamic_base_64.
27365 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
27367 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
27368 Rename from pro_epilogue_adjust_stack_<mode>_add.
27369 (@pro_epilogue_adjust_stack_sub_<mode>)
27370 Rename from pro_epilogue_adjust_stack_<mode>_sub.
27371 (@allocate_stack_worker_probe_<mode>):
27372 Rename from allocate_stack_worker_probe_<mode>.
27373 (allocate_stack): Use gen_allocate_stack_worker_probe.
27374 (probe_stack): Use gen_probe_stack_1.
27375 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
27376 (@adjust_stack_and_probe_<mode>): Rename from
27377 adjust_stack_and_probe<mode>.
27378 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
27379 (stack_protect_set): Use gen_stack_protect_set_1.
27380 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
27381 (stack_protect_test): Use gen_stack_protect_test_1.
27382 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
27383 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
27384 Remove indirect function.
27385 (*ix86_gen_adjust_stack_and_probe): Ditto.
27386 (*ix86_gen_probe_stack_range): Ditto.
27387 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
27388 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
27389 (ix86_adjust_stack_and_probe_stack_clash): Use
27390 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
27391 (ix86_adjust_stack_and_probe): Ditto.
27392 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
27393 of ix86_gen_probe_stack_range.
27394 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
27395 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
27396 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
27397 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
27398 CODE_FOR_stack_protect_test_{si,di}.
27399 * config/i386/i386-options.c (ix86_option_override_internal):
27400 Do not initialize ix86_gen_allocate_stack_worker,
27401 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
27403 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
27405 * doc/invoke.texi (Link Options): Many editorial changes around
27408 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27410 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
27411 pre-Solaris 11 referene and most Studio compiler details.
27413 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
27416 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
27417 DImode to SImode in floating-point registers on 64-bit target.
27418 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
27419 register_operand in xmpyu patterns.
27421 2019-05-24 Jakub Jelinek <jakub@redhat.com>
27423 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
27424 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
27425 OMP_CLAUSE__REDUCTEMP_.
27426 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
27427 OMP_CLAUSE__CONDTEMP_.
27428 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
27429 * tree-pretty-print.c (dump_omp_clause): Likewise.
27430 * tree-nested.c (convert_nonlocal_omp_clauses,
27431 convert_local_omp_clauses): Likewise.
27432 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
27433 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
27434 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
27436 (gimplify_omp_for): Warn and disable conditional modifier from
27437 lastprivate on loop iterators.
27438 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
27440 * omp-general.c (omp_extract_for_data): Initialize it.
27441 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
27443 (delete_omp_context): Delete it.
27444 (lower_lastprivate_conditional_clauses): New function.
27445 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
27446 handle lastprivate conditional clauses.
27447 (lower_reduction_clauses): Add CLIST argument, emit it into
27448 the critical section if any.
27449 (lower_omp_sections): Adjust lower_lastprivate_clauses and
27450 lower_reduction_clauses callers.
27451 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
27452 to lower_lastprivate_clauses.
27453 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
27454 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
27455 clist into a critical section if not emitted there already by
27456 lower_reduction_clauses.
27457 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
27459 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
27460 conditional variables.
27461 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
27463 (expand_omp_for_generic, expand_omp_for_static_nochunk,
27464 expand_omp_for_static_chunk): Handle lastprivate conditional.
27465 (expand_omp_for): Handle fd.lastprivate_conditional like
27468 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
27470 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
27471 kernel does not exit cleanly.
27472 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
27474 2019-05-24 Jason Merrill <jason@redhat.com>
27477 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27479 2019-05-24 Richard Biener <rguenther@suse.de>
27482 * tree-loop-distribution.c (struct partition): Add location
27484 (partition_alloc): Initialize all fields.
27485 (generate_memset_builtin): Use the location recorded in the
27486 partition for the generated call.
27487 (generate_memcpy_builtin): Likewise.
27488 (classify_partition): Record the location of a single store
27489 as location for the partition.
27491 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
27493 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
27496 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
27499 * common/config/aarch64/aarch64-common.c
27500 (aarch64_rewrite_selected_cpu): Change local temporary variable
27501 type from unsigned long to uint64_t.
27502 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
27503 aarch64_get_extension_string_for_isa_flags): Change declaration to
27504 match new definition by replacing unsigned long with uint64_t.
27506 2019-05-24 Jakub Jelinek <jakub@redhat.com>
27509 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
27510 gen_attr_type just once instead of 4-7 times. Formatting fixes.
27511 Handle stack_protect_test_<mode> codegen similarly to corresponding
27514 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
27516 * config/i386/darwin.h: Reject -mfentry*.
27517 * doc/sourcebuild.texi: Document mfentry target support.
27519 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
27521 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
27522 Rename to rs6000_global_entry_point_prologue_needed_p. Return
27523 false for PC-relative functions.
27524 (rs6000_output_function_prologue): Change called function name to
27525 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
27526 name,1" for PC-relative functions.
27527 (rs6000_elf_declare_function_name): Change called function name to
27528 rs6000_global_entry_point_prologue_needed_p.
27530 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
27533 * config/i386/i386.c (gen_rtx_cost):
27534 Use ix86_tune_cost instead of ix86_cost.
27536 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
27537 Michael Meissner <meissner@linux.ibm.com>
27538 Segher Boessenkool <segher@kernel.crashing.org>
27540 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
27542 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
27543 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
27544 (rs6000_fndecl_pcrel_p): Likewise.
27545 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
27546 error if -mpcrel is requested without -mcpu=future.
27547 (rs6000_opt_masks): Add entry for pcrel.
27548 (rs6000_fndecl_pcrel_p): New function.
27549 (rs6000_pcrel_p): Likewise.
27550 * config/rs6000/rs6000.opt (mpcrel): New option.
27551 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
27553 2019-05-23 Jan Hubicka <jh@suse.cz>
27554 Martin Liska <mliska@suse.cz>
27556 PR tree-optimization/90576
27557 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
27559 (aliasing_component_refs_p): Fix three way size compare conditional;
27560 give up earlier in case we can not decide on equivalence.
27562 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
27563 Michael Meissner <meissner@linux.ibm.com>
27564 Segher Boessenkool <segher@kernel.crashing.org>
27566 * config.gcc: Add future cpu.
27567 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
27568 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
27570 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
27571 (RS6000_CPU): New instantiation for future cpu.
27572 * config/rs6000/rs6000-opts.h (enum processor_type): Add
27574 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
27575 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
27576 * config/rs6000/rs6000-tables.opt: Regenerate.
27577 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
27578 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
27579 (rs6000_machine_from_flags): Handle future cpu.
27580 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
27581 PROCESSOR_POWER9 for now.
27582 (rs6000_adjust_cost): Likewise.
27583 (rs6000_issue_rate): Likewise.
27584 (rs6000_register_move_cost): Likewise.
27585 (rs6000_opt_masks): Add entry for future.
27586 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
27587 (MASK_FUTURE): New #define.
27588 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
27589 * config/rs6000/rs6000.opt (mfuture): New target option.
27590 * doc/invoke.texi (mcpu): Add future cpu.
27592 2019-05-23 Martin Liska <mliska@suse.cz>
27595 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
27596 operation points to a temporary (pointed via tree_to_wide_ref)
27597 that is out of scope after the &.
27599 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
27602 * doc/extend.texi (Function Names): Add missing word.
27604 2019-05-23 Richard Biener <rguenther@suse.de>
27606 PR tree-optimization/88440
27607 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
27609 * tree-loop-distribution.c (generate_memset_builtin): Fold the
27611 (generate_memcpy_builtin): Likewise.
27612 (distribute_loop): Pass in whether to only distribute patterns.
27613 (prepare_perfect_loop_nest): Also allow size optimization.
27614 (pass_loop_distribution::execute): When optimizing a loop
27615 nest for size allow pattern replacement.
27617 2019-05-23 Jakub Jelinek <jakub@redhat.com>
27620 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
27623 2019-05-23 Martin Liska <mliska@suse.cz>
27626 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
27627 expression similarly to gimplify_decl_expr.
27629 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27631 * cse.c (cse_dump_path): s/dump_file/f.
27633 2019-05-22 David Malcolm <dmalcolm@redhat.com>
27636 * diagnostic-format-json.cc: Include "selftest.h".
27637 (json_from_expanded_location): Only add "file" key for non-NULL
27639 (json_from_location_range): Don't add "start" and "finish"
27640 children if they are UNKNOWN_LOCATION.
27641 (selftest::test_unknown_location): New selftest.
27642 (selftest::test_bad_endpoints): New selftest.
27643 (selftest::diagnostic_format_json_cc_tests): New function.
27644 * json.cc (json::object::get): New function.
27645 (selftest::test_object_get): New selftest.
27646 (selftest::json_cc_tests): Call it.
27647 * json.h (json::object::get): New decl.
27648 * selftest-run-tests.c (selftest::run_tests): Call
27649 selftest::diagnostic_format_json_cc_tests.
27650 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
27653 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
27654 Andrew Stubbs <amd@codesourcery.com>
27656 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
27657 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
27658 (kernel): Rename to...
27659 (main_kernel): ... this.
27660 (load_image): Load _init_array and _fini_array kernels.
27661 (run): Add argument for kernel to run.
27662 (main): Run init_array_kernel before main_kernel, and
27663 fini_array_kernel after.
27664 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
27665 amdgpu_hsa_kernel attribute on functions.
27666 (gcn_disable_constructors): Delete.
27667 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
27668 * config/gcn/crt0.c (size_t): Define.
27669 (_init_array, _fini_array): New.
27670 (__preinit_array_start, __preinit_array_end,
27671 __init_array_start, __init_array_end,
27672 __fini_array_start, __fini_array_end): Declare weak references.
27674 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
27676 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
27678 2019-05-22 Jason Merrill <jason@redhat.com>
27680 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
27682 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
27685 * config/i386/i386-options.c (ix86_init_machine_status): Set
27686 stack_frame_required to true.
27687 * config/i386/i386.c (ix86_get_frame_size): New function.
27688 (ix86_frame_pointer_required): Replace get_frame_size with
27689 ix86_get_frame_size.
27690 (ix86_compute_frame_layout): Likewise.
27691 (ix86_find_max_used_stack_alignment): Changed to void. Set
27692 stack_frame_required.
27693 (ix86_finalize_stack_frame_flags): Always call
27694 ix86_find_max_used_stack_alignment. Replace get_frame_size with
27695 ix86_get_frame_size.
27696 * config/i386/i386.h (machine_function): Add stack_frame_required.
27698 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
27700 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
27702 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
27704 * common/config/aarch64/aarch64-common.c
27705 (struct aarch64_option_extension, struct processor_name_to_arch,
27706 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
27707 aarch64_contains_opt,
27708 aarch64_get_extension_string_for_isa_flags): Change type of
27709 variables storing flags to uint64_t.
27710 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
27711 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
27712 * config/aarch64/aarch64.c (struct processor,
27713 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
27714 aarch64_validate_march, aarch64_override_options,
27715 aarch64_option_print, aarch64_handle_attr_isa_flags,
27716 aarch64_declare_function_name, aarch64_start_file): Make flag
27717 variables uint64_t.
27718 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
27719 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
27720 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
27721 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
27722 * config/aarch64/driver-aarch64.c
27723 (struct aarch64_arch_extension, struct aarch64_core_data,
27724 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
27725 flag variables uint64_t.
27726 * doc/invoke.texi: Add documentation for new arguments.
27728 2019-05-22 Richard Biener <rguenther@suse.de>
27730 * alias.c (ao_ref_from_mem): Move stack-slot sharing
27732 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
27734 2019-05-22 Martin Liska <mliska@suse.cz>
27737 * doc/extend.texi: Document the change.
27739 2019-05-22 Richard Biener <rguenther@suse.de>
27741 PR tree-optimization/90450
27742 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
27743 (mem_ref_hasher::equal): Check it.
27744 (mem_ref_alloc): Initialize it.
27745 (gather_mem_refs_stmt): Set it.
27747 2019-05-22 Richard Biener <rguenther@suse.de>
27749 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
27751 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
27754 2019-05-22 Alan Modra <amodra@gmail.com>
27756 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
27757 (ASM_CPU_SPEC): Conditionally add -many.
27758 * config/rs6000/rs6000.c (rs6000_machine): New static var.
27759 (rs6000_machine_from_flags, emit_asm_machine): New functions..
27760 (rs6000_file_start): ..extracted from here, and modified to
27762 (rs6000_output_function_prologue): Emit .machine as necessary.
27764 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
27766 PR middle-end/90553
27767 * ira-lives.c (process_bb_node_lives): Consider defs
27768 for a call insn to be die before the call, not after.
27770 * function.c (assign_parm_setup_block): Raise alignment of
27771 stacked parameter only for STRICT_ALIGNMENT targets.
27773 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27775 * config/rs6000/constraints.md (define_register_constraint "wz"):
27777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27778 RS6000_CONSTRAINT_wz.
27779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27780 (rs6000_init_hard_regno_mode_ok): Adjust.
27781 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
27782 * doc/md.texi (Machine Constraints): Adjust.
27784 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27786 * config/rs6000/constraints.md (define_register_constraint "wl"):
27788 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27789 RS6000_CONSTRAINT_wl.
27790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27791 (rs6000_init_hard_regno_mode_ok): Adjust.
27792 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
27793 * doc/md.texi (Machine Constraints): Adjust.
27795 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27797 * config/rs6000/constraints.md (define_register_constraint "wm"):
27799 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27800 RS6000_CONSTRAINT_wm.
27801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27802 (rs6000_init_hard_regno_mode_ok): Adjust.
27803 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
27804 * doc/md.texi (Machine Constraints): Adjust.
27806 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27808 * config/rs6000/constraints.md (define_register_constraint "wk"):
27810 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27811 RS6000_CONSTRAINT_wk.
27812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27813 (rs6000_init_hard_regno_mode_ok): Adjust.
27814 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
27815 * doc/md.texi (Machine Constraints): Adjust.
27817 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27819 * config/rs6000/constraints.md (define_register_constraint "wj"):
27821 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27822 RS6000_CONSTRAINT_wj.
27823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27824 (rs6000_init_hard_regno_mode_ok): Adjust.
27825 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
27827 * config/rs6000/vsx.md: Ditto.
27828 * doc/md.texi (Machine Constraints): Adjust.
27830 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
27832 * config/rs6000/constraints.md (define_register_constraint "wh"):
27834 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27835 RS6000_CONSTRAINT_wh.
27836 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27837 (rs6000_init_hard_regno_mode_ok): Adjust.
27838 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
27839 * doc/md.texi (Machine Constraints): Adjust.
27841 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27844 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27845 Avoid calling gen_lowpart with CONST operand.
27847 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
27849 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
27850 field template_last_to_copy.
27851 (ssa_create_duplicates): Set it, and use it. Attempt to
27852 preserve more debug stmts.
27854 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27856 * config/i386/sse.md (VF1_AVX2): New mode iterator.
27857 (signbit<mode>2): New expander
27859 2019-05-21 James Clarke <jrtc27@jrtc27.com>
27862 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
27863 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
27865 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
27867 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27868 %ebx and %ecx bafore calling cpuid with leaf 1 or
27869 non-constant leaf argument.
27871 2019-05-21 Alan Modra <amodra@gmail.com>
27874 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27875 power9 direct move cost.
27877 2019-05-21 Richard Biener <rguenther@suse.de>
27879 PR middle-end/90510
27880 * fold-const.c (fold_read_from_vector): New function.
27881 * fold-const.h (fold_read_from_vector): Declare.
27882 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27883 single-element insert permutations. Canonicalize selector
27884 further and fix issue with last commit.
27886 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27888 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27889 parameter with default value false to declaration.
27890 (split_edges_for_insertion): New inline function. Wrapper for
27891 split_critical_edges with for_edge_insertion_p = true.
27892 * tree-cfg.c (split_critical_edges): Don't split non-critical
27893 edges if for_edge_insertion_p is false. Fix whitespace.
27894 * tree-ssa-pre.c (pass_pre::execute): Call
27895 split_edges_for_insertion instead of split_critical_edges.
27896 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27897 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27898 (pass_data_sink_code): Update function name in the comment.
27900 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27902 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27903 around is_value_included_in that knows how to handle BIT_AND_EXPR.
27904 (is_pred_expr_subset_of): Use the new function. Handle more cases where
27905 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27908 2019-05-21 Martin Liska <mliska@suse.cz>
27910 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27912 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27913 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27915 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27917 (rs6000_function_arg): Likewise.
27918 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27919 (rs6000_expand_ternop_builtin): Use interval syntax.
27920 (get_element_number): Likewise.
27921 (altivec_expand_builtin): Likewise.
27922 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27924 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27928 * function.h (struct function): Add calls_eh_return member.
27929 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27930 gimplifying __builtin_eh_return call.
27931 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27933 (expand_call_inline): Or in src_cfun->calls_eh_return into
27934 dst_cfun->calls_eh_return.
27935 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27936 cfun->calls_eh_return.
27937 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27938 * lto-streamer-out.c (output_struct_function_base): Write
27941 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27943 PR rtl-optimization/43147
27944 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27945 IX86_BUILTIN_SHUFPD.
27947 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27949 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27950 (refs_may_alias_p_1): ... here; update stats.
27951 (refs_may_alias_p): Do not update stats here.
27953 2019-05-20 Richard Biener <rguenther@suse.de>
27955 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27956 doesn't produce pointers.
27957 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27958 the first operand points to.
27960 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27962 * tree-ssa-alias.c (compare_sizes): New function.
27963 (sompare_type_sizes): New function
27964 (aliasing_component_refs_p): Use it.
27965 (indirect_ref_may_alias_decl_p): Likewise.
27967 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27969 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27971 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27973 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27974 (LIBLSAN_EARLY_SPEC): Likewise.
27975 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27977 2019-05-20 Martin Liska <mliska@suse.cz>
27979 * config/i386/i386.c (ix86_libc_has_fast_function):
27980 Add ATTRIBUTE_UNUSED for the argument.
27982 2019-05-20 Richard Biener <rguenther@suse.de>
27984 * gimple-match-head.c: Include vec-perm-indices.h.
27985 * generic-match-head.c: Likewise.
27986 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27988 * fold-const.c (fold_vec_perm): Export.
27989 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27990 (match.pd): ...here.
27992 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27994 * cfgloop.h (struct loop): Add simdlen member.
27995 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27996 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27997 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27998 as new argument to autovectorize_vector_sizes target hook. If
27999 loop->simdlen, pick up vector size where the vectorization factor
28000 is equal to loop->simd, and if there is none, fall back to the first
28002 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
28004 * omp-low.c (omp_clause_aligned_alignment): Likewise.
28005 * omp-general.c (omp_max_vf): Likewise.
28006 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
28007 * tree-vect-slp.c (vect_slp_bb): Likewise.
28008 * target.def (autovectorize_vector_sizes): Add ALL argument and
28010 * doc/tm.texi: Adjust documentation.
28011 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
28012 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
28013 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
28015 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
28016 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
28017 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
28018 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
28019 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
28020 preferred vector size is not 512-bit or 256-bit, just put those
28021 unpreferred ones last.
28023 2019-05-20 Martin Liska <mliska@suse.cz>
28025 * targhooks.c (default_libc_has_fast_function): New function.
28026 * targhooks.h (default_libc_has_fast_function): Likewise.
28028 2019-05-20 Martin Liska <mliska@suse.cz>
28030 PR middle-end/90263
28031 * builtins.c (expand_builtin_memory_copy_args): When having a
28032 target with fast mempcpy implementation do now use memcpy.
28033 * config/i386/i386.c (ix86_libc_has_fast_function): New.
28034 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
28035 * doc/tm.texi: Likewise.
28036 * doc/tm.texi.in: Likewise.
28038 * expr.c (emit_block_move_hints): Add 2 new arguments.
28039 * expr.h (emit_block_move_hints): Bail out when libcall
28040 to memcpy would be used.
28042 2019-05-20 Martin Liska <mliska@suse.cz>
28044 * profile-count.c: Add vertical spacing in order
28045 to separate functions.
28046 * profile-count.h: Likewise.
28048 2019-05-20 Martin Liska <mliska@suse.cz>
28050 * profile-count.h: Do not use full qualified
28052 * profile-count.c (profile_count::to_frequency): Likewise.
28054 2019-05-20 Martin Liska <mliska@suse.cz>
28056 * profile-count.h (enum profile_quality): Use capital letters
28057 for enum value names. Use the adjusted names.
28058 * profile-count.c: Use the adjusted names.
28060 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
28062 * config/rs6000/constraints.md (define_register_constraint "wH"):
28064 (define_register_constraint "wI"): Delete.
28065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28066 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
28067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28068 (rs6000_init_hard_regno_mode_ok): Adjust.
28069 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
28070 resp. "d", or with "wa" as appropriate, all with "p8v".
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 "wy"):
28078 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28079 RS6000_CONSTRAINT_wy.
28080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28081 (rs6000_init_hard_regno_mode_ok): Adjust.
28082 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
28083 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
28084 (define_mode_attr Fisa): New.
28085 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
28086 * doc/md.texi (Machine Constraints): Adjust.
28088 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
28090 * config/rs6000/constraints.md (define_register_constraint "wu"):
28092 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28093 RS6000_CONSTRAINT_wu.
28094 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28095 (rs6000_init_hard_regno_mode_ok): Adjust.
28096 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
28098 (define_mode_attr Fa): Delete.
28099 * config/rs6000/vsx.md: Ditto.
28100 * doc/md.texi (Machine Constraints): Adjust.
28102 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
28104 * config/rs6000/constraints.md (define_register_constraint "wJ"):
28106 (define_register_constraint "wK"): Delete.
28107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28108 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
28109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28110 (rs6000_init_hard_regno_mode_ok): Adjust.
28111 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
28112 Replace "wK" constraint by "wH" with "p9v".
28113 * config/rs6000/vsx.md: Ditto.
28114 * doc/md.texi (Machine Constraints): Adjust.
28116 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
28118 * config/rs6000/constraints.md (define_register_constraint "wb"):
28120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28121 RS6000_CONSTRAINT_wb.
28122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28123 (rs6000_init_hard_regno_mode_ok): Adjust.
28124 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
28125 * config/rs6000/vsx.md: Ditto.
28126 * doc/md.texi (Machine Constraints): Adjust.
28128 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
28130 * config/rs6000/constraints.md (define_register_constraint "wo"):
28132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
28133 RS6000_CONSTRAINT_wo.
28134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
28135 (rs6000_init_hard_regno_mode_ok): Adjust.
28136 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
28137 * config/rs6000/altivec.md: Ditto.
28138 * doc/md.texi (Machine Constraints): Adjust.
28140 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
28142 * config/darwin-c.c (darwin_register_objc_includes): Do not
28143 prepend the sysroot when building gnu-runtime header search
28146 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
28148 * config/darwin.c (darwin_file_end): Use switch_to_section ()
28149 instead of direct output of the asm.
28151 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
28153 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
28154 argument to be type bool (was int before).
28155 (rs6000_emit_epilogue): Simplify some code. Declare some variables
28156 at first use. Use type bool for some variables. Fix a theoretical
28157 eh_return bug for svr4.
28159 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
28161 * config/rs6000/rs6000.md (isa): New attribute.
28162 (enabled): New attribute.
28164 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
28166 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
28167 assemble_start_function and assemble_end_function.
28169 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
28171 PR middle-end/89433
28172 * omp-general.c (oacc_verify_routine_clauses): Change formal
28173 parameters. Add checking if already marked with an OpenACC
28174 'routine' directive. Adjust all users.
28176 PR middle-end/89433
28177 * omp-general.c (oacc_build_routine_dims): Move some of its
28179 (oacc_verify_routine_clauses): ... this new function.
28180 * omp-general.h (oacc_verify_routine_clauses): New prototype.
28182 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
28184 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
28185 formating of picbase labels to match other ports.
28187 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
28189 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
28190 in the generated code.
28192 2019-05-16 Martin Sebor <msebor@redhat.com>
28194 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
28195 identifiers, keywords, operators, and types in diagnostics. Correct
28196 quoting, spelling, and sentence capitalization issues.
28197 (expand_builtin_atomic_is_lock_free): Same.
28198 (fold_builtin_next_arg): Same.
28199 * cfgexpand.c (expand_one_var): Same.
28200 (tree_conflicts_with_clobbers_p): Same.
28201 (expand_asm_stmt): Same.
28202 (verify_loop_structure): Same.
28203 * cgraphunit.c (process_function_and_variable_attributes): Same.
28204 * collect-utils.c (collect_execute): Same.
28205 * collect2.c (maybe_run_lto_and_relink): Same.
28206 (is_lto_object_file): Same.
28207 (scan_prog_file): Same.
28208 * convert.c (convert_to_real_1): Same.
28209 * dwarf2out.c (dwarf2out_begin_prologue): Same.
28210 * except.c (verify_eh_tree): Same.
28211 * gcc.c (execute): Same.
28212 (eval_spec_function): Same.
28213 (run_attempt): Same.
28214 (driver::set_up_specs): Same.
28215 (compare_debug_auxbase_opt_spec_function): Same.
28216 * gcov-tool.c (unlink_gcda_file): Same.
28218 (do_rewrite): Same.
28219 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
28220 * gimplify.c (gimplify_asm_expr): Same.
28221 (gimplify_adjust_omp_clauses): Same.
28222 * hsa-gen.c (gen_hsa_addr_insns): Same.
28223 (gen_hsa_insns_for_load): Same.
28224 (gen_hsa_cmp_insn_from_gimple): Same.
28225 (gen_hsa_insns_for_operation_assignment): Same.
28226 (gen_get_level): Same.
28227 (gen_hsa_alloca): Same.
28228 (omp_simple_builtin::generate): Same.
28229 (gen_hsa_atomic_for_builtin): Same.
28230 (gen_hsa_insns_for_call): Same.
28231 * input.c (dump_location_info): Same.
28232 * ipa-devirt.c (compare_virtual_tables): Same.
28233 * ira.c (ira_setup_eliminable_regset): Same.
28234 * lra-assigns.c (lra_assign): Same.
28235 * lra-constraints.c (lra_constraints): Same.
28236 * lto-streamer-in.c (lto_input_mode_table): Same.
28237 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
28238 (merge_and_complain): Same.
28239 (compile_offload_image): Same.
28240 (compile_images_for_offload_targets): Same.
28241 (debug_objcopy): Same.
28244 * opts.c (print_specific_help): Same.
28245 (parse_no_sanitize_attribute): Same.
28246 (print_help): Same.
28247 (handle_param): Same.
28248 * plugin.c (add_new_plugin): Same.
28249 (parse_plugin_arg_opt): Same.
28250 (try_init_one_plugin): Same.
28251 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
28252 operators, and types in diagnostics. Correct quoting and spelling
28254 * read-rtl-function.c (parse_edge_flag_token): Same.
28255 (function_reader::parse_enum_value): Same.
28256 * reg-stack.c (check_asm_stack_operands): Same.
28257 * regcprop.c (validate_value_data): Same.
28258 * sched-rgn.c (make_pass_sched_fusion): Same.
28259 * stmt.c (check_unique_operand_names): Same.
28260 * targhooks.c (default_target_option_pragma_parse): Same.
28261 * tlink.c (recompile_files): Same.
28262 * toplev.c (process_options): Same.
28263 (do_compile): Same.
28264 * trans-mem.c (diagnose_tm_1): Same.
28265 (ipa_tm_scan_irr_block): Same.
28266 (ipa_tm_diagnose_transaction): Same.
28267 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
28268 format a tree code name in a diagnostic.
28269 (verify_types_in_gimple_min_lval): Same.
28270 (verify_types_in_gimple_reference): Same.
28271 (verify_gimple_call): Same.
28272 (verify_gimple_assign_unary): Same.
28273 (verify_gimple_assign_binary): Same.
28274 (verify_gimple_assign_ternary): Same.
28275 (verify_gimple_assign_single): Same.
28276 (verify_gimple_switch): Same.
28277 (verify_gimple_label): Same.
28278 (verify_gimple_phi): Same.
28279 (verify_gimple_in_seq): Same.
28280 (verify_eh_throw_stmt_node): Same.
28281 (collect_subblocks): Same.
28282 (gimple_verify_flow_info): Same.
28283 (do_warn_unused_result): Same.
28284 * tree-inline.c (expand_call_inline): Same.
28285 * tree-into-ssa.c (update_ssa): Same.
28286 * tree.c (tree_int_cst_elt_check_failed): Same.
28287 (tree_vec_elt_check_failed): Same.
28288 (omp_clause_operand_check_failed): Same.
28289 (verify_type_variant): Same.
28290 (verify_type): Same.
28291 * value-prof.c (verify_histograms): Same.
28292 * varasm.c (assemble_start_function): Same.
28294 2019-05-16 Martin Sebor <msebor@redhat.com>
28296 * config/i386/i386-expand.c (get_element_number): Quote keywords
28297 and other internal names in diagnostics. Adjust other diagnostic
28298 formatting issues noted by -Wformat-diag.
28299 * config/i386/i386-features.c
28300 (ix86_mangle_function_version_assembler_name): Same.
28301 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
28302 * config/i386/i386.c (ix86_function_type_abi): Same.
28303 (ix86_function_ms_hook_prologue): Same.
28304 (classify_argument): Same.
28305 (ix86_expand_prologue): Same.
28306 (ix86_md_asm_adjust): Same.
28307 (ix86_memmodel_check): Same.
28309 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
28311 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
28312 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
28315 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
28318 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
28319 intrinsics without SSE/SSE2/SSSE3.
28320 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
28322 (*mmx_uavgv8qi3): Likewise.
28324 2019-05-17 Richard Biener <rguenther@suse.de>
28326 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
28327 VEC_PERM_EXPR as __VEC_PERM with -gimple.
28329 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
28331 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
28332 vec_sldw insn pattern.
28334 2019-05-17 Richard Biener <rguenther@suse.de>
28336 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
28338 2019-05-17 Martin Liska <mliska@suse.cz>
28341 * toplev.c (output_stack_usage): With LTO and sanitizer it
28342 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
28343 has no file location.
28345 2019-05-16 Jakub Jelinek <jakub@redhat.com>
28348 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
28349 sz0 is equal to sz1, instead return false in that case.
28351 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
28352 has non-constant expression, force sctx.lane and use two
28353 argument IFN_GOMP_SIMD_LANE instead of single argument.
28354 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
28355 two argument IFN_GOMP_SIMD_LANE without lhs.
28356 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
28358 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
28360 (LOOP_REQUIRES_VERSIONING): Or in
28361 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
28362 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
28364 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
28365 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
28366 from simd if clause if needed.
28368 2019-05-16 Richard Biener <rguenther@suse.de>
28370 * tree-affine.c (expr_to_aff_combination): New function split
28372 (tree_to_aff_combination): ... here.
28373 (aff_combination_expand): Avoid building a GENERIC tree.
28375 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
28377 * cgraphunit.c (cgraph_node::expand_thunk): Remove
28378 assemble_start_function and assemble_end_function calls.
28379 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
28380 assemble_start_function and assemble_end_function.
28381 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
28382 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
28383 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
28384 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
28385 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
28386 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
28387 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
28388 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
28389 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
28390 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
28391 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
28392 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
28394 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
28395 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
28396 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
28397 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
28398 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
28399 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
28400 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
28401 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
28402 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
28403 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
28404 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
28405 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
28406 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
28407 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
28409 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
28410 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
28411 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
28413 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
28415 * tree-ssa-alias.c (alias_stats): Add
28416 aliasing_component_refs_p_may_alias and
28417 aliasing_component_refs_p_no_alias.
28418 (dump_alias_stats): Print aliasing_component_refs_p stats.
28419 (aliasing_component_refs_p): Update stats.
28421 2019-05-16 Martin Liska <mliska@suse.cz>
28424 * multiple_target.c (expand_target_clones): Do not allow
28425 target_clones being used with a symbol that is an alias.
28427 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
28429 PR tree-optimization/90394
28430 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
28431 positives rather than ICE for cases where (code2 == NE_EXPR
28432 && code1 == BIT_AND_EXPR).
28434 2019-05-16 Jakub Jelinek <jakub@redhat.com>
28437 * tree-core.h (struct tree_decl_common): Document
28438 decl_nonshareable_flag for PARM_DECLs.
28439 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
28440 * calls.c (expand_call): Don't try tail call if caller
28441 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
28442 passed on the stack and callee needs to pass any arguments on the
28444 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28445 else if instead of series of mutually exclusive ifs. Handle
28446 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
28447 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
28449 * lto-streamer.h (LTO_major_version): Bump to 9.
28451 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
28453 PR tree-optimization/90106
28454 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
28455 new parameter as new internal function call, also move it to new
28457 (use_internal_fn): Pass internal function call to
28458 shrink_wrap_one_built_in_call_with_conds.
28460 2019-05-15 Jakub Jelinek <jakub@redhat.com>
28462 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
28464 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
28465 safelen_int and set loop->dont_vectorize.
28467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28470 * config/i386/i386-builtin.def: Enable MMX intrinsics with
28472 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
28474 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
28475 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
28476 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
28479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28482 * config/i386/mmx.md (*vec_dupv2sf): Changed to
28483 define_insn_and_split to support SSE emulation.
28484 (*vec_extractv2sf_0): Likewise.
28485 (*vec_extractv2sf_1): Likewise.
28486 (*vec_extractv2si_0): Likewise.
28487 (*vec_extractv2si_1): Likewise.
28488 (*vec_extractv2si_zext_mem): Likewise.
28489 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
28490 (vec_extractv2sf_1 splitter): Likewise.
28491 (vec_extractv2sfsf): Likewise.
28492 (vec_setv2si): Likewise.
28493 (vec_extractv2si_1 splitter): Likewise.
28494 (vec_extractv2sisi): Likewise.
28495 (vec_setv4hi): Likewise.
28496 (vec_extractv4hihi): Likewise.
28497 (vec_setv8qi): Likewise.
28498 (vec_extractv8qiqi): Likewise.
28499 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
28500 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
28501 (vec_extractv2sisi): Likewise.
28502 (vec_extractv4hihi): Likewise.
28503 (vec_extractv8qiqi): Likewise.
28504 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
28505 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
28506 (vec_initv2sisi): Likewise.
28507 (vec_initv4hihi): Likewise.
28508 (vec_initv8qiqi): Likewise.
28509 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
28510 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
28511 (vec_setv4hi): Likewise.
28512 (vec_setv8qi): Likewise.
28514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28517 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
28518 TARGET_MMX_WITH_SSE.
28519 (MMXMODE:*mov<mode>_internal): Likewise.
28520 (MMXMODE:movmisalign<mode>): Likewise.
28522 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
28525 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
28526 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
28527 (sse2_cvtpd2pi): Ditto.
28528 (sse2_cvttpd2pi): Ditto.
28529 (*vec_concatv2sf_sse4_1): Ditto.
28530 (*vec_concatv2sf_sse): Ditto.
28531 (*vec_concatv2si_sse4_1): Ditto.
28532 (*vec_concatv2si): Ditto.
28533 (*vec_concatv4si_0): Ditto.
28534 (*vec_concatv2di_0): Ditto.
28536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28539 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
28541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28544 * config/i386/sse.md (ssse3_palignrdi): Changed to
28545 define_insn_and_split to support SSE emulation.
28547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28550 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
28552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28555 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
28556 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
28559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28562 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
28563 or TARGET_MMX_WITH_SSE.
28564 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
28566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28569 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
28571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28574 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
28575 Changed to define_insn_and_split to support SSE emulation.
28577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28580 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
28581 Changed to define_insn_and_split to support SSE emulation.
28583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28586 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
28587 (*mmx_<emms>): This.
28588 (mmx_<emms>): New expander.
28590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28593 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
28595 (*sse2_umulv1siv1di3): Add SSE2 emulation.
28597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28600 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
28602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28605 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
28607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28610 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
28611 TARGET_MMX_WITH_SSE.
28612 (*mmx_uavgv4hi3): Add SSE emulation.
28614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28617 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
28618 and TARGET_MMX_WITH_SSE.
28619 (*mmx_uavgv8qi3): Add SSE emulation.
28621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28624 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
28625 maskmovdqu for __MMX_WITH_SSE__.
28627 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28630 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
28631 TARGET_MMX and TARGET_MMX_WITH_SSE.
28632 (*mmx_umulv4hi3_highpart): Add SSE emulation.
28634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28637 * config/i386/mmx.md (mmx_pmovmskb): Changed to
28638 define_insn_and_split to support SSE emulation.
28640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28643 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
28644 and TARGET_MMX_WITH_SSE.
28645 (mmx_<code>v8qi3): Likewise.
28646 (smaxmin:<code>v4hi3): New.
28647 (umaxmin:<code>v8qi3): Likewise.
28648 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
28649 (umaxmin:*mmx_<code>v8qi3): Likewise.
28651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28654 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
28655 TARGET_MMX_WITH_SSE.
28656 (*mmx_pinsrw): Add SSE emulation.
28658 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28661 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
28663 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28666 * config/i386/sse.md (sse_cvtpi2ps): Changed to
28667 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
28670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28673 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
28674 (sse_cvttps2pi): Likewise.
28676 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28679 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
28680 TARGET_MMX_WITH_SSE.
28681 (mmx_pshufw_1): Add SSE emulation.
28682 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
28683 TARGET_MMX_WITH_SSE to support SSE emulation.
28685 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28688 * config/i386/constraints.md (Yw): New constraint.
28689 * config/i386/mmx.md (*vec_dupv2si): Changed to
28690 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
28691 support SSE emulation.
28693 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28696 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
28697 TARGET_MMX_WITH_SSE.
28698 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
28700 (mmx_gt<mode>3): Likewise.
28702 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28705 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
28706 TARGET_MMX_WITH_SSE. Add SSE support.
28708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28711 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
28712 TARGET_MMX_WITH_SSE.
28713 (any_logic:<code><mode>3): New.
28714 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
28717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28720 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
28721 TARGET_MMX_WITH_SSE. Add SSE emulation.
28722 (mmx_<shift_insn><mode>3): Likewise.
28723 (ashr<mode>3): New.
28724 (<shift_insn><mode>3): Likewise.
28726 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28729 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
28730 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
28732 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28735 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
28736 TARGET_MMX_WITH_SSE.
28737 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
28740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28743 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
28744 TARGET_MMX_WITH_SSE.
28746 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
28749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28752 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
28753 (plusminus:mmx_<plusminus_insn><mode>3): Check
28754 TARGET_MMX_WITH_SSE.
28755 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
28756 (<plusminus_insn><mode>3): New.
28757 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
28758 (*mmx_<plusminus_insn><mode>3): Likewise.
28760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28763 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
28764 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
28766 * config/i386/mmx.m (mmx_punpckhbw): Changed to
28767 define_insn_and_split to support SSE emulation.
28768 (mmx_punpcklbw): Likewise.
28769 (mmx_punpckhwd): Likewise.
28770 (mmx_punpcklwd): Likewise.
28771 (mmx_punpckhdq): Likewise.
28772 (mmx_punpckldq): Likewise.
28774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28775 Uros Bizjak <ubizjak@gmail.com>
28778 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
28780 (ix86_split_mmx_pack): Likewise.
28781 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
28783 (ix86_split_mmx_pack): Likewise.
28784 * config/i386/i386.md (mmx_isa): New.
28785 (enabled): Also check mmx_isa.
28786 * config/i386/mmx.md (any_s_truncate): New code iterator.
28787 (s_trunsuffix): New code attr.
28788 (mmx_packsswb): Removed.
28789 (mmx_packssdw): Likewise.
28790 (mmx_packuswb): Likewise.
28791 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
28792 MMX packsswb/packuswb with SSE2.
28793 (mmx_packssdw): Likewise.
28794 * config/i386/predicates.md (register_mmxmem_operand): New.
28796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
28799 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28800 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
28801 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
28802 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
28803 (ix86_vector_mode_supported_p): Likewise.
28804 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
28806 2019-05-15 Martin Liska <mliska@suse.cz>
28808 PR middle-end/90478
28809 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28810 Check for overflow.
28812 2019-05-15 Richard Biener <rguenther@suse.de>
28814 * tree-into-ssa.c (pass_build_ssa::execute): Run
28815 update_address_taken before going into SSA.
28817 2019-05-15 Richard Biener <rguenther@suse.de>
28819 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
28820 as __BIT_FIELD_REF with type with -gimple.
28822 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
28824 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
28825 semantically equivalent branches (left over after prior refactorings).
28827 2019-05-15 Richard Biener <rguenther@suse.de>
28829 PR tree-optimization/88828
28830 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
28833 2019-05-14 Richard Biener <rguenther@suse.de>
28835 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
28836 as __VIEW_CONVERT with -gimple.
28838 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28841 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
28844 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
28846 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
28847 define_split to become a define_insn_and_split.
28849 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
28851 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
28853 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
28854 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
28855 (sibcall_epilogue): Adjust.
28856 (epilogue): Adjust.
28858 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28860 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
28861 to unsupported ones.
28862 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
28863 * config.host: Likewise.
28864 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
28865 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
28866 __svr4__]: Remove "brand" fallback.
28867 [!KSTAT_DATA_STRING]: Remove.
28868 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28870 (comdat_group): Likewise.
28871 (set_have_as_tls): Likewise.
28872 (gcc_cv_target_dl_iterate_phdr): Likewise.
28873 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28874 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28875 * configure: Regenerate.
28876 * doc/install.texi: Simplify Solaris target triplets.
28877 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28878 (Specific, *-*-solaris2*): Document Solaris 10 removal.
28879 Remove Solaris 10 references.
28880 Remove obsolete Solaris bug reference.
28881 (Specific, sparc-sun-solaris2.10): Remove.
28883 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
28885 * config/i386/i386.md (any_div): New code iterator.
28886 (paired_mod): New code attribute.
28887 (sgnprefix): Handle DIV and UDIV RTXes.
28889 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28890 and udivmod<mode>4 patterns using any_div code iterator.
28891 (divmod splitters): Macroize splitters using any_div code iterator.
28892 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28893 (*udivmodsi4_pow2_zext_2): Ditto.
28894 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28895 and *udivmod<mode>4_noext patterns using any_div code iterator.
28896 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28897 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28898 patterns using any_div code iterator.
28899 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28900 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28901 patterns using any_div code iterator.
28902 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28903 udivmodhiqi3 patterns using any_extend code iterator.
28905 2019-05-14 Richard Biener <rguenther@suse.de>
28906 H.J. Lu <hongjiu.lu@intel.com>
28908 PR tree-optimization/88828
28909 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28910 permuting in a single non-constant element not extracted
28913 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28915 * internal-fn.def (SIGNBIT): New.
28916 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28918 (signbitv4sf2): Likewise.
28920 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28923 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28924 next insn when the SRC reg is dead.
28926 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28928 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28929 (alloc_cand_and_find_basis): Ditto.
28930 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28931 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28932 (create_add_imm_cand, slsr_process_cast): Ditto.
28933 (slsr_process_copy, replace_mult_candidate): Ditto.
28934 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28935 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28936 (pass_strength_reduction::execute): Init the first NULL element.
28938 2019-05-13 Nathan Sidwell <nathan@acm.org>
28940 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28941 (run_attempt): Reformat line break.
28943 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28946 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28947 data registers in sibcall epilogues.
28948 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28950 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28953 * configure.ac (--enable-frame-pointer):
28954 Disable by default for cygwin and mingw.
28955 * configure: Regenerate.
28957 2019-05-13 Nathan Sidwell <nathan@acm.org>
28959 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28961 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28962 (gen_member_die): Move abstract origin check earlier. Only VARs
28963 can be static_inline_p. Simplify splicing control flow.
28965 2019-05-13 Richard Biener <rguenther@suse.de>
28967 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28969 (vect_build_slp_tree_1): Likewise.
28971 2019-05-13 Richard Biener <rguenther@suse.de>
28973 PR tree-optimization/90402
28974 * tree-if-conv.c (tree_if_conversion): Value number only
28975 the loop body by making the latch an exit of the region
28977 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28979 (do_rpo_vn): Deal with multiple edges into the entry block
28980 that are not backedges inside the region by skipping PHIs
28981 of the entry block.
28983 2019-05-13 Richard Biener <rguenther@suse.de>
28985 PR tree-optimization/90316
28986 * tree-ssa-pre.c (insert_aux): Fold into ...
28987 (insert): ... this function. Use a RPO walk to reduce the
28988 number of required iterations.
28990 2019-05-13 Martin Liska <mliska@suse.cz>
28992 PR tree-optimization/90416
28993 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28994 string instead of passing the second part as va_arg argument.
28996 2019-05-13 Martin Liska <mliska@suse.cz>
28998 PR gcov-profile/90380
28999 * gcov.c (handle_cycle): Do not support zero cycle count,
29000 it should not be possible.
29001 (path_contains_zero_cycle_arc): New function.
29002 (circuit): Ignore zero cycle arc counts.
29004 2019-05-13 Martin Liska <mliska@suse.cz>
29006 PR gcov-profile/90380
29007 * gcov.c (enum loop_type): Remove the enum and
29009 (handle_cycle): Assert that we should not reach
29011 (circuit): Use loop_found instead of a tri-state loop_type.
29012 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
29015 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
29018 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
29019 (ix86_output_indirect_branch_via_reg): Use output mechanism
29020 accounting for __USER_LABEL_PREFIX__.
29021 (ix86_output_indirect_branch_via_push): Likewise.
29022 (ix86_output_function_return): Likewise.
29023 (ix86_output_indirect_function_return): Likewise.
29025 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
29027 * doc/md.texi: Document use of code attributes in rtx patterns.
29028 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
29029 * read-rtl.c (find_code): Split out search loops into...
29030 (maybe_find_code): ...this new function.
29031 (check_code_iterator): Make the error message more informative.
29032 (check_code_attribute): New function.
29033 (rtx_reader::rtx_alloc_for_name): Likewise.
29034 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
29035 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
29036 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
29037 <max_opp> directly as an rtx code instead of via a match_operator.
29038 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
29039 (<su>abd<mode>_3): Update accordingly.
29041 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
29043 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
29044 is given, print the state of the EH "save world" computation for
29047 2019-05-11 Jakub Jelinek <jakub@redhat.com>
29050 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
29051 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
29053 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
29055 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
29056 Use pinsrd for TARGET_SSE4_1.
29057 * config/i386/sse.md (movdi_to_sse): Ditto.
29059 2019-05-10 Richard Biener <rguenther@suse.de>
29061 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
29062 (do_rpo_vn): Initialize next_value_id.
29064 2019-05-10 Martin Liska <mliska@suse.cz>
29066 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
29069 2019-05-10 Jakub Jelinek <jakub@redhat.com>
29071 PR tree-optimization/90385
29072 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
29073 arguments of the exit phis.
29076 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
29077 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
29079 (copy_tree_body_r): Likewise.
29080 (copy_fn): Set id.do_not_fold to true.
29082 2019-05-10 Martin Liska <mliska@suse.cz>
29084 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
29085 Reapply changes from r269790.
29087 2019-05-10 Martin Liska <mliska@suse.cz>
29089 PR middle-end/90340
29090 * doc/invoke.texi: New params.
29091 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
29092 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
29093 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
29095 * tree-switch-conversion.h (struct jump_table_cluster):
29098 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
29100 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
29102 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
29104 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
29106 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
29108 PR rtl-optimization/88879
29109 * sel-sched.c (sel_target_adjust_priority): Remove assert.
29111 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
29114 * config/arm/arm.c (callee_saved_reg_p): Move before
29115 thumb_find_work_register.
29116 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
29117 thumb_find_work_register. Only call df_get_live_out once.
29118 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
29119 (thumb_find_work_register): Use
29120 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
29121 algorithms to locate a spare call clobbered reg.
29123 2019-05-09 Martin Liska <mliska@suse.cz>
29125 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
29126 and MAX_EXPR in GIMPLE FE format.
29128 2019-05-09 Martin Liska <mliska@suse.cz>
29130 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
29131 * gimple-pretty-print.c (dump_gimple_bb_header):
29133 (pp_cfg_jump): Dump edge probability.
29134 * profile-count.c (profile_quality_as_string): Simplify
29135 with a static array.
29136 (parse_profile_quality): New function.
29137 (profile_count::dump): Simplify with a static array.
29138 (profile_count::from_gcov_type): Add new argument.
29139 * profile-count.h (parse_profile_quality): Likewise.
29140 * predict.h (set_hot_bb_threshold): New.
29141 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
29143 * predict.c (get_hot_bb_threshold): Set from the new param.
29144 (set_hot_bb_threshold): New.
29146 2019-05-09 Richard Biener <rguenther@suse.de>
29148 PR tree-optimization/90395
29149 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
29150 rewrite vector stores that throw internally.
29152 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
29154 * cif-code.def (CHKP): Remove.
29157 * configure.ac (--enable-frame-pointer): Disable by default for
29159 * configure: Regenerate.
29161 2019-05-09 Alan Modra <amodra@gmail.com>
29164 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
29165 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
29166 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
29167 cost for general <-> vsx when direct moves are available.
29168 Cost union classes at minimal cost for any reg in the class.
29169 Correct calculation for moves between vsx, float, and altivec.
29170 Don't return a low cost for moves between special regs. Don't
29171 use hard coded register numbers.
29172 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
29173 (rs6000_ira_change_pseudo_allocno_class): New function.
29174 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
29175 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
29177 (movsi_internal1): Don't disparage vector alternatives.
29178 (mov<mode>_internal): Likewise, excepting alternative that
29180 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
29181 we <- b alternative.
29183 2019-05-08 Jakub Jelinek <jakub@redhat.com>
29186 PR tree-optimization/89060
29187 * tree-ssa-live.h (live_vars_map): New typedef.
29188 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
29189 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
29190 (struct compute_live_vars_data): New type.
29191 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
29192 live_vars_at_stmt, destroy_live_vars): New functions.
29193 * tree-tailcall.c: Include tree-ssa-live.h.
29194 (live_vars, live_vars_vec): New global variables.
29195 (find_tail_calls): Perform variable life analysis before punting.
29196 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
29197 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
29199 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
29200 Perform variable life analysis to select variables that really need
29202 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
29203 instead set id->eh_landing_pad_dest and assert it is the same.
29204 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
29206 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
29207 Richard Earnshaw <rearnsha@arm.com>
29210 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
29212 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
29213 (thumb1_compute_save_core_reg_mask): Don't force a spare work
29214 register if both the epilogue and prologue can use call-clobbered
29216 (thumb1_unexpanded_epilogue): Use
29217 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
29218 picking temporaries for restoring high regs to match that of the
29219 prologue where possible.
29220 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
29221 the list of work registers. Detect if the return address is still live
29222 at the end of the prologue and avoid using it for a work register if so.
29223 If the return address is not live, add LR to the list of pushable regs
29224 after the first pass.
29226 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
29228 PR tree-optimization/90078
29229 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
29230 (INFTY): Increase the value for infinite cost.
29231 (struct comp_cost): Promote type of members to int64_t.
29232 (infinite_cost): Don't set complexity in initialization.
29233 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
29234 overflows to infinite_cost.
29235 (adjust_setup_cost): Promote type of parameter and cost computation
29237 (struct ainc_cost_data, struct iv_ca): Promote type of member to
29239 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
29240 cost computation to int64_t.
29241 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
29242 int64_t's format specifier in dump.
29244 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
29246 PR tree-optimization/90240
29247 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
29248 with respect to scaling factor pre-computed for each basic block.
29249 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
29250 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
29251 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
29252 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
29253 live range for array of loop's basic blocks. Cleanup aux field of
29254 loop's basic blocks.
29256 2019-05-08 Jakub Jelinek <jakub@redhat.com>
29258 PR tree-optimization/90356
29259 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
29261 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
29263 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
29264 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
29265 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
29266 (ix86_handle_option): Handle -mavx512bf16.
29267 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
29269 * config/i386/avx512bf16vlintrin.h: New.
29270 * config/i386/avx512bf16intrin.h: New.
29271 * config/i386/cpuid.h (bit_AVX512BF16): New.
29272 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
29273 * config/i386/i386-builtin-types.def: Add new types.
29274 * config/i386/i386-builtin.def: Add new builtins.
29275 * config/i386/i386-c.c (ix86_target_macros_internal): Define
29277 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
29278 (ix86_option_override_internal): Handle BF16.
29279 (ix86_valid_target_attribute_inner_p): Ditto.
29280 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
29281 * config/i386/i386-builtin.c (enum processor_features): Add
29283 (static const _isa_names_table isa_names_table): Ditto.
29284 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
29285 (PTA_AVX512BF16): Ditto.
29286 * config/i386/i386.opt: Add -mavx512bf16.
29287 * config/i386/immintrin.h: Include avx512bf16intrin.h
29288 and avx512bf16vlintrin.h.
29289 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
29290 avx512f_cvtneps2bf16_<mode><mask_name>,
29291 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
29292 * config/i386/subst.md (mask_half): Add new subst.
29293 * doc/invoke.texi: Document -mavx512bf16.
29295 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29297 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
29298 Delete declaration.
29299 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
29300 (rs6000_debug_legitimize_reload_address): Delete.
29301 (rs6000_legitimize_reload_address_ptr): Delete.
29302 (rs6000_option_override_internal): Adjust.
29303 (mem_operand_gpr): Adjust comment.
29304 (legitimate_lo_sum_address_p): Ditto.
29305 (rs6000_legitimize_reload_address): Delete.
29306 (rs6000_debug_legitimize_reload_address): Delete.
29307 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
29309 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
29312 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29313 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
29314 to compute vector element selector for both constant and variable
29317 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
29319 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
29320 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
29321 ashrdi3_cvt using SWI48 mode iterator.
29323 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
29325 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
29326 (aarch64_<su>abd<mode>_3): Likewise.
29327 (*aarch64_<su>abd<mode>_3): New define_insn.
29328 (<sur>sad<vsi2qi>): New define_expand.
29329 * config/aarch64/iterators.md: Added MAX_OPP attribute.
29330 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
29331 (build_vect_cond_expr): Likewise.
29333 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
29335 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
29336 clobbers outside of accessible_reg_set.
29337 * config/i386/i386.c (ix86_conditional_register_usage):
29338 Disable register sets by clearing corresponding bits in
29339 accessible_reg_set. Do not set corresponding bits in fixed_regs,
29340 call_used_regs and don't clear corresponding reg_names array members.
29342 2019-05-07 Richard Biener <rguenther@suse.de>
29344 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
29345 not specified still compute a comp_vectype for invariant
29348 2019-05-07 Richard Biener <rguenther@suse.de>
29350 PR tree-optimization/90316
29351 * tree-ssa-pre.c (translate_vuse_through_block): When
29352 same_valid is NULL do not bother to search for a virtual
29354 (phi_translate_1): When operands changed we cannot keep
29355 the same value-number so do not bother to ask whether
29356 that's possible from translate_vuse_through_block.
29358 2019-05-07 Martin Liska <mliska@suse.cz>
29360 * bitmap.c (bitmap_register): Come up with
29361 alloc_descriptor_max_uid and assign it for
29363 (register_overhead): Use get_descriptor as
29365 (release_overhead): New.
29366 (bitmap_elem_to_freelist): Call it.
29367 (bitmap_elt_clear_from): Likewise.
29368 (bitmap_obstack_free): Likewise.
29369 (bitmap_move): Sensitively release memory.
29370 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
29371 (bitmap_initialize): Initialize alloc_descriptor to zero.
29372 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
29374 2019-05-07 Richard Biener <rguenther@suse.de>
29376 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
29377 we build a SLP node. Remove max_size and limiting.
29378 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
29380 2019-05-07 Richard Biener <rguenther@suse.de>
29382 PR tree-optimization/90316
29383 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
29384 limit by reference.
29385 (walk_non_aliased_vuses): Take walking limit argument.
29386 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
29387 walking if it is reached instead of just counting.
29388 (get_continuation_for_phi): Likewise.
29389 (walk_non_aliased_vuses): Likewise, instead of leaving counter
29390 limiting to the callback.
29391 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
29392 (vn_reference_lookup_3): Likewise.
29393 (vn_reference_lookup_pieces): Likewise.
29394 (vn_reference_lookup): Likewise.
29395 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
29396 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
29397 (avail_exprs_stack::lookup_avail_expr): Likewise.
29399 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
29401 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
29402 for comparaible types in the second direction even if first one
29403 hits incomparable type.
29405 2019-05-07 Richard Biener <rguenther@suse.de>
29408 * lto-wrapper.c (debug_objcopy): Use the original filename
29409 including archive offset for the filename used for -save-temps.
29411 2019-05-07 Li Jia He <helijia@linux.ibm.com>
29413 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
29416 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
29417 Hongtao Liu <hongtao.liu@intel.com>
29421 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
29422 Modified, original implementation isn't correct.
29424 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29426 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
29427 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
29428 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
29429 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
29430 (FRAME_POINTER_REGNUM): Change numbering.
29431 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
29432 (alt_reg_names): Adjust.
29433 (rs6000_conditional_register_usage): Don't mark hard register 64 as
29435 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
29436 (DWARF_FRAME_REGISTERS): Delete.
29437 (DWARF2_FRAME_REG_OUT): Fix whitespace.
29438 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
29440 (REG_ALLOC_ORDER): Adjust.
29441 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
29442 (REG_CLASS_CONTENTS): Adjust.
29443 (RETURN_ADDR_RTX): Change comment.
29444 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
29446 (REGISTER_NAMES): Adjust.
29447 (ADDITIONAL_REGISTER_NAMES): Adjust.
29448 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
29450 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29452 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
29454 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
29455 (DWARF_FRAME_REGISTERS): Adjust.
29456 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
29458 (REG_ALLOC_ORDER): Adjust.
29459 (enum reg_class): Delete SPR_REGS.
29460 (REG_CLASS_NAMES): Delete SPR_REGS.
29461 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
29462 (REGISTER_NAMES): Adjust.
29463 (ADDITIONAL_REGISTER_NAMES): Adjust.
29464 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
29465 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
29466 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
29467 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
29468 (htm_spr_regno): Delete.
29469 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
29471 (rs6000_dbx_register_number): Adjust.
29473 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29475 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
29477 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
29479 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
29480 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
29482 2019-05-06 Jakub Jelinek <jakub@redhat.com>
29484 PR tree-optimization/88709
29485 PR tree-optimization/90271
29486 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
29487 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
29488 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
29490 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
29491 of the store merging group is larger than
29492 PARAM_STORE_MERGING_MAX_SIZE parameter.
29493 (split_group): Add bzero_first argument. If set, always emit first
29494 the first store which must be = {} of the whole area and then for the
29495 rest of the stores consider all zero bytes as paddings.
29496 (imm_store_chain_info::output_merged_store): Check if first store
29497 is = {} of the whole area and if yes, determine which setting of
29498 bzero_first for split_group gives smaller number of stores. Adjust
29499 split_group callers.
29500 (lhs_valid_for_store_merging_p): Allow decls.
29501 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
29503 (pass_store_merging::process_store): Likewise.
29505 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
29508 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
29509 handling of V1TImode.
29511 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
29514 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
29515 and enable_frame_pointer ...
29516 * configure.ac: ... here. Update help strings for
29517 --enable-frame-pointer.
29518 * configure: Regenerate.
29519 * config/i386/i386-options.c (ix86_option_override_internal): Remove
29520 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
29521 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
29522 (USE_X86_64_FRAME_POINTER): Ditto.
29524 2019-05-06 Martin Liska <mliska@suse.cz>
29526 * config.gcc: Append to target_gtfiles and fix indentation.
29528 2019-05-06 Richard Biener <rguenther@suse.de>
29530 PR tree-optimization/90358
29531 * tree-vect-stmts.c (get_group_load_store_type): Properly
29532 detect unused upper half of load.
29533 (vectorizable_load): Likewise.
29535 2019-05-06 Richard Biener <rguenther@suse.de>
29537 PR tree-optimization/88828
29538 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
29539 (simplify_vector_constructor): ...here. Handle constants in
29542 2019-05-06 Richard Biener <rguenther@suse.de>
29544 PR tree-optimization/90328
29545 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
29546 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
29547 is valid in the loop nest before using it.
29548 (initialize_data_dependence_relation): Adjust.
29549 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
29550 loop as loop-nest to dr_may_alias_p.
29552 2019-05-06 Richard Biener <rguenther@suse.de>
29554 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
29556 2019-05-06 Richard Biener <rguenther@suse.de>
29558 PR tree-optimization/90316
29559 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
29560 compute target on demand.
29561 (get_continuation_for_phi): Remove code walking stmts to
29562 get to a target virtual operand which could end up being
29565 2019-05-06 Martin Liska <mliska@suse.cz>
29568 * config/i386/i386-options.c (ix86_option_override_internal): Error only
29569 when -mabi is selected to a non-default version.
29571 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
29572 Martin Liska <mliska@suse.cz>
29574 * Makefile.in: Add lto-dump.texi.
29575 * cgraph.h: Add new functions get_visibility_string and
29576 get_symtab_type_string.
29577 * doc/gcc.texi: Include lto-dump section.
29578 * doc/lto-dump.texi: New file.
29579 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
29580 (parse_dump_option): Factor out this function.
29581 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
29582 (parse_dump_option): Export the function.
29583 * symtab.c (symtab_node::get_visibility_string): New function.
29584 (symtab_node::get_symtab_type_string): Likewise.
29586 2019-05-06 Martin Liska <mliska@suse.cz>
29588 * config/i386/i386-builtins.c: New file.
29589 * config/i386/i386-builtins.h: New file.
29590 * config/i386/i386-expand.c: New file.
29591 * config/i386/i386-expand.h: New file.
29592 * config/i386/i386-features.c: New file.
29593 * config/i386/i386-features.h: New file.
29594 * config/i386/i386-options.c: New file.
29595 * config/i386/i386-options.h: New file.
29596 * config.gcc: Add new files into extra_objs and
29598 * config/i386/i386.c: Split content of the file
29599 into newly introduced files.
29600 * config/i386/i386.h: Declare common variables
29602 * config/i386/t-i386: Define dependencies for new files.
29604 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
29607 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
29608 Restrict 'all' variant to 32-bit configurations.
29609 (unaligned_loadhiu): Likewise.
29610 (unaligned_storehi): Likewise.
29611 (unaligned_storesi): Likewise.
29612 (unaligned_loadhis): Disable when compiling for thumb1.
29614 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
29616 PR tree-optimization/90269
29617 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
29620 2019-05-03 Martin Liska <mliska@suse.cz>
29622 * hash-map.h: Add is_empty function.
29623 * hash-set.h: Likewise.
29624 * hash-table.h: Likewise.
29625 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
29626 elements () == 0 (and similar usages).
29627 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
29628 * gimplify.c (gimplify_bind_expr): Likewise.
29629 (gimplify_switch_expr): Likewise.
29630 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
29631 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
29632 * postreload-gcse.c (dump_hash_table): Likewise.
29633 (gcse_after_reload_main): Likewise.
29634 * predict.c (combine_predictions_for_bb): Likewise.
29635 * tree-parloops.c (reduction_phi): Likewise.
29636 (separate_decls_in_region): Likewise.
29637 (transform_to_exit_first_loop): Likewise.
29638 (gen_parallel_loop): Likewise.
29639 (gather_scalar_reductions): Likewise.
29640 (try_create_reduction_list): Likewise.
29641 * var-tracking.c (dump_vars): Likewise.
29642 (emit_notes_for_changes): Likewise.
29643 (vt_emit_notes): Likewise.
29645 2019-05-03 Richard Biener <rguenther@suse.de>
29647 PR tree-optimization/90316
29648 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
29651 2019-05-03 Richard Biener <rguenther@suse.de>
29653 * tree-vect-stmts.c (get_group_load_store_type): Avoid
29654 peeling for gaps by loading only lower halves of vectors
29656 (vectorizable_load): Likewise.
29658 2019-05-03 Richard Biener <rguenther@suse.de>
29660 PR middle-end/89518
29661 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
29663 2019-05-03 Richard Biener <rguenther@suse.de>
29665 PR middle-end/87314
29666 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
29667 Handle STRING_CST vs DECL or STRING_CST.
29669 2019-05-03 Richard Biener <rguenther@suse.de>
29671 PR tree-optimization/88963
29672 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
29673 vector loads feeding only BIT_FIELD_REFs to component
29674 loads. Rewrite stores fed by CONSTRUCTORs to component
29677 2019-05-03 Jakub Jelinek <jakub@redhat.com>
29679 * opts.h (finish_options): Remove lang_mask argument.
29680 (print_help, help_option_argument): Declare.
29681 * opts.c (print_help): Remove forward declaration, no longer static.
29682 (finish_options): Remove lang_mask argument, don't call print_help
29684 * opts-global.c (decode_options): Adjust finish_option caller, call
29687 PR tree-optimization/90303
29688 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
29689 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
29691 2019-05-03 Richard Biener <rguenther@suse.de>
29693 PR tree-optimization/89698
29694 * gimple-fold.c (canonicalize_constructor_val): Early out
29695 for constants, handle unfolded INTEGER_CSTs as they appear in
29696 C++ virtual table ctors.
29698 2019-05-03 Richard Biener <rguenther@suse.de>
29700 * passes.c (execute_function_todo): Remove dead code.
29702 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
29704 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
29705 the internal register number, for any "real" register.
29707 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
29709 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
29710 correct numbers for TFHAR, TFIAR, TEXASR.
29712 2019-05-02 Richard Biener <rguenther@suse.de>
29714 PR tree-optimization/89653
29715 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
29716 update-address-taken before the pass.
29717 * passes.def (pass_tree_loop_init): Put comment before it.
29719 2019-05-02 Richard Biener <rguenther@suse.de>
29721 PR tree-optimization/89509
29722 * tree-ssa-structalias.c (compute_dependence_clique): Look
29723 at the first subvar when determining whether it is restrict.
29725 2019-05-02 Richard Biener <rguenther@suse.de>
29727 PR tree-optimization/90273
29728 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
29729 useless debug stmts.
29731 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
29733 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
29735 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
29737 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
29738 VEC_COND_EXPR be inserted to emulate a conditional internal function.
29739 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
29740 (vectorizable_reduction): Use the functions above to vectorize in a
29741 fully masked loop codes that don't have a conditional internal
29744 2019-05-02 Martin Liska <mliska@suse.cz>
29746 * cgraphclones.c: Call valid_attribute_p with 1 for
29748 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
29749 it's for target attribute.
29750 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
29751 Add new boolean argument.
29752 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
29754 (ix86_valid_target_attribute_tree): Pass target_clone_attr
29755 to ix86_valid_target_attribute_inner_p.
29756 (ix86_valid_target_attribute_p): Pass flags argument to
29757 ix86_valid_target_attribute_inner_p.
29758 (get_builtin_code_for_version): Use 0 as it's target attribute.
29760 2019-05-02 Martin Liska <mliska@suse.cz>
29762 * gcc.c (process_command): Add dummy file only
29764 * opts-global.c (decode_options): Pass lang_mask.
29765 * opts.c (print_help): New function.
29766 (finish_options): Print --help if help_option_argument
29768 (common_handle_option): Factor out content of OPT__help_
29770 * opts.h (finish_options): Add new argument.
29772 2019-05-02 Martin Liska <mliska@suse.cz>
29775 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
29776 With -minline-all-stringops use inline expansion using 4B loop.
29777 * doc/invoke.texi: Document the change of
29778 -minline-all-stringops.
29780 2019-05-01 Jeff Law <law@redhat.com>
29782 PR tree-optimization/88797
29783 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
29784 PHI feeds a conditional on the RHS of an assignment.
29786 2019-04-30 Andrew Waterman <andrew@sifive.com>
29787 Jim Wilson <jimw@sifive.com>
29789 * config/riscv/constraints.md (L): New.
29790 * config/riscv/predicates.md (lui_operand): New.
29791 (sfb_alu_operand): New.
29792 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
29793 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
29794 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
29795 * config/riscv/risc.md (type): Add sfb_alu.
29796 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
29797 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
29798 (branch_zero<mode>): Delete.
29799 (mov<mode>cc): New.
29800 (mov<GPR:mode><X:mode>cc): Likewise.
29801 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
29803 2019-04-30 Nathan Sidwell <nathan@acm.org>
29805 * tree.h (MARK_TS_EXP): New.
29807 2019-04-30 Martin Liska <mliska@suse.cz>
29809 * opts.c (enable_warning_as_error): Provide hints
29810 for unknown options.
29812 2019-04-30 Martin Liska <mliska@suse.cz>
29815 * doc/invoke.texi: Add missing dash for gas-locview-support
29816 and gno-as-locview-support.
29818 2019-04-30 Jakub Jelinek <jakub@redhat.com>
29821 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
29822 whitespace at the start of target attribute string.
29824 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29827 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
29828 Define __ARM_FEATURE_ATOMICS.
29830 2019-04-30 Martin Liska <mliska@suse.cz>
29832 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
29833 into built_in_function enum. Remove code for endp == 2 and
29834 use BUILT_IN_* constants.
29835 (gimple_fold_builtin): Call the function with fcode.
29837 2019-04-30 Martin Liska <mliska@suse.cz>
29839 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
29840 DECL_FUNCTION_CODE into ix86_builtins enum before
29841 the switch statement.
29843 2019-04-30 Jakub Jelinek <jakub@redhat.com>
29845 PR tree-optimization/89475
29846 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
29849 2019-04-30 Martin Liska <mliska@suse.cz>
29851 PR translation/90274
29852 * opts.c (print_filtered_help): Wrap string in _(...).
29854 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
29856 PR tree-optimization/90240
29858 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29860 PR tree-optimization/90078
29861 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29862 checks for infinite_cost overflow.
29864 2019-04-29 Jeff Law <law@redhat.com>
29866 * passes.def: Move -Wrestrict pass after copy propagation.
29868 2019-04-29 Maya Rashish <coypu@sdf.org>
29870 * config.gcc (default_gnu_indirect_function): Default to yes
29871 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29872 sparc*-*-netbsd*, x86_64-*-netbsd*.
29874 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
29876 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29877 where cond2 is NE_EXPR.
29878 (is_value_included_in): Update comment.
29880 2019-04-29 Richard Biener <rguenther@suse.de>
29882 PR tree-optimization/90278
29883 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29884 EH on comparison simplification.
29886 2019-04-29 Jason Merrill <jason@redhat.com>
29888 PR c++/82081 - tail call optimization breaks noexcept
29889 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29890 nothrow function to a might-throw function into a tail call.
29892 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
29894 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29895 (DDR_INNER_LOOP): Likewise.
29896 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29897 (initialize_data_dependence_relation): Likewise.
29898 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29900 2019-04-29 Jakub Jelinek <jakub@redhat.com>
29902 PR rtl-optimization/90257
29903 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29907 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29911 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29914 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29917 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29919 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29921 2019-04-29 Richard Biener <rguenther@suse.de>
29923 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29926 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29928 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29929 varasm.h, and netbsd-protos.h.
29931 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29934 * config/i386/i386-protos.h (ix86_data_alignment): Change
29935 the second argument type to unsigned int.
29936 * config/i386/i386.c (ix86_data_alignment): Change "align"
29937 argument type to unsigned int.
29939 2019-04-27 Martin Liska <mliska@suse.cz>
29941 PR middle-end/90258
29942 * opt-suggestions.c (option_proposer::build_option_suggestions):
29943 When get_valid_option_values returns empty values, add the
29944 misspelling candidate.
29946 2019-04-26 Jim Wilson <jimw@sifive.com>
29948 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29950 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29951 Pass orig_mode to riscv_build_integer.
29952 (riscv_split_integer): Pass mode to riscv_move_integer.
29953 (riscv_legitimize_const_move): Likewise.
29954 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29955 promoted_mode. Replace force_reg call with code to load constant into
29956 promoted reg and then subreg it for the store.
29957 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29958 riscv_move_integer.
29960 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29962 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29965 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29967 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29968 commentary about the encoding of precision.
29970 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29972 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29973 * config/i386/t-freebsd64: New file.
29974 * config.gcc: Add the t-freebsd64 for multilib support.
29976 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29978 * doc/extend.texi (vector_size): Add missing comma after @xref.
29980 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29982 * BASE-VER: Set to 10.0.0.
29984 2019-04-25 Richard Biener <rguenther@suse.de>
29986 PR middle-end/89765
29987 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29988 VIEW_CONVERT_EXPR into one operating on an rvalue.
29990 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29993 * config/i386/i386.c (feature_priority): Moved to file scope.
29994 (processor_features): Likewise.
29995 (processor_model): Likewise.
29996 (_arch_names_table): Likewise.
29997 (arch_names_table): Likewise.
29998 (_feature_list): Removed.
29999 (feature_list): Likewise.
30000 (_isa_names_table): Moved to file scope. Add priority.
30001 (isa_names_table): Likewise.
30002 (get_builtin_code_for_version): Replace feature_list with
30003 isa_names_table. Update error message for P_ZERO priority.
30005 2019-04-25 Richard Biener <rguenther@suse.de>
30007 * tree-pass.h (make_pass_phi_only_cprop): Remove.
30008 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
30010 2019-04-24 Jeff Law <law@redhat.com>
30012 PR tree-optimization/90037
30013 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
30014 * passes.def: Replace all instance of phi-only cprop with the
30015 lattice propagator. Move propagation pass from after erroneous
30016 path isolation to before erroneous path isolation.
30017 * tree-ssa-phionlycprop.c: Remove.
30019 2019-04-24 Richard Biener <rguenther@suse.de>
30021 PR middle-end/90213
30022 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
30023 by size and BITS_PER_UNIT on poly-wide-ints.
30025 2019-04-25 Richard Biener <rguenther@suse.de>
30027 PR middle-end/90194
30028 * match.pd: Add pattern to simplify view-conversion of an
30031 2019-04-24 Clement Chigot <clement.chigot@atos.net>
30033 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
30034 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
30035 for Go on 32 bit AIX.
30036 * config/rs6000/aix72.h: Likewise.
30038 2019-04-24 Jakub Jelinek <jakub@redhat.com>
30041 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
30042 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
30044 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
30047 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
30048 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
30049 for restored hard frame pointer.
30050 (s390_sched_dependencies_evaluation): Implement new target hook.
30051 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
30053 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
30055 * config/arc/arc-options.def: Fix typos and spelling mistakes.
30056 * config/arc/arc.c (arc_init): Cleanup warning message.
30057 (arc_override_options): Likewise.
30059 2019-04-24 Jakub Jelinek <jakub@redhat.com>
30062 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
30063 a register if both if_true and if_false are MEMs.
30065 PR tree-optimization/90208
30066 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
30067 after labels of new_bb, not before them.
30069 PR tree-optimization/90211
30070 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
30071 which are not SSA_NAMEs.
30073 2018-04-23 Sudakshina Das <sudi.das@arm.com>
30075 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
30077 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
30079 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
30081 PR rtl-optimization/87979
30082 * modulo-sched.c (sms_schedule): Start ii value "mii" should
30085 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
30087 PR rtl-optimization/84032
30088 * modulo-sched.c (ps_insn_find_column): Change condition so that
30089 branch will always be the last insn in a row inside partial
30092 2019-04-23 Richard Biener <rguenther@suse.de>
30095 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
30096 dest_single_pred_p argument.
30097 (remove_forwarder_block): Adjust.
30098 (remove_forwarder_block_with_phi): Likewise.
30100 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30101 Bernd Edlinger <bernd.edlinger@hotmail.de>
30102 Jakub Jelinek <jakub@redhat.com>
30105 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
30106 if used with general-regs-only.
30107 (arm_conditional_register_usage): Don't add non-general regs if
30109 (arm_valid_target_attribute_rec): Handle general-regs-only.
30110 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
30112 (TARGET_HARD_FLOAT_SUB): Define.
30113 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
30114 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
30115 (TARGET_REALLY_IWMMXT2): Likewise.
30116 * config/arm/arm.opt: Add -mgeneral-regs-only.
30117 * doc/extend.texi: Document ARM general-regs-only target.
30118 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
30120 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
30122 PR tree-optimization/90078
30123 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
30124 checks for infinite_cost overflow.
30126 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
30128 PR tree-optimization/90021
30129 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
30130 and check univariate against it.
30131 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
30132 * tree-data-ref.c (add_other_self_distances): Pass new argument.
30134 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
30138 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
30141 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
30144 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
30146 * lra-spills.c (lra_final_code_change): Remove useless move insns.
30148 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
30150 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
30151 names using operand format, rather than hard-wired.
30152 (speculation_barrier): Likewise.
30154 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
30156 PR tree-optimization/88055
30157 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
30158 (gen_one_condition): Use it if !HONOR_NANS.
30160 2019-04-19 Jakub Jelinek <jakub@redhat.com>
30162 PR middle-end/90139
30163 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
30164 assign_temp instead of gen_reg_rtx.
30166 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
30168 PR translation/90118
30169 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30170 Add missing space before %<.
30172 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
30174 PR rtl-optimization/87871
30175 * ira-lives.c (make_object_dead): Don't add conflicts to
30176 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
30178 2019-04-18 Martin Sebor <msebor@redhat.com>
30180 PR middle-end/89797
30181 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
30182 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
30183 assuming type size fits in SHWI.
30185 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
30188 * ipa-inline.c (flatten_function): New parameter UPDATE.
30189 (ipa_inline, early_inliner): Use it.
30191 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
30193 * fold-const.c (int_const_binop): Return early on failure.
30195 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
30197 PR middle-end/85164
30198 * combine.c (force_int_to_mode): Cast the argument rather than
30199 the result of known_alignment.
30200 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
30202 2019-04-18 Richard Biener <rguenther@suse.de>
30205 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
30207 (remove_forwarder_block): ... here.
30208 (remove_forwarder_block_with_phi): Also move debug stmts here.
30210 2019-04-18 Jakub Jelinek <jakub@redhat.com>
30212 PR translation/79183
30213 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
30214 inform where appropriate.
30216 2019-04-18 Richard Biener <rguenther@suse.de>
30218 * tree.c (get_qualified_type): Put found type variants at the
30219 head of the variant list.
30221 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
30223 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
30225 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
30228 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
30229 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
30230 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
30231 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
30232 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
30234 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
30236 * ira-conflicts.c (print_allocno_conflicts): Always print something,
30237 even for allocno's with no conflicts.
30238 (print_conflicts): Print an extra newline.
30240 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
30242 * auto-inc-dec.c (attempt_change): Set the alignment of the
30243 temporary memory to that of the original.
30245 2019-04-17 Joao Moreira <jmoreira@suse.de>
30247 * targhooks.c (default_print_patchable_function_entry): Emit
30248 __patchable_function_entries section with writable flags to allow
30249 relocation resolution.
30251 2019-04-17 Jonny Grant <jg@jguk.org>
30253 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
30255 2019-04-17 Jakub Jelinek <jakub@redhat.com>
30257 PR middle-end/90095
30258 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
30259 on lowpart SUBREGs.
30261 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
30263 * config/arc/arc.c (arc_init): Format diagnostic string.
30264 (arc_override_options): Likewise.
30265 (check_if_valid_regno_const): Likewise.
30266 (arc_reorg): Likewise.
30268 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
30271 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
30273 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
30275 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
30276 (*movdi_update1): Use Pmode.
30277 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
30278 (movdi_<mode>_update_stack): Rename to ...
30279 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
30281 (*movsi_update1): Use Pmode.
30282 (*movsi_update2): Use Pmode.
30283 (movsi_update): Rename to ...
30284 (movsi_<mode>_update): ... this. Use Pmode.
30285 (movsi_update_stack): Fix condition.
30286 (*movhi_update1): Use Pmode. Fix argument to
30287 avoiding_indexed_address_p.
30288 (*movhi_update2): Ditto.
30289 (*movhi_update3): Ditto.
30290 (*movhi_update4): Ditto.
30291 (*movqi_update1): Ditto.
30292 (*movqi_update2): Ditto.
30293 (*movqi_update3): Ditto.
30294 (*movsf_update1, *movdf_update1): Merge, rename to...
30295 (*mov<mode>_update1): This. Use Pmode. Fix argument to
30296 avoiding_indexed_address_p. Add "size" attribute.
30297 (*movsf_update2, *movdf_update2): Merge, rename to...
30298 (*mov<mode>_update2): This. Ditto.
30299 (*movsf_update3): Use Pmode. Fix argument to
30300 avoiding_indexed_address_p.
30301 (*movsf_update4): Ditto.
30302 (allocate_stack): Simplify condition. Adjust pattern names.
30304 2019-04-17 Jakub Jelinek <jakub@redhat.com>
30307 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
30308 whitespace at the start of target attribute string.
30310 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
30313 * config/rs6000/power9.md: Add store forwarding bypass.
30315 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
30318 * valtrack.c (dead_debug_insert_temp): Reset debug references
30319 to the return value of a call being removed.
30321 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
30323 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
30324 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
30325 implement target hook.
30326 (arc_memory_move_cost): New function.
30327 (TARGET_REGISTER_MOVE_COST): Define.
30328 (TARGET_MEMORY_MOVE_COST): Likewise.
30329 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
30330 (MEMORY_MOVE_COST): Likewise.
30332 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
30334 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
30335 (sibcall_value_insn): Likewise.
30336 * config/arc/constraints.md (Rs5): Remove.
30338 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
30340 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
30341 for last two fake registers.
30342 (arc_conditional_register_usage): Make sure fake frame and arg
30343 pointer regs are in general regs class.
30344 (FRAME_POINTER_MASK): Remove.
30345 (RETURN_ADDR_MASK): Remove.
30346 (arc_must_save_register): Use hard frame regnum.
30347 (frame_restore_reg): Use hard_frame_pointer_rtx.
30348 (arc_save_callee_saves): Likewise.
30349 (arc_restore_callee_saves): Likewise.
30350 (arc_save_callee_enter): Likewise.
30351 (arc_restore_callee_leave): Likewise.
30352 (arc_save_callee_milli): Likewise.
30353 (arc_eh_return_address_location): Likewise.
30354 (arc_check_multi): Use hard frame regnum.
30355 (arc_can_eliminate): Likewise.
30356 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
30357 for register allocator.
30358 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
30359 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
30360 (FRAME_POINTER_REGNUM): Change it to a fake register.
30361 (HARD_FRAME_POINTER_REGNUM): Defined.
30362 (ARG_POINTER_REGNUM): Change it to a new fake register.
30363 (ELIMINABLE_REGS): Update.
30364 (REGISTER_NAMES): Update names.
30365 * config/arc/arc.md (LP_START): Remove.
30366 (LP_END): Likewise.
30367 (shift_si3_loop): Update pattern.
30369 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
30371 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
30372 to avoid delay slot scheduling.
30373 (arc_must_save_register): Don't save SP.
30374 * config/arc/arc.md (stack_tie): Remove.
30375 (UNSPEC_ARC_STKTIE): Likewise.
30377 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
30378 Shiva Chen <shiva0217@gmail.com>
30380 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
30381 code gen with large shift amount.
30383 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
30385 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
30388 2019-04-16 Jakub Jelinek <jakub@redhat.com>
30391 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
30392 print -m64/-mx32/-m32 if it is true.
30393 (ix86_debug_options, ix86_function_specific_print): Pass true as
30394 ADD_ABI_P to ix86_target_string.
30395 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
30396 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
30397 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
30399 PR rtl-optimization/90082
30400 * dce.c (can_delete_call): New function.
30401 (deletable_insn_p, mark_insn): Use it.
30403 PR tree-optimization/90090
30404 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
30406 (is_division_by_square): Likewise. Formatting fix.
30408 2019-04-16 Richard Biener <rguenther@suse.de>
30410 PR tree-optimization/56049
30411 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
30412 equality check if alias-set zero will prevail.
30414 2019-04-15 Jeff Law <law@redhat.com>
30416 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
30417 size and alignment as unsigned.
30419 2019-04-15 Richard Biener <rguenther@suse.de>
30422 * tree-loop-distribution.c (destroy_loop): Preserve correct
30425 2019-04-15 Richard Biener <rguenther@suse.de>
30427 PR tree-optimization/90071
30428 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
30429 abnormal operands from def stmts.
30431 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
30433 PR rtl-optimization/89794
30434 * combine.c (count_auto_inc): New function.
30435 (try_combine): Count how many auto_inc expressions there were in the
30436 original instructions. Ensure we have the same number in the new
30437 instructions. Remove the code that tried to ensure auto_inc side
30438 effects on i1 and i0 are not lost.
30440 2019-04-15 Richard Biener <rguenther@suse.de>
30443 * tree.h (auto_var_p): Declare.
30444 * tree.c (auto_var_p): New function, split out from ...
30445 (auto_var_in_fn_p): ... here.
30446 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
30448 (new_var_info): Initialize it.
30449 (set_uids_in_ptset): Also set the shadow variable uid if required.
30450 (ipa_pta_execute): Postprocess points-to solutions assigning
30451 shadow variable uids for locals that may reach their containing
30452 function recursively.
30453 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
30454 assert but instead check whether the points-to solution is
30457 2019-04-15 Martin Jambor <mjambor@suse.cz>
30460 * cgraph.c (clone_of_p): Loop over clone chain for each step in
30463 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
30465 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
30467 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
30468 Kito Cheng <kito.cheng@gmail.com>
30469 Shiva Chen <shiva0217@gmail.com>
30471 * config/nds32/nds32-md-auxiliary.c
30472 (nds32_legitimize_pic_address): Use new PIC pattern.
30473 (nds32_legitimize_tls_address): Use new TLS pattern.
30474 (nds32_output_symrel): New.
30475 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
30476 (nds32_alloc_relax_group_id): Ditto.
30477 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
30478 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
30480 (nds32_group_tls_insn): Ditto.
30481 (nds32_group_float_insns): Ditto.
30482 * config/nds32/nds32.md (tls_le): New.
30485 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
30487 * configure: Add nds32 target for dwarf2 debug_line checking.
30488 * configure.ac: Regenerated.
30490 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
30493 * ipa-devirt.c (skip_in_fields_list_p): New.
30494 (odr_types_equivalent_p): Use it.
30496 2019-04-13 Jakub Jelinek <jakub@redhat.com>
30499 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
30500 instead of strncmp when checking for thumb and arm. Formatting fixes.
30502 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
30504 * doc/install.texi: Document --with-target-system-zlib.
30506 2019-04-12 Martin Sebor <msebor@redhat.com>
30512 * targhooks.c (default_vector_alignment): Avoid assuming
30513 argument fits in SHWI.
30514 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
30515 a shift expression.
30516 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
30518 2019-04-12 Jakub Jelinek <jakub@redhat.com>
30520 PR rtl-optimization/89965
30521 * dce.c: Include rtl-iter.h.
30522 (struct check_argument_load_data): New type.
30523 (check_argument_load): New function.
30524 (find_call_stack_args): Check for loads from stack slots still tracked
30525 in sp_bytes and punt if any is found.
30527 * config/mips/loongson-mmiintrin.h: Fix up #error message.
30529 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
30531 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
30532 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
30534 2019-04-12 Martin Liska <mliska@suse.cz>
30536 PR middle-end/89970
30537 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
30539 (separate_attrs): Handle multiple 'default's.
30540 (expand_target_clones): Rework error handling code.
30542 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
30545 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
30546 mode of vector rather than mode of destination for move instruction.
30547 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
30548 Use QI inner mode with V16QI vector mode.
30550 2019-04-12 Jakub Jelinek <jakub@redhat.com>
30553 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
30554 "invalid %%t operand" in output_operand_lossage message.
30556 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
30558 * config/s390/predicates.md (permute_pattern_operand): New
30560 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
30561 operand for the permute pattern.
30562 ("*vec_perm<mode>"): New insn definition.
30563 ("bswap<mode>"): Generate the permute pattern operand in the
30564 expander and perform the operand reloads for pre arch13 level
30566 ("*bswap<mode>_emu"): Rename to ...
30567 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
30568 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
30569 Add the USE operand for the permute pattern.
30570 ("*vec_set_bswap_vec<mode>"): Likewise.
30572 2019-04-12 Jakub Jelinek <jakub@redhat.com>
30575 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
30576 and gcc_unreachable if it fails, just call tree_to_uhwi which
30577 verifies that too. Test TREE_CHAIN instead of list_length > 1.
30578 Start warning message with a lower-case letter. Formatting fixes.
30580 PR rtl-optimization/90026
30581 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
30582 successors, look for BARRIERs inside of the whole BB_FOOTER chain
30583 rather than just at the start of it. If e->src BB_FOOTER is not NULL
30584 in cfglayout mode, use emit_barrier_after_bb.
30586 2018-04-11 Steve Ellcey <sellcey@marvell.com>
30588 PR rtl-optimization/87763
30589 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
30592 2019-04-11 Tom de Vries <tdevries@suse.de>
30594 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
30595 max macro using statement expression.
30597 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
30599 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
30600 * xcoffout.c (xcoff_private_rodata_section_name): Define.
30601 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
30602 read_only_private_data_section using xcoff_private_rodata_section_name.
30603 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
30605 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
30608 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
30610 2019-04-11 Jakub Jelinek <jakub@redhat.com>
30612 PR rtl-optimization/89965
30613 * dce.c (sp_based_mem_offset): New function.
30614 (find_call_stack_args): Use sp_based_mem_offset.
30616 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
30618 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
30620 2019-04-11 Richard Biener <rguenther@suse.de>
30622 PR tree-optimization/90020
30623 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
30624 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
30625 * tree-ssa-pre.c (compute_avail): Use it to not put
30626 possibly trapping references after a call that might not
30627 return into EXP_GEN.
30628 * gcse.c (compute_hash_table_work): Do not elide
30629 marking a block containing a call if the call might not
30632 2019-04-11 Richard Biener <rguenther@suse.de>
30634 PR tree-optimization/90018
30635 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
30636 Test both SLP and interleaving variants.
30638 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
30640 * config/s390/8561.md: New file.
30641 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30642 Add arch13 cpu model.
30643 * config/s390/s390-opts.h (enum processor_type): Likewise.
30644 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
30645 (s390_get_unit_mask): Likewise.
30646 (s390_is_fpd): Likewise.
30647 (s390_is_fxd): Likewise.
30648 * config/s390/s390.h (s390_tune_attr): Likewise.
30649 * config/s390/s390.md: Include arch13 pipeline description.
30650 * config/s390/s390.opt: Add arch13.
30652 2018-04-10 Steve Ellcey <sellcey@marvell.com>
30654 PR rtl-optimization/87763
30655 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
30657 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
30659 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
30661 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
30662 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
30663 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
30664 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
30666 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
30668 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
30669 "Although" in -fipa-icf documentation.
30671 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
30672 of using multiple -g options.
30674 2019-04-10 Martin Liska <mliska@suse.cz>
30676 PR gcov-profile/89959
30677 * doc/gcov.texi: Make documentation of -x option
30680 2019-04-10 Richard Biener <rguenther@suse.de>
30682 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
30684 (DR_GROUP_SAME_DR_STMT): Remove.
30685 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
30686 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
30687 replace with assert.
30688 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
30689 (vect_record_grouped_load_vectors): Remove unreachable code.
30691 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
30694 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
30695 obsolete reference to N.
30697 2019-04-10 Jakub Jelinek <jakub@redhat.com>
30699 PR middle-end/90025
30700 * expr.c (store_expr): Set properly size on the MEM passed to
30704 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
30705 with strlen in between hostsz-3 and hostsz-1 inclusive when no
30706 translation is needed, and when translation is needed, only append
30707 ... if the string length is hostsz or more bytes long. Avoid using
30710 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
30713 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
30714 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
30716 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
30717 differences directly.
30718 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
30720 2019-04-09 Jakub Jelinek <jakub@redhat.com>
30722 PR translation/90011
30723 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30725 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
30727 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
30728 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
30729 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
30730 trailing space from -gsplit-dwarf diagnostics.
30732 PR tree-optimization/89998
30733 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
30734 instead of integer_type_node if possible, don't add ranges if return
30735 type is not compatible with int.
30736 * gimple-fold.c (gimple_fold_builtin_sprintf,
30737 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
30740 2019-04-09 Martin Liska <mliska@suse.cz>
30742 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
30743 * doc/install.texi: Document the new config.
30745 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
30747 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
30748 use gimple_expr_type for load and store calls. Skip over the
30749 condition argument in a conditional internal function.
30750 Protect use of TREE_INT_CST_LOW.
30752 2019-04-09 Jakub Jelinek <jakub@redhat.com>
30755 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
30756 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
30757 trailing period from it too.
30759 2019-04-08 wu yuan <wuyuan5@huawei.com>
30761 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
30762 * config/aarch64/aarch64.md: Add "tsv110.md".
30763 * config/aarch64/tsv110.md: New file.
30765 2019-04-08 Richard Biener <rguenther@suse.de>
30767 PR tree-optimization/90006
30768 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
30771 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
30774 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
30776 (fma_root_node): Likewise.
30777 (func_fma_steering): Likewise.
30779 2019-04-08 Jakub Jelinek <jakub@redhat.com>
30781 PR rtl-optimization/89865
30782 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
30784 PR rtl-optimization/89865
30785 * config/i386/i386.md
30786 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
30787 numbers not to clash with the additional operands[4].
30788 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
30789 with extra register copy in the middle.
30791 2019-04-08 Martin Liska <mliska@suse.cz>
30793 PR gcov-profile/89961
30794 * doc/gcov.texi: Document data_file.
30795 * gcov.c (generate_results): Add data_info into JSON output.
30797 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30799 PR tree-optimization/89725
30800 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
30801 loop's chrec as invariant symbol.
30802 * tree-chrec.h (chrec_contains_symbols): New parameter.
30803 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
30804 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
30805 function of loops not in DDR's loop_nest.
30806 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30808 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
30811 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
30814 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
30817 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
30818 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
30820 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
30822 * sched-deps.c (sched_macro_fuse_insns): Check return value of
30823 targetm.fixed_condition_code_regs.
30825 2019-04-05 Richard Biener <rguenther@suse.de>
30829 * tree-cfgcleanup.c (remove_forwarder_block): Always move
30830 debug bind stmts but reset them if they are not valid at the
30833 2019-04-05 Martin Liska <mliska@suse.cz>
30835 PR translation/89936
30836 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
30837 order to wrap keywords or arguments.
30838 * collect2.c (main): Likewise.
30839 (scan_prog_file): Likewise.
30840 (scan_libraries): Likewise.
30841 * common/config/riscv/riscv-common.c
30842 (riscv_subset_list::parsing_subset_version): Likewise.
30843 (riscv_subset_list::parse_std_ext): Likewise.
30844 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30846 * config/arm/arm.c (arm_option_override): Likewise.
30847 * config/cris/cris.c (cris_print_operand): Likewise.
30848 * config/darwin-c.c (darwin_pragma_options): Likewise.
30849 (darwin_pragma_unused): Likewise.
30850 (darwin_pragma_ms_struct): Likewise.
30851 * config/ft32/ft32.c (ft32_print_operand): Likewise.
30852 * config/i386/i386.c (print_reg): Likewise.
30853 (ix86_print_operand): Likewise.
30854 * config/i386/xm-djgpp.h: Likewise.
30855 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
30856 * config/m32c/m32c.c (m32c_option_override): Likewise.
30857 * config/msp430/msp430.c (msp430_option_override): Likewise.
30858 * config/nds32/nds32.c (nds32_option_override): Likewise.
30859 * config/nvptx/mkoffload.c (main): Likewise.
30860 * config/rx/rx.c (rx_print_operand): Likewise.
30861 (valid_psw_flag): Likewise.
30862 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
30863 (vms_pragma_nomember_alignment): Likewise.
30864 (vms_pragma_extern_model): Likewise.
30865 * lto-wrapper.c (compile_offload_image): Likewise.
30866 * omp-offload.c (oacc_parse_default_dims): Likewise.
30867 * symtab.c (symtab_node::verify_base): Likewise.
30868 * tlink.c (recompile_files): Likewise.
30869 (start_tweaking): Likewise.
30870 * tree-profile.c (parse_profile_filter): Likewise.
30872 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
30874 PR tree-optimization/89956
30875 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30876 multiple negates of the same value.
30878 2019-04-04 Martin Sebor <msebor@redhat.com>
30880 PR middle-end/89957
30881 PR middle-end/89911
30882 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30883 have the same precision since the function crashes otherwise.
30884 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30885 has non-zero arguments.
30887 2019-04-04 Martin Sebor <msebor@redhat.com>
30889 PR middle-end/89934
30890 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30891 out if the number of arguments is less than expected.
30893 2019-04-04 Jeff Law <law@redhat.com>
30895 PR rtl-optimization/89399
30896 * ree.c (combine_set_extension): Use single_set rather than
30897 digging into PATTERN for items on the candidate list.
30898 (combine_reaching_defs): Likewise.
30900 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
30902 PR rtl-optimization/46590
30903 * loop-invariant.c (find_defs): Move df_remove_problem and
30904 df_process_deferred_rescans to move_invariants.
30905 Move df_live_add_problem and df_live_set_all_dirty calls
30906 to move_invariants.
30907 (move_invariants): Likewise.
30908 (move_loop_invariants): Likewise, making the df_live calls
30909 conditional on -O. Remove the problem again if we added it
30912 2019-04-03 qing zhao <qing.zhao@oracle.com>
30914 PR tree-optimization/89730
30915 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30916 -flive-patching=inline-only-static.
30917 (can_inline_edge_by_limits_p): Add the checking for
30918 -flive-patching=inline-only-static and grant always_inline
30919 even when -flive-patching=inline-only-static is specified.
30921 2019-04-03 Jeff Law <law@redhat.com>
30923 PR rtl-optimization/81025
30924 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30926 2019-04-03 Richard Biener <rguenther@suse.de>
30928 PR tree-optimization/84101
30929 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30930 regs.h for hard_regno_nregs.
30931 (cfun_returns): New helper.
30932 (vect_model_store_cost): When vectorizing a store to a decl
30933 we return and the function ABI returns in a multi-reg location
30934 account for the possible spilling that will happen.
30936 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30938 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30939 displacement addresses for vector mode operands.
30941 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30943 * config/arc/arc.c (GMASK_LEN): Define.
30944 (arc_restore_callee_saves): Restore first blink when
30947 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30949 * doc/extend.texi: Add deprecated comment on sign-return-address
30950 function attribute and add mbranch-protection.
30951 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30953 2019-04-03 Richard Biener <rguenther@suse.de>
30956 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30957 the all target phony.
30959 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30963 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30964 Return false for variable DImode shifts.
30965 (dimode_scalar_chain::compute_convert_gain): Do not handle
30966 register count operand in variable DImode shifts.
30967 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30968 count argument of a variable shift instruction to a vector register.
30969 (dimode_scalar_chain::convert_reg): Remove support to convert
30970 count argument of a variable shift instruction.
30972 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30974 PR rtl-optimization/84206
30975 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30976 iterating over loop headers.
30978 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30980 PR rtl-optimization/85876
30981 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30982 beyond the original fence.
30984 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30986 * config.gcc: Mark spu* targets as deprecated/obsolete.
30988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30990 * config/s390/s390-builtin-types.def: New builtin function type
30991 definitions. Remove unused types.
30992 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30993 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30994 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30995 overloaded builtins.
30996 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30997 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30998 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30999 (vec_double, vec_signed, vec_unsigned): Define to use the new
31000 overloaded builtins.
31001 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
31004 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31006 * config/s390/s390-builtin-types.def: New builtin function type
31008 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
31009 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
31010 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
31011 (s390_vstrszh, s390_vstrszf): New low-level builtins.
31012 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
31013 constant definitions.
31014 * config/s390/vecintrin.h (vec_search_string_cc)
31015 (vec_search_string_until_zero_cc): New builtin name definitions.
31016 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
31018 ("vec_vstrs<mode>"): New insn definition.
31020 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31022 * config/s390/s390-builtin-types.def: Add new builtin function
31024 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
31025 New overloaded builtins.
31026 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
31028 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
31029 (UNSPEC_VEC_SLDBYTE): ... this.
31030 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
31031 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
31033 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
31034 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
31035 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
31037 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31039 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
31040 New insn definition.
31041 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
31042 * config/s390/vector.md (V_HW_HSD): ... here.
31044 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31046 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
31047 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
31048 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
31049 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
31050 New insn definitions.
31052 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31054 * config/s390/s390-builtin-types.def: Add new builtin function type.
31055 * config/s390/s390-builtins.def: Add overloaded builtin
31056 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
31057 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
31058 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
31059 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
31060 ("eltswap<mode>"): New expander.
31061 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
31064 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31066 * config/s390/s390-builtin-types.def: Add new builtin function types.
31067 * config/s390/s390-builtins.def: Add overloaded builtin
31068 s390_vec_revb. Add low-level builtins for vlbr and vstbr
31070 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
31071 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
31072 ("bswap<mode>"): New expander.
31073 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
31075 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31077 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
31078 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
31079 vector builtin version number in __VEC__.
31081 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31083 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
31085 (SFSI): New mode attribute.
31086 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
31087 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
31089 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
31090 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
31091 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
31092 ("floatsi<mode>2"): Add wcefb instruction.
31094 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31096 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
31097 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
31099 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
31100 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
31101 support 32 bit fp-int conversions. Rename to ...
31102 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
31103 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
31104 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
31105 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
31108 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31110 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
31111 if-then-else constructs if we can use the select instruction.
31112 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
31114 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31116 * config/s390/s390.md ("*popcountdi_arch13_cc")
31117 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
31119 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
31120 Append _z196 to make it ...
31121 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
31122 ("popcounthi2_z196"): ... this.
31123 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
31124 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
31126 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31128 * config/s390/s390.c (s390_canonicalize_comparison): Convert
31129 certain compares for arch13 in order to make use of the condition
31130 code result produced by the new instructions.
31131 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
31132 nxrk, and nxgrk instruction patterns.
31133 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
31134 (inv_no): Add new code iterator together with some attributes.
31135 ("*andc_split_<mode>"): Disable splitter for arch13.
31136 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
31137 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
31138 ("*<ANDOR:bitops_name>c<GPR:mode>")
31139 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
31140 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
31141 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
31142 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
31144 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
31146 * common/config/s390/s390-common.c (processor_flags_table): New
31148 * config.gcc: Support arch13 with the --with-arch= configure flag.
31149 * config/s390/driver-native.c (s390_host_detect_local_cpu):
31150 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
31151 * config/s390/s390.c (s390_get_sched_attrmask)
31152 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
31153 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
31154 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
31155 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
31156 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
31158 * config/s390/s390.opt: Support arch13 as processor type in
31159 command line options.
31161 2019-04-02 Martin Liska <mliska@suse.cz>
31163 PR translation/89912
31164 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
31165 Fix param description of graphite-max-arrays-per-scop.
31167 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
31169 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
31170 (ASAN_CC1_SPEC): Use it in 64-bit mode.
31171 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
31173 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
31175 PR rtl-optimization/85412
31176 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
31177 sel_sched_region_1, not after.
31179 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
31181 PR rtl-optimization/86928
31182 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
31183 compute_live if necessary.
31184 (sel_redirect_edge_and_branch): Likewise.
31186 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
31188 PR rtl-optimization/89865
31189 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
31190 register if it is a part of small class.
31192 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
31194 PR rtl-optimization/87273
31195 * sel-sched-ir.c (merge_fences): Remove assert.
31197 2019-04-01 Richard Biener <rguenther@suse.de>
31199 PR tree-optimization/46590
31200 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
31201 (dom_walker::m_reachability): Add in place of...
31202 (dom_walker::m_skip_unreachable_blocks): ...this.
31203 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
31204 Move complex initialization ...
31205 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
31206 lazily and initialize edge flags on each invocation.
31207 (dom_walker::bb_reachable): Use m_reachability.
31209 2019-04-01 Martin Liska <mliska@suse.cz>
31212 * opt-suggestions.c (option_proposer::build_option_suggestions):
31213 Add variant without any argument in order to provide better
31216 2019-04-01 Richard Biener <rguenther@suse.de>
31219 * gimple.c: Include langhooks.h.
31220 (gimple_get_alias_set): Treat enumeral types as the underlying
31223 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
31224 Eric Botcazou <ebotcazou@adacore.com>
31226 PR rtl-optimization/89862
31227 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
31228 that operates on the full registers for WORD_REGISTER_OPERATIONS
31231 2019-03-29 Jim Wilson <jimw@sifive.com>
31233 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
31234 Clear MASK_RVC and then set if C subset supported.
31236 2019-03-29 Jakub Jelinek <jakub@redhat.com>
31239 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
31240 non-addressable complit into its initializer if it is volatile.
31242 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
31244 * opts-common.c (integral_argument): Set errno properly in one case.
31246 2019-03-29 Martin Liska <mliska@suse.cz>
31248 * doc/invoke.texi: Remove -Wchkp from documentation.
31250 2019-03-29 Martin Liska <mliska@suse.cz>
31252 * dbgcnt.c (print_limit_reach): New function.
31255 2019-03-29 Martin Liska <mliska@suse.cz>
31257 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
31258 (dbg_cnt_process_opt): Parse first tokens aas
31259 dbg_cnt_process_single_pair is also using strtok.
31261 2019-03-29 Jakub Jelinek <jakub@redhat.com>
31263 PR rtl-optimization/87485
31264 * function.c (expand_function_end): Move stack_protect_epilogue
31265 before loading of return value into hard register(s).
31267 2019-03-28 Jakub Jelinek <jakub@redhat.com>
31269 PR middle-end/89621
31270 * tree-inline.h (struct copy_body_data): Add
31271 dont_remap_vla_if_no_change flag.
31272 * tree-inline.c (remap_type_3, remap_type_2): New functions.
31273 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
31274 and remap_type_2 returns false.
31275 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
31276 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
31277 only from where it is copied to nested contexts.
31279 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
31282 * config/i386/i386.md (RMW operation with LEA peephole):
31283 Use LEAMODE mode attribute instead of SWI mode iterator for
31286 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
31289 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
31290 Also process XEXP (src, 0) of a shift insn.
31292 2019-03-28 David Malcolm <dmalcolm@redhat.com>
31294 PR middle-end/89725
31295 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
31296 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
31298 2019-03-28 Jakub Jelinek <jakub@redhat.com>
31300 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
31302 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
31303 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
31304 immediately after first one with df_analyze in between, but rather
31305 process all bbs, queueing ones that need second pass in a worklist,
31306 df_analyze, process queued debug insn changes and if second pass is
31307 needed, process bbs from worklist, df_analyze, process queued debug
31310 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
31311 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
31312 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
31314 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
31317 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
31320 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
31323 * config/i386/i386.c (ix86_function_value_1): Call the newly added
31324 function for 32-bit MS_ABI.
31325 (function_value_ms_32): New function.
31327 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
31329 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
31330 (movdi): Call gen_movdi_symbol_save_scc.
31331 (gen_movdi_symbol_save_scc): New insn and split.
31333 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
31335 PR rtl-optimization/89313
31336 * function.c (matching_constraint_num): New static function.
31337 (match_asm_constraints_1): Use it. Fixup white space and comment.
31338 Don't replace inputs with non-matching constraints which conflict
31339 with early clobber outputs.
31341 2019-03-27 Jeff Law <law@redhat.com>
31343 PR rtl-optimization/87761
31344 PR rtl-optimization/89826
31345 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
31347 (pass_cprop_hardreg::execute): Call df_analyze after adding the
31348 note problem to get REG_DEAD/REG_UNUSED notes updated.
31350 2019-03-27 Richard Biener <rguenther@suse.de>
31352 PR tree-optimization/89463
31353 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
31354 queue edges to remove.
31355 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
31356 dead stmts. Delay edge removal until PHIs are removed to
31357 make debug-stmt creation not confused by seemingly degenerate
31360 2019-03-27 Alan Modra <amodra@gmail.com>
31362 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
31364 * config/rs6000/darwin.h: Likewise.
31365 * config/rs6000/rs6000.c: Likewise.
31367 2019-03-27 Alan Modra <amodra@gmail.com>
31369 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
31370 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
31372 2019-03-26 Andrew Waterman <andrew@sifive.com>
31373 Jim Wilson <jimw@sifive.com>
31375 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
31376 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
31377 (generic_idivdi, generic_fmul_single, generic_fmul_double)
31378 (generic_fdiv, generic_fsqrt): Add check for generic tune.
31379 (generic_alu): Add auipc to type list.
31380 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
31381 (riscv_microarchitecture): Declare.
31382 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
31383 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
31385 (riscv_microarchitecture): New.
31386 (sifive_7_tune_info): New.
31387 (riscv_cpu_info_table): Add microarchitecture value for rocket and
31388 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
31390 (riscv_store_data_bypass_p): New.
31391 (riscv_option_override): Set riscv_microarchitecture from
31392 cpu->microarchitecture.
31393 * config/riscv/riscv.md: Include sifive-7.md.
31396 (auipc<mode>): Change type to auipc.
31397 (restore_stack_nonlocal): New.
31398 * config/riscv/sifive-7.md: New.
31399 * doc/invoke.texi (RISC-V Options): Update mtune docs.
31401 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
31404 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
31405 Also process XEXP (src, 0) of a shift insn.
31407 2019-03-26 Richard Biener <rguenther@suse.de>
31409 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
31410 (copy_debug_stmt): Likewise.
31411 (expand_call_inline): Likewise.
31412 (copy_bb): Avoid redundant lookup & set of gimple_block.
31413 * gimple-low.c (lower_gimple_return): Likewise.
31414 (lower_builtin_setjmp): Likewise.
31416 2019-03-26 Jakub Jelinek <jakub@redhat.com>
31418 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
31419 is constant 0, turn into static const data member initialized to false.
31420 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
31421 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
31423 2019-03-26 Jason Merrill <jason@redhat.com>
31424 Jakub Jelinek <jakub@redhat.com>
31426 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
31428 (mem_alloc_description::release_object_overhead): Fix comment typos.
31429 * hash-table.h (hash_table::~hash_table): Call
31430 release_instance_overhead only if m_entries is non-NULL, otherwise
31431 call unregister_descriptor.
31433 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
31435 PR tree-optimization/81740
31436 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31437 In case of outer loop vectorization, check for backward dependence
31438 at the inner loop if outer loop dependence is reversed.
31440 2019-03-26 Alan Modra <amodra@gmail.com>
31442 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
31443 rs6000_vector_mem init. Correct wI and wJ comment.
31445 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
31447 PR rtl-optimization/88347
31448 PR rtl-optimization/88423
31449 * sched-deps.c (sched_analyze_insn): Take into account that for
31450 tablejumps the barrier appears after a label and a jump_table_data.
31452 2019-03-25 Martin Sebor <msebor@redhat.com>
31455 * c-common.c (check_user_alignment): Rename local. Correct maximum
31456 alignment in diagnostic. Avoid assuming argument fits in SHWI,
31457 convert it to UHWI when it fits.
31459 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
31462 * dwarf2out.c (premark_used_variables): New function.
31463 (prune_unused_types_walk): Do not mark not premarked external
31465 (prune_unused_types): Call premark_used_variables.
31467 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
31469 PR rtl-optimization/89676
31470 * lra-constraints.c (curr_insn_transform): Do match reload for
31471 early clobbers when the match was successful only for different
31474 2019-03-25 Martin Sebor <msebor@redhat.com>
31476 * doc/extend.texi (Common Type Attributes): Document vector_size.
31477 (Common Variable Attributes): Mention size constraint. Correct
31479 (Vector Extensions): Use @dfn when defining bas type. Clarify
31480 base type and size constraints.
31482 2019-03-25 Richard Biener <rguenther@suse.de>
31484 PR tree-optimization/89789
31485 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
31486 changes from non-undefined back to undefined.
31488 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
31490 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
31491 heap string and a gc string, but since this variable is unknown to
31492 ggc the gc string might get reused and corrupted. Fixed by always
31493 using a heap string.
31495 2019-03-25 Richard Biener <rguenther@suse.de>
31497 PR tree-optimization/89779
31498 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
31499 to remove IV defs, delay actual removal.
31500 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
31501 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
31502 very end, properly also reset loop control IV information.
31504 2019-03-25 Richard Biener <rguenther@suse.de>
31506 PR tree-optimization/89802
31507 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
31508 move EH data to folded stmt.
31510 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
31512 * config/s390/s390-builtin-types.def: Remove few unused types and
31513 fix sort order for others.
31515 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
31517 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
31518 expected and found types with -mdebug during builtin matching.
31520 2019-03-25 Richard Biener <rguenther@suse.de>
31522 PR middle-end/89790
31523 * fold-const.c (operand_equal_p): Revert last change with
31526 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
31528 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
31529 notes for the result of the __tls_get_addr calls.
31530 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
31532 2019-03-24 Jeff Law <law@redhat.com>
31534 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
31536 PR rtl-optimization/87761
31537 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
31538 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
31540 (pass_cprop_hardreg::execute): Add df note problem and defer insn
31541 rescans. Reprocess blocks as needed, calling df_analyze before
31542 reprocessing. Always call df_analyze before fixing up debug bind
31545 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
31547 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
31550 2019-03-22 Andrew Pinski <apinski@marvell.com>
31552 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
31553 attrribute for uxtw.
31555 2019-03-26 Jeff Law <law@redhat.com>
31557 PR rtl-optimization/87761
31558 * config/mips/mips-protos.h (mips_split_move): Add new argument.
31559 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
31560 (mips_split_move): Accept new INSN argument. Try to forward SRC
31561 into the next instruction.
31562 (mips_split_move_insn): Pass INSN through to mips_split_move.
31564 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
31566 PR rtl-optimization/89676
31567 * lra-constraints.c (curr_insn_transform): Do match reload for
31568 early clobbers even if the match was successful.
31570 2019-03-22 Jakub Jelinek <jakub@redhat.com>
31573 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
31575 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
31577 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
31579 2019-03-22 Jakub Jelinek <jakub@redhat.com>
31581 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
31582 <avx512>_fmsub_<mode>_mask3<round_name>,
31583 <avx512>_fnmadd_<mode>_mask3<round_name>,
31584 <avx512>_fnmsub_<mode>_mask3<round_name>,
31585 avx512f_vmfmadd_<mode>_mask3<round_name>,
31586 avx512f_vmfmsub_<mode>_mask3<round_name>,
31587 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
31588 instead of register_operand and %v instead of v for match_operand 1.
31589 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
31590 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
31591 <round_nimm_predicate> instead of register_operand and %v instead of v
31592 for match_operand 1.
31594 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
31595 <avx512>_fmadd_<mode>_mask3<round_name>,
31596 <avx512>_fmsub_<mode>_mask<round_name>,
31597 <avx512>_fmsub_<mode>_mask3<round_name>,
31598 <avx512>_fnmadd_<mode>_mask<round_name>,
31599 <avx512>_fnmadd_<mode>_mask3<round_name>,
31600 <avx512>_fnmsub_<mode>_mask<round_name>,
31601 <avx512>_fnmsub_<mode>_mask3<round_name>,
31602 <avx512>_fmaddsub_<mode>_mask<round_name>,
31603 <avx512>_fmaddsub_<mode>_mask3<round_name>,
31604 <avx512>_fmsubadd_<mode>_mask<round_name>,
31605 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
31606 <round_nimm_predicate> instead of nonimmediate_operand.
31607 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
31608 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
31609 Use register_operand instead of <round_nimm_predicate> for the
31610 operand that needs to match output.
31611 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
31612 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
31613 Likewise. Formatting fixes.
31616 * config/i386/i386.c (enum ix86_builtins): Remove
31617 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
31618 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
31619 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
31620 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
31621 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
31622 __builtin_ia32_vfmsubss3_mask3): New builtins.
31623 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
31624 avx512f_vmfmadd_<mode>_mask3<round_name>,
31625 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
31626 *avx512f_vmfmsub_<mode>_mask<round_name>,
31627 avx512f_vmfmsub_<mode>_mask3<round_name>,
31628 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
31629 *avx512f_vmfnmadd_<mode>_mask<round_name>,
31630 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
31631 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
31632 *avx512f_vmfnmsub_<mode>_mask<round_name>,
31633 avx512f_vmfnmsub_<mode>_mask3<round_name>,
31634 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
31635 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
31636 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
31637 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
31638 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
31639 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
31640 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
31641 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
31642 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
31643 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
31644 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
31645 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
31646 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
31647 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
31648 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
31649 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
31650 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
31651 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
31652 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
31653 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
31654 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
31655 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
31657 2019-03-21 Martin Sebor <msebor@redhat.com>
31659 PR tree-optimization/89350
31660 * builtins.c (compute_objsize): Also ignore offsets whose upper
31662 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
31663 (builtin_memref::builtin_memref): Initialize new member.
31664 Allow EXPR to be null.
31665 (builtin_memref::extend_offset_range): Replace local with a member.
31666 Avoid assuming pointer offsets are unsigned.
31667 (builtin_memref::set_base_and_offset): Determine base object
31668 before computing offset range.
31669 (builtin_access::builtin_access): Handle memset.
31670 (builtin_access::generic_overlap): Replace local with a member.
31671 (builtin_access::strcat_overlap): Same.
31672 (builtin_access::overlap): Same.
31673 (maybe_diag_overlap): Same.
31674 (maybe_diag_access_bounds): Same.
31675 (wrestrict_dom_walker::check_call): Handle memset.
31676 (check_bounds_or_overlap): Same.
31678 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
31679 Jakub Jelinek <jakub@redhat.com>
31682 * tree.c (fld_type_variant, fld_incomplete_type_of,
31683 fld_process_array_type): Call fld->pset.add and don't call
31684 add_tree_to_fld_list if it returns true.
31685 (free_lang_data_in_type): Similarly with self-recursive call. Purge
31686 non-marked types from TYPE_NEXT_VARIANT list.
31687 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
31689 2019-03-21 Jakub Jelinek <jakub@redhat.com>
31691 * hash-table.h (hash_table): Add Lazy template parameter defaulted
31692 to false, if true, don't alloc_entries during construction, but defer
31693 it to the first method that needs m_entries allocated.
31694 (hash_table::hash_table, hash_table::~hash_table,
31695 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
31696 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
31697 hash_table::clear_slot, hash_table::traverse_noresize,
31698 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
31699 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
31701 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
31702 NO_INSERT instead of find_with_hash.
31703 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
31704 hash_set::m_table): Add Lazy to template params of hash_table.
31705 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
31706 * attribs.c (test_attribute_exclusions): Likewise.
31707 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
31708 hash_set. Add tests for hash_set with Lazy = true.
31710 2019-03-21 Richard Biener <rguenther@suse.de>
31712 PR tree-optimization/89779
31713 * tree.c (tree_nop_conversion): Consolidate and fix defensive
31714 checks with respect to released SSA names now having error_mark_node
31716 * fold-const.c (operand_equal_p): Likewise.
31718 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
31721 * config/s390/s390.c (global_not_special_regno_p): Move to make it
31723 (s390_optimize_register_info): Use global_not_special_regno_p to
31724 check for global regs.
31726 2019-03-20 Jakub Jelinek <jakub@redhat.com>
31729 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
31730 update this_alternative nor this_alternative_set.
31732 2019-03-19 Jim Wilson <jimw@sifive.com>
31735 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
31736 align, size, offset. Use them to handle a BLKmode reference. Update
31738 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
31740 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31742 PR rtl-optimization/89768
31743 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
31744 instead of GEN_INT.
31745 (unroll_loop_runtime_iterations): Likewise.
31747 2019-03-19 Martin Sebor <msebor@redhat.com>
31749 PR tree-optimization/89644
31750 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
31751 rather than endptr as an indicator of nul-termination.
31753 PR tree-optimization/89644
31754 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
31755 arrays in determining sequence sizes in strncpy and stpncpy.
31757 2019-03-19 Martin Liska <mliska@suse.cz>
31759 PR middle-end/89737
31760 * predict.c (combine_predictions_for_bb): Empty likely_edges and
31761 unlikely_edges if there's an edge that belongs to both these sets.
31763 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
31766 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
31767 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
31768 go via a stack temporary.
31770 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31773 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
31774 instead of gen_rtx_SUBREG.
31775 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
31777 2019-03-19 Richard Biener <rguenther@suse.de>
31780 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
31782 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
31786 * tree.c (free_lang_data_in_decl): Do not free context of C++
31789 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31792 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
31793 subs for the first alternative except when operands[3] is 1.
31796 * gimplify.c (gimplify_asm_expr): For output argument with
31797 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
31800 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
31802 PR rtl-optimization/89753
31803 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31804 explicit unrolling factor even more robust.
31806 2019-03-19 Jakub Jelinek <jakub@redhat.com>
31809 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
31810 compensation use x2 += 1 instead of x2 -= -1 and when honoring
31811 signed zeros, do another copysign after the compensation.
31813 2019-03-18 Martin Sebor <msebor@redhat.com>
31815 PR tree-optimization/89720
31816 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
31817 more conservatively, the same as anti-range.
31819 2019-03-18 Richard Biener <rguenther@suse.de>
31821 PR middle-end/88945
31822 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
31823 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
31824 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
31825 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
31827 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
31829 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
31830 Extend queue to 1024 entries.
31831 Add "consumed" field.
31832 (gomp_print_output): Remove print_index parameter.
31833 Add final parameter.
31834 Change limit to unsigned.
31835 Use consumed field to implement circular buffer.
31836 Detect interrupted print in final pass.
31837 Flush output at the end.
31838 (run): Update gomp_print_output usage.
31839 (main): Initialize kernargs->output_data.consumed.
31841 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
31843 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
31844 calculation of the minimum number of scalar iterations for
31845 fully-predicated loops.
31847 2019-03-18 Martin Jambor <mjambor@suse.cz>
31849 PR tree-optimization/89546
31850 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
31851 any propagation to its children took place.
31853 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
31856 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
31857 parameter, and make use of it.
31858 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
31860 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31862 * config/arc/arc.opt (mcode-density-frame): Get the inital value
31863 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
31864 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31865 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
31866 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31867 match what the ops is doing.
31868 (push_multi_fp_blink): Likewise.
31869 * config/arc/arc.c (arc_override_options): Enable enter/leave when
31870 compiling for size and elf target.
31871 (arc_save_callee_enter): Adjust note to match what enter/leave
31874 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31876 * config/arc/arc.md (tst_movb): Fix constraint.
31878 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31880 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31882 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31884 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31885 * config/arc/arc.c (arc_conditional_register_usage): Remove all
31886 reg_alloc_order references.
31887 (size_alloc_order): Define.
31888 (arc_adjust_reg_alloc_order): New function.
31889 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31891 (ADJUST_REG_ALLOC_ORDER): Define.
31892 (HONOR_REG_ALLOC_ORDER): Likewise.
31894 2019-03-18 Richard Biener <rguenther@suse.de>
31897 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31898 loads and stores a bit more.
31900 2019-03-18 Richard Biener <rguenther@suse.de>
31903 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31904 load pessimization to stores as well.
31906 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31908 PR middle-end/86979
31909 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31910 successor, use NULL as its av set.
31912 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31914 PR rtl-optimization/89721
31915 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31917 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31920 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31921 When handling vec_extract, use modular arithmetic to allow
31922 constant selectors greater than vector length.
31923 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31924 V1TImode vectors to have constant selector values greater than 0.
31925 Use modular arithmetic to compute vector index.
31926 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31927 index for in-memory vectors. Correct code generation for
31928 in-register vectors.
31929 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31932 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31936 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31939 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31942 * tree.c (inchash::add_expr): Strip any location wrappers.
31943 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31944 after hash verification.
31947 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31948 SIGN_EXTEND and ZERO_EXTEND.
31950 2019-03-14 Jason Merrill <jason@redhat.com>
31951 Jakub Jelinek <jakub@redhat.com>
31953 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31954 than if is_empty (*slot).
31955 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31956 existing elt and for elt removal.
31957 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31958 of already removed elt.
31960 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31963 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31964 REG_EH_REGION note.
31966 2019-03-14 Martin Liska <mliska@suse.cz>
31969 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31971 2019-03-14 Richard Biener <rguenther@suse.de>
31974 * config/i386/i386.c (make_resolver_func): Properly set
31975 DECL_CONTEXT on the RESULT_DECL.
31976 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31978 2019-03-14 Richard Biener <rguenther@suse.de>
31980 * gimple-pretty-print.c: Include cfgloop.h.
31981 (dump_gimple_phi): Adjust.
31982 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31983 (pp_cfg_jump): Adjust.
31984 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31985 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31986 (lower_phi_internal_fn): Remove.
31987 (verify_gimple_call): Remove IFN_PHI special-casing.
31988 (dump_function_to_file): Dump IL state.
31989 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31990 done to deal with PHI nodes being present in non-SSA state.
31992 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31995 * multiple_target.c (create_dispatcher_calls): Change
31996 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31997 In the node->iterate_referring loop, push *ref rather than ref, call
31998 ref->remove_reference () and always pass 0 to iterate_referring.
32000 PR rtl-optimization/89679
32001 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
32002 would contain a paradoxical SUBREG.
32004 2019-03-14 Richard Biener <rguenther@suse.de>
32006 PR tree-optimization/89710
32007 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
32010 2019-03-14 Martin Liska <mliska@suse.cz>
32012 * coverage.c (coverage_begin_function): Stream also
32014 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
32015 documentation about function declaration location.
32016 * gcov-dump.c (tag_function): Print whole range
32017 of function declaration.
32018 * gcov.c (struct function_info): Add end_column field.
32019 (function_info::function_info): Initialize it.
32020 (output_json_intermediate_file): Output {start,end}_column
32022 (read_graph_file): Read end_column.
32024 2019-03-14 Richard Biener <rguenther@suse.de>
32026 PR middle-end/89698
32027 * fold-const.c (operand_equal_p): For INDIRECT_REF check
32028 that the access types are similar.
32030 2019-03-14 Jakub Jelinek <jakub@redhat.com>
32032 PR tree-optimization/89703
32033 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
32034 aren't compatible also with builtin_decl_explicit. Check pure
32035 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
32036 and BUILT_IN_STPNCPY{,_CHK}.
32038 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
32041 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
32042 addr32 prefix to VSIB address for X32.
32043 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
32045 (*avx512pf_gatherpf<mode>df_mask): Likewise.
32046 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
32047 (*avx512pf_scatterpf<mode>df_mask): Likewise.
32048 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
32049 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
32050 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
32051 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
32052 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
32053 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
32054 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
32055 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
32056 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
32057 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
32058 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
32059 (*avx512f_scatterdi<mode>): Likewise.
32061 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
32064 * lra-constraints.c (inherit_in_ebb): Update
32065 potential_reload_hard_regs along with live_hard_regs.
32067 2019-03-13 Jakub Jelinek <jakub@redhat.com>
32070 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
32072 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
32074 2019-03-13 Martin Sebor <msebor@redhat.com>
32076 PR tree-optimization/89662
32077 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
32080 2019-03-13 Richard Biener <rguenther@suse.de>
32082 PR middle-end/89677
32083 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
32084 throw FP expressions at tree-affine.
32086 2019-03-14 Richard Biener <rguenther@suse.de>
32088 * tree-pretty-print.c (dump_generic_node): For -gimple properly
32089 dump negative integer constants using _Literal (type) -num.
32091 2019-03-13 Jakub Jelinek <jakub@redhat.com>
32093 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
32094 nonlocal_value member.
32096 PR middle-end/88588
32097 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
32098 (ipa_simd_modify_function_body): Handle PHIs.
32100 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
32102 * config/s390/s390.c (s390_option_override_internal): Use more
32103 aggressive inlining parameters.
32105 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
32107 * config/s390/3906.md: New file.
32108 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
32109 (LONGRUNNING_THRESHOLD): Remove.
32110 (MAX_SCHED_MIX_SCORE): Decrease.
32111 (MAX_SCHED_MIX_DISTANCE): Decrease.
32112 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
32113 (struct s390_sched_state): New struct to hold scheduling state.
32114 (S390_SCHED_STATE_NORMAL): Remove.
32115 (S390_SCHED_STATE_CRACKED): Remove.
32116 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
32117 (s390_get_sched_attrmask): Use new attribute.
32118 (s390_get_unit_mask): Use new units.
32119 (s390_is_fpd): New function.
32120 (s390_is_fxd): New function.
32121 (s390_is_longrunning): New function.
32122 (s390_sched_score): Use new functions.
32123 (s390_sched_reorder): Likewise.
32124 (s390_sched_variable_issue): Rework and use new functions.
32125 (s390_sched_init): Use new functions.
32126 * config/s390/s390.h (s390_tune_attr): Add z14.
32127 * config/s390/s390.md: Add z14.
32129 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
32131 * config/s390/2964.md: Update pipeline description.
32132 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
32133 (LONGRUNNING_THRESHOLD): Remove.
32134 (LATENCY_FACTOR): Remove.
32135 (s390_get_unit_mask): Add unit.
32136 (s390_sched_score): Use fxd/fpd.
32137 (s390_sched_variable_issue): Use fxd/fpd.
32139 2019-03-12 Martin Liska <mliska@suse.cz>
32141 * config/i386/i386.c: Reword an error message.
32143 2019-03-12 Martin Jambor <mjambor@suse.cz>
32145 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
32146 terminate with newline.
32148 2019-03-12 Jakub Jelinek <jakub@redhat.com>
32151 * config/s390/s390.md (tabort): Use %wd instead of
32152 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
32153 letters and periods.
32154 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
32155 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
32158 PR middle-end/89663
32159 * builtins.c (expand_builtin_int_roundingfn,
32160 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
32161 gcc_unreachable if validate_arglist fails.
32163 2019-03-12 Richard Biener <rguenther@suse.de>
32165 PR tree-optimization/89664
32166 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
32167 free the occurance tree after the early out.
32169 2019-03-11 Jakub Jelinek <jakub@redhat.com>
32171 PR middle-end/89655
32173 * vr-values.c (vr_values::update_value_range): If
32174 old_vr->varying_p (), don't update it, make new_vr also VARYING
32177 2019-03-11 Martin Liska <mliska@suse.cz>
32179 * config/aarch64/aarch64.c (aarch64_override_options_internal):
32180 Fix double string quoting.
32182 2019-03-11 Martin Liska <mliska@suse.cz>
32184 * collect-utils.c (collect_wait): Wrap apostrophes
32185 in gcc internal format with %'.
32186 * collect2.c (main): Likewise.
32187 (scan_prog_file): Likewise.
32188 (scan_libraries): Likewise.
32189 * config/i386/i386.c (ix86_expand_call): Likewise.
32190 (ix86_handle_interrupt_attribute): Likewise.
32191 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
32192 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
32193 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
32194 * lto-wrapper.c (find_crtoffloadtable): Likewise.
32195 * symtab.c (symtab_node::verify_base): Likewise.
32196 * tree-cfg.c (verify_gimple_label): Likewise.
32197 * tree.c (verify_type_variant): Likewise.
32199 2019-03-11 Martin Liska <mliska@suse.cz>
32201 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
32202 in a string format message and fix GNU coding style.
32203 (expand_builtin_set_thread_pointer): Likewise.
32204 * common/config/aarch64/aarch64-common.c
32205 (aarch64_rewrite_selected_cpu): Likewise.
32206 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
32207 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
32208 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
32209 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
32210 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
32211 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
32212 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
32213 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
32214 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
32215 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
32217 * common/config/riscv/riscv-common.c
32218 (riscv_subset_list::parsing_subset_version): Likewise.
32219 (riscv_subset_list::parse_std_ext): Likewise.
32220 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32221 (riscv_subset_list::parse): Likewise.
32222 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
32223 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
32224 (aarch64_override_options_internal): Likewise.
32225 (aarch64_validate_mcpu): Likewise.
32226 (aarch64_validate_march): Likewise.
32227 (aarch64_validate_mtune): Likewise.
32228 (aarch64_override_options): Likewise.
32229 * config/alpha/alpha.c (alpha_option_override): Likewise.
32230 * config/arc/arc.c (arc_init): Likewise.
32231 (parse_mrgf_banked_regs_option): Likewise.
32232 (arc_override_options): Likewise.
32233 (arc_expand_builtin_aligned): Likewise.
32234 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
32235 (arm_expand_builtin): Likewise.
32236 * config/arm/arm.c (arm_option_check_internal): Likewise.
32237 (arm_configure_build_target): Likewise.
32238 (arm_option_override): Likewise.
32239 (arm_options_perform_arch_sanity_checks): Likewise.
32240 (arm_handle_cmse_nonsecure_entry): Likewise.
32241 (arm_handle_cmse_nonsecure_call): Likewise.
32242 (arm_tls_referenced_p): Likewise.
32243 (thumb1_expand_prologue): Likewise.
32244 * config/avr/avr.c (avr_option_override): Likewise.
32245 * config/bfin/bfin.c (bfin_option_override): Likewise.
32246 * config/c6x/c6x.c (c6x_option_override): Likewise.
32247 * config/cr16/cr16.c (cr16_override_options): Likewise.
32248 * config/cris/cris.c (cris_option_override): Likewise.
32249 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
32250 * config/darwin-c.c (macosx_version_as_macro): Likewise.
32251 * config/darwin.c (darwin_override_options): Likewise.
32252 * config/frv/frv.c (frv_expand_builtin): Likewise.
32253 * config/h8300/h8300.c (h8300_option_override): Likewise.
32254 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
32255 (ix86_option_override_internal): Likewise.
32256 (warn_once_call_ms2sysv_xlogues): Likewise.
32257 (ix86_expand_prologue): Likewise.
32258 (split_stack_prologue_scratch_regno): Likewise.
32259 (ix86_warn_parameter_passing_abi): Likewise.
32260 * config/ia64/ia64.c (fix_range): Likewise.
32261 * config/m68k/m68k.c (m68k_option_override): Likewise.
32262 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
32263 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
32264 (mips_set_compression_mode): Likewise.
32265 * config/mmix/mmix.c (mmix_option_override): Likewise.
32266 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
32267 * config/msp430/msp430.c (msp430_option_override): Likewise.
32268 * config/nds32/nds32.c (nds32_option_override): Likewise.
32269 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
32270 (nios2_option_override): Likewise.
32271 (nios2_expand_custom_builtin): Likewise.
32272 * config/nvptx/mkoffload.c (main): Likewise.
32273 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
32274 * config/pa/pa.c (fix_range): Likewise.
32275 (pa_option_override): Likewise.
32276 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
32277 (riscv_option_override): Likewise.
32278 * config/rl78/rl78.c (rl78_option_override): Likewise.
32279 * config/rs6000/aix61.h: Likewise.
32280 * config/rs6000/aix71.h: Likewise.
32281 * config/rs6000/aix72.h: Likewise.
32282 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
32283 * config/rs6000/freebsd64.h: Likewise.
32284 * config/rs6000/linux64.h: Likewise.
32285 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
32286 (rs6000_expand_zeroop_builtin): Likewise.
32287 (rs6000_expand_mtfsb_builtin): Likewise.
32288 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
32289 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
32290 (rs6000_invalid_builtin): Likewise.
32291 (rs6000_expand_split_stack_prologue): Likewise.
32292 * config/rs6000/rtems.h: Likewise.
32293 * config/rx/rx.c (valid_psw_flag): Likewise.
32294 (rx_expand_builtin): Likewise.
32295 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
32296 * config/s390/s390.c (s390_expand_builtin): Likewise.
32297 (s390_function_profiler): Likewise.
32298 (s390_option_override_internal): Likewise.
32299 (s390_option_override): Likewise.
32300 * config/sh/sh.c (sh_option_override): Likewise.
32301 (sh_builtin_saveregs): Likewise.
32302 (sh_fix_range): Likewise.
32303 * config/sh/vxworks.h: Likewise.
32304 * config/sparc/sparc.c (sparc_option_override): Likewise.
32305 * config/spu/spu.c (spu_option_override): Likewise.
32306 (fix_range): Likewise.
32307 * config/visium/visium.c (visium_option_override): Likewise.
32308 (visium_handle_interrupt_attr): Likewise.
32309 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
32310 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
32311 (dbg_cnt_process_opt): Likewise.
32312 * dwarf2out.c (output_dwarf_version): Likewise.
32313 * except.c (expand_eh_return): Likewise.
32314 * gcc.c (defined): Likewise.
32315 (driver_handle_option): Likewise.
32316 (process_command): Likewise.
32317 (compare_files): Likewise.
32318 (driver::prepare_infiles): Likewise.
32319 (driver::do_spec_on_infiles): Likewise.
32320 (driver::maybe_run_linker): Likewise.
32321 * omp-offload.c (oacc_parse_default_dims): Likewise.
32322 * opts-global.c (handle_common_deferred_options): Likewise.
32323 * opts.c (parse_sanitizer_options): Likewise.
32324 (common_handle_option): Likewise.
32325 (enable_warning_as_error): Likewise.
32326 * passes.c (enable_disable_pass): Likewise.
32327 * plugin.c (parse_plugin_arg_opt): Likewise.
32328 (default_plugin_dir_name): Likewise.
32329 * targhooks.c (default_expand_builtin_saveregs): Likewise.
32330 (default_pch_valid_p): Likewise.
32331 * toplev.c (init_asm_output): Likewise.
32332 (process_options): Likewise.
32333 (toplev::run_self_tests): Likewise.
32334 * tree-cfg.c (verify_gimple_call): Likewise.
32335 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
32336 (tree_inlinable_function_p): Likewise.
32337 * var-tracking.c (vt_find_locations): Likewise.
32339 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
32341 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
32342 only on the else branch.
32344 2019-03-11 Martin Liska <mliska@suse.cz>
32346 * gcov.c (output_intermediate_json_line): Print function
32348 (output_json_intermediate_file): Add new argument.
32349 * doc/gcov.texi: Document the change.
32351 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
32353 PR rtl-optimization/89588
32354 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
32355 explicit unrolling factor more robust.
32357 2019-03-11 Richard Biener <rguenther@suse.de>
32359 PR tree-optimization/89649
32360 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
32361 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
32362 on the prolog and epilog loops.
32363 (vect_loop_versioning): Return copy of loop.
32364 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
32365 on the non-vectorized version of the loop.
32367 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
32370 * config/i386/sse.md (*vec_extractv2di_0_sse):
32371 Add (=r,x) alternative and corresponding splitter.
32373 2019-03-10 Martin Jambor <mjambor@suse.cz>
32375 PR tree-optimization/85762
32376 PR tree-optimization/87008
32377 PR tree-optimization/85459
32378 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
32379 it points to if there is a type changing MEM_REF. Adjust all callers.
32380 (build_accesses_from_assign): Disable total scalarization if
32381 contains_vce_or_bfcref_p returns true through the new parameter, for
32384 2019-03-09 Jakub Jelinek <jakub@redhat.com>
32387 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
32388 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
32391 * common.opt (fdiagnostics-show-labels,
32392 fdiagnostics-show-line-numbers, fdiagnostics-format=,
32393 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
32394 gas-locview-support, ginline-points, ginternal-reset-location-views):
32395 Terminate description text with a dot.
32396 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
32397 * config/mcore/mcore.opt (m210, m340): Likewise.
32398 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
32399 mnops=): Start description text with a capital letter.
32400 * config/arc/arc.opt (msize-level=): Likewise.
32401 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
32402 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
32403 mnewlib): Likewise.
32404 * config/ft32/ft32.opt (msim): Likewise.
32405 (mft32b, mcompress): Likewise. Terminate description text with a dot.
32406 (mnodiv, mnopm): Terminate description text with a dot.
32407 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
32409 * config/i386/i386.opt (prefer_vector_width, instrument_return):
32411 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
32414 PR rtl-optimization/89634
32415 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
32416 are modified in BB_END (e->src) instruction.
32418 2019-03-08 David Malcolm <dmalcolm@redhat.com>
32421 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
32422 messages more amenable to translation, and improve wording.
32424 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
32426 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
32427 ud- and du-chains between phases.
32429 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
32432 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
32433 instead of POLY_INT_CST.
32435 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
32437 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
32440 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
32445 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
32446 (_mm_storeu_si64): Ditto.
32448 2019-03-08 Martin Liska <mliska@suse.cz>
32451 * config/i386/i386.c (ix86_option_override_internal): Disable
32452 jump tables when retpolines are used.
32454 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
32457 * ipa-split.c (execute_split_functions): Do not split
32458 'noinline' or 'section' function.
32460 2019-03-08 Jakub Jelinek <jakub@redhat.com>
32463 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
32464 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
32465 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
32468 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
32469 from diagnostics. Formatting fixes.
32472 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
32473 warn_odr diagnostics.
32476 * lra-constraints.c (process_alt_operands): Avoid one space before
32477 " at the end of line and another after " on another line in a string
32479 * attribs.c (handle_dll_attribute): Likewise.
32480 * config/avr/avr-devices.c (avr_texinfo): Likewise.
32482 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
32483 warning_at or inform messages in G_() if there is no ?:.
32485 PR tree-optimization/89550
32486 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
32487 returned true. Formatting fixes.
32488 (expand_builtin_strnlen): Formatting fixes.
32489 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
32490 if warning_at returned true.
32491 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
32493 2019-03-08 Richard Biener <rguenther@suse.de>
32495 PR middle-end/89578
32496 * cfgloop.h (struct loop): Add owned_clique field.
32497 * cfgloopmanip.c (copy_loop_info): Copy it.
32498 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
32500 * tree-inline.c (copy_loops): Remap owned_clique.
32501 * lto-streamer-in.c (input_cfg): Stream owned_clique.
32502 * lto-streamer-out.c (output_cfg): Likewise.
32504 2019-03-08 Jakub Jelinek <jakub@redhat.com>
32507 * config/darwin.c: Include intl.h.
32508 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
32509 composing the message out of two separate parts.
32511 2019-03-07 Jakub Jelinek <jakub@redhat.com>
32514 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
32515 doesn't start with a capital letter and doesn't end with a dot.
32516 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
32517 with a capital letter.
32518 (ix86_mangle_function_version_assembler_name): Likewise.
32519 (ix86_generate_version_dispatcher_body): Likewise.
32520 (fold_builtin_cpu): Likewise.
32521 (get_builtin_code_for_version): Likewise. Remove extraneous space.
32522 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
32523 translators, wrap full type name in %qs.
32525 PR translation/79999
32526 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
32527 depend clause with source (or sink) modifier.
32528 * omp-expand.c (expand_omp_ordered_sink): Likewise.
32531 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
32532 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
32533 (avx512f_load<mode>_mask): New define_expand.
32534 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
32535 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
32536 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
32537 __builtin_ia32_movess_mask): New builtins.
32538 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
32539 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
32540 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
32541 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
32543 2019-03-07 Martin Jambor <mjambor@suse.cz>
32546 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
32547 for extern inline functions.
32549 2019-03-07 Martin Jambor <mjambor@suse.cz>
32552 * cgraph.h (cgraph_node): New inline method former_thunk_p.
32553 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
32554 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
32555 have multiple callees. At the end check if declarations match as
32556 opposed to cgraph_nodes.
32558 2019-03-07 Martin Liska <mliska@suse.cz>
32560 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
32561 which is equivalent to searching for this in clones chain.
32562 * symtab.c (symtab_node::verify_base): Similarly compare ASM
32563 names with a neighbour and special case first node in a chain.
32565 2019-01-25 Jason Merrill <jason@redhat.com>
32567 PR c++/80916 - spurious "static but not defined" warning.
32568 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
32569 for an internal symbol with DECL_EXTERNAL.
32571 2019-04-07 Richard Biener <rguenther@suse.de>
32573 PR middle-end/89618
32574 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
32575 * tree-inline.c (copy_loops): Simplify.
32577 2019-03-07 Martin Liska <mliska@suse.cz>
32579 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
32581 2019-03-07 Richard Biener <rguenther@suse.de>
32583 PR tree-optimization/89595
32584 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
32585 stmt iterator as reference, take boolean output parameter to
32586 indicate whether the stmt was removed and thus the iterator
32588 (dom_opt_dom_walker::before_dom_children): Re-iterate over
32589 stmts created by folding.
32591 2019-03-07 Jakub Jelinek <jakub@redhat.com>
32594 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
32597 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
32599 PR rtl-optimization/88845
32600 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
32602 * lra.c (remove_scratches_1): New function.
32603 (remove_scratches): Use it.
32604 (lra_emit_move): Likewise.
32606 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
32608 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
32609 unaligned_access variable.
32610 * config/arc/arc.c (arc_override_options): Set unaligned access
32611 default on for HS CPUs.
32612 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
32614 2019-03-06 Martin Liska <mliska@suse.cz>
32616 PR gcov-profile/89577
32617 * doc/gcov.texi: Prefer to use --coverage.
32618 * doc/sourcebuild.texi: Likewise.
32620 2019-03-02 Jason Merrill <jason@redhat.com>
32622 PR c++/86485 - -Wmaybe-unused with empty class ?:
32623 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
32625 2019-03-05 Jakub Jelinek <jakub@redhat.com>
32628 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
32631 PR middle-end/89590
32632 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
32633 exactly one argument.
32635 2019-03-05 Jakub Jelinek <jakub@redhat.com>
32636 Richard Sandiford <richard.sandiford@arm.com>
32638 PR tree-optimization/89570
32639 * match.pd (vec_cond into cond_op simplification): Don't use
32640 get_conditional_internal_fn, use as_internal_fn (cond_op).
32642 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
32645 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
32646 to decide when to split off a non-zero offset from a symbol.
32647 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
32648 in function symbols.
32650 2019-03-05 Richard Biener <rguenther@suse.de>
32652 PR tree-optimization/89594
32653 * tree-if-conv.c (pass_if_conversion::execute): Handle
32654 case where .LOOP_VECTORIZED_FUNCTION was removed.
32656 2019-03-05 Jakub Jelinek <jakub@redhat.com>
32659 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
32660 instead alloca it only when needed with the needed size.
32662 PR tree-optimization/89570
32663 * match.pd (vec_cond into cond_op simplification): Guard with
32664 vectorized_internal_fn_supported_p test and #if GIMPLE.
32666 PR tree-optimization/89566
32667 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
32668 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
32669 Punt if get_user_idx_format succeeds, but idx_format argument is
32670 not provided or doesn't have pointer type, or if idx_args is above
32671 number of provided arguments.
32673 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
32675 PR tree-optimization/89437
32676 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
32678 2019-03-04 Richard Biener <rguenther@suse.de>
32680 PR middle-end/89572
32681 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
32684 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
32686 PR tree-optimization/89487
32687 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
32688 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
32689 (distribute_loop): Don't do runtime alias check if there is non-
32690 addressable data reference.
32691 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
32692 is a register variable.
32694 2019-03-02 Jakub Jelinek <jakub@redhat.com>
32697 * config/arm/arm.md (cmpsi2_addneg): Use
32698 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
32699 If operands[2] is 0 or INT_MIN, force use of subs.
32700 (*compare_scc splitter): Use gen_int_mode.
32701 (*negscc): Likewise.
32702 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
32704 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
32705 Monk Chiang <sh.chiang04@gmail.com>
32707 * common/config/riscv/riscv-common.c: Include sstream.
32708 (riscv_subset_list::to_string): New.
32709 (riscv_arch_str): Likewise.
32710 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
32711 * config.in: Regen.
32712 * config/riscv/riscv-protos.h (riscv_arch_str): New.
32713 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
32714 (riscv_emit_attribute): New.
32715 (riscv_file_start): Emit attribute if needed.
32716 (riscv_option_override): Init riscv_emit_attribute_p.
32717 * config/riscv/riscv.opt (mriscv-attribute): New option.
32718 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
32719 * configure: Regen.
32720 * doc/install.texi: Document --with-riscv-attribute.
32721 * doc/invoke.texi: Document -mriscv-attribute.
32723 * common/config/riscv/riscv-common.c:
32724 Include config/riscv/riscv-protos.h.
32725 (INCLUDE_STRING): Defined.
32726 (RISCV_DONT_CARE_VERSION): Defined.
32727 (riscv_subset_t): Declare.
32728 (riscv_subset_t::riscv_subset_t): New.
32729 (riscv_subset_list): Declare.
32730 (riscv_subset_list::riscv_subset_list): New.
32731 (riscv_subset_list::~riscv_subset_list): Likewise.
32732 (riscv_subset_list::parsing_subset_version): Likewise.
32733 (riscv_subset_list::parse_std_ext): Likewise.
32734 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
32735 (riscv_subset_list::add): Likewise.
32736 (riscv_subset_list::lookup): Likewise.
32737 (riscv_subset_list::xlen): Likewise.
32738 (riscv_subset_list::parse): Likewise.
32739 (riscv_supported_std_ext): Likewise.
32740 (current_subset_list): Likewise.
32741 (riscv_parse_arch_string): Using riscv_subset_list::parse to
32744 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
32746 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32747 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
32748 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
32750 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
32752 PR rtl-optimization/85899
32753 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
32754 fallthru edges leading to the exit block.
32756 2019-03-01 Tamar Christina <tamar.christina@arm.com>
32759 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
32760 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
32762 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
32764 PR tree-optimization/89535
32765 * tree-vect-stmts.c (vectorizable_call): Record the vector types
32766 for each operand. Calculate the fallback choice for mask operands
32767 and pass it to vect_get_vec_def_for_operand.
32769 2019-03-01 Richard Biener <rguenther@suse.de>
32771 PR middle-end/89541
32772 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
32773 get virtual operands.
32774 (get_expr_operands): Handle CONST_DECL like other decls.
32776 2019-03-01 Jakub Jelinek <jakub@redhat.com>
32778 PR middle-end/89503
32779 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
32780 on DECL_P and EXPR_P.
32782 2019-03-01 Richard Biener <rguenther@suse.de>
32784 PR middle-end/89497
32785 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
32786 argument, defaulted to zero.
32787 * passes.c (execute_function_todo): Pass down SSA update flags
32788 to cleanup_tree_cfg.
32789 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
32790 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
32792 (cleanup_tree_cfg): Get and pass down SSA update flags.
32794 2019-03-01 Jakub Jelinek <jakub@redhat.com>
32797 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
32798 early_lto_debug argument.
32800 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
32802 PR tree-optimization/89536
32803 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
32804 only whether bit #0 of the value is 0 instead of the entire value.
32806 2019-02-28 Marek Polacek <polacek@redhat.com>
32808 PR c++/87068 - missing diagnostic with fallthrough statement.
32809 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
32810 at the end of a seq, save its location to walk_stmt_info.
32811 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
32814 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
32817 * tree.c (find_atomic_core_type): Move ahead in file.
32818 (check_base_type): Correctly compare alignments of atomic types.
32820 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
32823 * config/i386/i386.c (get_builtin_code_for_version): Identify
32824 Westmere from PCLMUL, instead of AES.
32826 2019-02-28 Jakub Jelinek <jakub@redhat.com>
32829 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
32830 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
32833 2019-02-28 Tamar Christina <tamar.christina@arm.com>
32836 * config/aarch64/aarch64-option-extensions.def: Document it.
32837 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
32840 2019-02-28 Jakub Jelinek <jakub@redhat.com>
32843 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
32844 builtins if they don't have a single scalar floating point argument.
32847 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
32849 PR rtl-optimization/89490
32850 * varasm.c (get_block_for_section): Bail out for mergeable sections.
32851 (default_use_anchors_for_symbol_p, output_object_block): Assert the
32852 block section is not mergeable.
32854 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32857 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
32858 old define_insn to ...
32859 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
32860 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
32861 Rename old define_insn to ...
32862 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
32863 (thumb2_casesi_internal_pic): New define_expand. Rename old
32865 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
32866 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32867 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32869 2019-02-27 Richard Biener <rguenther@suse.de>
32872 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32874 2019-02-27 Richard Biener <rguenther@suse.de>
32876 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32879 2019-02-27 Richard Biener <rguenther@suse.de>
32882 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32883 parameter, prefix section name with .gnu.debuglto_ if true.
32884 (dwarf2out_finish): Pass false to output_comdat_type_unit.
32885 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32887 2019-02-27 Richard Biener <rguenther@suse.de>
32890 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32891 rather than on use_debug_types, doing what output_die does.
32892 (value_format): Likewise.
32894 2019-02-27 Martin Jambor <mjambor@suse.cz>
32895 Martin Sebor <msebor@redhat.com>
32897 * doc/invoke.texi (Warning Options): Reword description of
32898 -Wno-absolute-value.
32900 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32902 PR tree-optimization/89280
32903 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32904 builtin_setjmp_setup_bb): New functions.
32905 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32906 When visiting __builtin_setjmp_setup block, queue in special
32907 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32908 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32909 from visited after the loop if they don't have any visited successor
32912 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32914 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32916 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32918 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32921 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32922 with types other than sizetype/ssizetype.
32924 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32926 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32927 (enum sparc_processor_type): ...this.
32928 (enum sparc_code_model_type): New enumeration type.
32929 (enum sparc_memory_model_type): Tweak comments.
32930 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32932 (mcmodel): Use sparc_code_model enumeration and variable.
32933 (sparc_code_model): New enumeration.
32934 (mdebug): Add Undocumented marker.
32935 * config/sparc/sparc.h (enum cmodel): Delete.
32936 (sparc_cmodel): Likewise.
32937 (TARGET_CM_MEDLOW): Adjust to above renaming.
32938 (TARGET_CM_MEDMID): Likewise.
32939 (TARGET_CM_MEDANY): Likewise.
32940 (TARGET_CM_EMBMEDANY): Likewise.
32941 * config/sparc/sparc.c (sparc_cmodel): Delete.
32942 (sparc_option_override): Remove string/value mapping support for the
32943 code model. Move code and memory model support to after the handling
32944 of target flags. Do private machine setup last.
32945 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32946 (sparc_legitimize_reload_address): Likewise.
32947 (sparc_output_mi_thunk): Likewise.
32948 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32950 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32952 PR tree-optimization/89500
32953 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32954 (handle_builtin_strlen): Remove noncst_bound variable. Always
32955 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32956 cst if the first cst bytes starting at x are known to be non-zero,
32957 even if the string is not zero terminated. Don't try to modify
32958 *si for strnlen. Update strlen_to_stridx only for strlen or if
32959 we can prove strnlen returns the same value as strlen would.
32961 2019-02-26 Martin Liska <mliska@suse.cz>
32963 * alloc-pool.h (struct pool_usage): Remove extra
32965 * bitmap.h (struct bitmap_usage): Likewise.
32966 * ggc-common.c (struct ggc_usage): Likewise.
32967 * mem-stats.h (struct mem_usage): Likewise.
32968 (mem_alloc_description::dump): Print dash lines
32969 here and repeat header at the end of a table report.
32970 It's then more readable.
32971 * tree-phinodes.c (phinodes_print_statistics): Make
32972 horizontal alignment.
32973 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32974 * vec.c (struct vec_usage): Remove extra print_dash_line.
32975 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32977 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32979 * doc/extend.texi (__builtin_object_size):
32980 Use @pxref instead of @xref inside parenthesis.
32981 (__builtin_has_attribute): Add missing comma after @xref.
32982 (__builtin_object_size): Ditto.
32983 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32985 2019-02-26 Jeff Law <law@redhat.com>
32987 PR rtl-optimization/87761
32988 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32989 detect obviously dead insns and delete them.
32991 2019-02-26 Richard Biener <rguenther@suse.de>
32993 PR tree-optimization/89505
32994 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32995 to handle restrict pointed-to vars with multiple subvars
32998 2019-02-26 Richard Biener <rguenther@suse.de>
33000 PR tree-optimization/89489
33001 * tree-parloops.c (create_loop_fn): Copy over last_clique.
33003 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
33005 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
33006 and move around comment.
33007 <BIT_AND_EXPR>: Likewise.
33008 <BIT_NOT_EXPR>: Add specific handling for boolean types.
33010 2019-02-26 Jakub Jelinek <jakub@redhat.com>
33013 * config/i386/i386.c (remove_partial_avx_dependency): Call
33014 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
33015 after changing possibly many instructions to use that pseudo. Fix up
33016 insertion of v4sf_const0 setter at the start of bb.
33018 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
33021 * doc/extend.texi (Variadic Pointer Args): New section.
33023 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
33024 Martin Sebor <msebor@gmail.com>
33026 * common.opt (Wattribute-alias): Likewise.
33027 * doc/invoke.texi (Option Summary): List general form of
33028 -Wattribute-alias=. List positive form of -Wmissing-attributes.
33029 (-Wmissing-attributes): Invert entry, rewrite and correct default.
33030 Add cross-references.
33031 (-Wattribute-alias): Rewrite and correct default. Mention
33032 considered attributes (same as for -Wmissing-attributes).
33034 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
33036 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
33037 (_mm_cvtpd_ps): Likewise.
33038 (_mm_cvttpd_epi32): Likewise.
33041 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
33042 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
33045 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
33047 2019-02-25 Tamar Christina <tamar.christina@arm.com>
33050 * common/config/aarch64/aarch64-common.c
33051 (struct aarch64_option_extension): Add is_synthetic.
33052 (all_extensions): Use it.
33053 (TARGET_OPTION_INIT_STRUCT): Define hook.
33054 (struct gcc_targetm_common): Moved to end.
33055 (all_extensions_by_on): New.
33056 (opt_ext_cmp, typedef opt_ext): New.
33057 (aarch64_option_init_struct): New.
33058 (aarch64_contains_opt): New.
33059 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
33060 * config/aarch64/aarch64-option-extensions.def
33061 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
33062 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
33063 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
33064 Set is_synthetic to false.
33065 (crypto): Set is_synthetic to true.
33066 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
33069 2019-02-25 Tamar Christina <tamar.christina@arm.com>
33071 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
33072 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
33073 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
33074 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
33075 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
33076 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
33077 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
33078 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
33080 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
33081 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
33082 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
33083 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
33084 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
33085 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
33086 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
33087 vfmlsl_laneq_high_f16): ... To this.
33088 * config/arm/neon.md: Update comments.
33090 2019-02-25 Tamar Christina <tamar.christina@arm.com>
33092 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
33093 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
33094 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
33095 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
33096 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
33097 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
33098 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
33099 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
33101 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
33102 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
33103 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
33104 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
33105 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
33106 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
33107 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
33108 vfmlslq_laneq_high_f16): ... To this.
33110 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
33112 PR rtl-optimization/86096
33113 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
33114 comparing mw_order values.
33116 2019-02-25 Jakub Jelinek <jakub@redhat.com>
33119 * config/arm/arm.md (*subsi3_carryin_const): Use
33120 arm_neg_immediate_operand predicate instead of
33121 arm_not_immediate_operand, "L" constraint instead of "K" and
33122 print it using %n2 instead of %B2.
33123 (*subsi3_carryin_const0): New define_insn.
33124 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
33125 instead of arm_not_operand and "I" constraint instead of "K" and
33126 print it using %n3 instead of %B2. Instead of using match_dup 2 add
33127 another match_operand and in the condition check that it is negation
33129 (*subsi3_carryin_compare_const0): New define_ins.
33130 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
33131 *subsi3_carryin_const.
33132 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
33133 split into *subsi3_carryin_compare_const0 if the highpart is zero.
33136 * config/arm.vfp.md (*negdf2_vfp): Use
33137 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
33138 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
33140 2019-02-24 Jakub Jelinek <jakub@redhat.com>
33142 PR rtl-optimization/89445
33143 * simplify-rtx.c (simplify_ternary_operation): Don't use
33144 simplify_merge_mask on operands that may trap.
33145 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
33146 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
33147 second operand is CONST_VECTOR, check if any element could be zero.
33148 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
33149 their operands can trap.
33151 2019-02-23 Martin Sebor <msebor@redhat.com>
33153 * gimple-ssa-sprintf.c (target_strtol): Rename...
33154 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
33155 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
33156 check for range error.
33158 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
33161 * opts-common.c (prune_options): Also prune joined switches
33162 with Negative and RejectNegative.
33163 * config/i386/i386.opt (march=): Add Negative(march=).
33164 (mtune=): Add Negative(mtune=).
33165 * doc/options.texi: Document Negative used together with Joined
33166 and RejectNegative.
33168 2019-02-22 Martin Sebor <msebor@redhat.com>
33170 * doc/extend.texi (Other Builtins): Add
33171 __builtin_is_constant_evaluated.
33173 2019-02-22 Richard Biener <rguenther@suse.de>
33175 PR tree-optimization/87609
33176 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
33178 2019-02-22 Jeff Law <law@redhat.com>
33180 PR rtl-optimization/87761
33181 * config/mips/mips.md: Add new combiner pattern to recognize
33182 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
33184 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
33187 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
33188 destination register in peepholes generating patterns for ADDS/SUBS.
33189 (add<mode>3_compare0,
33190 *addsi3_compare0_uxtw, add<mode>3_compareC,
33191 add<mode>3_compareV_imm, add<mode>3_compareV,
33192 *adds_<optab><ALLX:mode>_<GPI:mode>,
33193 *subs_<optab><ALLX:mode>_<GPI:mode>,
33194 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
33195 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
33196 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
33197 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
33198 sub<mode>3_compare1): Allow stack pointer for source register.
33199 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
33201 2019-02-22 Martin Sebor <msebor@redhat.com>
33203 PR tree-optimization/88993
33204 PR tree-optimization/88853
33205 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
33207 (sprintf_dom_walker::call_info::is_string_func): New helper.
33208 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
33209 for formatted string functions.
33210 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
33212 2019-02-22 Martin Sebor <msebor@redhat.com>
33215 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
33216 unreachable subexpressions.
33218 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
33219 Hongtao Liu <hongtao.liu@intel.com>
33220 Sunil K Pandey <sunil.k.pandey@intel.com>
33223 * config/i386/i386-passes.def: Add
33224 pass_remove_partial_avx_dependency.
33225 * config/i386/i386-protos.h
33226 (make_pass_remove_partial_avx_dependency): New.
33227 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
33229 (pass_data_remove_partial_avx_dependency): New.
33230 (pass_remove_partial_avx_dependency): Likewise.
33231 (make_pass_remove_partial_avx_dependency): Likewise.
33232 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
33233 (*extendsfdf2): Add avx_partial_xmm_update.
33234 (truncdfsf2): Likewise.
33235 (*float<SWI48:mode><MODEF:mode>2): Likewise.
33236 (SF/DF conversion splitters): Disabled for TARGET_AVX.
33238 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
33240 PR middle-end/85598
33241 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
33244 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
33247 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
33248 (PTA_SKYLAKE): Add PTA_AES.
33249 (PTA_GOLDMONT): Likewise.
33251 2019-02-22 Sudakshina Das <sudi.das@arm.com>
33253 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
33254 instruction if enabled.
33255 (aarch64_override_options): Remove reference to return address key.
33257 2019-02-22 Richard Biener <rguenther@suse.de>
33259 PR tree-optimization/89440
33260 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
33261 not necessary assert.
33263 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
33266 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
33267 (oacc_replace_fn_attrib_attr): ... this new function.
33268 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
33269 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
33271 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33273 * config/arm/arm-cpus.in (ares): Rename to...
33274 (neoverse-n1): ... This. Add ares as alias.
33275 * config/arm/arm-tables.opt: Regenerate.
33276 * config/arm/arm-tune.md: Likewise.
33277 * doc/invoke.txt (ARM Options): Document neoverse-n1.
33279 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33281 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
33282 * config/aarch64/aarch64-tune.md: Regenerate.
33283 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
33285 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33287 * config/aarch64/aarch64.c (ares_tunings): Rename to...
33288 (neoversen1_tunings): ... This.
33289 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
33290 (neoverse-n1): New CPU.
33291 * config/aarch64/aarch64-tune.md: Regenerate.
33292 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
33294 2019-02-22 Richard Biener <rguenther@suse.de>
33296 PR middle-end/87609
33297 * cfghooks.h (dependence_hash): New typedef.
33298 (struct copy_bb_data): New type.
33299 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
33300 (duplicate_block): Likewise.
33301 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
33302 (copy_bbs): Create and pass down copy_bb_data.
33303 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
33304 (rtl_duplicate_bb): Likewise.
33305 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
33306 remap dependence info.
33308 2019-02-22 Richard Biener <rguenther@suse.de>
33310 PR tree-optimization/87609
33311 * tree-core.h (tree_base): Document special clique values.
33312 * tree-inline.c (remap_dependence_clique): Do not use the
33313 special clique value of one.
33314 (maybe_set_dependence_info): Use clique one.
33315 (clear_dependence_clique): New callback.
33316 (compute_dependence_clique): Clear clique one from all refs
33317 before assigning it (again).
33319 2019-02-21 Martin Sebor <msebor@redhat.com>
33321 * doc/extend.texi (__clear_cache): Correct signature.
33323 2019-02-21 Ian Lance Taylor <iant@golang.org>
33326 * varasm.c (decode_addr_const): Call lookup_constant_def rather
33327 than output_constant_def.
33328 (add_constant_to_table): New static function.
33329 (output_constant_def): Call add_constant_to_table.
33330 (tree_output_constant_def): Likewise.
33332 2019-02-21 Jakub Jelinek <jakub@redhat.com>
33335 * builtins.c (fold_builtin_arith_overflow): If first two args are
33336 INTEGER_CSTs, set intres and ovfres to constants rather than calls
33339 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
33342 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
33343 error for -mindirect-branch/-mfunction-return with incompatible
33346 2019-02-21 Jakub Jelinek <jakub@redhat.com>
33349 * constraints.md (q): Remove.
33350 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
33353 2019-02-21 Martin Jambor <mjambor@suse.cz>
33356 * omp-general.c (omp_extract_for_data): Removed a duplicate call
33357 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
33358 (omp_adjust_for_condition): ...here. Added necessary parameters.
33359 * omp-general.h (omp_adjust_for_condition): Updated declaration.
33360 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
33361 proper values to new parameters of omp_adjust_for_condition.
33363 2019-02-20 Jakub Jelinek <jakub@redhat.com>
33365 PR middle-end/89412
33366 * expr.c (expand_assignment): If result is a MEM, use change_address
33367 instead of simplify_gen_subreg.
33369 2019-02-20 Jakub Jelinek <jakub@redhat.com>
33370 David Malcolm <dmalcolm@redhat.com>
33372 PR middle-end/89091
33373 * fold-const.c (decode_field_reference): Return NULL_TREE if
33374 lang_hooks.types.type_for_size returns NULL. Check it before
33375 overwriting *exp_. Use return NULL_TREE instead of return 0.
33377 2019-02-20 Jakub Jelinek <jakub@redhat.com>
33379 PR middle-end/88074
33380 PR middle-end/89415
33381 * toplev.c (do_compile): Double the emin/emax exponents to workaround
33384 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
33387 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
33388 TARGET_SSE in addition to TARGET_SSE_MATH.
33390 (ix86_excess_precision): Ditto.
33391 (ix86_float_exceptions_rounding_supported_p): Ditto.
33392 (use_rsqrt_p): Ditto.
33393 * config/i386/sse.md (rsqrt<mode>2): Ditto.
33395 2019-02-20 David Malcolm <dmalcolm@redhat.com>
33398 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
33399 linenum_arith_t when determining if two adjacent line spans are
33400 close enough to merge.
33401 (diagnostic_show_locus): Use linenum_arith_t when iterating over
33402 lines within each line_span.
33404 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
33407 * lra-constraints.c(uses_hard_regs_p): Fix handling of
33408 paradoxical SUBREGS.
33410 2019-02-20 Li Jia He <helijia@linux.ibm.com>
33413 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
33414 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
33415 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
33418 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
33420 * config/gcn/gcn.c (print_operand): Fix typo.
33422 2019-02-19 Richard Biener <rguenther@suse.de>
33424 PR middle-end/88074
33425 * toplev.c (do_compile): Initialize mpfr's exponent range
33426 based on available float modes.
33428 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
33430 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
33431 as long as the epilogue isn't completed.
33433 2019-02-18 Martin Sebor <msebor@redhat.com>
33435 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
33436 __has_cpp_attribute, and __has_include.
33438 2019-02-18 Martin Sebor <msebor@redhat.com>
33440 * doc/invoke.texi (-Wreturn-type): Correct and expand.
33442 2019-02-18 Martin Sebor <msebor@redhat.com>
33444 PR middle-end/89294
33445 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
33447 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
33449 2019-02-18 Richard Biener <rguenther@suse.de>
33451 PR tree-optimization/89296
33452 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
33453 of no-warning flag to cases that might emit the bogus warning.
33455 2019-02-18 Jakub Jelinek <jakub@redhat.com>
33458 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
33460 * config/arm/vfp.md (*movdi_vfp): Likewise.
33461 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
33462 "q" constraint for operands[0].
33465 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
33466 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
33467 pattern in a temporary buffer.
33468 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
33469 than 64-operands[2].
33472 * config/s390/s390.c (s390_indirect_branch_attrvalue,
33473 s390_indirect_branch_settings): Define unconditionally.
33474 (s390_set_current_function): Likewise, but guard the whole body except
33475 the s390_indirect_branch_settings call with
33476 #if S390_USE_TARGET_ATTRIBUTE.
33477 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
33479 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
33480 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
33481 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
33482 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
33483 HOST_WIDE_INT_1U instead of 1ULL.
33484 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
33485 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
33486 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
33487 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
33489 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
33492 2019-02-18 Martin Jambor <mjambor@suse.cz>
33494 PR tree-optimization/89209
33495 * tree-sra.c (create_access_replacement): New optional parameter
33496 reg_tree. Use it as a type if non-NULL and access type is not of
33498 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
33499 to create_access_replacement.
33500 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
33501 Check lacc is non-NULL before attempting to re-create it on the RHS.
33503 2019-02-18 Martin Liska <mliska@suse.cz>
33506 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
33508 (symbol_table::free_edge): Recycle m_summary_id.
33509 * cgraph.h (get_summary_id): New.
33510 (symbol_table::release_symbol): Set m_summary_id to -1
33512 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
33513 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
33514 function_summary to fast_function_summary.
33515 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
33516 * ipa-pure-const.c (class funct_state_summary_t):
33517 Switch from function_summary to fast_function_summary.
33518 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
33519 (class ipa_ref_opt_summary_t): Switch from function_summary
33520 to fast_function_summary.
33521 * symbol-summary.h (class function_summary_base): New class
33522 that is created from base of former function_summary.
33523 (function_summary_base::unregister_hooks): New.
33524 (class function_summary): Inherit from function_summary_base.
33525 (class call_summary_base): New class
33526 that is created from base of former call_summary.
33527 (class call_summary): Inherit from call_summary_base.
33528 (struct is_same): New.
33529 (class fast_function_summary): New summary class.
33530 (class fast_call_summary): New summary class.
33531 * vec.h (vec_safe_grow_cleared): New function.
33533 2019-02-18 Martin Liska <mliska@suse.cz>
33535 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
33536 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
33537 * doc/tm.texi: Document new target hook.
33538 * doc/tm.texi.in: Likewise.
33539 * target.def: Add new target macro.
33540 * gcc.c (find_fortran_preinclude_file): Do not search multilib
33543 2019-02-17 Alan Modra <amodra@gmail.com>
33546 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
33547 output reg on add insn.
33548 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
33550 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
33553 * config/i386/sse.md (ssedoublemode): Remove V4HI.
33554 (PMULHRSW): Likewise.
33555 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
33557 (ssse3_pmulhrswv4hi3): New expander.
33559 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
33561 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
33562 MMX. Add isa attribute.
33564 2019-02-16 Jakub Jelinek <jakub@redhat.com>
33566 PR rtl-optimization/66152
33567 * builtins.h (c_readstr): Declare.
33568 * builtins.c (c_readstr): Remove forward declaration. Add
33569 null_terminated_p argument, if false, read all bytes from the
33570 string instead of stopping after '\0'.
33571 * expr.c (string_cst_read_str): New function.
33572 (store_expr): Use string_cst_read_str instead of
33573 builtin_strncpy_read_str. Try to store by pieces the whole
33574 exp_len first, and only if that fails, split it up into
33575 store by pieces followed by clear_storage. Formatting fix.
33577 * config/i386/i386.md (*movqi_internal): Remove static from
33578 buf variable. Use output_asm_insn (buf, operands); return "";
33579 instead of return buf;.
33580 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
33581 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
33582 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
33584 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
33586 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
33587 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
33588 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
33589 (CC1_SPEC): Likewise.
33590 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
33592 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
33594 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
33595 the base address on 64-bit strict-alignment platforms.
33597 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
33599 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
33601 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
33603 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
33605 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
33607 PR rtl-optimization/88308
33608 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
33609 on copied instruction.
33611 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
33613 * final.c (insn_current_reference_address): Replace test on JUMP_P
33614 with test on jump_to_label_p.
33615 * config/visium/visium-passes.def: New file.
33616 * config/visium/t-visium (PASSES_EXTRA): Define.
33617 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
33618 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
33619 (TRAMPOLINE_ALIGNMENT): Define.
33620 * config/visium/visium.c (visium_option_override): Do not register
33621 the machine-specific reorg pass here.
33622 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
33624 (output_branch): Adjust threshold for long branch instruction.
33625 * config/visium/visium.md (cpu): Move around.
33626 (length): Adjust for the GR6.
33628 2019-02-15 Richard Biener <rguenther@suse.de>
33629 Jakub Jelinek <jakub@redhat.com>
33631 PR tree-optimization/89278
33632 * tree-loop-distribution.c: Include tree-eh.h.
33633 (generate_memset_builtin, generate_memcpy_builtin): Call
33634 rewrite_to_non_trapping_overflow on builtin->size before passing it
33635 to force_gimple_operand_gsi.
33637 2019-02-15 Jakub Jelinek <jakub@redhat.com>
33640 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
33642 * opth-gen.awk: Likewise.
33644 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
33646 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
33647 Enable MMX, SSE and SSE2 by default.
33648 * config/i386/i386.c (ix86_option_override_internal): Do not
33649 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
33651 2019-02-14 Jakub Jelinek <jakub@redhat.com>
33653 PR rtl-optimization/89354
33654 * combine.c (make_extraction): Punt if extraction_mode is narrower
33657 2019-02-14 Maya Rashish <coypu@sdf.org>
33659 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
33660 * config/netbsd-d.c: New file.
33661 * config/t-netbsd: Add netbsd-d.o
33663 2018-02-14 Steve Ellcey <sellcey@marvell.com>
33665 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
33666 affects_type_identity to true for aarch64_vector_pcs.
33667 (aarch64_comp_type_attributes): New function.
33668 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
33670 2019-02-14 Tamar Christina <tamar.christina@arm.com>
33673 * config/arm/iterators.md (ANY64): Add V4HF.
33675 2019-02-14 Martin Liska <mliska@suse.cz>
33677 PR rtl-optimization/89242
33678 * dce.c (delete_unmarked_insns): Call free_dominance_info we
33679 process a transformation.
33681 2019-02-14 Jakub Jelinek <jakub@redhat.com>
33683 PR tree-optimization/89314
33684 * fold-const.c (fold_binary_loc): Cast strlen argument to
33685 const char * before dereferencing it. Formatting fixes.
33687 PR middle-end/89284
33688 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
33690 2019-02-13 Ian Lance Taylor <iant@golang.org>
33692 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
33693 and set current index for other optimizations.
33695 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
33697 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
33698 nonimmediate_operand as operand 2 predicate.
33699 (vec_set<VF2_512_256:mode>_0): Ditto.
33700 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
33701 (*vec_concatv2si): Remove alternative 2.
33702 (*vec_concatv4si_0): Use vm constraint for alternative 0.
33703 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
33704 (vec_concatv2di): Split alternatives 4,5,6 to ...
33705 (*vec_concatv2di_0) ... new pattern.
33707 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
33710 * config/arm/arm.c (ldm_stm_operation_p) Set
33711 addr_reg_in_reglist correctly for first register.
33712 (load_multiple_sequence): Remove dead base check.
33713 (gen_ldm_seq): Correctly set write_back for Thumb-1.
33715 2019-02-13 Tamar Christina <tamar.christina@arm.com>
33718 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
33719 Expose as @aarch64_pred_mov.
33720 * config/aarch64/aarch64.c (aarch64_classify_address):
33721 Use expand_insn which legitimizes operands.
33723 2019-02-13 Martin Liska <mliska@suse.cz>
33725 * builtins.h (expand_builtin_with_bounds): Remove declaration.
33726 * calls.c (struct arg_data): Remove special_slot, pointer_arg
33727 and pointer_offset fields.
33728 (initialize_argument_information): Remove usage of dead
33730 * cgraph.h (struct cgraph_thunk_info): Remove
33731 add_pointer_bounds_args.
33732 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
33734 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
33736 * config/i386/i386.c (ix86_function_arg_advance): Remove
33738 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
33739 (def_builtin): Remove usage of dead fields.
33740 (ix86_add_new_builtins): Likewise.
33741 * ipa-fnsummary.c (compute_fn_summary): Likewise.
33742 * ipa-icf.c (sem_function::equals_wpa): Likewise.
33743 (sem_function::init): Likewise.
33744 (sem_variable::merge): Likewise.
33745 * ipa-visibility.c (function_and_variable_visibility): Likewise.
33746 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33747 * lto-cgraph.c (lto_output_node): Likewise.
33748 (lto_output_varpool_node): Likewise.
33749 (input_node): Likewise.
33750 (input_varpool_node): Likewise.
33751 * lto-streamer-out.c (lto_output): Likewise.
33752 * tree-inline.c (expand_call_inline): Remove usage of
33754 * tree-inline.h (struct copy_body_data): Likewise.
33755 * varpool.c (varpool_node::dump): Likewise.
33757 2019-02-13 Jakub Jelinek <jakub@redhat.com>
33759 PR middle-end/89303
33760 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
33761 into pt->vars_contains_escaped_heap instead of setting
33762 pt->vars_contains_escaped_heap to it.
33764 PR middle-end/89281
33765 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
33766 INTVAL (size), compare it to GET_MODE_MASK instead of
33767 1 << GET_MODE_BITSIZE.
33770 * config/i386/predicates.md (x86_64_immediate_operand): Allow
33771 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
33774 2019-02-13 Martin Liska <mliska@suse.cz>
33777 * cfgrtl.c (remove_barriers_from_footer): New function.
33778 (try_redirect_by_replacing_jump): Use it.
33779 (cfg_layout_redirect_edge_and_branch): Likewise.
33781 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33783 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
33784 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
33785 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
33786 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
33787 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
33788 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
33790 * config/rs6000/rs6000.c (builtin_function_type)
33791 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
33792 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
33793 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
33794 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
33795 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
33797 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
33799 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
33800 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
33802 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
33805 * config/i386/i386.md (*movoi_internal_avx): Revert revision
33806 268678 and revision 268657.
33807 (*movti_internal): Likewise.
33809 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
33812 * config/s390/s390.c (s390_decompose_address): Update comment.
33813 (s390_check_qrst_address): Reject invalid address forms after
33816 2019-02-12 Martin Liska <mliska@suse.cz>
33819 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
33820 we need default values of funct_state for a function that
33823 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
33825 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
33826 the object to pick the size of stores on strict-alignment platforms.
33828 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
33829 (*movdi_insn_sp32): Likewise.
33830 (*movdi_insn_sp64): Likewise.
33832 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
33835 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
33836 types that needs constructiong.
33837 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
33839 2019-02-12 Richard Biener <rguenther@suse.de>
33841 PR tree-optimization/89253
33842 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
33843 duplicate the loop.
33845 2019-02-11 David Malcolm <dmalcolm@redhat.com>
33848 * input.c (selftest::test_line_offset_overflow): New selftest.
33849 (selftest::input_c_tests): Call it.
33851 2019-02-11 Martin Sebor <msebor@redhat.com>
33853 PR tree-optimization/88771
33854 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
33855 when -Wstringop-overflow is set.
33856 (builtin_memref::builtin_memref): Adjust excessive upper bound
33857 only when lower bound is not excessive.
33858 (maybe_diag_overlap): Detect and diagnose excessive bounds via
33859 -Wstringop-ovefflow.
33860 (maybe_diag_offset_bounds): Rename...
33861 (maybe_diag_access_bounds): ...to this.
33862 (check_bounds_or_overlap): Adjust for name change above.
33864 2019-02-11 Martin Sebor <msebor@redhat.com>
33867 * builtins.c (max_object_size): Move from here...
33868 * builtins.h (max_object_size): ...and here...
33869 * tree.c (max_object_size): ...to here...
33870 * tree.h (max_object_size): ...and here.
33872 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
33874 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33875 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33876 for correct semantics.
33878 2019-02-11 Alan Modra <amodra@gmail.com>
33880 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33881 -mlongcall and -mpltseq.
33882 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33883 (RS/6000 and PowerPC Options <-mpltseq>): Document.
33884 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33885 * config/rs6000/sysv4.opt (mpltseq): New option.
33886 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33887 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33888 support is lacking. Don't allow -mpltseq with -mbss-plt.
33889 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33890 -mpltseq given for ELFv1.
33891 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33892 Only use UNSPEC_PLTSEQ for inline PLT calls.
33893 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
33894 use UNSPEC_PLTSEQ for inline PLT calls.
33895 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33896 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33897 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33898 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33899 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33900 (pltseq_mtctr_<mode>): Likewise.
33902 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33904 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33906 * configure: Regenerate.
33908 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33911 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33914 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33916 * function.c (assign_parm_setup_block): Use the stored
33917 size, not the passed size, when allocating stack-space,
33918 also for a parameter with alignment larger than
33919 MAX_SUPPORTED_STACK_ALIGNMENT.
33921 2019-02-11 Martin Liska <mliska@suse.cz>
33924 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33925 * ipa-inline.c (inline_small_functions): Likewise.
33926 * ipa-pure-const.c (propagate_pure_const): Likewise.
33927 (propagate_nothrow): Likewise.
33928 * ipa-reference.c (propagate): Likewise.
33929 * ipa-utils.c (struct searchc_env): Remove unused field.
33930 (searchc): Always search across AVAIL_INTERPOSABLE.
33931 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33932 the only called IPA pure const can properly not propagate
33933 across interposable boundary.
33934 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33936 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33938 * config/nds32/nds32.md (call_internal, call_value_internal,
33939 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33941 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33943 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33946 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33948 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33951 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33953 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33955 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33957 PR tree-optimization/89268
33958 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33959 if preds is non-NULL.
33961 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33964 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33967 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33969 * config/nds32/nds32.md (trap): New pattern.
33971 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33973 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33976 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33978 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33981 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33983 * ipa-visibility.c (localize_node): Also do not localize
33984 LDPR_PREVAILING_DEF_IRONLY_EXP.
33986 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33989 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33990 instead of type_with_linkage.
33992 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33995 * params.def (uninlined-function-insns, uninlined-function-time,
33996 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33997 bound so we don't get overflows.
33999 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
34001 * config/rs6000/rs6000-string.c (expand_compare_loop,
34002 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
34005 2019-02-09 Jakub Jelinek <jakub@redhat.com>
34007 PR middle-end/89246
34008 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
34009 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
34010 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
34012 2019-02-09 Alan Modra <amodra@gmail.com>
34015 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
34016 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
34019 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
34021 PR middle-end/88560
34022 * lra-constraints.c (process_alt_operands): Don't increase reject
34023 for memory when offset memory is required.
34025 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
34027 * config/s390/vector.md: Implement vector copysign.
34029 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
34031 * expr.c (expand_constructor): Correct indentations.
34033 2019-02-08 Richard Biener <rguenther@suse.de>
34035 PR tree-optimization/89247
34036 * tree-if-conv.c: Include tree-cfgcleanup.h.
34037 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
34038 (tree_if_conversion): Pass through predicate vector.
34039 (pass_if_conversion::execute): Do CFG cleanup and SSA update
34040 inline, see if any if-converted loops we refrece in
34041 LOOP_VECTORIZED calls vanished and fixup.
34042 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
34044 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
34046 * config/s390/constraints.md (jdd): New constraint.
34048 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
34051 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
34052 upper 16 vector registers without TARGET_AVX512VL.
34053 (*movti_internal): Likewise.
34055 2019-02-08 Jakub Jelinek <jakub@redhat.com>
34057 PR rtl-optimization/89234
34058 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
34059 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
34060 (copy_reg_eh_region_note_backward): Likewise.
34062 2019-02-08 Richard Biener <rguenther@suse.de>
34064 PR middle-end/89223
34065 * tree-data-ref.c (initialize_matrix_A): Fail if constant
34066 doesn't fit in HWI.
34067 (analyze_subscript_affine_affine): Handle failure from
34068 initialize_matrix_A.
34070 2019-02-08 Jakub Jelinek <jakub@redhat.com>
34072 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
34075 2019-02-07 David Malcolm <dmalcolm@redhat.com>
34077 PR tree-optimization/86637
34078 PR tree-optimization/89235
34079 * tree-vect-loop.c (optimize_mask_stores): Add an
34080 auto_purge_vect_location sentinel to ensure that vect_location is
34082 * tree-vectorizer.c
34083 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
34084 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
34085 to ensure that vect_location is purged on exit.
34086 (pass_slp_vectorize::execute): Likewise, replacing the manual
34088 * tree-vectorizer.h (class auto_purge_vect_location): New class.
34090 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34092 * config/aarch64/iterators.md (max_opp): New code_attr.
34093 (USMAX): New code iterator.
34094 * config/aarch64/predicates.md (aarch64_smin): New predicate.
34095 (aarch64_smax): Likewise.
34096 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
34097 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
34100 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
34103 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
34104 for TARGET_AVX512VL.
34105 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
34107 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
34109 * config/s390/s390-builtin-types.def: Add new types.
34110 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
34111 (s390_vec_xlw4): Make the memory operand into a const pointer.
34112 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
34114 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
34115 a new vector type with the alignment of the scalar memory operand.
34117 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
34118 Jakub Jelinek <jakub@redhat.com>
34121 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
34122 arm_count_ldrdstrd_insns): New declarations.
34123 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
34125 (valid_operands_ldrd_strd): New function.
34126 (arm_count_ldrdstrd_insns): New function.
34127 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
34128 sets instead of single DImode set and define new insns to match this.
34130 2019-02-07 Tamar Christina <tamar.christina@arm.com>
34132 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
34133 Make it a C initializer.
34135 2019-02-07 Tamar Christina <tamar.christina@arm.com>
34138 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
34140 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34142 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
34143 Use neon_dot<q> for type.
34144 (neon_<sup>dot_lane<vsi2qi>): Likewise.
34146 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34148 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
34149 Use neon_dot<q> for type.
34150 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
34151 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
34153 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
34155 PR rtl-optimization/89225
34156 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
34159 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
34161 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
34162 after restoring registers saved to allocate the frame on Windows.
34164 2019-02-06 Richard Biener <rguenther@suse.de>
34166 PR tree-optimization/89182
34167 * graphite.h (cached_scalar_evolution_in_region): Declare.
34168 * graphite.c (struct seir_cache_key): New.
34169 (struct sese_scev_hash): Likewise.
34170 (seir_cache): New global.
34171 (cached_scalar_evolution_in_region): New function.
34172 (graphite_transform_loops): Allocate and release seir_cache.
34173 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
34174 cached_scalar_evolution_in_region.
34175 * graphite-scop-detection.c (scop_detection::can_represent_loop):
34177 (scop_detection::graphite_can_represent_expr: Use
34178 cached_scalar_evolution_in_region.
34179 (scop_detection::stmt_simple_for_scop_p): Likewise.
34180 (find_params_in_bb): Likewise.
34181 (gather_bbs::before_dom_children): Likewise.
34182 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
34183 (add_loop_constraints): Likewise.
34185 2019-02-06 Jakub Jelinek <jakub@redhat.com>
34187 PR middle-end/89210
34188 * fold-const-call.c (fold_const_vec_convert): Pass true as last
34189 operand to new_unary_operation only if both element types are integral
34190 and it isn't a widening conversion. Return NULL_TREE if
34191 new_unary_operation failed.
34193 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
34196 * config/s390/s390.md: Remove load and test FP splitter.
34198 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
34201 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
34202 expand_compare_loop, expand_block_compare_gpr,
34203 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
34204 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
34205 #include "profile-count.h" and "predict.h" for types and functions
34206 needed to work with REG_BR_PROB notes.
34208 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
34211 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
34212 for the long branch case.
34214 2019-02-05 Jakub Jelinek <jakub@redhat.com>
34217 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
34218 can throw, non-call exceptions are enabled and we can't delete
34219 dead exceptions or alter cfg. Set must_clean if
34220 delete_insn_and_edges returns true, don't set it blindly for calls.
34221 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
34223 PR rtl-optimization/89195
34224 * combine.c (make_extraction): For MEMs, don't extract bytes outside
34225 of the original MEM.
34227 2019-02-05 Martin Liska <mliska@suse.cz>
34229 PR gcov-profile/89000
34230 * gcov.c (function_summary): Remove argument.
34231 (file_summary): New function.
34232 (print_usage): Replace tabs with spaces.
34233 (generate_results): Use new function file_summary.
34235 2019-02-05 Jakub Jelinek <jakub@redhat.com>
34238 * optabs.c (prepare_cmp_insn): Pass x and y to
34239 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
34241 2019-02-05 Richard Biener <rguenther@suse.de>
34243 PR middle-end/89150
34244 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
34245 (struct bitmap_element): Drop chain_prev so we properly recurse on
34246 the prev member, supporting tree views.
34247 (struct bitmap_head): GTY skip the obstack member.
34249 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
34252 * doc/extend.texi (Vector Extensions): Add an example of using vector
34253 types together with x86 intrinsics.
34255 2019-02-04 Alan Modra <amodra@gmail.com>
34257 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
34258 str[] size to 160, and comment.
34260 2019-02-04 Alan Modra <amodra@gmail.com>
34262 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
34263 (rs6000_pltseq_template): Guard output of TLS markers with
34264 TARGET_TLS_MARKERS.
34265 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
34266 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
34267 to use inline PLT sequences.
34268 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
34269 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
34270 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
34272 2019-02-04 Martin Liska <mliska@suse.cz>
34275 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
34276 out when ipa_fn_summaries does not contain entry for callee.
34278 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
34280 * config/sparc/sparc.h: Remove superfluous blank lines.
34281 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
34282 (got_register_rtx): ...this.
34283 (sparc_got): Adjust to above renaming.
34284 (sparc_tls_got): Likewise.
34285 (sparc_delegitimize_address): Likewise.
34286 (sparc_output_mi_thunk): Likewise.
34287 (sparc_init_pic_reg): Likewise.
34288 (save_local_or_in_reg_p): Fix test on the GOT register.
34289 (USE_HIDDEN_LINKONCE): Move around.
34290 (get_pc_thunk_name): Likewise.
34291 (gen_load_pcrel_sym): Likewise.
34292 (load_got_register): Likewise.
34294 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
34296 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
34297 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
34299 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
34301 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
34302 into consideration.
34304 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
34306 * config.gcc (with_nds32_lib, glibc):
34307 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
34308 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
34309 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
34311 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
34314 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
34315 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
34316 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
34317 (*rcpsf2_sse): Ditto.
34318 (*rsqrtsf2_sse): Ditto.
34319 (sse4_1_round<mode<2): Ditto.
34321 2019-02-03 Richard Biener <rguenther@suse.de>
34324 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
34327 2019-02-02 Jakub Jelinek <jakub@redhat.com>
34329 PR middle-end/87887
34330 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
34331 Punt with warning on aggregate return or argument types. Ignore
34332 type/mode checking for uniform arguments.
34334 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
34336 * combine.c (try_combine): Do not print "Can't combine" messages unless
34337 printing failed combination attempts.
34339 2019-02-01 Martin Jambor <mjambor@suse.cz>
34342 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
34343 segment and global segment variables before making them static.
34345 2019-02-01 Martin Jambor <mjambor@suse.cz>
34347 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
34348 missed optimization dump with dump_enabled_p.
34350 2019-02-01 Richard Biener <rguenther@suse.de>
34352 PR middle-end/88597
34353 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
34354 the instantiate cache.
34355 (instantiate_scev_binary): Elide second operand procesing
34356 if equal to the first.
34357 * tree-chrec.c (chrec_contains_symbols): Add visited set.
34358 (chrec_contains_undetermined): Likewise.
34359 (tree_contains_chrecs): Likewise.
34361 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
34363 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
34365 2019-02-01 Jakub Jelinek <jakub@redhat.com>
34367 PR tree-optimization/89143
34368 * wide-int-range.h (wide_int_range_absu): Declare.
34369 * wide-int-range.cc (wide_int_range_absu): New function.
34370 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
34372 PR tree-optimization/88107
34373 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
34374 instead of assertion that eh_region_outermost is non-NULL, if it
34375 is NULL, set *ALL to true and return NULL.
34376 (move_sese_region_to_fn): Adjust caller, if all is set, call
34377 duplicate_eh_regions with NULL region.
34379 2019-02-01 Richard Biener <rguenth@suse.de>
34381 PR rtl-optimization/88593
34382 * mode-switching.c (optimize_mode_switching): Free dominators before
34383 calling cleanup_cfg.
34385 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
34387 PR tree-optimization/88932
34388 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
34390 2019-01-31 Jakub Jelinek <jakub@redhat.com>
34392 PR middle-end/89137
34393 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
34394 bogus clang warning.
34396 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
34399 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
34400 alternative to avoid partial SSE register stall for TARGET_AVX.
34401 (truncdfsf2): Ditto.
34402 (sse4_1_round<mode>2): Ditto.
34404 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
34406 PR tree-optimization/89008
34407 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
34408 process anything of the form X * 0.
34410 2019-01-31 Richard Biener <rguenther@suse.de>
34412 PR tree-optimization/89135
34413 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
34414 with abnormal preds.
34416 2019-01-31 Jakub Jelinek <jakub@redhat.com>
34419 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
34420 always_inline callees into no_sanitize_address callers.
34422 2019-01-31 Richard Biener <rguenther@suse.de>
34424 PR rtl-optimization/89115
34425 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
34427 2019-01-30 Martin Sebor <msebor@redhat.com>
34430 * doc/extend.texi (cast to a union): Correct and expand.
34432 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
34434 PR rtl-optimization/87246
34435 * lra-constraints.c (simplify_operand_subreg): Reload memory
34436 in subreg if the address became invalid.
34438 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
34441 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
34442 Disable for little-endian.
34444 2019-01-30 Richard Biener <rguenther@suse.de>
34446 PR rtl-optimization/89115
34447 * opts.c (default_options_optimization): Reduce
34448 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
34449 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
34452 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
34454 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
34455 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
34456 type of vector element when vec_extract is implemented by direct
34459 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
34461 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
34463 2019-01-30 Richard Biener <rguenther@suse.de>
34465 PR tree-optimization/89111
34466 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
34467 canonicalization to appropriately sized access types.
34469 2019-01-30 Jakub Jelinek <jakub@redhat.com>
34472 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
34473 for arguments to functions that are TU-local and shouldn't be
34474 referenced by assembly.
34476 2019-01-30 Ulrich Drepper <drepper@redhat.com>
34478 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
34481 2019-01-29 Martin Sebor <msebor@redhat.com>
34484 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
34486 2019-01-29 Jakub Jelinek <jakub@redhat.com>
34490 * omp-simd-clone.c (simd_clone_clauses_extract)
34491 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
34492 OMP_CLAUSE_ALIGNED_ALIGNMENT.
34494 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
34496 * config.gcc: Force .init_array for ARC.
34498 2019-01-29 Richard Biener <rguenther@suse.de>
34501 * dwarf2out.c (collect_skeleton_dies): New helper.
34502 (copy_decls_for_unworthy_types): Call it.
34503 (build_abbrev_table): Assert we do not try to replace
34504 DW_AT_signature refs with local refs.
34506 2019-01-28 Jakub Jelinek <jakub@redhat.com>
34508 PR middle-end/89002
34509 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
34510 for lastprivate/linear IV, push gimplify context around gimplify_assign
34511 and, if it needed any temporaries, pop it into a gimple bind around the
34514 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
34516 * common.opt (-Wattribute-alias): Remove "no-" from name.
34517 Make -Wattribute-alias command line option and
34518 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
34520 2019-01-28 Jakub Jelinek <jakub@redhat.com>
34523 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
34524 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
34526 (bmi2): Add missing @opindex.
34527 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
34528 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
34529 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
34530 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
34531 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
34532 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
34533 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
34534 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
34535 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
34536 xsavec, xsaveopt and xsaves options.
34538 2019-01-28 Richard Biener <rguenther@suse.de>
34541 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
34544 2019-01-28 Richard Biener <rguenther@suse.de>
34546 PR tree-optimization/88739
34547 * tree-cfg.c (verify_types_in_gimple_reference): Verify
34548 BIT_FIELD_REFs only are applied to mode-precision operands
34549 when they are integral.
34550 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
34551 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
34552 BIT_FIELD_REFs of non-mode-precision integral operands.
34554 2019-01-27 Jakub Jelinek <jakub@redhat.com>
34557 * config/i386/sse.md
34558 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
34559 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
34560 first constants in pairs are multiples of 2. Formatting fixes.
34561 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
34562 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
34563 first constants in each quadruple are multiples of 4. Formatting fixes.
34565 2019-01-26 Martin Jambor <mjambor@suse.cz>
34568 * tree-inline.c: Include tree-cfgcleanup.h.
34569 (delete_unreachable_blocks_update_callgraph): Move...
34570 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
34571 ...here, make externally visible, make second argument bool, adjust
34573 * tree-cfgcleanup.c: Include cgraph.h.
34574 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
34576 * ipa-prop.c: Include tree-cfgcleanup.h.
34577 (ipcp_transform_function): Call
34578 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
34580 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
34582 PR rtl-optimization/88846
34583 * ira.c (process_set_for_memref_referenced_p): New.
34584 (memref_referenced_p): Add new param. Use
34585 process_set_for_memref_referenced_p. Add new switch cases.
34586 (memref_used_between_p): Pass new arg to memref_referenced_p.
34588 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
34591 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
34592 argument ABI_BREAK. Set to true if the calculated alignment has
34593 changed in gcc-9. Check bit-fields for their base type alignment.
34594 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
34595 (aarch64_function_arg_boundary): Likewise.
34596 (aarch64_gimplify_va_arg_expr): Likewise.
34598 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
34600 PR middle-end/89037
34601 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
34602 instead of accessing TREE_INT_CST_ELT directly.
34604 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
34606 * doc/sourcebuild.texi (Environment attributes): Add fenv and
34607 fenv_exceptions description.
34609 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
34611 PR rtl-optimization/87763
34612 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
34613 Allow SUBREG when matching CC_NZmode compare.
34615 2019-01-25 Richard Biener <rguenther@suse.de>
34617 PR tree-optimization/89049
34618 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
34619 Look at the pattern stmt to determine if the stmt is vectorized.
34621 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
34623 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
34624 (pred_mov<mode>): Handle all-register forms using both a new
34625 alternative and a split.
34627 2019-01-25 Richard Biener <rguenther@suse.de>
34629 PR tree-optimization/86865
34630 * graphite-scop-detection.c (scop_detection::can_represent_loop):
34631 Reject non-do-while loops.
34633 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
34635 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
34636 * config/rs6000/constraints.md (Q constraint): Use REG_P.
34637 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
34638 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34639 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
34640 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34641 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
34642 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
34643 vlogical_operand, gpc_reg_operand, int_reg_operand,
34644 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
34645 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
34646 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
34647 (save_world_operation, restore_world_operation, lmw_operation,
34648 stmw_operation): Use MEM_P and REG_P.
34649 (tie_operand): Use MEM_P.
34650 (vrsave_operation, crsave_operation): Use REG_P.
34651 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
34652 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
34653 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
34654 (call_operand): Use HARD_REGISTER_P.
34655 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
34657 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
34658 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
34659 quad_aligned_load_p, replace_swapped_aligned_store,
34660 recombine_lvx_pattern, replace_swapped_aligned_load,
34661 recombine_stvx_pattern): Use MEM_P.
34662 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
34663 Use MEM_P and SYMBOL_REF_P.
34664 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
34665 (insn_is_swappable_p): Use REG_P and MEM_P.
34666 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
34667 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
34669 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
34670 Use CONST_DOUBLE_P.
34671 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
34673 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
34674 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
34675 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
34676 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
34678 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34679 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
34680 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
34681 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
34682 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
34683 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
34684 rs6000_split_logical_di): Use CONST_INT_P.
34685 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
34686 REG_P and SYMBOL_REF_P.
34687 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
34688 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
34689 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
34690 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
34691 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
34692 (small_data_operand, print_operand_address): Use CONST_INT_P and
34694 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
34695 (rs6000_init_hard_regno_mode_ok, direct_move_p):
34696 Use HARD_REGISTER_NUM_P.
34697 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
34698 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
34699 SUBREG_P and SYMBOL_REF_P.
34700 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
34701 and HARD_REGISTER_NUM_P.
34702 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
34704 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
34705 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
34707 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
34708 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
34709 find_addr_reg): Use REG_P.
34710 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
34711 (rs6000_emit_le_vsx_move): Use SUBREG_P.
34712 (offsettable_ok_by_alignment, constant_pool_expr_p,
34713 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
34714 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
34715 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
34716 rs6000_assemble_integer, create_TOC_reference,
34717 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
34718 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
34719 (rs6000_split_vec_extract_var): Use reg_or_subregno.
34720 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
34721 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
34722 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34723 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
34724 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
34725 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
34726 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
34727 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
34728 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
34729 and cbranch<mode>4): Use CONST_INT_P.
34730 (multiple define_splits): Use REG_P and SUBREG_P.
34731 (define_expands call, call_value): Use MEM_P.
34732 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
34733 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
34734 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
34735 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
34736 and HARD_REGISTER_NUM_P.
34737 (multiple define_splits): Use HARD_REGISTER_NUM_P.
34739 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
34741 PR rtl-optimization/88948
34742 * rtl.h (prepare_copy_insn): New prototype.
34743 * gcse.c (prepare_copy_insn): New function, split out from
34744 process_insert_insn.
34745 (process_insert_insn): Use prepare_copy_insn.
34746 * store-motion.c (replace_store_insn): Use prepare_copy_insn
34747 instead of gen_move_insn.
34749 2019-01-24 Jakub Jelinek <jakub@redhat.com>
34752 * config/i386/i386.c (ix86_pic_register_p): Return true for
34753 UNSPEC_SET_GOT too.
34755 PR tree-optimization/88964
34756 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
34757 punt if HONOR_SNANS (chrec).
34759 PR middle-end/89015
34760 * tree-nested.c (convert_nonlocal_reference_stmt,
34761 convert_local_reference_stmt, convert_tramp_reference_stmt,
34762 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
34763 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
34764 or GIMPLE_OMP_TASK.
34766 PR tree-optimization/89027
34767 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
34768 for "omp simd array" variables.
34770 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
34773 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
34774 force the alignment of m_val.
34776 2019-01-24 Richard Biener <rguenther@suse.de>
34779 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
34780 When in "legacy" debug mode make sure to reset self-origins.
34782 2019-01-24 Martin Liska <mliska@suse.cz>
34784 PR gcov-profile/88994
34785 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
34786 result will be always smaller or equal to the original.
34787 * gcov.c (mangle_name): Fix else branch where we should
34788 also copy to PTR and shift the pointer.
34790 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
34792 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
34793 * vr-values.c (find_case_label_ranges): Fix a comment typo.
34795 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
34797 * common/config/i386/i386-common.c
34798 (OPTION_MASK_ISA_ENQCMD_SET,
34799 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
34800 (ix86_handle_option): Handle -menqcmd.
34801 * config.gcc (enqcmdintrin.h): New header file.
34802 * config/i386/cpuid.h (bit_ENQCMD): New bit.
34803 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
34805 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
34807 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
34808 __builtin_ia32_enqcmds): New builtins.
34809 * config/i386/i386-c.c (__ENQCMD__): New macro.
34810 * config/i386/i386-option.c (ix86_target_string): Add
34812 (ix86_valid_target_attribute_inner_p): Likewise.
34813 * config/i386/i386-expand.c
34814 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
34815 IX86_BUILTIN_ENQCMDS.
34816 * config/i386/i386.h (TARGET_ENQCMD): New.
34817 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
34818 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
34819 (movdir64b_<mode>): Parameterize to enable share expansion code
34820 with ENQCMD in function ix86_expand_builtin.
34821 * config/i386/i386.opt: Add -menqcmd.
34822 * config/i386/immintrin.h: Include enqcmdintrin.h.
34823 * config/i386/enqcmdintrin.h: New intrinsic file.
34824 * doc/invoke.texi: Add -menqcmd.
34826 2019-01-23 Bin Cheng <bin.cheng@arm.com>
34827 Steve Ellcey <sellcey@marvell.com>
34830 * recog.c (address_operand): Return false on wrong mode for address.
34831 (constrain_operands): Check for mode with 'p' constraint.
34833 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
34836 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
34837 Disparage MMX alternative.
34838 (sse2_cvtpd2pi): Ditto.
34839 (sse2_cvttpd2pi): Ditto.
34841 2019-01-23 David Malcolm <dmalcolm@redhat.com>
34844 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
34845 use-after-free of the result of
34846 aarch64_get_extension_string_for_isa_flags.
34848 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34851 * doc/extend.texi: Document break and continue behavior in
34852 statement expressions.
34854 2019-01-23 Richard Biener <rguenther@suse.de>
34856 PR tree-optimization/89008
34857 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
34858 not leave another stray operand.
34860 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34862 * BASE-VER: Bump to 9.0.1.
34864 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
34866 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34867 thunk that returns by reference, use the type of the return object
34868 of the thunk instead of that of the alias to build the dereference.
34870 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
34872 * config/arc/atomic.md: Add operand to DMB instruction.
34874 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34876 PR tree-optimization/88964
34877 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34878 build_zero_cst instead of build_int_cst. Return false for loop
34879 invariants which honor signed zeros.
34881 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
34883 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34885 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34888 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34889 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34890 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34892 PR middle-end/88968
34893 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34894 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34897 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34898 Disable for little endian.
34900 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34903 * config/arm/arm.c (arm_needs_double_word_align): Check
34904 DECL_BIT_FIELD_TYPE.
34906 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34907 H.J. Lu <hongjiu.lu@intel.com>
34910 * config/i386/i386-builtin.def: Add mask2 to all builtin
34911 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34913 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34914 (BDESC_FIRST): Likewise.
34915 (define_builtin): Add an argument for mask2. Updated to handle
34916 both ix86_isa_flags and ix86_isa_flags2.
34917 (define_builtin_const): Likewise.
34918 (define_builtin_pure): Likewise.
34919 (define_builtin2): Deleted.
34920 (define_builtin_const2): Likewise.
34921 (builtin_description): Add a member, mask2.
34922 (bdesc_*): Add mask2 to builtin initializations.
34923 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34924 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34926 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34928 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34931 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34934 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34937 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34938 alignment is dominated by a bitfield with 64-bit aligned base type.
34939 (arm_function_arg): Emit a warning if the alignment has changed since
34940 earlier GCC releases.
34941 (arm_function_arg_boundary): Likewise.
34942 (arm_setup_incoming_varargs): Likewise.
34944 2019-01-22 Richard Biener <rguenther@suse.de>
34946 PR tree-optimization/88862
34947 * graphite-scop-detection.c
34948 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34950 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34952 * doc/extend.tex (AMD GCN Function Attributes): New section.
34953 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34954 * doc/invoke.texi (AMD GCN Options): New section.
34955 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34957 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34959 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34960 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34962 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34964 PR tree-optimization/88044
34965 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34966 is false in the first iteration, but !every_iteration, return false
34967 instead of true with niter->niter zero.
34969 PR rtl-optimization/88904
34970 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34971 any nonequal registers before processing BB_END (b).
34974 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34976 (expand_binop_directly, expand_doubleword_clz,
34977 expand_doubleword_popcount, expand_ctz, expand_ffs,
34978 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34980 PR rtl-optimization/49429
34982 PR rtl-optimization/86334
34984 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34985 addressable from here...
34986 (emit_block_op_via_libcall): ... to here.
34988 2019-01-22 Richard Biener <rguenther@suse.de>
34990 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34991 auto_vec for cost vector to fix memleak.
34992 (vectorize_fold_left_reduction): Properly gather SLP defs.
34993 (vectorizable_comparison): Do not swap operands to properly
34996 2019-01-22 Alan Modra <amodra@gmail.com>
34999 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
35000 stays a reg. Allow a const_int.
35001 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
35002 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
35003 (IS_NOMARK_TLSGETADDR): Define.
35004 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
35005 (rs6000_output_tlsargs): New function.
35006 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
35007 __tls_get_addr call takes an arg.
35008 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
35009 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
35011 (call_value_nonlocal_sysv): ..or here, delete split.
35012 (tls_gdld_nomark): Delete.
35013 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
35014 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
35015 (call_value_nonlocal_sysv): Likewise.
35016 (call_value_nonlocal_sysv_secure): Likewise.
35017 (call_value_nonlocal_aix): Likewise.
35018 (call_value_indirect_aix): Likewise.
35019 (call_value_indirect_elfv2): Likewise.
35020 (call_value_local32, call_value_local64): Disable for no-mark tls.
35021 (call_value_local_aix): Likewise.
35023 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
35026 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
35027 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
35029 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
35031 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
35032 string contents as hash_map keys.
35034 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35037 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
35038 for rvalue context. Handle rvalues correctly. Use min_align_of_type
35039 instead of TYPE_ALIGN.
35040 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
35041 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
35042 pointer from TYPE_STUB_DECL.
35044 2019-01-21 Richard Biener <rguenther@suse.de>
35046 PR tree-optimization/88934
35047 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
35048 at the possibly non-constant operand.
35049 (vect_get_constant_vectors): Adjust.
35051 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
35054 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
35055 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
35056 instead of _X86INTRIN_H_INCLUDED.
35057 * onfig/i386/clwbintrin.h: Likewise.
35058 * config/i386/pkuintrin.h: Likewise.
35059 * config/i386/prfchwintrin.h: Likewise.
35060 * config/i386/rdseedintrin.h: Likewise.
35061 * config/i386/wbnoinvdintrin.h: Likewise.
35062 * config/i386/xsavecintrin.h: Likewise.
35063 * config/i386/xsavesintrin.h: Likewise.
35064 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
35065 * config/i386/xsaveintrin.h: Likewise.
35066 * config/i386/xsaveoptintrin.h: Likewise.
35067 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
35068 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
35069 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
35070 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
35071 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
35072 * config/i386/immintrin.h: Here.
35074 2019-01-20 Martin Jambor <mjambor@suse.cz>
35077 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
35078 with aa_walk_budget.
35079 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
35080 aa_walk_budget_p parameter.
35081 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
35082 walk. Updated all callers.
35083 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
35084 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
35086 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
35087 parameter info. Extract info from fbi. Pass fbi to recursive calls
35088 and to unmodified_parm.
35089 (phi_result_unknown_predicate): New parameter fbi, removed parameter
35090 info, updated call to will_be_nonconstant_expr_predicate.
35091 (param_change_prob): New parameter fbi, limit AA walking.
35092 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
35093 calls to various above functions.
35094 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
35095 parameter. Use it to limit AA walking.
35096 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
35097 fbi, limit AA walk.
35098 (detect_type_change): New parameter fbi, pass it on to
35099 detect_type_change_from_memory_writes.
35100 (detect_type_change_ssa): Likewise.
35101 (aa_overwalked): Removed.
35102 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
35103 accordingly, adjust to the neew AA limiting scheme.
35104 (parm_ref_data_preserved_p): Likewise.
35105 (ipa_compute_jump_functions_for_edge): Adjust call to
35107 (ipa_analyze_call_uses): Likewise.
35108 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
35109 (ipa_analyze_node): Initialize aa_walk_budget.
35110 (ipcp_transform_function): Likewise.
35111 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
35112 to get_dynamic_type.
35114 2019-01-19 Jakub Jelinek <jakub@redhat.com>
35116 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
35117 outside of #if CHECKING_P code.
35119 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
35121 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
35122 New function, split out from...
35123 (loop_versioning::analyze_stride): ...here.
35124 (loop_versioning::find_per_loop_multiplication): Use gassign.
35125 (loop_versioning::analyze_term_using_scevs): Return a success code.
35126 (loop_versioning::analyze_arbitrary_term): New function.
35127 (loop_versioning::analyze_address_fragment): Use
35128 analyze_arbitrary_term if all else fails.
35130 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
35133 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
35136 2019-01-18 Richard Biener <rguenther@suse.de>
35138 PR tree-optimization/88903
35139 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
35140 scalar stmts a SLP shift amount is composed of when detecting
35143 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
35146 * config/arm/arm-cpus.in (mp): New feature.
35147 (sec): New feature.
35148 (fgroup ARMv7ve): Add mp and sec features.
35149 (arch armv7-a): Add options to allow mp and sec extensions.
35150 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
35151 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
35152 extenstions to the base architecture.
35153 (cpu cortex-a8): Add sec extension to the base architecture.
35154 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
35155 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
35156 variants down to the base v7-a varaint.
35157 * config/arm/t-multilib (v7_a_arch_variants): New variable.
35158 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
35159 of permitted extensions for -march=armv7-a and for
35160 -mcpu=generic-armv7-a.
35162 2019-01-18 Martin Liska <mliska@suse.cz>
35164 * params.def: Fix comment.
35165 * tree-profile.c (gimple_init_gcov_profiler): Bump function
35167 (gimple_gen_ic_func_profiler): Likewise.
35169 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35171 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
35172 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
35173 and put in error checks for stack protector guard options.
35174 (aarch64_stack_protect_guard): New.
35175 (TARGET_STACK_PROTECT_GUARD): Define.
35176 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
35177 (reg_stack_protect_address<mode>): New.
35178 (stack_protect_set): Adjust for SSP_GLOBAL.
35179 (stack_protect_test): Likewise.
35180 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
35181 (-mstack-protector-guard): Likewise.
35182 (-mstack-protector-guard-offset): Likewise.
35184 2019-01-18 Jakub Jelinek <jakub@redhat.com>
35186 PR tree-optimization/86214
35187 * tree-inline.h (struct copy_body_data): Add
35188 add_clobbers_to_eh_landing_pads member.
35189 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
35190 (copy_edges_for_bb): Call it if EH edge destination is <
35191 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
35192 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
35193 if flag_stack_reuse != SR_NONE and clear it afterwards.
35195 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
35198 * doc/install.texi (with-multilib-list): Document for aarch64.
35200 2019-01-18 Jakub Jelinek <jakub@redhat.com>
35203 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
35204 (("..."))) with ("...").
35206 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
35208 * doc/extend.texi (Built-in Functions for Memory Model Aware
35209 Atomic Operations): Document atomic fetch and nand.
35211 2019-01-18 Martin Liska <mliska@suse.cz>
35212 Richard Biener <rguenther@suse.de>
35214 PR middle-end/88587
35215 * cgraph.h (create_version_clone_with_body): Add new argument
35217 * cgraphclones.c (cgraph_node::create_version_clone): Add
35218 DECL_ATTRIBUTES to a newly created decl. And call
35219 valid_attribute_p so that proper cl_target_optimization_node
35220 is set for the newly created declaration.
35221 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
35223 (expand_target_clones): Do not call valid_attribute_p, it must
35225 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
35228 2019-01-17 Jakub Jelinek <jakub@redhat.com>
35231 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
35232 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
35233 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
35235 2019-01-17 Martin Sebor <msebor@redhat.com>
35237 PR middle-end/88273
35238 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
35239 Handle anti-ranges the same as no range at all.
35241 2018-01-17 Steve Ellcey <sellcey@cavium.com>
35243 * config/aarch64/aarch64.c (cgraph.h): New include.
35244 (intl.h): New include.
35245 (supported_simd_type): New function.
35246 (currently_supported_simd_type): Ditto.
35247 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
35248 (aarch64_simd_clone_adjust): Ditto.
35249 (aarch64_simd_clone_usable): Ditto.
35250 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
35251 (TARGET_SIMD_CLONE_ADJUST): Ditto.
35252 (TARGET_SIMD_CLONE_USABLE): Ditto.
35253 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
35254 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
35257 2019-01-17 Martin Sebor <msebor@redhat.com>
35259 PR tree-optimization/88800
35260 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
35261 NO_WARNING bit here. Avoid folding out-of-bounds calls.
35262 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
35263 redundant argument. Add new argument and issue diagnostics under
35264 its control. Detect out-of-bounds access even with warnings
35266 (check_bounds_or_overlap): Change return type. Add argument.
35267 (wrestrict_dom_walker::check_call): Adjust.
35268 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
35269 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
35270 check_bounds_or_overlap's return value.
35271 (handle_builtin_stxncpy): Same.
35272 (handle_builtin_strcat): Same.
35274 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35275 Kwok Cheung Yeung <kcy@codesourcery.com>
35276 Julian Brown <julian@codesourcery.com>
35277 Tom de Vries <tom@codesourcery.com>
35279 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
35281 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35283 * doc/sourcebuild.texi: Document dg-require-effective-target
35284 llvm_binutils and offload_gcn.
35286 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35287 Kwok Cheung Yeung <kcy@codesourcery.com>
35288 Julian Brown <julian@codesourcery.com>
35289 Tom de Vries <tom@codesourcery.com>
35291 * doc/sourcebuild.texi: Document dg-required-effective-target
35294 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35295 Kwok Cheung Yeung <kcy@codesourcery.com>
35296 Julian Brown <julian@codesourcery.com>
35297 Tom de Vries <tom@codesourcery.com>
35298 Jan Hubicka <hubicka@ucw.cz>
35299 Martin Jambor <mjambor@suse.cz>
35301 * config.gcc: Add amdgcn*-*-amdhsa configuration.
35302 * configure.ac: Check for dlopen.
35303 * configure: Regenerate.
35305 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35306 Kwok Cheung Yeung <kcy@codesourcery.com>
35307 Julian Brown <julian@codesourcery.com>
35308 Tom de Vries <tom@codesourcery.com>
35309 Jan Hubicka <hubicka@ucw.cz>
35310 Martin Jambor <mjambor@suse.cz>
35312 * common/config/gcn/gcn-common.c: New file.
35313 * config/gcn/driver-gcn.c: New file.
35314 * config/gcn/gcn-builtins.def: New file.
35315 * config/gcn/gcn-hsa.h: New file.
35316 * config/gcn/gcn-modes.def: New file.
35317 * config/gcn/gcn-opts.h: New file.
35318 * config/gcn/gcn-passes.def: New file.
35319 * config/gcn/gcn-protos.h: New file.
35320 * config/gcn/gcn-run.c: New file.
35321 * config/gcn/gcn-tree.c: New file.
35322 * config/gcn/gcn.c: New file.
35323 * config/gcn/gcn.h: New file.
35324 * config/gcn/gcn.opt: New file.
35325 * config/gcn/t-gcn-hsa: New file.
35327 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
35328 Kwok Cheung Yeung <kcy@codesourcery.com>
35329 Julian Brown <julian@codesourcery.com>
35330 Tom de Vries <tom@codesourcery.com>
35331 Jan Hubicka <hubicka@ucw.cz>
35332 Martin Jambor <mjambor@suse.cz>
35334 * config/gcn/constraints.md: New file.
35335 * config/gcn/gcn-valu.md: New file.
35336 * config/gcn/gcn.md: New file.
35337 * config/gcn/predicates.md: New file.
35339 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
35341 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
35342 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
35343 (stmt_uses_0_or_null_in_undefined_way): Likewise.
35344 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
35346 2019-01-17 Tamar Christina <tamar.christina@arm.com>
35349 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
35350 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
35351 it and document registers.
35353 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35355 * config/aarch64/aarch64.c (ares_tunings): Define.
35356 * config/aarch64/aarch64-cores.def (ares): Use the above.
35358 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
35362 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
35364 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
35365 (_mm512_fixupimm_round_pd): Update parameters and builtin.
35366 (_mm512_maskz_fixupimm_round_pd): Ditto.
35367 (_mm512_fixupimm_round_ps): Ditto.
35368 (_mm512_maskz_fixupimm_round_ps): Ditto.
35369 (_mm_fixupimm_round_sd): Ditto.
35370 (_mm_maskz_fixupimm_round_sd): Ditto.
35371 (_mm_fixupimm_round_ss): Ditto.
35372 (_mm_maskz_fixupimm_round_ss): Ditto.
35373 (_mm512_fixupimm_pd): Ditto.
35374 (_mm512_maskz_fixupimm_pd): Ditto.
35375 (_mm512_fixupimm_ps): Ditto.
35376 (_mm512_maskz_fixupimm_ps): Ditto.
35377 (_mm_fixupimm_sd): Ditto.
35378 (_mm_maskz_fixupimm_sd): Ditto.
35379 (_mm_fixupimm_ss): Ditto.
35380 (_mm_maskz_fixupimm_ss): Ditto.
35381 (_mm512_mask_fixupimm_round_pd): Update builtin.
35382 (_mm512_mask_fixupimm_round_ps): Ditto.
35383 (_mm_mask_fixupimm_round_sd): Ditto.
35384 (_mm_mask_fixupimm_round_ss): Ditto.
35385 (_mm512_mask_fixupimm_pd): Ditto.
35386 (_mm512_mask_fixupimm_ps): Ditto.
35387 (_mm_mask_fixupimm_sd): Ditto.
35388 (_mm_mask_fixupimm_ss): Ditto.
35389 * config/i386/avx512vlintrin.h:
35390 (_mm256_fixupimm_pd): Update parameters and builtin.
35391 (_mm256_maskz_fixupimm_pd): Ditto.
35392 (_mm256_fixupimm_ps): Ditto.
35393 (_mm256_maskz_fixupimm_ps): Ditto.
35394 (_mm_fixupimm_pd): Ditto.
35395 (_mm_maskz_fixupimm_pd): Ditto.
35396 (_mm_fixupimm_ps): Ditto.
35397 (_mm_maskz_fixupimm_ps): Ditto.
35398 (_mm256_mask_fixupimm_pd): Update builtin.
35399 (_mm256_mask_fixupimm_ps): Ditto.
35400 (_mm_mask_fixupimm_pd): Ditto.
35401 (_mm_mask_fixupimm_ps): Ditto.
35402 * config/i386/i386-builtin-types.def: Add new types and remove
35404 * config/i386/i386-builtin.def: Update builtin definitions.
35405 * config/i386/i386.c: Handle new builtin types and remove useless ones.
35406 * config/i386/sse.md: Update VFIXUPIMM* patterns.
35407 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35408 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35409 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
35410 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35411 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35412 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
35413 * config/i386/subst.md:
35414 (round_saeonly_sd_mask_operand4): Add new subst_attr.
35415 (round_saeonly_sd_mask_op4): Ditto.
35416 (round_saeonly_expand_operand5): Ditto.
35417 (round_saeonly_expand): Update.
35419 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
35423 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
35425 * config/i386/sse.md: Combine VFIXUPIMM* patterns
35426 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35427 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35428 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
35429 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
35430 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
35431 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
35433 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
35437 2018-12-15 Jakub Jelinek <jakub@redhat.com>
35440 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
35441 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
35442 instead of UNSPEC_FIXUPIMM.
35444 2019-01-17 Richard Biener <rguenther@suse.de>
35447 * dwarf2out.c (want_pubnames): Never generate pubnames sections
35448 and friends for the LTO part of debug info.
35450 2019-01-17 Jakub Jelinek <jakub@redhat.com>
35452 PR tree-optimization/86214
35453 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
35456 PR rtl-optimization/88870
35457 * dce.c (deletable_insn_p): Never delete const/pure calls that can
35458 throw if we can't alter the cfg or delete dead exceptions.
35459 (mark_insn): Don't call find_call_stack_args for such calls.
35461 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
35463 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
35464 prototypes for vec_st.
35465 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
35466 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
35467 mainly on signed/unsigned long long and double.
35469 2019-01-16 David Malcolm <dmalcolm@redhat.com>
35472 * combine.c (delete_noop_moves): Convert to "bool" return,
35473 returning true if any edges are eliminated.
35474 (combine_instructions): Also return true if delete_noop_moves
35477 2019-01-16 Tamar Christina <tamar.christina@arm.com>
35479 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
35480 correct max nunits for endian swap.
35481 (aarch64_expand_fcmla_builtin): Correct subreg code.
35482 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35483 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
35486 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
35488 * config/alpha/alpha.c (alpha_gimplify_va_arg):
35489 Handle split indirect COMPLEX_TYPE arguments.
35491 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
35494 * config/aarch64/aarch64-modes.def: Add comment about how the carry
35495 bit is set by add and compare.
35496 (CC_ADC): New CC_MODE.
35497 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
35498 to cache the code and mode of X. Adjust the shape of a CC_Cmode
35499 comparison. Add detection for CC_ADCmode.
35500 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
35502 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
35503 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
35504 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
35505 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
35506 to eliminate the need for zero-extending the operands.
35507 (add<mode>3_compareC_imm): Delete. Merge into ...
35508 (add<mode>3_compareC): ... this. Restructure the comparison to
35509 eliminate the need for zero-extending the operands.
35510 (add<mode>3_carryin): Use LTU for the overflow detection.
35511 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
35512 Reexpress comparison for overflow.
35513 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
35514 (add<mode>3_carryinC): Likewise.
35515 (add<mode>3_carryinV): Use LTU for carry between partials.
35516 * config/aarch64/predicates.md (aarch64_carry_operation): Update
35517 handling of CC_Cmode and add CC_ADCmode.
35518 (aarch64_borrow_operation): Likewise.
35520 2019-01-16 Tamar Christina <tamar.christina@arm.com>
35522 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
35523 Remove patternmode.
35524 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
35525 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35526 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
35527 Remove endianness conversion.
35529 2019-01-16 Martin Liska <mliska@suse.cz>
35531 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
35533 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
35535 * gcc.c (add_sysrooted_hdrs_prefix): New function.
35536 (path_prefix_reset): Move up in the source file.
35537 (find_fortran_preinclude_file): Make complex search for the
35538 fortran header files.
35540 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
35542 * godump.c (go_output_typedef): When outputting a typedef, refer
35543 to the underlying type by its name and not its structure.
35545 2019-01-15 David Malcolm <dmalcolm@redhat.com>
35548 * tree.c (build_function_type): Assert that arg_types is not
35551 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
35553 PR inline-asm/52813
35554 * doc/extend.texi: Document that listing the stack pointer in the
35555 clobber list of an asm is a deprecated feature.
35556 * common.opt (Wdeprecated): Moved from c-family/c.opt.
35557 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
35558 warning instead of an error for clobbers of the stack pointer.
35559 Add a note explaining why.
35561 2019-01-15 Richard Biener <rguenther@suse.de>
35564 * dwarf2out.c (gen_member_die): Do not generate inheritance
35567 2019-01-15 Richard Biener <rguenther@suse.de>
35569 PR tree-optimization/88855
35570 * tree-if-conv.c (combine_blocks): Collect
35571 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
35573 2019-01-15 Tom de Vries <tdevries@suse.de>
35576 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
35577 lhs == NULL_TREE for gang-level reduction.
35579 2019-01-15 Richard Biener <rguenther@suse.de>
35580 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35583 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
35584 return true if SSA_NAME is already marked in visited bitmap.
35585 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
35587 2019-01-15 Jakub Jelinek <jakub@redhat.com>
35589 PR tree-optimization/88775
35590 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
35591 equal == 0 equality pointer comparisons some more if compared in
35592 integral types and either one points to an automatic var and the
35593 other to a global, or we can prove at least one points to the middle
35594 or both point to start or both point to end.
35596 2019-01-14 Andi Kleen <ak@linux.intel.com>
35598 * Makefile.in: Lower autofdo sampling rate by 10x.
35599 * Makefile.tpl: Dito.
35601 2019-01-14 Tom Honermann <tom@honermann.net>
35603 * defaults.h: Define CHAR8_TYPE.
35605 2019-01-14 Martin Sebor <msebor@redhat.com>
35608 * doc/extend.texi (Darwin Format Checks): Clarify.
35610 2019-01-14 Richard Biener <rguenther@suse.de>
35612 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
35613 whether we are in (simplify ...) or (match ...) context.
35615 2019-01-14 Jakub Jelinek <jakub@redhat.com>
35617 PR rtl-optimization/88796
35618 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
35619 * cfgexpand.c (stack_protect_prologue): Initialize
35620 crtl->stack_protect_guard_decl.
35621 * function.c (stack_protect_epilogue): Use it instead of calling
35622 targetm.stack_protect_guard again.
35623 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
35624 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
35625 crtl->stack_protect_guard_decl.
35626 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
35627 on the returned MEM_EXPR.
35629 2019-01-12 Tom de Vries <tdevries@suse.de>
35631 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
35632 vector length using -fopenacc-dim.
35634 2019-01-12 Tom de Vries <tdevries@suse.de>
35636 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
35637 lengths into account.
35639 2019-01-12 Svante Signell <svante.signell@gmail.com>
35641 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
35642 (TARGET_CAN_SPLIT_STACK): Define.
35643 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
35645 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35647 * params.def (inline-unit-growth): Set to 40.
35649 2019-01-12 Jakub Jelinek <jakub@redhat.com>
35651 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
35653 2019-01-12 Tom de Vries <tdevries@suse.de>
35655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
35656 region calling vector-partitionable routine, set default_vector_length
35659 2019-01-12 Tom de Vries <tdevries@suse.de>
35661 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
35662 variable default_vector_length.
35664 2019-01-12 Tom de Vries <tdevries@suse.de>
35666 PR middle-end/88703
35667 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
35668 from oacc_default_dims, as oacc_validate_dims would do it, and apply
35671 2019-01-12 Tom de Vries <tdevries@suse.de>
35673 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
35674 (nvptx_goacc_validate_dims): Add used parameter.
35675 * doc/tm.texi: Regenerate.
35676 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
35677 argument to call to targetm.goacc.validate_dims.
35678 (default_goacc_validate_dims): Add used
35680 * target.def (validate_dims): Add used parameter in DEFHOOK.
35681 * targhooks.h (default_goacc_validate_dims): Add used parameter.
35683 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35685 PR middle-end/85956
35687 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
35689 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
35690 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
35691 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
35692 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
35694 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
35696 PR rtl-optimization/87305
35698 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
35699 for little endian pseudos used as paradoxical subreg.
35701 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35703 PR tree-optimization/88693
35704 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
35705 for STRING_CSTs that don't contain any NUL characters in the first
35706 TREE_STRING_LENGTH bytes.
35708 2019-01-11 Alan Modra <amodra@gmail.com>
35712 * genattrtab.c (min_fn): Don't translate values.
35713 (min_attr_value): Return INT_MAX when the value can't be calculated.
35714 Return minimum among any values that can be calculated.
35715 (max_attr_value): Adjust.
35717 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35719 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
35721 2019-01-11 Steve Ellcey <sellcey@marvell.com>
35723 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35724 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
35725 (aarch64_return_call_with_max_clobbers): New function.
35726 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
35727 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
35729 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
35730 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
35731 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
35732 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
35733 * cselib.c (cselib_process_insn): Add argument to
35734 targetm.hard_regno_call_part_clobbered call.
35735 * ira-conflicts.c (ira_build_conflicts): Ditto.
35736 * ira-costs.c (ira_tune_allocno_costs): Ditto.
35737 * lra-constraints.c (inherit_reload_reg): Ditto.
35738 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
35739 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
35740 argument. Call targetm.return_call_with_max_clobbers.
35741 Add argument to targetm.hard_regno_call_part_clobbered call.
35742 (calls_have_same_clobbers_p): New function.
35743 (process_bb_lives): Add call_insn and last_call_insn variables.
35744 Pass call_insn to check_pseudos_live_through_calls.
35745 Modify if stmt to check targetm.return_call_with_max_clobbers.
35746 Update setting of flush variable.
35747 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
35749 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
35750 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
35751 targetm.hard_regno_call_part_clobbered call.
35752 * reginfo.c (choose_hard_reg_mode): Ditto.
35753 * regrename.c (check_new_reg_p): Ditto.
35754 * reload.c (find_equiv_reg): Ditto.
35755 * reload1.c (emit_reload_insns): Ditto.
35756 * sched-deps.c (deps_analyze_insn): Ditto.
35757 * sel-sched.c (init_regs_for_mode): Ditto.
35758 (mark_unavailable_hard_regs): Ditto.
35759 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
35760 * target.def (hard_regno_call_part_clobbered): Add insn argument.
35761 (return_call_with_max_clobbers): New target function.
35762 * doc/tm.texi: Regenerate.
35763 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
35764 * hooks.c (hook_bool_uint_mode_false): Change to
35765 hook_bool_insn_uint_mode_false.
35766 * hooks.h (hook_bool_uint_mode_false): Ditto.
35768 2019-01-11 Steve Ellcey <sellcey@marvell.com>
35770 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
35771 (aarch64_remove_extra_call_preserved_regs): New function.
35772 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
35773 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
35774 * doc/tm.texi: Regenerate.
35775 * final.c (get_call_reg_set_usage): Call new hook.
35776 * target.def (remove_extra_call_preserved_regs): New hook.
35777 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
35778 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
35780 2019-01-11 Jakub Jelinek <jakub@redhat.com>
35783 * passes.c (finish_optimization_passes): Call print_combine_total_stats
35784 inside of pass_combine_1 dump rather than pass_profile_1.
35786 2019-01-11 Tom de Vries <tdevries@suse.de>
35788 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
35789 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
35790 (PTX_NUM_PER_WORKER_BARRIERS): Define.
35791 (nvptx_apply_dim_limits): Prevent vector_length 64 and
35794 2019-01-11 Tom de Vries <tdevries@suse.de>
35796 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
35798 2019-01-11 Jan Beulich <jbeulich@suse.com>
35800 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
35801 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
35802 sse2_cvtsi2sd): Add {l}.
35803 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
35806 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35809 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
35811 (*float<floatunssuffix>v2div2sf2): New define_insn.
35812 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
35813 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
35814 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
35815 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
35816 match_operands with "const0_operand" "C".
35818 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35820 * config/aarch64/aarch64-builtins.c
35821 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
35822 (aarch64_init_simd_builtins): ...Here
35824 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
35826 PR rtl-optimization/87305
35828 (setup_live_pseudos_and_spill_after_risky_transforms): Check
35829 allocation for big endian pseudos used as paradoxical subregs and
35830 spill them if it is wrong.
35831 * lra-constraints.c (lra_constraints): Add a comment.
35833 2019-01-10 Richard Biener <rguenther@suse.de>
35835 PR tree-optimization/88792
35836 * tree-ssa-pre.c (get_representative_for): Do not return a
35839 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35841 PR middle-end/84877
35843 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
35844 (assign_parm_setup_block): Do the argument slot realignment here
35847 2019-01-10 Stefan Agner <stefan@agner.ch>
35850 * config/arm/arm.c (arm_option_override_internal): Force
35851 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
35853 2019-01-10 Jakub Jelinek <jakub@redhat.com>
35856 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
35859 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35861 * config/arm/arm-builtins.c
35862 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
35863 (MAC_LANE_PAIR_QUALIFIERS): New.
35864 (arm_expand_builtin_args): Use it.
35865 (arm_expand_builtin_1): Likewise.
35866 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35867 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35868 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35869 * config/arm/arm_neon.h:
35870 (vcadd_rot90_f16): New.
35871 (vcaddq_rot90_f16): New.
35872 (vcadd_rot270_f16): New.
35873 (vcaddq_rot270_f16): New.
35876 (vcmla_lane_f16): New.
35877 (vcmla_laneq_f16): New.
35878 (vcmlaq_lane_f16): New.
35879 (vcmlaq_laneq_f16): New.
35880 (vcmla_rot90_f16): New.
35881 (vcmlaq_rot90_f16): New.
35882 (vcmla_rot90_lane_f16): New.
35883 (vcmla_rot90_laneq_f16): New.
35884 (vcmlaq_rot90_lane_f16): New.
35885 (vcmlaq_rot90_laneq_f16): New.
35886 (vcmla_rot180_f16): New.
35887 (vcmlaq_rot180_f16): New.
35888 (vcmla_rot180_lane_f16): New.
35889 (vcmla_rot180_laneq_f16): New.
35890 (vcmlaq_rot180_lane_f16): New.
35891 (vcmlaq_rot180_laneq_f16): New.
35892 (vcmla_rot270_f16): New.
35893 (vcmlaq_rot270_f16): New.
35894 (vcmla_rot270_lane_f16): New.
35895 (vcmla_rot270_laneq_f16): New.
35896 (vcmlaq_rot270_lane_f16): New.
35897 (vcmlaq_rot270_laneq_f16): New.
35898 (vcadd_rot90_f32): New.
35899 (vcaddq_rot90_f32): New.
35900 (vcadd_rot270_f32): New.
35901 (vcaddq_rot270_f32): New.
35904 (vcmla_lane_f32): New.
35905 (vcmla_laneq_f32): New.
35906 (vcmlaq_lane_f32): New.
35907 (vcmlaq_laneq_f32): New.
35908 (vcmla_rot90_f32): New.
35909 (vcmlaq_rot90_f32): New.
35910 (vcmla_rot90_lane_f32): New.
35911 (vcmla_rot90_laneq_f32): New.
35912 (vcmlaq_rot90_lane_f32): New.
35913 (vcmlaq_rot90_laneq_f32): New.
35914 (vcmla_rot180_f32): New.
35915 (vcmlaq_rot180_f32): New.
35916 (vcmla_rot180_lane_f32): New.
35917 (vcmla_rot180_laneq_f32): New.
35918 (vcmlaq_rot180_lane_f32): New.
35919 (vcmlaq_rot180_laneq_f32): New.
35920 (vcmla_rot270_f32): New.
35921 (vcmlaq_rot270_f32): New.
35922 (vcmla_rot270_lane_f32): New.
35923 (vcmla_rot270_laneq_f32): New.
35924 (vcmlaq_rot270_lane_f32): New.
35925 (vcmlaq_rot270_laneq_f32): New.
35926 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35927 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35928 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35929 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35930 vcmlaq_lane270): New.
35931 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35932 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35933 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35934 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35935 (arm_option_reconfigure_globals): Use them.
35936 * config/arm/iterators.md (VDF, VQ_HSF): New.
35937 (VCADD, VCMLA): New.
35938 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35939 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35941 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35942 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35944 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35946 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35947 Add qualifier_lane_pair_index.
35948 (emit-rtl.h): Include.
35949 (TYPES_QUADOP_LANE_PAIR): New.
35950 (aarch64_simd_expand_args): Use it.
35951 (aarch64_simd_expand_builtin): Likewise.
35952 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35954 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35955 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35956 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35957 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35958 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35959 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35960 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35961 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35962 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35963 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35964 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35965 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35966 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35967 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35968 Add __ARM_FEATURE_COMPLEX.
35969 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35970 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35971 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35972 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35973 fcmlaq_lane270): New.
35974 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35975 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35976 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35977 * config/aarch64/arm_neon.h:
35978 (vcadd_rot90_f16): New.
35979 (vcaddq_rot90_f16): New.
35980 (vcadd_rot270_f16): New.
35981 (vcaddq_rot270_f16): New.
35984 (vcmla_lane_f16): New.
35985 (vcmla_laneq_f16): New.
35986 (vcmlaq_lane_f16): New.
35987 (vcmlaq_rot90_lane_f16): New.
35988 (vcmla_rot90_laneq_f16): New.
35989 (vcmla_rot90_lane_f16): New.
35990 (vcmlaq_rot90_f16): New.
35991 (vcmla_rot90_f16): New.
35992 (vcmlaq_laneq_f16): New.
35993 (vcmla_rot180_laneq_f16): New.
35994 (vcmla_rot180_lane_f16): New.
35995 (vcmlaq_rot180_f16): New.
35996 (vcmla_rot180_f16): New.
35997 (vcmlaq_rot90_laneq_f16): New.
35998 (vcmlaq_rot270_laneq_f16): New.
35999 (vcmlaq_rot270_lane_f16): New.
36000 (vcmla_rot270_laneq_f16): New.
36001 (vcmlaq_rot270_f16): New.
36002 (vcmla_rot270_f16): New.
36003 (vcmlaq_rot180_laneq_f16): New.
36004 (vcmlaq_rot180_lane_f16): New.
36005 (vcmla_rot270_lane_f16): New.
36006 (vcadd_rot90_f32): New.
36007 (vcaddq_rot90_f32): New.
36008 (vcaddq_rot90_f64): New.
36009 (vcadd_rot270_f32): New.
36010 (vcaddq_rot270_f32): New.
36011 (vcaddq_rot270_f64): New.
36015 (vcmla_lane_f32): New.
36016 (vcmla_laneq_f32): New.
36017 (vcmlaq_lane_f32): New.
36018 (vcmlaq_laneq_f32): New.
36019 (vcmla_rot90_f32): New.
36020 (vcmlaq_rot90_f32): New.
36021 (vcmlaq_rot90_f64): New.
36022 (vcmla_rot90_lane_f32): New.
36023 (vcmla_rot90_laneq_f32): New.
36024 (vcmlaq_rot90_lane_f32): New.
36025 (vcmlaq_rot90_laneq_f32): New.
36026 (vcmla_rot180_f32): New.
36027 (vcmlaq_rot180_f32): New.
36028 (vcmlaq_rot180_f64): New.
36029 (vcmla_rot180_lane_f32): New.
36030 (vcmla_rot180_laneq_f32): New.
36031 (vcmlaq_rot180_lane_f32): New.
36032 (vcmlaq_rot180_laneq_f32): New.
36033 (vcmla_rot270_f32): New.
36034 (vcmlaq_rot270_f32): New.
36035 (vcmlaq_rot270_f64): New.
36036 (vcmla_rot270_lane_f32): New.
36037 (vcmla_rot270_laneq_f32): New.
36038 (vcmlaq_rot270_lane_f32): New.
36039 (vcmlaq_rot270_laneq_f32): New.
36040 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
36041 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
36042 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
36043 (FCADD, FCMLA): New.
36045 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
36047 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
36051 * config/pa/pa.c: Change "can not" to "cannot".
36052 * gimple-ssa-evrp-analyze.c: Likewise.
36053 * ipa-icf.c: Likewise.
36054 * ipa-polymorphic-call.c: Likewise.
36055 * ipa-pure-const.c: Likewise.
36056 * lra-constraints.c: Likewise.
36057 * lra-remat.c: Likewise.
36058 * reload1.c: Likewise.
36059 * reorg.c: Likewise.
36060 * tree-ssa-uninit.c: Likewise.
36062 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
36066 * Makefile.in: Mechanically replace "can not" with "cannot".
36067 * alias.c: Likewise.
36068 * builtins.c: Likewise.
36069 * calls.c: Likewise.
36070 * cgraph.c: Likewise.
36071 * cgraph.h: Likewise.
36072 * cgraphclones.c: Likewise.
36073 * cgraphunit.c: Likewise.
36074 * combine-stack-adj.c: Likewise.
36075 * combine.c: Likewise.
36076 * common/config/i386/i386-common.c: Likewise.
36077 * config/aarch64/aarch64.c: Likewise.
36078 * config/alpha/sync.md: Likewise.
36079 * config/arc/arc.c: Likewise.
36080 * config/arc/predicates.md: Likewise.
36081 * config/arm/arm-c.c: Likewise.
36082 * config/arm/arm.c: Likewise.
36083 * config/arm/arm.h: Likewise.
36084 * config/arm/arm.md: Likewise.
36085 * config/arm/cortex-r4f.md: Likewise.
36086 * config/csky/csky.c: Likewise.
36087 * config/csky/csky.h: Likewise.
36088 * config/darwin-f.c: Likewise.
36089 * config/epiphany/epiphany.md: Likewise.
36090 * config/i386/i386.c: Likewise.
36091 * config/i386/sol2.h: Likewise.
36092 * config/m68k/m68k.c: Likewise.
36093 * config/mcore/mcore.h: Likewise.
36094 * config/microblaze/microblaze.md: Likewise.
36095 * config/mips/20kc.md: Likewise.
36096 * config/mips/sb1.md: Likewise.
36097 * config/nds32/nds32.c: Likewise.
36098 * config/nds32/predicates.md: Likewise.
36099 * config/pa/pa.c: Likewise.
36100 * config/rs6000/e300c2c3.md: Likewise.
36101 * config/rs6000/rs6000.c: Likewise.
36102 * config/s390/s390.h: Likewise.
36103 * config/sh/sh.c: Likewise.
36104 * config/sh/sh.md: Likewise.
36105 * config/spu/vmx2spu.h: Likewise.
36106 * cprop.c: Likewise.
36107 * dbxout.c: Likewise.
36108 * df-scan.c: Likewise.
36109 * doc/cfg.texi: Likewise.
36110 * doc/extend.texi: Likewise.
36111 * doc/fragments.texi: Likewise.
36112 * doc/gty.texi: Likewise.
36113 * doc/invoke.texi: Likewise.
36114 * doc/lto.texi: Likewise.
36115 * doc/md.texi: Likewise.
36116 * doc/objc.texi: Likewise.
36117 * doc/rtl.texi: Likewise.
36118 * doc/tm.texi: Likewise.
36120 * emit-rtl.c: Likewise.
36121 * emit-rtl.h: Likewise.
36122 * except.c: Likewise.
36123 * expmed.c: Likewise.
36124 * expr.c: Likewise.
36125 * fold-const.c: Likewise.
36126 * genautomata.c: Likewise.
36127 * gimple-fold.c: Likewise.
36128 * hard-reg-set.h: Likewise.
36129 * ifcvt.c: Likewise.
36130 * ipa-comdats.c: Likewise.
36131 * ipa-cp.c: Likewise.
36132 * ipa-devirt.c: Likewise.
36133 * ipa-fnsummary.c: Likewise.
36134 * ipa-icf.c: Likewise.
36135 * ipa-inline-transform.c: Likewise.
36136 * ipa-inline.c: Likewise.
36137 * ipa-polymorphic-call.c: Likewise.
36138 * ipa-profile.c: Likewise.
36139 * ipa-prop.c: Likewise.
36140 * ipa-pure-const.c: Likewise.
36141 * ipa-reference.c: Likewise.
36142 * ipa-split.c: Likewise.
36143 * ipa-visibility.c: Likewise.
36145 * ira-build.c: Likewise.
36146 * ira-color.c: Likewise.
36147 * ira-conflicts.c: Likewise.
36148 * ira-costs.c: Likewise.
36149 * ira-int.h: Likewise.
36150 * ira-lives.c: Likewise.
36153 * loop-invariant.c: Likewise.
36154 * loop-unroll.c: Likewise.
36155 * lower-subreg.c: Likewise.
36156 * lra-assigns.c: Likewise.
36157 * lra-constraints.c: Likewise.
36158 * lra-eliminations.c: Likewise.
36159 * lra-lives.c: Likewise.
36160 * lra-remat.c: Likewise.
36161 * lra-spills.c: Likewise.
36163 * lto-cgraph.c: Likewise.
36164 * lto-streamer-out.c: Likewise.
36165 * postreload-gcse.c: Likewise.
36166 * predict.c: Likewise.
36167 * profile-count.h: Likewise.
36168 * profile.c: Likewise.
36169 * recog.c: Likewise.
36171 * reload.c: Likewise.
36172 * reload1.c: Likewise.
36173 * reorg.c: Likewise.
36174 * resource.c: Likewise.
36175 * rtl.def: Likewise.
36177 * rtlanal.c: Likewise.
36178 * sched-deps.c: Likewise.
36179 * sched-ebb.c: Likewise.
36180 * sched-rgn.c: Likewise.
36181 * sel-sched-ir.c: Likewise.
36182 * sel-sched.c: Likewise.
36183 * shrink-wrap.c: Likewise.
36184 * simplify-rtx.c: Likewise.
36185 * symtab.c: Likewise.
36186 * target.def: Likewise.
36187 * toplev.c: Likewise.
36188 * tree-call-cdce.c: Likewise.
36189 * tree-cfg.c: Likewise.
36190 * tree-complex.c: Likewise.
36191 * tree-core.h: Likewise.
36192 * tree-eh.c: Likewise.
36193 * tree-inline.c: Likewise.
36194 * tree-loop-distribution.c: Likewise.
36195 * tree-nrv.c: Likewise.
36196 * tree-profile.c: Likewise.
36197 * tree-sra.c: Likewise.
36198 * tree-ssa-alias.c: Likewise.
36199 * tree-ssa-dce.c: Likewise.
36200 * tree-ssa-dom.c: Likewise.
36201 * tree-ssa-forwprop.c: Likewise.
36202 * tree-ssa-loop-im.c: Likewise.
36203 * tree-ssa-loop-ivcanon.c: Likewise.
36204 * tree-ssa-loop-ivopts.c: Likewise.
36205 * tree-ssa-loop-niter.c: Likewise.
36206 * tree-ssa-phionlycprop.c: Likewise.
36207 * tree-ssa-phiopt.c: Likewise.
36208 * tree-ssa-propagate.c: Likewise.
36209 * tree-ssa-threadedge.c: Likewise.
36210 * tree-ssa-threadupdate.c: Likewise.
36211 * tree-ssa-uninit.c: Likewise.
36212 * tree-ssanames.c: Likewise.
36213 * tree-streamer-out.c: Likewise.
36214 * tree.c: Likewise.
36215 * tree.h: Likewise.
36216 * vr-values.c: Likewise.
36218 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
36220 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
36221 (ix86_split_xorsign): Ditto.
36222 * config/i386/i386.c (ix86_expand_xorsign): New function.
36223 (ix86_split_xorsign): Ditto.
36224 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
36225 (xorsign<mode>3): New expander.
36226 (xorsign<mode>3_1): New insn_and_split pattern.
36227 * config/i386/sse.md (xorsign<mode>3): New expander.
36229 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
36231 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
36232 (*tablejump_sp64): Likewise.
36233 (*tablejump<P:mode>): ...this.
36234 (*call_address_sp32): Merge into...
36235 (*call_address_sp64): Likewise.
36236 (*call_address<P:mode>): ...this.
36237 (*call_symbolic_sp32): Merge into...
36238 (*call_symbolic_sp64): Likewise.
36239 (*call_symbolic<P:mode>): ...this.
36240 (call_value): Remove constraint and add predicate.
36241 (*call_value_address_sp32): Merge into...
36242 (*call_value_address_sp64): Likewise.
36243 (*call_value_address<P:mode>): ...this.
36244 (*call_value_symbolic_sp32): Merge into...
36245 (*call_value_symbolic_sp64): Likewise.
36246 (*call_value_symbolic<P:mode>): ...this.
36247 (*sibcall_symbolic_sp32): Merge into...
36248 (*sibcall_symbolic_sp64): Likewise.
36249 (*sibcall_symbolic<P:mode>): ...this.
36250 (sibcall_value): Remove constraint and add predicate.
36251 (*sibcall_value_symbolic_sp32): Merge into...
36252 (*sibcall_value_symbolic_sp64): Likewise.
36253 (*sibcall_value_symbolic<P:mode>): ...this.
36254 (window_save): Minor tweak.
36255 (*branch_sp32): Merge into...
36256 (*branch_sp64): Likewise.
36257 (*branch<P:mode>): ...this.
36259 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
36260 James Clarke <jrtc27@jrtc27.com>
36263 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
36264 consistently in TLS address generation and adjust code to the renaming
36265 of patterns. Mark calls to __tls_get_addr as const.
36266 * config/sparc/sparc.md (tgd_hi22): Turn into...
36267 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
36268 (tgd_lo10): Turn into...
36269 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
36270 (tgd_add32): Merge into...
36271 (tgd_add64): Likewise.
36272 (tgd_add<P:mode>): ...this and use Pmode throughout.
36273 (tldm_hi22): Turn into...
36274 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
36275 (tldm_lo10): Turn into...
36276 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
36277 (tldm_add32): Merge into...
36278 (tldm_add64): Likewise.
36279 (tldm_add<P:mode>): ...this and use Pmode throughout.
36280 (tldm_call32): Merge into...
36281 (tldm_call64): Likewise.
36282 (tldm_call<P:mode>): ...this and use Pmode throughout.
36283 (tldo_hix22): Turn into...
36284 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
36285 (tldo_lox10): Turn into...
36286 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
36287 (tldo_add32): Merge into...
36288 (tldo_add64): Likewise.
36289 (tldo_add<P:mode>): ...this and use Pmode throughout.
36290 (tie_hi22): Turn into...
36291 (tie_hi22<P:mode>): ...this and use Pmode throughout.
36292 (tie_lo10): Turn into...
36293 (tie_lo10<P:mode>): ...this and use Pmode throughout.
36294 (tie_ld64): Use DImode throughout.
36295 (tie_add32): Merge into...
36296 (tie_add64): Likewise.
36297 (tie_add<P:mode>): ...this and use Pmode throughout.
36298 (tle_hix22_sp32): Merge into...
36299 (tle_hix22_sp64): Likewise.
36300 (tle_hix22<P:mode>): ...this and use Pmode throughout.
36301 (tle_lox22_sp32): Merge into...
36302 (tle_lox22_sp64): Likewise.
36303 (tle_lox22<P:mode>): ...this and use Pmode throughout.
36304 (*tldo_ldub_sp32): Merge into...
36305 (*tldo_ldub_sp64): Likewise.
36306 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
36307 (*tldo_ldub1_sp32): Merge into...
36308 (*tldo_ldub1_sp64): Likewise.
36309 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
36310 (*tldo_ldub2_sp32): Merge into...
36311 (*tldo_ldub2_sp64): Likewise.
36312 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
36313 (*tldo_ldsb1_sp32): Merge into...
36314 (*tldo_ldsb1_sp64): Likewise.
36315 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
36316 (*tldo_ldsb2_sp32): Merge into...
36317 (*tldo_ldsb2_sp64): Likewise.
36318 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
36319 (*tldo_ldub3_sp64): Use DImode throughout.
36320 (*tldo_ldsb3_sp64): Likewise.
36321 (*tldo_lduh_sp32): Merge into...
36322 (*tldo_lduh_sp64): Likewise.
36323 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
36324 (*tldo_lduh1_sp32): Merge into...
36325 (*tldo_lduh1_sp64): Likewise.
36326 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
36327 (*tldo_ldsh1_sp32): Merge into...
36328 (*tldo_ldsh1_sp64): Likewise.
36329 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
36330 (*tldo_lduh2_sp64): Use DImode throughout.
36331 (*tldo_ldsh2_sp64): Likewise.
36332 (*tldo_lduw_sp32): Merge into...
36333 (*tldo_lduw_sp64): Likewise.
36334 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
36335 (*tldo_lduw1_sp64): Use DImode throughout.
36336 (*tldo_ldsw1_sp64): Likewise.
36337 (*tldo_ldx_sp64): Likewise.
36338 (*tldo_stb_sp32): Merge into...
36339 (*tldo_stb_sp64): Likewise.
36340 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
36341 (*tldo_sth_sp32): Merge into...
36342 (*tldo_sth_sp64): Likewise.
36343 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
36344 (*tldo_stw_sp32): Merge into...
36345 (*tldo_stw_sp64): Likewise.
36346 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
36347 (*tldo_stx_sp64): Use DImode throughout.
36349 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36351 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
36352 check configure option to set BTI and Return Address Signing.
36353 * configure.ac: Add --enable-standard-branch-protection and
36354 --disable-standard-branch-protection.
36355 * configure: Regenerated.
36356 * doc/install.texi: Document the same.
36358 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36359 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36361 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
36362 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
36363 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
36365 * config/aarch64/aarch64-bti-insert.c: New file.
36366 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
36368 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
36370 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
36371 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
36372 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
36373 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
36375 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36377 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
36378 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
36379 Disable bti for -mbranch-protection=none.
36380 (aarch64_handle_standard_branch_protection): Enable bti for
36381 -mbranch-protection=standard.
36382 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
36383 -mbranch-protection.
36384 (aarch64_bti_enabled): Check if bti is enabled.
36385 * config/aarch64/aarch64.opt: Declare target variable.
36386 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
36388 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36390 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
36391 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
36392 (aarch64_expand_epilogue): Likewise.
36393 (aarch64_output_mi_thunk): Likewise.
36394 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
36395 TAILCALL_ADDR_REGS to x16 and x17.
36396 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
36398 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36400 * config/aarch64/aarch64-option-extensions.def: Define
36401 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
36402 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
36403 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
36404 (AARCH64_FL_PREDRES): New.
36405 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
36406 AARCH64_FL_PREDRES by default.
36407 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
36409 2018-01-09 Sudakshina Das <sudi.das@arm.com>
36411 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
36413 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
36414 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
36415 * doc/invoke.texi: Document ARMv8.5-A.
36417 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
36419 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
36420 (xorsign<mode>3): Likewise.
36422 2019-01-09 Jelinek <jakub@redhat.com>
36424 PR middle-end/88758
36425 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
36426 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
36428 PR rtl-optimization/88331
36429 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
36430 not currently_expanding_to_rtl.
36432 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
36434 * doc/invoke.texi (-Os): Remove trailing spaces.
36435 (-finline-functions): Remove reference to -O2.
36437 2019-01-08 Jakub Jelinek <jakub@redhat.com>
36439 PR rtl-optimization/79593
36440 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
36442 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
36443 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
36445 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
36448 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
36452 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
36453 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
36455 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
36458 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
36459 ix86_avx_u128_mode_entry.
36461 2019-01-08 Martin Liska <mliska@suse.cz>
36463 PR tree-optimization/88753
36464 * tree-switch-conversion.c (switch_conversion::build_one_array):
36465 Come up with local variable constructor. Convert first to
36466 type of constructor values.
36468 2019-01-08 Richard Biener <rguenther@suse.de>
36470 PR tree-optimization/86554
36471 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
36472 rpo_avail): Move earlier.
36473 (visit_nary_op): When value-numbering to expressions
36474 with different overflow behavior make sure there's an
36475 available expression on the path.
36477 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
36479 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
36480 aarch64_parse_branch_protection,
36481 struct aarch64_branch_protect_type,
36482 aarch64_handle_no_branch_protection,
36483 aarch64_handle_standard_branch_protection,
36484 aarch64_validate_mbranch_protection,
36485 aarch64_handle_pac_ret_protection,
36486 aarch64_handle_attr_branch_protection,
36487 accepted_branch_protection_string,
36488 aarch64_pac_ret_subtypes,
36489 aarch64_branch_protect_types,
36490 aarch64_handle_pac_ret_leaf): Define.
36491 (aarch64_override_options_after_change_1, aarch64_override_options):
36492 Add check for accepted_branch_protection_string.
36493 (aarch64_option_save): Save accepted_branch_protection_string.
36494 (aarch64_option_restore): Save accepted_branch_protection_string.
36495 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
36496 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
36497 msign-return-address.
36498 * doc/invoke.texi: Add mbranch-protection.
36500 2019-01-08 Alan Modra <amodra@gmail.com>
36503 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
36504 Delete "unknownp" parameter. Adjust callers. Handle
36505 CONST_INT, PLUS, MINUS, and MULT.
36506 (attr_value_aligned): Renamed from or_attr_value.
36507 (min_attr_value): Return INT_MIN for unhandled rtl case..
36508 (min_fn): ..and translate to INT_MAX here.
36509 (write_length_unit_log): Modify to cope without "unknown".
36510 (write_attr_value): Handle IF_THEN_ELSE.
36512 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
36514 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
36515 optimization for masked stores.
36517 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
36519 PR middle-end/88567
36520 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
36521 output vector directly to duplicate_and_interleave instead of
36522 going through a temporary. Postpone insertion of ctor_seq to
36523 the end of the loop.
36525 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
36528 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
36529 unsigned_p. Handle signed and unsigned overflow correction as
36531 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
36533 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
36535 (add<mode>3_compareV_imm): Make this callable for expanding.
36536 (subv<GPI:mode>4): Use register_operand for operand 1. Use
36537 aarch64_plus_operand for operand 2.
36538 (subv<GPI:mode>_insn): New insn pattern.
36539 (subv<GPI:mode>_imm): Likewise.
36540 (negv<GPI:mode>3): New expand pattern.
36541 (negv<GPI:mode>_insn): New insn pattern.
36542 (negv<GPI:mode>_cmp_only): Likewise.
36543 (cmpv<GPI:mode>_insn): Likewise.
36544 (subvti4): Use register_operand for operand 1. Update call to
36545 aarch64_expand_subvti.
36546 (usubvti4): Likewise.
36547 (negvti3): New expand pattern.
36548 (negdi_carryout): New insn pattern.
36549 (negvdi_carryinV): New insn pattern.
36550 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
36551 version the named version.
36552 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
36554 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
36556 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
36558 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
36559 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
36560 (sub<mode>3_carryinCV): Delete.
36561 (sub<GPI:mode>3_carryinV): New expand pattern.
36562 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
36564 2019-01-07 Richard Biener <rguenther@suse.de>
36566 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
36567 of tree_operand_hash.
36569 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
36571 PR tree-optimization/88598
36572 * tree.h (single_nonzero_element): Declare.
36573 * tree.c (single_nonzero_element): New function.
36574 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
36575 if I is the only nonzero element of CST.
36577 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
36579 PR tree-optimization/88598
36580 * tree.h (initializer_each_zero_or_onep): Declare.
36581 * tree.c (initializer_each_zero_or_onep): New function.
36582 (signed_or_unsigned_type_for): Handle float types too.
36583 (unsigned_type_for, signed_type_for): Update comments accordingly.
36584 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
36585 x & { 0 or -1, 0 or -1, ... }.
36587 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
36589 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
36590 with x86_64-pc-linux-gnu.
36592 2019-01-07 Tom de Vries <tdevries@suse.de>
36595 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
36597 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
36600 2019-01-07 Jakub Jelinek <jakub@redhat.com>
36602 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
36603 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
36604 TARGET_AVX512F as condition.
36607 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
36608 const_not_ok_for_debug_p target hook.
36609 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
36610 on UNSPEC and subexpressions thereof if all subexpressions of the
36611 UNSPEC are CONSTANT_P.
36613 PR tree-optimization/88676
36614 * tree-ssa-phiopt.c (two_value_replacement): New function.
36615 (tree_ssa_phiopt_worker): Call it.
36618 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
36619 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
36622 * tree-vect-generic.c: Include insn-config.h and recog.h.
36623 (expand_vector_piecewise): Add defaulted ret_type argument,
36624 if non-NULL, use that in preference to type for the result type.
36625 (expand_vector_parallel): Formatting fix.
36626 (do_vec_conversion, do_vec_narrowing_conversion,
36627 expand_vector_conversion): New functions.
36628 (expand_vector_operations_1): Call expand_vector_conversion
36629 for VEC_CONVERT ifn calls.
36630 * internal-fn.def (VEC_CONVERT): New internal function.
36631 * internal-fn.c (expand_VEC_CONVERT): New function.
36632 * fold-const-call.c (fold_const_vec_convert): New function.
36633 (fold_const_call): Use it for CFN_VEC_CONVERT.
36634 * doc/extend.texi (__builtin_convertvector): Document.
36636 2019-01-07 Tom de Vries <tdevries@suse.de>
36638 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
36639 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
36640 vector_red_partition, vector_red_sym): New global variables.
36641 (nvptx_option_override): Initialize vector_red_sym.
36642 (nvptx_declare_function_name): Restore red_partition register.
36643 (nvptx_file_end): Emit code to declare the vector reduction variables.
36644 (nvptx_output_red_partition): New function.
36645 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
36646 large vector reductions.
36647 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
36648 (nvptx_init_builtins): Add VECTOR_ADDR.
36649 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
36650 Handle nvptx_expand_shared_addr.
36651 (nvptx_get_shared_red_addr): Add vector argument and handle large
36653 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
36655 (nvptx_goacc_reduction_init): Likewise.
36656 (nvptx_goacc_reduction_fini): Likewise.
36657 (nvptx_goacc_reduction_teardown): Likewise.
36658 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
36659 init,fini,teardown}.
36660 (nvptx_init_axis_predicate): Initialize vector_red_partition.
36661 (nvptx_set_current_function): Init vector_red_partition.
36662 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
36663 (nvptx_red_partition): New insn.
36664 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
36666 2019-01-07 Tom de Vries <tdevries@suse.de>
36669 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
36672 2019-01-07 Tom de Vries <tdevries@suse.de>
36674 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
36675 (nvptx_option_override): Init oacc_bcast_partition.
36676 (nvptx_init_oacc_workers): New function.
36677 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
36678 (nvptx_needs_shared_bcast): New function.
36679 (nvptx_find_par): Generalize to enable vectors to use shared-memory
36680 to propagate state.
36681 (nvptx_shared_propagate): Initialize vector bcast partition and
36682 synchronization state.
36683 (nvptx_single): Generalize to enable vectors to use shared-memory
36684 to propagate state.
36685 (nvptx_process_pars): Likewise.
36686 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
36687 * config/nvptx/nvptx.h (struct machine_function): Add
36688 bcast_partition and sync_bar members.
36690 2019-01-07 Tom de Vries <tdevries@suse.de>
36692 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
36693 (nvptx_apply_dim_limits): New function.
36694 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
36697 2019-01-07 Tom de Vries <tdevries@suse.de>
36699 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
36700 as late as possible.
36702 2019-01-07 Tom de Vries <tdevries@suse.de>
36704 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
36705 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
36706 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
36707 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
36708 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
36710 2019-01-07 Tom de Vries <tdevries@suse.de>
36712 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
36714 2019-01-07 Tom de Vries <tdevries@suse.de>
36716 * omp-offload.c (oacc_get_min_dim): New function.
36717 * omp-offload.h (oacc_get_min_dim): Declare.
36719 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
36722 * config/i386/i386.c (function_value_ms_64): Return small sturct in
36723 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
36725 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36729 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
36731 * ipa-inline.c (edge_badness): Use inlined_time instead of
36732 inline_summaries->get.
36734 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36736 * opts.c (enable_fdo_optimizations): Enable
36737 version-loops-for-strides, loop-interchange, unrol-and-jam
36738 and tree-loop-distribution.
36739 * invoke.texi: Document newly enabled options.
36741 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36743 * doc/invoke.texi (max-inline-insns-small): New parameters.
36744 * ipa-inline.c (want_early_inline_function_p): simplify.
36745 (want_inline_small_function_p): Fix pasto from previous patch;
36746 use max-inline-insns-small bound.
36747 * params.def (max-inline-insns-small): New param.
36748 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
36749 variables correctly.
36751 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36753 * doc/invoke.texi: Document max-inline-insns-size,
36754 uninlined-function-insns, uninlined-function-time,
36755 uninlined-thunk-insns and uninlined-thunk-time.
36756 * params.def: Add max-inline-insns-size,
36757 uninlined-function-insns, uninlined-function-time,
36758 uninlined-thunk-insns and uninlined-thunk-time.
36759 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
36761 * ipa-inline.c (can_inline_edge_by_limits_p,
36762 want_inline_small_function_p): Use new parameters.
36764 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
36766 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
36768 2019-01-05 Jakub Jelinek <jakub@redhat.com>
36770 PR middle-end/82564
36772 * expr.c (expand_assignment): For calls returning VLA structures
36773 if to_rtx is not a MEM, force it into a stack temporary.
36776 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
36777 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
36778 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
36779 subexpressions of both operands.
36780 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
36781 subrtxes are CONSTANT_P.
36782 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
36783 2018-11-09 changes.
36785 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
36787 * params.def (hot-bb-count-ws-permille): Set to 990.
36789 2019-01-04 Martin Sebor <msebor@redhat.com>
36792 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
36795 2019-01-04 Martin Sebor <msebor@redhat.com>
36798 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
36800 2019-01-04 Jakub Jelinek <jakub@redhat.com>
36802 * gdbinit.in: Turn off pagination for the skip commands, restore
36803 it to previous state afterwards.
36805 2019-01-04 Jakub Jelinek <jakub@redhat.com>
36808 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
36809 of GET_MODE (opN) as modes of the libcall arguments.
36811 2019-01-04 Jan Beulich <jbeulich@suse.com>
36813 * config/i386/sse.md
36814 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
36815 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
36816 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36817 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
36818 avx512f_vmcmp<mode>3<round_saeonly_name>,
36819 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
36820 avx512f_maskcmp<mode>3,
36821 <avx512>_cvt<ssemodesuffix>2mask<mode>,
36822 <avx512>_cvt<ssemodesuffix>2mask<mode>,
36823 *<avx512>_cvtmask2<ssemodesuffix><mode>,
36824 *<avx512>_cvtmask2<ssemodesuffix><mode>,
36825 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36826 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
36827 <avx512>_gt<mode>3<mask_scalar_merge_name>,
36828 <avx512>_gt<mode>3<mask_scalar_merge_name>,
36829 <avx512>_testm<mode>3<mask_scalar_merge_name>,
36830 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
36831 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
36832 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
36833 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
36834 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
36835 avx512cd_maskb_vec_dup<mode>,
36836 avx512cd_maskw_vec_dup<mode>,
36837 avx512dq_fpclass<mode><mask_scalar_merge_name>,
36838 avx512dq_vmfpclass<mode>,
36839 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
36842 2019-01-03 Martin Sebor <msebor@redhat.com>
36844 PR tree-optimization/88659
36845 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
36847 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
36849 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
36850 unaligned vsx and avoid lxvd2x/stxvd2x.
36851 (gen_lvx_v4si_move): New function.
36853 2019-01-03 Tom de Vries <tdevries@suse.de>
36855 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
36856 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
36858 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
36860 2019-01-03 Tom de Vries <tdevries@suse.de>
36862 * config/nvptx/nvptx.c (struct offload_attrs): New.
36863 (populate_offload_attrs): New function. Factor mask extraction out of
36864 nvptx_reorg. Add extraction of dimensions.
36865 (nvptx_reorg): Use populate_offload_attrs.
36867 2019-01-03 Tom de Vries <tdevries@suse.de>
36869 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36870 cases for oacc_min_dims_p and routine_p. Add asserts for
36871 oacc_default_dims_p and offload_region_p.
36873 2019-01-03 Tom de Vries <tdevries@suse.de>
36875 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36876 factored out of ...
36877 (nvptx_goacc_validate_dims): ... here.
36879 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36881 PR tree-optimization/85574
36882 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36884 (struct ssa_equip_hash_traits): Declare.
36885 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36887 2019-01-03 Jakub Jelinek <jakub@redhat.com>
36890 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36891 change it to qualified_type.
36893 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36895 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36896 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36898 2019-01-02 Martin Sebor <msebor@redhat.com>
36899 Jeff Law <law@redhat.com>
36901 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36902 (get_range_strlen_tree): Update appropriately.
36904 * gimple-fold.h (get_range_strlen): Drop unused last argument.
36906 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36907 rather than set_range_info.
36908 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36909 maybe_set_strlen_range. Handle potentially boundary crossing
36910 cases more conservatively.
36911 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36912 Call set_strlen_range.
36913 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36915 PR middle-end/88663
36916 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36917 need the flexp argument.
36918 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36919 from calls to get_range_strlen. Update comments. Just update
36920 VAL for an unterminated const char array and let the reset of the
36921 code handle it normally. No longer try to set *flexp. Adjust
36923 (get_range_strlen): Update for the new get_range_strlen API.
36924 (get_maxval_strlen): Similarly.
36925 (gimple_fold_builtin_strlen): Handle update meaning of return value
36926 from get_range_strlen.
36927 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36928 get_range_strlen API.
36930 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36933 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36934 false at WPA time when body was removed.
36936 2019-01-02 Martin Liska <mliska@suse.cz>
36938 PR tree-optimization/88650
36939 * predict.c (set_even_probabilities): Calculate probability
36940 remainer only when really used.
36942 2019-01-02 Richard Biener <rguenther@suse.de>
36944 PR middle-end/88651
36945 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36946 widest_ints when mangling max_stmt_execution results.
36948 2019-01-02 Richard Biener <rguenther@suse.de>
36950 PR tree-optimization/88621
36951 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36952 bitfields when canoncalizing.
36954 2019-01-02 Richard Biener <rguenther@suse.de>
36957 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36958 cost of cheap SSE instruction.
36960 2019-01-02 Richard Biener <rguenther@suse.de>
36963 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36964 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36966 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36967 set after UIDs before splitting them.
36969 2019-01-01 Martin Sebor <msebor@redhat.com>
36970 Jeff Law <law@redhat.com>
36972 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36973 length is optimistic. If it is, then arrange to compute the
36974 conservative length as well.
36976 * gimple-fold.h (get_range_strlen): Update prototype.
36977 * builtins.c (check_access): Update call to get_range_strlen to use
36978 c_strlen_data pointer. Change various variable accesses to instead
36979 pull data from the c_strlen_data structure.
36980 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36981 * calls.c (maybe_warn_nonstring_arg): Likewise.
36982 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36983 minimum length if maximum lengh is unknown.
36984 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36985 that used c_strlen, it's no longer needed. Restructure slightly.
36986 (format_string): Set unlikely range appropriately.
36987 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36989 (get_range_strlen): Accept c_strlen_data pointer for external
36990 call sites as well. Pass through to call to internal get_range_strlen.
36991 Adjust minlen, maxlen and maxbound as needed.
36992 (get_maxval_strlen): Update comments.
36993 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36994 to use c_strlen_data pointer. Change variable accesses to instead
36995 use c_strlen_data data members.
36997 * gimple-fold.c (get_range_strlen): Update prototype.
36998 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36999 local variables. Use pdata to return information to caller.
37000 Update calls to get_range_strlen. Update pdata->maxbound.
37001 (get_range_strlen -- static version): Similarly.
37002 (get_range_strlen -- extern version): Update for internal
37003 get_range_strlen API change. Convert to external data format.
37004 (get_maxval_strlen): Similarly.
37006 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
37008 * coverage.c (get_coverage_counts): Use current_function_decl.
37009 * profile.c (read_thunk_profile): New function.
37010 (branch_prob): Add THUNK parameter.
37011 * tree-profile.c (tree_profiling): Handle thunks.
37012 * value-prof.c (init_node_map): Handle thunks.
37013 * value-prof.h (branch_prob): Upate prototype.
37014 (read_thunk_profile): Declare.
37016 2019-01-01 Jakub Jelinek <jakub@redhat.com>
37018 Update copyright years.
37020 * gcc.c (process_command): Update copyright notice dates.
37021 * gcov-dump.c (print_version): Ditto.
37022 * gcov.c (print_version): Ditto.
37023 * gcov-tool.c (print_version): Ditto.
37024 * gengtype.c (create_file): Ditto.
37025 * doc/cpp.texi: Bump @copying's copyright year.
37026 * doc/cppinternals.texi: Ditto.
37027 * doc/gcc.texi: Ditto.
37028 * doc/gccint.texi: Ditto.
37029 * doc/gcov.texi: Ditto.
37030 * doc/install.texi: Ditto.
37031 * doc/invoke.texi: Ditto.
37033 Copyright (C) 2019 Free Software Foundation, Inc.
37035 Copying and distribution of this file, with or without modification,
37036 are permitted in any medium without royalty provided the copyright
37037 notice and this notice are preserved.