]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
28629582a023a38740936aab36ffc5b775bddb37
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
2
3 PR ipa/91088
4 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6 * ipa-predicat.h (struct expr_eval_op): New struct.
7 (expr_eval_ops): New typedef.
8 (struct condition): Add type and param_ops fields, remove size field.
9 (add_condition): Replace size parameter with type parameter, add
10 param_ops parameter.
11 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
12 (predicate::add_clause): Add comparisons on type and param_ops.
13 (dump_condition): Add debug dump for param_ops.
14 (remap_after_inlining): Adjust call arguments to add_condition.
15 (add_condition): Replace size parameter with type parameter, add
16 param_ops parameter. Unshare constant value used in conditions.
17 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
18 parameter expressions using param_ops.
19 (decompose_param_expr): New function.
20 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
21 to replace call to unmodified_parm_or_parm_agg_item.
22 (set_switch_stmt_execution_predicate): Likewise.
23 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
24 with type.
25 (inline_read_section): Read param_ops from summary stream.
26 (ipa_fn_summary_write): Write param_ops to summary stream.
27
28 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
29
30 PR rtl-optimization/92107
31 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
32 expression written.
33
34 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
35
36 * config/darwin.c: Update description of fix and continue.
37
38 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
39
40 * config/darwin.c (darwin_binds_local_p): Update to call
41 default_binds_local_p_3 () directly. amend comments.
42
43 2019-10-15 Richard Biener <rguenther@suse.de>
44
45 * lto-streamer-out.c (lto_variably_modified_type_p): New.
46 (tree_is_indexable): Use it.
47 * tree-streamer-out.c (pack_ts_type_common_value_fields):
48 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
49 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
50
51 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
52
53 * config/msp430/msp430.md (zero_extendqipsi2): New.
54 (zero_extendqisi2): Optimize case where src register and base dst
55 register are the same.
56 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
57 (zero_extendpsisi2): Optimize r->m case.
58 Add unnamed insn patterns to catch insns combine searches for when
59 optimizing pointer manipulation.
60
61 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
62
63 * config/msp430/msp430.md: Group zero_extend* insns together.
64
65 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
66
67 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
68 constraint.
69 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
70 POST_INC.
71 (msp430_subreg): Likewise.
72 (msp430_split_addsi): Likewise.
73 (msp430_print_operand_addr): Likewise.
74 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
75 (USE_STORE_POST_INCREMENT): Define.
76 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
77 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
78 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
79 (msp430_general_dst_operand): New.
80 (msp430_general_dst_nonv_operand): New.
81 (msp430_nonsubreg_operand): Remove.
82 (msp430_nonsubreg_dst_operand): New.
83 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
84 of defunct msp430_nonsubreg_operand.
85 (msp430_nonsubregnonpostinc_or_imm_operand): New.
86
87 2019-10-15 Richard Biener <rguenther@suse.de>
88
89 PR tree-optimization/91929
90 * tree-ssa-pre.c (pre_expr_d::loc): New member.
91 (get_or_alloc_expr_for_name): Initialize it.
92 (get_or_alloc_expr_for_constant): Likewise.
93 (phi_translate_1): Copy it.
94 (create_expression_by_pieces): Use the original location
95 of the expression for the inserted stmt.
96 (compute_avail): Record the location of the stmt for the
97 expressions created.
98
99 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
100
101 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
102 before using tree_to_uhwi.
103
104 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
105
106 * config/s390/s390.md: Run %a0:DI splitters only after reload.
107
108 2019-10-15 Richard Biener <rguenther@suse.de>
109
110 PR tree-optimization/92094
111 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
112 do not adjust the reduction definition def type.
113 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
114 defines the latch argument of the PHI.
115
116 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
117
118 PR target/92035
119 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
120 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
121 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
122 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
123 _mm_maskz_roundscale_round_sd): New intrinsics.
124 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
125 __builtin_ia32_rndscales?_mask_round builtins instead of
126 __builtin_ia32_rndscales?_round.
127 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
128 __builtin_ia32_rndscalesd_round): Remove.
129 (__builtin_ia32_rndscaless_mask_round,
130 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
131 * config/i386/sse.md
132 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
133 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
134 ... this, adjust and add subst atrributes to make it maskable.
135
136 2019-10-15 Richard Biener <rguenther@suse.de>
137
138 PR middle-end/92046
139 * common.opt (fallow-store-data-races): New.
140 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
141 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
142 * doc/invoke.texi (fallow-store-data-races): Document.
143 (--param allow-store-data-races): Remove docs.
144 * opts.c (default_options_table): Enable -fallow-store-data-races
145 at -Ofast.
146 (default_options_optimization): Do not enable --param
147 allow-store-data-races at -Ofast.
148 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
149 instead of PARAM_ALLOW_STORE_DATA_RACES.
150 * tree-ssa-loop-im.c (execute_sm): Likewise.
151
152 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
153
154 PR tree-optimization/92085
155 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
156 instead of calling it unconditionally after
157 delete_dead_or_redundant_assignment and fix indentation.
158
159 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
160
161 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
162 TARGET_VFP_DOUBLE.
163 (*fmsub<SDF:mode>4): Likewise.
164 *fnmsub<SDF:mode>4): Likewise.
165 (*fnmadd<SDF:mode>4): Likewise.
166
167 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
168
169 * doc/tree-ssa.texi: Update renamed macro name.
170
171 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
172
173 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
174 vector constants.
175
176 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
177
178 * config/darwin.c: Use unsigned ints for the picbase label
179 counters, initialise the vars explicitly.
180 (update_pic_label_number_if_needed): Move a variable declaration
181 to where it's needed.
182 (machopic_output_function_base_name): Use a more strict checking
183 assert, and and unsigned int for the picbase label counter.
184 (machopic_get_function_picbase): Likewise.
185
186 2019-10-14 Richard Biener <rguenther@suse.de>
187
188 PR middle-end/92046
189 * dse.c (scan_insn): Use param max_active_local_stores.
190 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
191 based on optimization level.
192 * loop-invariant.c (move_loop_invariants): Adjust
193 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
194 * opts.c (default_options_optimization): Do not adjust
195 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
196 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
197
198 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
199
200 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
201
202 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
203
204 * config/arm/arm.c (arm_option_override): Don't override sched
205 pressure algorithm.
206
207 2019-10-14 Richard Biener <rguenther@suse.de>
208
209 PR tree-optimization/92069
210 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
211 cycles do not set vect_nested_cycle on the latch definition.
212
213 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
214
215 * function-abi.h (expr_callee_abi): Declare.
216 * function-abi.cc (expr_callee_abi): New function.
217
218 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
219
220 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
221 into [1,MAX].
222 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
223 non-zero being represented as [1,MAX].
224
225 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
226
227 * tree-sra.c (dump_access): Add missing braces.
228
229 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
230
231 * config/darwin.c (machopic_indirection_name): Rework the
232 function to emit linker-visible symbols only for indirections
233 in the data section. Clean up the code and update comments.
234
235 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
236
237 * config/darwin.c (machopic_indirect_data_reference): Remove
238 redundant code.
239
240 2019-10-13 Nathan Sidwell <nathan@acm.org>
241
242 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
243
244 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
245
246 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
247 c99_runtime.
248
249 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
250
251 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
252 so non-virutal are before virutals.
253 (output_function): Avoid body modifications.
254
255 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
256
257 * config/pa/pa.c (pa_output_call): Load descriptor address to register
258 %r22. Load function address before global pointer.
259 (pa_attr_length_indirect_call): Adjust length of inline versions of
260 $$dyncall.
261 (pa_output_indirect_call): Remove fast inline version of $$dyncall
262 before normal cases. Update inline $$dyncall sequences to preserve
263 function descriptor address in register %r22.
264 (TRAMPOLINE_CODE_SIZE): Adjust.
265 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
266 register %r22 contains trampoline address.
267 (pa_trampoline_init): Adjust offsets.
268 (pa_trampoline_adjust_address): Likewise.
269 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
270
271 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
272
273 PR target/67183
274 * config/darwin.c (machopic_indirection): New field to flag
275 non-lazy-symbol-pointers in the data section.
276 (machopic_indirection_name): Compute if an indirection should
277 appear in the data section.
278 (machopic_output_data_section_indirection): New callback split
279 from machopic_output_indirection.
280 (machopic_output_stub_indirection): Likewise.
281 (machopic_output_indirection): Retain the code for non-lazy
282 symbol pointers in their regular section.
283 (machopic_finish): Use the new callbacks to order the indirection
284 output.
285
286 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
287
288 * config/darwin-protos.h (machopic_finish): Delete.
289 * config/darwin.c (machopic_finish): Make static.
290
291 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
292
293 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
294 sections when building kernel extension code.
295
296 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
297
298 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
299 later standard."
300
301 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
302
303 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
304 from warning.
305
306 2019-10-12 Jakub Jelinek <jakub@redhat.com>
307
308 PR middle-end/92063
309 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
310 <case VEC_COND_EXPR>: Return false with *handled = false.
311 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
312 recursing on the first operand.
313 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
314 instead of tree_could_trap_p.
315 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
316
317 2019-10-11 Jim Wilson <jimw@sifive.com>
318
319 PR rtl-optimization/91860
320 * combine.c (subst): If new_rtx is a constant, also check for
321 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
322
323 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
324
325 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
326 INTVAL when calling store_bit_field.
327
328 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
329
330 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
331 size.
332
333 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
334
335 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
336 vectorizable_live_operation.
337 (vectorizable_live_operation): Adjust parameters.
338 * tree-vect-stmts.c (vect_init_vector,
339 vect_gen_widened_results_half): Fix typo in function comment.
340 (can_vectorize_live_stmts): Adjust function comment.
341 Adjust parameters. Adjust call to vectorizable_live_operation.
342 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
343 (vect_transform_stmt): Adjust function comment. Adjust call to
344 can_vectorize_live_stmts.
345 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
346
347 2019-10-11 Richard Biener <rguenther@suse.de>
348
349 PR tree-optimization/90883
350 PR tree-optimization/91091
351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
352 alias-sets both for recording VN table entries and continuing
353 walking after translating through copies. Handle same-sized
354 reads from SSA names by returning the plain SSA name.
355 (eliminate_dom_walker::eliminate_stmt): Properly handle
356 non-size precision stores in redundant store elimination.
357
358 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
359
360 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
361 (ggc_collect): Dump later to not interfere with release_page dump.
362 (ggc_trim): New function.
363 * ggc-none.c (ggc_trim): New.
364 * ggc.h (ggc_trim): Declare.
365
366 2019-10-11 Richard Biener <rguenther@suse.de>
367
368 PR tree-optimization/92066
369 PR tree-optimization/92046
370 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
371 Fix bogus cost model check.
372
373 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
374
375 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
376 (LANG_HOOKS_DECLS): Add it.
377 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
378 update comment for omp_is_optional_argument.
379 * omp-general.c (omp_is_allocatable_or_ptr): New.
380 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
381 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
382 Fortran's optional arguments and allocatable/pointer scalars
383 with use_device_addr.
384
385 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
386
387 PR target/77918
388 * config/s390/2827.md: Add new opcodes.
389 * config/s390/2964.md: Likewise.
390 * config/s390/3906.md: Likewise.
391 * config/s390/8561.md: Likewise.
392 * config/s390/s390-builtins.def (s390_vfchesb): Use
393 the new vec_cmpgev4sf_quiet_nocc.
394 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
395 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
396 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
397 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
398 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
399 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
400 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
401 * config/s390/s390-modes.def (CCSFPS): New mode.
402 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
403 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
404 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
405 (s390_expand_vec_compare): Use non-signaling patterns where
406 necessary.
407 (s390_reverse_condition): Support CCSFPS.
408 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
409 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
410 (asm_fcmp_op): Likewise.
411 (*smaxv2df3_vx): Use pattern for quiet comparison.
412 (*sminv2df3_vx): Likewise.
413 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
414 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
415 (vec_cmpgt<mode>_quiet_nocc): Likewise.
416 (vec_cmplt<mode>_quiet_nocc): New expander.
417 (vec_cmpge<mode>_quiet_nocc): New pattern.
418 (vec_cmple<mode>_quiet_nocc): New expander.
419 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
420 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
421 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
422 (*vec_cmpge<mode>_signaling_nocc): Likewise.
423 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
424 (vec_cmpungt<mode>): New expander.
425 (vec_cmpunge<mode>): Likewise.
426 (vec_cmpuneq<mode>): Use quiet patterns.
427 (vec_cmpltgt<mode>): Allow only on z14+.
428 (vec_cmpordered<mode>): Use quiet patterns.
429 (vec_cmpunordered<mode>): Likewise.
430 (VEC_CMP_EXPAND): Add ungt and unge.
431
432 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
433
434 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
435 parameter.
436 * lto-streamer-out.c: Include tree-dfa.h.
437 (output_cfg): Do not use cfun.
438 (lto_prepare_function_for_streaming): New.
439 (output_function): Do not push cfun; do not initialize loop optimizer.
440 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
441 * passes.c (ipa_write_summaries): Use it.
442 (ipa_write_optimization_summaries): Do not modify bodies.
443 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
444 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
445 * tree-ssa-dse.c (pass_dse::execute): Update use of
446 renumber_gimple_stmt_uids.
447 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
448
449 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
450
451 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
452 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
453
454 2019-10-10 Joseph Myers <joseph@codesourcery.com>
455
456 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
457 macros.
458 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
459 Also define DFP macros for these conditions.
460 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
461 DEC128_SUBNORMAL_MIN): Do not define.
462 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
463 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
464
465 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
466 Sandra Loosemore <sandra@codesourcery.com>
467
468 PR middle-end/26241
469 * doc/lto.texi (IPA): Reference to the IPA passes.
470 * doc/passes.texi (Pass manager): Add node IPA passes and
471 description for each IPA pass.
472
473 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
474
475 * ipa-reference.c: Do not include splay-tree.h
476 (reference_vars_to_consider): Turn to hash map.
477 (get_static_name, ipa_init, analyze_function, propagate,
478 stream_out_bitmap, ipa_reference_write_optimization_summary,
479 ipa_reference_write_optimization_summary): Update.
480
481 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
482
483 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
484
485 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
486
487 * config/darwin.c: Lookup Objective C metadata and force indirection
488 for IVAR refs.
489
490 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
491
492 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
493 addresses.
494 (mem_operand_gpr): Add check for prefixed addresses.
495 (mem_operand_ds_form): Add check for prefixed addresses.
496 (rs6000_legitimate_offset_address_p): If we support prefixed
497 addresses, check for a 34-bit offset instead of 16-bit.
498 (rs6000_legitimate_address_p): Add check for prefixed addresses.
499 Do not allow load/store with update if the address is prefixed.
500 (rs6000_mode_dependent_address): If we support prefixed
501 addresses, check for a 34-bit offset instead of 16-bit.
502
503 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
504
505 PR target/77918
506 * config/s390/vector.md (vcond_comparison_operator): New
507 predicate.
508 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
509
510 2019-10-10 David Malcolm <dmalcolm@redhat.com>
511
512 PR 87488
513 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
514 -D.
515 * configure.ac (--with-documentation-root-url): New option.
516 * configure: Regenerate.
517 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
518 option URL, add it as a new string field of the diagnostic option.
519 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
520 (print_option_information): If get_option_url is non-NULL, call
521 it, and if the result is non-NULL, potentially emit an escape
522 sequence to markup the option text with the resulting URL.
523 * diagnostic.h (diagnostic_context::get_option_url): New callback.
524 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
525 example of JSON output.
526 * opts-diagnostic.h (get_option_url): New decl.
527 * opts.c (get_option_url): New function.
528 * toplev.c (general_init): Initialize the get_option_url callback.
529
530 2019-10-10 David Malcolm <dmalcolm@redhat.com>
531
532 PR 87488
533 * common.opt (fdiagnostics-urls=): New option.
534 (diagnostic-url.h): Add SourceInclude.
535 (diagnostic_url_rule): New enum.
536 * diagnostic-color.c: Include "diagnostic-url.h".
537 (diagnostic_urls_enabled_p): New function.
538 * diagnostic-url.h: New file.
539 * diagnostic.c: Include "diagnostic-url.h".
540 (diagnostic_urls_init): New function.
541 * diagnostic.h (diagnostic_urls_init): New decl.
542 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
543 -fdiagnostics-urls to the list.
544 (-fdiagnostics-urls): New option.
545 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
546 (driver::global_initializations): Call diagnostic_urls_init.
547 * opts-global.c (init_options_once): Likewise.
548 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
549 * pretty-print.c (pretty_printer::pretty_printer): Initialize
550 show_urls.
551 (pp_begin_url): New function.
552 (pp_end_url): New function.
553 (selftest::test_urls): New selftest.
554 (selftest::pretty_print_c_tests): Call it.
555 * pretty-print.h (pretty_printer::show_urls): New field.
556 (pp_begin_url): New decl.
557 (pp_end_url): New decl.
558
559 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
560
561 PR target/92022
562 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
563
564 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
565
566 PR target/88630
567 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
568 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
569 also for TARGET_FPU_SH4_300.
570 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
571 TARGET_SH4_300.
572 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
573 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
574 (*negsf2_i): Split into ...
575 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
576 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
577 (**abssf2_i): Split into ...
578 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
579 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
580 (*negdf2_i): Split into ...
581 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
582 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
583 (**abssf2_i): Split into ...
584 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
585
586 2019-10-10 Richard Biener <rguenther@suse.de>
587
588 PR middle-end/92046
589 * opts.c (finish_options): Do not influence global --params
590 from options that are adjustable per function.
591 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
592 Apply --param adjustment based on active cost-model.
593 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
594 further store-sinking when vectorization or if-conversion
595 are not enabled.
596
597 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
598
599 PR middle-end/92037
600 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
601 rather than ggc_alloc_cleared to alloc symbol table.
602 * toplev.c (general_init): Likewise.
603 * cgraph.h (symbol_table): Explicitly construct every field.
604
605 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
606
607 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
608 (PF_Z15): ... this.
609 * config.gcc: Add z15 as option for --with-arch and --with-tune
610 configure switches.
611 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
612 error reporting for unsupported builtins.
613 * config/s390/s390-opts.h (enum processor_type): Rename
614 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
615 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
616 * config/s390/driver-native.c (s390_host_detect_local_cpu):
617 Likewise.
618 * config/s390/s390-builtins.def: Likewise.
619 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
620 (s390_expand_builtin): Add missing check for unsupported builtins.
621 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
622 (s390_rtx_costs): Likewise.
623 (s390_get_sched_attrmask): Rename arch13 to z15.
624 (s390_get_unit_mask): Likewise.
625 (s390_is_fpd): Likewise.
626 (s390_is_fxd): Likewise.
627 * config/s390/s390.h (enum processor_flags): Likewise.
628 * config/s390/s390.md: Likewise.
629 * config/s390/vector.md: Likewise.
630 * config/s390/vx-builtins.md: Likewise.
631 * config/s390/s390.opt: Add z15 to processor_type value.
632
633 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
634
635 PR target/91035
636 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
637 prototype.
638 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
639 ("split_stack_data", "split_stack_call")
640 ("split_stack_call_<mode>", "split_stack_cond_call")
641 ("split_stack_cond_call_<mode>"): Remove.
642 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
643 insn definition.
644 * config/s390/s390.c (s390_output_split_stack_data): New function.
645 (s390_expand_split_stack_prologue): Use the merged expander.
646
647 2019-10-09 Martin Sebor <msebor@redhat.com>
648
649 PR tree-optimization/90879
650 * builtins.c (check_access): Avoid using maxbound when null.
651 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
652 * doc/invoke.texi (-Wstring-compare): Document new warning option.
653 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
654 conditional.
655 (get_range_strlen): Overwrite initial maxbound when non-null.
656 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
657 changes.
658 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
659 (used_only_for_zero_equality): New function.
660 (handle_builtin_memcmp): Call it.
661 (determine_min_objsize): Return an integer instead of tree.
662 (get_len_or_size, strxcmp_eqz_result): New functions.
663 (maybe_warn_pointless_strcmp): New function.
664 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
665 between a longer string and a smaller array.
666 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
667
668 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
669
670 * config/darwin.c (darwin_override_options): Make the check for
671 Objective-C ABI version more specific for 64bit code.
672
673 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
674
675 * config/darwin.c (machopic_indirect_data_reference): Set flag to
676 indicate that the new symbol is an indirection.
677 (machopic_indirect_call_target): Likewise.
678 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
679 (MACHO_SYMBOL_INDIRECTION_P): New.
680 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
681
682 2019-10-08 Jason Merrill <jason@redhat.com>
683
684 * doc/invoke.texi: Document -fconcepts-ts.
685
686 2019-10-09 Richard Biener <rguenther@suse.de>
687
688 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
689 allow stmts other than GIMPLE_ASSIGN in nested cycles.
690
691 2019-10-08 Richard Biener <rguenther@suse.de>
692
693 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
694 (_stmt_vec_info::force_single_cycle): Likewise.
695 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
696 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
697 * tree-vect-loop.c (vectorizable_reduction): Set
698 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
699 (vect_transform_reduction): Use them to remove redundant code.
700 (vect_transform_cycle_phi): Likewise.
701
702 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
703
704 PR tree-optimization/90836
705 * gcc/match.pd (popcount): New pattern.
706
707 2019-10-08 Martin Sebor <msebor@redhat.com>
708
709 PR middle-end/92026
710 PR middle-end/92014
711 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
712 again once nbytes has been set. Set the access size when not yet set.
713
714 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
715
716 * config/darwin.c (machopic_select_section): Remove dead code for
717 old Objective-C section selection method, replace with unreachable.
718
719 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
720
721 * config/darwin.c (machopic_indirect_data_reference): Check for
722 required indirections before making direct access to defined
723 values.
724 (machopic_output_indirection): Place the indirected pointes for
725 required indirections into the non-lazy symbol pointers section.
726 (darwin_encode_section_info):
727 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
728 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
729
730 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
731
732 PR target/91994
733 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
734 instead of ALL_SSE_REG to check if function call preserves some
735 256-bit SSE registers.
736
737 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
738
739 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
740 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
741 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
742
743 2019-10-08 Richard Biener <rguenther@suse.de>
744
745 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
746 (_stmt_vec_info::is_reduc_info): Add.
747 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
748 (vectorizable_condition): Remove.
749 (vectorizable_shift): Likewise.
750 (vectorizable_reduction): Adjust.
751 (info_for_reduction): New.
752 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
753 (vect_analyze_scalar_cycles_1): ... here.
754 (vect_analyze_loop_operations): Adjust.
755 (needs_fold_left_reduction_p): Simplify for single caller.
756 (vect_is_simple_reduction): Likewise. Remove stmt restriction
757 for nested cycles not part of double reductions.
758 (vect_model_reduction_cost): Pass in the reduction type.
759 (info_for_reduction): New function.
760 (vect_create_epilog_for_reduction): Use it, access reduction
761 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
762 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
763 (vectorize_fold_left_reduction): Remove pointless assert.
764 (vectorizable_reduction): Analyze the full reduction when
765 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
766 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
767 stmt code-generation to vectorizable_* in most cases. Verify
768 code-generation only for cases handled by
769 vect_transform_reductuon.
770 (vect_transform_reduction): Use info_for_reduction to get at
771 reduction meta. Simplify.
772 (vect_transform_cycle_phi): Likewise.
773 (vectorizable_live_operation): Likewise.
774 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
775 at the PHI node for STMT_VINFO_REDUC_TYPE.
776 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
777 longer necessary code.
778 * tree-vect-stmts.c (vectorizable_shift): Make static again.
779 (vectorizable_condition): Likewise. Get at reduction related
780 info via info_for_reduction.
781 (vect_analyze_stmt): Adjust.
782 (vect_transform_stmt): Likewise.
783 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
784 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
785
786 2019-10-08 Joseph Myers <joseph@codesourcery.com>
787
788 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
789 -fno-fp-int-builtin-inexact default for C2X.
790
791 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
792 Richard Biener <rguenther@suse.de>
793
794 PR tree-optimization/91532
795 * tree-if-conv.c: Include tree-ssa-dse.h.
796 (ifcvt_local_dce): Change param from bb to loop,
797 and call dse_classify_store.
798 (tree_if_conversion): Pass loop instead of loop->header as arg
799 to ifcvt_local_dce.
800 * tree-ssa-dse.c: Include tree-ssa-dse.h.
801 (delete_dead_or_redundant_assignment): Remove static qualifier from
802 declaration, and add prototype in tree-ssa-dse.h.
803 (dse_store_status): Move to tree-ssa-dse.h.
804 (dse_classify_store): Remove static qualifier and add new tree param
805 stop_at_vuse, and add prototype in tree-ssa-dse.h.
806 * tree-ssa-dse.h: New header.
807
808 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
809
810 * config/darwin.c (machopic_output_indirection): Don't put
811 hidden symbol indirections into the .data section, use the
812 non-lazy symbol pointers section as normal.
813 (darwin_encode_section_info): Record if a symbol is hidden.
814 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
815 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
816
817 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
818
819 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
820 predicates instead of accessing bits directly.
821 (machopic_indirect_call_target): Likewise.
822 (machopic_output_indirection): Likewise.
823 (darwin_encode_section_info): Improve description. Use renamed
824 symbol flags. Use predicate macros for variables and functions.
825 * config/darwin.h:
826 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
827 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
828 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
829 (MACHO_SYMBOL_VARIABLE_P): New.
830 (MACHO_SYMBOL_DEFINED_P):New.
831 (MACHO_SYMBOL_STATIC_P): New.
832 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
833 (SYMBOL_FLAG_SUBT_DEP): New.
834 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
835
836 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
837
838 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
839 (msp430_expand_epilogue): Likewise.
840 * config/msp430/predicates.md: Likewise.
841 * config/msp430/msp430.md: Likewise.
842 Replace blocks of 8 spaces with tabs.
843
844 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
845
846 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
847 * config/msp430/msp430.c (msp430_split_addsi): New.
848 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
849 a block of C code for splitting addsi.
850
851 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
852
853 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
854 ix86_expand_rounddf_32): Reorder functions.
855 * config/i386/i386-protos.h: Update.
856
857 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
858
859 * config.in: Regenerate.
860 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
861 Add new "Yx" constraint.
862 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
863 function.
864 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
865 prototype.
866 * config/msp430/msp430.c (msp430_option_override): Allow the lower
867 code/data region to be selected in the small memory model.
868 (msp430_section_attr): Don't warn if the "section" and "lower"
869 attributes are used together.
870 (msp430_handle_generic_attribute): Likewise.
871 (msp430_var_in_low_mem): New function.
872 (TARGET_ENCODE_SECTION_INFO): Define.
873 (msp430_encode_section_info): New function.
874 (gen_prefix): Return early in the small memory model.
875 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
876 ".lower" prefix if -m{code,data}-region=lower have been passed.
877 (msp430_output_aligned_decl_common): Emit common symbols when
878 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
879 set.
880 (TARGET_ASM_FILE_END): Define.
881 (msp430_file_end): New function.
882 (msp430_do_not_relax_short_jumps): Allow relaxation when
883 function will be in the lower region.
884 (msp430_op_not_in_high_mem): New function.
885 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
886 the 'X' operand selector.
887 Clarify comment for 'x' operand selector.
888 * config/msp430/msp430.h (LINK_SPEC): Propagate
889 -m{code,data}-region to the linker via spec function
890 msp430_propagate_region_opt.
891 (msp430_propagate_region_opt): New prototype.
892 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
893 (SYMBOL_FLAG_LOW_MEM): Define.
894 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
895 selector.
896 (zero_extendqihi2): Fix operand number used by "%X" selector.
897 (zero_extendqisi2): Likewise.
898 (zero_extendhisi2): Likewise.
899 (movqi): Use "Yx" constraint in place of "%X" operand selector.
900 (movhi): Likewise.
901 (addqi3): Likewise.
902 (addhi3): Likewise.
903 (addsi3): Likewise.
904 (addhi3_cy): Likewise.
905 (addchi4_cy): Likewise.
906 (subqi3): Likewise.
907 (subhi3): Likewise.
908 (subsi3): Likewise.
909 (bic<mode>3): Likewise.
910 (and<mode>3): Likewise.
911 (ior<mode>3): Likewise.
912 (xor<mode>3): Likewise.
913 (slli_1): Add missing "%X" operand selector.
914 (slll_1): Likewise.
915 (slll_2): Likewise.
916 (srai_1): Likewise.
917 (sral_1): Likewise.
918 (sral_2): Likewise.
919 (srli_1): Likewise.
920 (srll_1): Likewise.
921 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
922 selector.
923 (cbranchhi4_real): Likewise.
924 (cbranchqi4_reversed): Likewise.
925 (cbranchhi4_reversed): Likewise.
926 (*bitbranch<mode>4): Likewise.
927 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
928 * config/msp430/msp430.opt (mcode-region=): Set default to
929 MSP430_REGION_LOWER. Improve docstring.
930 (mdata-region=): Likewise.
931 (muse-lower-region-prefix): New option.
932 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
933 mdata-region=none multilib.
934 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
935 mdata-region=none multilib.
936 MULTILIB_EXCEPTIONS: Remove.
937 MULTILIB_REQUIRED: Define.
938 * configure: Regenerate.
939 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
940 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
941 * doc/extend.texi: Clarify comment for {upper,lower,either}
942 function attributes.
943 Add separate description for "lower" variable attribute.
944
945 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
946
947 PR target/77918
948 * optabs-tree.c (vcond_icode_p): New function.
949 (vcond_eq_icode_p): Likewise.
950 (expand_vec_cond_expr_p): Use vcond_icode_p and
951 vcond_eq_icode_p.
952 * optabs.c (can_vcond_compare_p): New function.
953 * optabs.h (can_vcond_compare_p): Likewise.
954
955 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
956
957 PR target/77918
958 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
959 caller passes a non-trapping condition.
960 (is_gimple_condexpr): Allow trapping conditions.
961 (is_gimple_condexpr_1): New helper function.
962 (is_gimple_condexpr_for_cond): New function, acts like old
963 is_gimple_condexpr.
964 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
965 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
966 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
967 * gimplify.c (gimplify_cond_expr): Use
968 is_gimple_condexpr_for_cond.
969 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
970 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
971 VEC_COND_EXPR.
972 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
973 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
974 is_gimple_condexpr_for_cond, remove pointless tmp check
975 (forward_propagate_into_cond): Remove pointless tmp check.
976
977 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
978
979 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
980 match that of other gsi_next_* functions. Adjust the comment.
981 (gsi_start_nonvirtual_phis): New function.
982 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
983 gsi_next_nonvirtual_phi accordingly. (No functional change.)
984
985 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
986
987 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
988 setjmp situation here. Fix a verb's ending: "the exact variables or
989 elements for which there are warnings depends" -> "... depend".
990
991 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
992
993 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
994
995 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
996
997 * ipa-prop.c (ipa_vr::nonzero_p): New.
998 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
999 non-zero range.
1000 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1001 * tree-vrp.c (range_has_numeric_bounds_p): New.
1002 (range_int_cst_p): Use range_has_numeric_bounds_p.
1003 (get_range_op_handler): New.
1004 (supported_types_p): New.
1005 (defined_ranges_p): New.
1006 (drop_undefines_to_varying): New.
1007 (range_fold_binary_symbolics_p): New.
1008 (range_fold_unary_symbolics_p): New.
1009 (range_fold_unary_expr): Extract out into above functions.
1010 (range_fold_binary_expr): Same.
1011 (value_range_base::normalize_addresses): New.
1012 (value_range_base::normalize_symbolics): Normalize addresses.
1013 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1014
1015 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1016
1017 * tree-vrp.c (value_range_base::singleton_p): Use
1018 value_range_base::num_pairs instead of vrp_val_is* to check
1019 if a range has one sub-range.
1020
1021 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1022
1023 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1024 DEF is not a true earlyclobber but is tied to a specific input
1025 operand, and so is effectively earlyclobber wrt inputs that have
1026 different values.
1027 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1028
1029 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1030
1031 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1032 (pod_mode): Mark operators likewise.
1033 (scalar_int_mode): Mark non-default constructors and
1034 operators with CONSTEXPR.
1035 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1036 (fixed_size_mode): Likewise.
1037
1038 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1039
1040 PR target/91994
1041 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1042 and wrap the unspec_volatile in a parallel.
1043 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1044 the unspec_volatile.
1045 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1046 unspec_volatile to be wrapped in a parallel.
1047 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1048 (ix86_add_reg_usage_to_vzerouppers): New functions.
1049 (rest_of_handle_insert_vzeroupper): Use them to add register
1050 usage information to the vzeroupper instructions.
1051
1052 2019-10-07 Richard Biener <rguenther@suse.de>
1053
1054 PR tree-optimization/91975
1055 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1056 handle invariants.
1057
1058 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1061 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1062
1063 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1064
1065 * config/darwin.c (darwin_override_options): Adjust objective-c
1066 ABI version error messages to avoid punctuation and contracted
1067 negations.
1068
1069 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1070
1071 * ipa-inline.c: Fix type; compute size rather than self_size
1072 for size of caller function.
1073
1074 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1075
1076 PR target/59888
1077 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1078 choose const_data section for constants with relocations.
1079 (machopic_select_section): Pass relocation flag to
1080 darwin_rodata_section ().
1081
1082 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR tree-optimization/91734
1085 * generic-match-head.c: Include fold-const-call.h.
1086 * match.pd (sqrt(x) cmp c): Check the boundary value and
1087 in case inexact computation of c*c affects comparison of the boundary,
1088 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1089 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1090 for -frounding-math. For c2, try the next smaller or larger floating
1091 point constant depending on comparison code and if it has the same
1092 sqrt as c2, use it instead of c2.
1093
1094 2019-10-04 Martin Sebor <msebor@redhat.com>
1095
1096 PR middle-end/91977
1097 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1098 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1099 uninitialized objects.
1100
1101 2019-10-04 Martin Sebor <msebor@redhat.com>
1102
1103 * builtins.c (compute_objsize): Add an argument.
1104 * tree-object-size.c (addr_object_size): Same.
1105 (compute_builtin_object_size): Same.
1106 * tree-object-size.h (compute_builtin_object): Same.
1107
1108 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1109
1110 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1111
1112 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1113
1114 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1115
1116 2019-10-04 Martin Jambor <mjambor@suse.cz>
1117
1118 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1119 fntype when switching to calling memcpy instead of memset.
1120
1121 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1122
1123 * hash-table.h (hash_table::empty_slow): Don't assign
1124 size_t values to int variables.
1125
1126 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1127
1128 * expr.c (convert_mode_scalar): Remove shadowing local var.
1129 (emit_block_move): Rename local vars.
1130 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1131 (emit_push_insn): Rename local vars.
1132 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1133 shadowing local vars.
1134 (store_constructor): Remove shadowing local vars. Rename local var.
1135 (store_field, expand_cond_expr_using_cmove,
1136 expand_expr_real_2): Remove shadowing local vars.
1137 (expand_expr_real_1,
1138 do_store_flag): Remove shadowing local vars. Rename local vars.
1139
1140 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1141
1142 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1143
1144 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1145
1146 * genmatch.c (commutate): Rename local var.
1147 (lower_cond): Reuse local var.
1148 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1149 dt_operand::gen, dt_operand::gen_gimple_expr,
1150 dt_simplify::gen): Add a param. Rename generated vars.
1151 (decision_tree::insert_operand,
1152 (capture_info::walk_match, capture_info::walk_result,
1153 capture_info::walk_c_expr): Rename local vars.
1154 (expr::gen_transform): Rename generated vars.
1155 Use snprintf. Rename local vars.
1156 (capture::gen_transform, dt_operand::get_name,
1157 dt_operand::gen_opname): Rename generated vars.
1158 (write_predicate): Adjust call to gen_kids.
1159 (parser::get_internal_capture_id): Rename generated vars.
1160 (parser::parse_expr): Rename local vars.
1161 (parser::parse_if): Remove local var.
1162 (parser::parse_pattern, add_operator): Rename local vars.
1163
1164 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1165
1166 * builtins.def (DEF_C2X_BUILTIN): New macro.
1167 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1168 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1169 (strndup): Use DEF_C2X_BUILTIN.
1170 * coretypes.h (enum function_class): Add function_c2x_misc.
1171
1172 2019-10-04 Maya Rashish <coypu@sdf.org>
1173
1174 * ira-color.c (update_costs_from_allocno): Call
1175 ira_init_register_move_cost_if_necessary.
1176
1177 2019-10-04 Jeff Law <law@redhat.com>
1178
1179 * config/h8300/h8300.md (cpymemsi): Disable.
1180 (movmd, movmd_internal_<mode>, movstr, movsd):
1181 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1182 (movmd splitter, movsd splitter): Likewise.
1183
1184 * range-op.cc (range_tests): Avoid two tests when ints and
1185 shorts are the same size.
1186
1187 2019-10-04 Richard Biener <rguenther@suse.de>
1188
1189 PR lto/91968
1190 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1191 BLOCK_VARS.
1192
1193 2019-10-04 Richard Biener <rguenther@suse.de>
1194
1195 PR tree-optimization/91982
1196 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1197 against EXTRACT_LAST_REDUCTION.
1198 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1199
1200 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1201
1202 * range-op.o (value_range_from_overflowed_bounds): Rename from
1203 adjust_overflow_bound.
1204 (value_range_with_overflow): Rename from
1205 create_range_with_overflow.
1206 (create_possibly_reversed_range): Adjusted for above renames.
1207 (operator_*::wi_fold): Same.
1208 (cross_product_operator::wi_cross_productor): Same.
1209
1210 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1211
1212 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1213 -Wshadow=compatible-local): Fix description.
1214 Add an example where -Wshadow=compatible-local does not
1215 warn.
1216
1217 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1218
1219 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1220
1221 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1222 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1223
1224 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1225
1226 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1227 can_move_by_pieces issue.
1228
1229 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1230
1231 PR target/87243
1232 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1233 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1234 is available and the user has not set one on the command line.
1235
1236 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1237
1238 PR target/91769
1239 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1240 instead of REGNO equality check on addr.reg.
1241
1242 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1243
1244 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1245 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1246 * doc/invoke.texi (inline-heuristics-hint-percent,
1247 inline-heuristics-hint-percent-O2): Document.
1248 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1249 hint attribute.
1250 (can_inline_edge_by_limits_p): Use it.
1251
1252 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1253
1254 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1255 to print CONST_DOUBLEs.
1256
1257 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1258
1259 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1260 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1261 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1262
1263 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1264
1265 * Makefile.in (OBJS): Add range.o and range-op.o.
1266 Remove wide-int-range.o.
1267 * function-tests.c (test_ranges): New.
1268 (function_tests_c_tests): Call test_ranges.
1269 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1270 range_fold_unary_expr instead of extract_range_from_unary_expr.
1271 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1272 * range-op.cc: New file.
1273 * range-op.h: New file.
1274 * range.cc: New file.
1275 * range.h: New file.
1276 * selftest.h (range_tests): New prototype.
1277 * ssa.h: Include range.h.
1278 * tree-vrp.c (value_range_base::value_range_base): New
1279 constructors.
1280 (value_range_base::singleton_p): Do not call
1281 ranges_from_anti_range until sure we will need to.
1282 (value_range_base::type): Rename gcc_assert to
1283 gcc_checking_assert.
1284 (vrp_val_is_max): New argument.
1285 (vrp_val_is_min): Same.
1286 (wide_int_range_set_zero_nonzero_bits): Move from
1287 wide-int-range.cc.
1288 (extract_range_into_wide_ints): Remove.
1289 (extract_range_from_multiplicative_op): Remove.
1290 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1291 from extract_range_from_binary_expr.
1292 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1293 from extract_range_from_binary_expr.
1294 (extract_range_from_binary_expr): Remove.
1295 (normalize_for_range_ops): New.
1296 (range_fold_binary_expr): New.
1297 (range_fold_unary_expr): New.
1298 (value_range_base::num_pairs): New.
1299 (value_range_base::lower_bound): New.
1300 (value_range_base::upper_bound): New.
1301 (value_range_base::upper_bound): New.
1302 (value_range_base::contains_p): New.
1303 (value_range_base::invert): New.
1304 (value_range_base::union_): New.
1305 (value_range_base::intersect): New.
1306 (range_compatible_p): New.
1307 (value_range_base::operator==): New.
1308 (determine_value_range_1): Call range_fold_*expr instead of
1309 extract_range_from_*expr.
1310 * tree-vrp.h (class value_range_base): Add new constructors.
1311 Add methods for union_, intersect, operator==, contains_p,
1312 num_pairs, lower_bound, upper_bound, invert.
1313 (vrp_val_is_min): Add handle_pointers argument.
1314 (vrp_val_is_max): Same.
1315 (extract_range_from_unary_expr): Remove.
1316 (extract_range_from_binary_expr): Remove.
1317 (range_fold_unary_expr): New.
1318 (range_fold_binary_expr): New.
1319 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1320 range_fold_binary_expr instead of extract_range_from_binary_expr.
1321 (vr_values::extract_range_basic): Same.
1322 (vr_values::extract_range_from_unary_expr): Call
1323 range_fold_unary_expr instead of extract_range_from_unary_expr.
1324 * wide-int-range.cc: Remove.
1325 * wide-int-range.h: Remove.
1326
1327 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1328
1329 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1330 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1331 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1332 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1333 macro.
1334
1335 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1336
1337 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1338 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1339 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1340 * glimits.h: Likewise.
1341
1342 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1343
1344 PR rtl-optimization/91976
1345 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1346 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1347 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1348
1349 2019-10-02 Martin Sebor <msebor@redhat.com>
1350
1351 PR tree-optimization/80936
1352 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1353
1354 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1355
1356 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1357 instead of reg_class_contents[ALL_REGS].
1358
1359 2019-09-30 Jason Merrill <jason@redhat.com>
1360
1361 Add some hash_map_safe_* functions like vec_safe_*.
1362 * hash-map.h (default_hash_map_size): New variable.
1363 (create_ggc): Use it as default argument.
1364 (hash_map_maybe_create, hash_map_safe_get)
1365 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1366
1367 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1368
1369 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1370 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1371 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1372 (can_inline_edge_by_limits_p): Use it.
1373 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1374 (want_inline_small_function_p): Use O2 bounds.
1375 (edge_badness): LIkewise.
1376 * opts.c (default_options): Add OPT_finline_functions.
1377 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1378 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1379 New parameters.
1380 * doc/invoke.texi (-finline-functions): Update documentation.
1381 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1382 inline-min-speedup-O2): Document.
1383 (early-inlining-insns-O2): Simplify docs.
1384
1385 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1386
1387 PR rtl-optimization/87047
1388 * ifcvt.c (average_cost): New static function. Use it...
1389 (noce_process_if_block): ... here.
1390
1391 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1392
1393 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1394 * config/rs6000/rs6000-string.c (expand_block_move): Add
1395 might_overlap parm.
1396 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1397 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1398
1399 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1400
1401 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1402 (expand_builtin_memcpy): Use might_overlap parm.
1403 (expand_builtin_mempcpy_args): Use might_overlap parm.
1404 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1405 (expand_builtin_memory_copy_args): Add might_overlap parm.
1406 * expr.c (emit_block_move_via_cpymem): Rename to
1407 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1408 or movmem optab as appropriate.
1409 (emit_block_move_hints): Add might_overlap parm, do the right
1410 thing for might_overlap==true.
1411 * expr.h (emit_block_move_hints): Update prototype.
1412
1413 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1414
1415 * tree-eh.h (unsplit_eh_edges): Declare.
1416 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1417 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1418 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1419 (struct store_immediate_info): Add lp_nr field.
1420 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1421 initialize lp_nr with it.
1422 (struct merged_store_group): Add lp_nr and only_constants fields.
1423 (merged_store_group::merged_store_group): Initialize them.
1424 (merged_store_group::can_be_merged_into): Deal with them.
1425 (pass_store_merging): Rename terminate_and_release_chain into
1426 terminate_and_process_chain.
1427 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1428 renaming and remove useless assertions.
1429 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1430 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1431 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1432 instead of always recomputing it and compare lp_nr.
1433 (imm_store_chain_info::output_merged_store): If the group is in an
1434 active EH region, register new stores if they can throw. Moreover,
1435 if the insertion has created new basic blocks, adjust the PHI nodes
1436 of the post landing pad.
1437 (imm_store_chain_info::output_merged_stores): If the original stores
1438 are in an active EH region, deregister them.
1439 (lhs_valid_for_store_merging_p): Prettify.
1440 (adjust_bit_pos): New function extracted from...
1441 (mem_valid_for_store_merging): ...here. Use it for the base address
1442 and also for the offset if it is the addition of a constant.
1443 (lp_nr_for_store): New function.
1444 (pass_store_merging::process_store): Change return type to bool.
1445 Call lp_nr_for_store to initialize the store info. Propagate the
1446 return status of various called functions to the return value.
1447 (store_valid_for_store_merging_p): New predicate.
1448 (enum basic_block_status): New enumeration.
1449 (get_status_for_store_merging): New function.
1450 (pass_store_merging::execute): If the function can throw and catch
1451 non-call exceptions, unsplit the EH edges on entry and clean up the
1452 CFG on exit if something changed. Call get_status_for_store_merging
1453 for every basic block and keep the chains open across basic blocks
1454 when possible. Terminate and process open chains at the end, if any.
1455
1456 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1457
1458 * reginfo.c (globalize_reg): Fix shadowed variable in
1459 function_abis walk.
1460
1461 2019-10-02 Martin Jambor <mjambor@suse.cz>
1462
1463 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1464 do not compute some stuff when set.
1465 (cgraph_node::create_edge): Likewise.
1466 (cgraph_node::create_indirect_edge): Renamed last parameter to
1467 coning_p and flipped its meaning, don't even calculate
1468 inline_failed when set.
1469 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1470 (symbol_table::::create_edge): Likewise.
1471 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1472 the default value.
1473 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1474 call graph edge creating functions.
1475
1476 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1477
1478 PR c++/91222
1479 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1480 namespace types.
1481
1482 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1483
1484 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1485
1486 2019-10-02 Richard Biener <rguenther@suse.de>
1487
1488 * tree-vectorizer.h (vect_transform_reduction): Declare.
1489 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1490 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1491 stmt transform to ...
1492 (vect_transform_reduction): ... this.
1493
1494 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1495
1496 * omp-low.c (lower_omp_target): Dereference optional argument
1497 to work with the right pointer.
1498
1499 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1500
1501 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1502 false.
1503 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1504 * langhooks.h (omp_is_optional_argument): New hook.
1505 * omp-general.c (omp_is_optional_argument): New.
1506 * omp-general.h (omp_is_optional_argument): New declaration.
1507 * omp-low.c (lower_omp_target): Create temporary for received value
1508 and take the address for new_var if the original variable was a
1509 DECL_BY_REFERENCE. Use size of referenced object when a
1510 pass-by-reference optional argument used as argument to firstprivate.
1511
1512 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1513
1514 PR tree-optimization/91940
1515 * tree-vect-patterns.c: Include tree-vector-builder.h and
1516 vec-perm-indices.h.
1517 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1518 unpromoting the argument back to uint16_t, or by converting into a
1519 rotate, or into shifts plus ior.
1520
1521 2019-10-02 Richard Biener <rguenther@suse.de>
1522
1523 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1524 New.
1525 (vect_transform_cycle_phi): Declare.
1526 * tree-vect-stmts.c (vect_transform_stmt): Call
1527 vect_transform_cycle_phi.
1528 * tree-vect-loop.c (vectorizable_reduction): Split out
1529 PHI transformation stage to ...
1530 (vect_transform_cycle_phi): ... here.
1531
1532 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1533
1534 PR middle-end/91957
1535 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1536 eliminable registers.
1537 (make_hard_regno_live): Likewise, and don't make them live.
1538
1539 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1540
1541 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1542 Call pp_emit_prefix.
1543 (layout::print_source_line): Likewise.
1544 (layout::start_annotation_line): Likewise.
1545 (diagnostic_show_locus): Remove call to temporarily clear the
1546 prefix.
1547 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1548 interaction of pp_set_prefix with rulers and fix-it hints.
1549 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1550 prefix when calling diagnostic_show_locus, rather than destroying
1551 it afterwards.
1552 (print_parseable_fixits): Temporarily clear prefix.
1553 * pretty-print.c (pp_format): Save and restore line_length, rather
1554 than assuming it is zero.
1555 (pp_output_formatted_text): Remove assertion that line_length is
1556 zero.
1557
1558 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1559
1560 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1561 Rename to ...
1562 (nonoverlapping_refs_since_match_p): ... this; handle also
1563 ARRAY_REFs.
1564 (alias_stats): Update stats.
1565 (dump_alias_stats): Likewise.
1566 (cheap_array_ref_low_bound): New function.
1567 (aliasing_matching_component_refs_p): Add partial_overlap
1568 argument;
1569 pass it to nonoverlapping_refs_since_match_p.
1570 (aliasing_component_refs_walk): Update call of
1571 aliasing_matching_component_refs_p
1572 (nonoverlapping_array_refs_p): New function.
1573 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1574 indirect_refs_may_alias_p): Update calls of
1575 nonoverlapping_refs_since_match_p.
1576
1577 2019-10-01 Maya Rashish <coypu@sdf.org>
1578
1579 PR target/85401
1580 * ira-color.c (allocno_copy_cost_saving): Call
1581 ira_init_register_move_cost_if_necessary.
1582
1583 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1584
1585 * Makefile.in (gnat_install_lib): New variable.
1586 * configure.ac: Substitute it.
1587 * configure: Regenerate.
1588
1589 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1590
1591 PR lto/91222
1592 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1593 is matched with non-C++ type
1594
1595 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1596
1597 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1598 after local CSE.
1599
1600 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1601
1602 * doc/invoke.texi (early-inlining-insns-O2): Document.
1603 (early-inlining-insns): Update.
1604 * params.def (early-inlining-insns-O2): New bound.
1605 (early-inlining-insns): Update docs.
1606 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1607
1608 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1609
1610 PR target/88562
1611 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1612 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1613 a memory access insn.
1614
1615 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1616
1617 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1618 vpmsumd.
1619
1620 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1621
1622 PR target/77918
1623 * config/s390/s390.c (s390_expand_vec_compare): Use
1624 gen_vec_cmpordered and gen_vec_cmpunordered.
1625 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1626 vec_unordered): Delete.
1627 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1628 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1629 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1630 (vec_cmp<code>): Generic dispatcher.
1631
1632 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1633
1634 PR target/77918
1635 * config/s390/vector.md (V_HW): Add V1TI in order to make
1636 vcond$a$b generate vcondv1tiv1tf.
1637
1638 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1639
1640 PR rtl-optimization/91948
1641 * ira-build.c (ira_create_allocno): Initialize
1642 ALLOCNO_CROSSED_CALLS_ABIS.
1643 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1644 than regno to ira_need_caller_save_p.
1645
1646 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1647
1648 * config/i386/i386-options.c
1649 (ix86_recompute_optlev_based_flags): New, moved out of...
1650 (ix86_option_override_internal): ... this. Call it.
1651 (ix86_override_options_after_change): Call it here too.
1652
1653 PR debug/91507
1654 * dwarf2out.c (override_type_for_decl_p): New.
1655 (gen_variable_die): Use it.
1656
1657 2019-10-01 Richard Biener <rguenther@suse.de>
1658
1659 * tree-vect-loop.c (vectorizable_reduction): Move variables
1660 to where they are used.
1661
1662 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1663
1664 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1665 (build_def_use): Use PC instead of CC0 in a comment.
1666
1667 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1668
1669 * rtl.def (CLOBBER_HIGH): Delete.
1670 * doc/rtl.texi (clobber_high): Remove documentation.
1671 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1672 (reg_is_clobbered_by_clobber_high): Delete.
1673 (gen_hard_reg_clobber_high): Likewise.
1674 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1675 * cfgexpand.c (expand_gimple_stmt): Likewise.
1676 * combine-stack-adj.c (single_set_for_csa): Likewise.
1677 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1678 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1679 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1680 * cse.c (invalidate_reg): Remove clobber_high parameter.
1681 (invalidate): Update call accordingly.
1682 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1683 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1684 (count_reg_usage, insn_live_p): Likewise.
1685 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1686 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1687 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1688 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1689 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1690 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1691 (mark_nonreg_stores_2): Likewise.
1692 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1693 (df_get_call_refs): Likewise.
1694 * dwarf2out.c (mem_loc_descriptor): Likewise.
1695 * emit-rtl.c (verify_rtx_sharing): Likewise.
1696 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1697 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1698 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1699 * genemit.c (gen_exp, gen_insn): Likewise.
1700 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1701 * haifa-sched.c (haifa_classify_rtx): Likewise.
1702 * ira-build.c (create_insn_allocnos): Likewise.
1703 * ira-costs.c (scan_one_insn): Likewise.
1704 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1705 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1706 * jump.c (mark_jump_label_1): Likewise.
1707 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1708 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1709 handling.
1710 (mark_not_eliminable): Likewise.
1711 * lra-lives.c (process_bb_lives): Likewise.
1712 * lra.c (new_insn_reg): Remove clobber_high parameter.
1713 (collect_non_operand_hard_regs): Likewise. Update call to new
1714 insn_reg. Remove CLOBBER_HIGH handling.
1715 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1716 to collect_non_operand_hard_regs.
1717 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1718 Update call to new_insn_reg.
1719 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1720 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1721 (move2add_note_store): Likewise.
1722 * print-rtl.c (print_pattern): Likewise.
1723 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1724 (if_test_bypass_p): Likewise.
1725 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1726 * reginfo.c (reg_scan_mark_refs): Likewise.
1727 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1728 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1729 (forget_old_reloads_1): Likewise.
1730 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1731 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1732 (dbr_schedule): Likewise.
1733 * resource.c (update_live_status, mark_referenced_resources)
1734 (mark_set_resources): Likewise.
1735 * rtl.c (copy_rtx): Likewise.
1736 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1737 (note_pattern_stores): Likewise.
1738 (reg_is_clobbered_by_clobber_high): Delete.
1739 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1740 CLOBBER_HIGH handling.
1741
1742 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1743
1744 PR target/91452
1745 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1746 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1747 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1748 Handle ARM_PCS_TLSDESC.
1749 (aarch64_tlsdesc_abi_id): New function.
1750 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1751 rtx instead of a list of clobbers and clobber_highs.
1752 (tlsdesc_small_<mode>): Update accordingly.
1753
1754 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1755
1756 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1757 extra callee_abi argument.
1758 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1759 Insert a CALLEE_ABI unspec into the call pattern as the second
1760 element in the PARALLEL.
1761 (aarch64_simd_call_p): Delete.
1762 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1763 the new CALLEE_ABI element of the PARALLEL.
1764 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1765 from the function type, if given.
1766 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1767 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1768 when passed the function_arg_info end marker.
1769 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1770 final argument of gen_sibcall.
1771 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1772 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1773 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1774 pattern.
1775 (call_value): Likewise operand 3.
1776 (sibcall): Likewise operand 2. Place the unspec before rather than
1777 after the return.
1778 (sibcall_value): Likewise operand 3.
1779 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1780 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1781 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1782 constraint strings.
1783 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1784
1785 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1786
1787 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1788 choose_hard_reg_mode.
1789 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1790
1791 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1792
1793 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1794 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1795 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1796
1797 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1798
1799 * diagnostic-show-locus.c (line_label::line_label): Initialize
1800 m_has_vbar.
1801 (line_label::comparator): Reverse the sort order by m_state_idx,
1802 so that when the list is walked backwards the labels appear in
1803 order of insertion into the rich_location.
1804 (line_label::m_has_vbar): New field.
1805 (layout::print_any_labels): When dealing with multiple labels at
1806 the same line and column, only print vertical bars for the one
1807 with the highest label_line.
1808 (selftest::test_one_liner_labels): Update test for multiple labels
1809 to expect the labels to be in the order of insertion into the
1810 rich_location. Add a test for many such labels, where the column
1811 numbers are out-of-order relative to the insertion order.
1812
1813 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1814
1815 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1816 (ix86_frame::expensive_count): Likewise.
1817 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1818 of use_fast_prologue_epilogue robust against incidental changes
1819 in function size.
1820
1821 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1822
1823 PR target/77918
1824 * config/s390/vector.md (vec_unordered<mode>): Call
1825 gen_vec_ordered<mode>.
1826
1827 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1828
1829 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1830 New pattern for ASRD.
1831 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1832 * internal-fn.def (IFN_DIV_POW2): New internal function.
1833 * optabs.def (sdiv_pow2_optab): New optab.
1834 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1835 Modify pattern to support new operation.
1836 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1837 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1838 Document new target selector.
1839
1840 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1841
1842 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1843 to test whether we're compiling a vector PCS function and to test
1844 whether the function needs to save a particular register.
1845 Remove the vector PCS handling of df_set_regs_ever_live.
1846 (aarch64_components_for_bb): Use crtl->abi to test whether
1847 the function needs to save a particular register.
1848 (aarch64_process_components): Use crtl->abi to test whether
1849 we're compiling a vector PCS function.
1850 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1851 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1852
1853 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1854
1855 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1856 Delete.
1857 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1858 whether the block calls a function that clobbers more registers
1859 than the current function is allowed to.
1860 (aarch64_use_simple_return_insn_p): Delete.
1861 * config/aarch64/aarch64.md (simple_return): Remove condition.
1862
1863 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1864
1865 * function-abi.h (function_abi_aggregator): New class.
1866 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1867 function.
1868 * ira.c (update_equiv_regs_prescan): New function. Call
1869 set_paradoxical_subreg here rather than...
1870 (update_equiv_regs): ...here.
1871 (ira): Call update_equiv_regs_prescan.
1872
1873 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1874
1875 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1876 IN_TARGET_CODE.
1877 (call_used_or_fixed_regs): Likewise.
1878 (call_used_or_fixed_reg_p): Likewise.
1879 * reginfo.c (regs_invalidated_by_call): New macro.
1880
1881 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1882
1883 * shrink-wrap.c: Include function-abi.h.
1884 (requires_stack_frame_p): Use crtl->abi to test whether the
1885 current function can use a register without saving it first.
1886
1887 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1888
1889 * sel-sched-ir.h (_def::crosses_call): Replace with...
1890 (_def::crossed_call_abis): ..this new field.
1891 (def_list_add): Take a mask of ABIs instead of a crosses_call
1892 boolean.
1893 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1894 of _def accordingly.
1895 * sel-sched.c: Include function-abi.h.
1896 (hard_regs_data::regs_for_call_clobbered): Delete.
1897 (reg_rename::crosses_call): Replace with...
1898 (reg_rename::crossed_call_abis): ...this new field.
1899 (fur_static_params::crosses_call): Replace with...
1900 (fur_static_params::crossed_call_abis): ...this new field.
1901 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1902 (init_hard_regs_data): Use crtl->abi to test which registers the
1903 current function would need to save before it uses them.
1904 (mark_unavailable_hard_regs): Update handling of call-clobbered
1905 registers, using call_clobbers_in_region to find out which registers
1906 might be call-clobbered (but without taking -fipa-ra into account
1907 for now). Remove separate handling of partially call-clobbered
1908 registers.
1909 (verify_target_availability): Use crossed_call_abis instead of
1910 crosses_call.
1911 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1912 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1913
1914 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1915
1916 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1917 function to test whether a register is fully or partly clobbered.
1918
1919 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1920
1921 * rtlanal.c: Include function-abi.h.
1922 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1923 function and clobbers_reg_p to test whether the register
1924 is call-clobbered.
1925 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1926 to get the ABI of the called function and full_reg_clobbers to
1927 get the set of fully call-clobbered registers. Warn about the
1928 pitfalls of using this mode.
1929
1930 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1931
1932 * reload.c: Include function-abi.h.
1933 (find_equiv_reg): Use clobbers_reg_p to test whether either
1934 of the equivalent registers is clobbered by a call.
1935 * reload1.c: Include function-abi.h.
1936 (reg_reloaded_call_part_clobbered): Delete.
1937 (reload): Use crtl->abi to test which registers would need
1938 saving in the prologue before use.
1939 (find_reg): Likewise.
1940 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1941 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1942 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1943
1944 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1945
1946 * regrename.h (du_head::call_clobber_mask): New field.
1947 (du_head::need_caller_save_reg): Replace with...
1948 (du_head::call_abis): ...this new field.
1949 * regrename.c: Include function-abi.h.
1950 (call_clobbered_in_chain_p): New function.
1951 (check_new_reg_p): Use crtl->abi when deciding whether a register
1952 is free for use after RA. Use call_clobbered_in_chain_p to test
1953 whether a candidate register would be clobbered by a call.
1954 (find_rename_reg): Don't add call-clobber conflicts here.
1955 (rename_chains): Check call_abis instead of need_caller_save_reg.
1956 (merge_chains): Update for changes to du_head.
1957 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1958 target. Record the ABI identifier in call_abis and the set of
1959 fully or partially clobbered registers in call_clobber_mask.
1960 Add fully-clobbered registers to hard_conflicts here rather
1961 than in find_rename_reg.
1962 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1963 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1964 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1965 function-abi.h.
1966 * config/c6x/c6x.c: Likewise.
1967
1968 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1969
1970 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1971 mode of the register when deciding whether it is no longer
1972 available after a call.
1973
1974 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1975
1976 * recog.c: Include function-abi.h.
1977 (peep2_find_free_register): Use crtl->abi when deciding whether
1978 a register is free for use after RA.
1979
1980 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1981
1982 * postreload-gcse.c: Include regs.h and function-abi.h.
1983 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1984 call insn target. Conservatively assume that partially-clobbered
1985 registers are altered.
1986
1987 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1988
1989 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1990 when deciding whether a register is free for use after RA.
1991 (reload_combine): Remove unnecessary use of fixed_reg_set.
1992 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1993 call insn target. Use reg_mode when testing whether a register
1994 is no longer available.
1995
1996 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1997
1998 * target.def (return_call_with_max_clobbers): Delete.
1999 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2000 * doc/tm.texi: Regenerate.
2001 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2002 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2003 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2004 (lra_reg::call_insn): Delete.
2005 * lra.c: Include function-abi.h.
2006 (initialize_lra_reg_info_element): Don't initialize the fields above.
2007 (lra): Use crtl->abi to test whether the current function needs to
2008 save a register in the prologue. Remove special pre-inheritance
2009 lra_create_live_ranges pass for flag_ipa_ra.
2010 * lra-assigns.c: Include function-abi.h
2011 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2012 function needs to save a register in the prologue.
2013 (lra_assign): Assert that registers aren't allocated to a
2014 conflicting register, rather than checking only for overlaps
2015 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2016 and for registers that are not live across a call.
2017 * lra-constraints.c (last_call_for_abi): New variable.
2018 (full_and_partial_call_clobbers): Likewise.
2019 (setup_next_usage_insn): Remove the register from
2020 full_and_partial_call_clobbers.
2021 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2022 whether the register needs a caller save.
2023 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2024 of call_used_or_fixed_regs.
2025 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2026 full_and_partial_call_clobbers.
2027 * lra-lives.c (check_pseudos_live_through_calls): Replace
2028 last_call_used_reg_set and call_insn arguments with an abi argument.
2029 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2030 as the set of conflicting registers.
2031 (calls_have_same_clobbers_p): Delete.
2032 (process_bb_lives): Track the ABI of the last call instead of an
2033 insn/HARD_REG_SET pair. Update calls to
2034 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2035 the set of registers that could be clobbered by an EH edge.
2036 Include partially-clobbered as well as fully-clobbered registers.
2037 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2038 * lra-remat.c: Include function-abi.h.
2039 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2040 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2041 registers and bitmap_view to combine them into dead_regs.
2042 (call_used_input_regno_present_p): Take a function_abi argument
2043 and use it to test whether a register is call-clobbered.
2044 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2045 call insn target. Update tje call to call_used_input_regno_present_p.
2046 (do_remat): Likewise.
2047 (lra_remat): Remove the initialization of call_used_regs_arr_len
2048 and call_used_regs_arr.
2049
2050 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2051
2052 * loop-iv.c: Include regs.h and function-abi.h.
2053 (simplify_using_initial_values): Use insn_callee_abi to get the
2054 ABI of the call insn target. Conservatively assume that
2055 partially-clobbered registers are altered.
2056
2057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2058
2059 * function-abi.h (call_clobbers_in_region): Declare.
2060 (call_clobbered_in_region_p): New function.
2061 * function-abi.cc (call_clobbers_in_region): Likewise.
2062 * ira-int.h: Include function-abi.h.
2063 (ira_allocno::crossed_calls_abis): New field.
2064 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2065 (ira_need_caller_save_regs): New function.
2066 (ira_need_caller_save_p): Likewise.
2067 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2068 of call_used_or_fixed_regs.
2069 (do_reload): Use crtl->abi to test whether the current function
2070 needs to save a register in the prologue. Count registers that
2071 need to be saved rather than registers that don't.
2072 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2073 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2074 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2075 (propagate_some_info_from_allocno): Likewise.
2076 (copy_info_to_removed_store_destinations): Likewise.
2077 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2078 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2079 (ira_build): Use ira_need_caller_save_regs instead of
2080 call_used_or_fixed_regs.
2081 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2082 whether the current function would need to save a register
2083 before using it.
2084 (calculate_spill_cost): Likewise.
2085 (allocno_reload_assign): Use ira_need_caller_save_regs and
2086 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2087 * ira-conflicts.c (ira_build_conflicts): Use
2088 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2089 as the set of call-clobbered registers. Remove the
2090 call_used_or_fixed_regs mask from the calculation of
2091 temp_hard_reg_set and mask its use instead. Remove special
2092 handling of partially-clobbered registers.
2093 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2094 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2095 calculate the set of conflicting registers for calls that
2096 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2097 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2098 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2099 Use eh_edge_abi to calculate the set of registers that could
2100 be clobbered by an EH edge. Include partially-clobbered as
2101 well as fully-clobbered registers.
2102
2103 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2104
2105 * haifa-sched.c: Include function-abi.h.
2106 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2107 the function would need to save a register before using it.
2108
2109 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2110
2111 * gcse.c: Include function-abi.h.
2112 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2113 the call insn target. Invalidate partially call-clobbered
2114 registers as well as fully call-clobbered ones.
2115
2116 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2117
2118 * function.c (aggregate_value_p): Work out which ABI the
2119 function is using before testing which registers are at least
2120 partly preserved by a call.
2121
2122 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2123
2124 * early-remat.c: Include regs.h and function-abi.h.
2125 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2126 registers here.
2127 (early_remat::restrict_remat_for_unavail_regs): New function.
2128 (early_remat::restrict_remat_for_call): Likewise.
2129 (early_remat::process_block): Before calling emit_remat_insns
2130 for a previous call in the block, invalidate any candidates
2131 that would clobber call-preserved registers.
2132 (early_remat::emit_remat_insns_for_block): Likewise for the
2133 final call in a block. Do the same thing for live-in registers
2134 when calling emit_remat_insns at the head of a block.
2135
2136 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2137
2138 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2139 whether the current function needs to save at least part of a
2140 register before using it.
2141 (df_get_exit_block_use_set): Likewise for epilogue restores.
2142
2143 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2144
2145 * df-problems.c: Include regs.h and function-abi.h.
2146 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2147 sparse_invalidated_by_eh and dense_invalidated_by_call to
2148 dense_invalidated_by_eh.
2149 (df_print_bb_index): Update accordingly.
2150 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2151 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2152 that are clobbered by an EH edge. Clobber partially-clobbered
2153 registers as well as fully-clobbered ones.
2154 (df_md_confluence_n): Likewise.
2155 (df_rd_local_compute): Likewise. Update for changes to
2156 df_rd_problem_data.
2157 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2158 of registers that are clobbered by an EH edge. Includde partially-
2159 clobbered registers as well as fully-clobbered ones.
2160
2161 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2162
2163 * cselib.c (cselib_process_insn): If we know what mode a
2164 register was set in, check whether it is clobbered in that
2165 mode by a call. Only fall back to reg_raw_mode if that fails.
2166
2167 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * cse.c: Include regs.h and function-abi.h.
2170 (invalidate_for_call): Take the call insn as an argument.
2171 Use insn_callee_abi to get the ABI of the call and invalidate
2172 partially clobbered registers as well as fully clobbered ones.
2173 (cse_insn): Update call accordingly.
2174
2175 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2176
2177 * combine.c: Include function-abi.h.
2178 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2179 of the target of call insns. Invalidate partially-clobbered
2180 registers as well as fully-clobbered ones.
2181
2182 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2183
2184 * cfgloopanal.c: Include regs.h and function-abi.h.
2185 (init_set_costs): Use default_function_abi to test whether
2186 a general register is call-clobbered.
2187
2188 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2189
2190 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2191 instead of the call-clobbered sets.
2192
2193 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2194
2195 * caller-save.c (setup_save_areas): Remove redundant |s of
2196 fixed_reg_set.
2197 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2198 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2199 value is useful.
2200
2201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 * rtl.h (predefined_function_abi): Declare.
2204 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2205 instead of a boolean call_save flag.
2206 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2207 accordingly.
2208 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2209 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2210 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2211 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2212 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2213 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2214 * reginfo.c (init_reg_modes_target): Likewise.
2215 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2216 instead of a boolean call_save flag.
2217 * targhooks.c: Include function-abi.h.
2218 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2219 using eh_edge_abi to choose the mode.
2220
2221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * target.def (hard_regno_call_part_clobbered): Take an ABI
2224 identifier instead of an rtx_insn.
2225 * doc/tm.texi: Regenerate.
2226 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2227 (hook_bool_uint_uint_mode_false): New function.
2228 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2229 (hook_bool_uint_uint_mode_false): New function.
2230 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2231 Take an ABI identifier instead of an rtx_insn.
2232 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2233 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2234 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2235 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2236 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2237 Likewise.
2238 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2239 * cselib.c: Include function-abi.h.
2240 (cselib_process_insn): Update call to
2241 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2242 to get the appropriate ABI identifier.
2243 * function-abi.cc (predefined_function_abi::initialize): Update call
2244 to targetm.hard_regno_call_part_clobbered.
2245 * ira-conflicts.c (ira_build_conflicts): Likewise.
2246 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2247 * lra-constraints.c: Include function-abi.h.
2248 (need_for_call_save_p): Update call to
2249 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2250 to get the appropriate ABI identifier.
2251 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2252 * regcprop.c (copyprop_hardreg_forward_1): Update call
2253 to targetm.hard_regno_call_part_clobbered.
2254 * reginfo.c (choose_hard_reg_mode): Likewise.
2255 * regrename.c (check_new_reg_p): Likewise.
2256 * reload.c (find_equiv_reg): Likewise.
2257 * reload1.c (emit_reload_insns): Likewise.
2258 * sched-deps.c: Include function-abi.h.
2259 (deps_analyze_insn): Update call to
2260 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2261 to get the appropriate ABI identifier.
2262 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2263 call to targetm.hard_regno_call_part_clobbered.
2264 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2265
2266 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2267
2268 * config/i386/i386.c: Include function-abi.h.
2269 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2270 if they preserve some 256-bit or 512-bit SSE registers.
2271
2272 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2273
2274 * target.def (insn_callee_abi): New hook.
2275 (remove_extra_call_preserved_regs): Delete.
2276 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2277 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2278 * doc/tm.texi: Regenerate.
2279 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2280 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2281 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2282 insn argument.
2283 (aarch64_remove_extra_call_preserved_regs): Delete.
2284 (aarch64_insn_callee_abi): New function.
2285 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2286 (TARGET_INSN_CALLEE_ABI): New macro.
2287 * rtl.h (get_call_fndecl): Declare.
2288 (cgraph_rtl_info): Fix formatting. Tweak comment for
2289 function_used_regs. Remove function_used_regs_valid.
2290 * rtlanal.c (get_call_fndecl): Moved from final.c
2291 * function-abi.h (insn_callee_abi): Declare.
2292 (target_function_abi_info): Mention insn_callee_abi.
2293 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2294 way to get_call_reg_set_usage did.
2295 (insn_callee_abi): New function.
2296 * regs.h (get_call_reg_set_usage): Delete.
2297 * final.c: Include function-abi.h.
2298 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2299 function_used_regs before the main loop rather than afterwards.
2300 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2301 if function_used_regs ends up not being useful.
2302 (get_call_fndecl): Move to rtlanal.c
2303 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2304 * caller-save.c: Include function-abi.h.
2305 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2306 instead of get_call_reg_set_usage.
2307 * cfgcleanup.c: Include function-abi.h.
2308 (old_insns_match_p): Use insn_callee_abi instead of
2309 get_call_reg_set_usage.
2310 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2311 a tree.
2312 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2313 function_used_regs.
2314 * df-scan.c: Include function-abi.h.
2315 (df_get_call_refs): Use insn_callee_abi instead of
2316 get_call_reg_set_usage.
2317 * ira-lives.c: Include function-abi.h.
2318 (process_bb_node_lives): Use insn_callee_abi instead of
2319 get_call_reg_set_usage.
2320 * lra-lives.c: Include function-abi.h.
2321 (process_bb_lives): Use insn_callee_abi instead of
2322 get_call_reg_set_usage.
2323 * postreload.c: Include function-abi.h.
2324 (reload_combine): Use insn_callee_abi instead of
2325 get_call_reg_set_usage.
2326 * regcprop.c: Include function-abi.h.
2327 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2328 get_call_reg_set_usage.
2329 * resource.c: Include function-abi.h.
2330 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2331 instead of get_call_reg_set_usage.
2332 * var-tracking.c: Include function-abi.h.
2333 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2334 get_call_reg_set_usage.
2335
2336 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2337
2338 * target.def (fntype_abi): New target hook.
2339 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2340 * doc/tm.texi: Regenerate.
2341 * target.h (predefined_function_abi): Declare.
2342 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2343 if defined.
2344 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2345 * config/aarch64/aarch64.c: Include function-abi.h.
2346 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2347 (TARGET_FNTYPE_ABI): Define.
2348
2349 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2350
2351 * Makefile.in (OBJS): Add function-abi.o.
2352 (GTFILES): Add function-abi.h.
2353 * function-abi.cc: New file.
2354 * function-abi.h: Likewise.
2355 * emit-rtl.h (rtl_data::abi): New field.
2356 * function.c: Include function-abi.h.
2357 (prepare_function_start): Initialize crtl->abi.
2358 * read-rtl-function.c: Include regs.h and function-abi.h.
2359 (read_rtl_function_body): Initialize crtl->abi.
2360 (read_rtl_function_body_from_file_range): Likewise.
2361 * reginfo.c: Include function-abi.h.
2362 (init_reg_sets_1): Initialize default_function_abi.
2363 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2364 when making a register global.
2365 * target-globals.h (this_target_function_abi_info): Declare.
2366 (target_globals::function_abi_info): New field.
2367 (restore_target_globals): Copy it.
2368 * target-globals.c: Include function-abi.h.
2369 (default_target_globals): Initialize the function_abi_info field.
2370 (target_globals): Allocate it.
2371 (save_target_globals): Free it.
2372
2373 2019-09-30 Nick Clifton <nickc@redhat.com>
2374
2375 PR target/85978
2376 * config/frv/frv.c (frv_register_move_cost): Add break statements
2377 to avoid falling through to the wrong cases. Tidy code.
2378
2379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2380
2381 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2382 For multi-registers modes, test how big each register part is.
2383
2384 2019-09-30 Nick Clifton <nickc@redhat.com>
2385
2386 PR target/59205
2387 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2388 (TARGET_ASM_SELECT_SECTION): Remove definition.
2389 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2390
2391 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2392
2393 * emit-rtl.c (init_raw_REG): New function.
2394 (gen_raw_REG): Use init_raw_REG.
2395 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2396 macros.
2397 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2398 * rtl.h (rtx_init): New function.
2399 (rtx_alloca): New function.
2400 (init_raw_REG): New function.
2401 (alloca_raw_REG): New macro.
2402
2403 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2404
2405 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2406 (pcrel_local_address): Replace pcrel_address predicate, use the
2407 new function address_to_insn_form.
2408 (pcrel_external_address): Replace with new implementation using
2409 address_to_insn_form..
2410 (prefixed_mem_operand): Delete predicate which is now unused.
2411 (pcrel_external_mem_operand): Delete predicate which is now
2412 unused.
2413 * config/rs6000/rs6000-protos.h (enum insn_form): New
2414 enumeration.
2415 (enum non_prefixed_form): New enumeration.
2416 (address_to_insn_form): New declaration.
2417 (prefixed_load_p): New declaration.
2418 (prefixed_store_p): New declaration.
2419 (prefixed_paddi_p): New declaration.
2420 (rs6000_asm_output_opcode): New declaration.
2421 (rs6000_final_prescan_insn): Move declaration and update calling
2422 signature.
2423 (address_is_prefixed): New helper inline function.
2424 * config/rs6000/rs6000.c(print_operand_address): Check for either
2425 PC-relative local symbols or PC-relative external symbols.
2426 (rs6000_emit_move): Support loading PC-relative addresses.
2427 (mode_supports_prefixed_address_p): Delete, no longer used.
2428 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2429 (address_to_insn_form): New function to decode an address format.
2430 (reg_to_non_prefixed): New function to identify what the
2431 non-prefixed memory instruction format is for a register.
2432 (prefixed_load_p): New function to identify prefixed loads.
2433 (prefixed_store_p): New function to identify prefixed stores.
2434 (prefixed_paddi_p): New function to identify prefixed load
2435 immediates.
2436 (next_insn_prefixed_p): New static state variable.
2437 (rs6000_final_prescan_insn): New function to determine if an insn
2438 uses a prefixed instruction.
2439 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2440 prefixed instruction.
2441 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2442 (ASM_OUTPUT_OPCODE): New target hook.
2443 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2444 prefixed instructions.
2445 (prefixed_length): New insn attribute for the size of prefixed
2446 instructions.
2447 (non_prefixed_length): New insn attribute for the size of
2448 non-prefixed instructions.
2449 (pcrel_local_addr): New insn to load up a local PC-relative
2450 address.
2451 (pcrel_extern_addr): New insn to load up an external PC-relative
2452 address.
2453 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2454 GPR and loading a 128-bit floating point type to a GPR.
2455
2456 2019-09-30 Richard Biener <rguenther@suse.de>
2457
2458 * gimple.c (gimple_get_lhs): For PHIs return the result.
2459 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2460 SLP instance as argument.
2461 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2462 double-reduction PHIs with vectorizable_lc_phi.
2463 (vect_analyze_loop_operations): Adjust.
2464 (vect_create_epilog_for_reduction): Remove all code not dealing
2465 with reduction LC PHI or epilogue generation.
2466 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2467 for live stmts of reductions.
2468 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2469 do not handle defs that are not vect_internal_def.
2470 (can_vectorize_live_stmts): Adjust.
2471 (vect_analyze_stmt): When the vectorized stmt defined a value
2472 used on backedges adjust the backedge uses of vectorized PHIs.
2473
2474 2019-09-30 Martin Jambor <mjambor@suse.cz>
2475
2476 PR ipa/91853
2477 * tree-inline.c (force_value_to_type): New function.
2478 (setup_one_parameter): Use force_value_to_type to convert type.
2479 * tree-inline.c (force_value_to_type): Declare.
2480 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2481 with register type mismatches.
2482
2483 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2484
2485 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2486 32-bit PowerPC.
2487 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2488 * config/rs6000/t-freebsd64: Make use of the above define and build
2489 the 32-bit libraries with secure-plt.
2490
2491 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR target/91931
2494 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2495 gen_int_mode instead of GEN_INT.
2496
2497 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2498
2499 * config/darwin.c (gen_macho_low): Amend to include the mode
2500 argument.
2501 (machopic_indirect_data_reference): Amend gen_macho_low call
2502 to include mode argument
2503 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2504 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2505 the macho_high expander and two define_insn entries.
2506
2507 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR bootstrap/90543
2510 * optc-save-gen.awk: Fix up printing string option differences.
2511
2512 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2513
2514 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2515 vec_perm cost to 1 for non-Power7 VSX architectures.
2516
2517 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2518
2519 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2520 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2521 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2522
2523 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2524
2525 * config/darwin.c (gen_macho_high): Amend to include the mode
2526 argument.
2527 (machopic_indirect_data_reference): Amend gen_macho_high call
2528 to include mode argument.
2529 (machopic_legitimize_pic_address): Likewise.
2530 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2531 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2532 the macho_high expander and two define_insn entries.
2533
2534 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2535
2536 PR target/86805
2537 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2538
2539 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2540
2541 PR target/80672
2542 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2543 std::string::compare instead of std::string::find.
2544
2545 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2546
2547 * configure: Regenerate.
2548
2549 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR middle-end/91920
2552 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2553 variables as shared.
2554
2555 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2556
2557 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2558 replaces the expander and two define_insn entries.
2559 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2560 call.
2561 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2562
2563 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2564
2565 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2566 (fibonacci_heap::nodes): Likewise.
2567 (fibonacci_heap::min_key): Likewise.
2568 (fibonacci_heap::min): Likewise.
2569
2570 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2571
2572 * cgraph.c (cgraph_node::get_fun): Make const.
2573 * cgraph.h (cgraph_node::get_fun): Likewise.
2574
2575 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2576
2577 PR target/91919
2578 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2579 of SImode MULT.
2580
2581 2019-09-27 Richard Biener <rguenther@suse.de>
2582
2583 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2584 (STMT_VINFO_REDUC_FN): Likewise.
2585 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2586 STMT_VINFO_REDUC_FN.
2587 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2588 for condition reductions.
2589 (vect_create_epilog_for_reduction): Compute all required state
2590 from the stmt to be vectorized.
2591 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2592 invocation and remove then dead code. For single def-use chains
2593 record only a single vector stmt.
2594
2595 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2596
2597 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2598 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2599 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2600 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2601 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2602 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2603 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2604 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2605 (aarch64_general_builtin_rsqrt): Declare.
2606 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2607 New function.
2608 (aarch64_mangle_builtin_type): Rename to...
2609 (aarch64_general_mangle_builtin_type): ...this.
2610 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2611 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2612 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2613 aarch64_general_add_builtin instead of add_builtin_function.
2614 (aarch64_init_builtins): Rename to...
2615 (aarch64_general_init_builtins): ...this. Use
2616 aarch64_general_add_builtin instead of add_builtin_function.
2617 (aarch64_builtin_decl): Rename to...
2618 (aarch64_general_builtin_decl): ...this and remove the unused
2619 arguments.
2620 (aarch64_expand_builtin): Rename to...
2621 (aarch64_general_expand_builtin): ...this and remove the unused
2622 arguments.
2623 (aarch64_builtin_rsqrt): Rename to...
2624 (aarch64_general_builtin_rsqrt): ...this.
2625 (aarch64_fold_builtin): Rename to...
2626 (aarch64_general_fold_builtin): ...this. Take the function subcode
2627 and return type as arguments. Remove the "ignored" argument.
2628 (aarch64_gimple_fold_builtin): Rename to...
2629 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2630 subcode and gcall as arguments, and return the new function call.
2631 * config/aarch64/aarch64.c (aarch64_init_builtins)
2632 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2633 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2634 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2635 instead of aarch64_builtin_rsqrt.
2636 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2637 instead of aarch64_mangle_builtin_type.
2638
2639 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2640
2641 * target.def (check_builtin_call): New target hook.
2642 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2643 * doc/tm.texi: Regenerate.
2644
2645 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2646
2647 PR tree-optimization/91909
2648 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2649 reduc_index parameter. When handling COND_REDUCTION, make sure
2650 that the reduction phi operand is in the correct arm of the
2651 VEC_COND_EXPR.
2652 (vectorizable_reduction): Pass reduc_index to the above.
2653
2654 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2655
2656 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2657 New combine pattern.
2658
2659 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2660
2661 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2662 loop instruction into new basic block before the loop when basic
2663 block that precedes the loop is empty.
2664
2665 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2666
2667 * function.c (gimplify_parameters): Use build_clobber function.
2668 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2669 * tree-inline.c (expand_call_inline): Likewise.
2670 * tree-sra.c (clobber_subtree): Likewise.
2671 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2672 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2673 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2674 lower_omp_target): Likewise.
2675 * omp-expand.c (expand_omp_for_generic): Likewise.
2676 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2677
2678 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2679
2680 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2681 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2682 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2683 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2684 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2685 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2686 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2687 LD_ELEMREV_V16QI): Use the PURE attribute.
2688
2689 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2690
2691 * config/rs6000/darwin.md: Replace the expanders for
2692 load_macho_picbase and reload_macho_picbase with use of '@'
2693 and <mode> in their respective define_insns.
2694 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2695 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2696 Pmode to gen_load_macho_picbase.
2697 * config/rs6000/rs6000.md: Likewise.
2698
2699 2019-09-25 Richard Biener <rguenther@suse.de>
2700
2701 PR tree-optimization/91896
2702 * tree-vect-loop.c (vectorizable_reduction): The single
2703 def-use cycle optimization cannot apply when there's more
2704 than one pattern stmt involved.
2705
2706 2019-09-26 Richard Biener <rguenther@suse.de>
2707
2708 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2709 loop-closed PHIs that are vect_internal_def.
2710 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2711 Simplify.
2712 (vectorizable_lc_phi): New.
2713 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2714 (vect_transform_stmt): Likewise.
2715 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2716 (vectorizable_lc_phi): Declare.
2717
2718 2019-09-26 Richard Biener <rguenther@suse.de>
2719
2720 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2721 vectorizable_reduction for vect_double_reduction_def.
2722 (vect_transform_loop): Likewise.
2723 (vect_create_epilog_for_reduction): Move double-reduction
2724 PHI creation and preheader argument setting of PHIs ...
2725 (vectorizable_reduction): ... here. Also process
2726 vect_double_reduction_def PHIs, creating the vectorized
2727 PHI nodes, remembering the scalar adjustment computed for
2728 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2729 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2730 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2731 Initialize STMT_VINFO_REDUC_CODE.
2732 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2733 (_stmt_vec_info::reduc_code): Likewise.
2734 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2735 (STMT_VINFO_REDUC_CODE): Likewise.
2736
2737 2019-09-26 Matt Turner <mattst88@gmail.com>
2738
2739 PR driver/69471
2740 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2741 (mtune=): Add Negative(mtune=).
2742 (mcpu=): Add Negative(mcpu=).
2743 * config/arm/arm.opt: Likewise.
2744
2745 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2746
2747 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2748 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2749 Define.
2750 * config/arm/arm_acle.h: Define builtins for the above.
2751 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2752 (simd32_op): Handle the above.
2753 * config/arm/unspecs.md: Define unspecs for the above.
2754
2755 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2756
2757 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2758 (arm_<sup>xtb16): Likewise.
2759 (arm_usada8): Likewise.
2760 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2761 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2762 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2763 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2764 __sxtb16, __uxtab16, __uxtb16): Define.
2765 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2766 * config/arm/unspecs.md: Define unspecs for the above.
2767 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2768 (USXTB16): Likewise.
2769 (simd32_op): New int_attribute.
2770 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2771 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2772
2773 2019-09-26 Martin Jambor <mjambor@suse.cz>
2774
2775 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2776 internal_error.
2777
2778 2019-09-26 Martin Jambor <mjambor@suse.cz>
2779
2780 * ipa-sra.c (process_scan_results): Fix continue condition.
2781
2782 2019-09-26 Martin Liska <mliska@suse.cz>
2783
2784 PR tree-optimization/91885
2785 * tree-vectorizer.c (try_vectorize_loop_1): Add
2786 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2787
2788 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2789
2790 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2791 aarch64_plus_immediate rather than aarch64_uimm12_shift
2792 to test for valid PLUS immediates.
2793
2794 2019-09-25 Martin Jambor <mjambor@suse.cz>
2795
2796 * tree-sra.c (no_accesses_p): Remove.
2797 (no_accesses_representant): Likewise.
2798
2799 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2800
2801 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2802 consistenly.
2803 (vaba_s16): Likewise.
2804 (vaba_s32): Likewise.
2805 (vaba_u8): Likewise.
2806 (vaba_u16): Likewise.
2807 (vaba_u32): Likewise.
2808 (vabal_high_s8): Likewise.
2809 (vabal_high_s16): Likewise.
2810 (vabal_high_s32): Likewise.
2811 (vabal_high_u8): Likewise.
2812 (vabal_high_u16): Likewise.
2813 (vabal_high_u32): Likewise.
2814 (vabal_s8): Likewise.
2815 (vabal_s16): Likewise.
2816 (vabal_s32): Likewise.
2817 (vabal_u8): Likewise.
2818 (vabal_u16): Likewise.
2819 (vabal_u32): Likewise.
2820 (vabaq_s8): Likewise.
2821 (vabaq_s16): Likewise.
2822 (vabaq_s32): Likewise.
2823 (vabaq_u8): Likewise.
2824 (vabaq_u16): Likewise.
2825 (vabaq_u32): Likewise.
2826 (vabd_s8): Likewise.
2827 (vabd_s16): Likewise.
2828 (vabd_s32): Likewise.
2829 (vabd_u8): Likewise.
2830 (vabd_u16): Likewise.
2831 (vabd_u32): Likewise.
2832 (vabdl_high_s8): Likewise.
2833 (vabdl_high_s16): Likewise.
2834 (vabdl_high_s32): Likewise.
2835 (vabdl_high_u8): Likewise.
2836 (vabdl_high_u16): Likewise.
2837 (vabdl_high_u32): Likewise.
2838 (vabdl_s8): Likewise.
2839 (vabdl_s16): Likewise.
2840 (vabdl_s32): Likewise.
2841 (vabdl_u8): Likewise.
2842 (vabdl_u16): Likewise.
2843 (vabdl_u32): Likewise.
2844 (vabdq_s8): Likewise.
2845 (vabdq_s16): Likewise.
2846 (vabdq_s32): Likewise.
2847 (vabdq_u8): Likewise.
2848 (vabdq_u16): Likewise.
2849 (vabdq_u32): Likewise.
2850 (vaddlv_s8): Likewise.
2851 (vaddlv_s16): Likewise.
2852 (vaddlv_u8): Likewise.
2853 (vaddlv_u16): Likewise.
2854 (vaddlvq_s8): Likewise.
2855 (vaddlvq_s16): Likewise.
2856 (vaddlvq_s32): Likewise.
2857 (vaddlvq_u8): Likewise.
2858 (vaddlvq_u16): Likewise.
2859 (vaddlvq_u32): Likewise.
2860 (vcvtx_f32_f64): Likewise.
2861 (vcvtx_high_f32_f64): Likewise.
2862 (vcvtxd_f32_f64): Likewise.
2863 (vmla_n_f32): Likewise.
2864 (vmla_n_s16): Likewise.
2865 (vmla_n_s32): Likewise.
2866 (vmla_n_u16): Likewise.
2867 (vmla_n_u32): Likewise.
2868 (vmla_s8): Likewise.
2869 (vmla_s16): Likewise.
2870 (vmla_s32): Likewise.
2871 (vmla_u8): Likewise.
2872 (vmla_u16): Likewise.
2873 (vmla_u32): Likewise.
2874 (vmlal_high_n_s16): Likewise.
2875 (vmlal_high_n_s32): Likewise.
2876 (vmlal_high_n_u16): Likewise.
2877 (vmlal_high_n_u32): Likewise.
2878 (vmlal_high_s8): Likewise.
2879 (vmlal_high_s16): Likewise.
2880 (vmlal_high_s32): Likewise.
2881 (vmlal_high_u8): Likewise.
2882 (vmlal_high_u16): Likewise.
2883 (vmlal_high_u32): Likewise.
2884 (vmlal_n_s16): Likewise.
2885 (vmlal_n_s32): Likewise.
2886 (vmlal_n_u16): Likewise.
2887 (vmlal_n_u32): Likewise.
2888 (vmlal_s8): Likewise.
2889 (vmlal_s16): Likewise.
2890 (vmlal_s32): Likewise.
2891 (vmlal_u8): Likewise.
2892 (vmlal_u16): Likewise.
2893 (vmlal_u32): Likewise.
2894 (vmlaq_n_f32): Likewise.
2895 (vmlaq_n_s16): Likewise.
2896 (vmlaq_n_s32): Likewise.
2897 (vmlaq_n_u16): Likewise.
2898 (vmlaq_n_u32): Likewise.
2899 (vmlaq_s8): Likewise.
2900 (vmlaq_s16): Likewise.
2901 (vmlaq_s32): Likewise.
2902 (vmlaq_u8): Likewise.
2903 (vmlaq_u16): Likewise.
2904 (vmlaq_u32): Likewise.
2905 (vmls_n_f32): Likewise.
2906 (vmls_n_s16): Likewise.
2907 (vmls_n_s32): Likewise.
2908 (vmls_n_u16): Likewise.
2909 (vmls_n_u32): Likewise.
2910 (vmls_s8): Likewise.
2911 (vmls_s16): Likewise.
2912 (vmls_s32): Likewise.
2913 (vmls_u8): Likewise.
2914 (vmls_u16): Likewise.
2915 (vmls_u32): Likewise.
2916 (vmlsl_high_n_s16): Likewise.
2917 (vmlsl_high_n_s32): Likewise.
2918 (vmlsl_high_n_u16): Likewise.
2919 (vmlsl_high_n_u32): Likewise.
2920 (vmlsl_high_s8): Likewise.
2921 (vmlsl_high_s16): Likewise.
2922 (vmlsl_high_s32): Likewise.
2923 (vmlsl_high_u8): Likewise.
2924 (vmlsl_high_u16): Likewise.
2925 (vmlsl_high_u32): Likewise.
2926 (vmlsl_n_s16): Likewise.
2927 (vmlsl_n_s32): Likewise.
2928 (vmlsl_n_u16): Likewise.
2929 (vmlsl_n_u32): Likewise.
2930 (vmlsl_s8): Likewise.
2931 (vmlsl_s16): Likewise.
2932 (vmlsl_s32): Likewise.
2933 (vmlsl_u8): Likewise.
2934 (vmlsl_u16): Likewise.
2935 (vmlsl_u32): Likewise.
2936 (vmlsq_n_f32): Likewise.
2937 (vmlsq_n_s16): Likewise.
2938 (vmlsq_n_s32): Likewise.
2939 (vmlsq_n_u16): Likewise.
2940 (vmlsq_n_u32): Likewise.
2941 (vmlsq_s8): Likewise.
2942 (vmlsq_s16): Likewise.
2943 (vmlsq_s32): Likewise.
2944 (vmlsq_u8): Likewise.
2945 (vmlsq_u16): Likewise.
2946 (vmlsq_u32): Likewise.
2947 (vmovl_high_s8): Likewise.
2948 (vmovl_high_s16): Likewise.
2949 (vmovl_high_s32): Likewise.
2950 (vmovl_high_u8): Likewise.
2951 (vmovl_high_u16): Likewise.
2952 (vmovl_high_u32): Likewise.
2953 (vmovl_s8): Likewise.
2954 (vmovl_s16): Likewise.
2955 (vmovl_s32): Likewise.
2956 (vmovl_u8): Likewise.
2957 (vmovl_u16): Likewise.
2958 (vmovl_u32): Likewise.
2959 (vmovn_high_s16): Likewise.
2960 (vmovn_high_s32): Likewise.
2961 (vmovn_high_s64): Likewise.
2962 (vmovn_high_u16): Likewise.
2963 (vmovn_high_u32): Likewise.
2964 (vmovn_high_u64): Likewise.
2965 (vmovn_s16): Likewise.
2966 (vmovn_s32): Likewise.
2967 (vmovn_s64): Likewise.
2968 (vmovn_u16): Likewise.
2969 (vmovn_u32): Likewise.
2970 (vmovn_u64): Likewise.
2971 (vmull_high_n_s16): Likewise.
2972 (vmull_high_n_s32): Likewise.
2973 (vmull_high_n_u16): Likewise.
2974 (vmull_high_n_u32): Likewise.
2975 (vmull_high_p8): Likewise.
2976 (vmull_high_s8): Likewise.
2977 (vmull_high_s16): Likewise.
2978 (vmull_high_s32): Likewise.
2979 (vmull_high_u8): Likewise.
2980 (vmull_high_u16): Likewise.
2981 (vmull_high_u32): Likewise.
2982 (vmull_n_s16): Likewise.
2983 (vmull_n_s32): Likewise.
2984 (vmull_n_u16): Likewise.
2985 (vmull_n_u32): Likewise.
2986 (vmull_p8): Likewise.
2987 (vmull_s8): Likewise.
2988 (vmull_s16): Likewise.
2989 (vmull_s32): Likewise.
2990 (vmull_u8): Likewise.
2991 (vmull_u16): Likewise.
2992 (vmull_u32): Likewise.
2993 (vpadal_s8): Likewise.
2994 (vpadal_s16): Likewise.
2995 (vpadal_s32): Likewise.
2996 (vpadal_u8): Likewise.
2997 (vpadal_u16): Likewise.
2998 (vpadal_u32): Likewise.
2999 (vpadalq_s8): Likewise.
3000 (vpadalq_s16): Likewise.
3001 (vpadalq_s32): Likewise.
3002 (vpadalq_u8): Likewise.
3003 (vpadalq_u16): Likewise.
3004 (vpadalq_u32): Likewise.
3005 (vpaddl_s8): Likewise.
3006 (vpaddl_s16): Likewise.
3007 (vpaddl_s32): Likewise.
3008 (vpaddl_u8): Likewise.
3009 (vpaddl_u16): Likewise.
3010 (vpaddl_u32): Likewise.
3011 (vpaddlq_s8): Likewise.
3012 (vpaddlq_s16): Likewise.
3013 (vpaddlq_s32): Likewise.
3014 (vpaddlq_u8): Likewise.
3015 (vpaddlq_u16): Likewise.
3016 (vpaddlq_u32): Likewise.
3017 (vpaddq_s8): Likewise.
3018 (vpaddq_s16): Likewise.
3019 (vpaddq_s32): Likewise.
3020 (vpaddq_s64): Likewise.
3021 (vpaddq_u8): Likewise.
3022 (vpaddq_u16): Likewise.
3023 (vpaddq_u32): Likewise.
3024 (vpaddq_u64): Likewise.
3025 (vqdmulh_n_s16): Likewise.
3026 (vqdmulh_n_s32): Likewise.
3027 (vqdmulhq_n_s16): Likewise.
3028 (vqdmulhq_n_s32): Likewise.
3029 (vqmovn_high_s16): Likewise.
3030 (vqmovn_high_s32): Likewise.
3031 (vqmovn_high_s64): Likewise.
3032 (vqmovn_high_u16): Likewise.
3033 (vqmovn_high_u32): Likewise.
3034 (vqmovn_high_u64): Likewise.
3035 (vqmovun_high_s16): Likewise.
3036 (vqmovun_high_s32): Likewise.
3037 (vqmovun_high_s64): Likewise.
3038 (vqrdmulh_n_s16): Likewise.
3039 (vqrdmulh_n_s32): Likewise.
3040 (vqrdmulhq_n_s16): Likewise.
3041 (vqrdmulhq_n_s32): Likewise.
3042 (vrsqrte_u32): Likewise.
3043 (vrsqrteq_u32): Likewise.
3044 (vtst_p8): Likewise.
3045 (vtst_p16): Likewise.
3046 (vtst_p64): Likewise.
3047 (vtstq_p8): Likewise.
3048 (vtstq_p16): Likewise.
3049 (vtstq_p64): Likewise.
3050 (vaddlv_s32): Likewise.
3051 (vaddlv_u32): Likewise.
3052 (vqtbl1_p8): Likewise.
3053 (vqtbl1_s8): Likewise.
3054 (vqtbl1_u8): Likewise.
3055 (vqtbl1q_p8): Likewise.
3056 (vqtbl1q_s8): Likewise.
3057 (vqtbl1q_u8): Likewise.
3058 (vqtbx1_s8): Likewise.
3059 (vqtbx1_u8): Likewise.
3060 (vqtbx1_p8): Likewise.
3061 (vqtbx1q_s8): Likewise.
3062 (vqtbx1q_u8): Likewise.
3063 (vqtbx1q_p8): Likewise.
3064 (vtbl1_s8): Likewise.
3065 (vtbl1_u8): Likewise.
3066 (vtbl1_p8): Likewise.
3067 (vtbl2_s8): Likewise.
3068 (vtbl2_u8): Likewise.
3069 (vtbl2_p8): Likewise.
3070 (vtbl3_s8): Likewise.
3071 (vtbl3_u8): Likewise.
3072 (vtbl3_p8): Likewise.
3073 (vtbl4_s8): Likewise.
3074 (vtbl4_u8): Likewise.
3075 (vtbl4_p8): Likewise.
3076 (vtbx2_s8): Likewise.
3077 (vtbx2_u8): Likewise.
3078 (vtbx2_p8): Likewise.
3079 (vld1_f32): Likewise.
3080 (vld1_f64): Likewise.
3081 (vld1_p8): Likewise.
3082 (vld1_p16): Likewise.
3083 (vld1_p64): Likewise.
3084 (vld1_s8): Likewise.
3085 (vld1_s16): Likewise.
3086 (vld1_s32): Likewise.
3087 (vld1_s64): Likewise.
3088 (vld1_u8): Likewise.
3089 (vld1_u16): Likewise.
3090 (vld1_u32): Likewise.
3091 (vld1_u64): Likewise.
3092 (vld1q_f32): Likewise.
3093 (vld1q_f64): Likewise.
3094 (vld1q_p8): Likewise.
3095 (vld1q_p16): Likewise.
3096 (vld1q_p64): Likewise.
3097 (vld1q_s8): Likewise.
3098 (vld1q_s16): Likewise.
3099 (vld1q_s32): Likewise.
3100 (vld1q_s64): Likewise.
3101 (vld1q_u8): Likewise.
3102 (vld1q_u16): Likewise.
3103 (vld1q_u32): Likewise.
3104 (vld1q_u64): Likewise.
3105 (vpmax_s8): Likewise.
3106 (vpmax_s16): Likewise.
3107 (vpmax_s32): Likewise.
3108 (vpmax_u8): Likewise.
3109 (vpmax_u16): Likewise.
3110 (vpmax_u32): Likewise.
3111 (vpmaxq_s8): Likewise.
3112 (vpmaxq_s16): Likewise.
3113 (vpmaxq_s32): Likewise.
3114 (vpmaxq_u8): Likewise.
3115 (vpmaxq_u16): Likewise.
3116 (vpmaxq_u32): Likewise.
3117 (vpmax_f32): Likewise.
3118 (vpmaxq_f32): Likewise.
3119 (vpmaxq_f64): Likewise.
3120 (vpmaxqd_f64): Likewise.
3121 (vpmaxs_f32): Likewise.
3122 (vpmaxnm_f32): Likewise.
3123 (vpmaxnmq_f32): Likewise.
3124 (vpmaxnmq_f64): Likewise.
3125 (vpmaxnmqd_f64): Likewise.
3126 (vpmaxnms_f32): Likewise.
3127 (vpmin_s8): Likewise.
3128 (vpmin_s16): Likewise.
3129 (vpmin_s32): Likewise.
3130 (vpmin_u8): Likewise.
3131 (vpmin_u16): Likewise.
3132 (vpmin_u32): Likewise.
3133 (vpminq_s8): Likewise.
3134 (vpminq_s16): Likewise.
3135 (vpminq_s32): Likewise.
3136 (vpminq_u8): Likewise.
3137 (vpminq_u16): Likewise.
3138 (vpminq_u32): Likewise.
3139 (vpmin_f32): Likewise.
3140 (vpminq_f32): Likewise.
3141 (vpminq_f64): Likewise.
3142 (vpminqd_f64): Likewise.
3143 (vpmins_f32): Likewise.
3144 (vpminnm_f32): Likewise.
3145 (vpminnmq_f32): Likewise.
3146 (vpminnmq_f64): Likewise.
3147 (vpminnmqd_f64): Likewise.
3148 (vpminnms_f32): Likewise.
3149 (vmla_f32): Likewise.
3150 (vmlaq_f32): Likewise.
3151 (vmlaq_f64): Likewise.
3152 (vmls_f32): Likewise.
3153 (vmlsq_f32): Likewise.
3154 (vmlsq_f64): Likewise.
3155 (vqtbl2_s8): Likewise.
3156 (vqtbl2_u8): Likewise.
3157 (vqtbl2_p8): Likewise.
3158 (vqtbl2q_s8): Likewise.
3159 (vqtbl2q_u8): Likewise.
3160 (vqtbl2q_p8): Likewise.
3161 (vqtbl3_s8): Likewise.
3162 (vqtbl3_u8): Likewise.
3163 (vqtbl3_p8): Likewise.
3164 (vqtbl3q_s8): Likewise.
3165 (vqtbl3q_u8): Likewise.
3166 (vqtbl3q_p8): Likewise.
3167 (vqtbl4_s8): Likewise.
3168 (vqtbl4_u8): Likewise.
3169 (vqtbl4_p8): Likewise.
3170 (vqtbl4q_s8): Likewise.
3171 (vqtbl4q_u8): Likewise.
3172 (vqtbl4q_p8): Likewise.
3173 (vqtbx2_s8): Likewise.
3174 (vqtbx2_u8): Likewise.
3175 (vqtbx2_p8): Likewise.
3176 (vqtbx2q_s8): Likewise.
3177 (vqtbx2q_u8): Likewise.
3178 (vqtbx2q_p8): Likewise.
3179 (vqtbx3_s8): Likewise.
3180 (vqtbx3_u8): Likewise.
3181 (vqtbx3_p8): Likewise.
3182 (vqtbx3q_s8): Likewise.
3183 (vqtbx3q_u8): Likewise.
3184 (vqtbx3q_p8): Likewise.
3185 (vqtbx4_s8): Likewise.
3186 (vqtbx4_u8): Likewise.
3187 (vqtbx4_p8): Likewise.
3188 (vqtbx4q_s8): Likewise.
3189 (vqtbx4q_u8): Likewise.
3190 (vqtbx4q_p8): Likewise.
3191 (vrev16_p8): Likewise.
3192 (vrev16_s8): Likewise.
3193 (vrev16_u8): Likewise.
3194 (vrev16q_p8): Likewise.
3195 (vrev16q_s8): Likewise.
3196 (vrev16q_u8): Likewise.
3197 (vrev32_p8): Likewise.
3198 (vrev32_p16): Likewise.
3199 (vrev32_s8): Likewise.
3200 (vrev32_s16): Likewise.
3201 (vrev32_u8): Likewise.
3202 (vrev32_u16): Likewise.
3203 (vrev32q_p8): Likewise.
3204 (vrev32q_p16): Likewise.
3205 (vrev32q_s8): Likewise.
3206 (vrev32q_s16): Likewise.
3207 (vrev32q_u8): Likewise.
3208 (vrev32q_u16): Likewise.
3209 (vrev64_f32): Likewise.
3210 (vrev64_p8): Likewise.
3211 (vrev64_p16): Likewise.
3212 (vrev64_s8): Likewise.
3213 (vrev64_s16): Likewise.
3214 (vrev64_s32): Likewise.
3215 (vrev64_u8): Likewise.
3216 (vrev64_u16): Likewise.
3217 (vrev64_u32): Likewise.
3218 (vrev64q_f32): Likewise.
3219 (vrev64q_p8): Likewise.
3220 (vrev64q_p16): Likewise.
3221 (vrev64q_s8): Likewise.
3222 (vrev64q_s16): Likewise.
3223 (vrev64q_s32): Likewise.
3224 (vrev64q_u8): Likewise.
3225 (vrev64q_u16): Likewise.
3226 (vrev64q_u32): Likewise.
3227 (vsha1cq_u32): Likewise.
3228 (vsha1mq_u32): Likewise.
3229 (vsha1pq_u32): Likewise.
3230 (vsha1h_u32): Likewise.
3231 (vsha1su0q_u32): Likewise.
3232 (vsha1su1q_u32): Likewise.
3233 (vsha256hq_u32): Likewise.
3234 (vsha256h2q_u32): Likewise.
3235 (vsha256su0q_u32): Likewise.
3236 (vsha256su1q_u32): Likewise.
3237 (vmull_p64): Likewise.
3238 (vmull_high_p64): Likewise.
3239 (vsqrt_f32): Likewise.
3240 (vsqrtq_f32): Likewise.
3241 (vsqrt_f64): Likewise.
3242 (vsqrtq_f64): Likewise.
3243 (vst1_f32): Likewise.
3244 (vst1_f64): Likewise.
3245 (vst1_p8): Likewise.
3246 (vst1_p16): Likewise.
3247 (vst1_p64): Likewise.
3248 (vst1_s8): Likewise.
3249 (vst1_s16): Likewise.
3250 (vst1_s32): Likewise.
3251 (vst1_s64): Likewise.
3252 (vst1_u8): Likewise.
3253 (vst1_u16): Likewise.
3254 (vst1_u32): Likewise.
3255 (vst1_u64): Likewise.
3256 (vst1q_f32): Likewise.
3257 (vst1q_f64): Likewise.
3258 (vst1q_p8): Likewise.
3259 (vst1q_p16): Likewise.
3260 (vst1q_p64): Likewise.
3261 (vst1q_s8): Likewise.
3262 (vst1q_s16): Likewise.
3263 (vst1q_s32): Likewise.
3264 (vst1q_s64): Likewise.
3265 (vst1q_u8): Likewise.
3266 (vst1q_u16): Likewise.
3267 (vst1q_u32): Likewise.
3268 (vst1q_u64): Likewise.
3269 (vst1_s64_x2): Likewise.
3270 (vst1_u64_x2): Likewise.
3271 (vst1_f64_x2): Likewise.
3272 (vst1_s8_x2): Likewise.
3273 (vst1_p8_x2): Likewise.
3274 (vst1_s16_x2): Likewise.
3275 (vst1_p16_x2): Likewise.
3276 (vst1_s32_x2): Likewise.
3277 (vst1_u8_x2): Likewise.
3278 (vst1_u16_x2): Likewise.
3279 (vst1_u32_x2): Likewise.
3280 (vst1_f16_x2): Likewise.
3281 (vst1_f32_x2): Likewise.
3282 (vst1_p64_x2): Likewise.
3283 (vst1q_s8_x2): Likewise.
3284 (vst1q_p8_x2): Likewise.
3285 (vst1q_s16_x2): Likewise.
3286 (vst1q_p16_x2): Likewise.
3287 (vst1q_s32_x2): Likewise.
3288 (vst1q_s64_x2): Likewise.
3289 (vst1q_u8_x2): Likewise.
3290 (vst1q_u16_x2): Likewise.
3291 (vst1q_u32_x2): Likewise.
3292 (vst1q_u64_x2): Likewise.
3293 (vst1q_f16_x2): Likewise.
3294 (vst1q_f32_x2): Likewise.
3295 (vst1q_f64_x2): Likewise.
3296 (vst1q_p64_x2): Likewise.
3297 (vst1_s64_x3): Likewise.
3298 (vst1_u64_x3): Likewise.
3299 (vst1_f64_x3): Likewise.
3300 (vst1_s8_x3): Likewise.
3301 (vst1_p8_x3): Likewise.
3302 (vst1_s16_x3): Likewise.
3303 (vst1_p16_x3): Likewise.
3304 (vst1_s32_x3): Likewise.
3305 (vst1_u8_x3): Likewise.
3306 (vst1_u16_x3): Likewise.
3307 (vst1_u32_x3): Likewise.
3308 (vst1_f16_x3): Likewise.
3309 (vst1_f32_x3): Likewise.
3310 (vst1_p64_x3): Likewise.
3311 (vst1q_s8_x3): Likewise.
3312 (vst1q_p8_x3): Likewise.
3313 (vst1q_s16_x3): Likewise.
3314 (vst1q_p16_x3): Likewise.
3315 (vst1q_s32_x3): Likewise.
3316 (vst1q_s64_x3): Likewise.
3317 (vst1q_u8_x3): Likewise.
3318 (vst1q_u16_x3): Likewise.
3319 (vst1q_u32_x3): Likewise.
3320 (vst1q_u64_x3): Likewise.
3321 (vst1q_f16_x3): Likewise.
3322 (vst1q_f32_x3): Likewise.
3323 (vst1q_f64_x3): Likewise.
3324 (vst1q_p64_x3): Likewise.
3325 (vst2_s64): Likewise.
3326 (vst2_u64): Likewise.
3327 (vst2_f64): Likewise.
3328 (vst2_s8): Likewise.
3329 (vst2_p8): Likewise.
3330 (vst2_s16): Likewise.
3331 (vst2_p16): Likewise.
3332 (vst2_s32): Likewise.
3333 (vst2_u8): Likewise.
3334 (vst2_u16): Likewise.
3335 (vst2_u32): Likewise.
3336 (vst2_f16): Likewise.
3337 (vst2_f32): Likewise.
3338 (vst2_p64): Likewise.
3339 (vst2q_s8): Likewise.
3340 (vst2q_p8): Likewise.
3341 (vst2q_s16): Likewise.
3342 (vst2q_p16): Likewise.
3343 (vst2q_s32): Likewise.
3344 (vst2q_s64): Likewise.
3345 (vst2q_u8): Likewise.
3346 (vst2q_u16): Likewise.
3347 (vst2q_u32): Likewise.
3348 (vst2q_u64): Likewise.
3349 (vst2q_f16): Likewise.
3350 (vst2q_f32): Likewise.
3351 (vst2q_f64): Likewise.
3352 (vst2q_p64): Likewise.
3353 (vst3_s64): Likewise.
3354 (vst3_u64): Likewise.
3355 (vst3_f64): Likewise.
3356 (vst3_s8): Likewise.
3357 (vst3_p8): Likewise.
3358 (vst3_s16): Likewise.
3359 (vst3_p16): Likewise.
3360 (vst3_s32): Likewise.
3361 (vst3_u8): Likewise.
3362 (vst3_u16): Likewise.
3363 (vst3_u32): Likewise.
3364 (vst3_f16): Likewise.
3365 (vst3_f32): Likewise.
3366 (vst3_p64): Likewise.
3367 (vst3q_s8): Likewise.
3368 (vst3q_p8): Likewise.
3369 (vst3q_s16): Likewise.
3370 (vst3q_p16): Likewise.
3371 (vst3q_s32): Likewise.
3372 (vst3q_s64): Likewise.
3373 (vst3q_u8): Likewise.
3374 (vst3q_u16): Likewise.
3375 (vst3q_u32): Likewise.
3376 (vst3q_u64): Likewise.
3377 (vst3q_f16): Likewise.
3378 (vst3q_f32): Likewise.
3379 (vst3q_f64): Likewise.
3380 (vst3q_p64): Likewise.
3381 (vst4_s64): Likewise.
3382 (vst4_u64): Likewise.
3383 (vst4_f64): Likewise.
3384 (vst4_s8): Likewise.
3385 (vst4_p8): Likewise.
3386 (vst4_s16): Likewise.
3387 (vst4_p16): Likewise.
3388 (vst4_s32): Likewise.
3389 (vst4_u8): Likewise.
3390 (vst4_u16): Likewise.
3391 (vst4_u32): Likewise.
3392 (vst4_f16): Likewise.
3393 (vst4_f32): Likewise.
3394 (vst4_p64): Likewise.
3395 (vst4q_s8): Likewise.
3396 (vst4q_p8): Likewise.
3397 (vst4q_s16): Likewise.
3398 (vst4q_p16): Likewise.
3399 (vst4q_s32): Likewise.
3400 (vst4q_s64): Likewise.
3401 (vst4q_u8): Likewise.
3402 (vst4q_u16): Likewise.
3403 (vst4q_u32): Likewise.
3404 (vst4q_u64): Likewise.
3405 (vst4q_f16): Likewise.
3406 (vst4q_f32): Likewise.
3407 (vst4q_f64): Likewise.
3408 (vst4q_p64): Likewise.
3409 (vtbx4_s8): Likewise.
3410 (vtbx4_u8): Likewise.
3411 (vtbx4_p8): Likewise.
3412 (vtrn_f32): Likewise.
3413 (vtrn_p8): Likewise.
3414 (vtrn_p16): Likewise.
3415 (vtrn_s8): Likewise.
3416 (vtrn_s16): Likewise.
3417 (vtrn_s32): Likewise.
3418 (vtrn_u8): Likewise.
3419 (vtrn_u16): Likewise.
3420 (vtrn_u32): Likewise.
3421 (vtrnq_f32): Likewise.
3422 (vtrnq_p8): Likewise.
3423 (vtrnq_p16): Likewise.
3424 (vtrnq_s8): Likewise.
3425 (vtrnq_s16): Likewise.
3426 (vtrnq_s32): Likewise.
3427 (vtrnq_u8): Likewise.
3428 (vtrnq_u16): Likewise.
3429 (vtrnq_u32): Likewise.
3430 (vrsqrte_f16): Likewise.
3431 (vrsqrteq_f16): Likewise.
3432 (vsqrt_f16): Likewise.
3433 (vsqrtq_f16): Likewise.
3434 (vabd_f16): Likewise.
3435 (vabdq_f16): Likewise.
3436 (vpadd_f16): Likewise.
3437 (vpaddq_f16): Likewise.
3438 (vpmax_f16): Likewise.
3439 (vpmaxq_f16): Likewise.
3440 (vpmaxnm_f16): Likewise.
3441 (vpmaxnmq_f16): Likewise.
3442 (vpmin_f16): Likewise.
3443 (vpminq_f16): Likewise.
3444 (vpminnm_f16): Likewise.
3445 (vpminnmq_f16): Likewise.
3446 (vrsqrts_f16): Likewise.
3447 (vrsqrtsq_f16): Likewise.
3448
3449 2019-09-25 Richard Biener <rguenther@suse.de>
3450
3451 PR tree-optimization/91896
3452 * tree-vect-loop.c (vectorizable_reduction): The single
3453 def-use cycle optimization cannot apply when there's more
3454 than one pattern stmt involved.
3455
3456 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3457
3458 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3459 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3460 (reload_macho_picbase_<mode>): Likewise.
3461
3462 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3463
3464 * config/rs6000/rs6000.md: Move darwin.md include until
3465 after the definition of the mode iterators.
3466
3467 2019-09-23 Martin Sebor <msebor@redhat.com>
3468
3469 PR tree-optimization/91570
3470 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3471 non-constant minlen, maxlen and maxbound.
3472
3473 2019-09-24 Richard Biener <rguenther@suse.de>
3474
3475 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3476 Rename to...
3477 (_stmt_vec_info::cond_reduc_code): ... this.
3478 (_stmt_vec_info::induc_cond_initial_val): Add.
3479 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3480 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3481 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3482 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3483 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3484 the reduction code.
3485 (vect_create_epilog_for_reduction): Drop special
3486 induction condition reduction params, pass in reduction code
3487 and simplify.
3488 (vectorizable_reduction): Perform condition reduction kind
3489 selection only at analysis time. Adjust passing on state.
3490
3491 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3492
3493 * config/aarch64/aarch64.md (mov<mode>): Don't call
3494 aarch64_split_dimode_const_store on volatile MEM.
3495
3496 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3497
3498 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3499 Update hwcap string for fp16fml.
3500
3501 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3502
3503 PR middle-end/91866
3504 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3505 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3506
3507 2019-09-24 Martin Liska <mliska@suse.cz>
3508
3509 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3510 instead of if-elseif-elseif-...
3511 * gimple-expr.c (extract_ops_from_tree): Likewise.
3512 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3513 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3514
3515 2019-09-24 Martin Jambor <mjambor@suse.cz>
3516
3517 PR ipa/91831
3518 * ipa-param-manipulation.c (carry_over_param): Make a method of
3519 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3520 in case of a context mismatch.
3521 (ipa_param_body_adjustments::common_initialization): Adjust call to
3522 carry_over_param.
3523 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3524 private method carry_over_param.
3525
3526 2019-09-24 Martin Jambor <mjambor@suse.cz>
3527
3528 PR ipa/91832
3529 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3530
3531 2019-09-24 Richard Biener <rguenther@suse.de>
3532
3533 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3534 base.
3535
3536 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3537
3538 * config/arm/t-arm (arm-builtins.o): Add dependency on
3539 arm_acle_builtins.def.
3540
3541 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3542
3543 PR target/91823
3544 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3545 canonical CONST_INTs. Use gen_rtvec.
3546
3547 2019-09-23 Richard Biener <rguenther@suse.de>
3548
3549 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3550 avoid adjusting by + 0 or * 1.
3551 (vect_create_epilog_for_reduction): Get reduction code only
3552 when necessary. Deal with adjustment_def only when necessary.
3553
3554 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3555
3556 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3557 memmodel index.
3558
3559 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3560
3561 PR ipa/91835
3562 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3563 "ipa-sra".
3564
3565 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3566
3567 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3568 code. Merge code blocks with common conditionals. Use declared
3569 macro instead of a magic number for PIC level.
3570
3571 2019-09-21 Martin Sebor <msebor@redhat.com>
3572
3573 PR middle-end/91830
3574 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3575 Simplify computation of the offset of the referenced subobject.
3576
3577 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3578
3579 * config/darwin.c (machopic_legitimize_pic_address): Check
3580 for lra not reload.
3581
3582 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3583
3584 * ira-conflicts.c (can_use_same_reg_p): New function.
3585 (process_reg_shuffles): Take an insn parameter. Ignore cases
3586 in which input operand op_num could seemingly never be allocated
3587 to the same register as the destination.
3588 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3589
3590 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3591
3592 * simplify-rtx.c (neg_const_int): Replace with...
3593 (neg_poly_int_rtx): ...this new function.
3594 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3595 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3596 (simplify_plus_minus): Likewise for constant terms here.
3597
3598 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3599
3600 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3601 HOST_WIDE_PRINT_UNSIGNED.
3602
3603 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3604
3605 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3606 character.
3607
3608 2019-09-20 Maya Rashish <coypu@sdf.org>
3609
3610 PR target/86811
3611 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3612 Define to speculation_safe_value_not_needed.
3613
3614 2019-09-20 Richard Biener <rguenther@suse.de>
3615 Uros Bizjak <ubizjak@gmail.com>
3616
3617 PR target/91814
3618 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3619 previous change.
3620 (general_scalar_chain::convert_op): Force not suitable memory
3621 operands to a register.
3622
3623 2019-09-20 Richard Biener <rguenther@suse.de>
3624
3625 PR tree-optimization/91821
3626 * tree-vect-loop.c (check_reduction_path): Check we can compute
3627 reduc_idx.
3628 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3629 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3630 operands in canonical order.
3631 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3632 STMT_VINFO_REDUC_IDX.
3633 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3634 (STMT_VINFO_REDUC_IDX): Likewise.
3635
3636 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3637
3638 PR target/91269
3639 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3640
3641 2019-09-20 Richard Biener <rguenther@suse.de>
3642
3643 PR tree-optimization/91822
3644 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3645 parameter.
3646 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3647 for reduc_index in nested cycles, adjust vectorizable_condition
3648 calls.
3649 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3650 parameter.
3651 (vect_analyze_stmt): Adjust.
3652 (vect_transform_stmt): Likewise.
3653
3654 2019-09-20 Richard Biener <rguenther@suse.de>
3655
3656 PR target/91767
3657 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3658 Ensure there's a sequence point between allocating the new register
3659 and passing a reference to a reg via regno_reg_rtx.
3660
3661 2019-09-20 Martin Jambor <mjambor@suse.cz>
3662
3663 * coretypes.h (cgraph_edge): Declare.
3664 * ipa-param-manipulation.c: Rewrite.
3665 * ipa-param-manipulation.h: Likewise.
3666 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3667 (OBJS): Added ipa-sra.o.
3668 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3669 and ref_p, added fields param_adjustments and performed_splits.
3670 (struct cgraph_clone_info): Remove ags_to_skip and
3671 combined_args_to_skip, new field param_adjustments.
3672 (cgraph_node::create_clone): Changed parameters to use
3673 ipa_param_adjustments.
3674 (cgraph_node::create_virtual_clone): Likewise.
3675 (cgraph_node::create_virtual_clone_with_body): Likewise.
3676 (tree_function_versioning): Likewise.
3677 (cgraph_build_function_type_skip_args): Removed.
3678 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3679 using ipa_param_adjustments.
3680 (clone_of_p): Likewise.
3681 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3682 (build_function_decl_skip_args): Likewise.
3683 (duplicate_thunk_for_node): Adjust parameters using
3684 ipa_param_body_adjustments, copy param_adjustments instead of
3685 args_to_skip.
3686 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3687 (cgraph_node::create_virtual_clone): Likewise.
3688 (cgraph_node::create_version_clone_with_body): Likewise.
3689 (cgraph_materialize_clone): Likewise.
3690 (symbol_table::materialize_all_clones): Likewise.
3691 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3692 ipa_replace_map check.
3693 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3694 (initialize_node_lattices): Make aware that some parameters might have
3695 already been removed.
3696 (want_remove_some_param_p): New function.
3697 (create_specialized_node): Convert to using ipa_param_adjustments and
3698 deal with possibly pre-existing adjustments.
3699 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3700 (output_node_opt_summary): Do not stream removed fields. Stream
3701 parameter adjustments instead of argumetns to skip.
3702 (input_node_opt_summary): Likewise.
3703 (input_node_opt_summary): Likewise.
3704 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3705 * lto-streamer.h (lto_section_type): Likewise.
3706 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3707 param_body_adjs.
3708 (copy_decl_to_var): Declare.
3709 * tree-inline.c (update_clone_info): Do not remap old_tree.
3710 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3711 statements, walk all extra generated statements and remap their
3712 operands.
3713 (redirect_all_calls): Add killed SSA names to a hash set.
3714 (remap_ssa_name): Do not remap killed SSA names.
3715 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3716 half of functionality moved to ipa_param_body_adjustments.
3717 (copy_decl_to_var): Make exported.
3718 (copy_body): Destroy killed_new_ssa_names hash set.
3719 (expand_call_inline): Remap performed splits.
3720 (update_clone_info): Likewise.
3721 (tree_function_versioning): Simplify tree_map processing. Updated to
3722 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3723 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3724 for the new interface.
3725 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3726 (simd_clone_compute_base_data_type): Likewise.
3727 (simd_clone_init_simd_arrays): Adjust for the new interface.
3728 (simd_clone_adjust_argument_types): Likewise.
3729 (struct modify_stmt_info): Likewise.
3730 (ipa_simd_modify_stmt_ops): Likewise.
3731 (ipa_simd_modify_function_body): Likewise.
3732 (simd_clone_adjust): Likewise.
3733 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3734 (type_internals_preclude_sra_p): Make public.
3735 * tree-sra.h: New file.
3736 * ipa-inline-transform.c (save_inline_function_body): Update to
3737 refelct new tree_function_versioning signature.
3738 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3739 ipa_param_adjustments to get current parameter indices.
3740 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3741 (ipcp_update_bits): Likewise.
3742 (ipcp_update_vr): Likewise.
3743 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3744 * ipa-sra.c: New file.
3745 * multiple_target.c (create_target_clone): Update to reflet new type
3746 of create_version_clone_with_body.
3747 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3748 tree_function_versioning.
3749 (modify_function): Update to reflect new type of
3750 tree_function_versioning.
3751 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3752 * passes.def: Remove old IPA-SRA and add new one.
3753 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3754 (make_pass_ipa_sra): Declare.
3755 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3756 ipa_sra_retvalues.
3757 * doc/invoke.texi (ipa-sra-max-replacements): New.
3758
3759 2019-09-19 Martin Sebor <msebor@redhat.com>
3760
3761 PR middle-end/91631
3762 * builtins.c (component_size): Correct trailing array computation,
3763 rename to component_ref_size and move...
3764 (compute_objsize): Adjust.
3765 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3766 (builtin_access::strict): Do not consider memmove.
3767 (builtin_access::write_off): New function.
3768 (builtin_memref::builtin_memref): Initialize refsize.
3769 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3770 refsize.
3771 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3772 Handle refsize.
3773 (builtin_access::builtin_access): Initialize dstoff to destination
3774 refeence offset here instead of in maybe_diag_overlap. Adjust
3775 referencess even to unrelated objects. Adjust sizrange of bounded
3776 string functions to reflect bound. For strcat, adjust destination
3777 sizrange by that of source.
3778 (builtin_access::strcat_overlap): Adjust offsets and sizes
3779 to reflect the increase in destination sizrange above.
3780 (builtin_access::overlap): Do not set dstoff here but instead
3781 in builtin_access::builtin_access.
3782 (check_bounds_or_overlap): Use builtin_access::write_off.
3783 (maybe_diag_access_bounds): Add argument. Add informational notes.
3784 (dump_builtin_memref, dump_builtin_access): New functions.
3785 * tree.c (component_ref_size): ...to here.
3786 * tree.h (component_ref_size): Declare.
3787 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3788 nul in the size of the source string.
3789
3790 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3791
3792 PR c/67224
3793 * doc/cpp.texi: Document support for extended characters in
3794 identifiers.
3795 * doc/cppopts.texi: Likewise.
3796
3797 2019-09-19 Richard Biener <rguenther@suse.de>
3798
3799 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3800 (check_reduction_path): New overload having the path as result.
3801 (vect_is_simple_reduction): From the detected reduction
3802 path build a SLP reduction chain if possible.
3803
3804 2019-09-19 Richard Biener <rguenther@suse.de>
3805
3806 PR target/91814
3807 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3808 Force operand to a register if it isn't nonimmediate_operand.
3809
3810 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3811
3812 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3813 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3814 (logical_op): Remove code attribute.
3815 (logical_OP): Likewise.
3816
3817 2019-09-19 Martin Liska <mliska@suse.cz>
3818
3819 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3820 Use proper casting.
3821
3822 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3823
3824 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3825 registers with %R.
3826
3827 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3828 for NE comparison of TImode values.
3829 (aarch64_emit_load_exclusive): Add support for TImode.
3830 (aarch64_emit_store_exclusive): Likewise.
3831 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3832 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3833 Change iterator from ALLI to ALLI_TI.
3834 (@atomic_compare_and_swap<JUST_TI>): New.
3835 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3836 (aarch64_load_exclusive_pair): New.
3837 (aarch64_store_exclusive_pair): New.
3838 * config/aarch64/iterators.md (JUST_TI): New.
3839
3840 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3841 strong_zero_p for aarch64_track_speculation; unify some code paths;
3842 use aarch64_gen_compare_reg instead of open-coding.
3843
3844 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3845 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3846 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3847 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3848 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3849 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3850 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3851 (atomic_<atomic_op><ALLI>): Likewise.
3852 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3853 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3854 * doc/invoke.texi: Document -moutline-atomics.
3855
3856 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3857
3858 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3859 trivial predicate for condition branch.
3860 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3861 for switch case.
3862 (compute_bb_predicates): Update predicate based on post-dominating
3863 relationship.
3864 (analyze_function_body): Calculate post-dominating information.
3865
3866 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3867
3868 * tree-vectorizer.h (vectorizable_condition): Take an int
3869 reduction index instead of a boolean flag.
3870 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3871 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3872 reductions if the reduction accumulator is the "then" rather
3873 than the "else" value.
3874 (vect_analyze_stmt): Update call accordingly.
3875 (vect_transform_stmt): Likewise.
3876 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3877 asserting that the index is > 0.
3878
3879 2019-09-19 Martin Liska <mliska@suse.cz>
3880
3881 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3882 (sort_congruence_classes_by_decl_uid): Likewise.
3883 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3884 easier sorting.
3885 (sem_item_optimizer::merge_classes): Likewise.
3886
3887 2019-09-19 Richard Biener <rguenther@suse.de>
3888
3889 PR tree-optimization/91812
3890 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3891 volatile loads.
3892
3893 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3894
3895 * defaults.h (TARGET_UNIT): New macro.
3896 (target_unit): New type.
3897 * rtl.h (native_encode_rtx, native_decode_rtx)
3898 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3899 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3900 * rtlanal.c (subreg_lsb_1): Delete.
3901 (subreg_size_lsb): New function.
3902 * simplify-rtx.c: Include rtx-vector-builder.h
3903 (simplify_immed_subreg): Delete.
3904 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3905 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3906 functions.
3907 (simplify_subreg): Use them.
3908 (test_vector_subregs_modes, test_vector_subregs_repeating)
3909 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3910 (test_vector_subregs): New functions.
3911 (test_vector_ops): Call test_vector_subregs for integer vector
3912 modes with at least 2 elements.
3913
3914 2019-09-19 Richard Biener <rguenther@suse.de>
3915
3916 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3917 LOOP_VINFO_OPERANDS_SWAPPED.
3918 (parloops_is_simple_reduction): Likewise.
3919 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3920 initialize operands_swapped.
3921 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3922 (vect_is_slp_reduction): Do not swap operands.
3923 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3924 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3925
3926 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3927
3928 PR target/87007
3929 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3930 Add avx_partial_xmm_update.
3931
3932 2019-09-18 Jim Wilson <jimw@sifive.com>
3933
3934 PR target/91683
3935 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3936 (riscv_move_integer): Likewise.
3937 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3938 riscv_move_integer arg.
3939 (riscv_legitimize_move): Likewise.
3940 (riscv_force_temporary): New parameter in_splitter. Don't call
3941 force_reg if true.
3942 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3943 arg.
3944 (riscv_add_offset): Likewise.
3945 (riscv_split_symbol): New parameter in_splitter. Pass to
3946 riscv_force_temporary.
3947 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3948 arg.
3949 (riscv_move_integer): New parameter in_splitter. New local
3950 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3951 in_splitter TRUE.
3952 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3953 riscv_split_symbol, and riscv_force_temporary args.
3954 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3955 riscv_move_integer arg.
3956 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3957
3958 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 PR target/90878
3961 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3962 hard register store cost to 6.
3963
3964 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3965
3966 PR target/91446
3967 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3968 pseudo register store cost from 3 to 6 to make it the same as
3969 QImode and HImode.
3970
3971 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3972
3973 PR target/91738
3974 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3975 (one_cmpldi2): Likewise.
3976 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3977 of the constant parts is simple.
3978 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3979 (logical_op): Add new code attribute.
3980 (logical_OP): Likewise.
3981 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3982 (arm_iordi_operand): Add predicate.
3983 (arm_xordi_operand): Add predicate.
3984
3985 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3986
3987 * config/arm/arm.md (maddsidi4): Remove expander.
3988 (mulsidi3adddi): Remove pattern.
3989 (mulsidi3adddi_v6): Likewise.
3990 (mulsidi3_nov6): Likewise.
3991 (mulsidi3_v6): Likewise.
3992 (umulsidi3): Remove expander.
3993 (umulsidi3_nov6): Remove pattern.
3994 (umulsidi3_v6): Likewise.
3995 (umulsidi3adddi): Likewise.
3996 (umulsidi3adddi_v6): Likewise.
3997 (<Us>mulsidi3): Add combined expander.
3998 (<Us>maddsidi4): Likewise.
3999 (<US>mull): Add combined umull and smull pattern.
4000 (<US>mlal): Likewise.
4001 * config/arm/iterators.md (Us): Add new iterator.
4002
4003 2019-09-18 Richard Biener <rguenther@suse.de>
4004
4005 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4006 swapping.
4007 (vectorize_fold_left_reduction): Remove assert.
4008 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4009 operand in position 2. Remove assert.
4010
4011 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4012
4013 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4014 (smulsi3_highpart_nov6): Remove pattern.
4015 (smulsi3_highpart_v6): Likewise.
4016 (umulsi3_highpart): Likewise.
4017 (umulsi3_highpart_nov6): Likewise.
4018 (umulsi3_highpart_v6): Likewise.
4019 (<US>mull_high): Add new combined multiply pattern.
4020
4021 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4022
4023 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4024 (arm_mulsi3_v6): Likewise.
4025 (mulsi3addsi_v6): Likewise.
4026 (mulsi3subsi): Likewise.
4027 (mul): Add new multiply pattern.
4028 (mla): Likewise.
4029 (mls): Likewise.
4030
4031 2019-09-18 Richard Biener <rguenther@suse.de>
4032
4033 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4034 (parloops_valid_reduction_input_p): Copy from
4035 valid_reduction_input_p.
4036 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4037 (parloops_needs_fold_left_reduction_p): Copy from
4038 needs_fold_left_reduction_p.
4039 (parloops_is_simple_reduction): Copy from
4040 vect_is_simple_reduction.
4041 (parloops_force_simple_reduction): Copy from
4042 vect_force_simple_reduction.
4043 (gather_scalar_reductions): Adjust.
4044 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4045 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4046
4047 2019-09-18 Richard Biener <rguenther@suse.de>
4048
4049 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4050 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4051 static.
4052 (vect_create_epilog_for_reduction): Remove dead code.
4053
4054 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4055
4056 * varasm.c (assemble_real): Generate canonical const_ints.
4057
4058 2019-09-18 Richard Biener <rguenther@suse.de>
4059
4060 PR lto/91763
4061 * lto-streamer-in.c (input_eh_regions): Move EH init to
4062 lto_materialize_function.
4063 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4064 Likewise.
4065
4066 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4067
4068 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4069 are INTEGER_CSTs.
4070
4071 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4072
4073 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4074 of checking specifically for INTEGER_CST.
4075
4076 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4077
4078 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4079 sizes instead of uhwi sizes.
4080
4081 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4082
4083 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4084 (add_const_value_attribute): Handle CONST_POLY_INT.
4085
4086 2019-09-18 Martin Liska <mliska@suse.cz>
4087
4088 * dbgcnt.def (store_merging): New counter.
4089 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4090 Use it in store merging.
4091
4092 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4093
4094 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4095 function.
4096 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4097 * config/arm/arm.c (arm_sched_variable_issue): New function.
4098 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4099
4100 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4101
4102 * config/arm/types.md (no_reservation): New reservation.
4103 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4104 no_insn here.
4105 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4106 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4107 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4108 * config/arm/arm1020e.md (1020alu_op): Likewise.
4109 * config/arm/arm1026ejs.md (alu_op): Likewise.
4110 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4111 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4112 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4113 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4114 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4115 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4116 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4117 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4118 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4119 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4120 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4121 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4122 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4123 * config/arm/fa526.md (526_alu_op): Likewise.
4124 * config/arm/fa606te.md (606te_alu_op): Likewise.
4125 * config/arm/fa626te.md (626te_alu_op): Likewise.
4126 * config/arm/fa726te.md (726te_alu_op): Likewise.
4127 * config/arm/xgene1.md (xgene1_nop): Likewise.
4128
4129 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4130
4131 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4132 "no_insn" to "branch".
4133
4134 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4135
4136 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4137
4138 2019-09-17 Richard Biener <rguenther@suse.de>
4139
4140 PR debug/91772
4141 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4142 was missing generate locations only once.
4143
4144 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4145
4146 PR ipa/91089
4147 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4148 option.
4149 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4150 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4151 for switch default case using range analysis information.
4152
4153 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4154
4155 PR target/91749
4156 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4157 mode attributed is supported by FDPIC.
4158
4159 2019-09-17 Richard Biener <rguenther@suse.de>
4160
4161 PR tree-optimization/91790
4162 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4163 use the correct DR for setting up realignment.
4164
4165 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4166
4167 PR target/91719
4168 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4169 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4170 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4171 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4172
4173 2019-09-16 Jason Merrill <jason@redhat.com>
4174
4175 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4176
4177 2019-09-16 Martin Liska <mliska@suse.cz>
4178
4179 * gimple-fold.c (or_comparisons_1): Remove rules moved
4180 to ...
4181 * match.pd: ... here.
4182
4183 2019-09-16 Martin Liska <mliska@suse.cz>
4184
4185 * gimple-fold.c (or_comparisons_1): Remove rules
4186 moved to ...
4187 * match.pd: ... here.
4188
4189 2019-09-16 Martin Liska <mliska@suse.cz>
4190
4191 * genmatch.c (dt_node::append_simplify): Do not print
4192 warning when we have duplicate patterns belonging
4193 to a same simplify rule.
4194 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4195 (maybe_fold_comparisons_from_match_pd): Handle
4196 tcc_comparison as a results.
4197 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4198
4199 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4200 Qi Feng <ffengqi@linux.ibm.com>
4201
4202 PR middle-end/88784
4203 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4204 (x > y && x == XXX_MIN): Optimize into 'false'.
4205 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4206 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4207 (x < y && x == XXX_MAX): Optimize into 'false'.
4208 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4209 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4210 (x <= y || x != XXX_MIN): Optimize into 'true'.
4211 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4212 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4213 (x >= y || x != XXX_MAX): Optimize into 'true'.
4214 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4215
4216 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4217 Martin Liska <mliska@suse.cz>
4218
4219 * gimple-fold.c (and_comparisons_1): Add type as first
4220 argument.
4221 (and_var_with_comparison): Likewise.
4222 (and_var_with_comparison_1): Likewise.
4223 (or_comparisons_1): Likewise.
4224 (or_var_with_comparison): Likewise.
4225 (or_var_with_comparison_1): Likewise.
4226 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4227 (maybe_fold_or_comparisons): Likewise.
4228 (maybe_fold_comparisons_from_match_pd): New.
4229 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4230 (maybe_fold_or_comparisons): Likewise.
4231 * gimple.c (gimple_size): Make it public and add num_ops argument.
4232 (gimple_init): New function.
4233 (gimple_alloc): Call gimple_init.
4234 * gimple.h (gimple_size): New.
4235 (gimple_init): Likewise.
4236 * tree-if-conv.c (fold_or_predicates): Pass type.
4237 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4238 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4239 (optimize_vec_cond_expr): Likewise.
4240 (ovce_extract_ops): Return type of conditional expression.
4241 * tree-ssanames.c (init_ssa_name_imm_use): New.
4242 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4243 * tree-ssanames.h (init_ssa_name_imm_use): New.
4244
4245 2019-09-16 Richard Biener <rguenther@suse.de>
4246
4247 PR tree-optimization/91756
4248 PR tree-optimization/87132
4249 * tree-ssa-alias.h (enum translate_flags): New.
4250 (get_continuation_for_phi): Use it instead of simple bool flag.
4251 (walk_non_aliased_vuses): Likewise.
4252 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4253 (get_continuation_for_phi): When looking across backedges only
4254 disallow valueization.
4255 (walk_non_aliased_vuses): Adjust.
4256 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4257 if requested.
4258
4259 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4260
4261 PR middle-end/80791
4262 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4263 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4264 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4265 * target.def (have_count_reg_decr_p): New hook.
4266 (doloop_cost_for_generic): Likewise.
4267 (doloop_cost_for_address): Likewise.
4268 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4269 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4270 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4271 * doc/tm.texi: Regenerate.
4272 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4273 addend.
4274 (record_group): Init doloop_p.
4275 (add_candidate_1): Add optional argument doloop, change the handlings
4276 accordingly.
4277 (add_candidate): Likewise.
4278 (generic_predict_doloop_p): Update attribute.
4279 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4280 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4281 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4282 MIN_EXPR.
4283 (get_computation_cost): Update for doloop IV cand extra cost.
4284 (determine_group_iv_cost_cond): Update for doloop IV cand.
4285 (determine_iv_cost): Likewise.
4286 (ivopts_estimate_reg_pressure): Likewise.
4287 (may_eliminate_iv): Update handlings for doloop IV cand.
4288 (add_iv_candidate_for_doloop): New function.
4289 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4290 (iv_ca_set_no_cp): Update for doloop IV cand.
4291 (iv_ca_set_cp): Likewise.
4292 (iv_ca_dump): Dump register cost.
4293 (find_doloop_use): New function.
4294 (analyze_and_mark_doloop_use): Likewise.
4295 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4296
4297 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4298
4299 PR middle-end/91708
4300 * cse.c (cse_insn): Do not replace anything with a
4301 MEM.
4302
4303 2019-09-13 Ian Lance Taylor <iant@golang.org>
4304
4305 * doc/invoke.texi (Optimize Options): Fix typo.
4306
4307 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4308
4309 PR tree-optimization/89386
4310 * config/i386/sse.md (smulhrs<mode>3): New expander.
4311 (smulhrsv4hi3): Ditto.
4312
4313 2019-09-12 Richard Biener <rguenther@suse.de>
4314
4315 PR tree-optimization/91750
4316 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4317 in the type of the evolution.
4318
4319 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4320
4321 PR tree-optimization/89386
4322 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4323 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4324 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4325 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4326 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4327 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4328 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4329 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4330 (su, r): Handle the unspecs above.
4331 (bt): New int attribute.
4332 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4333 * internal-fn.c (first_commutative_argument): Commutativity info for
4334 above.
4335 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4336 (umulhrs_optab): New optabs.
4337 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4338 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4339 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4340 function.
4341 (vect_vect_recog_func_ptrs): Add it.
4342
4343 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4344
4345 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4346 code.
4347
4348 2019-09-11 Nathan Sidwell <nathan@acm.org>
4349
4350 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4351 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4352
4353 2019-09-11 Richard Biener <rguenther@suse.de>
4354
4355 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4356 * lto-wrapper.c (merge_and_complain): Pick up -g.
4357 (append_compiler_options): Likewise.
4358 (run_gcc): Re-instantiate handling -g0 at link-time.
4359 * doc/invoke.texi (flto): Document debug info generation.
4360
4361 2019-09-11 Richard Biener <rguenther@suse.de>
4362
4363 PR tree-optimization/90387
4364 * vr-values.c (vr_values::extract_range_basic): After inlining
4365 simplify non-constant __builtin_constant_p to false.
4366
4367 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4368
4369 PR rtl-optimization/89795
4370 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4371 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4372
4373 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4374
4375 PR tree-optimization/91723
4376 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4377 instead of pointer equality when checking if argument vectypes are
4378 the same.
4379
4380 PR middle-end/91725
4381 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4382 of get_nonzero_bits, only call it for integral types.
4383
4384 2019-09-11 Richard Biener <rguenther@suse.de>
4385
4386 Revert
4387 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4388
4389 * match.pd: Add flag_unsafe_math_optimizations check
4390 before deciding on the widest type in a binary math operation.
4391
4392 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4393
4394 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4395 and CALL_REALLY_USED_REGISTERS must be defined, and that
4396 CALL_REALLY_USED_REGISTERS is preferred.
4397 * doc/tm.texi: Regenerate.
4398 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4399 (call_really_used_regs): Likewise.
4400 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4401 CALL_REALLY_USED_REGISTERS are defined.
4402 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4403 initial value if defined.
4404 (initial_call_really_used_regs): Delete.
4405 (saved_call_really_used_regs): Likewise.
4406 (CALL_REALLY_USED_REGNO_P): Likewise.
4407 (init_reg_sets): Remove handling of call_really_used_regs.
4408 (save_register_info, restore_register_info, globalize_reg): Likewise.
4409 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4410 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4411 outside operand_reg_set.
4412 (fix_register): Don't change call_used_regs if
4413 CALL_REALLY_USED_REGISTERS is defined.
4414 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4415 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4416 instead of call_really_used_regs.
4417 (csky_conditional_register_usage): Remove the old handling of
4418 call_used_regs and change the handling of call_really_used_regs
4419 to use call_used_regs instead.
4420 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4421 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4422 making a register fixed.
4423 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4424 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4425 instead of call_really_used_regs.
4426 (m32r_conditional_register_usage): Don't set call_used_regs when
4427 making a register fixed.
4428 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4429 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4430 instead of call_really_used_regs.
4431 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4432 (mips_cfun_call_saved_reg_p): Likewise.
4433 (mips_swap_registers): Remove the old handling of call_used_regs
4434 and change the handling of call_really_used_regs to use call_used_regs
4435 instead.
4436 (mips_conditional_register_usage): Likewise.
4437 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4438 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4439 instead of call_really_used_regs.
4440 (mn10300_get_live_callee_saved_regs): Likewise.
4441 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4442 (mn10300_conditional_register_usage): Don't set call_used_regs when
4443 making a register fixed.
4444 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4445 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4446 Remove the old handling of call_used_regs and change the handling
4447 of call_really_used_regs to use call_used_regs instead.
4448 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4449 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4450 instead of call_really_used_regs.
4451 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4452 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4453 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4454 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4455 (s390_conditional_register_usage): Remove the old handling of
4456 call_used_regs and change the handling of call_really_used_regs
4457 to use call_used_regs instead.
4458 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4459 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4460 (sh_fix_range, reg_unused_after): Likewise.
4461 (sh_conditional_register_usage): Remove the old handling of
4462 call_used_regs and change the handling of call_really_used_regs
4463 to use call_used_regs instead.
4464 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4465 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4466 call_used_regs when making a register fixed.
4467 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4468 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4469 call_used_regs when making a register fixed.
4470 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4471 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4472 set call_used_regs when making a register fixed.
4473 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4474 * config/visium/visium.c (visium_conditional_register_usage): Remove
4475 the old handling of call_used_regs and change the handling of
4476 call_really_used_regs to use call_used_regs instead.
4477
4478 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4479
4480 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4481 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4482 * reginfo.c (call_used_regs): New macro.
4483
4484 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4485
4486 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4487 fixed_regs test.
4488 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4489 (bpf_expand_epilogue): Likewise.
4490 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4491 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4492 (ft32_expand_epilogue): Likewise.
4493 * config/i386/i386.c (ix86_save_reg): Likewise.
4494 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4495 (moxie_expand_epilogue): Likewise.
4496 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4497 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4498 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4499
4500 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4501
4502 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4503 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4504 instead of testing call_used_regs directly.
4505 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4506 (aarch64_components_for_bb): Likewise.
4507 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4508 * config/arc/arc.c (arc_must_save_register): Likewise.
4509 (arc_epilogue_uses): Likewise.
4510 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4511 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4512 (arm_compute_save_reg0_reg12_mask): Likewise.
4513 (arm_compute_save_core_reg_mask): Likewise.
4514 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4515 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4516 (cmse_nonsecure_entry_clear_before_return): Likewise.
4517 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4518 (arm_expand_epilogue): Likewise.
4519 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4520 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4521 (_reg_unused_after): Likewise.
4522 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4523 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4524 (add_to_reg, hwloop_optimize): Likewise.
4525 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4526 (bpf_expand_epilogue): Likewise.
4527 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4528 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4529 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4530 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4531 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4532 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4533 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4534 * config/frv/frv.c (frv_stack_info): Likewise.
4535 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4536 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4537 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4538 (move_callee_saved_registers): Likewise.
4539 * config/h8300/h8300.c (byte_reg): Likewise.
4540 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4541 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4542 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4543 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4544 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4545 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4546 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4547 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4548 * config/m32c/m32c.c (need_to_save): Likewise.
4549 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4550 * config/mcore/mcore.c (calc_live_regs): Likewise.
4551 * config/microblaze/microblaze.c (microblaze_must_save_register):
4552 Likewise.
4553 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4554 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4555 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4556 (mmix_expand_epilogue): Likewise.
4557 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4558 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4559 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4560 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4561 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4562 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4563 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4564 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4565 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4566 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4567 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4568 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4569 * config/rl78/rl78.c (need_to_save): Likewise.
4570 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4571 (rs6000_stack_info, generate_set_vrsave): Likewise.
4572 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4573 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4574 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4575 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4576 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4577 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4578 (save_local_or_in_reg_p): Likewise.
4579 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4580 (xstormy16_epilogue_uses): Likewise.
4581 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4582 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4583 * config/v850/v850.c (compute_register_save_size): Likewise.
4584 * config/vax/vax.c (vax_expand_prologue): Likewise.
4585 * config/visium/visium.c (visium_save_reg_p): Likewise.
4586 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4587 * cselib.c (cselib_process_insn): Likewise.
4588 * df-scan.c (df_get_entry_block_def_set): Likewise.
4589 * function.c (aggregate_value_p): Likewise.
4590 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4591 * ira-lives.c (process_bb_node_lives): Likewise.
4592 * ira.c (do_reload): Likewise.
4593 * lra-lives.c (process_bb_lives): Likewise.
4594 * lra-remat.c (lra_remat): Likewise.
4595 * lra.c (lra): Likewise.
4596 * postreload.c (reload_combine_recognize_pattern): Likewise.
4597 (reload_cse_move2add): Likewise.
4598 * recog.c (peep2_find_free_register): Likewise.
4599 * regrename.c (check_new_reg_p): Likewise.
4600 * reload.c (find_equiv_reg): Likewise.
4601 * reload1.c (reload, find_reg): Likewise.
4602 * sel-sched.c (init_hard_regs_data): Likewise.
4603
4604 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4605
4606 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4607 regs_invalidated_by_call & ~fixed_reg_set instead of
4608 call_used_or_fixed_regs & ~fixed_reg_set.
4609 * config/sh/sh.c (output_stack_adjust): Likewise.
4610
4611 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4612
4613 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4614 (call_used_reg_set): Delete.
4615 (call_used_or_fixed_regs): New macro.
4616 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4617 of call_used_reg_set.
4618 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4619 instead of call_used_regs.
4620 (save_call_clobbered_regs): Likewise.
4621 * cfgcleanup.c (old_insns_match_p): Likewise.
4622 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4623 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4624 Likewise.
4625 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4626 * config/sh/sh.c (output_stack_adjust): Likewise.
4627 * final.c (collect_fn_hard_reg_usage): Likewise.
4628 * ira-build.c (ira_build): Likewise.
4629 * ira-color.c (calculate_saved_nregs): Likewise.
4630 (allocno_reload_assign, calculate_spill_cost): Likewise.
4631 * ira-conflicts.c (ira_build_conflicts): Likewise.
4632 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4633 * ira-lives.c (process_bb_node_lives): Likewise.
4634 * ira.c (setup_reg_renumber): Likewise.
4635 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4636 * lra-constraints.c (need_for_call_save_p): Likewise.
4637 (need_for_split_p, inherit_in_ebb): Likewise.
4638 * lra-lives.c (process_bb_lives): Likewise.
4639 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4640 * postreload.c (reload_combine): Likewise.
4641 * regrename.c (find_rename_reg): Likewise.
4642 * reload1.c (reload_as_needed): Likewise.
4643 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4644 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4645 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4646
4647 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4648
4649 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4650 (no_caller_save_reg_set): Delete.
4651 * caller-save.c (init_caller_save): Don't initialize it.
4652 * ira-conflicts.c (ira_build_conflicts): Calculate
4653 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4654
4655 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4656
4657 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4658 (target_hard_regs::x_savable_regs): New field.
4659 (call_fixed_reg_set): Delete.
4660 (savable_regs): New macro,
4661 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4662 (init_reg_sets_1): Likewise. Initialize savable_regs.
4663 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4664 for all registers. Set savable_regs instead of call_fixed_reg_set.
4665 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4666 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4667 * config/sh/sh.c (output_stack_adjust): Likewise.
4668
4669 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4670
4671 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4672 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4673 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4674
4675 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4676
4677 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4678 * rtlanal.c (get_call_rtx_from): Likewise.
4679 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4680 than the pattern to get_call_rtx_from.
4681 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4682 an rtx_insn * instead of an rtx.
4683 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4684
4685 2019-09-10 Martin Liska <mliska@suse.cz>
4686
4687 * common.opt: Use newly added WarnRemoved.
4688 * config/aarch64/aarch64.opt: Likewise.
4689 * config/arm/arm.opt: Likewise.
4690 * config/i386/i386.opt: Likewise.
4691 * config/ia64/ia64.opt: Likewise.
4692 * config/rs6000/rs6000.opt: Likewise.
4693 * doc/options.texi: Document WarnRemoved properly.
4694 * dwarf2out.c (gen_producer_string): Handle renamed
4695 OPT_SPECIAL_warn_removed.
4696 * lto-opts.c (lto_write_options): Likewise.
4697 * lto-wrapper.c (merge_and_complain): Likewise.
4698 * opts-common.c (decode_cmdline_option): Likewise.
4699 (prune_options): Likewise.
4700 (read_cmdline_option): Likewise.
4701 (control_warning_option): Likewise.
4702 * opts.c (print_filtered_help): Likewise.
4703 * optc-gen.awk: Parse for WarnRemoved and make usage
4704 of Deprecated an error.
4705 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4706
4707 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4708
4709 * doc/install.texi: Fix syntax for html generation.
4710
4711 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4712
4713 PR middle-end/91680
4714 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4715 the shift type to type.
4716
4717 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4718
4719 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4720 FDPIC mode.
4721 (stack_protect_combined_test_insn): Likewise.
4722
4723 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4724 Mickaël Guêné <mickael.guene@st.com>
4725
4726 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4727 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4728 (load_tp_soft_fdpic): New pattern.
4729 (load_tp_soft): Disable in FDPIC mode.
4730
4731 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4732 Mickaël Guêné <mickael.guene@st.com>
4733
4734 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4735 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4736 (arm_call_tls_get_addr): Add FDPIC support.
4737 (legitimize_tls_address): Likewise.
4738 (arm_emit_tls_decoration): Likewise.
4739
4740 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4741 Mickaël Guêné <mickael.guene@st.com>
4742
4743 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4744 support.
4745 (arm_trampoline_init): Likewise.
4746 (arm_trampoline_adjust_address): Likewise.
4747 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4748
4749 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4750 Mickaël Guêné <mickael.guene@st.com>
4751
4752 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4753 (legitimize_pic_address): Enforce binding rules on function
4754 pointers in FDPIC mode.
4755 (arm_assemble_integer): Likewise.
4756
4757 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4758 Mickaël Guêné <mickael.guene@st.com>
4759
4760 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4761 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4762 FDPIC.
4763
4764 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4765 Mickaël Guêné <mickael.guene@st.com>
4766
4767 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4768 field.
4769
4770 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4771 Mickaël Guêné <mickael.guene@st.com>
4772
4773 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4774 in FDPIC mode.
4775 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4776 new function.
4777 * config/arm/arm.c (arm_option_override): Define pic register to
4778 FDPIC_REGNUM.
4779 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4780 have no decl or go through PLT.
4781 (calculate_pic_address_constant): New function.
4782 (legitimize_pic_address): Call calculate_pic_address_constant.
4783 (arm_load_pic_register): Handle TARGET_FDPIC.
4784 (arm_is_segment_info_known): New function.
4785 (arm_pic_static_addr): Add support for FDPIC.
4786 (arm_load_function_descriptor): New function.
4787 (arm_emit_call_insn): Add support for FDPIC.
4788 (arm_assemble_integer): Add support for FDPIC.
4789 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4790 Define. (FDPIC_REGNUM): New define.
4791 * config/arm/arm.md (call): Add support for FDPIC.
4792 (call_value): Likewise.
4793 (restore_pic_register_after_call): New pattern.
4794 (untyped_call): Disable if FDPIC.
4795 (untyped_return): Likewise.
4796 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4797
4798 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4799 Mickaël Guêné <mickael.guene@st.com>
4800
4801 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4802 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4803 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4804 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4805 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4806 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4807 * config/arm/uclinuxfdpiceabi.h: New file.
4808
4809 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4810
4811 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4812
4813 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4814 Mickaël Guêné <mickael.guene@st.com>
4815
4816 * config/arm/arm.opt: Add -mfdpic option.
4817 * doc/invoke.texi: Add documentation for -mfdpic.
4818
4819 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4820
4821 * expmed.c (extract_bit_field): Update function comment
4822 regarding alt_rtl.
4823 * expr.c (expand_expr_real): Update function comment
4824 regarding alt_rtl.
4825 (expand_misaligned_mem_ref): New helper function.
4826 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4827 Remove duplicate assignment to "base" at case MEM_REF.
4828 Remove a shadowed variable "unsignedp" at case VCE.
4829
4830 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4831
4832 * regset.h (regs_invalidated_by_call_regset): Delete.
4833 (fixed_reg_set_regset): Likewise.
4834 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4835 (fixed_reg_set_regset, persistent_obstack): Likewise.
4836 (init_reg_sets_1, globalize_reg): Update accordingly.
4837 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4838 instead of a bitmap.
4839 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4840 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4841 instead of regs_invalidated_by_call_regset.
4842 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4843 * df-scan.c (df_scan_start_dump): Likewise.
4844 * dse.c (copy_fixed_regs): Likewise.
4845 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4846
4847 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4848
4849 * array-traits.h: New file.
4850 * coretypes.h (array_traits, bitmap_view): New types.
4851 * bitmap.h: Include "array-traits.h"
4852 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4853 (base_bitmap_view, bitmap_view): New classes.
4854 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4855 * hard-reg-set.h: Include array-traits.h.
4856 (array_traits<HARD_REG_SET>): New struct.
4857 * regset.h (IOR_REG_SET_HRS): New macro.
4858 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4859 rather than iterating over each hard register.
4860 * sched-deps.c (sched_analyze_insn): Likewise.
4861 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4862
4863 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4864
4865 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4866 instead of a HARD_REG_SET *.
4867 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4868 (ira_build): Update call accordingly.
4869 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4870
4871 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4872
4873 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4874 (HARD_REG_SET::operator!=): Likewise.
4875 (hard_reg_set_equal_p): Delete.
4876 * cfgcleanup.c (old_insns_match_p): Use == instead of
4877 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4878 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4879 (add_allocno_hard_regs_to_forest): Likewise.
4880 (setup_allocno_available_regs_num): Likewise.
4881 * ira.c (setup_pressure_classes): Likewise.
4882 (setup_allocno_and_important_classes): Likewise.
4883 (setup_reg_class_relations): Likewise.
4884 * lra-lives.c (process_bb_lives): Likewise.
4885 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4886
4887 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4888
4889 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4890 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4891 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4892 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4893 Likewise.
4894 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4895 * ira.c (setup_reg_renumber): Likewise.
4896 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4897 * regrename.c (regrename_find_superclass): Likewise.
4898 * reload1.c (find_reg): Likewise.
4899
4900 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4901
4902 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4903 * caller-save.c (setup_save_areas): Use "&~" instead of
4904 AND_COMPL_HARD_REG_SET.
4905 (save_call_clobbered_regs): Likewise.
4906 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4907 Likewise.
4908 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4909 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4910 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4911 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4912 (mips_conditional_register_usage): Likewise.
4913 * config/sh/sh.c (output_stack_adjust): Likewise.
4914 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4915 (setup_profitable_hard_regs): Likewise.
4916 (get_conflict_and_start_profitable_regs): Likewise.
4917 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4918 (ira_build_conflicts): Likewise.
4919 * ira-costs.c (restrict_cost_classes): Likewise.
4920 (setup_regno_cost_classes_by_aclass): Likewise.
4921 * ira-lives.c (process_bb_node_lives): Likewise.
4922 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4923 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4924 (setup_allocno_and_important_classes, setup_class_translate_array)
4925 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4926 Likewise.
4927 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4928 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4929 (process_alt_operands, inherit_in_ebb): Likewise.
4930 * lra-eliminations.c (update_reg_eliminate): Likewise.
4931 * lra-lives.c (process_bb_lives): Likewise.
4932 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4933 * resource.c (find_dead_or_set_registers): Likewise.
4934 (mark_target_live_regs): Likewise.
4935 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4936 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4937 (implicit_clobber_conflict_p): Likewise.
4938 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4939 (try_shrink_wrapping): Likewise.
4940
4941 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4942
4943 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4944 (HARD_REG_SET::operator|=): Likewise.
4945 (IOR_HARD_REG_SET): Delete.
4946 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4947 IOR_HARD_REG_SET.
4948 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4949 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4950 * final.c (collect_fn_hard_reg_usage): Likewise.
4951 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4952 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4953 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4954 (propagate_some_info_from_allocno): Likewise.
4955 (copy_info_to_removed_store_destinations): Likewise.
4956 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4957 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4958 (fast_allocation): Likewise.
4959 * ira-conflicts.c (ira_build_conflicts): Likewise.
4960 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4961 (process_bb_node_lives): Likewise.
4962 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4963 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4964 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4965 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4966 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4967 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4968 (process_bb_lives): Likewise.
4969 * lra-spills.c (assign_spill_hard_regs): Likewise.
4970 * postreload.c (reload_combine): Likewise.
4971 * reginfo.c (init_reg_sets_1): Likewise.
4972 * regrename.c (merge_overlapping_regs, find_rename_reg)
4973 (merge_chains): Likewise.
4974 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4975 (find_reload_regs, finish_spills, choose_reload_regs_init)
4976 (emit_reload_insns): Likewise.
4977 * reorg.c (redundant_insn): Likewise.
4978 * resource.c (find_dead_or_set_registers, mark_set_resources)
4979 (mark_target_live_regs): Likewise.
4980 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4981 * sched-deps.c (sched_analyze_insn): Likewise.
4982 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4983 (find_best_reg_for_expr): Likewise.
4984 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4985
4986 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4987
4988 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4989 (HARD_REG_SET::operator&): Likewise.
4990 (AND_HARD_REG_SET): Delete.
4991 * caller-save.c (setup_save_areas): Use "&" instead of
4992 AND_HARD_REG_SET.
4993 (save_call_clobbered_regs): Likewise.
4994 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4995 * config/m32c/m32c.c (reduce_class): Likewise.
4996 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4997 * final.c (get_call_reg_set_usage): Likewise.
4998 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4999 (setup_left_conflict_sizes_p): Likewise.
5000 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5001 (ira_build_conflicts): Likewise.
5002 * ira-costs.c (restrict_cost_classes): Likewise.
5003 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5004 (setup_reg_class_relations): Likewise.
5005 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5006 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5007 * resource.c (find_dead_or_set_registers): Likewise.
5008 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5009
5010 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5011
5012 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5013 (COMPL_HARD_REG_SET): Delete.
5014 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5015 of COMPL_HARD_REG_SET.
5016 (try_rename_operands): Likewise.
5017 * config/sh/sh.c (push_regs): Likewise.
5018 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5019 * lra-constraints.c (contains_reg_p): Likewise.
5020 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5021
5022 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5023
5024 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5025 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5026 of COPY_HARD_REG_SET.
5027 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5028 (epiphany_conditional_register_usage): Likewise.
5029 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5030 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5031 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5032 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5033 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5034 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5035 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5036 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5037 * config/sh/sh.c (output_stack_adjust): Likewise.
5038 * final.c (collect_fn_hard_reg_usage): Likewise.
5039 (get_call_reg_set_usage): Likewise.
5040 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5041 (ira_flattening): Likewise.
5042 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5043 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5044 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5045 (ira_reassign_pseudos): Likewise.
5046 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5047 (ira_build_conflicts): Likewise.
5048 * ira-costs.c (restrict_cost_classes): Likewise.
5049 (setup_regno_cost_classes_by_aclass): Likewise.
5050 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5051 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5052 (setup_stack_reg_pressure_class, setup_pressure_classes)
5053 (setup_allocno_and_important_classes, setup_class_translate_array)
5054 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5055 (ira_setup_eliminable_regset): Likewise.
5056 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5057 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5058 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5059 (process_alt_operands, inherit_in_ebb): Likewise.
5060 * lra-lives.c (process_bb_lives): Likewise.
5061 * lra-spills.c (assign_spill_hard_regs): Likewise.
5062 * lra.c (lra): Likewise.
5063 * mode-switching.c (new_seginfo): Likewise.
5064 * postreload.c (reload_combine): Likewise.
5065 * reg-stack.c (straighten_stack): Likewise.
5066 * reginfo.c (save_register_info, restore_register_info): Likewise.
5067 (init_reg_sets_1, record_subregs_of_mode): Likewise
5068 * regrename.c (create_new_chain, rename_chains): Likewise.
5069 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5070 (find_reload_regs): Likewise.
5071 * resource.c (find_dead_or_set_registers): Likewise.
5072 (mark_target_live_regs): Likewise.
5073 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5074
5075 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5076
5077 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5078 (note_pattern_stores): Declare.
5079 (note_stores): Take an rtx_insn *.
5080 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5081 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5082 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5083 (note_stores): Take an rtx_insn * as argument and process
5084 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5085 (note_pattern_stores): ...this.
5086 (find_first_parameter_load): Pass the insn rather than
5087 its pattern to note_stores.
5088 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5089 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5090 (insert_one_insn): Likewise.
5091 * combine.c (combine_instructions): Likewise.
5092 (likely_spilled_retval_p): Likewise.
5093 (try_combine): Use note_pattern_stores instead of note_stores.
5094 (record_dead_and_set_regs): Pass the insn rather than its pattern
5095 to note_stores.
5096 (reg_dead_at_p): Likewise.
5097 * config/bfin/bfin.c (workaround_speculation): Likewise.
5098 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5099 rather than an rtx.
5100 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5101 instead of note_stores.
5102 (frv_optimize_membar_local): Pass the insn rather than its pattern
5103 to note_stores.
5104 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5105 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5106 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5107 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5108 (mips_reorg_process_insns): Likewise.
5109 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5110 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5111 rather than rtxes.
5112 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5113 its pattern to note_stores.
5114 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5115 of note_stores.
5116 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5117 the insn to note_stores.
5118 (prescan_insns_for_dce): Update call accordingly.
5119 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5120 to note_stores.
5121 * df-problems.c (can_move_insns_across): Likewise.
5122 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5123 * function.c (assign_parm_setup_reg): Likewise.
5124 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5125 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5126 (single_set_gcse): Likewise.
5127 * ira.c (validate_equiv_mem): Likewise.
5128 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5129 for no_equiv.
5130 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5131 pattern to note_stores.
5132 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5133 * loop-iv.c (simplify_using_initial_values): Likewise.
5134 * mode-switching.c (optimize_mode_switching): Likewise.
5135 * optabs.c (emit_libcall_block_1): Likewise.
5136 (expand_atomic_compare_and_swap): Likewise.
5137 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5138 (record_opr_changes): Likewise. Remove explicit handling of
5139 CALL_INSN_FUNCTION_USAGE.
5140 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5141 * regcprop.c (kill_clobbered_values): Likewise.
5142 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5143 to note_stores.
5144 * regrename.c (build_def_use): Likewise.
5145 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5146 for mark_not_eliminable.
5147 (reload_as_needed): Pass the insn rather than its pattern
5148 to note_stores.
5149 (emit_output_reload_insns): Likewise.
5150 * resource.c (mark_target_live_regs): Likewise.
5151 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5152 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5153 instead of note_stores.
5154 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5155 its pattern to note_stores.
5156 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5157 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5158
5159 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5160
5161 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5162 than a #define. Use a structure rather than an array as the
5163 fallback definition. Remove special cases for low array sizes.
5164 (const_hard_reg_set): New typedef.
5165 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5166 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5167 (hard_reg_set_empty_p): Likewise.
5168 (SET_HARD_REG_BIT): Use a function rather than a macro to
5169 handle the case in which HARD_REG_SET is a structure.
5170 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5171 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5172 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5173 (IOR_COMPL_HARD_REG_SET): Likewise.
5174 (hard_reg_set_iterator::pset): Constify the pointer target.
5175 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5176 of a "const HARD_REG_SET". Update the handling of non-integer
5177 HARD_REG_SETs.
5178 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5179 * reload.h: Likewise.
5180 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5181 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5182 of a "const HARD_REG_SET".
5183 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5184 (range_in_hard_reg_set_p): Likewise.
5185 * ira-costs.c (restrict_cost_classes): Likewise.
5186 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5187 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5188 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5189 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5190 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5191 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5192 take an unsigned int and open-code the HARD_REG_SET operations.
5193
5194 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5195
5196 * Makefile.in (OBJS): Remove bt-load.o.
5197 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5198 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5199 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5200 document that the option no longer does anything.
5201 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5202 * target.def (branch_target_register_class): Delete.
5203 (branch_target_register_callee_saved): Likewise.
5204 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5205 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5206 * doc/tm.texi: Regenerate.
5207 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5208 (make_pass_branch_target_load_optimize2): Likewise.
5209 * passes.def (pass_branch_target_load_optimize1): Likewise.
5210 (pass_branch_target_load_optimize2): Likewise.
5211 * targhooks.h (default_branch_target_register_class): Likewise.
5212 * targhooks.c (default_branch_target_register_class): Likewise.
5213 * opt-suggestions.c (test_completion_valid_options): Remove
5214 -fbtr-bb-exclusive from the list of test options.
5215 * bt-load.c: Remove.
5216
5217 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5218
5219 * match.pd: Add flag_unsafe_math_optimizations check
5220 before deciding on the widest type in a binary math operation.
5221
5222 2019-09-09 Martin Liska <mliska@suse.cz>
5223
5224 * config/i386/i386.opt: Update comment of removed
5225 options that are preserved only for backward
5226 compatibility.
5227
5228 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5229
5230 PR target/87853
5231 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5232 instead of __v16qs.
5233
5234 PR target/91704
5235 * config/i386/avxintrin.h (__v32qs): New typedef.
5236 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5237 instead of __v32qi.
5238
5239 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5240
5241 * doc/invoke.texi (Option Summary): Cover eBPF.
5242 (eBPF Options): New section.
5243 * doc/extend.texi (BPF Built-in Functions): Likewise.
5244 (BPF Kernel Helpers): Likewise.
5245
5246 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5247
5248 * config.gcc: Support for bpf-*-* targets.
5249 * common/config/bpf/bpf-common.c: New file.
5250 * config/bpf/t-bpf: Likewise.
5251 * config/bpf/predicates.md: Likewise.
5252 * config/bpf/constraints.md: Likewise.
5253 * config/bpf/bpf.opt: Likewise.
5254 * config/bpf/bpf.md: Likewise.
5255 * config/bpf/bpf.h: Likewise.
5256 * config/bpf/bpf.c: Likewise.
5257 * config/bpf/bpf-protos.h: Likewise.
5258 * config/bpf/bpf-opts.h: Likewise.
5259 * config/bpf/bpf-helpers.h: Likewise.
5260 * config/bpf/bpf-helpers.def: Likewise.
5261
5262 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5263
5264 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5265 indirect_calls.
5266
5267 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5268
5269 * opt-functions.awk (integer_range_info): Make sure values are in
5270 numeric context before operating with them.
5271
5272 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5273
5274 * genemit.c (gen_split): Print the filename and line number where the
5275 splitter (or peephole2) was defined, to the dump file.
5276
5277 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5278
5279 PR tree-optimization/91665
5280 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5281 incompatible with the type of PHI result.
5282
5283 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5284
5285 PR target/91684
5286 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5287 gen_unaligned_storedi for 4-byte aligned addresses.
5288
5289 2019-09-06 Jim Wilson <jimw@sifive.com>
5290
5291 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5292 change.
5293
5294 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5295
5296 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5297
5298 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5299
5300 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5301 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5302
5303 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5304
5305 PR target/91654
5306 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5307 cost of SSE->integer and integer->SSE moves from 2 to 6.
5308 (core_cost): Ditto.
5309
5310 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5311
5312 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5313 before testing TYPE_TRANSPARENT_AGGR.
5314 * calls.c (initialize_argument_information, load_register_parameters):
5315 Likewise.
5316
5317 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5318
5319 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5320 high regs.
5321 (cmp_ior): Likewise.
5322
5323 2019-09-06 Martin Liska <mliska@suse.cz>
5324
5325 * doc/match-and-simplify.texi: Separate tuples with ;.
5326
5327 2019-09-06 Martin Liska <mliska@suse.cz>
5328
5329 PR c++/91125
5330 * Makefile.in: Remove tlink.o.
5331 * collect2.c (do_link): New function isolated
5332 from do_tlink.
5333 (main): Use.
5334 * collect2.h (do_tlink): Remove declaration of do_tlink.
5335 * doc/extend.texi: Remove documentation of -frepo.
5336 * doc/invoke.texi: Likewise.
5337 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5338 * tlink.c: Remove.
5339
5340 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5341 Jim Wilson <jimw@sifive.com>
5342
5343 PR target/91635
5344 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5345 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5346 paradoxical_subreg_p (operands[0]).
5347 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5348 use as intermediate value.
5349
5350 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5351
5352 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5353 (sync_compare_and_swap<mode>_insn): Likewise.
5354
5355 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5356
5357 PR middle-end/91615
5358 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5359 without movmisalign optab.
5360
5361 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5362
5363 PR middle-end/91001
5364 PR middle-end/91105
5365 PR middle-end/91106
5366 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5367 types, use type of their first field instead of type of
5368 args[i].tree_value.
5369
5370 2019-09-05 Richard Biener <rguenther@suse.de>
5371
5372 PR rtl-optimization/91656
5373 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5374 of early out.
5375
5376 2019-09-05 Richard Biener <rguenther@suse.de>
5377
5378 PR middle-end/90501
5379 * tree-inline.c (declare_return_variable): Mark the return
5380 slot as addressable after building an address of it.
5381
5382 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5383
5384 * doc/install.texi: Update and clarify requirements to build GNAT.
5385
5386 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5387
5388 PR middle-end/91577
5389 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5390 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5391 call to be in memory.
5392 (pass_expand::execute): Call discover_nonconstant_array_refs before
5393 setting currently_expanding_to_rtl.
5394
5395 2019-09-04 Caroline Tice <cmtice@google.com>
5396
5397 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5398 specified together.
5399
5400 2019-09-04 Marek Polacek <polacek@redhat.com>
5401
5402 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5403
5404 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5405
5406 PR target/32413
5407 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5408 for QI and HImode moves between SSE and general registers.
5409
5410 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5411
5412 PR c/78736
5413 * doc/invoke.texi: Document -Wenum-conversion.
5414
5415 2019-09-04 Richard Biener <rguenther@suse.de>
5416
5417 PR rtl-optimization/36262
5418 * postreload-gcse.c: Include intl.h and gcse.h.
5419 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5420 to avoid linear list walk.
5421 (record_last_mem_set_info): Gate off if not computing transparentness.
5422 (get_bb_avail_insn): If transparentness isn't computed give up
5423 early.
5424 (gcse_after_reload_main): Skip compute_transp and extended PRE
5425 if gcse_or_cprop_is_too_expensive says so.
5426
5427 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5428
5429 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5430 noinit section.
5431 (msp430_select_section): Handle decls with the "noinit" attribute with
5432 default_elf_select_section.
5433 Handle SECCAT_RODATA_MERGE_* section types with
5434 default_elf_select_section.
5435 Add comments about handling of unsupported section types.
5436 (msp430_section_type_flags): Remove handling of the noinit section.
5437
5438 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5439
5440 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5441 conflicting msp430-specific attributes.
5442 (msp430_section_attr): Likewise.
5443 Add warnings about conflicts with generic "noinit" and "section"
5444 attributes.
5445 Fix grammar in -mlarge error message.
5446 (msp430_data_attr): Rename to msp430_persist_attr.
5447 Add warnings about conflicts with generic "noinit" and "section"
5448 attributes.
5449 Add warning for when variable is not initialized.
5450 Chain conditionals which prevent the attribute being added.
5451 (ATTR_EXCL): New helper.
5452 (attr_reent_exclusions): New exclusion table.
5453 (attr_naked_exclusions): Likewise.
5454 (attr_crit_exclusions): Likewise.
5455 (attr_lower_exclusions): Likewise.
5456 (attr_upper_exclusions): Likewise.
5457 (attr_either_exclusions): Likewise.
5458 (attr_persist_exclusions): Likewise.
5459 (msp430_attribute_table): Update with exclusion rules.
5460 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5461 has a section.
5462
5463 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5464
5465 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5466 (msp430_handle_generic_attribute): New function.
5467 * doc/tm.texi: Regenerate.
5468 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5469 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5470 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5471 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5472
5473 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5474
5475 PR tree-optimization/91504
5476 * match.pd: Add ((~a & b) ^a) --> (a | b).
5477
5478 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5479
5480 PR target/91604
5481 * config/i386/i386-expand.c (split_double_mode): If there is more than
5482 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5483 already split matching MEM operand instead of calling adjust_address
5484 again.
5485
5486 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5487
5488 * config.gcc: Obsolete spu target. Remove references to spu.
5489 * configure.ac: Remove references to spu.
5490 * configure: Regenerate.
5491 * config/spu/: Remove directory.
5492 * common/config/spu/: Remove directory.
5493
5494 * doc/extend.texi: Remove references to spu.
5495 * doc/invoke.texi: Likewise.
5496 * doc/md.texi: Likewise.
5497 * doc/sourcebuild.texi: Likewise.
5498
5499 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5500
5501 PR middle-end/91603
5502 PR middle-end/91612
5503 PR middle-end/91613
5504 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5505 and SSA_NAME referring to CONSTANT_P correctly.
5506
5507 2019-09-03 Richard Biener <rguenther@suse.de>
5508
5509 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5510 (vn_nary_op_insert): Likewise.
5511 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5512 (vn_nary_op_lookup): Likewise.
5513 (vn_nary_op_insert): Likewise.
5514
5515 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5516
5517 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5518 (*op0, 1) instead of XEXP (*op1, 0).
5519
5520 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5521
5522 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5523 (aarch64_fjcvtzs): New define_insn.
5524 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5525 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5526 Add AARCH64_JSCVT.
5527 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5528 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5529 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5530 __ARM_FEATURE_JCVT where appropriate.
5531 * config/aarch64/arm_acle.h (__jcvt): Define.
5532
5533 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5534
5535 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5536 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5537 (aarch64_<frintnzs_op><mode>): New define_insn.
5538 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5539 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5540 __ARM_FEATURE_FRINT when appropriate.
5541 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5542 frint32x, frint64z, frint64x.
5543 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5544 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5545 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5546 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5547 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5548 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5549 * config/aarch64/iterators.md (VSFDF): Define.
5550 (FRINTNZX): Likewise.
5551 (frintnzs_op): Likewise.
5552
5553 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5554
5555 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5556 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5557 Cortex-A34.
5558 * config/aarch64/aarch64-tune.md: Regenerated.
5559 * doc/invoke.texi: Document the new processors.
5560
5561 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5562
5563 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5564 string.
5565 (ssbs): Likewise.
5566 (sve2): Likewise.
5567 (sve2-sm4): Likewise.
5568 (sveaes): Likewise.
5569 (svesha3): Likewise.
5570 (svebitperm): Likewise.
5571
5572 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5573 Richard Biener <rguenther@suse.de>
5574
5575 PR tree-optimization/91597
5576 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5577 BIT_AND_EXPR optimization for pointers, even if both operand
5578 ranges don't include NULL, the result can be NULL.
5579
5580 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5581
5582 PR middle-end/91605
5583 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5584 (non_mem_decl_p): ...this.
5585 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5586 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5587 unconditionally as before.
5588
5589 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5590
5591 PR target/91323
5592 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5593 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5594 * tree.def (LTGT_EXPR): Likewise.
5595 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5596
5597 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5598
5599 PR go/91617
5600 * fold-const.c (range_check_type): For enumeral and boolean
5601 type, pass 1 to type_for_size langhook instead of
5602 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5603 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5604 (build_range_check): Don't call unsigned_type_for for pointer types.
5605 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5606 range_check_type result.
5607
5608 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5609
5610 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5611 (replace_ref): Do not replace a chain of only two candidates which are
5612 valid memory references.
5613
5614 2019-09-02 Martin Liska <mliska@suse.cz>
5615
5616 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5617 Bail out when we'll end up with the same number of clusters as
5618 at the beginning.
5619 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5620 (jump_table_cluster::can_be_handled): Remove the guard
5621 as it's already handled in ::is_enabled. Allocate output
5622 after early bail out.
5623
5624 2019-09-02 Martin Liska <mliska@suse.cz>
5625
5626 PR gcov-profile/91601
5627 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5628 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5629 also negative edges.
5630 (circuit): Handle also negative edges as they can happen
5631 in some situations.
5632
5633 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5634
5635 PR target/91472
5636 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5637 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5638 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5639
5640 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5641
5642 PR middle-end/91623
5643 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5644 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5645 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5646 zero vector.
5647
5648 PR lto/91572
5649 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5650 GIMPLE_ASM TREE_LIST operands.
5651
5652 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5653
5654 * doc/generic.texi (Unary and Binary Expressions): Mark up
5655 an instance of TYPE_MIN.
5656
5657 2019-08-31 Stafford Horne <shorne@gmail.com>
5658
5659 * config/or1k/constraints.md (t): New constraint.
5660 * config/or1k/or1k.h (GOT_REGS): New register class.
5661 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5662
5663 2019-08-30 Jim Wilson <jimw@sifive.com>
5664
5665 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5666 and -fpic and -mplt then disable -msave-restore and warn.
5667
5668 2019-08-30 Martin Sebor <msebor@redhat.com>
5669
5670 PR middle-end/91599
5671 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5672 the statement doesn't have one.
5673 * gimple-pretty-print.c (percent_G_format): Same.
5674
5675 PR middle-end/91584
5676 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5677 before using them to validate MEM_REF offset.
5678
5679 2019-08-30 Marek Polacek <polacek@redhat.com>
5680
5681 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5682
5683 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5684
5685 * config/arm/arm.md (unaligned_loaddi,
5686 unaligned_storedi): New unspec insn patterns.
5687 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5688 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5689 and unaligned_storedi for 4-byte aligned memory.
5690 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5691 4-byte aligned memory.
5692
5693 2019-08-30 Martin Jambor <mjambor@suse.cz>
5694
5695 tree-optimization/91579
5696 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5697 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5698 appropriate.
5699 (arg_needs_copy_p): Removed.
5700 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5701 arg_needs_copy_p.
5702 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5703
5704 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5705
5706 * config/i386/i386-features.c
5707 (general_scalar_chain::compute_convert_gain):
5708 Correct cost for double-word shifts.
5709 (general_scalar_to_vector_candidate_p): Reject count operands
5710 greater or equal to mode bitsize.
5711
5712 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5713
5714 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5715 for moves between SSE and non-general registers and between
5716 mask and non-general registers.
5717 (ix86_register_move_cost): Remove stalled comment.
5718
5719 2019-08-29 Richard Biener <rguenther@suse.de>
5720
5721 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5722 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5723
5724 2019-08-29 Richard Biener <rguenther@suse.de>
5725
5726 PR bootstrap/91580
5727 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5728 Do not emit scalar copies for debug-insns, instead replace
5729 their uses with the reg copy used in the chain or reset them
5730 if there is a reaching definition outside of the chain as well.
5731
5732 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5733
5734 PR target/91560
5735 * config/i386/i386-expand.c (expand_vec_perm_movs,
5736 expand_vec_perm_blend, expand_vec_perm_vpermil,
5737 expand_vec_perm_pshufb, expand_vec_perm_1,
5738 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5739 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5740 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5741 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5742 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5743 comments - replace ix86_expand_vec_perm_builtin_1 with
5744 ix86_expand_vec_perm_const_1.
5745 (expand_vec_perm2_vperm2f128_vblend): New function.
5746 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5747 expand_vec_perm2_vperm2f128_vblend as last resort.
5748 (canonicalize_perm): Formatting fix.
5749
5750 PR tree-optimization/91351
5751 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5752 unsigned_type_for.
5753 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5754 range_check_type returns NULL.
5755 * tree-switch-conversion.c (switch_conversion::build_one_array):
5756 Use range_check_type instead of unsigned_type_for, don't perform
5757 linear opt if it returns NULL.
5758 (bit_test_cluster::find_bit_tests): Formatting fix.
5759 (bit_test_cluster::emit): Use range_check_type instead of
5760 unsigned_type_for.
5761 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5762 returns NULL.
5763
5764 2019-08-29 Richard Biener <rguenther@suse.de>
5765
5766 PR tree-optimization/91568
5767 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5768 (vect_update_max_nunits): Add overload for poly_uint64.
5769 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5770 (vect_build_slp_tree): Record max_nunits into the subtree
5771 and merge it upwards.
5772 (vect_print_slp_tree): Print max_nunits.
5773
5774 2019-08-28 Marek Polacek <polacek@redhat.com>
5775
5776 Implement P1152R4: Deprecating some uses of volatile.
5777 PR c++/91361
5778 * doc/invoke.texi: Document -Wvolatile.
5779
5780 2019-08-28 Marek Polacek <polacek@redhat.com>
5781
5782 PR c++/91360 - Implement C++20 P1143R2: constinit.
5783 * doc/invoke.texi: Document -Wc++20-compat.
5784
5785 2019-08-28 Martin Sebor <msebor@redhat.com>
5786
5787 PR tree-optimization/91457
5788 * builtins.c (component_size): New function.
5789 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5790 * builtins.h (compute_objsize): Add argument.
5791 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5792 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5793 (vrp_prop::check_mem_ref): Same.
5794 (vrp_prop::search_for_addr_array): Set no-warning bit.
5795 (check_array_bounds): Same.
5796
5797 2019-08-28 Martin Sebor <msebor@redhat.com>
5798
5799 PR driver/80545
5800 * opts-common.c (option_enabled): Correct checking for language
5801 options.
5802
5803 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5804
5805 * config/i386/i386.c (ix86_register_move_cost): Do not
5806 limit the cost of moves to/from XMM register to minimum 8.
5807
5808 2019-08-28 Martin Jambor <mjambor@suse.cz>
5809
5810 PR ipa/91468
5811 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5812 checking assert a normal assert to test it really is redundant.
5813 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5814 redundant test.
5815 (update_jump_functions_after_inlining): Removed combining unary
5816 arithmetic operations with an ancestor jump function.
5817 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5818 instead of t.
5819
5820 2019-08-28 Richard Biener <rguenther@suse.de>
5821
5822 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5823 add the MD problem.
5824
5825 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5826 Richard Biener <rguenther@suse.de>
5827
5828 * expr.c (expand_assignment): Handle misaligned DECLs.
5829 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5830 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5831 too.
5832 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5833 * varasm.c (build_constant_desc): Align constants of misaligned types.
5834 * config/arm/predicates.md (aligned_operand): New predicate.
5835 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5836 aligned_operand to check restrictions on memory addresses.
5837 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5838 * config/arm/vec-common.md (mov<VALL>): Likewise.
5839
5840 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5841
5842 PR libgomp/91530
5843 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5844 V_128 iterator instead of VI_128.
5845
5846 2019-08-28 Martin Liska <mliska@suse.cz>
5847
5848 PR tree-optimization/90970
5849 * builtins.c (check_access): Remove assignment to maxread
5850 as it hasn't been used since when it was introduced in r255755.
5851
5852 2019-08-27 Martin Sebor <msebor@redhat.com>
5853
5854 PR tree-optimization/91567
5855 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5856 of unknown strings.
5857 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5858 to PTRDIFF_MAX - 2.
5859
5860 2019-08-27 Jeff Law <law@redhat.com>
5861
5862 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5863 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5864
5865 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5866
5867 PR target/91528
5868 * config/i386/i386-features.c (convert_scalars_to_vector):
5869 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5870 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5871 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5872 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5873
5874 2019-08-27 Richard Biener <rguenther@suse.de>
5875
5876 * config/i386/i386-features.h
5877 (general_scalar_chain::~general_scalar_chain): Add.
5878 (general_scalar_chain::insns_conv): New bitmap.
5879 (general_scalar_chain::n_sse_to_integer): New.
5880 (general_scalar_chain::n_integer_to_sse): Likewise.
5881 (general_scalar_chain::make_vector_copies): Adjust signature.
5882 * config/i386/i386-features.c
5883 (general_scalar_chain::general_scalar_chain): Outline,
5884 initialize new members.
5885 (general_scalar_chain::~general_scalar_chain): New.
5886 (general_scalar_chain::mark_dual_mode_def): Record insns
5887 we need to insert conversions at and count them.
5888 (general_scalar_chain::compute_convert_gain): Account
5889 for conversion instructions at chain boundary.
5890 (general_scalar_chain::make_vector_copies): Generate a single
5891 copy for a def by a specific insn.
5892 (general_scalar_chain::convert_registers): First populate
5893 defs_map, then make copies at out-of chain insns.
5894
5895 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5896
5897 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5898 comment.
5899 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5900
5901 2019-08-27 Martin Liska <mliska@suse.cz>
5902
5903 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5904 loop.
5905 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5906 Enclose in anonymous namespace.
5907 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5908 hard_register initialization in braces.
5909 * tree-vrp.h (value_range_base::supports_type_p): Return false
5910 for function with boolean return type.
5911
5912 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5913
5914 * config/i386/i386.c (emit_i387_cw_initialization)
5915 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5916
5917 2019-08-26 Martin Sebor <msebor@redhat.com>
5918
5919 PR c++/83431
5920 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5921 (sprintf_dom_walker): Remove class.
5922 (get_int_range): Make argument const.
5923 (directive::fmtfunc, directive::set_precision): Same.
5924 (format_none): Same.
5925 (build_intmax_type_nodes): Same.
5926 (adjust_range_for_overflow): Same.
5927 (format_floating): Same.
5928 (format_character): Same.
5929 (format_string): Same.
5930 (format_plain): Same.
5931 (get_int_range): Cast away constness.
5932 (format_integer): Same.
5933 (get_string_length): Call get_range_strlen_dynamic. Handle
5934 null lendata.maxbound.
5935 (should_warn_p): Adjust argument scope qualifier.
5936 (maybe_warn): Same.
5937 (format_directive): Same.
5938 (parse_directive): Same.
5939 (is_call_safe): Same.
5940 (try_substitute_return_value): Same.
5941 (sprintf_dom_walker::handle_printf_call): Rename...
5942 (handle_printf_call): ...to this. Initialize target to host charmap
5943 here instead of in pass_sprintf_length::execute.
5944 (struct call_info): Make global.
5945 (sprintf_dom_walker::compute_format_length): Make global.
5946 (sprintf_dom_walker::handle_gimple_call): Same.
5947 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5948 * print-rtl.c (print_pattern): Reduce the number of spaces to
5949 avoid -Wformat-truncation.
5950 * tree-pass.h (make_pass_warn_printf): New function.
5951 * tree-ssa-strlen.c (strlen_optimize): New variable.
5952 (get_string_length): Add comments.
5953 (get_range_strlen_dynamic): New function.
5954 (check_and_optimize_call): New function.
5955 (handle_integral_assign): New function.
5956 (strlen_check_and_optimize_stmt): Factor code out into
5957 strlen_check_and_optimize_call and handle_integral_assign.
5958 (strlen_dom_walker::evrp): New member.
5959 (strlen_dom_walker::before_dom_children): Use evrp member.
5960 (strlen_dom_walker::after_dom_children): Use evrp member.
5961 (printf_strlen_execute): New function.
5962 (pass_strlen::gate): Update to handle printf calls.
5963 (dump_strlen_info): New function.
5964 (pass_data_warn_printf): New variable.
5965 (pass_warn_printf): New class.
5966 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5967 (handle_printf_call): Same.
5968 * tree-vrp.c (value_range_base::type): Adjust assertion.
5969 * vr-values.c (vr_values::update_value_range): Use type of the first
5970 argument rather than the second.
5971
5972 2019-08-26 Richard Biener <rguenther@suse.de>
5973
5974 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5975 Remove.
5976 (convert_scalars_to_vector): Do not call it.
5977
5978 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5979 Uros Bizjak <ubizjak@gmail.com>
5980
5981 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5982 CASE_MATHFN_FLOATN for roundeven.
5983 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5984 I387_ROUNDEVEN.
5985 (ix86_mode_needed): Likewise.
5986 (ix86_mode_after): Likewise.
5987 (ix86_mode_entry): Likewise.
5988 (ix86_mode_exit): Likewise.
5989 (ix86_emit_mode_set): Likewise.
5990 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5991 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5992 (ix86_entity): Add I387_ROUNDEVEN.
5993 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5994 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5995 (define_int_iterator): Likewise.
5996 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5997 (define_constant): Define ROUND_ROUNDEVEN mode.
5998 (define_attr): Add roundeven mode for i387_cw.
5999 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6000 * internal-fn.def (ROUNDEVEN): New builtin function.
6001 * optabs.def (roundeven_optab): New optab.
6002
6003 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6004
6005 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6006 for ROUNDEVEN.
6007 * builtins.def: Added function definitions for roundeven function
6008 variants.
6009 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6010 function call. Adjust condition for floor, ceil, trunc and round.
6011 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6012 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6013 (integer_valued_real_call_p): Added case for roundeven function.
6014 * real.c (is_even): New function. Returns true if real number is even,
6015 otherwise returns false.
6016 (is_halfway_below): New function. Returns true if real number is
6017 halfway between two integers, else return false.
6018 (real_roundeven): New function. Round real number to nearest integer,
6019 rounding halfway cases towards even.
6020 * real.h (real_value): Added descriptive comments. Added function
6021 declaration for roundeven function.
6022 * doc/extend.texi (Other Builtins): List roundeven variants among
6023 functions which can be handled as builtins.
6024
6025 2019-08-26 Richard Biener <rguenther@suse.de>
6026
6027 PR target/91522
6028 PR target/91527
6029 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6030 New member.
6031 (general_scalar_chain::replace_with_subreg): Remove.
6032 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6033 (general_scalar_chain::convert_reg): Adjust signature.
6034 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6035 iterate over all defs of a reg.
6036 (general_scalar_chain::replace_with_subreg): Remove.
6037 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6038 (general_scalar_chain::make_vector_copies): Populate defs_map,
6039 place copy only after defs that are used as vectors in the chain.
6040 (general_scalar_chain::convert_reg): Emit a copy for a specific
6041 def in a specific instruction.
6042 (general_scalar_chain::convert_op): All reg uses are converted here.
6043 (general_scalar_chain::convert_insn): Emit copies for scalar
6044 uses of defs here. Replace uses with the copies we created.
6045 Replace and convert the def. Adjust REG_DEAD notes, remove
6046 REG_EQUIV/EQUAL notes.
6047 (general_scalar_chain::convert_registers): Only handle copies
6048 into the chain here.
6049
6050 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6051
6052 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6053
6054 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6055
6056 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6057 Add nop_convert case.
6058 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6059 Fold all statements if requested.
6060 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6061 Allow to fold all statements.
6062 * tree-vrp.c (class vrp_folder):
6063 Let substitute_and_fold_engine fold all statements.
6064
6065 2019-08-26 Richard Biener <rguenther@suse.de>
6066
6067 PR tree-optimization/91526
6068 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6069 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6070 TODO_update_address_taken.
6071
6072 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6073
6074 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6075 __STDC_HOSTED__.
6076
6077 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6078
6079 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6080 machine mode for unspec_volatile operand.
6081
6082 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6083
6084 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6085 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6086 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6087 (prefer_neon_for_64bits): Remove.
6088 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6089 (tune_params): Remove PREF_NEON_64_FALSE uses.
6090 (arm_option_override): Remove prefer_neon selection code.
6091 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6092 * gcc/config/arm/arm-protos.h (tune_params): Remove
6093 prefer_neon_for_64bits.
6094 (prefer_neon_for_64bits): Remove.
6095
6096 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6097
6098 PR pch/61250
6099 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6100 and issue any diagnostics needed before collecting the pre-PCH
6101 state.
6102
6103 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6104
6105 PR middle-end/91283
6106 * common.opt (fexcess-precision=): Add Optimization flag. Use
6107 flag_excess_precision variable instead of
6108 flag_excess_precision_cmdline.
6109 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6110 member.
6111 (flag_excess_precision): Don't define.
6112 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6113 flag_excess_precision_cmdline. Remove comment.
6114 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6115 and x_flag_excess_precision instead of
6116 frontend_set_flag_excess_precision_cmdline and
6117 x_flag_excess_precision_cmdline.
6118 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6119 x_flag_excess_precision_cmdline.
6120 * toplev.c (init_excess_precision): Remove.
6121 (lang_dependent_init_target): Don't call it.
6122
6123 2019-08-23 Martin Liska <mliska@suse.cz>
6124
6125 * lto-wrapper.c (run_gcc): When setting jobserver
6126 set also parallel to 1. This was done so before r273908.
6127
6128 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6129
6130 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6131 (cortex-a76ae): Likewise.
6132 (cortex-a77): Likewise
6133 * config/arm/arm-tables.opt: Regenerate.
6134 * config/arm/arm-tune.md: Likewise.
6135 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6136 cortex-a77 CPU options.
6137
6138 2019-08-23 Martin Liska <mliska@suse.cz>
6139
6140 * profile.c (instrument_values): Do not set
6141 0 as last argument.
6142 * tree-profile.c (gimple_gen_interval_profiler): Remove
6143 last argument.
6144 (gimple_gen_pow2_profiler): Likewise.
6145 (gimple_gen_topn_values_profiler): Likewise.
6146 (gimple_gen_ic_profiler): Likewise.
6147 (gimple_gen_time_profiler): Likewise.
6148 (gimple_gen_average_profiler): Likewise.
6149 (gimple_gen_ior_profiler): Likewise.
6150 * value-prof.c (dump_histogram_value): Use default
6151 in switch statement instead of HIST_TYPE_MAX.
6152 (stream_in_histogram_value): Likewise.
6153 (gimple_duplicate_stmt_histograms): Do not
6154 use NULL for implicitly set arguments.
6155 (gimple_divmod_values_to_profile): Do not use
6156 reserve+quick_push.
6157 (gimple_indirect_call_to_profile): Likewise.
6158 (gimple_find_values_to_profile): Use implicit
6159 function call arguments.
6160 * value-prof.h (gimple_alloc_histogram_value):
6161 Set default values.
6162 (gimple_gen_interval_profiler): Remove last argument.
6163 (gimple_gen_pow2_profiler): Likewise.
6164 (gimple_gen_topn_values_profiler): Likewise.
6165 (gimple_gen_ic_profiler): Likewise.
6166 (gimple_gen_time_profiler): Likewise.
6167 (gimple_gen_average_profiler): Likewise.
6168 (gimple_gen_ior_profiler): Likewise.
6169
6170 2019-08-22 Martin Sebor <msebor@redhat.com>
6171
6172 PR middle-end/91490
6173 * builtins.c (c_strlen): Rename argument and introduce new local.
6174 Set no-warning bit on original argument.
6175 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6176 Fold empty and zero constructors into empty strings.
6177 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6178 for missing initializers.
6179 * tree.c (build_string_literal): Handle optional argument.
6180 * tree.h (build_string_literal): Add defaulted argument.
6181 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6182 no-warning bit on original expression.
6183
6184 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6185
6186 PR target/91481
6187 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6188 and UNSPEC_DARN_RAW.
6189 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6190 UNSPECV_DARN_RAW.
6191 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6192 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6193 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6194
6195 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6196
6197 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6198 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6199 * config/rs6000/rs6000.md (unspec): ... here.
6200 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6201 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6202 cmpeqb, *cmpeqb_internal): Delete, move to...
6203 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6204 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6205 cmpeqb, *cmpeqb_internal): ... here.
6206
6207 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6208
6209 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6210 intrinsics if __ARM_FP.
6211 Use __ARM_FEATURE_CRC32 ifdef guard.
6212
6213 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6214
6215 * config/arm/arm.md (neon_for_64bits): Remove.
6216 (avoid_neon_for_64bits): Remove.
6217 (arm_adddi3): Always split early.
6218 (arm_subdi3): Always split early.
6219 (negdi2): Remove Neon expansion.
6220 (split zero_extend): Split before reload.
6221 (split sign_extend): Split before reload.
6222
6223 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6224
6225 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6226 (qhs_extenddi_cstr): Likewise.
6227 * config/arm/arm.md (ashldi3): Always expand early.
6228 (ashlsi3): Likewise.
6229 (ashrsi3): Likewise.
6230 (zero_extend<mode>di2): Remove Neon variants.
6231 (extend<mode>di2): Likewise.
6232 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6233 (signed_shift_di3_neon): Likewise.
6234 (unsigned_shift_di3_neon): Likewise.
6235 (ashrdi3_neon_imm_noclobber): Likewise.
6236 (lshrdi3_neon_imm_noclobber): Likewise.
6237 (<shift>di3_neon): Likewise.
6238 (split extend): Remove DI extend split patterns.
6239
6240 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6241
6242 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6243 (split not): Add DImode not splitter.
6244 (anddi3): Remove pattern.
6245 (anddi3_insn): Likewise.
6246 (anddi_zesidi_di): Likewise.
6247 (anddi_sesdi_di): Likewise.
6248 (anddi_notdi_di): Likewise.
6249 (anddi_notzesidi_di): Likewise.
6250 (anddi_notsesidi_di): Likewise.
6251 (iordi3): Likewise.
6252 (iordi3_insn): Likewise.
6253 (iordi_zesidi_di): Likewise.
6254 (iordi_sesidi_di): Likewise.
6255 (xordi3): Likewise.
6256 (xordi3_insn): Likewise.
6257 (xordi_sesidi_di): Likewise.
6258 (xordi_zesidi_di): Likewise.
6259 (one_cmpldi2): Likewise.
6260 (one_cmpldi2_insn): Likewise.
6261 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6262 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6263 alternative.
6264 (iwmmxt_xordi3): Likewise.
6265 (iwmmxt_anddi3): Likewise.
6266 * config/arm/neon.md (orndi3_neon): Remove pattern.
6267 (anddi_notdi_di): Likewise.
6268 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6269 (arm_iordi_operand_neon): Likewise.
6270 (arm_xordi_operand_neon): Likewise.
6271 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6272 (iordi_notzesidi_di): Likewise.
6273 (iordi_notdi_zesidi): Likewise.
6274 (iordi_notsesidi_di): Likewise.
6275
6276 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6277
6278 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6279 insn.
6280 (iorsi3_compare0_scratch): Likewise.
6281
6282 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6283
6284 * config/aarch64/aarch64-simd-builtins.def:
6285 (ld1x4): New.
6286 (st1x4): Likewise.
6287 * config/aarch64/aarch64-simd.md:
6288 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6289 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6290 (aarch64_ld1_x4_<mode>): Likewise.
6291 (aarch64_st1_x4_<mode>): Likewise.
6292 * config/aarch64/arm_neon.h:
6293 (vld1_s8_x4): New function.
6294 (vld1q_s8_x4): Likewise.
6295 (vld1_s16_x4): Likewise.
6296 (vld1q_s16_x4): Likewise.
6297 (vld1_s32_x4): Likewise.
6298 (vld1q_s32_x4): Likewise.
6299 (vld1_u8_x4): Likewise.
6300 (vld1q_u8_x4): Likewise.
6301 (vld1_u16_x4): Likewise.
6302 (vld1q_u16_x4): Likewise.
6303 (vld1_u32_x4): Likewise.
6304 (vld1q_u32_x4): Likewise.
6305 (vld1_f16_x4): Likewise.
6306 (vld1q_f16_x4): Likewise.
6307 (vld1_f32_x4): Likewise.
6308 (vld1q_f32_x4): Likewise.
6309 (vld1_p8_x4): Likewise.
6310 (vld1q_p8_x4): Likewise.
6311 (vld1_p16_x4): Likewise.
6312 (vld1q_p16_x4): Likewise.
6313 (vld1_s64_x4): Likewise.
6314 (vld1_u64_x4): Likewise.
6315 (vld1_p64_x4): Likewise.
6316 (vld1q_s64_x4): Likewise.
6317 (vld1q_u64_x4): Likewise.
6318 (vld1q_p64_x4): Likewise.
6319 (vld1_f64_x4): Likewise.
6320 (vld1q_f64_x4): Likewise.
6321 (vst1_s8_x4): Likewise.
6322 (vst1q_s8_x4): Likewise.
6323 (vst1_s16_x4): Likewise.
6324 (vst1q_s16_x4): Likewise.
6325 (vst1_s32_x4): Likewise.
6326 (vst1q_s32_x4): Likewise.
6327 (vst1_u8_x4): Likewise.
6328 (vst1q_u8_x4): Likewise.
6329 (vst1_u16_x4): Likewise.
6330 (vst1q_u16_x4): Likewise.
6331 (vst1_u32_x4): Likewise.
6332 (vst1q_u32_x4): Likewise.
6333 (vst1_f16_x4): Likewise.
6334 (vst1q_f16_x4): Likewise.
6335 (vst1_f32_x4): Likewise.
6336 (vst1q_f32_x4): Likewise.
6337 (vst1_p8_x4): Likewise.
6338 (vst1q_p8_x4): Likewise.
6339 (vst1_p16_x4): Likewise.
6340 (vst1q_p16_x4): Likewise.
6341 (vst1_s64_x4): Likewise.
6342 (vst1_u64_x4): Likewise.
6343 (vst1_p64_x4): Likewise.
6344 (vst1q_s64_x4): Likewise.
6345 (vst1q_u64_x4): Likewise.
6346 (vst1q_p64_x4): Likewise.
6347 (vst1_f64_x4): Likewise.
6348 (vst1q_f64_x4): Likewise.
6349
6350 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6351
6352 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6353
6354 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6355 Richard Sandiford <richard.sandiford@arm.com>
6356
6357 PR target/88839
6358 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6359 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6360
6361 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6362
6363 PR target/90724
6364 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6365 in reg if it fails aarch64_plus_operand predicate.
6366
6367 2019-08-21 Richard Biener <rguenther@suse.de>
6368
6369 PR tree-optimization/91482
6370 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6371 BUILT_IN_ASSUME_ALIGNED calls.
6372
6373 2019-08-21 Richard Biener <rguenther@suse.de>
6374
6375 PR target/91498
6376 PR target/91503
6377 * config/i386/i386-features.c
6378 (general_scalar_chain::make_vector_copies): Copy stack temporary
6379 rtx when using it multiple times.
6380 (general_scalar_chain::convert_reg): Likewise.
6381
6382 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6383
6384 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6385
6386 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6387
6388 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6389 catch more redundant zero initialization cases.
6390 (dse_dom_walker::dse_optimize_stmt): Likewise.
6391
6392 2019-08-20 Richard Biener <rguenther@suse.de>
6393
6394 PR lto/91307
6395 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6396 by collect2 when targetm.have_ctors_dtors which avoids dragging
6397 in temporary filenames from LTO input objects.
6398
6399 2019-08-20 Richard Biener <rguenther@suse.de>
6400
6401 PR tree-optimization/37242
6402 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6403 to (T)a + (T)b if we know that a + b does not overflow.
6404
6405 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6406
6407 PR rtl-optimization/91347
6408 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6409 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6410
6411 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6412
6413 * calls.h (function_arg_info): Add a pass_by_reference field,
6414 defaulting to false.
6415 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6416 when applying pass-by-reference semantics.
6417 (initialize_argument_information): Likewise.
6418 (emit_library_call_value_1): Likewise.
6419 * function.c (assign_parm_data_one): Remove passed_pointer field.
6420 (assign_parm_find_data_types): Don't set it.
6421 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6422 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6423 arg.pass_by_reference instead of passed_pointer.
6424
6425 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6426
6427 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6428 into a single function_arg_info, updating its fields when we
6429 apply pass-by-reference and promotion semantics. Use the
6430 function_arg_info to track the mode rather than keeping it in
6431 a separate local variable.
6432 (initialize_argument_information): Likewise. Base the final
6433 arg_to_skip on this new function_arg_info rather than creating
6434 a new one from scratch.
6435
6436 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6437
6438 * function.c (assign_parm_data_one): Replace passed_type,
6439 promoted_mode and named_arg with a function_arg_info field.
6440 (assign_parm_find_data_types): Remove local variables and
6441 assign directly to "data". Make data->passed_mode shadow
6442 data->arg.mode until promotion, then assign the promoted
6443 mode to data->arg.mode.
6444 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6445 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6446 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6447 (assign_parm_setup_block, assign_parm_setup_reg)
6448 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6449 arg.mode instead of promoted_mode, arg.type instead of passed_type
6450 and arg.named instead of named_arg. Use data->arg for
6451 function_arg_info structures that had the field values passed_type,
6452 promoted_mode and named_arg. Base other function_arg_infos on
6453 data->arg, changing the necessary properties.
6454
6455 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6456
6457 * calls.h (apply_pass_by_reference_rules): Declare.
6458 * calls.c (apply_pass_by_reference_rules): New function.
6459 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6460 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6461 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6462 * function.c (assign_parm_find_data_types): Likewise.
6463 * var-tracking.c (prepare_call_arguments): Likewise.
6464
6465 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6466
6467 * target.def (must_pass_in_stack): Take a function_arg_info instead
6468 of a mode and a type.
6469 * doc/tm.texi: Regenerate.
6470 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6471 instead of a mode and a type.
6472 (must_pass_in_stack_var_size_or_pad): Likewise.
6473 * calls.c (must_pass_in_stack_var_size): Likewise.
6474 (must_pass_in_stack_var_size_or_pad): Likewise.
6475 (initialize_argument_information): Update call to
6476 targetm.calls.must_pass_in_stack.
6477 (must_pass_va_arg_on_stack): Likewise.
6478 * function.c (assign_parm_find_entry_rtl): Likewise.
6479 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6480 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6481 (alpha_function_arg_advance): Likewise.
6482 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6483 (cr16_function_arg_advance): Likewise.
6484 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6485 (cris_arg_partial_bytes): Likewise.
6486 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6487 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6488 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6489 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6490 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6491 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6492 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6493 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6494 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6495 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6496 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6497 instead of a mode and a type.
6498 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6499 (fr30_num_arg_regs): Likewise.
6500 (fr30_setup_incoming_varargs): Update calls accordingly.
6501 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6502 (fr30_function_arg_advance): Likewise.
6503 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6504 instead of a mode and a type.
6505 * config/gcn/gcn.c (num_arg_regs): Likewise.
6506 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6507 num_arg_regs and targetm.calls.must_pass_in_stack.
6508 (gcn_arg_partial_bytes): Likewise.
6509 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6510 function_arg_info instead of a mode and a type.
6511 (classify_argument): Update call accordingly.
6512 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6513 function_arg_info instead of a mode and a type.
6514 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6515 Likewise.
6516 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6517 (rs6000_parm_needs_stack): Update call accordingly.
6518 (setup_incoming_varargs): Likewise.
6519
6520 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6521
6522 * target.def (callee_copies): Take a function_arg_info instead
6523 of a mode, type and named flag.
6524 * doc/tm.texi: Regenerate.
6525 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6526 instead of a mode, type and named flag.
6527 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6528 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6529 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6530 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6531 instead of a mode, type and named flag.
6532 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6533 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6534 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6535 * calls.h (reference_callee_copied): Take a function_arg_info
6536 instead of a mode, type and named flag.
6537 * calls.c (reference_callee_copied): Likewise.
6538 (initialize_argument_information): Update call accordingly.
6539 (emit_library_call_value_1): Likewise.
6540 * function.c (gimplify_parameters): Likewise.
6541 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6542 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6543 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6544 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6545 (TARGET_CALLEE_COPIES): Define to
6546 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6547 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6548 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6549 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6550 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6551 instead of a mode, type and named flag.
6552 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6553 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6554 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6555 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6556 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6557 (TARGET_CALLEE_COPIES): Define to
6558 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6559 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6560 instead of a mode, type and named flag.
6561 * config/sh/sh.c (sh_callee_copies): Likewise.
6562 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6563 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6564 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6565
6566 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6567
6568 * target.def (function_arg_advance): Take a function_arg_info instead
6569 of a mode, type and named flag.
6570 * doc/tm.texi: Regenerate.
6571 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6572 instead of a mode, type and named flag.
6573 * targhooks.c (default_function_arg_advance): Likewise.
6574 * calls.c (initialize_argument_information): Update call to
6575 targetm.calls.function_arg_advance.
6576 (emit_library_call_value_1): Likewise.
6577 * dse.c (get_call_args): Likewise.
6578 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6579 * function.c (assign_parms, gimplify_parameters): Likewise.
6580 * var-tracking.c (prepare_call_arguments): Likewise.
6581 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6582 function_arg_info instead of a mode, type and named flag.
6583 (aarch64_setup_incoming_varargs): Update call accordingly.
6584 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6585 function_arg_info instead of a mode, type and named flag.
6586 (alpha_setup_incoming_varargs): Update call accordingly.
6587 * config/arc/arc.c (arc_function_arg_advance): Take a
6588 function_arg_info instead of a mode, type and named flag.
6589 (arc_setup_incoming_varargs): Update call accordingly.
6590 * config/arm/arm.c (arm_function_arg_advance): Take a
6591 function_arg_info instead of a mode, type and named flag.
6592 (cmse_func_args_or_return_in_stack): Update call accordingly.
6593 (arm_function_ok_for_sibcall): Likewise.
6594 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6595 * config/avr/avr.c (avr_function_arg_advance): Take a
6596 function_arg_info instead of a mode, type and named flag.
6597 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6598 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6599 (c6x_call_saved_register_used): Update call accordingly.
6600 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6601 function_arg_info instead of a mode, type and named flag.
6602 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6603 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6604 (csky_setup_incoming_varargs): Update call accordingly.
6605 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6606 function_arg_info instead of a mode, type and named flag.
6607 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6608 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6609 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6610 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6611 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6612 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6613 (ix86_setup_incoming_varargs): Update call accordingly.
6614 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6615 function_arg_info instead of a mode, type and named flag.
6616 (ia64_setup_incoming_varargs): Update call accordingly.
6617 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6618 function_arg_info instead of a mode, type and named flag.
6619 (iq2000_expand_prologue): Update call accordingly.
6620 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6621 function_arg_info instead of a mode, type and named flag.
6622 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6623 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6624 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6625 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6626 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6627 Likewise.
6628 (microblaze_expand_prologue): Update call accordingly.
6629 * config/mips/mips.c (mips_function_arg_advance): Take a
6630 function_arg_info instead of a mode, type and named flag.
6631 (mips_setup_incoming_varargs): Update call accordingly.
6632 (mips_output_args_xfer): Likewise.
6633 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6634 function_arg_info instead of a mode, type and named flag.
6635 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6636 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6637 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6638 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6639 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6640 (nios2_setup_incoming_varargs): Update call accordingly.
6641 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6642 function_arg_info instead of a mode, type and named flag.
6643 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6644 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6645 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6646 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6647 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6648 (riscv_setup_incoming_varargs): Update call accordingly.
6649 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6650 function_arg_info instead of a mode, type and named flag.
6651 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6652 Likewise.
6653 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6654 (rs6000_parm_needs_stack): Update call accordingly.
6655 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6656 instead of a mode, type and named flag.
6657 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6658 (s390_call_saved_register_used): Update call accordingly.
6659 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6660 instead of a mode, type and named flag.
6661 (sh_output_mi_thunk): Update call accordingly.
6662 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6663 function_arg_info instead of a mode, type and named flag.
6664 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6665 (spu_setup_incoming_varargs): Update call accordingly.
6666 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6667 function_arg_info instead of a mode, type and named flag.
6668 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6669 (tilegx_setup_incoming_varargs): Update call accordingly.
6670 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6671 function_arg_info instead of a mode, type and named flag.
6672 (tilegx_setup_incoming_varargs): Update call accordingly.
6673 * config/v850/v850.c (v850_function_arg_advance): Take a
6674 function_arg_info instead of a mode, type and named flag.
6675 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6676 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6677 (visium_setup_incoming_varargs): Update call accordingly.
6678 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6679 function_arg_info instead of a mode, type and named flag.
6680
6681 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6682
6683 * target.def (function_arg, function_incoming_arg): Take a
6684 function_arg_info instead of a mode, tree and named flag.
6685 * doc/tm.texi: Regenerate.
6686 * targhooks.h (default_function_arg): Take a function_arg_info
6687 instead of a mode, tree and named flag.
6688 (default_function_incoming_arg): Likewise.
6689 * targhooks.c (default_function_arg): Likewise.
6690 (default_function_incoming_arg): Likewise.
6691 * calls.h (function_arg_info::end_marker_p): New function.
6692 (function_arg_info::end_marker): Likewise.
6693 * calls.c (prepare_call_address, initialize_argument_information)
6694 (expand_call, emit_library_call_value_1): Update calls to
6695 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6696 * dse.c: Include calls.h.
6697 (get_call_args): Update call to targetm.calls.function_arg.
6698 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6699 * var-tracking.c (prepare_call_arguments): Likewise.
6700 * function.c (assign_parm_find_entry_rtl): Update call to
6701 targetm.calls.function_incoming_arg.
6702 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6703 function_arg_info instead of a mode, tree and named flag.
6704 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6705 * config/arc/arc.c (arc_function_arg): Likewise.
6706 * config/arm/arm.c (arm_function_arg): Likewise.
6707 (cmse_func_args_or_return_in_stack): Update call accordingly.
6708 (arm_function_ok_for_sibcall): Likewise.
6709 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6710 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6711 instead of a mode, tree and named flag.
6712 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6713 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6714 (c6x_call_saved_register_used): Update call accordingly.
6715 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6716 instead of a mode, tree and named flag.
6717 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6718 (cris_function_arg_1): Likewise.
6719 * config/csky/csky.c (csky_function_arg): Likewise.
6720 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6721 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6722 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6723 (frv_function_arg_1): Likewise.
6724 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6725 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6726 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6727 * config/i386/i386.c (ix86_function_arg): Likewise.
6728 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6729 (ia64_function_arg_1): Likewise.
6730 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6731 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6732 accordingly.
6733 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6734 instead of a mode, tree and named flag.
6735 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6736 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6737 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6738 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6739 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6740 (microblaze_expand_prologue): Update call accordingly.
6741 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6742 instead of a mode, tree and named flag.
6743 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6744 (mmix_function_arg_1): Likewise.
6745 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6746 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6747 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6748 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6749 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6750 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6751 (nvptx_function_incoming_arg): Likewise.
6752 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6753 * config/pa/pa.c (pa_function_arg): Likewise.
6754 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6755 * config/pru/pru.c (pru_function_arg): Likewise.
6756 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6757 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6758 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6759 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6760 (rs6000_parm_needs_stack): Update call accordingly.
6761 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6762 instead of a mode, tree and named flag.
6763 * config/s390/s390.c (s390_function_arg): Likewise.
6764 (s390_call_saved_register_used): Update call accordingly.
6765 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6766 instead of a mode, tree and named flag.
6767 (sh_output_mi_thunk): Update call accordingly.
6768 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6769 (sparc_function_incoming_arg): Take a function_arg_info instead of
6770 a mode, tree and named flag.
6771 * config/spu/spu.c (spu_function_arg): Likewise.
6772 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6773 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6774 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6775 * config/v850/v850.c (v850_function_arg): Likewise.
6776 * config/vax/vax.c (vax_function_arg): Likewise.
6777 * config/visium/visium.c (visium_function_arg): Likewise.
6778 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6779 (xtensa_function_incoming_arg): Likewise.
6780
6781 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6782
6783 * target.def (setup_incoming_varargs): Take a function_arg_info
6784 instead of a mode and tree.
6785 * doc/tm.texi: Regenerate.
6786 * targhooks.h (default_setup_incoming_varargs): Take a
6787 function_arg_info instead of a mode and tree.
6788 * targhooks.c (default_setup_incoming_varargs): Likewise.
6789 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6790 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6791 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6792 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6793 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6794 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6795 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6796 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6797 Likewise.
6798 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6799 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6800 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6801 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6802 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6803 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6804 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6805 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6806 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6807 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6808 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6809 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6810 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6811 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6812 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6813 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6814 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6815 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6816 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6817 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6818 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6819 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6820 * function.c (assign_parms_setup_varargs): Update call to
6821 targetm.calls.setup_incoming_varargs.
6822
6823 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6824
6825 * target.def (pass_by_reference): Take a function_arg_info instead
6826 of a mode, type and named flag.
6827 * doc/tm.texi: Regenerate.
6828 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6829 accordingly.
6830 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6831 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6832 function_arg_info instead of a mode, type and named flag.
6833 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6834 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6835 mode, type and named flag.
6836 * calls.c (pass_by_reference): Likewise.
6837 (pass_va_arg_by_reference): Update call accordingly.
6838 (initialize_argument_information): Likewise.
6839 (emit_library_call_value_1): Likewise.
6840 * function.c (assign_parm_find_data_types): Likewise.
6841 * var-tracking.c (prepare_call_arguments): Likewise.
6842 * stor-layout.c: Include calls.h.
6843 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6844 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6845 function_arg_info instead of a mode, type and named flag.
6846 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6847 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6848 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6849 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6850 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6851 (c6x_call_saved_register_used): Update call to pass_by_reference.
6852 * config/cris/cris.c (cris_pass_by_reference): Take a
6853 function_arg_info instead of a mode, type and named flag.
6854 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6855 function_arg_info instead of a mode, type and named flag.
6856 (epiphany_arg_partial_bytes): Update call accordingly.
6857 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6858 function_arg_info instead of a mode, type and named flag.
6859 (ft32_arg_partial_bytes): Update call accordingly.
6860 * config/i386/i386.c (ix86_pass_by_reference): Take a
6861 function_arg_info instead of a mode, type and named flag.
6862 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6863 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6864 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6865 (m32r_return_in_memory): Update call accordingly.
6866 * config/mips/mips.c (mips_pass_by_reference): Take a
6867 function_arg_info instead of a mode, type and named flag.
6868 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6869 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6870 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6871 (moxie_arg_partial_bytes): Update call accordingly.
6872 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6873 function_arg_info instead of a mode, type and named flag.
6874 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6875 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6876 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6877 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6878 (riscv_return_in_memory): Update call accordingly.
6879 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6880 function_arg_info instead of a mode, type and named flag.
6881 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6882 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6883 * config/s390/s390.c (s390_pass_by_reference): Take a
6884 function_arg_info instead of a mode, type and named flag.
6885 (s390_call_saved_register_used): Update call accordingly.
6886 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6887 instead of a mode, type and named flag.
6888 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6889 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6890 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6891 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6892 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6893 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6894
6895 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6896
6897 * target.def (arg_partial_bytes): Take a function_arg_info instead
6898 of a mode, type and named flag.
6899 * doc/tm.texi: Regenerate.
6900 * target.h (function_arg_info): Declare.
6901 * calls.h (function_arg_info): New class.
6902 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6903 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6904 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6905 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6906 * calls.c (initialize_argument_information): Update call to
6907 targetm.calls.partial_bytes.
6908 (emit_library_call_value_1): Likewise.
6909 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6910 * function.c (assign_parm_find_entry_rtl): Likewise.
6911 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6912 function_arg_info instead of a mode, type and named flag.
6913 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6914 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6915 (cmse_func_args_or_return_in_stack): Update accordingly.
6916 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6917 function_arg_info instead of a mode, type and named flag.
6918 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6919 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6920 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6921 * config/fr30/fr30.c: Include calls.h.
6922 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6923 type and named flag.
6924 * config/frv/frv.c: Include calls.h.
6925 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6926 type and named flag.
6927 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6928 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6929 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6930 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6931 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6932 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6933 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6934 Likewise.
6935 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6936 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6937 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6938 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6939 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6940 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6941 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6942 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6943 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6944 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6945 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6946 (rs6000_parm_needs_stack): Update call accordingly.
6947 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6948 function_arg_info instead of a mode, type and named flag.
6949 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6950 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6951
6952 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6953
6954 * calls.h (must_pass_va_arg_in_stack): Declare.
6955 * calls.c (must_pass_va_arg_in_stack): New function.
6956 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6957 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6958 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6959 Likewise.
6960 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6961
6962 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6963
6964 * calls.h (pass_va_arg_by_reference): Declare.
6965 * calls.c (pass_va_arg_by_reference): New function.
6966 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6967 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6968 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6969 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6970 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6971 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6972 (mips_gimplify_va_arg_expr): Likewise.
6973 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6974 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6975 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6976 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6977 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6978 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6979 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6980 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6981 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6982 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6983 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6984
6985 2019-08-20 Richard Biener <rguenther@suse.de>
6986
6987 PR target/91498
6988 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6989 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6990 (convert_scalars_to_vector): Add timode_p parameter and use it
6991 to guard TImode-only operation.
6992 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6993 (pass_stv::execute): Pass down timode_p.
6994
6995 2019-08-20 Lili Cui <lili.cui@intel.com>
6996
6997 * common/config/i386/i386-common.c
6998 (processor_names): Add tigerlake and cooperlake.
6999 (processor_alias_table): Add tigerlake and cooperlake.
7000 * config.gcc: Add -march=tigerlake and cooperlake.
7001 * config/i386/driver-i386.c
7002 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7003 Add "has_avx" to classify processor.
7004 * config/i386/i386-builtins.c (processor_model) :
7005 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7006 (arch_names_table): Add tigerlake and cooperlake.
7007 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7008 and PROCESSOR_COOPERLAKE.
7009 * config/i386/i386-c.c
7010 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7011 * config/i386/i386-options.c
7012 (m_TIGERLAKE) : Define.
7013 (m_COOPERLAKE) : Ditto.
7014 (m_CORE_AVX512): Ditto.
7015 (processor_cost_table): Add cascadelake.
7016 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7017 * config/i386/i386.h
7018 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7019 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7020 (PTA_MOVDIRI): Ditto.
7021 (PTA_MOVDIR64B): Ditto.
7022 (PTA_COOPERLAKE) : Ditto.
7023 (PTA_TIGERLAKE) : Ditto.
7024 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7025 * doc/extend.texi: Add tigerlake and cooperlake.
7026 * doc/invoke.texi: Add tigerlake and cooperlake.
7027
7028 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7029
7030 * doc/install.texi (Specific, alpha): Remove note to use
7031 binutils 2.11.2 or later.
7032
7033 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7034
7035 PR middle-end/89544
7036 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7037 when possible.
7038
7039 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7040
7041 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7042 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7043 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7044 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7045 * config/aarch64/constraints.md (Dt): New constraint
7046 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7047
7048 2019-08-19 Richard Biener <rguenther@suse.de>
7049
7050 PR tree-optimization/91403
7051 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7052 cases we can handle with tail-recursion...
7053 (follow_ssa_edge_expr): ... here. Do so.
7054
7055 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7056
7057 PR target/91441
7058 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7059 implemented for -fsanitize=kernel-address, and merge check logic
7060 with -fsanitize=address.
7061
7062 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7063
7064 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7065 for cpu and machine. Factor 64/32b builtins.
7066
7067 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7068
7069 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7070 gone, point to sourceforge.net.
7071
7072 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7073
7074 * doc/ux.texi (User Experience Guidelines): Update reference.
7075
7076 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7077
7078 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7079 not LGPL".
7080
7081 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7082
7083 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7084 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7085
7086 2019-08-16 Martin Sebor <msebor@redhat.com>
7087
7088 * tree.def (TYPE_SIZE): Clarify.
7089 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7090
7091 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7092
7093 PR tree-optimization/91109
7094 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7095 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7096 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7097
7098 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7099
7100 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7101 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7102 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7103 (uavg<mode>3_ceil): New expander.
7104 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7105 mode iterator when creating CONST1_RTX.
7106 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7107 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7108 mode iterator for const1_operand predicate.
7109
7110 2019-08-16 Richard Biener <rguenther@suse.de>
7111
7112 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7113 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7114 follow_ssa_edge.
7115 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7116 (analyze_evolution_in_loop): Likewise.
7117 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7118 (follow_ssa_edge_expr): ... here. Refactor code.
7119
7120 2019-08-16 Richard Biener <rguenther@suse.de>
7121
7122 PR target/91469
7123 * config/i386/i386-features.c
7124 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7125
7126 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7127
7128 PR other/91255
7129 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7130 only if subst_name matches curr_attr string.
7131
7132 2019-08-16 Richard Biener <rguenther@suse.de>
7133
7134 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7135 stmt at gsi_p, instead replace it with a NOP removed later.
7136 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7137 that became dead because of that.
7138
7139 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7140
7141 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7142 for which we can't represent a range.
7143 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7144 set_varying.
7145 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7146 Set VR_UNDEFINED if type is not supported.
7147 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7148 * tree-vrp.c (value_range_base::check): Assert that a varying has
7149 min/max set.
7150 (value_range_base::equal_p): Early bail for undefines.
7151 (value_range_base::set_varying): Accept a type.
7152 (value_range::set_varying): Same.
7153 (value_range_base::type): VARYING can have a type, while UNDEFINE
7154 is typeless.
7155 (value_range_base::dump): Print type for VARYING nodes.
7156 (value_range_base::set): Add type to VARYING.
7157 (extract_range_from_multiplicative_op): Pass type to set_varying.
7158 (extract_range_from_binary_expr): Same.
7159 (value_range_base::intersect_helper): Same.
7160 (value_range_base::union_helper): Same.
7161 (value_range_base::normalize_symbolics): Same.
7162 (determine_value_range_1): Same.
7163 * tree-vrp.h (class value_range_base): Add type to set_varying.
7164 Add prototype for dump(void).
7165 Add prototype for supports_type_p.
7166 (class value_range): Add type to set_varying.
7167 Add prototype for dump(void).
7168 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7169 set_varying.
7170 (vr_values::get_lattice_entry): Set varying even if propagation
7171 finished.
7172 Pass type to set_varying.
7173 (vr_values::get_value_range): Remove vr_const_varying.
7174 Reallocate the lattice if needed.
7175 (vr_values::update_value_range): Pass type to set_varying.
7176 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7177 (vr_values::extract_range_from_binary_expr): Same.
7178 (vr_values::extract_range_from_unary_expr): Same.
7179 (vr_values::extract_range_from_cond_expr): Same.
7180 (vr_values::check_for_binary_op_overflow): Same.
7181 (vr_values::extract_range_basic): Same.
7182 (vr_values::extract_range_from_assignment): Same.
7183 (vr_values::vr_values): Increase size of num_vr_values.
7184 (vr_values::extract_range_from_phi_node): Pass type to
7185 set_varying.
7186
7187 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7188
7189 PR target/90878
7190 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7191 for costs of hard register moves.
7192 (ix86_register_move_cost): Likewise.
7193 * config/i386/i386.h (processor_costs): Move costs of hard
7194 register moves to hard_register. Add int_load, int_store,
7195 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7196 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7197 for costs of RTL expressions.
7198 * config/i386/x86-tune-costs.h: Move costs of hard register
7199 moves to hard_register. Duplicate int_load, int_store,
7200 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7201 sse_load, sse_store for costs of RTL expressions.
7202
7203 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7204
7205 * target.def (setup_incoming_vararg_bounds): Remove.
7206 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7207 * doc/tm.texi: Regenerate.
7208 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7209 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7210 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7211 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7212
7213 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7214
7215 MSP430: Fix lines over 80 characters long in
7216 config/msp430/*.{c,h} files
7217
7218 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7219 specifier in string.
7220 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7221 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7222 redundant old comment.
7223 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7224 Split line more than 80 characters long.
7225 * config/msp430/msp430.c (msp430_option_override): Likewise.
7226 (msp430_return_in_memory): Likewise.
7227 (msp430_gimplify_va_arg_expr): Likewise.
7228 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7229 (msp430_legitimate_constant): Likewise.
7230 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7231 (msp430_attr): Likewise.
7232 (msp430_data_attr): Likewise.
7233 (msp430_start_function): Likewise.
7234 (gen_prefix): Likewise.
7235 (msp430_init_sections): Likewise.
7236 (msp430_select_section): Likewise.
7237 (msp430_function_section): Likewise.
7238 (msp430_unique_section): Likewise.
7239 (msp430_output_aligned_decl_common): Likewise.
7240 (msp430_do_not_relax_short_jumps): Likewise.
7241 (msp430_init_builtins): Likewise.
7242 (msp430_expand_delay_cycles): Likewise.
7243 (msp430_expand_prologue): Likewise.
7244 (msp430_expand_epilogue): Likewise.
7245 (msp430_expand_helper): Likewise.
7246 (msp430_split_movsi): Likewise.
7247 (msp430_print_operand): Likewise.
7248 (msp430_return_addr_rtx): Likewise.
7249 (msp430x_extendhisi): Likewise.
7250 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7251 (ASM_SPEC): Likewise.
7252 Remove very obvious comments.
7253 (LIB_SPEC): Split line more than 80 characters long.
7254 (EH_RETURN_HANDLER_RTX): Likewise.
7255 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7256
7257 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7258
7259 MSP430: Fix whitespace errors and incorrect indentation in
7260 config/msp430/*.{c,h} files
7261
7262 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7263 (msp430_select_hwmult_lib): Likewise.
7264 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7265 (msp430_extract_mcu_data): Likewise.
7266 (struct t_msp430_mcu_data): Likewise.
7267 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7268 before left square bracket.
7269 (msp430_option_override): Fix indentation.
7270 (msp430_hard_regno_nregs_with_padding): Likewise.
7271 (msp430_initial_elimination_offset): Likewise.
7272 (msp430_special_register_convention_p): Remove whitespace before left
7273 square bracket and after exclamation mark.
7274 (msp430_evaluate_arg): Likewise.
7275 (msp430_callee_copies): Fix indentation.
7276 (msp430_gimplify_va_arg_expr): Likewise.
7277 (msp430_function_arg_advance): Remove whitespace before left square
7278 bracket.
7279 (reg_ok_for_addr): Likewise.
7280 (msp430_preserve_reg_p): Likewise.
7281 (msp430_compute_frame_info): Likewise.
7282 (msp430_asm_output_addr_const_extra): Add space between function name
7283 and open parenthesis.
7284 (has_section_name): Fix indentation.
7285 (msp430_attr): Remove trailing whitespace.
7286 (msp430_section_attr): Likewise.
7287 (msp430_data_attr): Likewise.
7288 (struct msp430_attribute_table): Fix comment and whitespace.
7289 (msp430_start_function): Remove whitespace before left square bracket.
7290 Add space between function name and open parenthesis.
7291 (msp430_select_section): Remove trailing whitespace.
7292 (msp430_section_type_flags): Remove trailing whitespace.
7293 (msp430_unique_section): Remove space before closing parenthesis.
7294 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7295 (msp430_builtins): Remove whitespace before left square bracket.
7296 (msp430_init_builtins): Fix indentation.
7297 (msp430_expand_prologue): Remove whitespace before left square bracket.
7298 Remove space before closing parenthesis.
7299 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7300 (msp430_split_movsi): Remove space before closing parenthesis.
7301 (helper_function_name_mappings): Fix indentation.
7302 (msp430_use_f5_series_hwmult): Fix whitespace.
7303 (use_32bit_hwmult): Likewise.
7304 (msp430_no_hwmult): Likewise.
7305 (msp430_output_labelref): Remove whitespace before left square bracket.
7306 (msp430_print_operand_raw): Likewise.
7307 (msp430_print_operand_addr): Likewise.
7308 (msp430_print_operand): Add two spaces after '.' in comment.
7309 Fix trailing whitespace.
7310 (msp430x_extendhisi): Fix indentation.
7311 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7312 tab.
7313 (PC_REGNUM): Likewise.
7314 (STACK_POINTER_REGNUM): Likewise.
7315 (CC_REGNUM): Likewise.
7316
7317 2019-08-15 Richard Biener <rguenther@suse.de>
7318
7319 PR target/91454
7320 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7321 helper.
7322 (general_scalar_chain::make_vector_copies): Use it.
7323
7324 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7325
7326 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7327
7328 2019-08-15 Martin Liska <mliska@suse.cz>
7329
7330 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7331 operators with no arguments.
7332 (eliminate_unnecessary_stmts): Likewise here.
7333
7334 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7335
7336 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7337 <case COMPARE>: Revert 2019-08-14 change.
7338 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7339 for (TARGET_64BIT || mode != DImode).
7340
7341 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7342
7343 * tree-vrp.c (value_range_base::set): Merge in code from
7344 value_range_base::set_and_canonicalize.
7345 Enforce canonicalization at set time.
7346 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7347 (value_range_base::set_undefined): Inline call to set().
7348 (value_range_base::set_varying): Same.
7349 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7350 (vrp_val_max): New argument handle_pointers.
7351 (vrp_val_min): Same.
7352 (ranges_from_anti_range): Same.
7353 (extract_range_into_wide_ints): Use tree argument instead of sign
7354 and precision.
7355 (extract_range_from_multiplicative_op): Take in tree type instead
7356 of precision and sign. Adapt function for canonicalized ranges.
7357 (extract_range_from_binary_expr): Pass type to
7358 extract_range_from_multiplicative_op.
7359 Adapt for canonicalized ranges.
7360 (extract_range_from_unary_expr): Same.
7361 (value_range_base::intersect_helper): Adjust for canonicalized
7362 ranges.
7363 (value_range_base::union_helper): Same.
7364 (value_range_base::normalize_symbolics): New.
7365 * tree-vrp.h (class value_range_base): Remove
7366 set_and_canonicalize.
7367 New prototype for normalize_symbolics.
7368 (class value_range): Remove set_and_canonicalize.
7369 (vrp_val_min): Adjust prototype.
7370 (vrp_val_max): Same.
7371 * vr-values.c
7372 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7373 instead of set_and_canonicalize.
7374
7375 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7376
7377 PR middle-end/91444
7378 * tree-vect-stmts.c (vectorizable_call): Check that the function
7379 is a BUILT_IN_MD function before passing it to
7380 targetm.vectorize.builtin_md_vectorized_function.
7381
7382 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7383
7384 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7385 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7386 (aarch64_select_early_remat_modes): Use it.
7387
7388 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7389
7390 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7391 16 for SVE predicates even if they are fixed-length.
7392
7393 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7394
7395 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7396 operand order match the MOV /Z alias.
7397
7398 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7399
7400 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7401 the vector pattern as an aarch64_svpattern argument. Update the
7402 overloaded caller accordingly.
7403 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7404 (aarch64_output_sve_vector_inc_dec): Likewise.
7405
7406 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7407
7408 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7409 multiplication case, try to compute VG * (lowest set bit) directly
7410 rather than always basing the multiplication on VG. Use
7411 expand_mult for the multiplication if we can.
7412
7413 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7414
7415 * config/aarch64/aarch64-protos.h
7416 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7417 (aarch64_sve_inc_dec_immediate_p): Rename to...
7418 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7419 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7420 (aarch64_output_sve_scalar_inc_dec): Declare.
7421 (aarch64_output_sve_inc_dec_immediate): Rename to...
7422 (aarch64_output_sve_vector_inc_dec): ...this.
7423 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7424 (aarch64_output_sve_scalar_inc_dec): New functions.
7425 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7426 arguments. Only handle true ADDVL and ADDPL instructions;
7427 don't emit an INC or DEC.
7428 (aarch64_sve_inc_dec_immediate_p): Rename to...
7429 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7430 (aarch64_output_sve_inc_dec_immediate): Rename to...
7431 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7432 aarch64_sve_vector_inc_dec_immediate_p.
7433 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7434 (aarch64_sve_plus_immediate): New predicates.
7435 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7436 rather than aarch64_sve_addvl_addpl_immediate.
7437 (aarch64_sve_inc_dec_immediate): Rename to...
7438 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7439 aarch64_sve_vector_inc_dec_immediate_p.
7440 (aarch64_sve_add_operand): Update accordingly.
7441 * config/aarch64/constraints.md (Uai): New constraint.
7442 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7443 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7444 operand into a register if it satisfies aarch64_sve_plus_immediate.
7445 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7446 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7447 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7448 aarch64_output_sve_vector_inc_dec instead of
7449 aarch64_output_sve_inc_dec_immediate.
7450
7451 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7452
7453 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7454 (UNSPEC_REVW): New constants.
7455 (elem_bits): New mode attribute.
7456 (SVE_INT_UNARY): New int iterator.
7457 (optab): Handle UNSPEC_REV[BHW].
7458 (sve_int_op): New int attribute.
7459 (min_elem_bits): Handle VNx16QI and the predicate modes.
7460 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7461 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7462 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7463 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7464 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7465 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7466 unspecs based on the total width of the reversed data.
7467 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7468 reinterpret followed by a subreg on big-endian targets.
7469
7470 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7471 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7472
7473 * config/aarch64/aarch64-sve.md
7474 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7475 alternatives in which one of the inputs is in the same register
7476 as the output.
7477
7478 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7479
7480 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7481 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7482
7483 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7484
7485 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7486 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7487
7488 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7489 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7490
7491 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7492 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7493 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7494
7495 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7496 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7497
7498 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7499 Add an alternative that uses reversed shifts.
7500
7501 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7502
7503 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7504 struct.
7505
7506 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7507
7508 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7509 a commutativity marker.
7510
7511 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7512 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7513
7514 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7515 (aarch64_prepare_sve_cond_int_fma): Declare.
7516 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7517 (aarch64_prepare_sve_int_fma): New functions.
7518 (aarch64_prepare_sve_cond_int_fma): Likewise.
7519 * config/aarch64/aarch64-sve.md
7520 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7521 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7522 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7523 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7524 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7525 (*madd<mode>): Rename to...
7526 (*fma<mode>4): ...this.
7527 (*msub<mode>): Rename to...
7528 (*fnma<mode>4): ...this.
7529
7530 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7531 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7532
7533 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7534 Print 2.0 naturally.
7535 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7536 * config/aarch64/predicates.md
7537 (aarch64_sve_float_negated_arith_immediate): New predicate,
7538 renamed from aarch64_sve_float_arith_with_sub_immediate.
7539 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7540 positive and negative constants.
7541 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7542 or an aarch64_sve_float_arith_with_sub_immediate.
7543 * config/aarch64/constraints.md (vsN): Use
7544 aarch64_sve_float_negated_arith_immediate.
7545 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7546 iterator.
7547 (sve_pred_fp_rhs2_immediate): New int attribute.
7548 * config/aarch64/aarch64-sve.md
7549 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7550 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7551 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7552 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7553 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7554 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7555
7556 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7557 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7558
7559 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7560 (*aarch64_cond_abd<SVE_F:mode>_3)
7561 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7562
7563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7564 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7565
7566 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7567 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7568
7569 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7570 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7571
7572 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7573 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7574 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7575 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7576 optabs.
7577 * optabs.h (create_convert_operand_from): Expand comment.
7578 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7579 when mapping scalar rtxes to vector operands.
7580 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7581 ashiftrt and lshiftrt.
7582 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7583 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7584 (*cond_<optab><mode>_any_const): New patterns.
7585
7586 2019-08-15 Martin Liska <mliska@suse.cz>
7587
7588 PR ipa/91438
7589 * cgraph.c (cgraph_node::remove): When setting
7590 n->origin = NULL for all nested functions, reset
7591 also next_nested.
7592
7593 2019-08-15 Martin Liska <mliska@suse.cz>
7594
7595 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7596 and next_nested.
7597
7598 2019-08-15 Martin Liska <mliska@suse.cz>
7599
7600 PR ipa/91404
7601 * passes.c (order): Remove.
7602 (uid_hash_t): Likewise).
7603 (remove_cgraph_node_from_order): Remove from set
7604 of pointers (cgraph_node *).
7605 (insert_cgraph_node_to_order): New.
7606 (duplicate_cgraph_node_to_order): New.
7607 (do_per_function_toporder): Register all 3 cgraph hooks.
7608 Skip removed_nodes now as we know about all of them.
7609
7610 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7611
7612 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7613 <case E_V8QImode>: Use vector_set path for
7614 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7615 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7616 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7617
7618 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7619
7620 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7621
7622 2019-08-14 Martin Sebor <msebor@redhat.com>
7623
7624 PR tree-optimization/91294
7625 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7626 source length as exact.
7627
7628 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7629
7630 * doc/extend.texi: Add "noinit" attribute documentation.
7631 * doc/sourcebuild.texi: Add noinit effective target documentation.
7632 * varasm.c (default_section_type_flags): Add support for "noinit"
7633 section.
7634 (default_elf_select_section): Add support for "noinit" attribute.
7635 * config/msp430/msp430.c (msp430_attribute_table): Remove
7636 "noinit" entry.
7637
7638 2019-08-14 Richard Biener <rguenther@suse.de>
7639 Uroš Bizjak <ubizjak@gmail.com>
7640
7641 PR target/91154
7642 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7643 mode arguments.
7644 (scalar_chain::smode): New member.
7645 (scalar_chain::vmode): Likewise.
7646 (dimode_scalar_chain): Rename to...
7647 (general_scalar_chain): ... this.
7648 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7649 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7650 base with TImode and V1TImode.
7651 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7652 (general_scalar_chain::vector_const_cost): Adjust for SImode
7653 chains.
7654 (general_scalar_chain::compute_convert_gain): Likewise. Add
7655 {S,U}{MIN,MAX} support.
7656 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7657 (general_scalar_chain::make_vector_copies): Likewise. Handle
7658 non-DImode chains appropriately.
7659 (general_scalar_chain::convert_reg): Likewise.
7660 (general_scalar_chain::convert_op): Likewise.
7661 (general_scalar_chain::convert_insn): Likewise. Add
7662 fatal_insn_not_found if the result is not recognized.
7663 (convertible_comparison_p): Pass in the scalar mode and use that.
7664 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7665 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7666 (scalar_to_vector_candidate_p): Remove by inlining into single
7667 caller.
7668 (general_remove_non_convertible_regs): Rename from
7669 dimode_remove_non_convertible_regs.
7670 (remove_non_convertible_regs): Remove by inlining into single caller.
7671 (convert_scalars_to_vector): Handle SImode and DImode chains
7672 in addition to TImode chains.
7673 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7674 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7675 (*<maxmin>di3_doubleword): Likewise.
7676
7677 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7678 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7679
7680 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7681 (*cond_bic<mode>_any): New patterns.
7682
7683 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7684
7685 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7686 take the equivalent mask, as well as a bit count.
7687 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7688 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7689 (aarch64_sve_pred_and_operand): New predicates.
7690 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7691 code attribute.
7692 * config/aarch64/aarch64-sve.md
7693 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7694 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7695
7696 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7697
7698 * config/aarch64/aarch64-sve.md
7699 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7700 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7701 New patterns.
7702
7703 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7704 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7705
7706 * config/aarch64/aarch64-sve.md
7707 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7708 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7709
7710 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7711 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7712
7713 * config/aarch64/aarch64-sve.md
7714 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7715 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7716
7717 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7718
7719 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7720 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7721 New pattern.
7722
7723 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7724 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7725
7726 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7727
7728 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7729 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7730
7731 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7732 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7733 (aarch64_print_operand): Add support for %I.
7734 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7735 Bitcast floating-point constants to the corresponding integer constant.
7736 (aarch64_float_const_representable_p): Handle vectors as well
7737 as scalars.
7738 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7739 for the new vcond_mask_<mode><vpred> expander.
7740 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7741 test aarch64_float_const_representable_p.
7742 (aarch64_sve_reg_or_dup_imm): New predicate.
7743 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7744 gen_vcond_mask_<mode><vpred> instead of
7745 gen_aarch64_sve_dup<mode>_const.
7746 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7747 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7748 for operands 1 and 2 respectively. Force operand 2 into a
7749 register if operand 1 is a register. Fold old define_insn...
7750 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7751 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7752 floating-point constants that can be moved as integers. Add
7753 alternatives for MOV /M and FMOV /M.
7754 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7755 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7756 1 and 2 respectively.
7757 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7758 as scalars.
7759 (vss): New constraint.
7760
7761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7762
7763 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7764 (aarch64_sve_float_maxmin_operand): New predicates.
7765 * config/aarch64/constraints.md (vsB): New constraint.
7766 (vsM): Fix typo.
7767 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7768 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7769 UNSPEC_COND_FMINNM.
7770 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7771 Use aarch64_sve_float_maxmin_operand for operand 2.
7772 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7773 Add alternatives for the constant forms.
7774
7775 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7776
7777 * config/aarch64/constraints.md (vsb): New constraint.
7778 (vsm): Generalize description.
7779 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7780 iterator.
7781 (sve_imm_con): Handle smax, smin, umax and umin.
7782 (sve_imm_prefix): New code attribute.
7783 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7784 (aarch64_sve_vsb_operand): New predicates.
7785 (aarch64_sve_mul_immediate): Rename to...
7786 (aarch64_sve_vsm_immediate): ...this.
7787 (aarch64_sve_mul_operand): Rename to...
7788 (aarch64_sve_vsm_operand): ...this.
7789 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7790 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7791 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7792 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7793 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7794 add movprfx support for the immediate alternatives.
7795 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7796 of the above.
7797 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7798 for operand 3.
7799
7800 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7801
7802 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7803 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7804 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7805
7806 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7807
7808 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7809 (optab, sve_int_op): Handle them.
7810 * config/aarch64/aarch64-sve.md: Expand comment.
7811
7812 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7813
7814 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7815 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7816 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7817
7818 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7819
7820 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7821 (aarch64_expand_sve_const_pred_trn): New functions.
7822 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7823 use the above functions when the parameter is true.
7824 (aarch64_expand_sve_const_pred): Update call accordingly.
7825 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7826 Rename to...
7827 (@aarch64_sve_<perm_insn><mode>): ...this.
7828
7829 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7830
7831 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7832 Declare.
7833 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7834 (aarch64_sve_emit_int_cmp): New functions.
7835 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7836 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7837 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7838 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7839 (UNSPEC_PRED_Z): New unspec.
7840 (set_clobber_cc_nzc): Delete.
7841 * config/aarch64/aarch64-sve.md: Add a block comment about
7842 UNSPEC_PRED_Z.
7843 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7844 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7845 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7846 UNSPEC_MERGE_PTRUE.
7847 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7848 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7849 check for compatible predicates.
7850 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7851 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7852 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7853 comparisons above.
7854
7855 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7856
7857 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7858 * config/aarch64/aarch64-sve.md: Add a section describing it.
7859 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7860 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7861 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7862 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7863 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7864 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7865 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7866 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7867 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7868 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7869 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7870 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7871 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7872 (aarch64_evpc_rev_local): Update accordingly.
7873
7874 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7875
7876 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7877 iterators.
7878 (SVE_BHSI, SVE_SDI): Tweak comment.
7879 (SVE_HSDI): Likewise. Fix definition.
7880 (SVE_SDF): New mode iterator.
7881 (elem_bits): New mode attribute.
7882 (SVE_COND_FCVT): New int iterator.
7883 * config/aarch64/aarch64-sve.md
7884 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7885 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7886 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7887 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7888 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7889 ...these new patterns.
7890 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7891 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7892 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7893 Merge into...
7894 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7895 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7896 ...these new patterns.
7897 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7898 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7899 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7900 ...this new pattern.
7901 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7902 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7903 ...this new pattern.
7904 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7905
7906 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7907
7908 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7909 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7910 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7911 unspecs.
7912 (optab, su): Handle them.
7913 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7914 * config/aarch64/aarch64-sve.md
7915 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7916 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7917 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7918 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7919 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7920 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7921 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7922 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7923 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7924 FIXUORS.
7925 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7926 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7927 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7928 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7929 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7930 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7931 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7932 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7933 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7934 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7935 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7936 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7937 of UNSPEC_FLOAT_CONVERT.
7938 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7939 aarch64_sve_extend<mode><Vwide>2.
7940
7941 2019-08-14 Richard Biener <rguenther@suse.de>
7942
7943 PR target/91154
7944 * config/i386/i386-features.c
7945 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7946 individual instruction gain. Fix reg-reg copy GRP cost. Use
7947 ix86_cost->sse_op for vector instruction costs.
7948
7949 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7950
7951 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7952 (cmp_op): Handle it.
7953 (SVE_COND_FP_CMP): Rename to...
7954 (SVE_COND_FP_CMP_I0): ...this.
7955 (SVE_FP_CMP): Remove.
7956 * config/aarch64/aarch64-sve.md
7957 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7958 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7959 using unspecs to represent the comparison.
7960 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7961 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7962 accordingly.
7963 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7964 (aarch64_unspec_cond_code): Move after integer code. Handle
7965 UNORDERED.
7966 (aarch64_emit_sve_predicated_cond): Replace with...
7967 (aarch64_emit_sve_fp_cond): ...this new function.
7968 (aarch64_emit_sve_or_conds): Replace with...
7969 (aarch64_emit_sve_or_fp_conds): ...this new function.
7970 (aarch64_emit_sve_inverted_cond): Replace with...
7971 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7972 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7973
7974 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7975
7976 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7977 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7978 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7979 SVE_HSD instead of SVE_SD.
7980
7981 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7982 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7983
7984 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7985 iterator.
7986 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7987 attributes.
7988 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7989 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7990 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7991 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7992 (*div<SVE_F:mode>3): Generalize to...
7993 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7994
7995 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7996 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7997
7998 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7999 constants.
8000 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8001 predicate.
8002 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8003 Declare.
8004 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8005 function.
8006 * config/aarch64/aarch64-sve.md: Add a block comment about the
8007 handling of predicated FP operations.
8008 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8009 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8010 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8011 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8012 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8013 operand.
8014 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8015 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8016 operand.
8017 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8018 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8019 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8020 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8021 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8022 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8023 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8024 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8025 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8026 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8027 strictness operands. Use aarch64_sve_pred_dominates_p to check
8028 whether the predicate on the conditional operation is suitable
8029 for merging. Split patterns into the canonical equal-predicate form.
8030 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8031 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8032
8033 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8034 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8035
8036 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8037 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8038 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8039 rtx codes.
8040 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8041 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8042 unspecs.
8043
8044 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8045 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8046
8047 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8048 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8049 actually has, rather than relying on REG_EQUAL notes.
8050 Make the insn operand order match the SVE operand order.
8051 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8052 the SVE operand order.
8053
8054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8055
8056 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8057 (aarch64_emit_set_immediate): Likewise.
8058 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8059 (aarch64_pfalse_reg): Likewise.
8060 (aarch64_convert_sve_data_to_pred): New function.
8061 (aarch64_sve_move_pred_via_while): Take an optional target register
8062 and the required register mode.
8063 (aarch64_expand_sve_const_pred_1): New function.
8064 (aarch64_expand_sve_const_pred): Likewise.
8065 (aarch64_expand_mov_immediate): Build an all-true predicate
8066 if the significant bits of the immediate are all true. Use
8067 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8068 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8069 before register allocation.
8070 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8071 a VNx16BI PTRUE when splitting the memory alternative.
8072 (vec_duplicate<mode>): Update accordingly.
8073 (*pred_cmp<cmp_op><mode>): Rename to...
8074 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8075
8076 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8077
8078 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8079 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8080 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8081 (UNSPEC_PTEST): New unspec.
8082 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8083 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8084 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8085 * config/aarch64/aarch64-sve.md: Add a new section describing the
8086 handling of UNSPEC_PTEST.
8087 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8088 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8089 (ptest_ptrue<mode>): Replace with...
8090 (aarch64_ptest<mode>): ...this new pattern.
8091 (cbranch<mode>4): Update after above changes.
8092 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8093 UNSPEC_PTEST_PTRUE.
8094 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8095 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8096 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8097
8098 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8099
8100 PR lto/91287
8101 * builtins.c (builtin_with_linkage_p): New function.
8102 * builtins.h (builtin_with_linkage_p): New function.
8103 * symtab.c (write_symbol): Remove redundant assert.
8104 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8105 Remove FIXME and use builtin_with_linkage_p.
8106
8107 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8108
8109 PR middle-end/91421
8110 * tree-core.h (function_decl::function_code): Change type to
8111 unsigned int.
8112 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8113 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8114 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8115 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8116 is BUILT_IN_NORMAL.
8117 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8118 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8119 (fndecl_built_in_p): Change the type of the "name" argument to
8120 unsigned int.
8121 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8122 after check for DECL_BUILT_IN_CLASS.
8123 * cgraphclones.c (build_function_decl_skip_args): Use
8124 set_decl_built_in_function.
8125 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8126 * ipa-split.c (split_function): Likewise.
8127 * langhooks.c (add_builtin_function_common): Likewise.
8128 * omp-simd-clone.c (simd_clone_create): Likewise.
8129 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8130 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8131 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8132 DECL_FUNCTION_CODE.
8133 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8134 instead of DECL_FUNCTION_CODE.
8135 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8136 instead of DECL_FUNCTION_CODE.
8137 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8138 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8139 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8140 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8141 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8142 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8143 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8144 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8145 (alpha_gimple_fold_builtin): Likewise.
8146 * config/arc/arc.c (arc_expand_builtin): Likewise.
8147 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8148 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8149 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8150 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8151 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8152 * config/frv/frv.c (frv_expand_builtin): Likewise.
8153 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8154 (gcn_expand_builtin): Likewise.
8155 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8156 (fold_builtin_cpu): Likewise.
8157 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8158 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8159 (ix86_gimple_fold_builtin): Likewise.
8160 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8161 (ia64_expand_builtin): Likewise.
8162 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8163 * config/mips/mips.c (mips_expand_builtin): Likewise.
8164 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8165 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8166 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8167 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8168 * config/pa/pa.c (pa_expand_builtin): Likewise.
8169 * config/pru/pru.c (pru_expand_builtin): Likewise.
8170 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8171 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8172 Likewise.
8173 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8174 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8175 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8176 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8177 (rs6000_builtin_reciprocal): Likewise.
8178 * config/rx/rx.c (rx_expand_builtin): Likewise.
8179 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8180 * config/s390/s390.c (s390_expand_builtin): Likewise.
8181 * config/sh/sh.c (sh_expand_builtin): Likewise.
8182 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8183 (sparc_fold_builtin): Likewise.
8184 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8185 * config/spu/spu.c (spu_expand_builtin): Likewise.
8186 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8187 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8188 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8189 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8190 (xtensa_expand_builtin): Likewise.
8191
8192 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8193
8194 PR middle-end/91421
8195 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8196 before the DECL_FUNCTION_CODE.
8197 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8198 to check for a BUILT_IN_ALLOCA call.
8199 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8200 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8201 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8202 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8203 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8204 for BUILT_IN_NORMAL functions.
8205 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8206 test for BUILT_IN_TM_ABORT.
8207 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8208 to check for a BUILT_IN_STACK_RESTORE call.
8209 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8210 * tree-ssa-threadedge.c
8211 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8212 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8213 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8214 test for a BUILT_IN_NORMAL call instead of a negative test for
8215 an internal function call.
8216
8217 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8218
8219 * tree.h (build_vector_a_then_b): Declare.
8220 * tree.c (build_vector_a_then_b): New function.
8221 * fold-const-call.c (fold_while_ult): Likewise.
8222 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8223 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8224 (aarch64_svpattern): New enum.
8225 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8226 constants through aarch64_expand_mov_immediate.
8227 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8228 than general_operand as the predicate for operand 1.
8229 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8230 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8231 insn_type.
8232 (simd_immediate_info::simd_immediate_info): New overload that
8233 takes a scalar_int_mode and an svpattern.
8234 (simd_immediate_info::u): Add a "pattern" field.
8235 (svpattern_token): New function.
8236 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8237 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8238 (aarch64_sve_move_pred_via_while): New functions.
8239 (aarch64_expand_mov_immediate): Try using
8240 aarch64_sve_move_pred_via_while for predicates that contain N ones
8241 followed by M zeros but that do not correspond to a VLnnn pattern.
8242 (aarch64_sve_pred_valid_immediate): New function.
8243 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8244 with PTRUE and PFALSE.
8245 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8246 forms.
8247
8248 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8249
8250 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8251 flag.
8252 (darwin_override_options): Likewise.
8253 * config/darwin.h: Likewise.
8254 * config/darwin.opt: Likewise.
8255 * config/i386/i386.c (output_pic_addr_const): Likewise.
8256 * config/rs6000/darwin.h: Likewise.
8257 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8258 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8259 ... this TARGET_MACHO_SYMBOL_STUBS.
8260 (FUNCTION_PROFILER):Likewise.
8261 * config/i386/i386.h: Likewise.
8262
8263 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8264
8265 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8266 <case E_V2SImode>: Use vec_extr path for
8267 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8268 <case E_V8QImode>: Ditto.
8269 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8270 Use SWI48 mode iterator. Use %k to output operand 0.
8271 (*mmx_pextrw): New insn pattern.
8272 (*mmx_pextrb): Ditto.
8273 (*mmx_pextrb_zext): Ditto.
8274
8275 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8276
8277 * target.def (libc_has_function, libc_has_fast_function): Improve
8278 documentation strings.
8279 * doc/tm.texi: Regenerate.
8280
8281 2019-08-13 Caroline Tice <cmtice@google.com>
8282
8283 PR other/91396
8284 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8285 vtv_end.o or vtv_end_preinit.o files if !static.
8286
8287 2019-08-13 Olivier Hainque <hainque@adacore.com>
8288
8289 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8290
8291 2019-08-13 Olivier Hainque <hainque@adacore.com>
8292
8293 * rtlanal.c (tablejump_casesi_pattern): New function, to
8294 determine if a tablejump insn is a casesi dispatcher. Extracted
8295 from patch_jump_insn.
8296 * rtl.h (tablejump_casesi_pattern): Declare.
8297 * cfgrtl.c (patch_jump_insn): Use it.
8298 * dwarf2cfi.c (create_trace_edges): Use it.
8299
8300 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8301
8302 PR target/81800
8303 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8304 operand is larger than a long int.
8305
8306 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8307
8308 * machmode.h (opt_mode::else_mode): New function.
8309 (opt_mode::else_blk): Use it.
8310 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8311 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8312 (aarch64_gen_stepped_int_parallel): Likewise.
8313 (aarch64_stepped_int_parallel_p): Likewise.
8314 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8315 argument.
8316 * config/aarch64/aarch64.c
8317 (aarch64_expand_sve_widened_duplicate): Delete.
8318 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8319 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8320 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8321 argument. Use early returns in the !CONST_INT_P handling.
8322 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8323 than handling some inline.
8324 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8325 from...
8326 (aarch64_simd_container_mode): ...here.
8327 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8328 (aarch64_sve_ld1rq_operand_p): New functions.
8329 * config/aarch64/predicates.md (descending_int_parallel)
8330 (aarch64_sve_ld1rq_operand): New predicates.
8331 * config/aarch64/constraints.md (UtQ): New constraint.
8332 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8333 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8334 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8335 (@aarch64_sve_reinterpret<mode>): New expander.
8336 (*aarch64_sve_reinterpret<mode>): New pattern.
8337 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8338 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8339 (*sve_ld1rq<Vesize>): Replace with...
8340 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8341
8342 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8343
8344 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8345 16:12.
8346
8347 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8348
8349 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8350 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8351 (msp430_check_path_for_devices): New.
8352 (parse_devices_csv_1): New.
8353 (parse_devices_csv): New.
8354 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8355 MCU data in devices.csv before using the hard-coded data.
8356 Warn if devices.csv isn't found and the MCU wasn't found in the
8357 hard-coded data either.
8358 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8359 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8360 Search for devices.csv on -I and -L paths.
8361 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8362 msp430_set_driver_var.
8363 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8364 -mdevices-csv-loc=.
8365 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8366 searched for devices.csv.
8367 (mwarn-devices-csv): Document option.
8368
8369 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8370
8371 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8372 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8373 Use a single Dn alternative instead of separate Dz and Dm
8374 alternatives. Use aarch64_output_sve_move_immediate.
8375 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8376 function.
8377 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8378 for predicates too.
8379 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8380 (aarch64_output_ptrue): Delete.
8381
8382 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8383
8384 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8385 INDEX.
8386 (simd_immediate_info::value, simd_immediate_info::step)
8387 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8388 with...
8389 (simd_immediate_info::u): ...this new union.
8390 (simd_immediate_info::simd_immediate_info): Update accordingly.
8391 (aarch64_output_simd_mov_immediate): Likewise.
8392 (aarch64_output_sve_mov_immediate): Likewise.
8393
8394 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8395
8396 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8397 extra_gcc_objs.
8398 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8399 (msp430_select_cpu): New spec function.
8400 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8401 MCU data.
8402 * config/msp430/msp430-devices.c: New file.
8403 * config/msp430/msp430-devices.h: New file.
8404 * config/msp430/msp430.c: Remove msp430_mcu_data.
8405 (msp430_option_override): Use msp430_extract_mcu_data to extract
8406 MCU data.
8407 (msp430_use_f5_series_hwmult): Likewise.
8408 (use_32bit_hwmult): Likewise.
8409 (msp430_no_hwmult): Likewise.
8410 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8411 assembler.
8412 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8413 and -mcpu option.
8414 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8415 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8416 Remove hard-coded MCU multilib data.
8417
8418 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8419
8420 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8421 based on the mode instead of testing properties of it.
8422
8423 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8424
8425 * doc/md.texi: Document the x and y constraints for AArch64.
8426 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8427 (FP_LO8_REGS): New reg_class.
8428 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8429 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8430 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8431 * config/aarch64/predicates.md (aarch64_simd_register): Use
8432 FP_REGNUM_P instead of checking the classes manually.
8433 * config/aarch64/constraints.md (y): New constraint.
8434
8435 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8436
8437 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8438 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8439 * config/aarch64/aarch64-simd.md
8440 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8441 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8442 from the asm template.
8443 * config/aarch64/aarch64-sve.md
8444 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8445 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8446 from the asm template.
8447 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8448 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8449 from the asm template.
8450 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8451
8452 2019-08-13 Martin Liska <mliska@suse.cz>
8453
8454 * value-prof.c (gimple_ic_transform): Add new line.
8455 Print details with MSG_NOTE.
8456
8457 2019-08-13 Martin Liska <mliska@suse.cz>
8458
8459 * doc/invoke.texi: Document automatic detection of jobserver.
8460 * lto-wrapper.c (run_gcc): Detect jobserver always.
8461
8462 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8463
8464 * config/i386/i386-expand.c (ix86_expand_vector_set)
8465 <case E_V2SImode>: Use vec_merge path for
8466 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8467 <case E_V8QImode>: Ditto.
8468 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8469 (*mmx_pinsrb): Ditto.
8470
8471 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8472
8473 PR target/83250
8474 PR target/91340
8475 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8476 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8477 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8478 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8479 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8480
8481 2019-08-12 Richard Biener <rguenther@suse.de>
8482
8483 PR lto/91375
8484 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8485 flag_devirtualize.
8486
8487 2019-08-12 Richard Biener <rguenther@suse.de>
8488
8489 PR driver/91130
8490 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8491 lang_mask option, always use CL_DRIVER.
8492 (get_options_from_collect_gcc_options): Adjust.
8493 (find_and_merge_options): Likewise.
8494 (run_gcc): Likewise.
8495
8496 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8497
8498 * ipa-predicate.c (add_condition): Restore inverted test.
8499
8500 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8501
8502 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8503 (enum omp_clause_device_type_kind): New enum.
8504 (struct tree_omp_clause): Add subcode.device_type_kind.
8505 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8506 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8507 for device_type clause.
8508 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8509 * tree-pretty-print.c (dump_omp_clause): Likewise.
8510
8511 PR target/91408
8512 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8513 vector_operand.
8514
8515 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8516
8517 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8518 handling spilled pseudos.
8519
8520 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8521
8522 PR target/91386
8523 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8524 to preserve the contents of the original insns.
8525
8526 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8527
8528 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8529 (addsi3_compare_op2): Likewise.
8530
8531 2019-08-09 Martin Liska <mliska@suse.cz>
8532
8533 * alias.c (alias_ptr_types_compatible_p): Strengten
8534 type comparison in LTO mode.
8535
8536 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8537
8538 PR middle-end/90313
8539 * tree-tailcall.c (find_tail_calls): Reject calls that might
8540 read from an escaped RESULT_DECL.
8541
8542 2019-08-09 Martin Liska <mliska@suse.cz>
8543
8544 * doc/invoke.texi: Document the option value.
8545 * lto-wrapper.c (run_gcc): Set auto_parallel
8546 only with -flto=auto.
8547
8548 2019-08-09 Martin Liska <mliska@suse.cz>
8549
8550 * opts.c (common_handle_option): Error for an invalid argument
8551 to -flto=.
8552
8553 2019-08-09 Martin Liska <mliska@suse.cz>
8554
8555 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8556 use dump_printf to report optimization.
8557 (sem_variable::merge): Likwise.
8558 (sem_item_optimizer::merge_classes): Use dump_printf to report
8559 ICF hits.
8560
8561 2019-08-09 Martin Liska <mliska@suse.cz>
8562
8563 * value-prof.c (gimple_divmod_fixed_value_transform):
8564 Use dump_printf_loc.
8565 (gimple_mod_pow2_value_transform): Likewise.
8566 (gimple_mod_subtract_transform): Likewise.
8567 (init_node_map): Likewise.
8568 (gimple_ic_transform): Likewise.
8569 (gimple_stringops_transform): Likewise.
8570
8571 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8572
8573 * doc/extend.texi: Add const qualifier to ld intrinsics.
8574
8575 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8576
8577 * config/rs6000/dfp.md (D64_D128): Rename to ...
8578 (DDTD): ... this, throughout.
8579 (dfp_suffix): Rename to ...
8580 (q): ... this, throughout.
8581
8582 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8583
8584 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8585 (dfp_suffix): Ditto.
8586 (adddd3, addtd3): Merge to ...
8587 (add<mode>3 for D64_D128): ... this.
8588 (subdd3, subtd3): Merge to ...
8589 (sub<mode>3 for D64_D128): ... this.
8590 (muldd3, multd3): Merge to ...
8591 (mul<mode>3 for D64_D128): ... this.
8592 (divdd3, divtd3): Merge to ...
8593 (div<mode>3 for D64_D128): ... this.
8594 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8595 (*cmp<mode>_internal1 for D64_D128): ... this.
8596 (ftruncdd2, ftrunctd2): Merge to ...
8597 (ftrunc<mode>2 for D64_D128): ... this.
8598 (fixdddi2, fixtddi2): Merge to ...
8599 (fix<mode>di2 for D64_D128): ... this.
8600
8601 2019-08-08 Jim Wilson <jimw@sifive.com>
8602
8603 PR target/91229
8604 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8605 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8606 Pass into recursive call.
8607 (riscv_flatten_aggregate_argument): New arg. Pass to
8608 riscv_flatten_aggregate_field.
8609 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8610 riscv_flatten_aggregate_argument twice, with false and true as last
8611 arg. Process result twice. Compare results and warn if different.
8612 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8613
8614 2019-08-08 Martin Liska <mliska@suse.cz>
8615
8616 PR bootstrap/91352
8617 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8618 * lto-wrapper.c (jobserver_active_p): Likewise.
8619
8620 2019-08-08 Martin Liska <mliska@suse.cz>
8621
8622 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8623 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8624 (create_version_clone_with_body): Likewise.
8625
8626 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8627
8628 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8629 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8630 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8631 GOVD_EXPLICIT flags.
8632 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8633 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8634 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8635 call install_var_field with mask 11 instead of 3.
8636 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8637 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8638
8639 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8640
8641 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8642 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8643
8644 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8645
8646 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8647 MOVPRFX alternatives. Make the GPR alternatives more expensive
8648 than the FPR ones.
8649
8650 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8651
8652 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8653 Disparage the GPR alternative relative to the FPR one.
8654 Fix handling of 8-bit and 16-bit FPR values.
8655
8656 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8657
8658 * config/aarch64/iterators.md (BITWISEV): Delete.
8659 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8660 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8661 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8662 UNSPEC_FMINNMV, UNSPEC_FMINV.
8663 (bit_reduc_op): Delete.
8664 (sve_int_op): New int attribute.
8665 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8666 UNSPEC_FMINNMV, UNSPEC_FMINV.
8667 * config/aarch64/aarch64-sve.md
8668 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8669 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8670 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8671 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8672 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8673 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8674 new patterns.
8675 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8676 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8677 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8678 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8679 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8680 new patterns.
8681
8682 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8683
8684 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8685 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8686 (fms<mode>4, *fms<mode>4): Replace with...
8687 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8688 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8689 Use unspecs instead of rtx codes.
8690 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8691 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8692
8693 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8694
8695 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8696 int iterator.
8697 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8698 * config/aarch64/aarch64-sve.md
8699 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8700 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8701 use a single unspec for the rhs.
8702 (*<su><maxmin><mode>3): Delete.
8703 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8704
8705 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8706
8707 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8708 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8709 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8710 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8711 (optab, sve_fp_op): Handle them.
8712 (SVE_FP_UNARY): Delete.
8713 (optab): Remove sqrt entry.
8714 (sve_fp_op): Remove neg, abs and sqrt entries.
8715 (SVE_COND_FP_UNARY): New int iterator.
8716 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8717 (*<frint_pattern><mode>2): Delete.
8718 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8719 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8720 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8721 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8722
8723 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8724
8725 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8726
8727 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8728
8729 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8730 (UNSPEC_COND_FADD): ...this.
8731 (UNSPEC_COND_SUB): Rename to...
8732 (UNSPEC_COND_FSUB): ...this.
8733 (UNSPEC_COND_MUL): Rename to...
8734 (UNSPEC_COND_FMUL): ...this.
8735 (UNSPEC_COND_DIV): Rename to...
8736 (UNSPEC_COND_FDIV): ...this.
8737 (UNSPEC_COND_MAX): Rename to...
8738 (UNSPEC_COND_FMAXNM): ...this.
8739 (UNSPEC_COND_MIN): Rename to...
8740 (UNSPEC_COND_FMINNM): ...this.
8741 (UNSPEC_COND_LT): Rename to...
8742 (UNSPEC_COND_FCMLT): ...this.
8743 (UNSPEC_COND_LE): Rename to...
8744 (UNSPEC_COND_FCMLE): ...this.
8745 (UNSPEC_COND_EQ): Rename to...
8746 (UNSPEC_COND_FCMEQ): ...this.
8747 (UNSPEC_COND_NE): Rename to...
8748 (UNSPEC_COND_FCMNE): ...this.
8749 (UNSPEC_COND_GE): Rename to...
8750 (UNSPEC_COND_FCMGE): ...this.
8751 (UNSPEC_COND_GT): Rename to...
8752 (UNSPEC_COND_FCMGT): ...this.
8753 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8754 (sve_fp_op_rev): Update accordingly.
8755 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8756
8757 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8758
8759 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8760 banner comments.
8761 * config/aarch64/check-sve-md.awk: New file.
8762 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8763 (insn-conditions.md): Depend on it.
8764
8765 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8766
8767 PR target/91385
8768 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8769 (*negsi2_cmpz_zext): Ditto.
8770
8771 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8772
8773 * config/aarch64/iterators.md (commutative): Remove.
8774
8775 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8776
8777 PR driver/91130
8778 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8779 processing COLLECT_GCC_OPTIONS.
8780 (run_gcc): Likewise.
8781
8782 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8783
8784 PR tree-optimization/91109
8785 * lra-remat.c (update_scratch_ops): Remove assignment of the
8786 hard register.
8787
8788 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8789
8790 * data-streamer.h (streamer_write_poly_uint64): Declare.
8791 (streamer_read_poly_uint64): Likewise.
8792 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8793 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8794 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8795 (add_condition): Take a poly_int64 size.
8796 * ipa-predicate.c (add_condition): Likewise.
8797 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8798 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8799 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8800 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8801 condition::size as a poly_int64.
8802 (unmodified_parm_1): Take a poly_int64 size pointer.
8803 (unmodified_parm): Likewise.
8804 (unmodified_parm_or_parm_agg_item): Likewise.
8805 (set_cond_stmt_execution_predicate): Update accordingly.
8806 (set_switch_stmt_execution_predicate): Likewise.
8807 (will_be_nonconstant_expr_predicate): Likewise.
8808 (will_be_nonconstant_predicate): Likewise.
8809 (inline_read_section): Stream condition::size as a poly_int.
8810 (ipa_fn_summary_write): Likewise.
8811
8812 2019-08-07 Martin Liska <mliska@suse.cz>
8813
8814 * fold-const.c (twoval_comparison_p): Replace int
8815 with bool as a return type.
8816 (simple_operand_p): Likewise.
8817 (operand_equal_p): Replace int with bool as a return type.
8818 * fold-const.h (operand_equal_p): Likewise.
8819
8820 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8821
8822 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8823 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8824 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8825 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8826 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8827 * tree-pretty-print.c (dump_omp_clause): Likewise.
8828 * tree-nested.c (convert_nonlocal_omp_clauses,
8829 convert_local_omp_clauses): Likewise.
8830 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8831 Likewise.
8832 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8833 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8834 clause with array or reference to array types, no matter what type
8835 except for reference it has.
8836
8837 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8838
8839 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8840
8841 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8842
8843 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8844 (arch_canonicalize): Support rv32g and rv64g and fix error
8845 handling.
8846
8847 2019-08-06 Martin Liska <mliska@suse.cz>
8848
8849 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8850 and DECL_IS_OPERATOR_DELETE_P.
8851
8852 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8853
8854 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8855 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8856 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8857 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8858 (gimplify_omp_for): Don't do C++ random access iterator clause
8859 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8860 don't predetermine the artificial iterator in case of C++ random
8861 access iterators as lastprivate, but private. For OMP_LOOP, force
8862 bind expr around simd body and force for_pre_body before the
8863 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8864 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8865 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8866 diff var of C++ random access iterators. Handle
8867 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8868 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8869 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8870 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8871 * omp-low.c (lower_rec_input_clauses): For
8872 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8873 variables instead of default constructing them.
8874 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8875 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8876 is_taskloop_ctx check from the assert to the guarding condition.
8877
8878 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8879
8880 * config/riscv/multilib-generator: (canonical_order): New.
8881 (arch_canonicalize): Dito.
8882 Apply arch_canonicalize for alts.
8883
8884 2019-08-05 Martin Sebor <msebor@redhat.com>
8885
8886 * doc/extend.texi (Common Variable Attributes): Document alias
8887 attribute.
8888
8889 2019-08-05 Marek Polacek <polacek@redhat.com>
8890
8891 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8892 * doc/invoke.texi: Document -Wcomma-subscript.
8893
8894 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8895
8896 * tree-core.h (tree_function_decl): Make function_code an
8897 independent field. Group the remaining bitfields into bytes
8898 and move decl_type so that it contines to be at a byte boundary.
8899 Leave 12 bits for future expansion.
8900
8901 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8902
8903 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8904 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8905 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8906 IFN_MASK_STORE.
8907
8908 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8909
8910 * gimple.h (gimple_move_vops): Declare.
8911 * gimple.c (gimple_move_vops): New function
8912 * gimple-fold.c (replace_call_with_call_and_fold)
8913 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8914 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8915 (gimple_fold_call): Use it.
8916 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8917 * tree-call-cdce.c (use_internal_fn): Likewise.
8918 * tree-if-conv.c (predicate_load_or_store): Likewise.
8919 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8920 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8921 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8922 (update_call_from_tree): Likewise.
8923 * tree-vect-stmts.c (vectorizable_load): Likewise.
8924 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8925
8926 2019-08-05 Martin Liska <mliska@suse.cz>
8927
8928 PR c++/91334
8929 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8930 with not arguments.
8931 (eliminate_unnecessary_stmts): Likewise.
8932
8933 2019-08-05 Richard Biener <rguenther@suse.de>
8934
8935 PR middle-end/91169
8936 * fold-const.c (get_array_ctor_element_at_index): Create
8937 offset_ints according to the sign of the index type and treat
8938 that as signed if it is obviously so.
8939
8940 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8941
8942 PR target/91341
8943 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8944 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8945 _mm256_storeu2_m128i): New function.
8946
8947 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8948
8949 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8950 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8951
8952 2019-08-05 Alan Modra <amodra@gmail.com>
8953
8954 PR target/91349
8955 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8956 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8957
8958 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8959
8960 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8961 bug that was fixed in Tcl 8.6.1.
8962
8963 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8964
8965 * config/rs6000/future.md: New file.
8966 * config/rs6000/rs6000.md: Include future.md.
8967 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8968
8969 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8970
8971 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8972 check to use targetm.slow_unaligned_access instead.
8973
8974 * function.c (assign_param_data_one): Remove unused data members.
8975
8976 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8977
8978 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8979 build_distinct_type_copy.
8980 (simd_clone_adjust_argument_types): Ditto.
8981 (simd_clone_adjust): Call build_distinct_type_copy here.
8982 (expand_simd_clones): Ditto.
8983
8984 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8985
8986 PR target/91201
8987 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8988
8989 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8990
8991 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8992 from 'const void *'.
8993 (sort_locs_in_loop_postorder_cmp): Likewise.
8994
8995 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8996
8997 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8998 (hot-bb-count-ws-permille): Likewise.
8999 (hot-bb-frequency-fraction): Likewise.
9000 (unlikely-bb-count-fraction): Likewise.
9001 * params.def (hot-bb-count-fraction): Rework description.
9002 (hot-bb-count-ws-permille): Likewise.
9003 (hot-bb-frequency-fraction): Likewise.
9004 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9005 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9006
9007 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9008
9009 PR target/91323
9010 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9011 Return false.
9012
9013 2019-08-02 Richard Biener <rguenther@suse.de>
9014
9015 * vec.h (vec::sort): Add gcc_qsort_r support.
9016 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9017 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9018 to gcc_qsort_r style callback.
9019 (sort_locs_in_loop_postorder_cmp): Likewise.
9020 (analyze_memory_references): Use gcc_sort_r interfaces.
9021 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9022
9023 2019-08-02 Martin Liska <mliska@suse.cz>
9024
9025 PR lto/91313
9026 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9027 to detect working job server.
9028 (driver::detect_jobserver): Test whether jobserver
9029 is active from GCC driver. That will prevent situation where
9030 GCC is invoked from a LD plugin and the linker already uses
9031 file descriptors suggested by make. That leads to a wrong
9032 detection.
9033 * gcc.h (driver): Add detect_jobserver.
9034 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9035 not scanning for --jobserver-auth prefix.
9036
9037 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9038
9039 PR tree-optimization/91201
9040 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9041 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9042 extraction.
9043
9044 2019-08-01 Martin Sebor <msebor@redhat.com>
9045
9046 PR c++/90947
9047 * tree.c (type_initializer_zero_p): Define.
9048 * tree.h (type_initializer_zero_p): New function.
9049
9050 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9051
9052 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9053
9054 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9055
9056 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9057 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9058 * predict.c (maybe_hot_count_p): Likewise.
9059 (maybe_hot_bb_p): Tweak comment.
9060 (maybe_hot_edge_p): Likewise.
9061 (probably_never_executed): Likewise. Minor tweak.
9062 (probably_never_executed_bb_p): Likewise.
9063 (unlikely_executed_edge_p): Likewise.
9064 (probably_never_executed_edge_p): Likewise.
9065 (optimize_function_for_size_p): Likewise.
9066 (optimize_function_for_speed_p): Likewise.
9067 (function_optimization_type): Likewise.
9068 (optimize_bb_for_size_p): Likewise.
9069 (optimize_bb_for_speed_p): Likewise.
9070 (bb_optimization_type): Likewise.
9071 (optimize_edge_for_size_p): Likewise.
9072 (optimize_edge_for_speed_p): Likewise.
9073 (optimize_insn_for_size_p): Likewise.
9074 (optimize_insn_for_speed_p): Likewise.
9075 (optimize_loop_for_size_p): Likewise.
9076 (optimize_loop_for_speed_p): Likewise.
9077 (optimize_loop_nest_for_speed_p): Likewise.
9078 (optimize_loop_nest_for_size_p): Likewise.
9079 (predictable_edge_p): Likewise.
9080 (handle_missing_profiles): Minor tweak.
9081
9082 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9083
9084 * config/rs6000/predicates.md (pcrel_external_address): Update
9085 comment.
9086
9087 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9088
9089 PR target/85693
9090 * config/i386/mmx.md (usadv8qi): New expander.
9091
9092 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9093
9094 PR c++/90590
9095 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9096 with reserved names that are in a system header.
9097
9098 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9099
9100 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9101 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9102 (*vec_extractv2si_0_zext): Ditto.
9103 (*vec_extractv2si_1): Add (rm,x) alternative.
9104 (*vec_extractv2si_1_zext): New insn pattern.
9105 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9106 insn constraint.
9107
9108 2019-08-01 Richard Biener <rguenther@suse.de>
9109
9110 * domwalk.c (bb_postorder): Remove static variable.
9111 (cmp_bb_postorder): Adjust.
9112 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9113 (dom_walker::walk): Adjust.
9114
9115 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9116
9117 * sort.cc (sort_r_ctx): New struct.
9118 (reorder23): Make templated on context type.
9119 (reorder45): Ditto.
9120 (cmp1): Ditto. Adjust signature.
9121 (netsort): Ditto.
9122 (mergesort): Ditto.
9123 [CHECKING_P] (cmp2to3): New static function. Use it...
9124 (gcc_qsort) [CHECKING_P]: ...here.
9125 (gcc_sort_r): New function.
9126 * system.h (sort_r_cmp_fn): New function typedef.
9127 (qsort_chk): Adjust signature.
9128 (gcc_sort_r): Declare.
9129 * vec.c (qsort_chk_error): Adjust.
9130 (qsort_chk): Adjust.
9131
9132 2019-08-01 Richard Biener <rguenther@suse.de>
9133
9134 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9135 (compute_antic): Localize it here.
9136
9137 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9138
9139 * common/config/riscv/riscv-common.c: Check -march string ends
9140 with null.
9141
9142 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9143
9144 * ipa-devirt.c (type_warning_cmp): Make static.
9145 (decl_warning_cmp): Ditto.
9146
9147 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9148
9149 PR target/91050
9150 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9151 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9152 use of deleted rs6000_dejagnu_cpu_index variable.
9153 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9154 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9155 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9156 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9157 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9158 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9159
9160 2019-07-31 Richard Biener <rguenther@suse.de>
9161
9162 PR tree-optimization/91280
9163 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9164 Decompose MEM_REF manually for offset handling.
9165
9166 2019-07-31 Richard Biener <rguenther@suse.de>
9167
9168 PR tree-optimization/91293
9169 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9170 of reduction stmts.
9171
9172 2019-07-31 Matt Thomas <matt@3am-software.com>
9173 Nick Hudson <nick@nthcliff.demon.co.uk>
9174 Matthew Green <mrg@eterna.com.au>
9175 Maya Rashish <coypu@sdf.org>
9176
9177 * config.gcc (hppa*-*-netbsd*): New target.
9178 * config/pa/pa-netbsd.h: New file.
9179 * config/pa/pa32-netbsd.h: New file.
9180
9181 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9182
9183 PR tree-optimization/91201
9184 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9185
9186 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9187
9188 * config/gcn/gcn-valu.md
9189 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9190 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9191 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9192 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9193 struct ilist. Add nops for delayeduse insns.
9194 * config/gcn/gcn.md (delayeduse): New attribute.
9195 (*movbi): Remove s_waitcnt from stores.
9196 (*mov<mode>_insn): Likewise.
9197 (*movti_insn): Likewise. Add delayeduse attribute.
9198 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9199 (atomic_store<mode>): Remove or adjust s_waitcnt.
9200
9201 2019-07-31 Richard Biener <rguenther@suse.de>
9202
9203 * vr-values.h (vr_values::swap_vr_value): New.
9204 (vr_values::free_value_range): likewise.
9205 * vr-values.c (vr_values::swap_vr_value): Implement.
9206 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9207 Do not return a range or take a var.
9208 (evrp_range_analyzer::stack): Change back to recording a non-const
9209 value_range *.
9210 * gimple-ssa-evrp-analyze.c
9211 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9212 value-range.
9213 (evrp_range_analyzer::pop_to_marker): Adjust.
9214 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9215 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9216 no longer needed value-range.
9217
9218 2019-07-31 Martin Liska <mliska@suse.cz>
9219
9220 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9221 have size and (or) alignment as 2nd and later arguments.
9222 Mark all of them as necessary.
9223
9224 2019-07-31 Richard Biener <rguenther@suse.de>
9225
9226 PR tree-optimization/91178
9227 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9228 Use tail-recursion.
9229
9230 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9231
9232 PR tree-optimization/91201
9233 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9234 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9235 TARGET_AVX512F.
9236 (reduc_plus_scal_<mode>): Improve formatting by introducing
9237 a temporary.
9238
9239 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9240
9241 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9242 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9243 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9244 (aarch64_init_tme_builtins): New.
9245 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9246 (aarch64_expand_builtin_tme): New.
9247 (aarch64_expand_builtin): Handle TME builtins.
9248 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9249 __ARM_FEATURE_TME when enabled.
9250 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9251 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9252 (TARGET_TME): New.
9253 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9254 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9255 UNSPECV_TCANCEL.
9256 (tstart, ttest, tcommit, tcancel): New instructions.
9257 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9258 (__tcancel, __ttest): New.
9259 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9260 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9261 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9262 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9263 * config/arm/types.md: Add new tme type attr.
9264 * doc/invoke.texi: Document "tme".
9265
9266 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9267
9268 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9269 warn_unused_result attribute.
9270 (cmse_check_address_range): Add warn_unused_result attribute.
9271
9272 2019-07-31 Richard Biener <rguenther@suse.de>
9273
9274 PR tree-optimization/91257
9275 * tree-vrp.c (union_ranges): Unify equality and less tests
9276 by using compare_values. Re-order cheap tests first.
9277
9278 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9279
9280 PR middle-end/91301
9281 * gimplify.c (gimplify_omp_for): If for class iterator on
9282 distribute parallel for there is no data sharing clause
9283 on inner_for_stmt, look for private clause on combined
9284 parallel too and if found, move it to inner_for_stmt.
9285
9286 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9287
9288 * lra-int.h (lra_operand_data): Remove early_clobber field.
9289 (lra_insn_reg): Likewise.
9290 * lra.c (debug_operand_data): Update accordingly.
9291 (setup_operand_alternative): Likewise.
9292 (new_insn_reg): Likewise. Remove early_clobber parameter.
9293 (collect_non_operand_hard_regs): Update call accordingly.
9294 Don't assign to lra_insn_reg::early_clobber.
9295 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9296 and update calls to new_insn_reg.
9297 (lra_update_insn_regno_info): Update calls accordingly.
9298 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9299 alternative number as a parameter and test whether the operand
9300 is earlyclobbered in that particular alternative.
9301 (process_alt_operands): Update call accordingly. Use per-alternative
9302 checks for earyclobber here too.
9303 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9304 against zero for IRA_UNKNOWN_ALT.
9305
9306 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9307
9308 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9309
9310 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9311
9312 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9313 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9314
9315 2019-07-30 Martin Liska <mliska@suse.cz>
9316
9317 PR ipa/89330
9318 * cgraph.c (cgraph_edge::make_direct): Use
9319 edge->indirect_unknown_callee as edge->resolve_speculation can
9320 deallocate edge which is this pointer.
9321
9322 2019-07-30 Richard Biener <rguenther@suse.de>
9323
9324 PR tree-optimization/91257
9325 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9326
9327 2019-07-30 Martin Liska <mliska@suse.cz>
9328
9329 * doc/invoke.texi: Document new behavior.
9330 * lto-wrapper.c (cpuset_popcount): New function
9331 is a copy of libgomp/config/linux/proc.c.
9332 (init_num_threads): Likewise.
9333 (run_gcc): Automatically detect core count for -flto.
9334 (jobserver_active_p): New function.
9335
9336 2019-07-30 Richard Biener <rguenther@suse.de>
9337
9338 PR tree-optimization/91257
9339 * bitmap.h (bitmap_ior_into_and_free): Declare.
9340 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9341 whether to add the unliked element to the freelist.
9342 (bitmap_list_insert_element_after): Add defaulted param for
9343 an already allocated element.
9344 (bitmap_ior_into_and_free): New function.
9345 * tree-ssa-structalias.c (condense_visit): Reduce the
9346 ponts-to and edge bitmaps of the SCC members in a
9347 logarithmic fashion rather than all to one.
9348
9349 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9350
9351 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9352 parameter. When nonnull, make sure that the addition or subtraction
9353 has the same condition.
9354 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9355 for CFN_COND_MUL too.
9356
9357 2019-07-30 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/91291
9360 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9361 constant values.
9362
9363 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR middle-end/91216
9366 * omp-low.c (global_nonaddressable_vars): New variable.
9367 (use_pointer_for_field): For global decls, if they are non-addressable,
9368 remember it in the global_nonaddressable_vars bitmap, if they are
9369 addressable and in the global_nonaddressable_vars bitmap, ignore their
9370 TREE_ADDRESSABLE bit.
9371 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9372 vars in global_nonaddressable_vars bitmap.
9373 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9374
9375 PR target/91150
9376 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9377 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9378 comparison to unsigned HOST_WIDE_INT before shifting it left.
9379
9380 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9381
9382 * config/i386/i386.md (movstrict<mode>): Use register_operand
9383 predicate for operand 0. Add expander condition. Assert that
9384 operand 0 is a SUBREG RTX.
9385 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9386 Update operand constraints and insn condition.
9387 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9388 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9389 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9390 Update operand 0 constraints.
9391 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9392
9393 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9394
9395 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9396 when -m{code,data}-region are used without -mlarge.
9397 * config/msp430/msp430.c (msp430_option_override): Error when a
9398 non-default code or data region is used without -mlarge.
9399 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9400 attributes when they are used without -mlarge.
9401
9402 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9403
9404 PR target/70320
9405 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9406
9407 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9408
9409 PR middle-end/91242
9410 * wide-int.h (generic_wide_int::sext_elt): New function.
9411 * inchash.h (hash::add_wide_int): Use it instead of elt.
9412
9413 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9414
9415 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9416 CODE_FOR_arm_##.
9417 * config/arm/arm.md (<crc_variant>): Rename to...
9418 (arm_<crc_variant>): ... This.
9419 (<cdp>): Rename to...
9420 (arm_<cdp>): ... This.
9421 (<ldc>): Rename to...
9422 (arm_<ldc>): ... This.
9423 (<stc>): Rename to...
9424 (arm_<stc>): ... This.
9425 (<mcr>): Rename to...
9426 (arm_<mcr>): ... This.
9427 (<mrc>): Rename to...
9428 (arm_<mrc>): ... This.
9429 (<mcrr>): Rename to...
9430 (arm_<mcrr>): ... This.
9431 (<mrrc>): Rename to...
9432 (arm_<mrrc>): ... This.
9433
9434 2019-07-29 Richard Biener <rguenther@suse.de>
9435
9436 PR tree-optimization/91257
9437 * tree-ssa-sccvn.h (struct vn_avail): New.
9438 (struct vn_ssa_aux): Add avail member.
9439 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9440 member, add m_avail_freelist one.
9441 (rpo_elim::~rpo_elim): Remove.
9442 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9443 data structure.
9444 (rpo_elim::eliminate_push_avail): Likewise.
9445 (do_unwind): Likewise.
9446 (do_rpo_vn): Likewise.
9447
9448 2019-07-29 Richard Biener <rguenther@suse.de>
9449
9450 PR tree-optimization/91257
9451 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9452 most cases, instead call compare_values which handles the
9453 symbolic ranges we handle specially.
9454 (compare_values_warnv): Do not call operand_less_p but open-code
9455 the effective fold calls. Avoid converting so much.
9456
9457 2019-07-29 Martin Liska <mliska@suse.cz>
9458
9459 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9460 remove LHS of operator new call. It's handled latter.
9461
9462 2019-07-29 Richard Biener <rguenther@suse.de>
9463
9464 PR tree-optimization/91267
9465 * vr-values.c (vr_values::update_value_range): Add early return
9466 for effectively VARYING lattice entry.
9467
9468 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9469
9470 PR debug/86638
9471 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9472 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9473 necessary if keep_all_vdefs_p is true.
9474 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9475 that keep_all_vdefs_p is false.
9476 (mark_all_reaching_defs_necessary): Likewise.
9477 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9478
9479 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9480
9481 * common.opt (Og): Change the initial value of flag_dse to 0.
9482 * opts.c (default_options_table): Move OPT_ftree_dse from
9483 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9484 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9485 entry before the OPT_ftree_sra entry.
9486 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9487 of flags disabled by Og.
9488
9489 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9490
9491 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9492 variables for -Og.
9493
9494 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9495
9496 * doc/sourcebuild.texi (check-function-bodies): Document.
9497
9498 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9499
9500 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9501 VEC_DUPLICATE of a fixed-length vector even if the result
9502 is variable-length. Likewise fold a duplicate of a
9503 variable-length vector if the variable-length vector is
9504 itself a duplicate of a fixed-length sequence.
9505 (test_vector_ops_duplicate): Test more cases.
9506
9507 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9508
9509 * vector-builder.h (vector_builder): Add a shape template parameter.
9510 (vector_builder::new_unary_operation): New function, generalizing
9511 the old tree_vector_builder function.
9512 (vector_builder::new_binary_operation): Likewise.
9513 (vector_builder::binary_encoded_nelts): Likewise.
9514 * int-vector-builder.h (int_vector_builder): Update template
9515 parameters to vector_builder.
9516 (int_vector_builder::shape_nelts): New function.
9517 * rtx-vector-builder.h (rtx_vector_builder): Update template
9518 parameters to vector_builder.
9519 (rtx_vector_builder::shape_nelts): New function.
9520 (rtx_vector_builder::nelts_of): Likewise.
9521 (rtx_vector_builder::npatterns_of): Likewise.
9522 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9523 * tree-vector-builder.h (tree_vector_builder): Update template
9524 parameters to vector_builder.
9525 (tree_vector_builder::shape_nelts): New function.
9526 (tree_vector_builder::nelts_of): Likewise.
9527 (tree_vector_builder::npatterns_of): Likewise.
9528 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9529 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9530 (tree_vector_builder::new_binary_operation): Delete.
9531 (tree_vector_builder::binary_encoded_nelts): Likewise.
9532 * simplify-rtx.c: Include rtx-vector-builder.h.
9533 (distributes_over_addition_p): New function.
9534 (simplify_const_unary_operation)
9535 (simplify_const_binary_operation): Generalize handling of vector
9536 constants to include variable-length vectors.
9537 (test_vector_ops_series): Add more tests.
9538
9539 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9540
9541 PR lto/91222
9542 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9543 than INDENTIFIER_POINTER.
9544
9545 2019-07-28 Martin Liska <mliska@suse.cz>
9546
9547 PR ipa/89330
9548 * cgraph.c (symbol_table::create_edge): Always allocate
9549 a cgraph_edge.
9550 (symbol_table::free_edge): Store summary_id to
9551 edge_released_summary_ids if != -1;
9552 * cgraph.h (NEXT_FREE_NODE): Remove.
9553 (SET_NEXT_FREE_NODE): Likewise.
9554 (NEXT_FREE_EDGE): Likewise.
9555 (symbol_table::release_symbol): Store summary_id to
9556 cgraph_released_summary_ids if != -1;
9557 (symbol_table::allocate_cgraph_symbol): Always allocate
9558 a cgraph_node.
9559
9560 2019-07-28 Alan Modra <amodra@gmail.com>
9561
9562 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9563 gen_sibcall.
9564
9565 2019-07-28 Alan Modra <amodra@gmail.com>
9566
9567 PR target/91135
9568 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9569 define.
9570 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9571 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9572 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9573
9574 2019-07-28 Alan Modra <amodra@gmail.com>
9575
9576 PR target/91050
9577 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9578 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9579 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9580 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9581 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9582 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9583 in asm_default spec.
9584 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9585 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9586
9587 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9588
9589 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9590
9591 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9592
9593 PR target/89517
9594 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9595 * config/aarch64/aarch64-option-extensions.def: Add new comments
9596 and restore easier to read options.
9597
9598 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9599
9600 * convert.c (convert_to_real_1): Move part of conversion code...
9601 * match.pd: ...To here.
9602
9603 2019-07-26 Martin Jambor <mjambor@suse.cz>
9604
9605 PR ipa/89330
9606 * ipa-inline-transform.c (check_speculations_1): New function.
9607 (push_all_edges_in_set_to_vec): Likewise.
9608 (check_speculations): Use check_speculations_1, new parameter
9609 new_edges.
9610 (inline_call): Pass new_edges to check_speculations.
9611 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9612 NULL.
9613 (speculation_useful_p): Early return true if edge is inlined, remove
9614 later checks for inline_failed.
9615
9616 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9617
9618 PR rtl-optimization/91223
9619 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9620 matching with INOUT operand.
9621
9622 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9623
9624 * stmt.c (expand_case): Try to narrow the index type if it's larger
9625 than a word. Tidy up.
9626
9627 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9628
9629 * cif-code.def (NEVER_CALL): New code.
9630 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9631 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9632
9633 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9634
9635 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9636 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9637
9638 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9639
9640 * ipa-devirt.c (add_type_duplicate): Fix return value.
9641
9642 2019-07-25 Richard Biener <rguenther@suse.de>
9643
9644 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9645 type parameter and use it instead of guessing expression
9646 type from the first operand.
9647 (extract_range_from_binary_expr): Pass expr_type down.
9648
9649 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9650
9651 * config/arm/arm.md (SATrev): Change to code attribute.
9652 (*satsi_<SAT:code>): Adjust for the above.
9653 (*satsi_<SAT:code>_shift): Likewise.
9654
9655 2019-07-25 Richard Biener <rguenther@suse.de>
9656
9657 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9658 Make value_range * temporary const.
9659 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9660 Likewise.
9661 (evrp_range_analyzer::record_ranges_from_): Likewise.
9662 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9663 deal with having recorded a const one.
9664 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9665 Return a const value_range *.
9666 (evrp_range_analyzer::pop_value_range): Likewise.
9667 (evrp_range_analyzer::stack): Record const value_range *s.
9668 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9669 Adjust.
9670 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9671 (format_integer): Likewise.
9672 (sprintf_dom_walker::handle_gimple_call): Likewise.
9673 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9674 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9675 (vrp_prop::get_value_range): Adjust.
9676 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9677 modifying the lattice in-place.
9678 (vrp_prop::visit_stmt): Likewise.
9679 * vr-values.c (vr_values::get_lattice_entry): New private method.
9680 (vr_values::get_value_range): Wrap it and return a const
9681 value_range *.
9682 (vr_values::set_def_to_varying): New.
9683 (vr_values::set_defs_to_varying): Use it.
9684 (vr_values::update_value_range): Likewise.
9685 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9686 (values::op_with_constant_singleton_va): Likewise.
9687 (vr_values::extract_range_for_var_from_co): Likewise.
9688 (vr_values::extract_range_from_ssa_name): Likewise.
9689 (vr_values::extract_range_from_cond_expr): Likewise.
9690 (vr_values::extract_range_basic): Likewise.
9691 (compare_ranges): Take const value_range *, adjust.
9692 (compare_range_with_value): Likewise.
9693 (vrp_valueize): Adjust.
9694 (vrp_valueize_1): Likewise.
9695 (vr_values::get_vr_for_comparison): Return a const value_range *.
9696 (vr_values::compare_name_with_value): Adjust.
9697 (vr_values::compare_names): Likewise.
9698 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9699 Likewise.
9700 (vr_values::vrp_evaluate_conditional): Likewise.
9701 (find_case_label_ranges): Take a const value_range *.
9702 (vr_values::vrp_visit_switch_stmt): Adjust.
9703 (vr_values::extract_range_from_phi_node): Likewise.
9704 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9705 (vr_values::simplify_abs_using_ranges): Likewise.
9706 (test_for_singularity): Take a const value_range *.
9707 (range_fits_type_p): Likewise.
9708 (vr_values::simplify_cond_using_ranges_1): Adjust.
9709 (vr_values::simplify_cond_using_ranges_2): Likewise.
9710 (vr_values::simplify_switch_using_ranges): Likewise.
9711 (vr_values::simplify_float_conversion_usi): Likewise.
9712 (vr_values::two_valued_val_range_p): Likewise.
9713 * vr-values.h (vr_values::get_value_range): Return a const
9714 value_range *.
9715 (vr_values::set_def_to_varying): New.
9716 (vr_values::get_lattice_entry): New private method.
9717 (vr_values::get_vr_for_comparison): Return a const value_range *.
9718
9719 2019-07-25 Martin Liska <mliska@suse.cz>
9720 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9721
9722 PR c++/23383
9723 * common.opt: Add -fallocation-dce
9724 * gimple.c (gimple_call_operator_delete_p): New.
9725 * gimple.h (gimple_call_operator_delete_p): Likewise.
9726 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9727 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9728 DECL_IS_OPERATOR_DELETE_P.
9729 (mark_all_reaching_defs_necessary_1): Likewise.
9730 (propagate_necessity): Likewise.
9731 (eliminate_unnecessary_stmts): Handle
9732 gimple_call_operator_delete_p.
9733 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9734 Add packing of OPERATOR_DELETE.
9735 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9736 Similarly here.
9737 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9738 (DECL_SET_IS_OPERATOR_DELETE): New.
9739 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9740
9741 2019-07-25 Martin Liska <mliska@suse.cz>
9742
9743 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9744 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9745 * coverage.c (coverage_begin_function): Likewise.
9746 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9747 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9748 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9749 (sem_item::hash_referenced_symbol_properties): Likewise.
9750 * lto-streamer-out.c (hash_tree): Likewise.
9751 * predict.c (expr_expected_value_1): Likewise.
9752 * tree-inline.c (expand_call_inline): Likewise.
9753 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9754 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9755 * tree-core.h (enum function_decl_type): New enum.
9756 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9757 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9758 (set_function_decl_type): Likewise.
9759 (DECL_IS_OPERATOR_NEW_P): New.
9760 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9761 (DECL_LAMBDA_FUNCTION): Likewise.
9762 (DECL_LAMBDA_FUNCTION_P): Likewise.
9763 (DECL_IS_OPERATOR_NEW): Remove.
9764 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9765
9766 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9767
9768 * ipa-profile.c (get_most_common_single_value): Use
9769 get_nth_most_common_value.
9770 * profile.c (sort_hist_value): New function.
9771 (compute_value_histograms): Call sort_hist_value to sort the
9772 values after loading from disk.
9773 * value-prof.c (get_most_common_single_value): Rename to ...
9774 get_nth_most_common_value. Add input params n, return
9775 the n_th value and count.
9776 (gimple_divmod_fixed_value_transform): Use
9777 get_nth_most_common_value.
9778 (gimple_ic_transform): Likewise.
9779 (gimple_stringops_transform): Likewise.
9780 * value-prof.h (get_most_common_single_value): Add input params
9781 n, default to 0.
9782
9783 2019-07-25 Richard Biener <rguenther@suse.de>
9784
9785 PR tree-optimization/91236
9786 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9787 size of CONSTRUCTOR write. Fix buffer size we pass to
9788 native_encode_expr.
9789
9790 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9791
9792 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9793 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9794 r273773.
9795
9796 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9797
9798 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9799 explicitly disabled with --disable-initfini-array.
9800
9801 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9802
9803 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9804 if-exists.
9805
9806 2019-07-24 Martin Sebor <msebor@redhat.com>
9807
9808 PR tree-optimization/91183
9809 PR tree-optimization/86688
9810 * builtins.c (compute_objsize): Handle MEM_REF.
9811 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9812 (get_min_string_length): Remove.
9813 (count_nonzero_bytes): New function.
9814 (handle_char_store): Rename...
9815 (handle_store): to this. Handle multibyte stores via integer types.
9816 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9817 function name.
9818
9819 2019-07-24 Martin Sebor <msebor@redhat.com>
9820
9821 PR driver/80545
9822 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9823 (diagnostic_report_diagnostic): Same.
9824 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9825 (diagnostic_context::lang_mask): New data member.
9826 * ipa-pure-const.c (suggest_attribute): Use
9827 lang_hooks.option_lang_mask ().
9828 * opts-common.c (option_enabled): Handle new argument.
9829 (get_option_state): Pass an additional argument.
9830 * opts.c (print_filtered_help): Print supported languages for
9831 unsupported options. Adjust printing of current state.
9832 * opts.h (option_enabled): Add argument.
9833 * toplev.c (print_switch_values): Use lang_mask.
9834 (general_init): Set global_dc->lang_mask.
9835
9836 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9837
9838 PR bootstrap/87030
9839 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9840
9841 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9842
9843 * cgraphunit.c (symbol_table::compile): Start and stop
9844 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9845 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9846
9847 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9848
9849 * gimplify.c (flag_instrument_functions_exclude_p): Include
9850 namespace/class information in the printable name.
9851 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9852 to tokens entered into the vector.
9853
9854 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9855
9856 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9857 (get_static_chain): Call it instead of build_simple_mem_ref.
9858 (get_frame_field): Likewise.
9859 (get_nonlocal_debug_decl): Likewise.
9860 (convert_nonlocal_reference_op): Likewise.
9861
9862 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9863
9864 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9865 declaration.
9866 (arc_compute_frame_size): Millicode is disabled when compiling
9867 ISR.
9868 (arc_return_address_register): Likewise.
9869 (arc_compute_function_type): Likewise.
9870 (arc_compute_frame_size): Likewise.
9871 (secondary_reload_info): Likewise.
9872 (arc_get_unalign): Likewise.
9873 (arc_can_use_return_insn): Declare.
9874 * config/arc/arc.c (AUX_LP_START): Define
9875 (AUX_LP_END): Likewise.
9876 (arc_frame_info): Update gmask member to 64-bit datum.
9877 (GMASK_LEN): Update.
9878 (arc_compute_function_type): Make it static, move it forward.
9879 (arc_must_save_register): Update, consider the extra regs.
9880 (arc_compute_millicode_save_restore_regs): Update to use the 64
9881 bit gmask.
9882 (arc_compute_frame_size): Likewise.
9883 (arc_enter_leave_p): Likewise.
9884 (arc_save_callee_saves): Likewise.
9885 (arc_restore_callee_saves): Likewise.
9886 (arc_save_callee_enter): Likewise.
9887 (arc_restore_callee_leave): Likewise.
9888 (arc_save_callee_milli): Likewise.
9889 (arc_restore_callee_milli): Likewise.
9890 (arc_expand_prologue): Add new interrupt handling.
9891 (arc_return_address_register): Make it static, move it forward.
9892 (arc_expand_epilogue): Add new interrupt handling.
9893 (arc_get_unalign): Delete.
9894 (arc_epilogue_uses): Make sure we do not remove the extra
9895 saved/restored registers when interrupt.
9896 (arc_can_use_return_insn): New function.
9897 (push_reg): Likewise.
9898 (pop_reg): Likewise.
9899 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9900 procedures.
9901 (arc_restore_callee_saves): Likewise, but restoring.
9902 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9903 (R33_REG): Likewise.
9904 (R34_REG): Likewise.
9905 (R35_REG): Likewise.
9906 (R36_REG): Likewise.
9907 (R37_REG): Likewise.
9908 (R38_REG): Likewise.
9909 (R39_REG): Likewise.
9910 (R45_REG): Likewise.
9911 (R46_REG): Likewise.
9912 (R47_REG): Likewise.
9913 (R48_REG): Likewise.
9914 (R49_REG): Likewise.
9915 (R50_REG): Likewise.
9916 (R51_REG): Likewise.
9917 (R52_REG): Likewise.
9918 (R53_REG): Likewise.
9919 (R54_REG): Likewise.
9920 (R55_REG): Likewise.
9921 (R56_REG): Likewise.
9922 (R58_REG): Likewise.
9923 (type): Add rtie attribute.
9924 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9925 (movsi_insn): Accept moves to lp_count.
9926 (rtie): Update pattern.
9927 (simple_return): Simplify it, don't use this pattern as a return
9928 from an interrupt.
9929 (arc600_rtie): New pattern.
9930 (p_return_i): Clean up.
9931 (return): Likewise.
9932 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9933 family CPUs.
9934 * config/arc/predicates.md (move_src_operand): Consider lp_count
9935 as a register.
9936
9937 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9938
9939 * config/s390/predicates.md (addv_const_operand): New predicate.
9940 * config/s390/s390-modes.def (CCO): New condition code mode.
9941 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9942 (s390_branch_condition_mask): Likewise.
9943 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9944 ("mulv<mode>4"): New expanders.
9945 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9946 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9947 pattern definitions.
9948
9949 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9950
9951 PR middle-end/91166
9952 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9953 (define_predicates): Add entry for uniform_vector_p.
9954 (vec_same_elem_p): New match pattern.
9955
9956 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9957
9958 PR bootstrap/87030
9959 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9960 * config/i386/darwin32-biarch.h .. to here.
9961 * config/i386/darwin64-biarch.h: Adjust comments.
9962 * config/rs6000/darwin32-biarch.h: Likewise.
9963 * config/rs6000/darwin64-biarch.h: Likewise.
9964 * config.gcc: Missed commit from r273746
9965 (*-*-darwin*): Don't include CPU t-darwin here.
9966 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9967 an error message if i686-darwin configuration is attempted for
9968 Darwin >= 18.
9969
9970 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9971
9972 PR bootstrap/87030
9973 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9974 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9975 an error message if i686-darwin configuration is attempted for
9976 Darwin >= 18.
9977 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9978 (powerpc-*-darwin*): Use biarch files where needed.
9979 (powerpc64-*-darwin*): Likewise.
9980 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9981 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9982 arch case.
9983 * config/i386/darwin32-biarch.h: New.
9984 * config/i386/darwin64.h: Rename.
9985 * config/i386/darwin64-biarch.h: To this.
9986 * config/i386/t-darwin: Rename.
9987 * config/i386/t-darwin32-biarch: To this.
9988 * config/i386/t-darwin64: Rename.
9989 * config/i386/t-darwin64-biarch: To this.
9990 * config/rs6000/darwin32-biarch.h: New.
9991 * config/rs6000/darwin64.h: Rename.
9992 * config/rs6000/darwin64-biarch.h: To this.
9993 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9994 arch case.
9995 * config/rs6000/t-darwin8: Rename.
9996 * config/rs6000/t-darwin32-biarch: To this.
9997 * config/rs6000/t-darwin64 Rename.
9998 * config/rs6000/t-darwin64-biarch: To this.
9999
10000 2019-07-23 Martin Sebor <msebor@redhat.com>
10001
10002 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10003
10004 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10005
10006 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10007 (rh): New alias for it.
10008
10009 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10010
10011 * gdbhooks.py: Pass replace=True to
10012 gdb.printing.register_pretty_printer.
10013
10014 2019-07-23 Richard Biener <rguenther@suse.de>
10015
10016 PR debug/91231
10017 * lto-streamer-in.c (input_function): Drop inline-entry markers
10018 that ended up with an unknown location block.
10019
10020 2019-07-23 Richard Biener <rguenther@suse.de>
10021
10022 PR tree-optimization/83518
10023 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10024 init from a constant even when partial defs are already recorded.
10025
10026 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10027
10028 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10029 * config/i386/znver1.md: Enable patterns for znver2 and add store
10030 variants which use extra AGU unit.
10031
10032 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10033
10034 * config/i386/i386-options.c (ix86_option_override_internal): Default
10035 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10036 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10037 for ZNVER2.
10038
10039 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10040
10041 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10042 (znver2_costs): Update 256 bit SSE costs and multiplication.
10043
10044 2019-07-23 Jan Beulich <jbeulich@suse.com>
10045
10046 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10047 Require only AVX512F.
10048 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10049 alternative expanding to vpternlog.
10050
10051 2019-07-23 Martin Liska <mliska@suse.cz>
10052
10053 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10054 to -flto in dwarf producer string.
10055
10056 2019-07-23 Richard Biener <rguenther@suse.de>
10057
10058 * tree-cfg.c (label_for_bb): Remove global var.
10059 (main_block_label): Take label_for_bb as argument.
10060 (cleanup_dead_labels_eh): Likewise, adjust.
10061 (cleanup_dead_labels): Adjust.
10062
10063 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10064
10065 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10066 Configurations): Add documentation for __builtin_mtfsf.
10067
10068 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10069
10070 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10071 * config/riscv/riscv.c (riscv_constant_alignment): Use
10072 riscv_align_data_type.
10073 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10074 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10075 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10076 * config/riscv/riscv.opt (malign-data): New.
10077 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10078
10079 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10080
10081 * cgraph.c (dump_graphviz): New function.
10082 * cgraph.h (dump_graphviz): New function.
10083 * symtab.c (dump_graphviz): New function.
10084
10085 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10086
10087 * config/aarch64/aarch64-simd.md
10088 (*aarch64_simd_sra<mode>): New.
10089 * config/aarch64/iterators.md
10090 (SHIFTRT): New iterator.
10091 (sra_op): New attribute.
10092
10093 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10094
10095 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10096 callee-saved regs R4->R10 in an interrupt function that calls another
10097 function.
10098
10099 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10100
10101 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10102 (_mm_blendv_epi8): New.
10103
10104 2019-07-22 Richard Biener <rguenther@suse.de>
10105
10106 PR tree-optimization/91221
10107 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10108 restrict partial-def handling of empty constructors and
10109 memset to refs with known offset.
10110
10111 2019-07-22 Jan Beulich <jbeulich@suse.com>
10112
10113 * config/i386/sse.md (ternlogsuffix): New.
10114 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10115 AVX512F is in use.
10116 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10117
10118 2019-07-22 Martin Liska <mliska@suse.cz>
10119
10120 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10121 comment.
10122 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10123
10124 2019-07-22 Martin Liska <mliska@suse.cz>
10125
10126 * lto-section-in.c (lto_get_section_data):
10127 Use new function get_compression.
10128 * lto-streamer-out.c (produce_lto_section): Use
10129 set_compression to encode compression algorithm.
10130 * lto-streamer.h (struct lto_section): Do not
10131 use bitfields in the format.
10132
10133 2019-07-22 Martin Liska <mliska@suse.cz>
10134
10135 PR driver/91172
10136 * opts-common.c (decode_cmdline_option): Decode
10137 argument of -Werror and check it for a wrong language.
10138 * opts-global.c (complain_wrong_lang): Remove such case.
10139
10140 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10141
10142 * config/arc/arc.c (prepare_move_operands): Always use an
10143 intermediate register when storing a TLS symbols.
10144
10145 2019-07-22 Stafford Horne <shorne@gmail.com>
10146
10147 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10148 force_reg.
10149
10150 2019-07-22 Stafford Horne <shorne@gmail.com>
10151
10152 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10153 and munordered-float validations.
10154 * config/or1k/constraints.md (d): New register constraint.
10155 * config/or1k/predicates.md (fp_comparison_operator): New.
10156 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10157 operands.
10158 (or1k_expand_compare): Normalize unordered comparisons.
10159 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10160 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10161 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10162 * config/or1k/or1k.md (type): Add fpu.
10163 (fpu): New instruction reservation.
10164 (F, f, fr, fi, FI, FOP, fop): New.
10165 (<fop><F:mode>3): New ALU instruction definition.
10166 (float<fi><F:mode>2): New conversion instruction definition.
10167 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10168 (fpcmpcc): New code iterator.
10169 (*sf_fp_insn): New instruction definition.
10170 (cstore<F:mode>4): New expand definition.
10171 (cbranch<F:mode>4): New expand definition.
10172 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10173 munordered-float): New options.
10174 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10175 munordered-float.
10176
10177 2019-07-22 Stafford Horne <shorne@gmail.com>
10178
10179 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10180 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10181 documenation to be more clear.
10182 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10183 more clear.
10184 * config/or1k/or1k.opt (mrori): New option.
10185 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10186 msfimm, mshftimm): Rewrite documentation to be more clear.
10187 * config/or1k/or1k.md (insn_support): Add ror and rori.
10188 (enabled): Add conditions for ror and rori.
10189 (rotrsi3): Replace condition for shftimm with ror and rori.
10190
10191 2019-07-22 Stafford Horne <shorne@gmail.com>
10192
10193 PR target/90363
10194 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10195 (extend<mode>si2): Update predicate.
10196 * config/or1k/predicates.md (volatile_mem_operand): New.
10197 (reg_or_mem_operand): New.
10198
10199 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10200
10201 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10202 * config/rs6000/rs6000-call.c: ... to here.
10203
10204 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10205
10206 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10207 memory.
10208
10209 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10210
10211 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10212
10213 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10214
10215 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10216
10217 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10218
10219 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10220 (any_memory_operand): New predicate.
10221 (reg_or_mem_operand): Use it.
10222
10223 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10224
10225 PR target/91204
10226 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10227
10228 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10229
10230 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10231 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10232
10233 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10234
10235 * tree.def (OMP_LOOP): New tree code.
10236 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10237 (enum omp_clause_bind_kind): New enum.
10238 (struct tree_omp_clause): Add subcode.bind_kind.
10239 * tree.h (OMP_LOOP_CHECK): Rename to ...
10240 (OMP_LOOPING_CHECK): ... this.
10241 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10242 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10243 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10244 (OMP_CLAUSE_BIND_KIND): Define.
10245 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10246 bind clause entries.
10247 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10248 * tree-pretty-print.c (dump_omp_clause): Likewise.
10249 (dump_generic_node): Handle OMP_LOOP.
10250 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10251 (in_omp_construct): New variable.
10252 (is_gimple_stmt): Handle OMP_LOOP.
10253 (gimplify_scan_omp_clauses): For lastprivate don't set
10254 check_non_private if code == OMP_LOOP. For reduction clause
10255 on OMP_LOOP combined with parallel or teams propagate as shared
10256 on the combined construct. Handle OMP_CLAUSE_BIND.
10257 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10258 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10259 for constructs from a loop construct to gimplify_scan_omp_clauses.
10260 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10261 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10262 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10263 to match the implicit ORT_TARGET construct around whole body.
10264 Temporarily clear in_omp_construct when processing body.
10265 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10266 etc. temporarily set in_omp_construct when processing body.
10267 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10268 * omp-low.c (struct omp_context): Add loop_p.
10269 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10270 in that the original var might be private.
10271 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10272 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10273 addition of loop construct.
10274 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10275
10276 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10277 lastprivate non-addressable iterator of a collapse(1) simd.
10278
10279 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10280
10281 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10282 as in rs6000.c.
10283
10284 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10285
10286 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10287 refer to default conditions. Warn for the 'y' spec which is ignored
10288 by current linkers.
10289
10290 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10291
10292 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10293 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10294 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10295 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10296 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10297 init_cumulative_args, rs6000_promote_function_mode,
10298 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10299 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10300 rs6000_function_arg_boundary, rs6000_parm_offset,
10301 rs6000_parm_start, rs6000_arg_size,
10302 rs6000_darwin64_record_arg_advance_flush,
10303 rs6000_darwin64_record_arg_advance_recurse,
10304 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10305 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10306 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10307 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10308 rs6000_finish_function_arg, rs6000_function_arg,
10309 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10310 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10311 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10312 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10313 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10314 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10315 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10316 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10317 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10318 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10319 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10320 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10321 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10322 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10323 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10324 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10325 get_element_number, altivec_expand_vec_set_builtin,
10326 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10327 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10328 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10329 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10330 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10331 rs6000_expand_builtin, rs6000_vector_type,
10332 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10333 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10334 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10335 to rs6000-call.c.
10336 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10337 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10338 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10339 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10340 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10341 init_cumulative_args, rs6000_promote_function_mode,
10342 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10343 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10344 rs6000_function_arg_boundary, rs6000_parm_offset,
10345 rs6000_parm_start, rs6000_arg_size,
10346 rs6000_darwin64_record_arg_advance_flush,
10347 rs6000_darwin64_record_arg_advance_recurse,
10348 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10349 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10350 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10351 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10352 rs6000_finish_function_arg, rs6000_function_arg,
10353 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10354 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10355 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10356 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10357 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10358 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10359 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10360 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10361 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10362 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10363 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10364 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10365 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10366 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10367 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10368 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10369 get_element_number, altivec_expand_vec_set_builtin,
10370 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10371 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10372 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10373 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10374 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10375 rs6000_expand_builtin, rs6000_vector_type,
10376 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10377 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10378 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10379 to here from rs6000.c.
10380 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10381 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10382 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10383 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10384 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10385 rs6000_return_in_memory, rs6000_return_in_msb,
10386 rs6000_pass_by_reference, setup_incoming_varargs,
10387 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10388 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10389 rs6000_function_arg_padding, rs6000_function_arg,
10390 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10391 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10392 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10393 rs6000_passes_long_double, rs6000_passes_vector,
10394 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10395 altivec_builtin_mask_for_load) Add declarations.
10396 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10397 * config/config.gcc: Add new source file rs6000-call.c to garbage
10398 collector and extra_objs.
10399
10400 2019-07-19 Jeff Law <law@redhat.com>
10401
10402 PR tree-optimization/86061
10403 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10404 strncpy. Drop some trivial dead code.
10405 (maybe_trim_memstar_call): Handle strncpy.
10406
10407 2019-07-19 Richard Biener <rguenther@suse.de>
10408
10409 PR tree-optimization/91211
10410 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10411 memset encoding size.
10412
10413 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10414
10415 PR target/91204
10416 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10417
10418 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10419
10420 PR ipa/91194
10421 * ipa-inline.c (recursive_inlining): Fix limits check.
10422
10423 2019-07-19 Richard Biener <rguenther@suse.de>
10424
10425 PR tree-optimization/91200
10426 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10427 no PHI nodes in middle-bb.
10428
10429 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10430
10431 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10432 to +sve-bitperm.
10433 * config/aarch64/aarch64-option-extensions.def: Likewise.
10434
10435 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10436
10437 PR middle-end/91190
10438 * function.c (insert_temp_slot_address): Store into the hash table
10439 a copy of address to avoid RTL sharing issues.
10440
10441 2019-07-19 Richard Biener <rguenther@suse.de>
10442
10443 PR tree-optimization/91207
10444 Revert
10445 2019-07-17 Richard Biener <rguenther@suse.de>
10446
10447 PR tree-optimization/91178
10448 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10449 loads with a gap larger than the vector size always use
10450 VMAT_STRIDED_SLP.
10451 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10452 avoid loading vectors that are only contained in the gap
10453 and thus are not needed.
10454
10455 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10456
10457 * config/i386/i386.md (*addqi_2_slp): Remove.
10458 (*<code>qi_2_slp): Ditto.
10459
10460 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10461
10462 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10463 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10464 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10465 Rename function from rs6000_prefixed_address.
10466 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10467 TARGET_HAS_TOC.
10468 (TARGET_TOC): Likewise.
10469 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10470 rs6000.h.
10471 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10472 TARGET_HAS_TOC.
10473 (TARGET_TOC): Likewise.
10474 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10475 rs6000.h.
10476 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10477 TARGET_HAS_TOC.
10478 (TARGET_TOC): Likewise.
10479 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10480 check to require -mcmodel=medium for pc-relative addressing.
10481 (create_TOC_reference): Add assertion for TARGET_TOC.
10482 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10483 TARGET_NO_TOC.
10484 (rs6000_emit_move): Likewise.
10485 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10486 to 'TOC_alias_set'.
10487 (get_TOC_alias_set): Likewise.
10488 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10489 TARGET_NO_TOC.
10490 (rs6000_can_eliminate): Likewise.
10491 (rs6000_prefixed_address_mode_p): Rename function from
10492 rs6000_prefixed_address.
10493 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10494 TARGET_HAS_TOC and not pc-relative.
10495 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10496 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10497 TARGET_HAS_TOC.
10498 (TARGET_TOC): Likewise.
10499 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10500 rs6000.h.
10501
10502 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10503
10504 PR target/91188
10505 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10506 for operand 0. Do not use (match_dup) to match operand 1 with
10507 operand 0. Add check in insn constraint that either input operand
10508 matches operand 0. Use SWI12 mode iterator to also handle
10509 HImode operands.
10510 (*and<mode>_1_slp): Ditto.
10511 (*<code>qi_1_slp): Ditto.
10512 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10513 Do not use (match_dup) to match operand 1 with operand 0. Add
10514 check in insn constraint that operand 1 matches operand 0.
10515 Use SWI12 mode iterator to also handle HImode operands.
10516 (*ashl<mode>3_1_slp): Ditto.
10517 (*<shift_insn><mode>3_1_slp): Ditto.
10518 (*<rotate_insn><mode>3_1_slp): Ditto.
10519
10520 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10521
10522 * config/arm/arm-builtins.c
10523 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10524 (arm_expand_unop_builtin): Likewise.
10525 * config/arm/crypto.md
10526 (crypto_sha1h): Convert from define_insn to define_expand.
10527 (crypto_<crypto_pattern>): Likewise.
10528 (crypto_sha1h_lb): New define_insn.
10529 (crypto_<crypto_pattern>_lb): Likewise.
10530
10531 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10532
10533 PR target/90317
10534 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10535 (vsha1cq_u32): Likewise.
10536 (vsha1pq_u32): Likewise.
10537 (vsha1mq_u32): Likewise.
10538 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10539 vec select.
10540 (crypto_sha1c): Correct vec select.
10541 (crypto_sha1m): Likewise.
10542 (crypto_sha1p): Likewise.
10543
10544 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10545
10546 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10547 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10548 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10549 (subdi_zesidi_zesidi): Likewise.
10550 (negdi2_compare, negdi2_insn): Likewise.
10551 (negdi_extensidi): Likewise.
10552 (negdi_zero_extendsidi): Likewise.
10553 (arm_cmpdi_insn): Likewise.
10554 (subsi3_carryin): Use arm_borrow_operation.
10555 (subsi3_carryin_const): Likewise.
10556 (subsi3_carryin_const0): Likewise.
10557 (subsi3_carryin_compare): Likewise.
10558 (subsi3_carryin_compare_const): Likewise.
10559 (subsi3_carryin_compare_const0): Likewise.
10560 (subsi3_carryin_shift): Likewise.
10561 (rsbsi3_carryin_shift): Likewise.
10562 (negsi2_carryin_compare): Likewise.
10563
10564 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10565
10566 PR tree-optimization/91137
10567 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10568 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10569 Init, use and fini the above new field.
10570 (determine_base_object_1): New function.
10571 (determine_base_object): Reimplement using walk_tree.
10572
10573 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10574
10575 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10576 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10577 CLEANUP_FORCE_FAST_DCE is set.
10578 * ifcvt.c (rest_of_handle_if_conversion): Pass
10579 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10580 if-conversion succeeded.
10581
10582 2019-07-18 Richard Biener <rguenther@suse.de>
10583
10584 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10585 branches to make code less indented.
10586
10587 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10588
10589 PR middle-end/81824
10590 * attribs.c (decls_mismatched_attributes): Simplify the logic
10591 that avoids duplicates and false positives.
10592
10593 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10594
10595 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10596 data into data section when generating PIC code.
10597 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10598 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10599 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10600 return 2 for SOM and 0 for other targets.
10601
10602 2019-07-17 Jeff Law <law@redhat.com>
10603
10604 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10605 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10606 avoid unexpected switch statement fallthru.
10607
10608 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10609
10610 * config/i386/i386.md (*add<dwi>3_doubleword):
10611 Remove redundant constraints.
10612 (*add<mode>_1): Ditto.
10613 (*addhi_1): Ditto.
10614 (*addqi_1): Ditto.
10615 (*addqi_1_slp): Ditto.
10616 (*add<mode>_2): Ditto.
10617 (*addv<mode>4): Ditto.
10618 (*sub<dwi>3_doubleword): Ditto.
10619 (*sub<mode>_1): Ditto.
10620 (*subqi_1_slp): Ditto.
10621 (*sub<mode>_2): Ditto.
10622 (*subv<mode>4): Ditto.
10623 (*sub<mode>_3): Ditto.
10624 (@add<mode>3_carry): Ditto.
10625 (@sub<mode>3_carry): Ditto.
10626 (*add<mode>3_cc_overflow_1): Ditto.
10627 (*add<mode>3_zext_cc_overflow_2): Ditto.
10628 (*anddi_1): Ditto.
10629 (*and<mode>_1): Ditto.
10630 (*andqi_1): Ditto.
10631 (*andqi_1_slp): Ditto.
10632 (*anddi_2): Ditto.
10633 (*andqi_2_maybe_si): Ditto.
10634 (*and<mode>_2): Ditto.
10635 (*andqi_2_slp): Ditto.
10636 (*<code><mode>_1): Ditto.
10637 (*<code>qi_1): Ditto.
10638 (*<code>qi_1_slp): Ditto.
10639 (*<code><mode>_2): Ditto.
10640 (*<code>qi_2_slp): Ditto.
10641
10642 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10643
10644 * alias.c (record_component_aliases): Do not simplify pointed-to
10645 types of ODR types.
10646
10647 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10648
10649 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10650 partial reg stall on alternative 2.
10651
10652 2019-07-17 Richard Biener <rguenther@suse.de>
10653
10654 PR tree-optimization/91178
10655 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10656 lower SSA names to avoid quadratic behavior in the common case.
10657 * tree-data-ref.c (split_constant_offset): Add limit argument
10658 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10659 (split_constant_offset_1): Add limit argument and use it to
10660 limit SSA def walking. Optimize the common plus/minus case.
10661
10662 2019-07-17 Richard Biener <rguenther@suse.de>
10663
10664 PR tree-optimization/91178
10665 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10666 loads with a gap larger than the vector size always use
10667 VMAT_STRIDED_SLP.
10668 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10669 avoid loading vectors that are only contained in the gap
10670 and thus are not needed.
10671
10672 2019-07-17 Richard Biener <rguenther@suse.de>
10673
10674 PR tree-optimization/91180
10675 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10676 computation for memset partial defs.
10677
10678 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10679
10680 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10681 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10682 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10683 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10684 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10685 * omp-grid.c (grid_process_grid_body,
10686 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10687 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10688 == GF_OMP_FOR_KIND_SIMD.
10689 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10690 check_omp_nesting_restrictions, scan_omp_1_stmt,
10691 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10692 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10693 omp_find_scan): Likewise.
10694 * omp-expand.c (expand_omp_for): Likewise.
10695 * omp-general.c (omp_extract_for_data): Likewise.
10696
10697 PR tree-optimization/91157
10698 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10699 a vector boolean with scalar mode.
10700 (expand_vector_condition): Handle first operand being a vector boolean
10701 with scalar mode.
10702 (expand_vector_operations_1): For comparisons, don't bail out early
10703 if the return type is vector boolean with scalar mode, but comparison
10704 operand type is not.
10705
10706 2019-07-17 Richard Biener <rguenther@suse.de>
10707
10708 PR tree-optimization/91181
10709 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10710 IFN_LOADs as calls.
10711
10712 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10713
10714 * config/i386/i386.md (*testdi_1): Match CCZmode for
10715 constants that might have the SImode sign bit set.
10716 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10717 Use correct constraints for pentium pairing.
10718 (*test<mode>_1): Ditto.
10719
10720 2019-07-16 Jeff Law <law@redhat.com>
10721
10722 PR rtl-optimization/91173
10723 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10724 SSA_NAME with a constant value, fold its value into the offset
10725 and clear the base before calling gen_addr_rtx.
10726
10727 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR rtl-optimization/91164
10730 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10731 invalidate dominance info.
10732
10733 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10734
10735 * read-md.h (md_reader::record_potential_iterator_use): Add a
10736 file_location parameter.
10737 * read-rtl.c (attribute_use::loc): New field.
10738 (map_attr_string): Take a file_location parameter. Report cases
10739 in which attributes map to multiple distinct values.
10740 (apply_attribute_uses): Update call accordingly.
10741 (md_reader::handle_overloaded_name): Likewise.
10742 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10743 nonnull strings.
10744 (record_attribute_use): Take a file_location parameter.
10745 Initialize attribute_use::loc.
10746 (md_reader::record_potential_iterator_use): Take a file_location
10747 parameter. Update call to record_attribute_use.
10748 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10749 (rtx_reader::read_rtx_code): Likewise.
10750 (rtx_reader::read_rtx_operand): Likewise. Record a location
10751 for implicitly-expanded empty strings.
10752
10753 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10754
10755 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10756 Use file_location instead of separate fields.
10757 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10758 separate filename and line number.
10759 * read-md.c (ptr_loc): As above.
10760 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10761 (md_reader::fprint_md_ptr_loc): Likewise.
10762 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10763 instead of a separate filename and line number.
10764 (md_reader::read_string): Update call accordingly.
10765
10766 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10767
10768 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10769 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10770 leaving the choice between SFDF and P implicit.
10771 (*mov<mode>_update2): Likewise.
10772 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10773 rather than leaving the choice betweem IBM128 and GPR implicit.
10774 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10775 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10776 QHSI implicit.
10777 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10778 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10779 * config/rs6000/vsx.md
10780 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10781 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10782 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10783 and VSX_EXTRACT_I implicit.
10784
10785 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10786
10787 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10788 Explicitly use <MOVEP1:MODE> for the mode attribute.
10789
10790 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10791
10792 PR bootstrap/91176
10793 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10794
10795 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10796
10797 PR target/91050
10798 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10799 .machine directive.
10800
10801 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10802
10803 * config/i386/i386.md (@test<mode>_ccno_1):
10804 Rename from test<mode>_ccno_1.
10805 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10806 (*testqi_1_maybe_si): Remove modrm attribute.
10807 (*test<mode>_1): Ditto.
10808 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10809 gen_test_ccno_1 and gen_extend_insn.
10810
10811 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10812
10813 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10814 to 0.
10815
10816 2019-07-15 Richard Biener <rguenther@suse.de>
10817
10818 PR middle-end/91162
10819 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10820 node make sure to replace all uses with something valid.
10821
10822 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10823
10824 PR tree-optimization/88497
10825 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10826 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10827 function undistribute_bitref_for_vector.
10828 (undistribute_bitref_for_vector): New function.
10829 (cleanup_vinfo_map): Likewise.
10830 (sort_by_mach_mode): Likewise.
10831
10832 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10833
10834 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10835 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10836 and testdi_ccno_1 using SWI48 mode attribute.
10837 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10838 x86_64_szext_general_operand.
10839 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10840 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10841 instead of genera_operand mode attribute.
10842
10843 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10844
10845 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10846 fopen and fclose to their respective types.
10847 (DotFn.invoke): Ditto.
10848
10849 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10850
10851 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10852 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10853 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10854 (array_index_predicate): Remove.
10855 (analyze_function_body): Account cost for variable ofsetted array
10856 indexing.
10857 (estimate_node_size_and_time): Do not compute array index hint.
10858 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10859 (inline_read_section): Do not read array index hint.
10860 (ipa_fn_summary_write): Do not write array index hint.
10861 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10862 * ipa-cp.c (hint_time_bonus): Remove.
10863 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10864 (ipa_fnsummary): Remove array_index.
10865 * ipa-inline.c (want_inline_small_function_p): Do not use
10866 array_index.
10867 (edge_badness): Likewise.
10868 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10869
10870 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10871
10872 PR target/91148
10873 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10874 superfluous "builtin function" phrasing.
10875
10876 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10877
10878 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10879 Break out from ...
10880 (aliasing_component_refs_walk): Break out from ...
10881 (aliasing_component_refs_p): ... here.
10882
10883 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10884
10885 PR target/91148
10886 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10887 "builtin function" phrasing.
10888
10889 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10890
10891 PR target/90723
10892 * recog.h (temporary_volatile_ok): New class.
10893 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10894 volatile_ok temporarily to true using temporary_volatile_ok.
10895 * expr.c (emit_block_move_via_cpymem): Likewise.
10896 * optabs.c (maybe_legitimize_operand): Likewise.
10897
10898 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10899
10900 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10901 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10902 uses inside of order(concurrent) constructs.
10903 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10904 OMP_CLAUSE_ORDER is seen.
10905 * omp-low.c (struct omp_context): Add order_concurrent member.
10906 (scan_sharing_clauses): Set ctx->order_concurrent if
10907 OMP_CLAUSE_ORDER is seen.
10908 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10909 of simd order(concurrent). Diagnose constructs not allowed inside of
10910 for order(concurrent).
10911 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10912 complaining about static double setjmp (double); or class static
10913 methods or non-global namespace setjmps.
10914 (omp_runtime_api_call): New function.
10915 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10916 order(concurrent) loops.
10917
10918 2019-07-12 Martin Sebor <msebor@redhat.com>
10919
10920 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10921 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10922 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10923 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10924
10925 2019-07-12 Jan Hubicka <jh@suse.cz>
10926
10927 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10928 (indirect_refs_may_alias_p): ... here.
10929 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10930 mem refs in the access paths.
10931
10932 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10933
10934 PR tree-optimization/89430
10935 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10936 store elimination for local variable without address escape.
10937
10938 2019-07-12 Jeff Law <law@redhat.com>
10939
10940 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10941 for the ".far" section.
10942
10943 2019-07-12 Richard Biener <rguenther@suse.de>
10944
10945 PR tree-optimization/91145
10946 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10947 chain check.
10948
10949 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10950
10951 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10952 rather than this_state as the lowering context for the ELSE
10953 seq in a GIMPLE_EH_ELSE.
10954
10955 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10956
10957 * vector-builder.h (vector_builder::elt): Allow already-supplied
10958 elements to be read back before building is complete.
10959
10960 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10961
10962 PR rtl-optimization/91136
10963 * df-core.c (ACCESSING REFS): Fix typos in comment.
10964 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10965 the beginning of the block to the initial set of live registers.
10966
10967 2019-07-12 Richard Biener <rguenther@suse.de>
10968
10969 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10970 * fold-const.c (get_array_ctor_element_at_index): Add
10971 ctor_idx output parameter informing the caller where in
10972 the constructor the element was (not) found. Add early exit
10973 for when the ctor is sorted.
10974 * gimple-fold.c (fold_array_ctor_reference): Support constant
10975 folding across multiple array elements.
10976
10977 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10978
10979 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10980 doesn't have location, set the current location to the function's end.
10981
10982 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10983
10984 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10985 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10986 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10987 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10988 * config/aarch64/aarch64-simd.md
10989 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10990 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10991 * config/aarch64/aarch64-sve.md
10992 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10993 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10994
10995 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10996
10997 * doc/md.texi: Document that @ patterns can have different
10998 numbers of operands.
10999 * genemit.c (handle_overloaded_gen): Handle this case.
11000 * genopinit.c (handle_overloaded_gen): Likewise.
11001 * gensupport.c (replace_operands_with_dups): Iterate over
11002 the new rtx's format rather than the old one's.
11003
11004 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11005
11006 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11007 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11008 order clause entries.
11009 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11010 * tree-pretty-print.c (dump_omp_clause): Likewise.
11011 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11012 Likewise.
11013 * omp-low.c (scan_sharing_clauses): Likewise.
11014 * tree-nested.c (convert_nonlocal_omp_clauses,
11015 convert_local_omp_clauses): Likewise.
11016
11017 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11018
11019 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11020 fallthrough target of current basic block isn't the placed
11021 right next.
11022
11023 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11024
11025 PR target/90980
11026 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11027 (_mm512_storeu_epi64): Likewise.
11028 (_mm512_loadu_epi32): Likewise.
11029 (_mm512_storeu_epi32): Likewise.
11030 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11031 (_mm_storeu_epi64): Likewise.
11032 (_mm256_storeu_epi32): Likewise.
11033 (_mm_storeu_epi32): Likewise.
11034
11035 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11036
11037 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11038
11039 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11040
11041 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11042 Handle Modula-2.
11043
11044 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR target/91124
11047 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11048 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11049 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11050 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11051 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11052 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11053 define_insns.
11054 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11055 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11056 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11057 define_insns.
11058 (sse2_cvttpd2dq<mask_name>): Change into ...
11059 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11060 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11061 (*sse2_cvtpd2dq<mask_name>): Change into ...
11062 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11063 Add "C" constraint to const0_operand.
11064 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11065 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11066 changes.
11067
11068 PR target/91124
11069 * config/i386/i386-builtin-types.def
11070 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11071 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11072 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11073 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11074 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11075 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11076 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11077 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11078 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11079 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11080 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11081 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11082 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11083 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11084 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11085 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11086 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11087 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11088 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11089 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11090 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11091 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11092 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11093 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11094 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11095 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11096 __builtin_ia32_vpdpbusd_v4si_maskz,
11097 __builtin_ia32_vpdpbusds_v16si_mask,
11098 __builtin_ia32_vpdpbusds_v16si_maskz,
11099 __builtin_ia32_vpdpbusds_v8si_mask,
11100 __builtin_ia32_vpdpbusds_v8si_maskz,
11101 __builtin_ia32_vpdpbusds_v4si_mask,
11102 __builtin_ia32_vpdpbusds_v4si_maskz,
11103 __builtin_ia32_vpdpwssd_v16si_mask,
11104 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11105 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11106 __builtin_ia32_vpdpwssd_v4si_maskz,
11107 __builtin_ia32_vpdpwssds_v16si_mask,
11108 __builtin_ia32_vpdpwssds_v16si_maskz,
11109 __builtin_ia32_vpdpwssds_v8si_mask,
11110 __builtin_ia32_vpdpwssds_v8si_maskz,
11111 __builtin_ia32_vpdpwssds_v4si_mask,
11112 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11113 suffixed types rather than *_INT.
11114 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11115 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11116 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11117 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11118 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11119 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11120
11121 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11122
11123 * tree-vrp.c (intersect_ranges): If we know the intersection is
11124 empty, there is no need to conservatively add anything else to
11125 the set.
11126
11127 2019-07-11 Richard Biener <rguenther@suse.de>
11128
11129 PR middle-end/91131
11130 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11131 when the object is volatile and we have not cleared it even though
11132 there are no nonzero elements.
11133
11134 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11135
11136 * config/rs6000/predicates.md (cint34_operand): Update
11137 SIGNED_34BIT_OFFSET_P call.
11138 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11139 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11140 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11141 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11142 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11143 argument.
11144 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11145 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11146 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11147 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11148 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11149
11150 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11151
11152 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11153 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11154 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11155 (DEF_MIN_OSX_VERSION): New.
11156
11157 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11158
11159 * fold-const.c (fold_relational_const): Fix folding of
11160 vector-to-scalar NE_EXPRs.
11161 (test_vector_folding): Add more tests.
11162
11163 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11164
11165 PR target/91060
11166 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11167 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11168 (vec_setv2di_internal): Reexpress as...
11169 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11170 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11171 rather than gen_neon_vset_lane<mode>.
11172
11173 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11174
11175 PR target/91102
11176 * lra-constraints.c (process_alt_operands): Don't match user
11177 defined regs only if they are early clobbers.
11178
11179 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11180
11181 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11182
11183 2019-07-10 Richard Biener <rguenther@suse.de>
11184
11185 PR tree-optimization/91126
11186 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11187 native encoding offset for BYTES_BIG_ENDIAN.
11188 (vn_reference_lookup_3): Likewise.
11189
11190 2019-07-10 Richard Biener <rguenther@suse.de>
11191
11192 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11193 LHS whenever possible.
11194
11195 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11196
11197 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11198 from ...; work also on duplicated types.
11199 (nonoverlapping_component_refs_since_match): ... here
11200 (ncr_type_uid): Break out from ...
11201 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11202 available.
11203 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11204 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11205
11206 2019-07-09 Martin Sebor <msebor@redhat.com>
11207
11208 PR tree-optimization/90989
11209 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11210 optimization to just single character stores.
11211
11212 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11213
11214 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11215 Swap operands only once.
11216
11217 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11218
11219 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11220 for both call instructions.
11221
11222 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11223
11224 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11225 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11226
11227 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11228
11229 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11230 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11231 function from rs6000-logue.c back to rs6000.c.
11232 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11233
11234 2019-07-09 Martin Sebor <msebor@redhat.com>
11235
11236 PR c++/61339
11237 * auto-profile.c: Change class-key of PODs to struct and others
11238 to class.
11239 * basic-block.h: Same.
11240 * bitmap.c (bitmap_alloc): Same.
11241 * bitmap.h: Same.
11242 * builtins.c (expand_builtin_prefetch): Same.
11243 (expand_builtin_interclass_mathfn): Same.
11244 (expand_builtin_strlen): Same.
11245 (expand_builtin_mempcpy_args): Same.
11246 (expand_cmpstr): Same.
11247 (expand_builtin___clear_cache): Same.
11248 (expand_ifn_atomic_bit_test_and): Same.
11249 (expand_builtin_thread_pointer): Same.
11250 (expand_builtin_set_thread_pointer): Same.
11251 * caller-save.c (setup_save_areas): Same.
11252 (replace_reg_with_saved_mem): Same.
11253 (insert_restore): Same.
11254 (insert_save): Same.
11255 (add_used_regs): Same.
11256 * cfg.c (get_bb_copy): Same.
11257 (set_loop_copy): Same.
11258 * cfg.h: Same.
11259 * cfganal.h: Same.
11260 * cfgexpand.c (alloc_stack_frame_space): Same.
11261 (add_stack_var): Same.
11262 (add_stack_var_conflict): Same.
11263 (add_scope_conflicts_1): Same.
11264 (update_alias_info_with_stack_vars): Same.
11265 (expand_used_vars): Same.
11266 * cfghooks.c (redirect_edge_and_branch_force): Same.
11267 (delete_basic_block): Same.
11268 (split_edge): Same.
11269 (make_forwarder_block): Same.
11270 (force_nonfallthru): Same.
11271 (duplicate_block): Same.
11272 (lv_flush_pending_stmts): Same.
11273 * cfghooks.h: Same.
11274 * cfgloop.c (flow_loops_cfg_dump): Same.
11275 (flow_loop_nested_p): Same.
11276 (superloop_at_depth): Same.
11277 (get_loop_latch_edges): Same.
11278 (flow_loop_dump): Same.
11279 (flow_loops_dump): Same.
11280 (flow_loops_free): Same.
11281 (flow_loop_nodes_find): Same.
11282 (establish_preds): Same.
11283 (flow_loop_tree_node_add): Same.
11284 (flow_loop_tree_node_remove): Same.
11285 (flow_loops_find): Same.
11286 (find_subloop_latch_edge_by_profile): Same.
11287 (find_subloop_latch_edge_by_ivs): Same.
11288 (mfb_redirect_edges_in_set): Same.
11289 (form_subloop): Same.
11290 (merge_latch_edges): Same.
11291 (disambiguate_multiple_latches): Same.
11292 (disambiguate_loops_with_multiple_latches): Same.
11293 (flow_bb_inside_loop_p): Same.
11294 (glb_enum_p): Same.
11295 (get_loop_body_with_size): Same.
11296 (get_loop_body): Same.
11297 (fill_sons_in_loop): Same.
11298 (get_loop_body_in_dom_order): Same.
11299 (get_loop_body_in_custom_order): Same.
11300 (release_recorded_exits): Same.
11301 (get_loop_exit_edges): Same.
11302 (num_loop_branches): Same.
11303 (remove_bb_from_loops): Same.
11304 (find_common_loop): Same.
11305 (delete_loop): Same.
11306 (cancel_loop): Same.
11307 (verify_loop_structure): Same.
11308 (loop_preheader_edge): Same.
11309 (loop_exit_edge_p): Same.
11310 (single_exit): Same.
11311 (loop_exits_to_bb_p): Same.
11312 (loop_exits_from_bb_p): Same.
11313 (get_loop_location): Same.
11314 (record_niter_bound): Same.
11315 (get_estimated_loop_iterations_int): Same.
11316 (max_stmt_executions_int): Same.
11317 (likely_max_stmt_executions_int): Same.
11318 (get_estimated_loop_iterations): Same.
11319 (get_max_loop_iterations): Same.
11320 (get_max_loop_iterations_int): Same.
11321 (get_likely_max_loop_iterations): Same.
11322 * cfgloop.h (simple_loop_desc): Same.
11323 (get_loop): Same.
11324 (loop_depth): Same.
11325 (loop_outer): Same.
11326 (loop_iterator::next): Same.
11327 (loop_outermost): Same.
11328 * cfgloopanal.c (mark_irreducible_loops): Same.
11329 (num_loop_insns): Same.
11330 (average_num_loop_insns): Same.
11331 (expected_loop_iterations_unbounded): Same.
11332 (expected_loop_iterations): Same.
11333 (mark_loop_exit_edges): Same.
11334 (single_likely_exit): Same.
11335 * cfgloopmanip.c (fix_bb_placement): Same.
11336 (fix_bb_placements): Same.
11337 (remove_path): Same.
11338 (place_new_loop): Same.
11339 (add_loop): Same.
11340 (scale_loop_frequencies): Same.
11341 (scale_loop_profile): Same.
11342 (create_empty_if_region_on_edge): Same.
11343 (create_empty_loop_on_edge): Same.
11344 (loopify): Same.
11345 (unloop): Same.
11346 (fix_loop_placements): Same.
11347 (copy_loop_info): Same.
11348 (duplicate_loop): Same.
11349 (duplicate_subloops): Same.
11350 (loop_redirect_edge): Same.
11351 (can_duplicate_loop_p): Same.
11352 (duplicate_loop_to_header_edge): Same.
11353 (mfb_keep_just): Same.
11354 (has_preds_from_loop): Same.
11355 (create_preheader): Same.
11356 (create_preheaders): Same.
11357 (lv_adjust_loop_entry_edge): Same.
11358 (loop_version): Same.
11359 * cfgloopmanip.h: Same.
11360 * cgraph.h: Same.
11361 * cgraphbuild.c: Same.
11362 * combine.c (make_extraction): Same.
11363 * config/i386/i386-features.c: Same.
11364 * config/i386/i386-features.h: Same.
11365 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11366 (ix86_emit_outlined_ms2sysv_restore): Same.
11367 (ix86_noce_conversion_profitable_p): Same.
11368 (ix86_init_cost): Same.
11369 (ix86_simd_clone_usable): Same.
11370 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11371 Wstruct-not-pod.
11372 * coretypes.h: Same.
11373 * data-streamer-in.c (string_for_index): Change class-key of PODs
11374 to struct and others to class.
11375 (streamer_read_indexed_string): Same.
11376 (streamer_read_string): Same.
11377 (bp_unpack_indexed_string): Same.
11378 (bp_unpack_string): Same.
11379 (streamer_read_uhwi): Same.
11380 (streamer_read_hwi): Same.
11381 (streamer_read_gcov_count): Same.
11382 (streamer_read_wide_int): Same.
11383 * data-streamer.h (streamer_write_bitpack): Same.
11384 (bp_unpack_value): Same.
11385 (streamer_write_char_stream): Same.
11386 (streamer_write_hwi_in_range): Same.
11387 (streamer_write_record_start): Same.
11388 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11389 (add_cross_iteration_register_deps): Same.
11390 (build_intra_loop_deps): Same.
11391 * df-core.c (df_analyze): Same.
11392 (loop_post_order_compute): Same.
11393 (loop_inverted_post_order_compute): Same.
11394 * df-problems.c (df_rd_alloc): Same.
11395 (df_rd_simulate_one_insn): Same.
11396 (df_rd_local_compute): Same.
11397 (df_rd_init_solution): Same.
11398 (df_rd_confluence_n): Same.
11399 (df_rd_transfer_function): Same.
11400 (df_rd_free): Same.
11401 (df_rd_dump_defs_set): Same.
11402 (df_rd_top_dump): Same.
11403 (df_lr_alloc): Same.
11404 (df_lr_reset): Same.
11405 (df_lr_local_compute): Same.
11406 (df_lr_init): Same.
11407 (df_lr_confluence_n): Same.
11408 (df_lr_free): Same.
11409 (df_lr_top_dump): Same.
11410 (df_lr_verify_transfer_functions): Same.
11411 (df_live_alloc): Same.
11412 (df_live_reset): Same.
11413 (df_live_init): Same.
11414 (df_live_confluence_n): Same.
11415 (df_live_finalize): Same.
11416 (df_live_free): Same.
11417 (df_live_top_dump): Same.
11418 (df_live_verify_transfer_functions): Same.
11419 (df_mir_alloc): Same.
11420 (df_mir_reset): Same.
11421 (df_mir_init): Same.
11422 (df_mir_confluence_n): Same.
11423 (df_mir_free): Same.
11424 (df_mir_top_dump): Same.
11425 (df_word_lr_alloc): Same.
11426 (df_word_lr_reset): Same.
11427 (df_word_lr_init): Same.
11428 (df_word_lr_confluence_n): Same.
11429 (df_word_lr_free): Same.
11430 (df_word_lr_top_dump): Same.
11431 (df_md_alloc): Same.
11432 (df_md_simulate_one_insn): Same.
11433 (df_md_reset): Same.
11434 (df_md_init): Same.
11435 (df_md_free): Same.
11436 (df_md_top_dump): Same.
11437 * df-scan.c (df_insn_delete): Same.
11438 (df_insn_rescan): Same.
11439 (df_notes_rescan): Same.
11440 (df_sort_and_compress_mws): Same.
11441 (df_install_mws): Same.
11442 (df_refs_add_to_chains): Same.
11443 (df_ref_create_structure): Same.
11444 (df_ref_record): Same.
11445 (df_def_record_1): Same.
11446 (df_find_hard_reg_defs): Same.
11447 (df_uses_record): Same.
11448 (df_get_conditional_uses): Same.
11449 (df_get_call_refs): Same.
11450 (df_recompute_luids): Same.
11451 (df_get_entry_block_def_set): Same.
11452 (df_entry_block_defs_collect): Same.
11453 (df_get_exit_block_use_set): Same.
11454 (df_exit_block_uses_collect): Same.
11455 (df_mws_verify): Same.
11456 (df_bb_verify): Same.
11457 * df.h (df_scan_get_bb_info): Same.
11458 * doc/tm.texi: Same.
11459 * dse.c (record_store): Same.
11460 * dumpfile.h: Same.
11461 * emit-rtl.c (const_fixed_hasher::equal): Same.
11462 (set_mem_attributes_minus_bitpos): Same.
11463 (change_address): Same.
11464 (adjust_address_1): Same.
11465 (offset_address): Same.
11466 * emit-rtl.h: Same.
11467 * except.c (dw2_build_landing_pads): Same.
11468 (sjlj_emit_dispatch_table): Same.
11469 * explow.c (allocate_dynamic_stack_space): Same.
11470 (emit_stack_probe): Same.
11471 (probe_stack_range): Same.
11472 * expmed.c (store_bit_field_using_insv): Same.
11473 (store_bit_field_1): Same.
11474 (store_integral_bit_field): Same.
11475 (extract_bit_field_using_extv): Same.
11476 (extract_bit_field_1): Same.
11477 (emit_cstore): Same.
11478 * expr.c (emit_block_move_via_cpymem): Same.
11479 (expand_cmpstrn_or_cmpmem): Same.
11480 (set_storage_via_setmem): Same.
11481 (emit_single_push_insn_1): Same.
11482 (expand_assignment): Same.
11483 (store_constructor): Same.
11484 (expand_expr_real_2): Same.
11485 (expand_expr_real_1): Same.
11486 (try_casesi): Same.
11487 * flags.h: Same.
11488 * function.c (try_fit_stack_local): Same.
11489 (assign_stack_local_1): Same.
11490 (assign_stack_local): Same.
11491 (cut_slot_from_list): Same.
11492 (insert_slot_to_list): Same.
11493 (max_slot_level): Same.
11494 (move_slot_to_level): Same.
11495 (temp_address_hasher::equal): Same.
11496 (remove_unused_temp_slot_addresses): Same.
11497 (assign_temp): Same.
11498 (combine_temp_slots): Same.
11499 (update_temp_slot_address): Same.
11500 (preserve_temp_slots): Same.
11501 * function.h: Same.
11502 * fwprop.c: Same.
11503 * gcc-rich-location.h: Same.
11504 * gcov.c: Same.
11505 * genattrtab.c (check_attr_test): Same.
11506 (check_attr_value): Same.
11507 (convert_set_attr_alternative): Same.
11508 (convert_set_attr): Same.
11509 (check_defs): Same.
11510 (copy_boolean): Same.
11511 (get_attr_value): Same.
11512 (expand_delays): Same.
11513 (make_length_attrs): Same.
11514 (min_fn): Same.
11515 (make_alternative_compare): Same.
11516 (simplify_test_exp): Same.
11517 (tests_attr_p): Same.
11518 (get_attr_order): Same.
11519 (clear_struct_flag): Same.
11520 (gen_attr): Same.
11521 (compares_alternatives_p): Same.
11522 (gen_insn): Same.
11523 (gen_delay): Same.
11524 (find_attrs_to_cache): Same.
11525 (write_test_expr): Same.
11526 (walk_attr_value): Same.
11527 (write_attr_get): Same.
11528 (eliminate_known_true): Same.
11529 (write_insn_cases): Same.
11530 (write_attr_case): Same.
11531 (write_attr_valueq): Same.
11532 (write_attr_value): Same.
11533 (write_dummy_eligible_delay): Same.
11534 (next_comma_elt): Same.
11535 (find_attr): Same.
11536 (make_internal_attr): Same.
11537 (copy_rtx_unchanging): Same.
11538 (gen_insn_reserv): Same.
11539 (check_tune_attr): Same.
11540 (make_automaton_attrs): Same.
11541 (handle_arg): Same.
11542 * genextract.c (gen_insn): Same.
11543 (VEC_char_to_string): Same.
11544 * genmatch.c (print_operand): Same.
11545 (lower): Same.
11546 (parser::parse_operation): Same.
11547 (parser::parse_capture): Same.
11548 (parser::parse_c_expr): Same.
11549 (parser::parse_simplify): Same.
11550 (main): Same.
11551 * genoutput.c (output_operand_data): Same.
11552 (output_get_insn_name): Same.
11553 (compare_operands): Same.
11554 (place_operands): Same.
11555 (process_template): Same.
11556 (validate_insn_alternatives): Same.
11557 (validate_insn_operands): Same.
11558 (gen_expand): Same.
11559 (note_constraint): Same.
11560 * genpreds.c (write_one_predicate_function): Same.
11561 (add_constraint): Same.
11562 (process_define_register_constraint): Same.
11563 (write_lookup_constraint_1): Same.
11564 (write_lookup_constraint_array): Same.
11565 (write_insn_constraint_len): Same.
11566 (write_reg_class_for_constraint_1): Same.
11567 (write_constraint_satisfied_p_array): Same.
11568 * genrecog.c (optimize_subroutine_group): Same.
11569 * gensupport.c (process_define_predicate): Same.
11570 (queue_pattern): Same.
11571 (remove_from_queue): Same.
11572 (process_rtx): Same.
11573 (is_predicable): Same.
11574 (change_subst_attribute): Same.
11575 (subst_pattern_match): Same.
11576 (alter_constraints): Same.
11577 (alter_attrs_for_insn): Same.
11578 (shift_output_template): Same.
11579 (alter_output_for_subst_insn): Same.
11580 (process_one_cond_exec): Same.
11581 (subst_dup): Same.
11582 (process_define_cond_exec): Same.
11583 (mnemonic_htab_callback): Same.
11584 (gen_mnemonic_attr): Same.
11585 (read_md_rtx): Same.
11586 * ggc-page.c: Same.
11587 * gimple-loop-interchange.cc (dump_reduction): Same.
11588 (dump_induction): Same.
11589 (loop_cand::~loop_cand): Same.
11590 (free_data_refs_with_aux): Same.
11591 (tree_loop_interchange::interchange_loops): Same.
11592 (tree_loop_interchange::map_inductions_to_loop): Same.
11593 (tree_loop_interchange::move_code_to_inner_loop): Same.
11594 (compute_access_stride): Same.
11595 (compute_access_strides): Same.
11596 (proper_loop_form_for_interchange): Same.
11597 (tree_loop_interchange_compute_ddrs): Same.
11598 (prune_datarefs_not_in_loop): Same.
11599 (prepare_data_references): Same.
11600 (pass_linterchange::execute): Same.
11601 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11602 (unroll_jam_possible_p): Same.
11603 (fuse_loops): Same.
11604 (adjust_unroll_factor): Same.
11605 (tree_loop_unroll_and_jam): Same.
11606 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11607 (loop_versioning::expensive_stmt_p): Same.
11608 (loop_versioning::version_for_unity): Same.
11609 (loop_versioning::dump_inner_likelihood): Same.
11610 (loop_versioning::find_per_loop_multiplication): Same.
11611 (loop_versioning::analyze_term_using_scevs): Same.
11612 (loop_versioning::record_address_fragment): Same.
11613 (loop_versioning::analyze_expr): Same.
11614 (loop_versioning::analyze_blocks): Same.
11615 (loop_versioning::prune_conditions): Same.
11616 (loop_versioning::merge_loop_info): Same.
11617 (loop_versioning::add_loop_to_queue): Same.
11618 (loop_versioning::decide_whether_loop_is_versionable): Same.
11619 (loop_versioning::make_versioning_decisions): Same.
11620 (loop_versioning::implement_versioning_decisions): Same.
11621 * gimple-ssa-evrp-analyze.c
11622 (evrp_range_analyzer::record_ranges_from_phis): Same.
11623 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11624 (count_multiple_uses): Same.
11625 (split_group): Same.
11626 (imm_store_chain_info::output_merged_store): Same.
11627 (pass_store_merging::process_store): Same.
11628 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11629 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11630 (is_max): Same.
11631 (alloca_call_type): Same.
11632 (pass_walloca::execute): Same.
11633 * gimple-streamer-in.c (input_phi): Same.
11634 (input_gimple_stmt): Same.
11635 * gimple-streamer.h: Same.
11636 * godump.c (go_force_record_alignment): Same.
11637 (go_format_type): Same.
11638 (go_output_type): Same.
11639 (go_output_fndecl): Same.
11640 (go_output_typedef): Same.
11641 (keyword_hash_init): Same.
11642 (find_dummy_types): Same.
11643 * graph.c (draw_cfg_nodes_no_loops): Same.
11644 (draw_cfg_nodes_for_loop): Same.
11645 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11646 * hsa-brig.c: Same.
11647 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11648 * hsa-dump.c (dump_hsa_cfun): Same.
11649 * hsa-gen.c (gen_function_def_parameters): Same.
11650 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11651 * input.c (dump_line_table_statistics): Same.
11652 (test_lexer): Same.
11653 * input.h: Same.
11654 * internal-fn.c (get_multi_vector_move): Same.
11655 (expand_load_lanes_optab_fn): Same.
11656 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11657 (expand_GOMP_SIMT_EXIT): Same.
11658 (expand_GOMP_SIMT_LAST_LANE): Same.
11659 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11660 (expand_GOMP_SIMT_VOTE_ANY): Same.
11661 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11662 (expand_GOMP_SIMT_XCHG_IDX): Same.
11663 (expand_addsub_overflow): Same.
11664 (expand_neg_overflow): Same.
11665 (expand_mul_overflow): Same.
11666 (expand_call_mem_ref): Same.
11667 (expand_mask_load_optab_fn): Same.
11668 (expand_scatter_store_optab_fn): Same.
11669 (expand_gather_load_optab_fn): Same.
11670 * ipa-cp.c (ipa_get_parm_lattices): Same.
11671 (print_all_lattices): Same.
11672 (ignore_edge_p): Same.
11673 (build_toporder_info): Same.
11674 (free_toporder_info): Same.
11675 (push_node_to_stack): Same.
11676 (ipcp_lattice<valtype>::set_contains_variable): Same.
11677 (set_agg_lats_to_bottom): Same.
11678 (ipcp_bits_lattice::meet_with): Same.
11679 (set_single_call_flag): Same.
11680 (initialize_node_lattices): Same.
11681 (ipa_get_jf_ancestor_result): Same.
11682 (ipcp_verify_propagated_values): Same.
11683 (propagate_scalar_across_jump_function): Same.
11684 (propagate_context_across_jump_function): Same.
11685 (propagate_bits_across_jump_function): Same.
11686 (ipa_vr_operation_and_type_effects): Same.
11687 (propagate_vr_across_jump_function): Same.
11688 (set_check_aggs_by_ref): Same.
11689 (set_chain_of_aglats_contains_variable): Same.
11690 (merge_aggregate_lattices): Same.
11691 (agg_pass_through_permissible_p): Same.
11692 (propagate_aggs_across_jump_function): Same.
11693 (call_passes_through_thunk_p): Same.
11694 (propagate_constants_across_call): Same.
11695 (devirtualization_time_bonus): Same.
11696 (good_cloning_opportunity_p): Same.
11697 (context_independent_aggregate_values): Same.
11698 (gather_context_independent_values): Same.
11699 (perform_estimation_of_a_value): Same.
11700 (estimate_local_effects): Same.
11701 (value_topo_info<valtype>::add_val): Same.
11702 (add_all_node_vals_to_toposort): Same.
11703 (value_topo_info<valtype>::propagate_effects): Same.
11704 (ipcp_propagate_stage): Same.
11705 (ipcp_discover_new_direct_edges): Same.
11706 (same_node_or_its_all_contexts_clone_p): Same.
11707 (cgraph_edge_brings_value_p): Same.
11708 (gather_edges_for_value): Same.
11709 (create_specialized_node): Same.
11710 (find_more_scalar_values_for_callers_subset): Same.
11711 (find_more_contexts_for_caller_subset): Same.
11712 (copy_plats_to_inter): Same.
11713 (intersect_aggregates_with_edge): Same.
11714 (find_aggregate_values_for_callers_subset): Same.
11715 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11716 (decide_about_value): Same.
11717 (decide_whether_version_node): Same.
11718 (spread_undeadness): Same.
11719 (identify_dead_nodes): Same.
11720 (ipcp_store_vr_results): Same.
11721 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11722 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11723 (redirect_to_unreachable): Same.
11724 (edge_set_predicate): Same.
11725 (evaluate_conditions_for_known_args): Same.
11726 (evaluate_properties_for_edge): Same.
11727 (ipa_fn_summary_t::duplicate): Same.
11728 (ipa_call_summary_t::duplicate): Same.
11729 (dump_ipa_call_summary): Same.
11730 (ipa_dump_fn_summary): Same.
11731 (eliminated_by_inlining_prob): Same.
11732 (set_cond_stmt_execution_predicate): Same.
11733 (set_switch_stmt_execution_predicate): Same.
11734 (compute_bb_predicates): Same.
11735 (will_be_nonconstant_expr_predicate): Same.
11736 (phi_result_unknown_predicate): Same.
11737 (analyze_function_body): Same.
11738 (compute_fn_summary): Same.
11739 (estimate_edge_devirt_benefit): Same.
11740 (estimate_edge_size_and_time): Same.
11741 (estimate_calls_size_and_time): Same.
11742 (estimate_node_size_and_time): Same.
11743 (remap_edge_change_prob): Same.
11744 (remap_edge_summaries): Same.
11745 (ipa_merge_fn_summary_after_inlining): Same.
11746 (ipa_fn_summary_generate): Same.
11747 (inline_read_section): Same.
11748 (ipa_fn_summary_read): Same.
11749 (ipa_fn_summary_write): Same.
11750 * ipa-fnsummary.h: Same.
11751 * ipa-hsa.c (ipa_hsa_read_section): Same.
11752 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11753 * ipa-icf.c (sem_function::param_used_p): Same.
11754 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11755 * ipa-inline.c (edge_badness): Same.
11756 (inline_small_functions): Same.
11757 * ipa-polymorphic-call.c
11758 (ipa_polymorphic_call_context::stream_out): Same.
11759 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11760 (predicate::remap_after_inlining): Same.
11761 (predicate::stream_out): Same.
11762 * ipa-predicate.h: Same.
11763 * ipa-profile.c (ipa_profile_read_summary): Same.
11764 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11765 (count_formal_params): Same.
11766 (ipa_dump_param): Same.
11767 (ipa_alloc_node_params): Same.
11768 (ipa_print_node_jump_functions_for_edge): Same.
11769 (ipa_print_node_jump_functions): Same.
11770 (ipa_load_from_parm_agg): Same.
11771 (get_ancestor_addr_info): Same.
11772 (ipa_compute_jump_functions_for_edge): Same.
11773 (ipa_analyze_virtual_call_uses): Same.
11774 (ipa_analyze_stmt_uses): Same.
11775 (ipa_analyze_params_uses_in_bb): Same.
11776 (update_jump_functions_after_inlining): Same.
11777 (try_decrement_rdesc_refcount): Same.
11778 (ipa_impossible_devirt_target): Same.
11779 (update_indirect_edges_after_inlining): Same.
11780 (combine_controlled_uses_counters): Same.
11781 (ipa_edge_args_sum_t::duplicate): Same.
11782 (ipa_write_jump_function): Same.
11783 (ipa_write_indirect_edge_info): Same.
11784 (ipa_write_node_info): Same.
11785 (ipa_read_edge_info): Same.
11786 (ipa_prop_read_section): Same.
11787 (read_replacements_section): Same.
11788 * ipa-prop.h (ipa_get_param_count): Same.
11789 (ipa_get_param): Same.
11790 (ipa_get_type): Same.
11791 (ipa_get_param_move_cost): Same.
11792 (ipa_set_param_used): Same.
11793 (ipa_get_controlled_uses): Same.
11794 (ipa_set_controlled_uses): Same.
11795 (ipa_get_cs_argument_count): Same.
11796 * ipa-pure-const.c (analyze_function): Same.
11797 (pure_const_read_summary): Same.
11798 * ipa-ref.h: Same.
11799 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11800 * ipa-split.c (test_nonssa_use): Same.
11801 (dump_split_point): Same.
11802 (dominated_by_forbidden): Same.
11803 (split_part_set_ssa_name_p): Same.
11804 (find_split_points): Same.
11805 * ira-build.c (finish_loop_tree_nodes): Same.
11806 (low_pressure_loop_node_p): Same.
11807 * ira-color.c (ira_reuse_stack_slot): Same.
11808 * ira-int.h: Same.
11809 * ira.c (setup_reg_equiv): Same.
11810 (print_insn_chain): Same.
11811 (ira): Same.
11812 * loop-doloop.c (doloop_condition_get): Same.
11813 (add_test): Same.
11814 (record_reg_sets): Same.
11815 (doloop_optimize): Same.
11816 * loop-init.c (loop_optimizer_init): Same.
11817 (fix_loop_structure): Same.
11818 * loop-invariant.c (merge_identical_invariants): Same.
11819 (compute_always_reached): Same.
11820 (find_exits): Same.
11821 (may_assign_reg_p): Same.
11822 (find_invariants_bb): Same.
11823 (find_invariants_body): Same.
11824 (replace_uses): Same.
11825 (can_move_invariant_reg): Same.
11826 (free_inv_motion_data): Same.
11827 (move_single_loop_invariants): Same.
11828 (change_pressure): Same.
11829 (mark_ref_regs): Same.
11830 (calculate_loop_reg_pressure): Same.
11831 * loop-iv.c (biv_entry_hasher::equal): Same.
11832 (iv_extend_to_rtx_code): Same.
11833 (check_iv_ref_table_size): Same.
11834 (clear_iv_info): Same.
11835 (latch_dominating_def): Same.
11836 (iv_get_reaching_def): Same.
11837 (iv_constant): Same.
11838 (iv_subreg): Same.
11839 (iv_extend): Same.
11840 (iv_neg): Same.
11841 (iv_add): Same.
11842 (iv_mult): Same.
11843 (get_biv_step): Same.
11844 (record_iv): Same.
11845 (analyzed_for_bivness_p): Same.
11846 (record_biv): Same.
11847 (iv_analyze_biv): Same.
11848 (iv_analyze_expr): Same.
11849 (iv_analyze_def): Same.
11850 (iv_analyze_op): Same.
11851 (iv_analyze): Same.
11852 (iv_analyze_result): Same.
11853 (biv_p): Same.
11854 (eliminate_implied_conditions): Same.
11855 (simplify_using_initial_values): Same.
11856 (shorten_into_mode): Same.
11857 (canonicalize_iv_subregs): Same.
11858 (determine_max_iter): Same.
11859 (check_simple_exit): Same.
11860 (find_simple_exit): Same.
11861 (get_simple_loop_desc): Same.
11862 * loop-unroll.c (report_unroll): Same.
11863 (decide_unrolling): Same.
11864 (unroll_loops): Same.
11865 (loop_exit_at_end_p): Same.
11866 (decide_unroll_constant_iterations): Same.
11867 (unroll_loop_constant_iterations): Same.
11868 (compare_and_jump_seq): Same.
11869 (unroll_loop_runtime_iterations): Same.
11870 (decide_unroll_stupid): Same.
11871 (unroll_loop_stupid): Same.
11872 (referenced_in_one_insn_in_loop_p): Same.
11873 (reset_debug_uses_in_loop): Same.
11874 (analyze_iv_to_split_insn): Same.
11875 * lra-eliminations.c (lra_debug_elim_table): Same.
11876 (setup_can_eliminate): Same.
11877 (form_sum): Same.
11878 (lra_get_elimination_hard_regno): Same.
11879 (lra_eliminate_regs_1): Same.
11880 (eliminate_regs_in_insn): Same.
11881 (update_reg_eliminate): Same.
11882 (init_elimination): Same.
11883 (lra_eliminate): Same.
11884 * lra-int.h: Same.
11885 * lra-lives.c (initiate_live_solver): Same.
11886 * lra-remat.c (create_remat_bb_data): Same.
11887 * lra-spills.c (lra_spill): Same.
11888 * lra.c (lra_set_insn_recog_data): Same.
11889 (lra_set_used_insn_alternative_by_uid): Same.
11890 (init_reg_info): Same.
11891 (expand_reg_info): Same.
11892 * lto-cgraph.c (output_symtab): Same.
11893 (read_identifier): Same.
11894 (get_alias_symbol): Same.
11895 (input_node): Same.
11896 (input_varpool_node): Same.
11897 (input_ref): Same.
11898 (input_edge): Same.
11899 (input_cgraph_1): Same.
11900 (input_refs): Same.
11901 (input_symtab): Same.
11902 (input_offload_tables): Same.
11903 (output_cgraph_opt_summary): Same.
11904 (input_edge_opt_summary): Same.
11905 (input_cgraph_opt_section): Same.
11906 * lto-section-in.c (lto_free_raw_section_data): Same.
11907 (lto_create_simple_input_block): Same.
11908 (lto_free_function_in_decl_state_for_node): Same.
11909 * lto-streamer-in.c (lto_tag_check_set): Same.
11910 (lto_location_cache::revert_location_cache): Same.
11911 (lto_location_cache::input_location): Same.
11912 (lto_input_location): Same.
11913 (stream_input_location_now): Same.
11914 (lto_input_tree_ref): Same.
11915 (lto_input_eh_catch_list): Same.
11916 (input_eh_region): Same.
11917 (lto_init_eh): Same.
11918 (make_new_block): Same.
11919 (input_cfg): Same.
11920 (fixup_call_stmt_edges): Same.
11921 (input_struct_function_base): Same.
11922 (input_function): Same.
11923 (lto_read_body_or_constructor): Same.
11924 (lto_read_tree_1): Same.
11925 (lto_read_tree): Same.
11926 (lto_input_scc): Same.
11927 (lto_input_tree_1): Same.
11928 (lto_input_toplevel_asms): Same.
11929 (lto_input_mode_table): Same.
11930 (lto_reader_init): Same.
11931 (lto_data_in_create): Same.
11932 * lto-streamer-out.c (output_cfg): Same.
11933 * lto-streamer.h: Same.
11934 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11935 (generate_prolog_epilog): Same.
11936 (mark_loop_unsched): Same.
11937 (dump_insn_location): Same.
11938 (loop_canon_p): Same.
11939 (sms_schedule): Same.
11940 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11941 (expand_omp_for_generic): Same.
11942 (expand_omp_for_static_nochunk): Same.
11943 (expand_omp_for_static_chunk): Same.
11944 (expand_omp_simd): Same.
11945 (expand_omp_taskloop_for_inner): Same.
11946 (expand_oacc_for): Same.
11947 (expand_omp_atomic_pipeline): Same.
11948 (mark_loops_in_oacc_kernels_region): Same.
11949 * omp-offload.c (oacc_xform_loop): Same.
11950 * omp-simd-clone.c (simd_clone_adjust): Same.
11951 * optabs-query.c (get_traditional_extraction_insn): Same.
11952 * optabs.c (expand_vector_broadcast): Same.
11953 (expand_binop_directly): Same.
11954 (expand_twoval_unop): Same.
11955 (expand_twoval_binop): Same.
11956 (expand_unop_direct): Same.
11957 (emit_indirect_jump): Same.
11958 (emit_conditional_move): Same.
11959 (emit_conditional_neg_or_complement): Same.
11960 (emit_conditional_add): Same.
11961 (vector_compare_rtx): Same.
11962 (expand_vec_perm_1): Same.
11963 (expand_vec_perm_const): Same.
11964 (expand_vec_cond_expr): Same.
11965 (expand_vec_series_expr): Same.
11966 (maybe_emit_atomic_exchange): Same.
11967 (maybe_emit_sync_lock_test_and_set): Same.
11968 (expand_atomic_compare_and_swap): Same.
11969 (expand_atomic_load): Same.
11970 (expand_atomic_store): Same.
11971 (maybe_emit_op): Same.
11972 (valid_multiword_target_p): Same.
11973 (create_integer_operand): Same.
11974 (maybe_legitimize_operand_same_code): Same.
11975 (maybe_legitimize_operand): Same.
11976 (create_convert_operand_from_type): Same.
11977 (can_reuse_operands_p): Same.
11978 (maybe_legitimize_operands): Same.
11979 (maybe_gen_insn): Same.
11980 (maybe_expand_insn): Same.
11981 (maybe_expand_jump_insn): Same.
11982 (expand_insn): Same.
11983 * optabs.h (create_expand_operand): Same.
11984 (create_fixed_operand): Same.
11985 (create_output_operand): Same.
11986 (create_input_operand): Same.
11987 (create_convert_operand_to): Same.
11988 (create_convert_operand_from): Same.
11989 * optinfo.h: Same.
11990 * poly-int.h: Same.
11991 * predict.c (optimize_insn_for_speed_p): Same.
11992 (optimize_loop_for_size_p): Same.
11993 (optimize_loop_for_speed_p): Same.
11994 (optimize_loop_nest_for_speed_p): Same.
11995 (get_base_value): Same.
11996 (predicted_by_loop_heuristics_p): Same.
11997 (predict_extra_loop_exits): Same.
11998 (predict_loops): Same.
11999 (predict_paths_for_bb): Same.
12000 (predict_paths_leading_to): Same.
12001 (propagate_freq): Same.
12002 (pass_profile::execute): Same.
12003 * predict.h: Same.
12004 * profile-count.c (profile_count::differs_from_p): Same.
12005 (profile_probability::differs_lot_from_p): Same.
12006 * profile-count.h: Same.
12007 * profile.c (branch_prob): Same.
12008 * regrename.c (free_chain_data): Same.
12009 (mark_conflict): Same.
12010 (create_new_chain): Same.
12011 (merge_overlapping_regs): Same.
12012 (init_rename_info): Same.
12013 (merge_chains): Same.
12014 (regrename_analyze): Same.
12015 (regrename_do_replace): Same.
12016 (scan_rtx_reg): Same.
12017 (record_out_operands): Same.
12018 (build_def_use): Same.
12019 * regrename.h: Same.
12020 * reload.h: Same.
12021 * reload1.c (init_reload): Same.
12022 (maybe_fix_stack_asms): Same.
12023 (copy_reloads): Same.
12024 (count_pseudo): Same.
12025 (count_spilled_pseudo): Same.
12026 (find_reg): Same.
12027 (find_reload_regs): Same.
12028 (select_reload_regs): Same.
12029 (spill_hard_reg): Same.
12030 (fixup_eh_region_note): Same.
12031 (set_reload_reg): Same.
12032 (allocate_reload_reg): Same.
12033 (compute_reload_subreg_offset): Same.
12034 (reload_adjust_reg_for_icode): Same.
12035 (emit_input_reload_insns): Same.
12036 (emit_output_reload_insns): Same.
12037 (do_input_reload): Same.
12038 (inherit_piecemeal_p): Same.
12039 * rtl.h: Same.
12040 * sanopt.c (maybe_get_dominating_check): Same.
12041 (maybe_optimize_ubsan_ptr_ifn): Same.
12042 (can_remove_asan_check): Same.
12043 (maybe_optimize_asan_check_ifn): Same.
12044 (sanopt_optimize_walker): Same.
12045 * sched-deps.c (add_dependence_list): Same.
12046 (chain_to_prev_insn): Same.
12047 (add_insn_mem_dependence): Same.
12048 (create_insn_reg_set): Same.
12049 (maybe_extend_reg_info_p): Same.
12050 (sched_analyze_reg): Same.
12051 (sched_analyze_1): Same.
12052 (get_implicit_reg_pending_clobbers): Same.
12053 (chain_to_prev_insn_p): Same.
12054 (deps_analyze_insn): Same.
12055 (deps_start_bb): Same.
12056 (sched_free_deps): Same.
12057 (init_deps): Same.
12058 (init_deps_reg_last): Same.
12059 (free_deps): Same.
12060 * sched-ebb.c: Same.
12061 * sched-int.h: Same.
12062 * sched-rgn.c (add_branch_dependences): Same.
12063 (concat_insn_mem_list): Same.
12064 (deps_join): Same.
12065 (sched_rgn_compute_dependencies): Same.
12066 * sel-sched-ir.c (reset_target_context): Same.
12067 (copy_deps_context): Same.
12068 (init_id_from_df): Same.
12069 (has_dependence_p): Same.
12070 (change_loops_latches): Same.
12071 (bb_top_order_comparator): Same.
12072 (make_region_from_loop_preheader): Same.
12073 (sel_init_pipelining): Same.
12074 (get_loop_nest_for_rgn): Same.
12075 (make_regions_from_the_rest): Same.
12076 (sel_is_loop_preheader_p): Same.
12077 * sel-sched-ir.h (inner_loop_header_p): Same.
12078 (get_all_loop_exits): Same.
12079 * selftest.h: Same.
12080 * sese.c (sese_build_liveouts): Same.
12081 (sese_insert_phis_for_liveouts): Same.
12082 * sese.h (defined_in_sese_p): Same.
12083 * sreal.c (sreal::stream_out): Same.
12084 * sreal.h: Same.
12085 * streamer-hooks.h: Same.
12086 * target-globals.c (save_target_globals): Same.
12087 * target-globals.h: Same.
12088 * target.def: Same.
12089 * target.h: Same.
12090 * targhooks.c (default_has_ifunc_p): Same.
12091 (default_empty_mask_is_expensive): Same.
12092 (default_init_cost): Same.
12093 * targhooks.h: Same.
12094 * toplev.c: Same.
12095 * tree-affine.c (aff_combination_mult): Same.
12096 (aff_combination_expand): Same.
12097 (aff_combination_constant_multiple_p): Same.
12098 * tree-affine.h: Same.
12099 * tree-cfg.c (build_gimple_cfg): Same.
12100 (replace_loop_annotate_in_block): Same.
12101 (replace_uses_by): Same.
12102 (remove_bb): Same.
12103 (dump_cfg_stats): Same.
12104 (gimple_duplicate_sese_region): Same.
12105 (gimple_duplicate_sese_tail): Same.
12106 (move_block_to_fn): Same.
12107 (replace_block_vars_by_duplicates): Same.
12108 (move_sese_region_to_fn): Same.
12109 (print_loops_bb): Same.
12110 (print_loop): Same.
12111 (print_loops): Same.
12112 (debug): Same.
12113 (debug_loops): Same.
12114 * tree-cfg.h: Same.
12115 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12116 (chrec_fold_multiply_poly_poly): Same.
12117 (chrec_evaluate): Same.
12118 (chrec_component_in_loop_num): Same.
12119 (reset_evolution_in_loop): Same.
12120 (is_multivariate_chrec): Same.
12121 (chrec_contains_symbols): Same.
12122 (nb_vars_in_chrec): Same.
12123 (chrec_convert_1): Same.
12124 (chrec_convert_aggressive): Same.
12125 * tree-chrec.h: Same.
12126 * tree-core.h: Same.
12127 * tree-data-ref.c (dump_data_dependence_relation): Same.
12128 (canonicalize_base_object_address): Same.
12129 (data_ref_compare_tree): Same.
12130 (prune_runtime_alias_test_list): Same.
12131 (get_segment_min_max): Same.
12132 (create_intersect_range_checks): Same.
12133 (conflict_fn_no_dependence): Same.
12134 (object_address_invariant_in_loop_p): Same.
12135 (analyze_ziv_subscript): Same.
12136 (analyze_siv_subscript_cst_affine): Same.
12137 (analyze_miv_subscript): Same.
12138 (analyze_overlapping_iterations): Same.
12139 (build_classic_dist_vector_1): Same.
12140 (add_other_self_distances): Same.
12141 (same_access_functions): Same.
12142 (build_classic_dir_vector): Same.
12143 (subscript_dependence_tester_1): Same.
12144 (subscript_dependence_tester): Same.
12145 (access_functions_are_affine_or_constant_p): Same.
12146 (get_references_in_stmt): Same.
12147 (loop_nest_has_data_refs): Same.
12148 (graphite_find_data_references_in_stmt): Same.
12149 (find_data_references_in_bb): Same.
12150 (get_base_for_alignment): Same.
12151 (find_loop_nest_1): Same.
12152 (find_loop_nest): Same.
12153 * tree-data-ref.h (dr_alignment): Same.
12154 (ddr_dependence_level): Same.
12155 * tree-if-conv.c (fold_build_cond_expr): Same.
12156 (add_to_predicate_list): Same.
12157 (add_to_dst_predicate_list): Same.
12158 (phi_convertible_by_degenerating_args): Same.
12159 (idx_within_array_bound): Same.
12160 (all_preds_critical_p): Same.
12161 (pred_blocks_visited_p): Same.
12162 (predicate_bbs): Same.
12163 (build_region): Same.
12164 (if_convertible_loop_p_1): Same.
12165 (is_cond_scalar_reduction): Same.
12166 (predicate_scalar_phi): Same.
12167 (remove_conditions_and_labels): Same.
12168 (combine_blocks): Same.
12169 (version_loop_for_if_conversion): Same.
12170 (versionable_outer_loop_p): Same.
12171 (ifcvt_local_dce): Same.
12172 (tree_if_conversion): Same.
12173 (pass_if_conversion::gate): Same.
12174 * tree-if-conv.h: Same.
12175 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12176 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12177 (free_rdg): Same.
12178 (stmt_has_scalar_dependences_outside_loop): Same.
12179 (copy_loop_before): Same.
12180 (create_bb_after_loop): Same.
12181 (const_with_all_bytes_same): Same.
12182 (generate_memset_builtin): Same.
12183 (generate_memcpy_builtin): Same.
12184 (destroy_loop): Same.
12185 (build_rdg_partition_for_vertex): Same.
12186 (compute_access_range): Same.
12187 (data_ref_segment_size): Same.
12188 (latch_dominated_by_data_ref): Same.
12189 (compute_alias_check_pairs): Same.
12190 (fuse_memset_builtins): Same.
12191 (finalize_partitions): Same.
12192 (find_seed_stmts_for_distribution): Same.
12193 (prepare_perfect_loop_nest): Same.
12194 * tree-parloops.c (lambda_transform_legal_p): Same.
12195 (loop_parallel_p): Same.
12196 (reduc_stmt_res): Same.
12197 (add_field_for_name): Same.
12198 (create_call_for_reduction_1): Same.
12199 (replace_uses_in_bb_by): Same.
12200 (transform_to_exit_first_loop_alt): Same.
12201 (try_transform_to_exit_first_loop_alt): Same.
12202 (transform_to_exit_first_loop): Same.
12203 (num_phis): Same.
12204 (gen_parallel_loop): Same.
12205 (gather_scalar_reductions): Same.
12206 (get_omp_data_i_param): Same.
12207 (try_create_reduction_list): Same.
12208 (oacc_entry_exit_single_gang): Same.
12209 (parallelize_loops): Same.
12210 * tree-pass.h: Same.
12211 * tree-predcom.c (determine_offset): Same.
12212 (last_always_executed_block): Same.
12213 (split_data_refs_to_components): Same.
12214 (suitable_component_p): Same.
12215 (valid_initializer_p): Same.
12216 (find_looparound_phi): Same.
12217 (insert_looparound_copy): Same.
12218 (add_looparound_copies): Same.
12219 (determine_roots_comp): Same.
12220 (predcom_tmp_var): Same.
12221 (initialize_root_vars): Same.
12222 (initialize_root_vars_store_elim_1): Same.
12223 (initialize_root_vars_store_elim_2): Same.
12224 (finalize_eliminated_stores): Same.
12225 (initialize_root_vars_lm): Same.
12226 (remove_stmt): Same.
12227 (determine_unroll_factor): Same.
12228 (execute_pred_commoning_cbck): Same.
12229 (base_names_in_chain_on): Same.
12230 (combine_chains): Same.
12231 (pcom_stmt_dominates_stmt_p): Same.
12232 (try_combine_chains): Same.
12233 (prepare_initializers_chain_store_elim): Same.
12234 (prepare_initializers_chain): Same.
12235 (prepare_initializers): Same.
12236 (prepare_finalizers_chain): Same.
12237 (prepare_finalizers): Same.
12238 (insert_init_seqs): Same.
12239 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12240 (compute_overall_effect_of_inner_loop): Same.
12241 (add_to_evolution_1): Same.
12242 (add_to_evolution): Same.
12243 (follow_ssa_edge_binary): Same.
12244 (follow_ssa_edge_expr): Same.
12245 (backedge_phi_arg_p): Same.
12246 (follow_ssa_edge_in_condition_phi_branch): Same.
12247 (follow_ssa_edge_in_condition_phi): Same.
12248 (follow_ssa_edge_inner_loop_phi): Same.
12249 (follow_ssa_edge): Same.
12250 (analyze_evolution_in_loop): Same.
12251 (analyze_initial_condition): Same.
12252 (interpret_loop_phi): Same.
12253 (interpret_condition_phi): Same.
12254 (interpret_rhs_expr): Same.
12255 (interpret_expr): Same.
12256 (interpret_gimple_assign): Same.
12257 (analyze_scalar_evolution_1): Same.
12258 (analyze_scalar_evolution): Same.
12259 (analyze_scalar_evolution_for_address_of): Same.
12260 (get_instantiated_value_entry): Same.
12261 (loop_closed_phi_def): Same.
12262 (instantiate_scev_name): Same.
12263 (instantiate_scev_poly): Same.
12264 (instantiate_scev_binary): Same.
12265 (instantiate_scev_convert): Same.
12266 (instantiate_scev_not): Same.
12267 (instantiate_scev_r): Same.
12268 (instantiate_scev): Same.
12269 (resolve_mixers): Same.
12270 (initialize_scalar_evolutions_analyzer): Same.
12271 (scev_reset_htab): Same.
12272 (scev_reset): Same.
12273 (derive_simple_iv_with_niters): Same.
12274 (simple_iv_with_niters): Same.
12275 (expression_expensive_p): Same.
12276 (final_value_replacement_loop): Same.
12277 * tree-scalar-evolution.h (block_before_loop): Same.
12278 * tree-ssa-address.h: Same.
12279 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12280 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12281 (record_edge_info): Same.
12282 * tree-ssa-live.c (var_map_base_fini): Same.
12283 (remove_unused_locals): Same.
12284 * tree-ssa-live.h: Same.
12285 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12286 (pass_ch_vect::execute): Same.
12287 (pass_ch::process_loop_p): Same.
12288 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12289 (movement_possibility): Same.
12290 (outermost_invariant_loop): Same.
12291 (stmt_cost): Same.
12292 (determine_max_movement): Same.
12293 (invariantness_dom_walker::before_dom_children): Same.
12294 (move_computations): Same.
12295 (may_move_till): Same.
12296 (force_move_till_op): Same.
12297 (force_move_till): Same.
12298 (memref_free): Same.
12299 (record_mem_ref_loc): Same.
12300 (set_ref_stored_in_loop): Same.
12301 (mark_ref_stored): Same.
12302 (sort_bbs_in_loop_postorder_cmp): Same.
12303 (sort_locs_in_loop_postorder_cmp): Same.
12304 (analyze_memory_references): Same.
12305 (mem_refs_may_alias_p): Same.
12306 (find_ref_loc_in_loop_cmp): Same.
12307 (rewrite_mem_ref_loc::operator): Same.
12308 (first_mem_ref_loc_1::operator): Same.
12309 (sm_set_flag_if_changed::operator): Same.
12310 (execute_sm_if_changed_flag_set): Same.
12311 (execute_sm): Same.
12312 (hoist_memory_references): Same.
12313 (ref_always_accessed::operator): Same.
12314 (refs_independent_p): Same.
12315 (record_dep_loop): Same.
12316 (ref_indep_loop_p_1): Same.
12317 (ref_indep_loop_p): Same.
12318 (can_sm_ref_p): Same.
12319 (find_refs_for_sm): Same.
12320 (loop_suitable_for_sm): Same.
12321 (store_motion_loop): Same.
12322 (store_motion): Same.
12323 (fill_always_executed_in): Same.
12324 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12325 (estimated_unrolled_size): Same.
12326 (loop_edge_to_cancel): Same.
12327 (remove_exits_and_undefined_stmts): Same.
12328 (remove_redundant_iv_tests): Same.
12329 (unloop_loops): Same.
12330 (estimated_peeled_sequence_size): Same.
12331 (try_peel_loop): Same.
12332 (canonicalize_loop_induction_variables): Same.
12333 (canonicalize_induction_variables): Same.
12334 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12335 (name_info): Same.
12336 (stmt_after_inc_pos): Same.
12337 (contains_abnormal_ssa_name_p): Same.
12338 (niter_for_exit): Same.
12339 (find_bivs): Same.
12340 (mark_bivs): Same.
12341 (find_givs_in_bb): Same.
12342 (find_induction_variables): Same.
12343 (find_interesting_uses_cond): Same.
12344 (outermost_invariant_loop_for_expr): Same.
12345 (idx_find_step): Same.
12346 (add_candidate_1): Same.
12347 (add_iv_candidate_derived_from_uses): Same.
12348 (alloc_use_cost_map): Same.
12349 (prepare_decl_rtl): Same.
12350 (generic_predict_doloop_p): Same.
12351 (computation_cost): Same.
12352 (determine_common_wider_type): Same.
12353 (get_computation_aff_1): Same.
12354 (get_use_type): Same.
12355 (determine_group_iv_cost_address): Same.
12356 (iv_period): Same.
12357 (difference_cannot_overflow_p): Same.
12358 (may_eliminate_iv): Same.
12359 (determine_set_costs): Same.
12360 (cheaper_cost_pair): Same.
12361 (compare_cost_pair): Same.
12362 (iv_ca_cand_for_group): Same.
12363 (iv_ca_recount_cost): Same.
12364 (iv_ca_set_remove_invs): Same.
12365 (iv_ca_set_no_cp): Same.
12366 (iv_ca_set_add_invs): Same.
12367 (iv_ca_set_cp): Same.
12368 (iv_ca_add_group): Same.
12369 (iv_ca_cost): Same.
12370 (iv_ca_compare_deps): Same.
12371 (iv_ca_delta_reverse): Same.
12372 (iv_ca_delta_commit): Same.
12373 (iv_ca_cand_used_p): Same.
12374 (iv_ca_delta_free): Same.
12375 (iv_ca_new): Same.
12376 (iv_ca_free): Same.
12377 (iv_ca_dump): Same.
12378 (iv_ca_extend): Same.
12379 (iv_ca_narrow): Same.
12380 (iv_ca_prune): Same.
12381 (cheaper_cost_with_cand): Same.
12382 (iv_ca_replace): Same.
12383 (try_add_cand_for): Same.
12384 (get_initial_solution): Same.
12385 (try_improve_iv_set): Same.
12386 (find_optimal_iv_set_1): Same.
12387 (create_new_iv): Same.
12388 (rewrite_use_compare): Same.
12389 (remove_unused_ivs): Same.
12390 (determine_scaling_factor): Same.
12391 * tree-ssa-loop-ivopts.h: Same.
12392 * tree-ssa-loop-manip.c (create_iv): Same.
12393 (compute_live_loop_exits): Same.
12394 (add_exit_phi): Same.
12395 (add_exit_phis): Same.
12396 (find_uses_to_rename_use): Same.
12397 (find_uses_to_rename_def): Same.
12398 (find_uses_to_rename_in_loop): Same.
12399 (rewrite_into_loop_closed_ssa): Same.
12400 (check_loop_closed_ssa_bb): Same.
12401 (split_loop_exit_edge): Same.
12402 (ip_end_pos): Same.
12403 (ip_normal_pos): Same.
12404 (copy_phi_node_args): Same.
12405 (gimple_duplicate_loop_to_header_edge): Same.
12406 (can_unroll_loop_p): Same.
12407 (determine_exit_conditions): Same.
12408 (scale_dominated_blocks_in_loop): Same.
12409 (niter_for_unrolled_loop): Same.
12410 (tree_transform_and_unroll_loop): Same.
12411 (rewrite_all_phi_nodes_with_iv): Same.
12412 * tree-ssa-loop-manip.h: Same.
12413 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12414 (number_of_iterations_ne): Same.
12415 (assert_no_overflow_lt): Same.
12416 (assert_loop_rolls_lt): Same.
12417 (number_of_iterations_lt): Same.
12418 (adjust_cond_for_loop_until_wrap): Same.
12419 (tree_simplify_using_condition): Same.
12420 (simplify_using_initial_conditions): Same.
12421 (simplify_using_outer_evolutions): Same.
12422 (loop_only_exit_p): Same.
12423 (ssa_defined_by_minus_one_stmt_p): Same.
12424 (number_of_iterations_popcount): Same.
12425 (number_of_iterations_exit): Same.
12426 (find_loop_niter): Same.
12427 (finite_loop_p): Same.
12428 (chain_of_csts_start): Same.
12429 (get_val_for): Same.
12430 (loop_niter_by_eval): Same.
12431 (derive_constant_upper_bound_ops): Same.
12432 (do_warn_aggressive_loop_optimizations): Same.
12433 (record_estimate): Same.
12434 (get_cst_init_from_scev): Same.
12435 (record_nonwrapping_iv): Same.
12436 (idx_infer_loop_bounds): Same.
12437 (infer_loop_bounds_from_ref): Same.
12438 (infer_loop_bounds_from_array): Same.
12439 (infer_loop_bounds_from_pointer_arith): Same.
12440 (infer_loop_bounds_from_signedness): Same.
12441 (bound_index): Same.
12442 (discover_iteration_bound_by_body_walk): Same.
12443 (maybe_lower_iteration_bound): Same.
12444 (estimate_numbers_of_iterations): Same.
12445 (estimated_loop_iterations): Same.
12446 (estimated_loop_iterations_int): Same.
12447 (max_loop_iterations): Same.
12448 (max_loop_iterations_int): Same.
12449 (likely_max_loop_iterations): Same.
12450 (likely_max_loop_iterations_int): Same.
12451 (estimated_stmt_executions_int): Same.
12452 (max_stmt_executions): Same.
12453 (likely_max_stmt_executions): Same.
12454 (estimated_stmt_executions): Same.
12455 (stmt_dominates_stmt_p): Same.
12456 (nowrap_type_p): Same.
12457 (loop_exits_before_overflow): Same.
12458 (scev_var_range_cant_overflow): Same.
12459 (scev_probably_wraps_p): Same.
12460 (free_numbers_of_iterations_estimates): Same.
12461 * tree-ssa-loop-niter.h: Same.
12462 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12463 (idx_analyze_ref): Same.
12464 (analyze_ref): Same.
12465 (gather_memory_references_ref): Same.
12466 (mark_nontemporal_store): Same.
12467 (emit_mfence_after_loop): Same.
12468 (may_use_storent_in_loop_p): Same.
12469 (mark_nontemporal_stores): Same.
12470 (should_unroll_loop_p): Same.
12471 (volume_of_dist_vector): Same.
12472 (add_subscript_strides): Same.
12473 (self_reuse_distance): Same.
12474 (insn_to_prefetch_ratio_too_small_p): Same.
12475 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12476 (patch_loop_exit): Same.
12477 (find_or_create_guard_phi): Same.
12478 (easy_exit_values): Same.
12479 (connect_loop_phis): Same.
12480 (connect_loops): Same.
12481 (compute_new_first_bound): Same.
12482 (split_loop): Same.
12483 (tree_ssa_split_loops): Same.
12484 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12485 (is_maybe_undefined): Same.
12486 (tree_may_unswitch_on): Same.
12487 (simplify_using_entry_checks): Same.
12488 (tree_unswitch_single_loop): Same.
12489 (tree_unswitch_loop): Same.
12490 (tree_unswitch_outer_loop): Same.
12491 (empty_bb_without_guard_p): Same.
12492 (used_outside_loop_p): Same.
12493 (get_vop_from_header): Same.
12494 (hoist_guard): Same.
12495 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12496 (get_lsm_tmp_name): Same.
12497 * tree-ssa-loop.h: Same.
12498 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12499 (build_and_add_sum): Same.
12500 (no_side_effect_bb): Same.
12501 (get_ops): Same.
12502 (linearize_expr): Same.
12503 (should_break_up_subtract): Same.
12504 (linearize_expr_tree): Same.
12505 * tree-ssa-scopedtables.c: Same.
12506 * tree-ssa-scopedtables.h: Same.
12507 * tree-ssa-structalias.c (condense_visit): Same.
12508 (label_visit): Same.
12509 (dump_pred_graph): Same.
12510 (perform_var_substitution): Same.
12511 (move_complex_constraints): Same.
12512 (remove_preds_and_fake_succs): Same.
12513 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12514 (determine_bb_domination_status): Same.
12515 (duplicate_thread_path): Same.
12516 (thread_through_all_blocks): Same.
12517 * tree-ssa-threadupdate.h: Same.
12518 * tree-streamer-in.c (streamer_read_string_cst): Same.
12519 (input_identifier): Same.
12520 (unpack_ts_type_common_value_fields): Same.
12521 (unpack_ts_block_value_fields): Same.
12522 (unpack_ts_translation_unit_decl_value_fields): Same.
12523 (unpack_ts_omp_clause_value_fields): Same.
12524 (streamer_read_tree_bitfields): Same.
12525 (streamer_alloc_tree): Same.
12526 (lto_input_ts_common_tree_pointers): Same.
12527 (lto_input_ts_vector_tree_pointers): Same.
12528 (lto_input_ts_poly_tree_pointers): Same.
12529 (lto_input_ts_complex_tree_pointers): Same.
12530 (lto_input_ts_decl_minimal_tree_pointers): Same.
12531 (lto_input_ts_decl_common_tree_pointers): Same.
12532 (lto_input_ts_decl_non_common_tree_pointers): Same.
12533 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12534 (lto_input_ts_field_decl_tree_pointers): Same.
12535 (lto_input_ts_function_decl_tree_pointers): Same.
12536 (lto_input_ts_type_common_tree_pointers): Same.
12537 (lto_input_ts_type_non_common_tree_pointers): Same.
12538 (lto_input_ts_list_tree_pointers): Same.
12539 (lto_input_ts_vec_tree_pointers): Same.
12540 (lto_input_ts_exp_tree_pointers): Same.
12541 (lto_input_ts_block_tree_pointers): Same.
12542 (lto_input_ts_binfo_tree_pointers): Same.
12543 (lto_input_ts_constructor_tree_pointers): Same.
12544 (lto_input_ts_omp_clause_tree_pointers): Same.
12545 (streamer_read_tree_body): Same.
12546 * tree-streamer.h: Same.
12547 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12548 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12549 (vect_analyze_possibly_independent_ddr): Same.
12550 (vect_analyze_data_ref_dependence): Same.
12551 (vect_compute_data_ref_alignment): Same.
12552 (vect_enhance_data_refs_alignment): Same.
12553 (vect_analyze_data_ref_access): Same.
12554 (vect_check_gather_scatter): Same.
12555 (vect_find_stmt_data_reference): Same.
12556 (vect_create_addr_base_for_vector_ref): Same.
12557 (vect_setup_realignment): Same.
12558 (vect_supportable_dr_alignment): Same.
12559 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12560 (adjust_phi_and_debug_stmts): Same.
12561 (vect_set_loop_mask): Same.
12562 (add_preheader_seq): Same.
12563 (vect_maybe_permute_loop_masks): Same.
12564 (vect_set_loop_masks_directly): Same.
12565 (vect_set_loop_condition_masked): Same.
12566 (vect_set_loop_condition_unmasked): Same.
12567 (slpeel_duplicate_current_defs_from_edges): Same.
12568 (slpeel_add_loop_guard): Same.
12569 (slpeel_can_duplicate_loop_p): Same.
12570 (create_lcssa_for_virtual_phi): Same.
12571 (iv_phi_p): Same.
12572 (vect_update_ivs_after_vectorizer): Same.
12573 (vect_gen_vector_loop_niters_mult_vf): Same.
12574 (slpeel_update_phi_nodes_for_loops): Same.
12575 (slpeel_update_phi_nodes_for_guard1): Same.
12576 (find_guard_arg): Same.
12577 (slpeel_update_phi_nodes_for_guard2): Same.
12578 (slpeel_update_phi_nodes_for_lcssa): Same.
12579 (vect_do_peeling): Same.
12580 (vect_create_cond_for_alias_checks): Same.
12581 (vect_loop_versioning): Same.
12582 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12583 (vect_inner_phi_in_double_reduction_p): Same.
12584 (vect_analyze_scalar_cycles_1): Same.
12585 (vect_fixup_scalar_cycles_with_patterns): Same.
12586 (vect_get_loop_niters): Same.
12587 (bb_in_loop_p): Same.
12588 (vect_get_max_nscalars_per_iter): Same.
12589 (vect_verify_full_masking): Same.
12590 (vect_compute_single_scalar_iteration_cost): Same.
12591 (vect_analyze_loop_form_1): Same.
12592 (vect_analyze_loop_form): Same.
12593 (vect_active_double_reduction_p): Same.
12594 (vect_analyze_loop_operations): Same.
12595 (neutral_op_for_slp_reduction): Same.
12596 (vect_is_simple_reduction): Same.
12597 (vect_model_reduction_cost): Same.
12598 (get_initial_def_for_reduction): Same.
12599 (get_initial_defs_for_reduction): Same.
12600 (vect_create_epilog_for_reduction): Same.
12601 (vectorize_fold_left_reduction): Same.
12602 (vectorizable_reduction): Same.
12603 (vectorizable_induction): Same.
12604 (vectorizable_live_operation): Same.
12605 (loop_niters_no_overflow): Same.
12606 (vect_get_loop_mask): Same.
12607 (vect_transform_loop_stmt): Same.
12608 (vect_transform_loop): Same.
12609 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12610 (vect_determine_precisions): Same.
12611 (vect_pattern_recog_1): Same.
12612 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12613 * tree-vect-stmts.c (stmt_vectype): Same.
12614 (process_use): Same.
12615 (vect_init_vector_1): Same.
12616 (vect_truncate_gather_scatter_offset): Same.
12617 (get_group_load_store_type): Same.
12618 (vect_build_gather_load_calls): Same.
12619 (vect_get_strided_load_store_ops): Same.
12620 (vectorizable_simd_clone_call): Same.
12621 (vectorizable_store): Same.
12622 (permute_vec_elements): Same.
12623 (vectorizable_load): Same.
12624 (vect_transform_stmt): Same.
12625 (supportable_widening_operation): Same.
12626 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12627 (vec_info::free_stmt_vec_info): Same.
12628 (vect_free_loop_info_assumptions): Same.
12629 (vect_loop_vectorized_call): Same.
12630 (set_uid_loop_bbs): Same.
12631 (vectorize_loops): Same.
12632 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12633 * tree.c (add_tree_to_fld_list): Same.
12634 (fld_type_variant_equal_p): Same.
12635 (fld_decl_context): Same.
12636 (fld_incomplete_type_of): Same.
12637 (free_lang_data_in_binfo): Same.
12638 (need_assembler_name_p): Same.
12639 (find_decls_types_r): Same.
12640 (get_eh_types_for_runtime): Same.
12641 (find_decls_types_in_eh_region): Same.
12642 (find_decls_types_in_node): Same.
12643 (assign_assembler_name_if_needed): Same.
12644 * value-prof.c (stream_out_histogram_value): Same.
12645 * value-prof.h: Same.
12646 * var-tracking.c (use_narrower_mode): Same.
12647 (prepare_call_arguments): Same.
12648 (vt_expand_loc_callback): Same.
12649 (resolve_expansions_pending_recursion): Same.
12650 (vt_expand_loc): Same.
12651 * varasm.c (const_hash_1): Same.
12652 (compare_constant): Same.
12653 (tree_output_constant_def): Same.
12654 (simplify_subtraction): Same.
12655 (get_pool_constant): Same.
12656 (output_constant_pool_2): Same.
12657 (output_constant_pool_1): Same.
12658 (mark_constants_in_pattern): Same.
12659 (mark_constant_pool): Same.
12660 (get_section_anchor): Same.
12661 * vr-values.c (compare_range_with_value): Same.
12662 (vr_values::extract_range_from_phi_node): Same.
12663 * vr-values.h: Same.
12664 * web.c (unionfind_union): Same.
12665 * wide-int.h: Same.
12666
12667 2019-07-09 Martin Sebor <msebor@redhat.com>
12668
12669 PR c++/61339
12670 * align.h: Change class-key from class to struct and vice versa
12671 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12672 * alloc-pool.h: Same.
12673 * asan.c (shadow_mem_size): Same.
12674 * auto-profile.c: Same.
12675 * basic-block.h: Same.
12676 * bitmap.h: Same.
12677 * cfgexpand.c (set_rtl): Same.
12678 (expand_one_stack_var_at): Same.
12679 * cfghooks.h: Same.
12680 * cfgloop.h: Same.
12681 * cgraph.h: Same.
12682 * config/i386/i386.h: Same.
12683 * df-problems.c (df_print_bb_index): Same.
12684 * df-scan.c: Same.
12685 * df.h (df_single_use): Same.
12686 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12687 (layout::annotation_line_showed_range_p): Same.
12688 (get_printed_columns): Same.
12689 (correction::ensure_terminated): Same.
12690 (line_corrections::~line_corrections): Same.
12691 * dojump.h: Same.
12692 * dse.c: Same.
12693 * dump-context.h: Same.
12694 * dumpfile.h: Same.
12695 * dwarf2out.c: Same.
12696 * edit-context.c: Same.
12697 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12698 * flags.h: Same.
12699 * function.c (assign_stack_local): Same.
12700 * function.h: Same.
12701 * gcc.c: Same.
12702 * gcov.c (block_info::block_info): Same.
12703 * genattrtab.c: Same.
12704 * genextract.c: Same.
12705 * genmatch.c (comparison_code_p): Same.
12706 (id_base::id_base): Same.
12707 (decision_tree::print): Same.
12708 * genoutput.c: Same.
12709 * genpreds.c (write_one_predicate_function): Same.
12710 * genrecog.c (validate_pattern): Same.
12711 (find_operand_positions): Same.
12712 (optimize_subroutine_group): Same.
12713 (merge_pattern_transition::merge_pattern_transition): Same.
12714 (merge_pattern_info::merge_pattern_info): Same.
12715 (merge_state_result::merge_state_result): Same.
12716 (merge_into_state): Same.
12717 * gensupport.c: Same.
12718 * gensupport.h: Same.
12719 * ggc-common.c (init_ggc_heuristics): Same.
12720 * ggc-tests.c (test_union): Same.
12721 * gimple-loop-interchange.cc (dump_induction): Same.
12722 * gimple-loop-versioning.cc: Same.
12723 * gimple-match.h (gimple_match_cond::any_else): Same.
12724 * gimple-ssa-backprop.c: Same.
12725 * gimple-ssa-sprintf.c: Same.
12726 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12727 Same.
12728 (store_immediate_info::store_immediate_info): Same.
12729 (merged_store_group::apply_stores): Same.
12730 (get_location_for_stmts): Same.
12731 * gimple-ssa-strength-reduction.c: Same.
12732 * gimple-ssa-warn-alloca.c: Same.
12733 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12734 * godump.c (go_type_decl): Same.
12735 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12736 * hash-map.h: Same.
12737 * hash-set-tests.c (test_set_of_strings): Same.
12738 * hsa-brig.c: Same.
12739 * hsa-common.h: Same.
12740 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12741 * input.c (assert_loceq): Same.
12742 * input.h: Same.
12743 * ipa-cp.c: Same.
12744 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12745 * ipa-fnsummary.h: Same.
12746 * ipa-inline.h: Same.
12747 * ipa-prop.h: Same.
12748 * ipa-split.c (visit_bb): Same.
12749 * ira-int.h (minmax_set_iter_next): Same.
12750 * loop-invariant.c: Same.
12751 * loop-iv.c: Same.
12752 * lra-eliminations.c: Same.
12753 * lra-int.h: Same.
12754 * lra-lives.c (mark_regno_dead): Same.
12755 * lra-remat.c: Same.
12756 * lra-spills.c: Same.
12757 * lto-streamer.h: Same.
12758 * mem-stats.h: Same.
12759 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12760 * omp-low.c (omp_clause_aligned_alignment): Same.
12761 * optabs-query.h (get_vcond_eq_icode): Same.
12762 * optabs.h: Same.
12763 * opts.c (wrap_help): Same.
12764 * poly-int.h: Same.
12765 * predict.c (predict_paths_leading_to_edge): Same.
12766 * pretty-print.h: Same.
12767 * profile-count.h: Same.
12768 * read-md.h: Same.
12769 * read-rtl-function.c: Same.
12770 * ree.c: Same.
12771 * reginfo.c: Same.
12772 * regrename.c: Same.
12773 * regrename.h: Same.
12774 * reload.h: Same.
12775 * rtl-iter.h: Same.
12776 * rtl.h (costs_add_n_insns): Same.
12777 * sanopt.c: Same.
12778 * sched-int.h: Same.
12779 * sel-sched-ir.h: Same.
12780 * selftest.h: Same.
12781 * sese.h (vec_find): Same.
12782 * stmt.c: Same.
12783 * target-globals.h: Same.
12784 * tree-affine.c (aff_combination_find_elt): Same.
12785 * tree-affine.h: Same.
12786 * tree-data-ref.h: Same.
12787 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12788 * tree-predcom.c: Same.
12789 * tree-scalar-evolution.c (find_var_scev_info): Same.
12790 * tree-ssa-alias.h: Same.
12791 * tree-ssa-ccp.c: Same.
12792 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12793 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12794 (rewrite_mem_refs): Same.
12795 (execute_sm_if_changed): Same.
12796 (hoist_memory_references): Same.
12797 * tree-ssa-loop-ivopts.c (operator<=): Same.
12798 * tree-ssa-loop.h: Same.
12799 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12800 * tree-ssa-structalias.c: Same.
12801 * tree-switch-conversion.h (cluster::cluster): Same.
12802 (simple_cluster::simple_cluster): Same.
12803 * tree-vect-patterns.c (type_conversion_p): Same.
12804 * tree-vectorizer.c (dump_stmt_cost): Same.
12805 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12806 * tree.c (protected_set_expr_location): Same.
12807 * tree.h (desired_pro_or_demotion_p): Same.
12808 (fndecl_built_in_p): Same.
12809 * unique-ptr-tests.cc: Same.
12810 * var-tracking.c (delete_variable_part): Same.
12811 * varasm.c (assemble_real): Same.
12812 (tree_output_constant_def): Same.
12813 * vec.c: Same.
12814 * wide-int-bitmask.h: Same.
12815 * wide-int.h (decompose): Same.
12816
12817 2019-07-09 Richard Biener <rguenther@suse.de>
12818
12819 PR tree-optimization/91114
12820 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12821 find a vector type isn't fatal.
12822
12823 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12824
12825 * config/aarch64/aarch64-simd.md
12826 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12827 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12828 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12829 (*aarch64_crypto_aese_fused,
12830 *aarch64_crypto_aesd_fused): Update to new definition.
12831 * config/aarch64/aarch64.c
12832 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12833
12834 2019-07-09 Richard Biener <rguenther@suse.de>
12835
12836 * gimple-match.h (gimple_match_op::resimplify): New.
12837 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12838 gimple_resimplify4, gimple_resimplify5): Remove.
12839 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12840 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12841 Make static.
12842 (gimple_match_op::resimplify): New.
12843 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12844 according to availability. Use gimple_match_op::resimplify.
12845
12846 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12847
12848 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12849
12850 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12851
12852 * config/arm/crypto.md:
12853 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12854 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12855 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12856 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12857 * config/arm/arm.c
12858 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12859 * config/arm/aarch-common-protos.h
12860 (aarch_crypto_can_dual_issue): Remove.
12861 * config/arm/aarch-common.c
12862 (aarch_crypto_can_dual_issue): Likewise.
12863 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12864 * config/arm/cortex-a53.md: Likewise.
12865 * config/arm/cortex-a57.md: Likewise.
12866 * config/arm/iterators.md:
12867 (CRYPTO_BINARY): Redefine.
12868 (CRYPTO_UNARY): Removed.
12869 (CRYPTO_AES, CRYPTO_AESMC): New.
12870
12871 2019-07-09 Richard Biener <rguenther@suse.de>
12872
12873 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12874 (vn_reference_lookup_3): If the main ref has no access path recorded
12875 but orig_ref has use it to do access-path based disambiguation.
12876 (vn_reference_lookup_pieces): Adjust.
12877 (vn_reference_lookup): Pass down original ref if we valueized.
12878
12879 2019-07-09 Martin Liska <mliska@suse.cz>
12880
12881 * doc/extend.texi: Document influence on loop
12882 optimizers.
12883
12884 2019-07-09 Martin Liska <mliska@suse.cz>
12885
12886 * lto-compress.c (lto_normalized_zstd_level): Do not use
12887 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12888 of libzstd. One can use 0 as a default compression level.
12889
12890 2019-07-09 Martin Liska <mliska@suse.cz>
12891
12892 * doc/invoke.texi: Add link from -fprofile-dir option.
12893 Use better wording for 'gcno filename'.
12894
12895 2019-07-08 Martin Sebor <msebor@redhat.com>
12896
12897 PR middle-end/71924
12898 PR middle-end/90549
12899 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12900 comment.
12901 (args_loc_t): New type.
12902 (args_loc_t, locmap_t): same.
12903 (diag_returned_locals): New function.
12904 (is_addr_local): Same.
12905 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12906 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12907 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12908
12909 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12910
12911 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12912 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12913 and casts in offset when different, both through gimple stmts
12914 and through trees. Rewritten using loops to minimize code duplication
12915 for each operand.
12916
12917 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12918
12919 * emit-rtl.c (set_insn_locations): New function moved from...
12920 * function.c (set_insn_locations): ...here.
12921 * ira-emit.c (emit_moves): Propagate location of the first instruction
12922 to the inserted move instructions.
12923 * reg-stack.c (compensate_edge): Set the location if the sequence is
12924 inserted on the edge.
12925 * rtl.h (set_insn_locations): Declare.
12926
12927 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12928
12929 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12930 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12931 .machine string.
12932
12933 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12934
12935 PR rtl-optimization/88233
12936 * common.opt (fsplit-wide-types-early): New option.
12937 * common/config/rs6000/rs6000-common.c
12938 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12939 OPT_LEVELS_ALL.
12940 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12941 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12942 flag_split_wide_types_early.
12943 (pass_data_lower_subreg3): New.
12944 (pass_lower_subreg3): New.
12945 (make_pass_lower_subreg3): New.
12946 * passes.def (pass_lower_subreg2): Move after the loop passes.
12947 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12948 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12949 the pass pipeline; its previous place is taken by ...
12950 (make_pass_lower_subreg3): ... this.
12951
12952 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12953
12954 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12955 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12956
12957 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12958
12959 * config/s390/constraints.md: Add new jsc constraint.
12960 * config/s390/predicates.md: New predicates.
12961 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12962 * config/s390/s390.c (s390_valid_shift_count): New function.
12963 (print_shift_count_operand): Use s390_valid_shift_count.
12964 (print_operand): Likewise.
12965 * config/s390/s390.md: Use new predicate.
12966 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12967 * config/s390/vector.md: Use new predicate.
12968
12969 2019-07-08 Andrew Waterman <andrew@sifive.com>
12970 Jim Wilson <jimw@sifive.com>
12971
12972 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12973 bitsize instead of BITS_PER_WORD.
12974
12975 2019-07-08 Martin Liska <mliska@suse.cz>
12976
12977 * collect2.c (defined): Revert to before r254460.
12978 (scan_prog_file): Revert to before r254460.
12979
12980 2019-07-08 Richard Biener <rguenther@suse.de>
12981
12982 PR tree-optimization/83518
12983 * tree-ssa-sccvn.c: Include splay-tree.h.
12984 (struct pd_range, struct pd_data): New.
12985 (struct vn_walk_cb_data): Add data to track partial definitions.
12986 (vn_walk_cb_data::~vn_walk_cb_data): New.
12987 (vn_walk_cb_data::push_partial_def): New.
12988 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12989 (vn_reference_lookup_2): When partial defs are registered give up.
12990 (vn_reference_lookup_3): Track partial defs for memset and
12991 constructor zeroing and for defs from constants.
12992
12993 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12994
12995 * doc/install.texi (bootstrap-Og): Document.
12996
12997 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12998
12999 * config/riscv/pic.md (*local_pic_load_s<mode>)
13000 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13001 referenced by <mode>, giving...
13002 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13003 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13004 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13005 use <X:MODE> for the mode attribute.
13006
13007 2019-07-07 Jeff Law <law@redhat.com>
13008
13009 PR tree-optimization/91090
13010 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13011 in handling of ranges to simplify switch statements.
13012
13013 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13014
13015 * config/darwin.c (darwin_override_options): Make a final check on PIC
13016 options.
13017
13018 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13019
13020 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13021 on for kernel code.
13022
13023 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13024
13025 PR target/91068
13026 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13027 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13028 instead of matching them to "l" output operands.
13029
13030 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13031
13032 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13033 and check whether addr.reg is nonnull before using it.
13034
13035 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13036
13037 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13038 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13039 variable(s). For conditional lastprivate look through outer
13040 GIMPLE_OMP_SCAN context.
13041 (lower_omp_1): For conditional lastprivate look through outer
13042 GIMPLE_OMP_SCAN context.
13043
13044 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13045 member to combined_into_simd_safelen1.
13046 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13047 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13048 clauses if ctx->combined_into_simd_safelen1 put statements after the
13049 predicate conditionalized block rather than into it.
13050
13051 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13054 operand 1.
13055 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13056 Make the choice of <mode> explicit, giving...
13057 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13058
13059 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13060
13061 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13062 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13063 of .md attributes.
13064 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13065 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13066 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13067 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13068 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13069 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13070 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13071 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13072 (*avx512f_scatterdi<mode>): Likewise.
13073 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13074
13075 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13076
13077 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13078 specify the mode iterator referenced by <mode>, giving...
13079 (*push1_h8300hs_<QHI:mode>): ...this.
13080
13081 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13082
13083 * config/gcn/gcn-valu.md
13084 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13085 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13086 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13087 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13088 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13089 but using the _exec comparison patterns.
13090 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13091 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13092 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13093 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13094 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13095 but using the _exec comparison patterns.
13096
13097 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13098
13099 * config/arm/sync.md
13100 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13101 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13102 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13103 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13104 <SIDI:cas_cmp_str>.
13105
13106 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13107
13108 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13109 (maybe_lookup_ctx): Add forward declaration.
13110 (omp_find_scan): Likewise. Walk into body of simd if composited
13111 with worksharing loop.
13112 (scan_omp_simd_scan): New function.
13113 (scan_omp_1_stmt): Call it.
13114 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13115 ctx->for_simd_scan_phase.
13116 (lower_rec_input_clauses): Do much less work for inscan reductions
13117 in ctx->for_simd_scan_phase is_simd regions.
13118 (lower_omp_scan): Set is_simd also on simd constructs composited
13119 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13120 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13121 emit their body after in simd constructs composited with worksharing
13122 loop.
13123 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13124
13125 * omp-low.c (omp_find_scan): Make static.
13126 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13127 the second loop, var2 represents the first partial sum and so needs
13128 to go before rprivb[ivar].
13129
13130 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13131
13132 * config/rs6000/rs6000-logue.c: Remove unused code.
13133
13134 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13135
13136 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13137
13138 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13139
13140 PR target/90712
13141 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13142 check with a frame laid out check.
13143
13144 2019-07-05 Richard Biener <rguenther@suse.de>
13145
13146 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13147 when comparing against a store with possibly the same value.
13148
13149 2019-07-05 Richard Biener <rguenther@suse.de>
13150
13151 PR tree-optimization/91091
13152 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13153 (walk_non_aliased_vuses): Likewise.
13154 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13155 (get_continuation_for_phi): New tbaa_p parameter and pass
13156 it down.
13157 (walk_non_aliased_vuses): Likewise.
13158 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13159 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13160 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13161 Likewise.
13162 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13163 (adjust_offsets_for_equal_base_address): New function.
13164 (vn_reference_lookup_3): Use it to catch more base equivalences.
13165 Handle and pass down tbaa_p flag.
13166 (vn_reference_lookup_pieces): Adjust.
13167 (vn_reference_lookup): Remove alias-set altering, instead pass
13168 down false as tbaa_p.
13169
13170 2019-07-05 Richard Biener <rguenther@suse.de>
13171
13172 PR tree-optimization/91091
13173 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13174 accesses can happen with -fno-strict-aliasing.
13175
13176 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13177
13178 * tree-ssa-alias.c (alias_stats): Add
13179 nonoverlapping_component_refs_since_match_p_must_overlap.
13180 (dump_alias_stats): Print it.
13181 (nonoverlapping_component_refs_since_match_p): Add early exit.
13182 (nonoverlapping_component_refs_p): Do not account early exit.
13183
13184 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13185
13186 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13187 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13188 (emit_eh_dispatch): Delete.
13189 (lower_catch): Emit the eh_dispatch manually and set the location of
13190 the first catch statement onto it.
13191 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13192 (lower_eh_dispatch): Propagate location.
13193 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13194 (eliminate_build): Likewise.
13195
13196 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13197
13198 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13199 phi nodes if possible.
13200 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13201 location info on the newly created statement.
13202 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13203 newly created increment if needed.
13204
13205 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13206
13207 PR middle-end/78884
13208 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13209 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13210 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13211 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13212 ctx->add_safelen1 is set.
13213
13214 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13215 GOMP_loop_start at the start of second worksharing loop in a scan.
13216 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13217 worksharing loop in a scan even if there are conditional lastprivates,
13218 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13219
13220 2019-07-04 Jan Hubicka <jh@suse.cz>
13221
13222 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13223 Fix check for match in the ref walk.
13224
13225 2019-07-04 Martin Liska <mliska@suse.cz>
13226
13227 * tree-ssa-loop-niter.c
13228 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13229 (estimate_numbers_of_iterations):
13230 Support __builtin_expect_with_probability for analysis
13231 of # of loop iterations.
13232
13233 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13234
13235 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13236 * except.c: Likewise.
13237 * expr.c (expand_expr_real_1): Reject it.
13238 * gimplify.c (gimplify_expr): Gimplify it, within
13239 TRY_FINALLY_EXPR.
13240 * tree-dump.c (dequeue_and_dump): Dump it.
13241 * tree-pretty-print.c (dump_generic_node): Likewise.
13242 * tree.c (block_may_fallthru): Handle it.
13243 * tree.def (EH_ELSE_EXPR): Introduce it.
13244 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13245 with GIMPLE_EH_ELSE as try/finally/else.
13246
13247 2019-07-04 Richard Biener <rguenther@suse.de>
13248
13249 PR ipa/91062
13250 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13251 parameter whether to disable GC collection.
13252 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13253 honor it.
13254 (execute_all_ipa_transforms): Likewise and pass it down.
13255 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13256 collection from applying IPA transforms.
13257 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13258 from applying IPA transforms.
13259
13260 2019-07-04 Richard Biener <rguenther@suse.de>
13261
13262 PR tree-optimization/90911
13263 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13264 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13265 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13266 scalar_loop_scaling.
13267 (vect_transform_loop): Scale scalar loop profile if needed.
13268 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13269 the loop copy from if-conversion adjust edge probabilities
13270 and scale the vectorized loop body profile, queue the scalar
13271 profile for updating after peeling.
13272
13273 2019-07-04 Jan Hubicka <jh@suse.cz>
13274
13275 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13276 parameters; return early for must-alias.
13277 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13278 outer types match, try nonoverlapping_component_refs
13279 if must-alias is not obvious.
13280 (indirect_refs_may_alias_p): Likewise.
13281 (refs_may_alias_p_2): Likewise.
13282
13283 2019-07-04 Richard Biener <rguenther@suse.de>
13284
13285 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13286 argument.
13287 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13288 globals into...
13289 (struct vn_walk_cb_data): New callback data struct.
13290 (vn_reference_lookup_2): Adjust.
13291 (vn_reference_lookup_3): Likewise.
13292 (vn_reference_lookup_pieces): Likewise.
13293 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13294 (visit_reference_op_load): Adjust.
13295
13296 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13297
13298 PR tree-optimization/91063
13299 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13300 stmt from stmts sequence before calling vect_init_vector_1.
13301 Formatting fix.
13302
13303 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13304
13305 PR target/88833
13306 * fwprop.c (reg_single_def_p): New function.
13307 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13308 (forward_propagate_into): New parameter reg_prop_only
13309 with default value false.
13310 Propagate def's src into loop only if SET_SRC and SET_DEST
13311 of def_set have single definitions.
13312 Likewise if reg_prop_only is set to true.
13313 (fwprop): New param fwprop_addr_p.
13314 Integrate fwprop_addr into fwprop.
13315 (fwprop_addr): Remove.
13316 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13317 to true.
13318 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13319 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13320 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13321
13322 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13323
13324 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13325 in worksharing loop scans.
13326
13327 PR tree-optimization/91074
13328 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13329 temporary.
13330
13331 PR rtl-optimization/90756
13332 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13333 for VECTOR_TYPE_P.
13334
13335 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13336
13337 * config/aarch64/aarch64.md: Remove redundant constraints from
13338 define_expand but keep some patterns untouched if they are
13339 specially selected by TARGET_SECONDARY_RELOAD hook.
13340 * config/aarch64/aarch64-sve.md: Likewise.
13341 * config/aarch64/atomics.md: Remove redundant constraints from
13342 define_expand.
13343 * config/aarch64/aarch64-simd.md: Likewise.
13344
13345 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13346
13347 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13348 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13349 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13350 clauses.
13351 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13352 DARWIN_NOPIE_SPEC.
13353
13354 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13355
13356 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13357 (STARTFILE_SPEC): Split crt3 into a separate spec.
13358 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13359 (DARWIN_CRT2_SPEC): New.
13360 (DARWIN_CRT3_SPEC): New.
13361 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13362 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13363 (DARWIN_CRT3_SPEC): New.
13364
13365 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13366
13367 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13368 Change the RTL attribute "length" from "4" to "*" to allow the
13369 length attribute to be adjusted automatically for prefixed load,
13370 store, and add immediate instructions.
13371 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13372 Likewise.
13373 (extendsi<mode>2, EXTSI iterator): Likewise.
13374 (movsi_internal1): Likewise.
13375 (movsi_from_sf): Likewise.
13376 (movdi_from_sf_zero_ext): Likewise.
13377 (mov<mode>_internal): Likewise.
13378 (movcc_internal1, QHI iterator): Likewise.
13379 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13380 (movsf_from_si): Likewise.
13381 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13382 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13383 (mov<mode>, FMOVE128 iterator): Likewise.
13384 (movdi_internal64): Likewise.
13385 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13386 Likewise.
13387 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13388 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13389 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13390 (vsx_splat_v4sf): Likewise.
13391
13392 2019-07-03 Mark Wielaard <mark@klomp.org>
13393
13394 PR debug/90981
13395 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13396 DW_AT_addr_base if there is actually a .debug_addr section with
13397 addresses.
13398 (output_addr_table): Add DWARF5 table header generation here after
13399 checking there are actually any addresses from...
13400 (dwarf2out_finish): ...here.
13401
13402 2019-07-03 Richard Biener <rguenther@suse.de>
13403
13404 PR middle-end/91069
13405 * match.pd (vec_perm -> bit_insert): Fix element read from
13406 first vector.
13407
13408 2019-07-03 Martin Liska <mliska@suse.cz>
13409
13410 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13411 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13412 condition.
13413 * generic-match-head.c: Include dbgcnt.h.
13414 * gimple-match-head.c: Likewise.
13415
13416 2019-07-03 Martin Liska <mliska@suse.cz>
13417
13418 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13419 (GCOV_COUNTER_V_TOPN): New.
13420 (GCOV_COUNTER_V_INDIR): Use _topn.
13421 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13422 (GCOV_TOPN_VALUES): New.
13423 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13424 (GCOV_TOPN_VALUES_COUNTERS): New.
13425 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13426 * tree-profile.c:
13427 (gimple_init_gcov_profiler): Rename variables from one_value
13428 to topn_values.
13429 (gimple_gen_one_value_profiler): Remove.
13430 (gimple_gen_topn_values_profiler): New function.
13431 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13432 names instead of SINGLE_VALUE.
13433 (stream_out_histogram_value): Likewise.
13434 (stream_in_histogram_value): Likewise.
13435 (get_most_common_single_value): Likewise.
13436 (gimple_divmod_fixed_value_transform): Likewise.
13437 (gimple_stringops_transform): Likewise.
13438 (gimple_divmod_values_to_profile): Likewise.
13439 (gimple_stringops_values_to_profile): Likewise.
13440 (gimple_find_values_to_profile): Likewise.
13441 * value-prof.h (enum hist_type): Rename to TOPN.
13442 (gimple_gen_one_value_profiler): Remove.
13443 (gimple_gen_topn_values_profiler): New.
13444
13445 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13446
13447 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13448 if it has the DW_AT_data_member_location attribute.
13449
13450 2019-07-03 Richard Biener <rguenther@suse.de>
13451
13452 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13453 dumping.
13454
13455 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13456
13457 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13458 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13459 (tlsdesc_small_sve_<mode>): Likewise.
13460
13461 2019-07-03 Martin Liska <mliska@suse.cz>
13462
13463 * Makefile.in: Define ZSTD_LIB.
13464 * common.opt: Adjust compression level
13465 to support also zstd levels.
13466 * config.in: Regenerate.
13467 * configure: Likewise.
13468 * configure.ac: Add --with-zstd and --with-zstd-include options
13469 and detect ZSTD.
13470 * doc/install.texi: Mention zstd dependency.
13471 * gcc.c: Print supported LTO compression algorithms.
13472 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13473 (lto_compression_zstd): Likewise.
13474 (lto_uncompression_zstd): Likewise.
13475 (lto_end_compression): Dispatch in between zlib and zstd.
13476 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13477 (lto_uncompression_zlib): Make it static.
13478 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13479 * lto-section-in.c (lto_get_section_data): Pass info
13480 about used compression.
13481 * lto-streamer-out.c: By default use zstd when possible.
13482 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13483 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13484
13485 2019-07-03 Martin Liska <mliska@suse.cz>
13486
13487 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13488 * lto-section-out.c (lto_destroy_simple_output_block): Never
13489 compress LTO_section_lto section.
13490 * lto-streamer-out.c (produce_asm): Do not set major_version
13491 and minor_version.
13492 (lto_output_toplevel_asms): Likewise.
13493 (produce_lto_section): New function.
13494 (lto_output): Call produce_lto_section.
13495 (lto_write_mode_table): Do not set major_version and
13496 minor_version.
13497 (produce_asm_for_decls): Likewise.
13498 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13499 type.
13500 (struct lto_header): Remove.
13501 (struct lto_section): New struct.
13502 (struct lto_simple_header): Do not inherit from lto_header.
13503 (struct lto_file_decl_data): Add lto_section_header field.
13504
13505 2019-07-03 Martin Liska <mliska@suse.cz>
13506
13507 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13508 dead assignemts.
13509 * reg-stack.c (check_asm_stack_operands): Likewise.
13510 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13511 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13512 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13513 force_expand_binop.
13514
13515 2019-07-03 Martin Liska <mliska@suse.cz>
13516
13517 PR tree-optimization/90892
13518 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13519 in string constants.
13520
13521 2019-07-03 Martin Liska <mliska@suse.cz>
13522
13523 PR middle-end/90899
13524 * multiple_target.c (create_dispatcher_calls): Add to comdat
13525 group only if set for ifunc.
13526
13527 2019-07-03 Martin Liska <mliska@suse.cz>
13528
13529 PR target/88056
13530 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13531 Define local_object_name in outer scope in order to handle
13532 use-after-scope issue.
13533
13534 2019-07-03 Martin Liska <mliska@suse.cz>
13535
13536 * common.opt: Add fprofile-note.
13537 * coverage.c (coverage_init): Append the option
13538 to bbg_file_name.
13539 * doc/invoke.texi: Document -fprofile-note.
13540
13541 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13542
13543 PR tree-optimization/91033
13544 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13545 vect_analyze_data_refs): Add bool * arguments.
13546 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13547 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13548 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13549 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13550 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13551 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13552 vect_analyze_data_refs caller.
13553
13554 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13555 clause.
13556 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13557 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13558 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13559 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13560 OMP_CLAUSE__SCANTEMP_ entry.
13561 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13562 * tree-pretty-print.c (dump_omp_clause): Likewise.
13563 * tree-nested.c (convert_nonlocal_omp_clauses,
13564 convert_local_omp_clauses): Likewise.
13565 * omp-general.h (struct omp_for_data): Add have_scantemp and
13566 have_nonctrl_scantemp members.
13567 * omp-general.c (omp_extract_for_data): Initialize them.
13568 * omp-low.c (struct omp_context): Add scan_exclusive member.
13569 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13570 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13571 ctx->scan_exclusive.
13572 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13573 of !ctx->scan_inclusive.
13574 (lower_rec_input_clauses): Simplify gimplification of dtors using
13575 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13576 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13577 loops. Don't add barrier for reduction_omp_orig_ref if
13578 ctx->scan_??xclusive.
13579 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13580 (lower_omp_scan): Use ctx->scan_exclusive instead
13581 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13582 reductions. Use new_vard != new_var instead of repeated
13583 omp_is_reference calls.
13584 (omp_find_scan, lower_omp_for_scan): New functions.
13585 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13586 inscan reductions.
13587 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13588 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13589 and fd->have_scantemp.
13590
13591 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13592 on worksharing loop propagate it as shared clause to containing
13593 combined parallel.
13594
13595 * omp-expand.c (expand_omp_for_static_nochunk,
13596 expand_omp_for_static_chunk): For nowait worksharing loop with
13597 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13598 at the end.
13599
13600 2019-07-02 qing zhao <qing.zhao@oracle.com>
13601
13602 PR preprocessor/90581
13603 * doc/cppopts.texi: Add document for -fmax-include-depth.
13604 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13605
13606 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13607
13608 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13609 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13610 (mmx_packssdw): Ditto.
13611 (mmx_punpckhbw): Ditto.
13612 (mmx_punpcklbw): Ditto.
13613 (mmx_punpckhwd): Ditto.
13614 (mmx_punpcklwd): Ditto.
13615 (mmx_punpckhdq): Ditto.
13616 (mmx_punpckldq): Ditto.
13617 (*vec_dupv4hi): Ditto.
13618 (*vec_dupv2si): Ditto.
13619 (mmx_pmovmskb): Ditto.
13620 * config/i386/sse.md (sse_cvtpi2ps): Use
13621 TARGET_SSE2 && SSE_REG_P in split condition.
13622 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13623 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13624 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13625 (ssse3_pshufbv8qi3): Ditto.
13626 (ssse3_palignrdi): Ditto.
13627
13628 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13629
13630 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13631 with inlined save and restore.
13632
13633 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13634
13635 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13636 to be inserted on single successor edge of the entry block. Then call
13637 commit_edge_insertions instead of inserting the instructions manually.
13638 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13639 RTL expansion and rebuild jump labels chain.
13640
13641 2019-07-02 Richard Biener <rguenther@suse.de>
13642
13643 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13644 TI_CHREC_KNOWN.
13645 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13646 Define here.
13647 * tree.c (build_common_tree_nodes): Initialize them.
13648 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13649 Make declarations comments.
13650 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13651 chrec_known): Remove definitions.
13652 (initialize_scalar_evolutions_analyzer): Remove.
13653 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13654 * tree-streamer.c (preload_common_nodes): Do not preload
13655 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13656
13657 2019-07-02 Jan Hubicka <jh@suse.cz>
13658
13659 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13660 sanity check.
13661
13662 2019-07-02 Jan Hubicka <jh@suse.cz>
13663
13664 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13665 to ..
13666 (nonoverlapping_component_refs_since_match_p): ... this one;
13667 handle also non-decl bases; return -1 if search gave up.
13668 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13669 nonoverlapping_component_refs_of_decl_p_no_alias to
13670 nonoverlapping_component_refs_since_match_p_may_alias,
13671 nonoverlapping_component_refs_since_match_p_no_alias.
13672 (dump_alias_stats): Update dumping.
13673 (aliasing_matching_component_refs_p): Break out from ...;
13674 dispatch to nonoverlapping_component_refs_for_decl_p
13675 and nonoverlapping_component_refs_since_match_p.
13676 (aliasing_component_refs_p): ... here; call
13677 nonoverlapping_component_refs_p in scenarios where we can not
13678 precisely determine base match.
13679 (decl_refs_may_alias_p): Use
13680 nonoverlapping_component_refs_since_match_p.
13681 (indirect_ref_may_alias_decl_p): Do not call
13682 nonoverlapping_component_refs_p.
13683 (indirect_refs_may_alias_p): Likewise.
13684
13685 2019-07-02 Jan Hubicka <jh@suse.cz>
13686
13687 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13688 to clobber of return value.
13689
13690 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13691
13692 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13693 for is_neon_type instructions that have not already been categorized.
13694
13695 2019-07-02 Richard Biener <rguenther@suse.de>
13696
13697 PR tree-optimization/58483
13698 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13699 for MEM_REF base hashing.
13700 (equal_mem_array_ref_p): Likewise for base comparison.
13701
13702 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13703
13704 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13705 parameterized name.
13706 (signbit<mode>2): Use that name. Simplify.
13707
13708 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13709
13710 PR middle-end/66726
13711 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13712 Tune heuristic from PR71016 to allow MIN / MAX.
13713
13714 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13715
13716 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13717 parameterized name.
13718 (abs<mode>2): Use that name. Simplify.
13719
13720 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13721
13722 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13723 parameterized name.
13724 (neg<mode>2): Use that name. Simplify.
13725
13726 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13727
13728 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13729 name.
13730 (abs<mode>2): Use that name. Simplify.
13731
13732 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13733
13734 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13735 name.
13736 (neg<mode>2): Use that name. Simplify.
13737
13738 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13739
13740 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13741 ("enabled" attribute): Handle sse_noavx isa attribute.
13742 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13743 Use TARGET_SSE && SSE_REGNO_P in split condition.
13744 (*vec_dupv2sf): Ditto.
13745
13746 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13747
13748 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13749 name.
13750 (floatsi<mode>2): Use that name. Simplify.
13751
13752 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13753
13754 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13755 parameterized name.
13756 (extenddf<mode>2_vsx): Make this a parameterized name.
13757 (extenddf<mode>2): Use those names. Simplify.
13758
13759 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13760
13761 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13762 name.
13763 (eh_return): Use that name. Simplify.
13764
13765 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13766
13767 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13768 (doloop_end): Use that name. Simplify.
13769
13770 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13771
13772 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13773 parameterized name.
13774 (indirect_jump): Use that name. Simplify.
13775
13776 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13777
13778 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13779 parameterized name.
13780 (abs<mode>2): Use that name. Simplify.
13781
13782 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13783
13784 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13785 parameterized name.
13786 (fix_trunc<mode>si2): Use that name. Simplify.
13787
13788 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13789
13790 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13791 (allocate_stack): Use that name. Simplify.
13792
13793 2019-07-01 Martin Sebor <msebor@redhat.com>
13794
13795 PR middle-end/90923
13796 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13797 (hash_map::get_or_insert): Same. Reformat comment.
13798 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13799 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13800 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13801 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13802 (hash_table::hash_table (const hash_table&)): Use copy ctor
13803 instead of assignment to copy elements.
13804
13805 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13806 John David Anglin <danglin@gcc.gnu.org>
13807
13808 PR target/90963
13809 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13810 using saved frame pointer.
13811
13812 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13813
13814 PR middle-end/64242
13815 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13816 Add frame clobber and schedule blockage.
13817
13818 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13819
13820 * doc/invoke.texi (Link Options): Further editorial changes to
13821 -flinker-output docs.
13822
13823 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13824
13825 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13826 Load both operands of a PLUS into registers separately.
13827
13828 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13829
13830 * config/s390/vector.md: Fix shift count operand printing.
13831
13832 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13833
13834 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13835
13836 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13837
13838 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13839 Use recog_data to test for an output operand.
13840
13841 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13842
13843 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13844 exclude any others that are disparaged or that are bound to need
13845 a reload or spill.
13846 (ira_get_dup_out_num): Expand comment.
13847
13848 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13849
13850 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13851 constraint string for each operand/alternative combo. Only handle
13852 '%' at the start of constraint strings, and look for it outside
13853 the main loop.
13854
13855 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13856
13857 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13858 alternative_mask instead of HARD_REG_SET to represent a
13859 bitmask of alternatives.
13860 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13861 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13862
13863 2019-07-01 Martin Liska <mliska@suse.cz>
13864
13865 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13866 use () for a constructor call.
13867 (test_applying_fixits_line_out_of_range): Likewise.
13868 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13869 argument.
13870 (free_page): Likewise.
13871
13872 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13873
13874 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13875 parameter names to match usage (no functional change).
13876 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13877
13878 2019-07-01 Richard Biener <rguenther@suse.de>
13879
13880 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13881 pass parameter.
13882 (pass_fre::execute): Honor it.
13883 * passes.def: Adjust pass_fre invocations to allow iterating,
13884 add non-iterating pass_fre before late threading/dom.
13885
13886 2019-07-01 Richard Biener <rguenther@suse.de>
13887
13888 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13889 TARGET_MEM_REF handling to also handle address-taken ones.
13890
13891 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13892
13893 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13894 hardware attributes): Document avx512vp2intersect.
13895
13896 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13897
13898 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13899 (abs<mode>2): New expander.
13900 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13901 Use CODE_FOR_ssse3_absv8qi2.
13902 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13903 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13904
13905 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13906
13907 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13908 to sse, sse_noavx and avx. Update all uses.
13909
13910 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13911
13912 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13913 (*mmx_<plusminus_insn><mode>3): Ditto.
13914 (*mmx_mulv4hi3"): Ditto.
13915 (*mmx_smulv4hi3_highpart): Ditto.
13916 (*mmx_umulv4hi3_highpart): Ditto.
13917 (*mmx_pmaddwd): Ditto.
13918 (*sse2_umulv1siv1di3): Ditto.
13919 (*mmx_<code>v4hi3): Ditto.
13920 (*mmx_<code>v8qi3): Ditto.
13921 (mmx_ashr<mode>3): Ditto.
13922 ("mmx_<shift_insn><mode>3): Ditto.
13923 (*mmx_eq<mode>3): Ditto.
13924 (mmx_gt<mode>3): Ditto.
13925 (mmx_andnot<mode>3): Ditto.
13926 (*mmx_<code><mode>3): Ditto.
13927 (*mmx_pinsrw): Ditto.
13928 (*mmx_pextrw): Ditto.
13929 (mmx_pshufw_1): Ditto.
13930 (*mmx_uavgv8qi3): Ditto.
13931 (*mmx_uavgv4hi3): Ditto.
13932 ("mmx_psadbw): Ditto.
13933 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13934 (sse_cvttps2pi): Ditto.
13935 (ssse3_pmaddubsw): Ditto.
13936 (*ssse3_pmulhrswv4hi3): Ditto.
13937 (ssse3_psign<mode>3): Ditto.
13938
13939 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13940
13941 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13942 adjustment for bit-fields to all aggregate types.
13943
13944 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13945
13946 * config/rs6000/predicates.md (pcrel_address): Use
13947 SYMBOL_REF_LOCAL_P to determine if a label is local.
13948 (pcrel_external_address): New predicate.
13949 (non_prefixed_mem_operand): Delete, predicate not used.
13950 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13951 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13952 addressing.
13953 (SYMBOL_REF_PCREL_P): Likewise.
13954
13955 PR target/91009
13956 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13957 alternative.
13958 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13959 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13960 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13961
13962 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13963
13964 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13965 override on extra_headers.
13966
13967 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13968
13969 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13970 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13971 from warning.
13972 (darwin_driver_init): Likewise.
13973
13974 2019-06-28 Jan Beulich <jbeulich@suse.com>
13975
13976 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13977 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13978 Eliminate redundant alternative.
13979
13980 2019-06-28 Jan Beulich <jbeulich@suse.com>
13981
13982 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13983 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13984 Use vector_operand.
13985
13986 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13987
13988 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13989 having a lower cost regardless of the speed option.
13990
13991 2019-06-28 Jan Beulich <jbeulich@suse.com>
13992
13993 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13994 vector_operand plus, on both alternatives, "Bm" constraint.
13995
13996 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13997
13998 * config/arm/arm.md: Remove redundant constraints from
13999 define_expand but leave reload_inm and reload_outm patterns
14000 untouched since they need special constraints to work.
14001 * config/arm/arm-fixed.md: Remove redundant constraints from
14002 define_expand.
14003 * config/arm/iwmmxt.md: Likewise.
14004 * config/arm/neon.md: Likewise.
14005 * config/arm/sync.md: Likewise.
14006 * config/arm/thumb1.md: Likewise.
14007 * config/arm/vec-common.md: Likewise.
14008
14009 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14010
14011 * doc/install.texi: Document --disable-tm-clone-registry.
14012
14013 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14014
14015 PR c++/91024
14016 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14017 statements.
14018
14019 PR tree-optimization/91010
14020 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14021 return true. Otherwise, don't call operand_equal_p if offset1 or
14022 offset2 is NULL and just return false.
14023
14024 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14025
14026 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14027 user-specified float mode choice for kernel mode code.
14028
14029 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14030
14031 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14032 spec.
14033
14034 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14035
14036 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14037 use longcall for 64b code.
14038
14039 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14040
14041 * builtins.c (get_memory_rtx): Fix comment.
14042 * optabs.def (movmem_optab): Change to cpymem_optab.
14043 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14044 (emit_block_move_hints): Change movmem to cpymem.
14045 * defaults.h: Change movmem to cpymem.
14046 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14047 (default_use_by_pieces_infrastructure_p): Ditto.
14048 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14049 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14050 to cpymem.
14051 * config/aarch64/aarch64.h: Change movmem to cpymem.
14052 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14053 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14054 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14055 movmem to cpymem.
14056 * config/arc/arc-protos.h: Change movmem to cpymem.
14057 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14058 * config/arc/arc.h: Change movmem to cpymem in comment.
14059 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14060 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14061 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14062 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14063 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14064 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14065 * config/avr/avr-protos.h: Change movmem to cpymem.
14066 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14067 avr_out_movmem): Change movmem to cpymem.
14068 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14069 Change movmem to cpymem.
14070 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14071 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14072 Change movmem to cpymem.
14073 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14074 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14075 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14076 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14077 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14078 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14079 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14080 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14081 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14082 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14083 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14084 expand_small_cpymem_or_setmem,
14085 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14086 expand_set_or_cpymem_constant_prologue,
14087 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14088 * config/i386/i386-protos.h: Change movmem to cpymem.
14089 * config/i386/i386.h: Change movmem to cpymem in comment.
14090 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14091 (setmem<mode>): Change expansion function name.
14092 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14093 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14094 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14095 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14096 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14097 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14098 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14099 to cpymem.
14100 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14101 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14102 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14103 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14104 Change movmem to cpymem.
14105 * config/mips/mips.h: Change movmem to cpymem.
14106 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14107 * config/nds32/nds32-memory-manipulation.c
14108 (nds32_expand_movmemsi_loop_unknown_size,
14109 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14110 nds32_expand_movmemsi_unroll,
14111 nds32_expand_movmemsi): Change movmem to cpymem.
14112 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14113 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14114 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14115 (pa_adjust_insn_length): Change call to compute_movmem_length.
14116 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14117 movmemdi, movmemdi_prereload,
14118 movmemdi_postreload): Change movmem to cpymem.
14119 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14120 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14121 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14122 * config/riscv/riscv.h: Change movmem to cpymem.
14123 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14124 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14125 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14126 movmem to cpymem.
14127 * config/s390/s390-protos.h: Change movmem to cpymem.
14128 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14129 s390_expand_insv): Change movmem to cpymem.
14130 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14131 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14132 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14133 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14134 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14135 for nonexistent function.
14136 * config/vax/vax.h: Change movmem to cpymem in comment.
14137 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14138 * config/visium/visium.h: Change movmem to cpymem in comment.
14139 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14140 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14141 * doc/md.texi: Change movmem to cpymem and update description to match.
14142 * doc/rtl.texi: Change movmem to cpymem.
14143 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14144 * doc/tm.texi: Regenerate.
14145
14146 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14147
14148 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14149 -fvariable-expansion-in-unroller by default.
14150 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14151 default for Power.
14152
14153 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14154
14155 Revert
14156 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14157 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14158
14159 * config.gcc(rs6000-*-*): Define target_gtfiles.
14160
14161 2019-06-27 Jan Hubicka <jh@suse.cz>
14162
14163 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14164 (add_type_duplicate): When odr hash is not allocated, to nothing.
14165 (odr_based_tbaa_p): New function.
14166 (set_type_canonical_for_odr_type): New function.
14167 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14168 set_type_canonical_for_odr_type): New.
14169 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14170 ODR based TBAA are not equivalent to non-ODR types.
14171
14172 2019-06-27 Martin Liska <mliska@suse.cz>
14173
14174 PR tree-optimization/90974
14175 PR rtl-optimization/90975
14176 PR rtl-optimization/90976
14177 PR target/91016
14178 PR tree-optimization/91017
14179 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14180 unused tmp.
14181 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14182 initial commit of IRA.
14183 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14184 of op0 and op1.
14185 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14186 Remove unused mode1.
14187 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14188 to new_stmt_info.
14189
14190 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14191
14192 PR target/90991
14193 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14194 instead of register_operand for operands[1], add m to its constraints
14195 if operands[2] uses "C" constraint. Ensure in condition that if
14196 operands[2] is not 0, then operands[1] is not a MEM. For last two
14197 alternatives, use unaligned loads instead of aligned if operands[1] is
14198 misaligned_operand.
14199
14200 2019-06-27 Martin Liska <mliska@suse.cz>
14201
14202 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14203 dead assignments.
14204 * bt-load.c (move_btr_def): Likewise.
14205 * builtins.c (expand_builtin_apply_args_1): Likewise.
14206 (expand_builtin_apply): Likewise.
14207 * cfgexpand.c (expand_asm_stmt): Likewise.
14208 (construct_init_block): Likewise.
14209 * cfghooks.c (verify_flow_info): Likewise.
14210 * cfgloopmanip.c (remove_path): Likewise.
14211 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14212 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14213 * combine.c (simplify_if_then_else): Likewise.
14214 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14215 (choose_basereg): Likewise.
14216 (ix86_expand_prologue): Likewise.
14217 (ix86_preferred_output_reload_class): Likewise.
14218 * cselib.c (cselib_record_sets): Likewise.
14219 * df-scan.c (df_scan_alloc): Likewise.
14220 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14221 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14222 * emit-rtl.c (try_split): Likewise.
14223 * graphite-scop-detection.c (assign_parameter_index_in_region):
14224 Likewise.
14225 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14226 * ira-color.c (setup_profitable_hard_regs): Likewise.
14227 * ira.c (rtx_moveable_p): Likewise.
14228 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14229 * read-rtl.c (read_subst_mapping): Likewise.
14230 * regrename.c (scan_rtx): Likewise.
14231 * reorg.c (fill_slots_from_thread): Likewise.
14232 * tree-inline.c (tree_function_versioning): Likewise.
14233 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14234 * tree-ssa-sink.c (statement_sink_location): Likewise.
14235 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14236 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14237 (vect_create_epilog_for_reduction): Likewise.
14238 * tree.c (build_nonstandard_integer_type): Likewise.
14239
14240 2019-06-27 Richard Biener <rguenther@suse.de>
14241
14242 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14243
14244 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14245
14246 PR tree-optimization/89772
14247 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14248 out-of-bound accesses checking.
14249
14250 2019-06-27 Martin Liska <mliska@suse.cz>
14251
14252 PR tree-optimization/91014
14253 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14254 when LHS is NULL_TREE.
14255
14256 2019-06-27 Martin Liska <mliska@suse.cz>
14257
14258 * symbol-summary.h (traverse): Pass
14259 argument a to the call of callback.
14260 (gt_ggc_mx): Mark arguments as unused.
14261 (gt_pch_nx): Likewise.
14262
14263 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14264
14265 PR target/62147
14266 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14267 finiteness.
14268
14269 2019-06-26 Jeff Law <law@redhat.com>
14270
14271 PR tree-optimization/90883
14272 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14273 (delete_dead_or_redundant_assignment): Likewise.
14274
14275 PR tree-optimization/90883
14276 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14277 * tree-ssa-dse.c: Update various comments to distinguish between
14278 dead and redundant stores.
14279 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14280 (dse_optimize_redundant_stores): New function.
14281 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14282 Distinguish between dead and redundant calls in dump output. All
14283 callers updated.
14284 (delete_dead_or_redundant_assignment): Similarly for assignments.
14285 (dse_optimize_stmt): Handle _CHK variants. For statements which
14286 store 0 into multiple memory locations, try to prove a subsequent
14287 store is redundant.
14288
14289 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14290
14291 PR target/89021
14292 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14293 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14294
14295 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14296
14297 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14298 (branch_islands): New extern.
14299 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14300 * config/rs6000/rs6000.c: .. here.
14301
14302 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14303
14304 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14305 (powerpc*-*-*) ... to here.
14306
14307 2019-06-26 Jeff Law <law@redhat.com>
14308
14309 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14310 memcpy, memmove and memset builtins.
14311 (maybe_trim_memstar_call): Likewise.
14312
14313 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14314
14315 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14316
14317 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14318
14319 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14320
14321 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14322
14323 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14324 declaration.
14325 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14326 "static".
14327 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14328 declaration.
14329
14330 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14331
14332 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14333
14334 2019-06-26 Richard Biener <rguenther@suse.de>
14335
14336 PR ipa/90982
14337 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14338
14339 2019-06-26 Richard Biener <rguenther@suse.de>
14340
14341 * lto-streamer.h (lto_bitmap_alloc): Remove.
14342 (lto_bitmap_free): Likewise.
14343 * lto-streamer.c (lto_bitmap_alloc): Remove.
14344 (lto_bitmap_free): Likewise.
14345 (lto_obstack): Likewise.
14346 (lto_obstack_initialized): Likewise.
14347 * lto-streamer-out.c (lto_output): Use own obstack for local
14348 bitmap, free it consistently.
14349
14350 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14351
14352 PR target/90991
14353 * config/i386/sse.md
14354 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14355 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14356 insns if operands[2] is misaligned_operand.
14357
14358 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14359
14360 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14361 TARGET_POWERPC64.
14362 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14363 to GPR.
14364
14365 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14366
14367 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14368
14369 2019-06-26 Martin Liska <mliska@suse.cz>
14370
14371 PR tree-optimization/90973
14372 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14373 epilogue_cost_vec instead of prologue_cost_vec for
14374 a epilogue cost.
14375
14376 2019-06-26 Martin Liska <mliska@suse.cz>
14377
14378 * bb-reorder.c (connect_better_edge_p): Add missing else
14379 statement in the middle of if-else statements.
14380
14381 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14382 H.J. Lu <hongjiu.lu@intel.com>
14383 Olga Makhotina <olga.makhotina@intel.com>
14384
14385 * common/config/i386/i386-common.c
14386 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14387 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14388 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14389 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14390 (ix86_handle_option): Handle -mavx512vp2intersect.
14391 * config/i386/avx512vp2intersectintrin.h: New.
14392 * config/i386/avx512vp2intersectvlintrin.h: New.
14393 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14394 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14395 AVX512VP2INTERSECT.
14396 * config/i386/i386-builtin-types.def: Add new types.
14397 * config/i386/i386-builtin.def: Add new builtins.
14398 * config/i386/i386-builtins.c: (enum processor_features): Add
14399 F_AVX512VP2INTERSECT.
14400 (static const _isa_names_table isa_names_table): Ditto.
14401 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14402 __AVX512VP2INTERSECT__.
14403 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14404 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14405 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14406 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14407 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14408 * config/i386/i386-options.c (ix86_target_string): Add
14409 -mavx512vp2intersect.
14410 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14411 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14412 P2HImode and P2QImode.
14413 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14414 number for P2QImode and P2HImode.
14415 (ix86_regmode_natural_size): New function.
14416 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14417 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14418 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14419 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14420 * config/i386/i386.opt: Add -mavx512vp2intersect.
14421 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14422 avx512vp2intersectvlintrin.h.
14423 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14424 (define_mode_iterator VI48_AVX512VP2VL): New.
14425 (avx512vp2intersect_2intersect<mode>,
14426 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14427 * config.gcc: Add avx512vp2intersectvlintrin.h and
14428 avx512vp2intersectintrin.h to extra_headers.
14429 * doc/invoke.texi: Document -mavx512vp2intersect.
14430
14431 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14432
14433 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14434
14435 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14436
14437 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14438 savres_routine_syms, savres_routine_name, morestack_ref,
14439 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14440 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14441 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14442 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14443 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14444 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14445 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14446 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14447 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14448 get_stack_clash_protection_probe_interval,
14449 get_stack_clash_protection_guard_size,
14450 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14451 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14452 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14453 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14454 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14455 gen_frame_mem_offset, rs6000_savres_routine_name,
14456 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14457 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14458 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14459 rs6000_global_entry_point_prologue_needed_p,
14460 rs6000_get_separate_components, rs6000_components_for_bb,
14461 rs6000_disqualify_components, rs6000_emit_prologue_components,
14462 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14463 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14464 rs6000_output_savres_externs, rs6000_output_function_prologue,
14465 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14466 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14467 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14468 rs6000_output_function_epilogue, gen_add3_const,
14469 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14470 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14471 to rs6000-logue.c.
14472 (machine_function): Moved to rs6000.h.
14473 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14474 rs6000-internal.h.
14475 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14476 savres_routine_syms, savres_routine_name, morestack_ref,
14477 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14478 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14479 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14480 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14481 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14482 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14483 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14484 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14485 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14486 get_stack_clash_protection_probe_interval,
14487 get_stack_clash_protection_guard_size,
14488 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14489 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14490 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14491 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14492 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14493 gen_frame_mem_offset, rs6000_savres_routine_name,
14494 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14495 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14496 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14497 rs6000_global_entry_point_prologue_needed_p,
14498 rs6000_get_separate_components, rs6000_components_for_bb,
14499 rs6000_disqualify_components, rs6000_emit_prologue_components,
14500 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14501 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14502 rs6000_output_savres_externs, rs6000_output_function_prologue,
14503 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14504 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14505 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14506 rs6000_output_function_epilogue, gen_add3_const,
14507 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14508 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14509 to here from rs6000.c.
14510 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14511 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14512 quad_address_offset_p) Moved to here from rs6000.c.
14513 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14514 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14515 collector.
14516
14517 2019-06-25 Martin Liska <mliska@suse.cz>
14518
14519 * hash-table.c (hashtab_chk_error): Move here from ...
14520 * hash-table.h (hashtab_chk_error): ... here.
14521
14522 2019-06-25 Martin Liska <mliska@suse.cz>
14523
14524 PR tree-optimization/90978
14525 * df-scan.c (df_update_entry_block_defs): Remove dead else
14526 branch.
14527 (df_update_exit_block_uses): Likewise.
14528
14529 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14530 Andrew Stubbs <ams@codesourcery.com>
14531
14532 * config.gcc (thread_file): Set to gcn for AMD GCN.
14533 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14534 (TARGET_EMUTLS_VAR_INIT): New hook.
14535
14536 2019-06-25 Martin Jambor <mjambor@suse.cz>
14537
14538 PR ipa/90939
14539 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14540
14541 2019-06-25 Richard Biener <rguenther@suse.de>
14542
14543 PR tree-optimization/90930
14544 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14545 into parallel form in the last pass instance.
14546
14547 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14548
14549 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14550 (arc_legitimize_pic_address): Simplify and cleanup the function.
14551 (SYMBOLIC_CONST): Remove.
14552 (prepare_pic_move): Likewise.
14553 (prepare_move_operands): Handle complex mov cases here.
14554 (arc_legitimize_address_0): Remove call to
14555 arc_legitimize_pic_address.
14556 (arc_legitimize_address): Remove call to
14557 arc_legitimize_tls_address.
14558 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14559 (movhi_insn): Likewise.
14560
14561 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14562
14563 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14564 PTRDIFF_TYPE.
14565 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14566 format of "__intN" types for UINTMAX_TYPE.
14567 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14568 format of "__intN" types for SIZETYPE.
14569 * tree.c (build_common_tree_nodes): Accept "__intN__"
14570 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14571 * doc/invoke.texi: Document that __intN__ disables pedantic
14572 warnings.
14573
14574 2019-06-25 Jan Hubicka <jh@suse.cz>
14575
14576 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14577 base2_alias_set is non-zero before doing TBAA based disambiguation.
14578
14579 2019-06-25 Martin Liska <mliska@suse.cz>
14580
14581 PR tree-optimization/90973
14582 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14583 of prologue and epilogue.
14584
14585 2019-06-24 Jan Hubicka <jh@suse.cz>
14586
14587 * ipa-utils.h (type_with_linkage_p): Verify that type is
14588 CXX_ODR_P.
14589 (odr_type_p): Remove extra return.
14590 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14591 hash STRING_FLAG only for arrays and integers.
14592 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14593 Update analogously.
14594 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14595 Likewise.
14596 * print-tree.c (print_node): Print cxx-odr-p
14597 and string-flag.
14598 * tree.c (need_assembler_name_p): Also check that type
14599 is CXX_ODR_TYPE_P
14600 (verify_type_variant): Update verification of SRING_FLAG;
14601 also check CXX_ODR_P.
14602 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14603 (TYPE_STRING_FLAG): Use it.
14604 (TYPE_CXX_ODR_P): New macro.
14605 * dwarf2out.c (gen_array_type_die): First check that type
14606 is an array and then test string flag.
14607
14608 2019-06-24 Richard Biener <rguenther@suse.de>
14609
14610 PR tree-optimization/90972
14611 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14612 in common code, dealing with STRING_CST properly.
14613
14614 2019-06-24 Richard Biener <rguenther@suse.de>
14615
14616 PR tree-optimization/90930
14617 PR tree-optimization/90316
14618 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14619 decrement of limit.
14620
14621 2019-06-24 Martin Sebor <msebor@redhat.com>
14622
14623 * tree-pretty-print.h: Remove unnecessary punctuation characters
14624 from a diagnostic.
14625 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14626
14627 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14628
14629 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14630 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14631 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14632
14633 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14634
14635 * config/rs6000/darwin.h: Handle GCC target pragma.
14636
14637 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14638
14639 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14640
14641 2019-06-22 Jeff Law <law@redhat.com>
14642
14643 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14644
14645 2019-06-22 Jan Hubicka <jh@suse.cz>
14646
14647 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14648 give up on bitfields; continue searching for different refs
14649 appearing later.
14650
14651 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14652
14653 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14654 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14655 containing the offset as possible simd lane access. Look through
14656 widening conversion. Move the
14657 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14658
14659 2019-06-21 Richard Biener <rguenther@suse.de>
14660
14661 PR tree-optimization/90930
14662 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14663 flag on new stmts to avoid re-processing them.
14664
14665 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14666
14667 PR c++/90875 - added -Wswitch-outside-range option
14668 * doc/invoke.texi (Wswitch-outside-range): Document.
14669
14670 2019-06-21 Jeff Law <law@redhat.com>
14671
14672 PR tree-optimization/90949
14673 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14674 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14675
14676 2019-06-21 Richard Biener <rguenther@suse.de>
14677
14678 PR debug/90914
14679 * dwarf2out.c (prune_unused_types_walk): Always consider
14680 function-local extern declarations as used.
14681
14682 2019-06-21 Richard Biener <rguenther@suse.de>
14683
14684 PR tree-optimization/90913
14685 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14686 the scalar variant of if-conversion versioning.
14687
14688 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14689
14690 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14691 create another "omp scan inscan exclusive" array if
14692 !ctx->scan_inclusive.
14693 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14694 (lower_omp_scan): Likewise.
14695 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14696 2-bit bitfield for simd_lane_access_p member.
14697 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14698 aux == (void *)-4 as simd lane access.
14699 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14700 comment with permutations to show the canonical permutation order.
14701 (vectorizable_scan_store): Handle exclusive scan.
14702 (vectorizable_store): Call vectorizable_scan_store even for
14703 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14704
14705 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14706 "omp simd array" arrays with one byte elements.
14707
14708 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14709
14710 * config/alpha/alpha.md (@unaligned_store<mode>):
14711 Rename from unaligned_store<mode>.
14712 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14713 * config/alpha/sync.md (@load_locked_<mode>): Rename
14714 from load_locked_<mode>.
14715 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14716 (@atomic_compare_and_swap<mode>_1): Rename
14717 from atomic_compare_and_swap<mode>_1.
14718 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14719 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14720 Use gen_reload_in_aligned and gen_unaligned_store.
14721 (emit_load_locked): Remove.
14722 (emit_store_conditional): Ditto.
14723 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14724 (alpha_split_compare_and_swap): Ditto.
14725 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14726 (alpha_split_compare_and_swap_12): Use gen_load_locked
14727 and gen_store_conditional.
14728 (alpha_split_atomic_exchange): Ditto.
14729 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14730 (alpha_split_atomic_exchange_12): Use gen_load_locked
14731 and gen_store_conditional.
14732
14733 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14734
14735 * config/aarch64/aarch64-errata.h: New file.
14736 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14737 (CA53_ERR_843419_SPEC): Delete.
14738 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14739 * config/aarch64/aarch64-linux.h: Likewise.
14740 * config/aarch64/aarch64-netbsd.h: Likewise.
14741 * config/aarch64/aarch64-freebsd.h: Likewise.
14742
14743 2019-06-20 Marek Polacek <polacek@redhat.com>
14744
14745 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14746
14747 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14748
14749 * config/rs6000/rs6000.md (isa attribute): Add support for
14750 for a future processor.
14751
14752 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14753
14754 PR target/54855
14755 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14756 standard scalar operation pattern for V2DF.
14757 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14758 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14759 (*ieee_<ieee_maxmin><mode>3): Likewise.
14760 (vec_setv2df_0): Likewise.
14761
14762 2019-06-20 Jan Hubicka <jh@suse.cz>
14763
14764 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14765 parameter; it has no use in gimple memory model.
14766 (indirect_ref_may_alias_decl_p): Update.
14767
14768 2019-06-20 Martin Liska <mliska@suse.cz>
14769
14770 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14771 to 10.
14772
14773 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14774
14775 * tree-vect-stmts.c (enum scan_store_kind): New type.
14776 (scan_store_can_perm_p): Change last argument from int * to
14777 vec<enum scan_store_kind> *, record precisely which permutations
14778 need whole vector left shift or that plus VEC_COND_EXPR.
14779 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14780 and additional VEC_COND_EXPR only for those iterations that need it.
14781
14782 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14783
14784 * config.gcc: Fix ARM --with-fpu checking and error message.
14785
14786 2019-06-19 Marek Polacek <polacek@redhat.com>
14787
14788 PR c++/60364 - noreturn after first decl not diagnosed.
14789 * attribs.c (get_attribute_namespace): No longer static.
14790 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14791 attributes.
14792 (attr_noreturn_exclusions): Make it extern.
14793 * attribs.h (get_attribute_namespace): Declare.
14794 * tree-inline.c (function_attribute_inlinable_p): Use
14795 get_attribute_name.
14796
14797 2019-06-19 Martin Sebor <msebor@redhat.com>
14798
14799 PR tree-optimization/90626
14800 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14801
14802 PR tree-optimization/90626
14803 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14804 (handle_builtin_string_cmp): Call it.
14805
14806 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14807
14808 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14809 and DARWIN_NOPIE_SPEC.
14810 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14811 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14812 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14813 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14814 (DARWIN_EXPORT_DYNAMIC): Delete.
14815 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14816 and pie options processing to darwin.h.
14817 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14818
14819 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14820
14821 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14822 in computing the number of options to be moved.
14823
14824 2019-06-19 Maya Rashish <coypu@sdf.org>
14825
14826 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14827 (CLEAR_INSN_CACHE) Use it.
14828
14829 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14830
14831 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14832
14833 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14834
14835 PR middle-end/84521
14836 * builtins.c (expand_builtin_setjmp_setup): Save
14837 hard_frame_pointer_rtx.
14838 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14839 restore fp.
14840 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14841 non-local goto.
14842 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14843 elimination code.
14844 (remove_reg_equal_offset_note): Remove unused function.
14845 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14846 code.
14847 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14848 (arc_builtin_setjmp_frame_value): Remove function.
14849 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14850 (avr_builtin_setjmp_frame_value): Remove function.
14851 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14852 (ix86_builtin_setjmp_frame_value): Remove function.
14853 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14854 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14855 (sparc_builtin_setjmp_frame_value): Remove function.
14856 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14857 (vax_builtin_setjmp_frame_value): Remove function.
14858 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14859 pointer if has_nonlocal_label.
14860
14861 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14862
14863 * doc/md.texi: Document vec_shl_<mode> pattern.
14864 * optabs.def (vec_shl_optab): New optab.
14865 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14866 argument, if == vec_shl_optab, check for left whole vector shift
14867 pattern rather than right shift.
14868 (expand_vec_perm_const): Add vec_shl_optab support.
14869 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14870 in the comment.
14871 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14872 can be handled by vec_shl_optab.
14873 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14874 (check_scan_store): Use it.
14875 (vectorizable_scan_store): If target can't do normal permutations,
14876 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14877 after it.
14878 * config/i386/sse.md (vec_shl_<mode>): New expander.
14879
14880 * omp-low.c (lower_rec_input_clauses): Handle references properly
14881 in inscan clauses.
14882 (lower_omp_scan): Likewise.
14883
14884 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14885
14886 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14887 mem_mode is BLKmode.
14888
14889 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14890
14891 PR target/90922
14892 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14893 pointer adjustment for the case of no callee-saved registers and
14894 stack frame bigger than 128 bytes.
14895
14896 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14897
14898 PR middle-end/90862
14899 * omp-low.c (check_omp_nesting_restrictions): Handle
14900 GF_OMP_TARGET_KIND_OACC_DECLARE.
14901
14902 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14903
14904 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14905 (@add<mode>3_carry): Rename from add<mode>3_carry.
14906 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14907 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14908 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14909 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14910 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14911 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14912 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14913 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14914 (cmpstrnsi): Use gen_cmp_1.
14915 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14916 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14917 (@umonitor_<mode>): Rename from umonitor_<mode>.
14918 * config/i386/i386-expand.c (ix86_expand_copysign):
14919 Use gen_copysign3_const and gen_copysign3_var.
14920 (ix86_expand_xorsign): Use gen_xorsign3_1.
14921 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14922 gen_sub3_carry_ccgz and gen_cmp1.
14923 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14924 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14925 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14926 (ix86_split_lshr): Ditto.
14927 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14928
14929 2019-06-18 Jason Merrill <jason@redhat.com>
14930
14931 * tree.c (build_constructor): Add MEM_STAT_DECL.
14932
14933 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14934
14935 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14936 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14937 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14938 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14939 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14940 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14941 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14942 Use CC_NZC instead of CC.
14943 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14944 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14945 (aarch64_print_operand): Handle E_CC_NZCmode.
14946 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14947 of gen_set_clobber_cc.
14948
14949 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14950
14951 * config/aarch64/aarch64-sve.md: Tabify file.
14952
14953 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14954
14955 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14956 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14957 * config/aarch64/aarch64-sve.md: Use it.
14958
14959 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14960
14961 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14962 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14963 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14964 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14965 (aarch64_expand_sve_vec_cmp_int): Use it.
14966 (aarch64_expand_sve_vec_cmp_float): Likewise.
14967 * config/aarch64/aarch64-sve.md: Likewise throughout.
14968
14969 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14970 Kugan Vivekanandarajah <kuganv@linaro.org>
14971
14972 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14973 (*cond_<optab><mode>_z): Fold into...
14974 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14975 operand 4 can be tied to operand 0 (either inherently or via RA).
14976
14977 2019-06-18 Richard Biener <rguenther@suse.de>
14978
14979 PR debug/90900
14980 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14981 as if optimized away.
14982
14983 2019-06-18 Tom de Vries <tdevries@suse.de>
14984
14985 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14986 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14987 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14988 Rename to ...
14989 (define_insn "@set_softstack_<mode>"): ... this.
14990 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14991 (define_insn "@omp_simt_enter_<mode>"): ... this.
14992 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14993 (define_insn "@omp_simt_exit_<mode>"): ... this.
14994
14995 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14996
14997 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14998 vf parameter. Restore the previous iv step of nscalars_step,
14999 but give it iv_type rather than compare_type. Tweak code order
15000 to match the comments.
15001 (vect_set_loop_condition_masked): Update accordingly.
15002 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15003 for iv_precision. Tweak comment formatting.
15004
15005 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15006
15007 * config/darwin.c: Strip trailing whitespace.
15008
15009 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15010
15011 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15012 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15013
15014 2019-06-18 Martin Jambor <mjambor@suse.cz>
15015
15016 PR ipa/90889
15017 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15018 caller does not have flag_ipa_cp set.
15019
15020 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15021
15022 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15023 from "*fold_left_plus_<mode>", updated operands order.
15024 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15025 * internal-fn.c (mask_fold_left_direct): New define.
15026 (expand_mask_fold_left_optab_fn): Likewise.
15027 (direct_mask_fold_left_optab_supported_p): Likewise.
15028 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15029 * optabs.def (mask_fold_left_plus_optab): New optab.
15030 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15031 masked internal_fn for a reduction ifn.
15032 (vectorize_fold_left_reduction): Add support for masking reductions.
15033
15034 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15035
15036 PR middle-end/80791
15037 * target.def (predict_doloop_p): New hook.
15038 * targhooks.h (default_predict_doloop_p): New declaration.
15039 * targhooks.c (default_predict_doloop_p): New function.
15040 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15041 * doc/tm.texi: Regenerate.
15042 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15043 (TARGET_PREDICT_DOLOOP_P): New macro.
15044 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15045
15046 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15047
15048 * omp-low.c (struct omp_context): Add scan_inclusive field.
15049 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15050 if inclusive scan.
15051 (struct omplow_simd_context): Add lastlane member.
15052 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15053 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15054 1 or 2 argument.
15055 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15056 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15057 (lower_omp_scan): New function.
15058 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15059 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15060 check 3rd argument if present rather than 2nd.
15061 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15062 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15063 2-bit bitfield.
15064 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15065 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15066 than 2nd.
15067 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15068 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15069 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15070 init.
15071 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15072 IFN_GOMP_SIMD_LANE argument.
15073 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15074 encoded ->aux value.
15075 * tree-vect-stmts.c: Include attribs.h.
15076 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15077 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15078 functions.
15079 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15080 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15081
15082 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15083
15084 PR target/62055
15085 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15086 (*nabs<mode>2_1): Ditto.
15087 (nabs sse-reg splitter): New splitter.
15088 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15089
15090 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15091
15092 PR bootstrap/90873.
15093 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15094 TMR index check.
15095
15096 2019-06-17 Tom de Vries <tdevries@suse.de>
15097
15098 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15099 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15100 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15101 ...
15102 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15103 match_operand 0.
15104 (define_insn "omp_simt_enter_insn"): Rename to ...
15105 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15106 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15107 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15108 gen_omp_simt_enter_si.
15109 (define_expand "omp_simt_exit"): New.
15110 (define_insn "omp_simt_exit"): Rename to ...
15111 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15112 match_operand 0.
15113
15114 2019-06-17 Matthew Green <mrg@eterna.com.au>
15115 Maya Rashish <coypu@sdf.org>
15116
15117 * config.gcc (aarch64*-*-netbsd*): New target.
15118 * config/aarch64/aarch64-netbsd.h: New file.
15119 * config/aarch64/t-aarch64-netbsd: Likewise.
15120
15121 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15122
15123 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15124 the access path from base to first VIEW_CONVERT_EXPR or
15125 BIT_FIELD_REF.
15126
15127 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15128
15129 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15130 access path on BIT_FIELD_REFs.
15131
15132 2019-06-17 Martin Liska <mliska@suse.cz>
15133
15134 PR ipa/90874
15135 * ipa-utils.h (odr_type_p): Remove dead code.
15136
15137 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15138
15139 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15140 alternative Solaris 11.4 format.
15141 * configure: Regenerate.
15142
15143 2019-06-17 Tom de Vries <tdevries@suse.de>
15144
15145 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15146 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15147 match_operand 0.
15148 (define_insn "call_value_insn"): Rename to ...
15149 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15150 match_operand 0.
15151 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15152 DI.
15153
15154 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15155
15156 PR middle-end/64242
15157 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15158 frame clobbers and schedule block.
15159 (builtin_longjmp): Likewise.
15160
15161 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15162
15163 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15164 describe how to perform MSPABI compliant 64-bit shift.
15165 * config/msp430/msp430.md (ashldi3): New define_expand.
15166 (ashrdi3): New define_expand.
15167 (lshrdi3): New define_expand.
15168
15169 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15170
15171 * doc/sourcebuild.texi: Document new effective target keyword
15172 longlong64.
15173
15174 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15175
15176 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15177 indirect_refs_may_alias_p): Revert accidental commits.
15178
15179 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15180 at the end of structures.
15181
15182 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15183
15184 * config/darwin.c (machopic_indirect_call_target): Use renamed
15185 darwin_picsymbol_stubs to decide on output.
15186 (darwin_override_options): Handle darwin_picsymbol_stubs.
15187 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15188 (LD64_VERSION): Revise default.
15189 * config/darwin.opt: (mpic-symbol-stubs): New option.
15190 (darwin_picsymbol_stubs): New variable.
15191 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15192 rename to TARGET_MACHO_PICSYM_STUBS.
15193 * config/i386/i386.c (output_pic_addr_const): Likewise.
15194 * config/i386/i386.h Likewise.
15195 * config/rs6000/darwin.h: Likewise.
15196 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15197 darwin_picsymbol_stubs.
15198
15199 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15200
15201 * config/darwin.opt (prebind, noprebind, seglinkedit,
15202 noseglinkedit): Add RejectNegative.
15203
15204 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15205
15206 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15207 in my previous patch.
15208
15209 2019-06-16 Tom de Vries <tdevries@suse.de>
15210
15211 PR tree-optimization/89376
15212 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15213
15214 2019-06-15 Maya Rashish <coypu@sdf.org>
15215
15216 * doc/invoke.texi (Spec Files): Update location of the
15217 Fortran spec file.
15218
15219 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15220
15221 * doc/extend.texi (Common Function Attributes): Clarify
15222 no_sanitize. Fix grammar.
15223
15224 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15225
15226 * tree-ssa-alias.c (alias_stats): Add
15227 nonoverlapping_component_refs_p_may_alias,
15228 nonoverlapping_component_refs_p_no_alias,
15229 nonoverlapping_component_refs_of_decl_p_may_alias,
15230 nonoverlapping_component_refs_of_decl_p_no_alias.
15231 (dump_alias_stats): Dump them.
15232 (nonoverlapping_component_refs_of_decl_p): Add stats.
15233 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15234 ARRAY_REF.
15235
15236 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15237
15238 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15239 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15240 only.
15241 (*anddi3_doubleword): Split before reload. Merge with
15242 anddi->zext pre-reload splitter.
15243 (*andndi3_doubleword): Split before reload.
15244 (*<code>di3_doubleword): Ditto.
15245 (*one_cmpldi2_doubleword): Ditto.
15246
15247 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15248
15249 PR middle-end/90779
15250 * gimplify.c: Include omp-offload.h and context.h.
15251 (gimplify_bind_expr): Add "omp declare target" attributes
15252 to static block scope variables inside of target region or target
15253 functions.
15254
15255 2019-06-15 Tom de Vries <tdevries@suse.de>
15256
15257 PR tree-optimization/90009
15258 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15259 Return NULL if bb contains IFN_UNIQUE.
15260
15261 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15262
15263 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15264 (un): New define_mode_attr.
15265 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15266 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15267 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15268 merge into ...
15269 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15270
15271 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15272
15273 * config/darwin.opt: Add RejectNegative where needed, reorder
15274 and add minimal functional descriptions.
15275
15276 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15277
15278 PR rtl-optimization/90765
15279 * calls.c (update_stack_alignment_for_call): New function.
15280 (expand_call): Call update_stack_alignment_for_call when
15281 outgoing parameter is passed in the stack.
15282 (emit_library_call_value_1): Likewise.
15283 * function.c (locate_and_pad_parm): Don't update
15284 stack_alignment_needed and preferred_stack_boundary.
15285
15286 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15287
15288 PR target/90877
15289 * config/i386/i386-features.c
15290 (dimode_scalar_chain::compute_convert_gain): Replace
15291 mmxsse_to_integer with sse_to_integer.
15292 * config/i386/i386.c (ix86_register_move_cost): Verify that
15293 moves between MMX and non-MMX units require secondary memory.
15294 Correct costs of moves between SSE and integer units.
15295 * config/i386/i386.h (processor_costs): Rename cost of moving
15296 SSE register to integer to sse_to_integer. Rename cost of
15297
15298 2019-06-14 Matt Thomas <matt@3am-software.com>
15299 Matthew Green <mrg@eterna.com.au>
15300 Nick Hudson <skrll@netbsd.org>
15301 Maya Rashish <coypu@sdf.org>
15302 Richard Earnshaw <rearnsha@arm.com>
15303
15304 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15305 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15306 * config/arm/netbsd-eabi.h: New file.
15307 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15308 redefining.
15309 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15310 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15311 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15312 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15313
15314 2019-06-14 Richard Biener <rguenther@suse.de>
15315
15316 * tree-loop-distribution.c (classify_partition): Return
15317 whether a reduction appeared in all partitions and do not
15318 stop builtin detection because of this.
15319 (distribute_loop): Sort a non-builtin partition last if
15320 there's a reduction in all partitions and make sure the
15321 partition prevailing as last is not a builtin.
15322
15323 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15324
15325 PR ipa/90401
15326 * ipa-prop.c (add_to_agg_contents_list): New function.
15327 (clobber_by_agg_contents_list_p): Likewise.
15328 (extract_mem_content): Likewise.
15329 (get_place_in_agg_contents_list): Delete.
15330 (determine_known_aggregate_parts): Renamed from
15331 determine_locally_known_aggregate_parts. New parameter
15332 aa_walk_budget_p.
15333
15334 2019-06-13 Martin Sebor <msebor@redhat.com>
15335
15336 PR tree-optimization/90662
15337 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15338 to the same type.
15339
15340 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15341
15342 PR bootstrap/90873
15343 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15344 dbase is not TARGET_MEM_REF.
15345
15346 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15347
15348 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15349 Update all uses.
15350 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15351 Do not generate DImode extends for 32bit targets.
15352 (and->zext post-reload splitter): Use gen_extend_insn
15353 instead of indirect functions.
15354 (anddi->zext pre-reload splitter): New.
15355 (*zext<mode>_doubleword_and): Remove.
15356 (*zext<mode>_doubleword): Ditto.
15357 (*zextsi_doubleword): Dittto.
15358
15359 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15360
15361 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15362 Use gen_sub3_insn instead of indirect function.
15363 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15364 indirect function.
15365 (ix86_adjust_counter): Ditto.
15366
15367 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15368 Lijia He <helijia@linux.ibm.com>
15369
15370 PR tree-optimization/77820
15371 * tree-ssa-threadedge.c
15372 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15373 function.
15374 (thread_across_edge): Add call to
15375 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15376
15377 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15378
15379 * config/darwin-driver.c (validate_macosx_version_min): New.
15380 (darwin_default_min_version): Cleanup and validate supplied version.
15381 (darwin_driver_init): Likewise and push cleaned version into opts.
15382
15383 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15384
15385 PR tree-optimization/90869
15386 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15387 converts in MEM_REF referencing decl rather than view converts
15388 from decl type to MEM_REF type.
15389
15390 2019-06-13 Richard Biener <rguenther@suse.de>
15391
15392 PR tree-optimization/90856
15393 * tree-sra.c (build_ref_for_model): Only use
15394 build_reconstructed_reference when address-spaces are the same.
15395
15396 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15397
15398 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15399 wrap ei variable name in the declaration in ()s.
15400 (nvptx_single): Actually use mode_label variable. Formatting fix.
15401
15402 2019-06-13 Richard Biener <rguenther@suse.de>
15403
15404 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15405 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15406 also return the condition stmt.
15407 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15408 loop we can version and version that, reusing the loop version
15409 created by if-conversion instead of versioning again.
15410
15411 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15412
15413 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15414 may_contain_p.
15415 * tree-vrp (value_range_base::may_contain_p): Call into
15416 value_inside_range.
15417 (value_inside_range): Make private inside value_range_base class.
15418 Take min/max from *this.
15419 (range_includes_p): Remove.
15420 * tree-vrp.h (value_range_base): Add value_inside_range.
15421 (range_includes_p): Remove.
15422 (range_includes_zero_p): Call may_contain_p.
15423 * vr-values.c (compare_range_with_value): Same.
15424
15425 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15426
15427 * doc/extend.texi (ARC Function Attributes): Update info.
15428
15429 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15430
15431 PR tree-optimization/89713
15432 * doc/invoke.texi (-ffinite-loops): Document new option.
15433 * common.opt (-ffinite-loops): New option.
15434 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15435 IFN_GOACC_LOOP calls as necessary.
15436 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15437 is finite.
15438 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15439 IFN_GOACC_LOOP call is not used.
15440 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15441
15442 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15443
15444 PR target/88838
15445 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15446 compare_type is not with Pmode size, we will create an IV with
15447 Pmode size with truncated use (i.e. converted to the correct type).
15448 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15449 (vect_iv_limit_for_full_masking): New. Factored out of
15450 vect_set_loop_condition_masked.
15451 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15452 (vect_iv_limit_for_full_masking): Declare.
15453
15454 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15455
15456 PR target/88834
15457 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15458 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15459 (get_alias_ptr_type_for_ptr_address): Likewise.
15460 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15461 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15462 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15463 allow_reg_index_p.
15464
15465 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15466
15467 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15468
15469 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15470
15471 * common/config/pru/pru-common.c: New file.
15472 * config.gcc: Add PRU target.
15473 * config/pru/alu-zext.md: New file.
15474 * config/pru/constraints.md: New file.
15475 * config/pru/predicates.md: New file.
15476 * config/pru/pru-opts.h: New file.
15477 * config/pru/pru-passes.c: New file.
15478 * config/pru/pru-pragma.c: New file.
15479 * config/pru/pru-protos.h: New file.
15480 * config/pru/pru.c: New file.
15481 * config/pru/pru.h: New file.
15482 * config/pru/pru.md: New file.
15483 * config/pru/pru.opt: New file.
15484 * config/pru/t-pru: New file.
15485 * doc/extend.texi: Document PRU pragmas.
15486 * doc/invoke.texi: Document PRU-specific options.
15487 * doc/md.texi: Document PRU asm constraints.
15488
15489 2019-06-12 Martin Sebor <msebor@redhat.com>
15490
15491 PR middle-end/90676
15492 * tree-pretty-print.c (dump_mem_ref): New function. Include
15493 MEM_REF type in output when different size than operand.
15494 (dump_generic_node): Move code to dump_mem_ref and call it.
15495
15496 2019-06-12 Martin Sebor <msebor@redhat.com>
15497
15498 PR tree-optimization/90662
15499 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15500 to arrays.
15501
15502 2019-06-12 Tom de Vries <tdevries@suse.de>
15503
15504 PR tree-optimization/90009
15505 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15506
15507 2019-06-12 Martin Liska <mliska@suse.cz>
15508
15509 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15510 the created map.
15511 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15512 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15513 Do not sanitize created maps.
15514
15515 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15516
15517 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15518 value_range::singleton_p.
15519 * tree-vrp.c (value_range_constant_singleton): Remove.
15520 * tree-vrp.h (value_range_constant_singleton): Remove.
15521 * vr-values.c (vr_values::singleton): Use
15522 value_range::singleton_p.
15523
15524 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15525
15526 PR target/90811
15527 * cfgexpand.c (align_local_variable): Add really_expand argument,
15528 don't SET_DECL_ALIGN if it is false.
15529 (add_stack_var): Add really_expand argument, pass it through to
15530 align_local_variable.
15531 (expand_one_stack_var_1): Pass true as really_expand to
15532 align_local_variable.
15533 (expand_one_ssa_partition): Pass true as really_expand to
15534 add_stack_var.
15535 (expand_one_var): Pass really_expand through to add_stack_var.
15536
15537 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15538
15539 * config/arm/iterators.md (VABAL): New int iterator.
15540 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15541 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15542 UNSPEC_VABAL_U values.
15543
15544 2019-06-12 Martin Liska <mliska@suse.cz>
15545
15546 * value-prof.c (stream_out_histogram_value): Only first value
15547 can't be negative.
15548
15549 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15550
15551 PR c/90760
15552 * symtab.c (symtab_node::set_section): Allow being called on aliases
15553 as long as they aren't analyzed yet.
15554
15555 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15556
15557 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15558 to `mips_set_text_contents_type' to indicate whether a
15559 non-debug insn follows.
15560
15561 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15562
15563 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15564 enabling -mpcrel by default.
15565 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15566 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15567 that the test against -mcpu=future is done first. Then test if
15568 -mprefixed-addr is on for -mpcrel.
15569 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15570
15571 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15572
15573 PR target/90811
15574 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15575 instead of and.u%d.
15576
15577 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15578
15579 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15580
15581 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15582
15583 PR c++/90449 - add -Winaccessible-base option.
15584 * doc/invoke.texi (Winaccessible-base): Document.
15585
15586 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15587
15588 PR tree-optimization/62041
15589 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15590
15591 2019-06-11 Jason Merrill <jason@redhat.com>
15592
15593 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15594 * tree.c (get_tree_code_name): Likewise.
15595 * print-tree.c (print_node): Only briefly print a node with an
15596 invalid code.
15597
15598 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15599
15600 PR bootstrap/90819
15601 * trans-mem.c (tm_memopt_compute_available): Add assertion
15602 that blocks is not empty. Formatting fix.
15603
15604 2019-06-11 Martin Liska <mliska@suse.cz>
15605
15606 PR c++/87847
15607 * hash-table.h: Extend create_gcc, add one parameter
15608 that is passed into hash_table::hash_table.
15609
15610 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15611
15612 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15613 New prototype.
15614 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15615 Emit clobber also for non-sse operations.
15616 (ix86_split_fp_absneg_operator): New function.
15617 * config/i386/i386.md (SSEMODEF): New mode iterator.
15618 (ssevecmodef): New mode attribute.
15619 (<code>tf2): Use absneg code iterator.
15620 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15621 Add three-operand AVX alternatives.
15622 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15623 Use absneg code iterator and X87MODEF mode iterator.
15624 (absneg fp_reg non-sse splitter): Call absneg code iterator
15625 and X87MODEF mode iterator.
15626 (absneg general_reg non-sse splitter): Use absneg code iterator
15627 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15628 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15629 code iterator. Add three-operand AVX alternative.
15630 (absneg sse_reg splitter): Use absneg code iterator
15631 and SSEMODEF mode iterator. Handle AVX operands.
15632 (absneg fp_reg splitter): Use absneg code iterator
15633 and MODEF mode iterator.
15634 (absneg general_reg splitter): Merge splitters using MODEF mode
15635 iterator. Use absneg code iterator. Call
15636 ix86_split_fp_absneg_operator.
15637 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15638 Do not enable for non-sse modes before reload.
15639 (CSGNMODE): Remove.
15640 (CSGNVMODE): Ditto.
15641 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15642 ssevecmodef mode attribute instaed of CSGNVMODE.
15643 (copysign<mode>3_const): Ditto.
15644 (copysign<mode>3_var): Ditto.
15645 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15646 Use absneg code iterator. Simplify code using std::swap.
15647 * config/i386/predicates.md (absneg_operator): Remove.
15648
15649 2019-06-10 Martin Sebor <msebor@redhat.com>
15650
15651 * gimple-fold.c (get_range_strlen): Update comment that didn't
15652 make it into r267503 or related commits.
15653
15654 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15655
15656 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15657 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15658
15659 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15660
15661 * tree.def (OMP_SCAN): New tree code.
15662 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15663 OMP_CLAUSE_EXCLUSIVE.
15664 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15665 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15666 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15667 OMP_CLAUSE_{IN,EX}CLUSIVE.
15668 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15669 * tree-nested.c (convert_nonlocal_reference_stmt,
15670 convert_local_reference_stmt, convert_gimple_call): Handle
15671 GIMPLE_OMP_SCAN.
15672 * tree-pretty-print.c (dump_omp_clause): Handle
15673 OMP_CLAUSE_{IN,EX}CLUSIVE.
15674 (dump_generic_node): Handle OMP_SCAN.
15675 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15676 * gimple.h (gomp_scan): New type.
15677 (is_a_helper <gomp_scan *>::test,
15678 is_a_helper <const gomp_scan *>::test): New templates.
15679 (gimple_build_omp_scan): Declare.
15680 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15681 gimple_omp_scan_set_clauses): New inline functions.
15682 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15683 * gimple.c (gimple_build_omp_scan): New function.
15684 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15685 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15686 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15687 GIMPLE_OMP_TASKGROUP.
15688 (dump_gimple_omp_scan): New function.
15689 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15690 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15691 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15692 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15693 (is_gimple_stmt): Handle OMP_SCAN.
15694 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15695 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15696 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15697 mentioned in nested #pragma omp scan. Handle
15698 OMP_CLAUSE_{IN,EX}CLUSIVE.
15699 (gimplify_expr): Handle OMP_SCAN.
15700 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15701 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15702 simd constructs.
15703 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15704 GIMPLE_OMP_SCAN.
15705
15706 2019-06-10 Martin Liska <mliska@suse.cz>
15707
15708 * ipa-cp.c (ignore_edge_p): New function.
15709 (build_toporder_info): Use it.
15710 * ipa-inline.c (ignore_edge_p): New function.
15711 (inline_small_functions): Use it.
15712 * ipa-pure-const.c (ignore_edge_for_nothrow):
15713 Verify opt_for_fn for caller and callee.
15714 (ignore_edge_for_pure_const): Likewise.
15715 * ipa-reference.c (ignore_edge_p): Extend to check
15716 for opt_for_fn.
15717 * ipa-utils.c (searchc): Refactor.
15718 * ipa-utils.h: Fix coding style.
15719
15720 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15721
15722 * config/arc/arc.c (arc_rtx_costs): Update costs.
15723
15724 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15725
15726 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15727 (arc_split_ior): Likewise.
15728 (arc_check_mov_const): Likewise.
15729 (arc_split_mov_const): Likewise.
15730 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15731 (arc_rtx_costs): Replace check Crr with Cax constraint.
15732 (prepare_move_operands): Cleanup, remove unused code.
15733 (arc_split_ior): New function.
15734 (arc_check_ior_const): Likewise.
15735 (arc_split_mov_const): Likewise.
15736 (arc_check_mov_const): Likewise.
15737 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15738 in define_insn_and_split pattern.
15739 (iorsi3): Likewise.
15740 (mulsi3_v2): Add new matching variant.
15741 (andsi3_i): Cleanup pattern.
15742 (rotrsi3_cnt1): Update pattern.
15743 (rotrsi3_cnt8): New pattern.
15744 (ashlsi2_cnt8): Likewise.
15745 (ashlsi2_cnt16): Likewise.
15746 * config/arc/constraints.md (C0p): Update constraint.
15747 (Crr): Remove it.
15748 (C0x): New pattern.
15749 (Cax): New pattern.
15750
15751 2019-06-10 Martin Liska <mliska@suse.cz>
15752
15753 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15754 Update coding style.
15755 (sem_item_optimizer::dump_cong_classes):
15756 Print how many items are in a non-singular class. Improve
15757 coding style.
15758
15759 2019-06-10 Martin Liska <mliska@suse.cz>
15760
15761 * value-prof.c (dump_histogram_value): Change dump format.
15762 (gimple_mod_subtract_transform): Remove legacy comment.
15763
15764 2019-06-10 Martin Liska <mliska@suse.cz>
15765
15766 * value-prof.c (dump_histogram_value): Print histogram values
15767 only if present.
15768
15769 2019-06-10 Martin Liska <mliska@suse.cz>
15770
15771 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15772 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15773 * ipa-profile.c (ipa_profile_generate_summary):
15774 Use get_most_common_single_value.
15775 * tree-profile.c (gimple_init_gcov_profiler):
15776 Instrument with __gcov_one_value_profiler_v2
15777 and __gcov_indirect_call_profiler_v4.
15778 * value-prof.c (dump_histogram_value):
15779 Print all values for HIST_TYPE_SINGLE_VALUE.
15780 (stream_out_histogram_value): Update assert for
15781 N values.
15782 (stream_in_histogram_value): Set number of
15783 counters for HIST_TYPE_SINGLE_VALUE.
15784 (get_most_common_single_value): New.
15785 (gimple_divmod_fixed_value_transform):
15786 Use get_most_common_single_value.
15787 (gimple_ic_transform): Likewise.
15788 (gimple_stringops_transform): Likewise.
15789 (gimple_find_values_to_profile): Set number
15790 of counters for HIST_TYPE_SINGLE_VALUE.
15791 * value-prof.h (get_most_common_single_value): New.
15792
15793 2019-06-10 Martin Liska <mliska@suse.cz>
15794
15795 * hash-map.h: Pass default value to hash_table ctor.
15796 * hash-table.h: Add default value to call of a ctor.
15797
15798 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15799
15800 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15801 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15802
15803 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15804
15805 PR target/90751
15806 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15807 Call pa_output_function_label.
15808 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15809 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15810 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15811 to declaration.
15812 (pa_linux_output_function_prologue): Declare.
15813 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15814 (pa_output_function_label): New.
15815 (pa_output_function_prologue): Revise to use pa_output_function_label.
15816 (pa_linux_output_function_prologue): New.
15817 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15818
15819 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15820
15821 * tree-vrp.h (value_range_base::intersect): New.
15822 (value_range::intersect_helper): Move from here...
15823 (value_range_base::intersect_helper): ...to here.
15824 * tree-vrp.c (value_range::intersect_helper): Rename to...
15825 (value_range_base::intersect_helper): ...this, and rewrite to
15826 return a value instead of modifying THIS in place.
15827 Also, move equivalence handling...
15828 (value_range::intersect): ...here, while calling intersect_helper.
15829 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15830 calling intersect.
15831 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15832 Same.
15833 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15834
15835 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15836
15837 * Makefile.in (genprogerr): Add condmd.
15838 (genprog): Remove it here.
15839
15840 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15841
15842 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15843
15844 2019-06-07 Richard Biener <rguenther@suse.de>
15845
15846 PR debug/90574
15847 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15848 that appear after user labels.
15849
15850 2019-06-07 Martin Liska <mliska@suse.cz>
15851
15852 * cselib.c (cselib_init): Disable hash table
15853 sanitization.
15854 * hash-set.h: Pass new default argument to m_table.
15855 * hash-table.c: Add global variable with hash table
15856 sanitization limit.
15857 * hash-table.h (Allocator>::hash_table): Add new argument
15858 to ctor.
15859 (hashtab_chk_error): New.
15860 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15861 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15862 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15863
15864 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15865
15866 * common.opt (flto-odr-type-merging): Ignore.
15867 * invoke.texi (-flto-odr-type-merging): Remove.
15868 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15869 (can_be_vtable_hashed_p): Remove.
15870 (hash_odr_vtable): Remove.
15871 (odr_vtable_hasher::hash): Remove.
15872 (types_same_for_odr): Remove.
15873 (types_odr_comparable): Remove.
15874 (odr_vtable_hasher::equal): Remove.
15875 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15876 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15877 (get_odr_type): Do not use vtable hash.
15878 (dump_odr_type): Remove commented out code.
15879 (build_type_inheritance_graph): Do not allocate vtable hash.
15880 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15881 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15882 (odr_type_p): Likewise.
15883 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15884 test.
15885
15886 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15887
15888 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15889 immediately after same_types_for_tbaa_p returns -1 and continue
15890 looking for possible exact match; if matching types are arrays
15891 watch for partial overlaps.
15892 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15893 (indirect_refs_may_alias_p): Do type based disambiguation first;
15894 update comment.
15895
15896 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15897
15898 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15899
15900 2019-06-07 Martin Liska <mliska@suse.cz>
15901
15902 * doc/invoke.texi: Remove param.
15903 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15904 Remove.
15905 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15906 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15907 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15908 * profile.c (instrument_values): Remove
15909 HIST_TYPE_INDIR_CALL_TOPN.
15910 * tree-profile.c (init_ic_make_global_vars):
15911 Always build __gcov_indirect_call only.
15912 (gimple_init_gcov_profiler): Remove usage
15913 of PARAM_INDIR_CALL_TOPN_PROFILE.
15914 (gimple_gen_ic_profiler): Likewise.
15915 * value-prof.c (dump_histogram_value): Likewise.
15916 (stream_in_histogram_value): Likewise.
15917 (gimple_indirect_call_to_profile): Likewise.
15918 (gimple_find_values_to_profile): Likewise.
15919 * value-prof.h (enum hist_type): Likewise.
15920
15921 2019-06-07 Martin Liska <mliska@suse.cz>
15922
15923 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15924 function.
15925
15926 2019-06-07 Martin Liska <mliska@suse.cz>
15927
15928 PR tree-optimization/78902
15929 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15930 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15931 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15932 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15933 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15934 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15935 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15936 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15937 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15938 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15939 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15940 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15941 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15942 New.
15943 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15944 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15945 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15946 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15947 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15948 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15949 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15950 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15951 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15952 warn_unused_result attribute.
15953 (BUILT_IN_STRDUP): Likewise.
15954 (BUILT_IN_STRNDUP): Likewise.
15955 (BUILT_IN_ALLOCA): Likewise.
15956 (BUILT_IN_CALLOC): Likewise.
15957 (BUILT_IN_MALLOC): Likewise.
15958 (BUILT_IN_REALLOC): Likewise.
15959
15960 2019-06-06 Jim Wilson <jimw@sifive.com>
15961
15962 PR target/89955
15963 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15964 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15965 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15966
15967 2019-06-06 Martin Sebor <msebor@redhat.com>
15968
15969 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15970 (handle_builtin_malloc): Remove trailing spaces.
15971 (handle_builtin_memset): Same.
15972 (handle_builtin_memcmp): Same.
15973 (compute_string_length): Same.
15974 (determine_min_objsize): Same.
15975 (handle_builtin_string_cmp): Same.
15976 (handle_char_store): Same. Break up excessively long line.
15977
15978 2019-06-06 Martin Jambor <mjambor@suse.cz>
15979
15980 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15981 check.
15982
15983 2019-06-06 Martin Jambor <mjambor@suse.cz>
15984
15985 * tree-sra.c (struct access): New field grp_same_access_path.
15986 (dump_access): Dump it.
15987 (build_reconstructed_reference): New function.
15988 (build_ref_for_model): Use it if possible.
15989 (path_comparable_for_same_access): New function.
15990 (same_access_path_p): Likewise.
15991 (sort_and_splice_var_accesses): Set the new flag.
15992 (analyze_access_subtree): Likewise.
15993 (propagate_subaccesses_across_link): Propagate zero value of the new
15994 flag down the access tree.
15995
15996 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15997
15998 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15999 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16000 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16001 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16002 Add gfx906.
16003
16004 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16005
16006 PR tree-optimization/90332
16007 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16008 Handle VALS containing two vectors.
16009 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16010 to...
16011 (@aarch64_combinez<mode>): ... This.
16012 (*aarch64_combinez_be<mode>): Rename to...
16013 (@aarch64_combinez_be<mode>): ... This.
16014 (vec_init<mode><Vhalf>): New define_expand.
16015 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16016
16017 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16018
16019 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16020 library functions only when not optimizing for size.
16021 (ashlsi3): Likewise.
16022 (ashrhi3): Likewise.
16023 (ashrsi3): Likewise.
16024 (lshrhi3): Likewise.
16025 (lshrsi3): Likewise.
16026
16027 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16028
16029 PR rtl-optimization/88751
16030 * ira.c (ira): Use the number of the actually referenced registers
16031 when calculating the threshold.
16032
16033 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16034
16035 * configure: Regenerate.
16036
16037 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16038
16039 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16040 register if it is in memory, so the shift can be emulated with a rotate
16041 instruction.
16042 (ashrhi3): Likewise.
16043 (lshrhi3): Likewise.
16044
16045 2019-06-06 Martin Liska <mliska@suse.cz>
16046
16047 PR tree-optimization/87954
16048 * match.pd: Simplify mult where both arguments are 0 or 1.
16049
16050 2019-06-06 Richard Biener <rguenther@suse.de>
16051
16052 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16053 put equivalences on UNDEFINED ranges.
16054 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16055 Make sure to drop defs of stmts added during simplification
16056 to VARYING.
16057
16058 2019-06-06 Richard Biener <rguenther@suse.de>
16059
16060 * tree-ssa-structalias.c: Include tree-cfg.h.
16061 (make_heapvar): Do not make heap vars artificial.
16062 (find_func_aliases_for_builtin_call): Handle stack allocation
16063 functions.
16064 (find_func_aliases): Delay processing of simple enough returns
16065 in non-IPA mode.
16066 (set_uids_in_ptset): Adjust.
16067 (find_what_var_points_to): Likewise.
16068 (solve_constraints): Do not dump points-to sets here.
16069 (compute_points_to_sets): Post-process return statements,
16070 amending the escaped solution. Dump points-to sets afterwards.
16071 (ipa_pta_execute): Dump points-to sets.
16072
16073 2019-06-06 Martin Liska <mliska@suse.cz>
16074
16075 PR web/87933
16076 * doc/install.texi: Fix HTML headers and
16077 titles for 'Installing GCC' pages.
16078
16079 2019-06-06 Martin Liska <mliska@suse.cz>
16080
16081 * ipa-icf-gimple.h (dump_message_1): Remove.
16082 (dump_message): Likewise.
16083 (return_false_with_message_1): Print also file.
16084 (return_false_with_msg): Likewise.
16085 (return_with_result): Likewise.
16086 (return_with_debug): Likewise.
16087 * ipa-icf.c (sem_function::equals_private): Remove call
16088 to dump_message.
16089
16090 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16091
16092 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16093 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16094 memory operand for it.
16095 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16096
16097 2019-06-05 Martin Sebor <msebor@redhat.com>
16098
16099 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16100 Adjust quoting and hyphenation.
16101 * convert.c (convert_to_real_1): Same.
16102 * gcc.c (driver_wrong_lang_callback): Same.
16103 (driver::handle_unrecognized_options): Same.
16104 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16105 * opts-common.c (cmdline_handle_error): Same.
16106 (read_cmdline_option): Same.
16107 * opts-global.c (complain_wrong_lang): Same.
16108 (print_ignored_options): Same.
16109 (handle_common_deferred_options): Same.
16110 * pretty-print.h: Same.
16111 * print-rtl.c (debug_bb_n_slim): Same.
16112 * sched-rgn.c (make_pass_sched_fusion): Same.
16113 * tree-cfg.c (verify_gimple_assign_unary): Same.
16114 (verify_gimple_label): Same.
16115 * tree-ssa-operands.c (verify_ssa_operands): Same.
16116 * varasm.c (do_assemble_alias): Same.
16117 (assemble_alias): Same.
16118
16119 2019-06-05 Richard Henderson <rth@twiddle.net>
16120
16121 * config/alpha/alpha.c (direct_return): Move down after
16122 struct machine_function definition; use saved frame_size;
16123 return bool.
16124 (struct machine_function): Add sa_mask, sa_size, frame_size.
16125 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16126 (alpha_compute_frame_layout): ... new function.
16127 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16128 (alpha_initial_elimination_offset): Use saved sa_size.
16129 (alpha_vms_initial_elimination_offset): Likewise.
16130 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16131 (alpha_expand_prologue): Use saved frame data. Merge integer
16132 and fp register save loops.
16133 (alpha_expand_epilogue): Likewise.
16134 (alpha_start_function): Use saved frame data.
16135 * config/alpha/alpha-protos.h (direct_return): Update.
16136 (alpha_sa_size): Remove.
16137
16138 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16139
16140 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16141 multiplication by a power-of-two value.
16142 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16143 and turn the modulo operation into a masking operation.
16144
16145 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16146
16147 PR debug/90733
16148 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16149 with VOIDmode inner operands.
16150
16151 2019-06-05 Richard Biener <rguenther@suse.de>
16152
16153 PR middle-end/90726
16154 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16155 turn an expression graph into a tree.
16156
16157 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16158
16159 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16160 member.
16161 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16162 treat it like explicit monotonic schedule modifier.
16163 (expand_omp_for): Initialize has_lastprivate_conditional.
16164 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16165 schedule modifier.
16166
16167 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16168 references, lookup in in hash map MEM_REF operand instead of the
16169 MEM_REF itself.
16170 (lower_omp_1): When looking for lastprivate conditional assignments,
16171 handle MEM_REFs with REFERENCE_TYPE operands.
16172
16173 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16174 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16175 and references a VLA. Handle references to non-VLAs if is_simd
16176 all privatization clauses like reductions.
16177 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16178 If omp_is_reference, use always omp simd arrays and set
16179 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16180 fails, emit reference initialization.
16181
16182 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16183
16184 PR target/89803
16185 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16186 _mm_mask_fpclass_sd_mask): New intrinsics.
16187 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16188 * config/i386/i386-builtin.def
16189 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16190 New builtins.
16191 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16192 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16193 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16194 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16195 case QI_FTYPE_V2SF_INT): Ditto.
16196 * config/i386/sse.md
16197 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16198 Extended to insnstructions with mask operands.
16199
16200 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16201
16202 * config/rs6000/constraints.md (define_register_constraint "wp"):
16203 Delete.
16204 (define_register_constraint "wq"): Delete.
16205 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16206 (rs6000_init_hard_regno_mode_ok): Adjust.
16207 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16208 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16209 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16210 (define_mode_attr VSa): Delete.
16211 (define_mode_attr VSisa): New.
16212 (rest of file): Adjust.
16213 * doc/md.texi (Machine Constraints): Adjust.
16214
16215 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16216
16217 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16218 (define_attr "enabled"): Handle those new isa values.
16219
16220 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16221
16222 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16223 (define_mode_attr VSr5): Delete.
16224 (define_mode_attr VStype_sqrt): Delete.
16225 (define_mode_iterator VSX_SPDP): Delete.
16226 (define_mode_attr VS_spdp_res): Delete.
16227 (define_mode_attr VS_spdp_insn): Delete.
16228 (define_mode_attr VS_spdp_type): Delete.
16229 (*vsx_sqrt<mode>2): Adjust.
16230 (vsx_<VS_spdp_insn>): Delete, split to...
16231 (vsx_xscvdpsp): ... this. New. And...
16232 (vsx_xvcvspdp): ... this. New. And...
16233 (vsx_xvcvdpsp): ... this. New.
16234
16235 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16236
16237 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16238 and V2DF.
16239 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16240 (rest of file): Adjust.
16241
16242 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16243
16244 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16245 (vsx_extract_<mode>_var): Ditto.
16246
16247 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16248
16249 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16250 with just "wa".
16251
16252 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16253
16254 * config/rs6000/constraints.md (define_register_constraint "ww"):
16255 Delete.
16256 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16257 (rs6000_init_hard_regno_mode_ok): Adjust.
16258 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16259 RS6000_CONSTRAINT_ww.
16260 * config/rs6000/rs6000.md: Adjust.
16261 * config/rs6000/vsx.md: Adjust.
16262 * doc/md.texi (Machine Constraints): Adjust.
16263
16264 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16265
16266 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16267 (define_mode_attr sd): New.
16268 (define_mode_attr s): New.
16269 (define_mode_attr Ftrad): Delete.
16270 (define_mode_attr Fvsx): Delete.
16271 (define_mode_attr Fs): Delete.
16272 (rest of file): Use the new mode attributes.
16273 * config.rs6000/vsx.md: Use the new mode attributes.
16274
16275 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16276
16277 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16278 with just "wa".
16279
16280 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16281
16282 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16283 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16284 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16285
16286 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16287
16288 PR target/78263
16289 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16290 C++ with strict ANSI requirements.
16291
16292 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16293
16294 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16295 computations when step is 1.
16296
16297 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16298
16299 * config/rs6000/constraints.md (define_register_constraint "wf"):
16300 Delete.
16301 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16302 (rs6000_init_hard_regno_mode_ok): Adjust.
16303 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16304 RS6000_CONSTRAINT_wf.
16305 * config/rs6000/rs6000.md: Adjust.
16306 * config/rs6000/vsx.md: Adjust.
16307 * doc/md.texi (Machine Constraints): Adjust.
16308
16309 2019-06-04 Andrew Pinski <apinski@marvell.com>
16310
16311 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16312 Fix ILP32 value.
16313
16314 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16315
16316 * config/rs6000/constraints.md (define_register_constraint "wd"):
16317 Delete.
16318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16319 (rs6000_init_hard_regno_mode_ok): Adjust.
16320 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16321 RS6000_CONSTRAINT_wd.
16322 * config/rs6000/rs6000.md: Adjust.
16323 * config/rs6000/vsx.md: Adjust.
16324 * doc/md.texi (Machine Constraints): Adjust.
16325
16326 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16327
16328 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16329 (rest of file): Adjust.
16330
16331 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16332
16333 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16334 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16335 (vsx_splat_<mode>_reg): Adjust.
16336
16337 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16338
16339 * config/rs6000/constraints.md (define_register_constraint "ws"):
16340 Delete.
16341 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16342 (rs6000_init_hard_regno_mode_ok): Adjust.
16343 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16344 RS6000_CONSTRAINT_ws.
16345 * config/rs6000/rs6000.md: Adjust.
16346 * config/rs6000/vsx.md: Adjust.
16347 * doc/md.texi (Machine Constraints): Adjust.
16348
16349 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16350
16351 * config/rs6000/constraints.md (define_register_constraint "wv"):
16352 Delete.
16353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16354 (rs6000_init_hard_regno_mode_ok): Adjust.
16355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16356 RS6000_CONSTRAINT_wv.
16357 * config/rs6000/rs6000.md: Adjust.
16358 * config/rs6000/vsx.md: Adjust.
16359 * doc/md.texi (Machine Constraints): Adjust.
16360
16361 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16362
16363 * config/rs6000/constraints.md (define_register_constraint "wi"):
16364 Delete.
16365 (define_register_constraint "wt"): Delete.
16366 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16367 (rs6000_init_hard_regno_mode_ok): Adjust.
16368 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16369 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16370 * config/rs6000/rs6000.md: Adjust.
16371 * config/rs6000/vsx.md: Adjust.
16372 * doc/md.texi (Machine Constraints): Adjust.
16373
16374 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16375
16376 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16377 const.
16378 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16379 default_elf_asm_output_external.
16380
16381 2019-06-04 Martin Liska <mliska@suse.cz>
16382
16383 * ipa-icf.c (INCLUDE_LIST): Remove.
16384 (sem_item_optimizer::execute): Remove call to init_wpa.
16385 * ipa-icf.h (init_wpa): Remove.
16386
16387 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16388
16389 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16390 conditional on combined for simd.
16391 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16392 member.
16393 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16394 constructs, don't remove lastprivate_conditional_map, but instead set
16395 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16396 to parent construct temporaries.
16397 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16398 like !ctx->lastprivate_conditional_map.
16399 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16400 use up->outer context instead of up.
16401 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16402 gimple_omp_for_combined_p.
16403 (expand_omp_for_static_nochunk): Likewise.
16404 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16405 probably moved over into expand_omp_for_generic rather than being copied
16406 there.
16407
16408 2019-06-04 Martin Liska <mliska@suse.cz>
16409
16410 * value-prof.c (dump_histogram_value): Fix typo.
16411 (gimple_mod_subtract_transform): Likewise.
16412
16413 2019-06-04 Richard Biener <rguenther@suse.de>
16414
16415 PR middle-end/90726
16416 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16417 (tree_contains_chrecs): Likewise.
16418 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16419 exponential behaivor from ...
16420 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16421 ... here.
16422 (expression_expensive_p): Avoid exponential behavior and compute
16423 expanded size, rejecting any expansion.
16424 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16425 (idx_contains_abnormal_ssa_name_p): Likewise.
16426 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16427 (contains_abnormal_ssa_name_p): Simplify and use
16428 walk_tree_without_duplicates.
16429
16430 2019-06-04 Richard Biener <rguenther@suse.de>
16431
16432 PR tree-optimization/90738
16433 Revert
16434 2019-06-03 Richard Biener <rguenther@suse.de>
16435
16436 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16437 full reference tree and record in ref->ref.
16438 (vn_reference_lookup_3): Pass in original ref to
16439 ao_ref_init_from_vn_reference.
16440 (vn_reference_lookup): Likewise.
16441 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16442 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16443 Handle non-decl bases in the original reference.
16444
16445 2019-06-04 Martin Liska <mliska@suse.cz>
16446
16447 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16448 number of references.
16449 (sem_item_optimizer::do_congruence_step):
16450 (sem_item_optimizer::worklist_push): Dump how references
16451 a class has.
16452 (sem_item_optimizer::worklist_pop): Use heap.
16453 (sem_item_optimizer::process_cong_reduction): Likewise.
16454 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16455
16456 2019-06-04 Martin Liska <mliska@suse.cz>
16457
16458 * ipa-icf.h (struct sem_usage_pair_hash): New.
16459 (sem_usage_pair_hash::hash): Likewise.
16460 (sem_usage_pair_hash::equal): Likewise.
16461 (struct sem_usage_hash): Likewise.
16462 * ipa-icf.c (sem_item::sem_item): Initialize
16463 referenced_by_count.
16464 (sem_item::add_reference): Register a reference
16465 in ref_map and not in target->usages.
16466 (sem_item::setup): Remove initialization of
16467 dead vectors.
16468 (sem_item::~sem_item): Remove usage of dead vectors.
16469 (sem_item::dump): Remove dump of references.
16470 (sem_item_optimizer::sem_item_optimizer): Initialize
16471 m_references.
16472 (sem_item_optimizer::read_section): Remove useless
16473 dump.
16474 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16475 (sem_item_optimizer::build_graph): Pass m_references
16476 to ::add_reference.
16477 (sem_item_optimizer::verify_classes): Remove usage of dead
16478 vectors.
16479 (sem_item_optimizer::traverse_congruence_split): Return true
16480 when a class is split.
16481 (sem_item_optimizer::do_congruence_step_for_index): Use
16482 hash_map for look up of (sem_item *, index). That brings
16483 significant speed up.
16484 (sem_item_optimizer::do_congruence_step): Return true
16485 when a split is done.
16486 (congruence_class::is_class_used): Use referenced_by_count.
16487
16488 2019-06-04 Alan Modra <amodra@gmail.com>
16489
16490 PR target/90689
16491 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16492 error.
16493
16494 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16495
16496 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16497 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16498 (rs6000_secondary_reload_simple_move): Adjust.
16499 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16500 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16501 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16502 comment.
16503 (power6x): Adjust.
16504 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16505 (floatunssi<mode>2_lfiwzx): Adjust.
16506 (fix_trunc<mode>si2_stfiwx): Adjust.
16507 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16508 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16509 (mfpgpr): Mark as deprecated.
16510 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16511 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16512 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16513
16514 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16515
16516 * config/rs6000/constraints.md (define_register_constraint "wg"):
16517 Delete.
16518 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16519 RS6000_CONSTRAINT_wg.
16520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16521 (rs6000_init_hard_regno_mode_ok): Adjust.
16522 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16523 Delete "wg" alternatives.
16524 * doc/md.texi (Machine Constraints): Adjust.
16525
16526 2019-06-03 Alan Modra <amodra@gmail.com>
16527
16528 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16529 (get_uncond_jump_length): Assert length less than INT_MAX and
16530 non-negative.
16531
16532 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16533
16534 PR middle-end/64242
16535 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16536 block.
16537 (expand_builtin_nonlocal_goto): Likewise.
16538
16539 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16540
16541 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16542 (aarch64_asm_output_external): Declare.
16543 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16544 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16545 (aarch64_asm_output_alias): New.
16546 (aarch64_asm_output_external): New.
16547 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16548 (ASM_OUTPUT_EXTERNAL): Define.
16549
16550 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16551 * tree-vrp.h (value_range_base::nonzero_p): New.
16552 (value_range_base::set_nonnull): Rename to...
16553 (value_range_base::set_nonzero): ...this.
16554 (value_range_base::set_null): Rename to...
16555 (value_range_base::set_zero): ...this.
16556 (value_range::set_nonnull): Remove.
16557 (value_range::set_null): Remove.
16558 * tree-vrp.c (range_is_null): Remove.
16559 (range_is_nonnull): Remove.
16560 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16561 instead of range_is_*null.
16562 (extract_range_from_unary_expr): Same.
16563 (value_range_base::set_nonnull): Rename to...
16564 (value_range_base::set_nonzero): ...this.
16565 (value_range::set_nonnull): Remove.
16566 (value_range_base::set_null): Rename to...
16567 (value_range_base::set_zero): ...this.
16568 (value_range::set_null): Remove.
16569 (extract_range_from_binary_expr): Rename set_*null uses to
16570 set_*zero.
16571 (extract_range_from_unary_expr): Same.
16572 (union_helper): Same.
16573 * vr-values.c (get_value_range): Use set_*zero instead of
16574 set_*null.
16575 (vr_values::extract_range_from_binary_expr): Same.
16576 (vr_values::extract_range_basic): Same.
16577
16578 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16579
16580 PR driver/90684
16581 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16582
16583 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16584
16585 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16586 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16587 Rename to...
16588 (aarch64_<su>abd<mode>_3): ... This.
16589 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16590
16591 2019-06-03 Richard Biener <rguenther@suse.de>
16592
16593 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16594 full reference tree and record in ref->ref.
16595 (vn_reference_lookup_3): Pass in original ref to
16596 ao_ref_init_from_vn_reference.
16597 (vn_reference_lookup): Likewise.
16598 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16599 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16600 Handle non-decl bases in the original reference.
16601
16602 2019-06-03 Martin Liska <mliska@suse.cz>
16603
16604 * doc/generic.texi: Remove Java Trees.
16605
16606 2019-06-03 Martin Liska <mliska@suse.cz>
16607
16608 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16609 returns 0 when operands are equal.
16610
16611 2019-06-03 Richard Biener <rguenther@suse.de>
16612
16613 PR tree-optimization/90716
16614 * tree-loop-distribution.c (destroy_loop): Process blocks in
16615 correct order.
16616
16617 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16618
16619 PR target/88837
16620 * vector-builder.h (vector_builder::count_dups): New method.
16621 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16622 Declare prototype.
16623 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16624 (vec_init<mode><Vel>): New pattern.
16625 * config/aarch64/aarch64.c (emit_insr): New function.
16626 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16627 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16628 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16629 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16630
16631 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16632
16633 PR tree-optimization/90681
16634 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16635 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16636 special case for SLP, but fail on non-groupped loads.
16637
16638 2019-06-03 Martin Liska <mliska@suse.cz>
16639
16640 * cfg.c (debug): Use TDF_DETAILS for debug and
16641 print edge info only once.
16642
16643 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16644
16645 PR fortran/90539
16646 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16647
16648 2019-06-01 Martin Sebor <msebor@redhat.com>
16649
16650 PR middle-end/90694
16651 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16652
16653 2019-05-31 Jan Hubicka <jh@suse.cz>
16654
16655 * alias.c: Include ipa-utils.h.
16656 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16657 * ipa-devirt.c (prevailing_odr_type): New.
16658 * ipa-utils.h (previaling_odr_type): Declare.
16659
16660 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16661 Hongtao Liu <hongtao.liu@intel.com>
16662
16663 PR target/89355
16664 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16665 NOTE_INSN_DELETED_LABEL check.
16666
16667 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16668 Robert Suchanek <robert.suchanek@mips.com>
16669
16670 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16671 and 3rd operands of the fmadd/fmsub/maddv builtin.
16672
16673 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16674
16675 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16676 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16677 on OMP_SIMD if not nested inside of worksharing loop that also has
16678 lastprivate conditional clause for the same decl.
16679 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16680 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16681 on simd.
16682 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16683 on simd construct.
16684 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16685 on simd construct.
16686 (lower_lastprivate_clauses): Likewise.
16687 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16688 calling lower_rec_input_clauses.
16689 (lower_omp_for): Likewise.
16690 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16691 clause on simd construct.
16692 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16693 OMP_CLAUSE__CONDTEMP_ clause is present.
16694
16695 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16696 ivar and lvar.
16697
16698 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16699
16700 PR c/43673
16701 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16702 TEX_D32, TEX_D64 or TEX_D128.
16703
16704 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16705
16706 * match.pd (~(vec?cst1:cst2)): New transformation.
16707
16708 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16709
16710 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16711 ((size_t)(A /[ex] B) CMP C): New transformation.
16712
16713 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16714
16715 * doc/md.texi: Document define_insn_and_rewrite.
16716 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16717 * gensupport.c (queue_elem): Update comment.
16718 (replace_operands_with_dups): New function.
16719 (gen_rewrite_sequence): Likewise.
16720 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16721 * read-rtl.c (apply_subst_iterator): Likewise.
16722 (add_condition_to_rtx, named_rtx_p): Likewise.
16723 (rtx_reader::read_rtx_operand): Likewise.
16724 * config/aarch64/aarch64-sve.md
16725 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16726 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16727 define_insn_and_rewrite.
16728 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16729 Remove separate define_split.
16730
16731 2019-05-31 Jan Hubicka <jh@suse.cz>
16732
16733 * tree-ssa-alias.c (type_has_components_p): New function.
16734 (aliasing_component_refs_p): Use it.
16735
16736 2019-05-31 Martin Liska <mliska@suse.cz>
16737
16738 * gdbhooks.py: Add const_tree to TreePrinter.
16739
16740 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16741
16742 PR debug/86964
16743 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16744 * doc/invoke.texi (Debugging Options): Document new default of
16745 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16746
16747 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR tree-optimization/90671
16750 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16751 template_block used to be empty on the first call, don't use
16752 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16753 seq with bb_seq and set it with set_bb_seq.
16754
16755 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16756
16757 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16758
16759 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16760 Michael Meissner <meissner@linux.ibm.com>
16761
16762 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16763 (prefixed_mem_operand): Likewise.
16764 (non_prefixed_mem_operand): Likewise.
16765 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16766 prototype.
16767 * config/rs6000/rs6000.c (print_operand_address): Handle
16768 PC-relative addresses.
16769 (mode_supports_prefixed_address_p): New function.
16770 (rs6000_prefixed_address): New function.
16771 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16772 (SYMBOL_REF_PCREL_P): Likewise.
16773
16774 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16775
16776 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16777 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16778 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16779 is nested inside of parallel region, add _condtemp_ clause to both.
16780 * tree-nested.c (convert_nonlocal_omp_clauses,
16781 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16782 assertion failure.
16783 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16784 member.
16785 * omp-general.c (omp_extract_for_data): Compute it.
16786 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16787 (lower_rec_input_clauses): Likewise.
16788 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16789 clause is already present, just add one further one after it.
16790 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16791 (lower_send_shared_vars): Clear _condtemp_ vars.
16792 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16793 or section or taskgroup.
16794 * omp-expand.c (determine_parallel_type): Disallow combining only if
16795 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16796 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16797 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16798 expand_omp_for_static_chunk, expand_omp_for): Use
16799 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16800 determine if a special set of API routines are needed and if condtemp
16801 needs to be initialized, while always initialize cond_var if
16802 fd->lastprivate_conditional is non-zero.
16803
16804 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16805 Michael Meissner <meissner@linux.ibm.com>
16806
16807 * config/rs6000/constraints.md (eI): New constraint.
16808 * config/rs6000/predicates.md (cint34_operand): New predicate.
16809 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16810 (SIGNED_34BIT_OFFSET_P): Likewise.
16811 * doc/md.texi (eI): Document constraint.
16812
16813 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16814
16815 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16816
16817 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16818 Michael Meissner <meissner@linux.ibm.com>
16819
16820 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16821 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16822 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16823 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16824 (OTHER_FUTURE_MASKS): Likewise.
16825 (POWERPC_MASKS): Likewise.
16826 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16827 specified without -mprefixed-addr or -mcpu=future. Error if
16828 -mprefixed-addr is specified without -mcpu=future.
16829 (rs6000_opt_masks): Add entry for prefixed-addr.
16830 * rs6000.opt (mprefixed-addr): New option.
16831
16832 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16833
16834 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16835 cfun->is_thunk check.
16836
16837 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16838
16839 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16840 to length.
16841
16842 2019-05-30 Martin Liska <mliska@suse.cz>
16843
16844 * gdbinit.in: Fix 'ptc' command. Add trt
16845 that prints TREE_TYPE($).
16846
16847 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16848 Alan Modra <amodra@gmail.com>
16849
16850 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16851 calls here...
16852 (rs6000_indirect_call_template_1): ...and here.
16853 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16854 plt16_ha, plt16_lo, mtctr indirect calls. Use
16855 rs6000_pltseq_enum.
16856 (rs6000_decl_ok_for_sibcall): New function.
16857 (rs6000_function_ok_for_sibcall): Refactor.
16858 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16859 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16860 when pcrel. Reorganize.
16861 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16862 * rs6000.h (rs6000_pltseq_enum): New enum.
16863 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16864 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16865 (*pltseq_plt16_ha): Likewise.
16866 (*pltseq_plt16_lo): Likewise.
16867 (*pltseq_mtctr): Likewise.
16868 (*pltseq_plt_pcrel): New insn.
16869 (*call_local_aix): Handle @notoc calls.
16870 (*call_value_local_aix): Likewise.
16871 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16872 (*call_value_nonlocal_aix): Likewise.
16873 (*call_indirect_pcrel): New insn.
16874 (*call_value_indirect_pcrel): Likewise.
16875
16876 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16877
16878 * config/i386/sse.md (*save_multiple<mode>): Rename from
16879 save_multiple<mode>.
16880 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16881 (*restore_multiple_and_return<mode>): Rename from
16882 restore_multiple_and_return<mode>.
16883 (*restore_multiple_leave_return<mode>): Rename from
16884 restore_multiple_leave_return<mode>.
16885
16886 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16887
16888 * config.gcc (rx-*-linux*): New target.
16889 * config/rx/elf.opt: New file.
16890 * config/rx/linux.h: Likewise.
16891 * config/rx/t-linux: Likewise.
16892 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16893 make it zero.
16894 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16895 (ASM_APP_OFF): Likewise.
16896 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16897 moved elsewhere.
16898
16899 2019-05-29 Jan Hubicka <jh@suse.cz>
16900
16901 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16902 variants are pointer equivalent.
16903
16904 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16905
16906 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16907 * config/aarch64/aarch64-sve2.md: New file.
16908 (<u>avg<mode>3_floor): New pattern.
16909 (<u>avg<mode>3_ceil): Likewise.
16910 (*<sur>h<addsub><mode>): Likewise.
16911 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16912 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16913
16914 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16915
16916 PR bootstrap/90543
16917 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16918 for var_opt_string printing. In cl_optimization_print_diff, print
16919 (null) instead of invoking undefined behavior if one of the
16920 var_opt_string pointers is NULL and use && instead of first || in the
16921 guarding condition. For var_target_other options, handle const char *
16922 target variables similarly to const char * optimize node variables.
16923
16924 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16925
16926 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16927 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16928 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16929 Add autib1716 and pacib1716 initialisation.
16930 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16931 for autib1716 and pacib1716.
16932 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16933 aarch64_post_cfi_startproc): Define.
16934 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16935 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16936 aarch64_handle_pac_ret_protection): Set default sign key to A.
16937 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16938 aarch64_expand_prologue): Add check for b-key.
16939 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16940 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16941 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16942 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16943 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16944 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16945 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16946 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16947 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16948 pauth_hint_num_a with pauth_hint_num.
16949 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16950 pauth_hint_num_a with pauth_hint_num.
16951 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16952 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16953 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16954 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16955 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16956 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16957 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16958 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16959 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16960 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16961 UNSPEC_AUTIA1716 respectively.
16962 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16963 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16964 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16965 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16966 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16967 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16968
16969 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16970
16971 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16972 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16973 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16974 explicit clause on combined parallel into implicit shared clause.
16975 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16976 and firstprivate if the decl has one too from combined parallel to
16977 the worksharing construct.
16978
16979 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16980 Michael Meissner <meissner@linux.ibm.com>
16981
16982 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16983
16984 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16985
16986 * rtl.h (LABEL_REF_P): New #define.
16987
16988 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16989
16990 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16991
16992 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16993
16994 * internal-fn.c: Marked mask_load_direct as vectorizable.
16995 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16996 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16997 combined even if masks different with allow_slp_p param.
16998 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16999 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17000 dissolve SLP-only vectorizable groups when SLP has been discarded.
17001 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17003 masks.
17004 (vect_build_slp_tree_1): Fixed comment typo.
17005 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17006 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17007 loads for SLP only.
17008 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17009 vectorizable.
17010 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17011
17012 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17013
17014 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17015 Remove obsolete use_thunk reference.
17016 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17017 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17018 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17019 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17020 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17021 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17022 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17023 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17024 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17025
17026 2019-05-28 Nathan Sidwell <nathan@acm.org>
17027
17028 * tree.h (IDENTIFIER_ANON_P): New.
17029 (anon_aggrname_format, anon_aggname_p): Don't declare.
17030 (make_anon_name): Declare.
17031 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17032 (hash_tree): Likewise.
17033 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17034 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17035 (anon_cnt, make_anon_name): New.
17036
17037 2019-05-28 Martin Liska <mliska@suse.cz>
17038
17039 PR other/90315
17040 * opts-global.c (decode_options): Print help for all
17041 help_option_arguments.
17042 * opts.c (print_help): Add new argument.
17043 (common_handle_option): Remember all values into
17044 help_option_arguments.
17045 * opts.h (print_help): Add new argument.
17046
17047 2019-05-28 Martin Liska <mliska@suse.cz>
17048
17049 PR ipa/90555
17050 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17051 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17052 (func_checker::compare_bb): Call compare_loops.
17053
17054 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17055
17056 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17057 on sections construct.
17058 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17059 construct.
17060 (lower_omp_sections): Handle lastprivate conditional.
17061 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17062 lastprivate_conditional_map.
17063 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17064
17065 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17066 critical, taskgroup and section regions when looking for a region
17067 with non-NULL lastprivate_conditional_map.
17068
17069 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17070
17071 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17072 (*ix86_gen_sub3): Ditto.
17073 (*ix86_gen_sub3_carry): Ditto.
17074 (*ix86_gen_one_cmpl2): Ditto.
17075 (*ix86_gen_andsp): Ditto.
17076 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17077 (gen_and2_insn): New static function.
17078 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17079 Use gen_add3_insn instead of ix86_gen_add3.
17080 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17081 instead of ix86_gen_add3.
17082 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17083 Use gen_sub3_insn instead of ix86_gen_sub3.
17084 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17085 instead of ix86_gen_add3.
17086 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17087 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17088 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17089 * config/i386/i386-options.c (ix86_option_override_internal):
17090 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17091 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17092
17093 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17094
17095 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17096 and DW_OP_GNU_const_index opcodes.
17097
17098 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17099
17100 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17101
17102 2019-05-27 Richard Biener <rguenther@suse.de>
17103
17104 PR tree-optimization/90637
17105 * tree-ssa-sink.c (statement_sink_location): Honor the
17106 computed sink location for single-uses.
17107
17108 2019-05-27 Richard Biener <rguenther@suse.de>
17109
17110 PR middle-end/90610
17111 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17112 a bit-insert.
17113
17114 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17115
17116 * config/i386/i386.md (@sub<mode>3_carry): Rename
17117 from sub<mode>3_carry.
17118 (@leave_<mode>): New expander.
17119 (*leave): Rename from leave.
17120 (*leave_rex64): Rename from leave_rex64.
17121 (@monitorx_<mode>): Rename from monitorx_<mode>.
17122 (@clzero_<mode>): Rename from clzero_<mode>.
17123 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17124 from sse3_monitor_<mode>.
17125 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17126 (*ix86_gen_leave): Ditto.
17127 (*ix86_gen_monitor): Ditto.
17128 (*ix86_gen_monitorx): Ditto.
17129 (*ix86_gen_clzero): Ditto.
17130 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17131 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17132 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17133 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17134 Use gen_sse3_monitor instead of ix86_gen_monitor.
17135 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17136 instead of ix86_gen_monitorx.
17137 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17138 instead of ix86_gen_clzero.
17139 * config/i386/i386-options.c (ix86_option_override_internal):
17140 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17141 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17142
17143 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17144
17145 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17146 Rename from tls_global_dynamic_64_<mode>.
17147 (@tls_local_dynamic_base_64_<mode>): Rename from
17148 tls_local_dynamic_base_64_<mode>.
17149 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17150 Remove indirect function.
17151 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17152 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17153 instead of ix86_gen_tls_global_dynamic_64.
17154 Use gen_tls_local_dynamic_base_64 instead of
17155 ix86_gen_tls_local_dynamic_base_64.
17156 * config/i386/i386-options.c (ix86_option_override_internal):
17157 Do not initialize ix86_gen_tls_global_dynamic_64 and
17158 ix86_gen_tls_local_dynamic_base_64.
17159
17160 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17161
17162 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17163 Rename from pro_epilogue_adjust_stack_<mode>_add.
17164 (@pro_epilogue_adjust_stack_sub_<mode>)
17165 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17166 (@allocate_stack_worker_probe_<mode>):
17167 Rename from allocate_stack_worker_probe_<mode>.
17168 (allocate_stack): Use gen_allocate_stack_worker_probe.
17169 (probe_stack): Use gen_probe_stack_1.
17170 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17171 (@adjust_stack_and_probe_<mode>): Rename from
17172 adjust_stack_and_probe<mode>.
17173 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17174 (stack_protect_set): Use gen_stack_protect_set_1.
17175 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17176 (stack_protect_test): Use gen_stack_protect_test_1.
17177 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17178 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17179 Remove indirect function.
17180 (*ix86_gen_adjust_stack_and_probe): Ditto.
17181 (*ix86_gen_probe_stack_range): Ditto.
17182 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17183 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17184 (ix86_adjust_stack_and_probe_stack_clash): Use
17185 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17186 (ix86_adjust_stack_and_probe): Ditto.
17187 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17188 of ix86_gen_probe_stack_range.
17189 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17190 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17191 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17192 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17193 CODE_FOR_stack_protect_test_{si,di}.
17194 * config/i386/i386-options.c (ix86_option_override_internal):
17195 Do not initialize ix86_gen_allocate_stack_worker,
17196 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17197
17198 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17199
17200 * doc/invoke.texi (Link Options): Many editorial changes around
17201 -flinker-output.
17202
17203 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17204
17205 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17206 pre-Solaris 11 referene and most Studio compiler details.
17207
17208 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17209
17210 PR target/90530
17211 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17212 DImode to SImode in floating-point registers on 64-bit target.
17213 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17214 register_operand in xmpyu patterns.
17215
17216 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17217
17218 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17219 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17220 OMP_CLAUSE__REDUCTEMP_.
17221 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17222 OMP_CLAUSE__CONDTEMP_.
17223 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17224 * tree-pretty-print.c (dump_omp_clause): Likewise.
17225 * tree-nested.c (convert_nonlocal_omp_clauses,
17226 convert_local_omp_clauses): Likewise.
17227 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17228 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17229 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17230 on OMP_FOR.
17231 (gimplify_omp_for): Warn and disable conditional modifier from
17232 lastprivate on loop iterators.
17233 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17234 member.
17235 * omp-general.c (omp_extract_for_data): Initialize it.
17236 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17237 member.
17238 (delete_omp_context): Delete it.
17239 (lower_lastprivate_conditional_clauses): New function.
17240 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17241 handle lastprivate conditional clauses.
17242 (lower_reduction_clauses): Add CLIST argument, emit it into
17243 the critical section if any.
17244 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17245 lower_reduction_clauses callers.
17246 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17247 to lower_lastprivate_clauses.
17248 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17249 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17250 clist into a critical section if not emitted there already by
17251 lower_reduction_clauses.
17252 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17253 callers.
17254 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17255 conditional variables.
17256 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17257 clause is present.
17258 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17259 expand_omp_for_static_chunk): Handle lastprivate conditional.
17260 (expand_omp_for): Handle fd.lastprivate_conditional like
17261 fd.have_reductemp.
17262
17263 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17264
17265 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17266 kernel does not exit cleanly.
17267 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17268
17269 2019-05-24 Jason Merrill <jason@redhat.com>
17270
17271 Revert:
17272 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17273
17274 2019-05-24 Richard Biener <rguenther@suse.de>
17275
17276 PR testsuite/90607
17277 * tree-loop-distribution.c (struct partition): Add location
17278 member.
17279 (partition_alloc): Initialize all fields.
17280 (generate_memset_builtin): Use the location recorded in the
17281 partition for the generated call.
17282 (generate_memcpy_builtin): Likewise.
17283 (classify_partition): Record the location of a single store
17284 as location for the partition.
17285
17286 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17287
17288 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17289 for lo-part.
17290
17291 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17292
17293 PR target/90588
17294 * common/config/aarch64/aarch64-common.c
17295 (aarch64_rewrite_selected_cpu): Change local temporary variable
17296 type from unsigned long to uint64_t.
17297 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17298 aarch64_get_extension_string_for_isa_flags): Change declaration to
17299 match new definition by replacing unsigned long with uint64_t.
17300
17301 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17302
17303 PR target/90568
17304 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17305 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17306 Handle stack_protect_test_<mode> codegen similarly to corresponding
17307 sub instruction.
17308
17309 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17310
17311 * config/i386/darwin.h: Reject -mfentry*.
17312 * doc/sourcebuild.texi: Document mfentry target support.
17313
17314 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17315
17316 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17317 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17318 false for PC-relative functions.
17319 (rs6000_output_function_prologue): Change called function name to
17320 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17321 name,1" for PC-relative functions.
17322 (rs6000_elf_declare_function_name): Change called function name to
17323 rs6000_global_entry_point_prologue_needed_p.
17324
17325 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17326
17327 PR target/90552
17328 * config/i386/i386.c (gen_rtx_cost):
17329 Use ix86_tune_cost instead of ix86_cost.
17330
17331 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17332 Michael Meissner <meissner@linux.ibm.com>
17333 Segher Boessenkool <segher@kernel.crashing.org>
17334
17335 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17336 OPTION_MASK_PCREL.
17337 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17338 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17339 (rs6000_fndecl_pcrel_p): Likewise.
17340 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17341 error if -mpcrel is requested without -mcpu=future.
17342 (rs6000_opt_masks): Add entry for pcrel.
17343 (rs6000_fndecl_pcrel_p): New function.
17344 (rs6000_pcrel_p): Likewise.
17345 * config/rs6000/rs6000.opt (mpcrel): New option.
17346 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17347
17348 2019-05-23 Jan Hubicka <jh@suse.cz>
17349 Martin Liska <mliska@suse.cz>
17350
17351 PR tree-optimization/90576
17352 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17353 poly_int_tree_p.
17354 (aliasing_component_refs_p): Fix three way size compare conditional;
17355 give up earlier in case we can not decide on equivalence.
17356
17357 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17358 Michael Meissner <meissner@linux.ibm.com>
17359 Segher Boessenkool <segher@kernel.crashing.org>
17360
17361 * config.gcc: Add future cpu.
17362 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17363 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17364 #define.
17365 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17366 (RS6000_CPU): New instantiation for future cpu.
17367 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17368 PROCESSOR_FUTURE.
17369 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17370 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17371 * config/rs6000/rs6000-tables.opt: Regenerate.
17372 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17373 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17374 (rs6000_machine_from_flags): Handle future cpu.
17375 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17376 PROCESSOR_POWER9 for now.
17377 (rs6000_adjust_cost): Likewise.
17378 (rs6000_issue_rate): Likewise.
17379 (rs6000_register_move_cost): Likewise.
17380 (rs6000_opt_masks): Add entry for future.
17381 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17382 (MASK_FUTURE): New #define.
17383 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17384 * config/rs6000/rs6000.opt (mfuture): New target option.
17385 * doc/invoke.texi (mcpu): Add future cpu.
17386
17387 2019-05-23 Martin Liska <mliska@suse.cz>
17388
17389 PR c++/90587
17390 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17391 operation points to a temporary (pointed via tree_to_wide_ref)
17392 that is out of scope after the &.
17393
17394 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17395
17396 PR c++/90592
17397 * doc/extend.texi (Function Names): Add missing word.
17398
17399 2019-05-23 Richard Biener <rguenther@suse.de>
17400
17401 PR tree-optimization/88440
17402 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17403 at -O[2s]+.
17404 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17405 generated call.
17406 (generate_memcpy_builtin): Likewise.
17407 (distribute_loop): Pass in whether to only distribute patterns.
17408 (prepare_perfect_loop_nest): Also allow size optimization.
17409 (pass_loop_distribution::execute): When optimizing a loop
17410 nest for size allow pattern replacement.
17411
17412 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17413
17414 PR target/90568
17415 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17416 of xor.
17417
17418 2019-05-23 Martin Liska <mliska@suse.cz>
17419
17420 PR sanitizer/90570
17421 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17422 expression similarly to gimplify_decl_expr.
17423
17424 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17425
17426 * cse.c (cse_dump_path): s/dump_file/f.
17427
17428 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17429
17430 PR c++/90462
17431 * diagnostic-format-json.cc: Include "selftest.h".
17432 (json_from_expanded_location): Only add "file" key for non-NULL
17433 file strings.
17434 (json_from_location_range): Don't add "start" and "finish"
17435 children if they are UNKNOWN_LOCATION.
17436 (selftest::test_unknown_location): New selftest.
17437 (selftest::test_bad_endpoints): New selftest.
17438 (selftest::diagnostic_format_json_cc_tests): New function.
17439 * json.cc (json::object::get): New function.
17440 (selftest::test_object_get): New selftest.
17441 (selftest::json_cc_tests): Call it.
17442 * json.h (json::object::get): New decl.
17443 * selftest-run-tests.c (selftest::run_tests): Call
17444 selftest::diagnostic_format_json_cc_tests.
17445 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17446 decl.
17447
17448 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17449 Andrew Stubbs <amd@codesourcery.com>
17450
17451 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17452 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17453 (kernel): Rename to...
17454 (main_kernel): ... this.
17455 (load_image): Load _init_array and _fini_array kernels.
17456 (run): Add argument for kernel to run.
17457 (main): Run init_array_kernel before main_kernel, and
17458 fini_array_kernel after.
17459 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17460 amdgpu_hsa_kernel attribute on functions.
17461 (gcn_disable_constructors): Delete.
17462 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17463 * config/gcn/crt0.c (size_t): Define.
17464 (_init_array, _fini_array): New.
17465 (__preinit_array_start, __preinit_array_end,
17466 __init_array_start, __init_array_end,
17467 __fini_array_start, __fini_array_end): Declare weak references.
17468
17469 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17470
17471 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17472
17473 2019-05-22 Jason Merrill <jason@redhat.com>
17474
17475 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17476
17477 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17478
17479 PR target/88483
17480 * config/i386/i386-options.c (ix86_init_machine_status): Set
17481 stack_frame_required to true.
17482 * config/i386/i386.c (ix86_get_frame_size): New function.
17483 (ix86_frame_pointer_required): Replace get_frame_size with
17484 ix86_get_frame_size.
17485 (ix86_compute_frame_layout): Likewise.
17486 (ix86_find_max_used_stack_alignment): Changed to void. Set
17487 stack_frame_required.
17488 (ix86_finalize_stack_frame_flags): Always call
17489 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17490 ix86_get_frame_size.
17491 * config/i386/i386.h (machine_function): Add stack_frame_required.
17492
17493 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17494
17495 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17496
17497 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17498
17499 * common/config/aarch64/aarch64-common.c
17500 (struct aarch64_option_extension, struct processor_name_to_arch,
17501 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17502 aarch64_contains_opt,
17503 aarch64_get_extension_string_for_isa_flags): Change type of
17504 variables storing flags to uint64_t.
17505 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17506 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17507 * config/aarch64/aarch64.c (struct processor,
17508 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17509 aarch64_validate_march, aarch64_override_options,
17510 aarch64_option_print, aarch64_handle_attr_isa_flags,
17511 aarch64_declare_function_name, aarch64_start_file): Make flag
17512 variables uint64_t.
17513 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17514 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17515 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17516 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17517 * config/aarch64/driver-aarch64.c
17518 (struct aarch64_arch_extension, struct aarch64_core_data,
17519 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17520 flag variables uint64_t.
17521 * doc/invoke.texi: Add documentation for new arguments.
17522
17523 2019-05-22 Richard Biener <rguenther@suse.de>
17524
17525 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17526 rewrite ...
17527 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17528
17529 2019-05-22 Martin Liska <mliska@suse.cz>
17530
17531 PR lto/90500
17532 * doc/extend.texi: Document the change.
17533
17534 2019-05-22 Richard Biener <rguenther@suse.de>
17535
17536 PR tree-optimization/90450
17537 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17538 (mem_ref_hasher::equal): Check it.
17539 (mem_ref_alloc): Initialize it.
17540 (gather_mem_refs_stmt): Set it.
17541
17542 2019-05-22 Richard Biener <rguenther@suse.de>
17543
17544 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17545 Add ABS_EXPR.
17546 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17547 as ABSU_EXPR.
17548
17549 2019-05-22 Alan Modra <amodra@gmail.com>
17550
17551 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17552 (ASM_CPU_SPEC): Conditionally add -many.
17553 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17554 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17555 (rs6000_file_start): ..extracted from here, and modified to
17556 test all ISA bits.
17557 (rs6000_output_function_prologue): Emit .machine as necessary.
17558
17559 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17560
17561 PR middle-end/90553
17562 * ira-lives.c (process_bb_node_lives): Consider defs
17563 for a call insn to be die before the call, not after.
17564
17565 * function.c (assign_parm_setup_block): Raise alignment of
17566 stacked parameter only for STRICT_ALIGNMENT targets.
17567
17568 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17569
17570 * config/rs6000/constraints.md (define_register_constraint "wz"):
17571 Delete.
17572 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17573 RS6000_CONSTRAINT_wz.
17574 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17575 (rs6000_init_hard_regno_mode_ok): Adjust.
17576 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17577 * doc/md.texi (Machine Constraints): Adjust.
17578
17579 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17580
17581 * config/rs6000/constraints.md (define_register_constraint "wl"):
17582 Delete.
17583 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17584 RS6000_CONSTRAINT_wl.
17585 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17586 (rs6000_init_hard_regno_mode_ok): Adjust.
17587 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17588 * doc/md.texi (Machine Constraints): Adjust.
17589
17590 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17591
17592 * config/rs6000/constraints.md (define_register_constraint "wm"):
17593 Delete.
17594 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17595 RS6000_CONSTRAINT_wm.
17596 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17597 (rs6000_init_hard_regno_mode_ok): Adjust.
17598 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17599 * doc/md.texi (Machine Constraints): Adjust.
17600
17601 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17602
17603 * config/rs6000/constraints.md (define_register_constraint "wk"):
17604 Delete.
17605 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17606 RS6000_CONSTRAINT_wk.
17607 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17608 (rs6000_init_hard_regno_mode_ok): Adjust.
17609 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17610 * doc/md.texi (Machine Constraints): Adjust.
17611
17612 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17613
17614 * config/rs6000/constraints.md (define_register_constraint "wj"):
17615 Delete.
17616 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17617 RS6000_CONSTRAINT_wj.
17618 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17619 (rs6000_init_hard_regno_mode_ok): Adjust.
17620 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17621 (VS_64dm): Delete.
17622 * config/rs6000/vsx.md: Ditto.
17623 * doc/md.texi (Machine Constraints): Adjust.
17624
17625 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17626
17627 * config/rs6000/constraints.md (define_register_constraint "wh"):
17628 Delete.
17629 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17630 RS6000_CONSTRAINT_wh.
17631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17632 (rs6000_init_hard_regno_mode_ok): Adjust.
17633 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17634 * doc/md.texi (Machine Constraints): Adjust.
17635
17636 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17637
17638 PR target/90547
17639 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17640 Avoid calling gen_lowpart with CONST operand.
17641
17642 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17643
17644 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17645 field template_last_to_copy.
17646 (ssa_create_duplicates): Set it, and use it. Attempt to
17647 preserve more debug stmts.
17648
17649 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17650
17651 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17652 (signbit<mode>2): New expander
17653
17654 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17655
17656 PR bootstrap/87338
17657 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17658 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17659
17660 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17661
17662 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17663 %ebx and %ecx bafore calling cpuid with leaf 1 or
17664 non-constant leaf argument.
17665
17666 2019-05-21 Alan Modra <amodra@gmail.com>
17667
17668 PR target/90545
17669 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17670 power9 direct move cost.
17671
17672 2019-05-21 Richard Biener <rguenther@suse.de>
17673
17674 PR middle-end/90510
17675 * fold-const.c (fold_read_from_vector): New function.
17676 * fold-const.h (fold_read_from_vector): Declare.
17677 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17678 single-element insert permutations. Canonicalize selector
17679 further and fix issue with last commit.
17680
17681 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17682
17683 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17684 parameter with default value false to declaration.
17685 (split_edges_for_insertion): New inline function. Wrapper for
17686 split_critical_edges with for_edge_insertion_p = true.
17687 * tree-cfg.c (split_critical_edges): Don't split non-critical
17688 edges if for_edge_insertion_p is false. Fix whitespace.
17689 * tree-ssa-pre.c (pass_pre::execute): Call
17690 split_edges_for_insertion instead of split_critical_edges.
17691 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17692 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17693 (pass_data_sink_code): Update function name in the comment.
17694
17695 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17696
17697 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17698 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17699 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17700 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17701 positives.
17702
17703 2019-05-21 Martin Liska <mliska@suse.cz>
17704
17705 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17706 an extra newline.
17707 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17708 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17709 vec_lvsr.
17710 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17711 Quote a C type.
17712 (rs6000_function_arg): Likewise.
17713 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17714 (rs6000_expand_ternop_builtin): Use interval syntax.
17715 (get_element_number): Likewise.
17716 (altivec_expand_builtin): Likewise.
17717 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17718
17719 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17720
17721 PR c++/59813
17722 PR target/90418
17723 * function.h (struct function): Add calls_eh_return member.
17724 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17725 gimplifying __builtin_eh_return call.
17726 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17727 to cfun.
17728 (expand_call_inline): Or in src_cfun->calls_eh_return into
17729 dst_cfun->calls_eh_return.
17730 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17731 cfun->calls_eh_return.
17732 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17733 * lto-streamer-out.c (output_struct_function_base): Write
17734 calls_eh_return.
17735
17736 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17737
17738 PR rtl-optimization/43147
17739 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17740 IX86_BUILTIN_SHUFPD.
17741
17742 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17743
17744 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17745 (refs_may_alias_p_1): ... here; update stats.
17746 (refs_may_alias_p): Do not update stats here.
17747
17748 2019-05-20 Richard Biener <rguenther@suse.de>
17749
17750 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17751 doesn't produce pointers.
17752 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17753 the first operand points to.
17754
17755 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17756
17757 * tree-ssa-alias.c (compare_sizes): New function.
17758 (sompare_type_sizes): New function
17759 (aliasing_component_refs_p): Use it.
17760 (indirect_ref_may_alias_decl_p): Likewise.
17761
17762 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17763
17764 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17765
17766 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17767
17768 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17769 (LIBLSAN_EARLY_SPEC): Likewise.
17770 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17771
17772 2019-05-20 Martin Liska <mliska@suse.cz>
17773
17774 * config/i386/i386.c (ix86_libc_has_fast_function):
17775 Add ATTRIBUTE_UNUSED for the argument.
17776
17777 2019-05-20 Richard Biener <rguenther@suse.de>
17778
17779 * gimple-match-head.c: Include vec-perm-indices.h.
17780 * generic-match-head.c: Likewise.
17781 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17782 is included.
17783 * fold-const.c (fold_vec_perm): Export.
17784 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17785 (match.pd): ...here.
17786
17787 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17788
17789 * cfgloop.h (struct loop): Add simdlen member.
17790 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17791 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17792 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17793 as new argument to autovectorize_vector_sizes target hook. If
17794 loop->simdlen, pick up vector size where the vectorization factor
17795 is equal to loop->simd, and if there is none, fall back to the first
17796 successful one.
17797 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17798 caller.
17799 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17800 * omp-general.c (omp_max_vf): Likewise.
17801 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17802 * tree-vect-slp.c (vect_slp_bb): Likewise.
17803 * target.def (autovectorize_vector_sizes): Add ALL argument and
17804 document it.
17805 * doc/tm.texi: Adjust documentation.
17806 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17807 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17808 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17809 bool argument.
17810 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17811 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17812 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17813 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17814 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17815 preferred vector size is not 512-bit or 256-bit, just put those
17816 unpreferred ones last.
17817
17818 2019-05-20 Martin Liska <mliska@suse.cz>
17819
17820 * targhooks.c (default_libc_has_fast_function): New function.
17821 * targhooks.h (default_libc_has_fast_function): Likewise.
17822
17823 2019-05-20 Martin Liska <mliska@suse.cz>
17824
17825 PR middle-end/90263
17826 * builtins.c (expand_builtin_memory_copy_args): When having a
17827 target with fast mempcpy implementation do now use memcpy.
17828 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17829 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17830 * doc/tm.texi: Likewise.
17831 * doc/tm.texi.in: Likewise.
17832 * target.def:
17833 * expr.c (emit_block_move_hints): Add 2 new arguments.
17834 * expr.h (emit_block_move_hints): Bail out when libcall
17835 to memcpy would be used.
17836
17837 2019-05-20 Martin Liska <mliska@suse.cz>
17838
17839 * profile-count.c: Add vertical spacing in order
17840 to separate functions.
17841 * profile-count.h: Likewise.
17842
17843 2019-05-20 Martin Liska <mliska@suse.cz>
17844
17845 * profile-count.h: Do not use full qualified
17846 names if possible.
17847 * profile-count.c (profile_count::to_frequency): Likewise.
17848
17849 2019-05-20 Martin Liska <mliska@suse.cz>
17850
17851 * profile-count.h (enum profile_quality): Use capital letters
17852 for enum value names. Use the adjusted names.
17853 * profile-count.c: Use the adjusted names.
17854
17855 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17856
17857 * config/rs6000/constraints.md (define_register_constraint "wH"):
17858 Delete.
17859 (define_register_constraint "wI"): Delete.
17860 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17861 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17862 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17863 (rs6000_init_hard_regno_mode_ok): Adjust.
17864 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17865 resp. "d", or with "wa" as appropriate, all with "p8v".
17866 * config/rs6000/vsx.md: Ditto.
17867 * doc/md.texi (Machine Constraints): Adjust.
17868
17869 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17870
17871 * config/rs6000/constraints.md (define_register_constraint "wy"):
17872 Delete.
17873 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17874 RS6000_CONSTRAINT_wy.
17875 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17876 (rs6000_init_hard_regno_mode_ok): Adjust.
17877 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17878 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17879 (define_mode_attr Fisa): New.
17880 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17881 * doc/md.texi (Machine Constraints): Adjust.
17882
17883 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17884
17885 * config/rs6000/constraints.md (define_register_constraint "wu"):
17886 Delete.
17887 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17888 RS6000_CONSTRAINT_wu.
17889 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17890 (rs6000_init_hard_regno_mode_ok): Adjust.
17891 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17892 both with "p8v".
17893 (define_mode_attr Fa): Delete.
17894 * config/rs6000/vsx.md: Ditto.
17895 * doc/md.texi (Machine Constraints): Adjust.
17896
17897 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17898
17899 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17900 Delete.
17901 (define_register_constraint "wK"): Delete.
17902 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17903 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17904 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17905 (rs6000_init_hard_regno_mode_ok): Adjust.
17906 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17907 Replace "wK" constraint by "wH" with "p9v".
17908 * config/rs6000/vsx.md: Ditto.
17909 * doc/md.texi (Machine Constraints): Adjust.
17910
17911 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17912
17913 * config/rs6000/constraints.md (define_register_constraint "wb"):
17914 Delete.
17915 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17916 RS6000_CONSTRAINT_wb.
17917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17918 (rs6000_init_hard_regno_mode_ok): Adjust.
17919 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17920 * config/rs6000/vsx.md: Ditto.
17921 * doc/md.texi (Machine Constraints): Adjust.
17922
17923 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17924
17925 * config/rs6000/constraints.md (define_register_constraint "wo"):
17926 Delete.
17927 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17928 RS6000_CONSTRAINT_wo.
17929 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17930 (rs6000_init_hard_regno_mode_ok): Adjust.
17931 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17932 * config/rs6000/altivec.md: Ditto.
17933 * doc/md.texi (Machine Constraints): Adjust.
17934
17935 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17936
17937 * config/darwin-c.c (darwin_register_objc_includes): Do not
17938 prepend the sysroot when building gnu-runtime header search
17939 paths.
17940
17941 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17942
17943 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17944 instead of direct output of the asm.
17945
17946 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17947
17948 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17949 argument to be type bool (was int before).
17950 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17951 at first use. Use type bool for some variables. Fix a theoretical
17952 eh_return bug for svr4.
17953
17954 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17955
17956 * config/rs6000/rs6000.md (isa): New attribute.
17957 (enabled): New attribute.
17958
17959 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17960
17961 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17962 assemble_start_function and assemble_end_function.
17963
17964 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17965
17966 PR middle-end/89433
17967 * omp-general.c (oacc_verify_routine_clauses): Change formal
17968 parameters. Add checking if already marked with an OpenACC
17969 'routine' directive. Adjust all users.
17970
17971 PR middle-end/89433
17972 * omp-general.c (oacc_build_routine_dims): Move some of its
17973 processing into...
17974 (oacc_verify_routine_clauses): ... this new function.
17975 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17976
17977 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17978
17979 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17980 formating of picbase labels to match other ports.
17981
17982 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17983
17984 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17985 in the generated code.
17986
17987 2019-05-16 Martin Sebor <msebor@redhat.com>
17988
17989 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17990 identifiers, keywords, operators, and types in diagnostics. Correct
17991 quoting, spelling, and sentence capitalization issues.
17992 (expand_builtin_atomic_is_lock_free): Same.
17993 (fold_builtin_next_arg): Same.
17994 * cfgexpand.c (expand_one_var): Same.
17995 (tree_conflicts_with_clobbers_p): Same.
17996 (expand_asm_stmt): Same.
17997 (verify_loop_structure): Same.
17998 * cgraphunit.c (process_function_and_variable_attributes): Same.
17999 * collect-utils.c (collect_execute): Same.
18000 * collect2.c (maybe_run_lto_and_relink): Same.
18001 (is_lto_object_file): Same.
18002 (scan_prog_file): Same.
18003 * convert.c (convert_to_real_1): Same.
18004 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18005 * except.c (verify_eh_tree): Same.
18006 * gcc.c (execute): Same.
18007 (eval_spec_function): Same.
18008 (run_attempt): Same.
18009 (driver::set_up_specs): Same.
18010 (compare_debug_auxbase_opt_spec_function): Same.
18011 * gcov-tool.c (unlink_gcda_file): Same.
18012 (do_merge): Same.
18013 (do_rewrite): Same.
18014 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18015 * gimplify.c (gimplify_asm_expr): Same.
18016 (gimplify_adjust_omp_clauses): Same.
18017 * hsa-gen.c (gen_hsa_addr_insns): Same.
18018 (gen_hsa_insns_for_load): Same.
18019 (gen_hsa_cmp_insn_from_gimple): Same.
18020 (gen_hsa_insns_for_operation_assignment): Same.
18021 (gen_get_level): Same.
18022 (gen_hsa_alloca): Same.
18023 (omp_simple_builtin::generate): Same.
18024 (gen_hsa_atomic_for_builtin): Same.
18025 (gen_hsa_insns_for_call): Same.
18026 * input.c (dump_location_info): Same.
18027 * ipa-devirt.c (compare_virtual_tables): Same.
18028 * ira.c (ira_setup_eliminable_regset): Same.
18029 * lra-assigns.c (lra_assign): Same.
18030 * lra-constraints.c (lra_constraints): Same.
18031 * lto-streamer-in.c (lto_input_mode_table): Same.
18032 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18033 (merge_and_complain): Same.
18034 (compile_offload_image): Same.
18035 (compile_images_for_offload_targets): Same.
18036 (debug_objcopy): Same.
18037 (run_gcc): Same.
18038 (main): Same.
18039 * opts.c (print_specific_help): Same.
18040 (parse_no_sanitize_attribute): Same.
18041 (print_help): Same.
18042 (handle_param): Same.
18043 * plugin.c (add_new_plugin): Same.
18044 (parse_plugin_arg_opt): Same.
18045 (try_init_one_plugin): Same.
18046 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18047 operators, and types in diagnostics. Correct quoting and spelling
18048 issues.
18049 * read-rtl-function.c (parse_edge_flag_token): Same.
18050 (function_reader::parse_enum_value): Same.
18051 * reg-stack.c (check_asm_stack_operands): Same.
18052 * regcprop.c (validate_value_data): Same.
18053 * sched-rgn.c (make_pass_sched_fusion): Same.
18054 * stmt.c (check_unique_operand_names): Same.
18055 * targhooks.c (default_target_option_pragma_parse): Same.
18056 * tlink.c (recompile_files): Same.
18057 * toplev.c (process_options): Same.
18058 (do_compile): Same.
18059 * trans-mem.c (diagnose_tm_1): Same.
18060 (ipa_tm_scan_irr_block): Same.
18061 (ipa_tm_diagnose_transaction): Same.
18062 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18063 format a tree code name in a diagnostic.
18064 (verify_types_in_gimple_min_lval): Same.
18065 (verify_types_in_gimple_reference): Same.
18066 (verify_gimple_call): Same.
18067 (verify_gimple_assign_unary): Same.
18068 (verify_gimple_assign_binary): Same.
18069 (verify_gimple_assign_ternary): Same.
18070 (verify_gimple_assign_single): Same.
18071 (verify_gimple_switch): Same.
18072 (verify_gimple_label): Same.
18073 (verify_gimple_phi): Same.
18074 (verify_gimple_in_seq): Same.
18075 (verify_eh_throw_stmt_node): Same.
18076 (collect_subblocks): Same.
18077 (gimple_verify_flow_info): Same.
18078 (do_warn_unused_result): Same.
18079 * tree-inline.c (expand_call_inline): Same.
18080 * tree-into-ssa.c (update_ssa): Same.
18081 * tree.c (tree_int_cst_elt_check_failed): Same.
18082 (tree_vec_elt_check_failed): Same.
18083 (omp_clause_operand_check_failed): Same.
18084 (verify_type_variant): Same.
18085 (verify_type): Same.
18086 * value-prof.c (verify_histograms): Same.
18087 * varasm.c (assemble_start_function): Same.
18088
18089 2019-05-16 Martin Sebor <msebor@redhat.com>
18090
18091 * config/i386/i386-expand.c (get_element_number): Quote keywords
18092 and other internal names in diagnostics. Adjust other diagnostic
18093 formatting issues noted by -Wformat-diag.
18094 * config/i386/i386-features.c
18095 (ix86_mangle_function_version_assembler_name): Same.
18096 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18097 * config/i386/i386.c (ix86_function_type_abi): Same.
18098 (ix86_function_ms_hook_prologue): Same.
18099 (classify_argument): Same.
18100 (ix86_expand_prologue): Same.
18101 (ix86_md_asm_adjust): Same.
18102 (ix86_memmodel_check): Same.
18103
18104 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18105
18106 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18107 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18108 and fpxx modes.
18109
18110 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18111
18112 PR target/90497
18113 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18114 intrinsics without SSE/SSE2/SSSE3.
18115 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18116 check.
18117 (*mmx_uavgv8qi3): Likewise.
18118
18119 2019-05-17 Richard Biener <rguenther@suse.de>
18120
18121 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18122 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18123
18124 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18125
18126 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18127 vec_sldw insn pattern.
18128
18129 2019-05-17 Richard Biener <rguenther@suse.de>
18130
18131 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18132
18133 2019-05-17 Martin Liska <mliska@suse.cz>
18134
18135 PR driver/90496
18136 * toplev.c (output_stack_usage): With LTO and sanitizer it
18137 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18138 has no file location.
18139
18140 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18141
18142 PR c++/90484
18143 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18144 sz0 is equal to sz1, instead return false in that case.
18145
18146 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18147 has non-constant expression, force sctx.lane and use two
18148 argument IFN_GOMP_SIMD_LANE instead of single argument.
18149 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18150 two argument IFN_GOMP_SIMD_LANE without lhs.
18151 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18152 member.
18153 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18154 Define.
18155 (LOOP_REQUIRES_VERSIONING): Or in
18156 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18157 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18158 simd_if_cond.
18159 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18160 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18161 from simd if clause if needed.
18162
18163 2019-05-16 Richard Biener <rguenther@suse.de>
18164
18165 * tree-affine.c (expr_to_aff_combination): New function split
18166 out from...
18167 (tree_to_aff_combination): ... here.
18168 (aff_combination_expand): Avoid building a GENERIC tree.
18169
18170 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18171
18172 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18173 assemble_start_function and assemble_end_function calls.
18174 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18175 assemble_start_function and assemble_end_function.
18176 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18177 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18178 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18179 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18180 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18181 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18182 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18183 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18184 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18185 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18186 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18187 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18188 Likewise.
18189 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18190 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18191 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18192 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18193 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18194 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18195 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18196 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18197 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18198 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18199 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18200 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18201 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18202 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18203 Likewise.
18204 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18205 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18206 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18207
18208 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18209
18210 * tree-ssa-alias.c (alias_stats): Add
18211 aliasing_component_refs_p_may_alias and
18212 aliasing_component_refs_p_no_alias.
18213 (dump_alias_stats): Print aliasing_component_refs_p stats.
18214 (aliasing_component_refs_p): Update stats.
18215
18216 2019-05-16 Martin Liska <mliska@suse.cz>
18217
18218 PR lto/90500
18219 * multiple_target.c (expand_target_clones): Do not allow
18220 target_clones being used with a symbol that is an alias.
18221
18222 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18223
18224 PR tree-optimization/90394
18225 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18226 positives rather than ICE for cases where (code2 == NE_EXPR
18227 && code1 == BIT_AND_EXPR).
18228
18229 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18230
18231 PR fortran/90329
18232 * tree-core.h (struct tree_decl_common): Document
18233 decl_nonshareable_flag for PARM_DECLs.
18234 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18235 * calls.c (expand_call): Don't try tail call if caller
18236 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18237 passed on the stack and callee needs to pass any arguments on the
18238 stack.
18239 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18240 else if instead of series of mutually exclusive ifs. Handle
18241 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18242 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18243
18244 * lto-streamer.h (LTO_major_version): Bump to 9.
18245
18246 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18247
18248 PR tree-optimization/90106
18249 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18250 new parameter as new internal function call, also move it to new
18251 basic block.
18252 (use_internal_fn): Pass internal function call to
18253 shrink_wrap_one_built_in_call_with_conds.
18254
18255 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18256
18257 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18258 max_vf to 1.
18259 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18260 safelen_int and set loop->dont_vectorize.
18261
18262 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18263
18264 PR target/89021
18265 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18266 SSE/SSE2/SSSE3.
18267 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18268 Likewise.
18269 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18270 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18271 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18272 is defined.
18273
18274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18275
18276 PR target/89021
18277 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18278 define_insn_and_split to support SSE emulation.
18279 (*vec_extractv2sf_0): Likewise.
18280 (*vec_extractv2sf_1): Likewise.
18281 (*vec_extractv2si_0): Likewise.
18282 (*vec_extractv2si_1): Likewise.
18283 (*vec_extractv2si_zext_mem): Likewise.
18284 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18285 (vec_extractv2sf_1 splitter): Likewise.
18286 (vec_extractv2sfsf): Likewise.
18287 (vec_setv2si): Likewise.
18288 (vec_extractv2si_1 splitter): Likewise.
18289 (vec_extractv2sisi): Likewise.
18290 (vec_setv4hi): Likewise.
18291 (vec_extractv4hihi): Likewise.
18292 (vec_setv8qi): Likewise.
18293 (vec_extractv8qiqi): Likewise.
18294 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18295 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18296 (vec_extractv2sisi): Likewise.
18297 (vec_extractv4hihi): Likewise.
18298 (vec_extractv8qiqi): Likewise.
18299 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18300 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18301 (vec_initv2sisi): Likewise.
18302 (vec_initv4hihi): Likewise.
18303 (vec_initv8qiqi): Likewise.
18304 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18305 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18306 (vec_setv4hi): Likewise.
18307 (vec_setv8qi): Likewise.
18308
18309 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18310
18311 PR target/89021
18312 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18313 TARGET_MMX_WITH_SSE.
18314 (MMXMODE:*mov<mode>_internal): Likewise.
18315 (MMXMODE:movmisalign<mode>): Likewise.
18316
18317 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18318
18319 PR target/89021
18320 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18321 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18322 (sse2_cvtpd2pi): Ditto.
18323 (sse2_cvttpd2pi): Ditto.
18324 (*vec_concatv2sf_sse4_1): Ditto.
18325 (*vec_concatv2sf_sse): Ditto.
18326 (*vec_concatv2si_sse4_1): Ditto.
18327 (*vec_concatv2si): Ditto.
18328 (*vec_concatv4si_0): Ditto.
18329 (*vec_concatv2di_0): Ditto.
18330
18331 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18332
18333 PR target/89021
18334 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18335
18336 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18337
18338 PR target/89021
18339 * config/i386/sse.md (ssse3_palignrdi): Changed to
18340 define_insn_and_split to support SSE emulation.
18341
18342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18343
18344 PR target/89021
18345 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18346
18347 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18348
18349 PR target/89021
18350 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18351 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18352 SSE emulation.
18353
18354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18355
18356 PR target/89021
18357 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18358 or TARGET_MMX_WITH_SSE.
18359 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18360
18361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18362
18363 PR target/89021
18364 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18365
18366 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18367
18368 PR target/89021
18369 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18370 Changed to define_insn_and_split to support SSE emulation.
18371
18372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18373
18374 PR target/89021
18375 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18376 Changed to define_insn_and_split to support SSE emulation.
18377
18378 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18379
18380 PR target/89021
18381 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18382 (*mmx_<emms>): This.
18383 (mmx_<emms>): New expander.
18384
18385 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18386
18387 PR target/89021
18388 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18389 support.
18390 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18391
18392 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18393
18394 PR target/89021
18395 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18396
18397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18398
18399 PR target/89021
18400 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18401
18402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18403
18404 PR target/89021
18405 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18406 TARGET_MMX_WITH_SSE.
18407 (*mmx_uavgv4hi3): Add SSE emulation.
18408
18409 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18410
18411 PR target/89021
18412 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18413 and TARGET_MMX_WITH_SSE.
18414 (*mmx_uavgv8qi3): Add SSE emulation.
18415
18416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18417
18418 PR target/89021
18419 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18420 maskmovdqu for __MMX_WITH_SSE__.
18421
18422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18423
18424 PR target/89021
18425 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18426 TARGET_MMX and TARGET_MMX_WITH_SSE.
18427 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18428
18429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18430
18431 PR target/89021
18432 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18433 define_insn_and_split to support SSE emulation.
18434
18435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18436
18437 PR target/89021
18438 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18439 and TARGET_MMX_WITH_SSE.
18440 (mmx_<code>v8qi3): Likewise.
18441 (smaxmin:<code>v4hi3): New.
18442 (umaxmin:<code>v8qi3): Likewise.
18443 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18444 (umaxmin:*mmx_<code>v8qi3): Likewise.
18445
18446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18447
18448 PR target/89021
18449 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18450 TARGET_MMX_WITH_SSE.
18451 (*mmx_pinsrw): Add SSE emulation.
18452
18453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18454
18455 PR target/89021
18456 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18457
18458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18459
18460 PR target/89021
18461 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18462 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18463 SSE emulation.
18464
18465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18466
18467 PR target/89021
18468 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18469 (sse_cvttps2pi): Likewise.
18470
18471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18472
18473 PR target/89021
18474 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18475 TARGET_MMX_WITH_SSE.
18476 (mmx_pshufw_1): Add SSE emulation.
18477 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18478 TARGET_MMX_WITH_SSE to support SSE emulation.
18479
18480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18481
18482 PR target/89021
18483 * config/i386/constraints.md (Yw): New constraint.
18484 * config/i386/mmx.md (*vec_dupv2si): Changed to
18485 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18486 support SSE emulation.
18487
18488 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18489
18490 PR target/89021
18491 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18492 TARGET_MMX_WITH_SSE.
18493 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18494 support.
18495 (mmx_gt<mode>3): Likewise.
18496
18497 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18498
18499 PR target/89021
18500 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18501 TARGET_MMX_WITH_SSE. Add SSE support.
18502
18503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18504
18505 PR target/89021
18506 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18507 TARGET_MMX_WITH_SSE.
18508 (any_logic:<code><mode>3): New.
18509 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18510 Add SSE support.
18511
18512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18513
18514 PR target/89021
18515 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18516 TARGET_MMX_WITH_SSE. Add SSE emulation.
18517 (mmx_<shift_insn><mode>3): Likewise.
18518 (ashr<mode>3): New.
18519 (<shift_insn><mode>3): Likewise.
18520
18521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18522
18523 PR target/89021
18524 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18525 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18526
18527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18528
18529 PR target/89021
18530 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18531 TARGET_MMX_WITH_SSE.
18532 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18533 SSE support.
18534
18535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18536
18537 PR target/89021
18538 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18539 TARGET_MMX_WITH_SSE.
18540 (mulv4hi3): New.
18541 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18542 support.
18543
18544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18545
18546 PR target/89021
18547 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18548 (plusminus:mmx_<plusminus_insn><mode>3): Check
18549 TARGET_MMX_WITH_SSE.
18550 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18551 (<plusminus_insn><mode>3): New.
18552 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18553 (*mmx_<plusminus_insn><mode>3): Likewise.
18554
18555 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18556
18557 PR target/89021
18558 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18559 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18560 prototype.
18561 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18562 define_insn_and_split to support SSE emulation.
18563 (mmx_punpcklbw): Likewise.
18564 (mmx_punpckhwd): Likewise.
18565 (mmx_punpcklwd): Likewise.
18566 (mmx_punpckhdq): Likewise.
18567 (mmx_punpckldq): Likewise.
18568
18569 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18570 Uros Bizjak <ubizjak@gmail.com>
18571
18572 PR target/89021
18573 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18574 New function.
18575 (ix86_split_mmx_pack): Likewise.
18576 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18577 New prototype.
18578 (ix86_split_mmx_pack): Likewise.
18579 * config/i386/i386.md (mmx_isa): New.
18580 (enabled): Also check mmx_isa.
18581 * config/i386/mmx.md (any_s_truncate): New code iterator.
18582 (s_trunsuffix): New code attr.
18583 (mmx_packsswb): Removed.
18584 (mmx_packssdw): Likewise.
18585 (mmx_packuswb): Likewise.
18586 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18587 MMX packsswb/packuswb with SSE2.
18588 (mmx_packssdw): Likewise.
18589 * config/i386/predicates.md (register_mmxmem_operand): New.
18590
18591 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18592
18593 PR target/89021
18594 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18595 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18596 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18597 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18598 (ix86_vector_mode_supported_p): Likewise.
18599 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18600
18601 2019-05-15 Martin Liska <mliska@suse.cz>
18602
18603 PR middle-end/90478
18604 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18605 Check for overflow.
18606
18607 2019-05-15 Richard Biener <rguenther@suse.de>
18608
18609 * tree-into-ssa.c (pass_build_ssa::execute): Run
18610 update_address_taken before going into SSA.
18611
18612 2019-05-15 Richard Biener <rguenther@suse.de>
18613
18614 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18615 as __BIT_FIELD_REF with type with -gimple.
18616
18617 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18618
18619 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18620 semantically equivalent branches (left over after prior refactorings).
18621
18622 2019-05-15 Richard Biener <rguenther@suse.de>
18623
18624 PR tree-optimization/88828
18625 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18626 bogus check.
18627
18628 2019-05-14 Richard Biener <rguenther@suse.de>
18629
18630 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18631 as __VIEW_CONVERT with -gimple.
18632
18633 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18634
18635 PR target/82920
18636 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18637 Darwin.
18638
18639 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18640
18641 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18642 define_split to become a define_insn_and_split.
18643
18644 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18645
18646 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18647 arguments.
18648 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18649 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18650 (sibcall_epilogue): Adjust.
18651 (epilogue): Adjust.
18652
18653 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18654
18655 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18656 to unsupported ones.
18657 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18658 * config.host: Likewise.
18659 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18660 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18661 __svr4__]: Remove "brand" fallback.
18662 [!KSTAT_DATA_STRING]: Remove.
18663 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18664 to *-*-solaris2*.
18665 (comdat_group): Likewise.
18666 (set_have_as_tls): Likewise.
18667 (gcc_cv_target_dl_iterate_phdr): Likewise.
18668 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18669 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18670 * configure: Regenerate.
18671 * doc/install.texi: Simplify Solaris target triplets.
18672 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18673 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18674 Remove Solaris 10 references.
18675 Remove obsolete Solaris bug reference.
18676 (Specific, sparc-sun-solaris2.10): Remove.
18677
18678 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18679
18680 * config/i386/i386.md (any_div): New code iterator.
18681 (paired_mod): New code attribute.
18682 (sgnprefix): Handle DIV and UDIV RTXes.
18683 (u): Ditto.
18684 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18685 and udivmod<mode>4 patterns using any_div code iterator.
18686 (divmod splitters): Macroize splitters using any_div code iterator.
18687 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18688 (*udivmodsi4_pow2_zext_2): Ditto.
18689 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18690 and *udivmod<mode>4_noext patterns using any_div code iterator.
18691 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18692 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18693 patterns using any_div code iterator.
18694 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18695 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18696 patterns using any_div code iterator.
18697 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18698 udivmodhiqi3 patterns using any_extend code iterator.
18699
18700 2019-05-14 Richard Biener <rguenther@suse.de>
18701 H.J. Lu <hongjiu.lu@intel.com>
18702
18703 PR tree-optimization/88828
18704 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18705 permuting in a single non-constant element not extracted
18706 from a vector.
18707
18708 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18709
18710 * internal-fn.def (SIGNBIT): New.
18711 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18712 defined.
18713 (signbitv4sf2): Likewise.
18714
18715 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18716
18717 PR target/90357
18718 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18719 next insn when the SRC reg is dead.
18720
18721 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18722
18723 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18724 (alloc_cand_and_find_basis): Ditto.
18725 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18726 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18727 (create_add_imm_cand, slsr_process_cast): Ditto.
18728 (slsr_process_copy, replace_mult_candidate): Ditto.
18729 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18730 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18731 (pass_strength_reduction::execute): Init the first NULL element.
18732
18733 2019-05-13 Nathan Sidwell <nathan@acm.org>
18734
18735 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18736 (run_attempt): Reformat line break.
18737
18738 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18739
18740 PR target/90418
18741 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18742 data registers in sibcall epilogues.
18743 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18744
18745 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18746
18747 PR target/89221
18748 * configure.ac (--enable-frame-pointer):
18749 Disable by default for cygwin and mingw.
18750 * configure: Regenerate.
18751
18752 2019-05-13 Nathan Sidwell <nathan@acm.org>
18753
18754 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18755 piece of code.
18756 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18757 (gen_member_die): Move abstract origin check earlier. Only VARs
18758 can be static_inline_p. Simplify splicing control flow.
18759
18760 2019-05-13 Richard Biener <rguenther@suse.de>
18761
18762 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18763 VIEW_CONVERT_EXPR.
18764 (vect_build_slp_tree_1): Likewise.
18765
18766 2019-05-13 Richard Biener <rguenther@suse.de>
18767
18768 PR tree-optimization/90402
18769 * tree-if-conv.c (tree_if_conversion): Value number only
18770 the loop body by making the latch an exit of the region
18771 as well.
18772 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18773 processing PHIs.
18774 (do_rpo_vn): Deal with multiple edges into the entry block
18775 that are not backedges inside the region by skipping PHIs
18776 of the entry block.
18777
18778 2019-05-13 Richard Biener <rguenther@suse.de>
18779
18780 PR tree-optimization/90316
18781 * tree-ssa-pre.c (insert_aux): Fold into ...
18782 (insert): ... this function. Use a RPO walk to reduce the
18783 number of required iterations.
18784
18785 2019-05-13 Martin Liska <mliska@suse.cz>
18786
18787 PR tree-optimization/90416
18788 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18789 string instead of passing the second part as va_arg argument.
18790
18791 2019-05-13 Martin Liska <mliska@suse.cz>
18792
18793 PR gcov-profile/90380
18794 * gcov.c (handle_cycle): Do not support zero cycle count,
18795 it should not be possible.
18796 (path_contains_zero_cycle_arc): New function.
18797 (circuit): Ignore zero cycle arc counts.
18798
18799 2019-05-13 Martin Liska <mliska@suse.cz>
18800
18801 PR gcov-profile/90380
18802 * gcov.c (enum loop_type): Remove the enum and
18803 the operator.
18804 (handle_cycle): Assert that we should not reach
18805 a negative count.
18806 (circuit): Use loop_found instead of a tri-state loop_type.
18807 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18808 happen.
18809
18810 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18811
18812 PR target/82920
18813 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18814 (ix86_output_indirect_branch_via_reg): Use output mechanism
18815 accounting for __USER_LABEL_PREFIX__.
18816 (ix86_output_indirect_branch_via_push): Likewise.
18817 (ix86_output_function_return): Likewise.
18818 (ix86_output_indirect_function_return): Likewise.
18819
18820 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18821
18822 * doc/md.texi: Document use of code attributes in rtx patterns.
18823 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18824 * read-rtl.c (find_code): Split out search loops into...
18825 (maybe_find_code): ...this new function.
18826 (check_code_iterator): Make the error message more informative.
18827 (check_code_attribute): New function.
18828 (rtx_reader::rtx_alloc_for_name): Likewise.
18829 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18830 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18831 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18832 <max_opp> directly as an rtx code instead of via a match_operator.
18833 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18834 (<su>abd<mode>_3): Update accordingly.
18835
18836 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18837
18838 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18839 is given, print the state of the EH "save world" computation for
18840 Darwin.
18841
18842 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18843
18844 PR c++/59813
18845 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18846 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18847
18848 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18849
18850 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18851 Use pinsrd for TARGET_SSE4_1.
18852 * config/i386/sse.md (movdi_to_sse): Ditto.
18853
18854 2019-05-10 Richard Biener <rguenther@suse.de>
18855
18856 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18857 (do_rpo_vn): Initialize next_value_id.
18858
18859 2019-05-10 Martin Liska <mliska@suse.cz>
18860
18861 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18862 Fix plural form.
18863
18864 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18865
18866 PR tree-optimization/90385
18867 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18868 arguments of the exit phis.
18869
18870 PR c++/90383
18871 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18872 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18873 id->do_not_fold.
18874 (copy_tree_body_r): Likewise.
18875 (copy_fn): Set id.do_not_fold to true.
18876
18877 2019-05-10 Martin Liska <mliska@suse.cz>
18878
18879 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18880 Reapply changes from r269790.
18881
18882 2019-05-10 Martin Liska <mliska@suse.cz>
18883
18884 PR middle-end/90340
18885 * doc/invoke.texi: New params.
18886 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18887 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18888 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18889 Use it.
18890 * tree-switch-conversion.h (struct jump_table_cluster):
18891 Likewise.
18892
18893 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18894
18895 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18896
18897 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18898
18899 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18900
18901 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18902
18903 PR rtl-optimization/88879
18904 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18905
18906 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18907
18908 PR target/90405
18909 * config/arm/arm.c (callee_saved_reg_p): Move before
18910 thumb_find_work_register.
18911 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18912 thumb_find_work_register. Only call df_get_live_out once.
18913 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18914 (thumb_find_work_register): Use
18915 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18916 algorithms to locate a spare call clobbered reg.
18917
18918 2019-05-09 Martin Liska <mliska@suse.cz>
18919
18920 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18921 and MAX_EXPR in GIMPLE FE format.
18922
18923 2019-05-09 Martin Liska <mliska@suse.cz>
18924
18925 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18926 * gimple-pretty-print.c (dump_gimple_bb_header):
18927 Dump BB count.
18928 (pp_cfg_jump): Dump edge probability.
18929 * profile-count.c (profile_quality_as_string): Simplify
18930 with a static array.
18931 (parse_profile_quality): New function.
18932 (profile_count::dump): Simplify with a static array.
18933 (profile_count::from_gcov_type): Add new argument.
18934 * profile-count.h (parse_profile_quality): Likewise.
18935 * predict.h (set_hot_bb_threshold): New.
18936 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18937 New param.
18938 * predict.c (get_hot_bb_threshold): Set from the new param.
18939 (set_hot_bb_threshold): New.
18940
18941 2019-05-09 Richard Biener <rguenther@suse.de>
18942
18943 PR tree-optimization/90395
18944 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18945 rewrite vector stores that throw internally.
18946
18947 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18948
18949 * cif-code.def (CHKP): Remove.
18950
18951 PR target/89221
18952 * configure.ac (--enable-frame-pointer): Disable by default for
18953 GNU systems.
18954 * configure: Regenerate.
18955
18956 2019-05-09 Alan Modra <amodra@gmail.com>
18957
18958 PR target/89271
18959 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18960 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18961 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18962 cost for general <-> vsx when direct moves are available.
18963 Cost union classes at minimal cost for any reg in the class.
18964 Correct calculation for moves between vsx, float, and altivec.
18965 Don't return a low cost for moves between special regs. Don't
18966 use hard coded register numbers.
18967 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18968 (rs6000_ira_change_pseudo_allocno_class): New function.
18969 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18970 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18971 alternatives.
18972 (movsi_internal1): Don't disparage vector alternatives.
18973 (mov<mode>_internal): Likewise, excepting alternative that
18974 will be split.
18975 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18976 we <- b alternative.
18977
18978 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18979
18980 PR c++/59813
18981 PR tree-optimization/89060
18982 * tree-ssa-live.h (live_vars_map): New typedef.
18983 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18984 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18985 (struct compute_live_vars_data): New type.
18986 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18987 live_vars_at_stmt, destroy_live_vars): New functions.
18988 * tree-tailcall.c: Include tree-ssa-live.h.
18989 (live_vars, live_vars_vec): New global variables.
18990 (find_tail_calls): Perform variable life analysis before punting.
18991 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18992 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18993 member.
18994 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18995 Perform variable life analysis to select variables that really need
18996 clobbers added.
18997 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18998 instead set id->eh_landing_pad_dest and assert it is the same.
18999 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19000
19001 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19002 Richard Earnshaw <rearnsha@arm.com>
19003
19004 PR target/88167
19005 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19006 function.
19007 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19008 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19009 register if both the epilogue and prologue can use call-clobbered
19010 regs.
19011 (thumb1_unexpanded_epilogue): Use
19012 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19013 picking temporaries for restoring high regs to match that of the
19014 prologue where possible.
19015 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19016 the list of work registers. Detect if the return address is still live
19017 at the end of the prologue and avoid using it for a work register if so.
19018 If the return address is not live, add LR to the list of pushable regs
19019 after the first pass.
19020
19021 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19022
19023 PR tree-optimization/90078
19024 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19025 (INFTY): Increase the value for infinite cost.
19026 (struct comp_cost): Promote type of members to int64_t.
19027 (infinite_cost): Don't set complexity in initialization.
19028 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19029 overflows to infinite_cost.
19030 (adjust_setup_cost): Promote type of parameter and cost computation
19031 to int64_t.
19032 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19033 int64_t.
19034 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19035 cost computation to int64_t.
19036 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19037 int64_t's format specifier in dump.
19038
19039 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19040
19041 PR tree-optimization/90240
19042 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19043 with respect to scaling factor pre-computed for each basic block.
19044 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19045 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19046 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19047 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19048 live range for array of loop's basic blocks. Cleanup aux field of
19049 loop's basic blocks.
19050
19051 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19052
19053 PR tree-optimization/90356
19054 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19055
19056 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19057
19058 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19059 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19060 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19061 (ix86_handle_option): Handle -mavx512bf16.
19062 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19063 to extra_headers.
19064 * config/i386/avx512bf16vlintrin.h: New.
19065 * config/i386/avx512bf16intrin.h: New.
19066 * config/i386/cpuid.h (bit_AVX512BF16): New.
19067 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19068 * config/i386/i386-builtin-types.def: Add new types.
19069 * config/i386/i386-builtin.def: Add new builtins.
19070 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19071 __AVX512BF16__.
19072 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19073 (ix86_option_override_internal): Handle BF16.
19074 (ix86_valid_target_attribute_inner_p): Ditto.
19075 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19076 * config/i386/i386-builtin.c (enum processor_features): Add
19077 F_AVX512BF16.
19078 (static const _isa_names_table isa_names_table): Ditto.
19079 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19080 (PTA_AVX512BF16): Ditto.
19081 * config/i386/i386.opt: Add -mavx512bf16.
19082 * config/i386/immintrin.h: Include avx512bf16intrin.h
19083 and avx512bf16vlintrin.h.
19084 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19085 avx512f_cvtneps2bf16_<mode><mask_name>,
19086 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19087 * config/i386/subst.md (mask_half): Add new subst.
19088 * doc/invoke.texi: Document -mavx512bf16.
19089
19090 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19091
19092 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19093 Delete declaration.
19094 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19095 (rs6000_debug_legitimize_reload_address): Delete.
19096 (rs6000_legitimize_reload_address_ptr): Delete.
19097 (rs6000_option_override_internal): Adjust.
19098 (mem_operand_gpr): Adjust comment.
19099 (legitimate_lo_sum_address_p): Ditto.
19100 (rs6000_legitimize_reload_address): Delete.
19101 (rs6000_debug_legitimize_reload_address): Delete.
19102 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19103
19104 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19105
19106 PR target/89765
19107 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19108 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19109 to compute vector element selector for both constant and variable
19110 operands.
19111
19112 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19113
19114 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19115 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19116 ashrdi3_cvt using SWI48 mode iterator.
19117
19118 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19119
19120 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19121 (aarch64_<su>abd<mode>_3): Likewise.
19122 (*aarch64_<su>abd<mode>_3): New define_insn.
19123 (<sur>sad<vsi2qi>): New define_expand.
19124 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19125 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19126 (build_vect_cond_expr): Likewise.
19127
19128 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19129
19130 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19131 clobbers outside of accessible_reg_set.
19132 * config/i386/i386.c (ix86_conditional_register_usage):
19133 Disable register sets by clearing corresponding bits in
19134 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19135 call_used_regs and don't clear corresponding reg_names array members.
19136
19137 2019-05-07 Richard Biener <rguenther@suse.de>
19138
19139 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19140 not specified still compute a comp_vectype for invariant
19141 compares.
19142
19143 2019-05-07 Richard Biener <rguenther@suse.de>
19144
19145 PR tree-optimization/90316
19146 * tree-ssa-pre.c (translate_vuse_through_block): When
19147 same_valid is NULL do not bother to search for a virtual
19148 PHI continuation.
19149 (phi_translate_1): When operands changed we cannot keep
19150 the same value-number so do not bother to ask whether
19151 that's possible from translate_vuse_through_block.
19152
19153 2019-05-07 Martin Liska <mliska@suse.cz>
19154
19155 * bitmap.c (bitmap_register): Come up with
19156 alloc_descriptor_max_uid and assign it for
19157 a new bitmap.
19158 (register_overhead): Use get_descriptor as
19159 a descriptor.
19160 (release_overhead): New.
19161 (bitmap_elem_to_freelist): Call it.
19162 (bitmap_elt_clear_from): Likewise.
19163 (bitmap_obstack_free): Likewise.
19164 (bitmap_move): Sensitively release memory.
19165 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19166 (bitmap_initialize): Initialize alloc_descriptor to zero.
19167 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19168
19169 2019-05-07 Richard Biener <rguenther@suse.de>
19170
19171 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19172 we build a SLP node. Remove max_size and limiting.
19173 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19174
19175 2019-05-07 Richard Biener <rguenther@suse.de>
19176
19177 PR tree-optimization/90316
19178 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19179 limit by reference.
19180 (walk_non_aliased_vuses): Take walking limit argument.
19181 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19182 walking if it is reached instead of just counting.
19183 (get_continuation_for_phi): Likewise.
19184 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19185 limiting to the callback.
19186 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19187 (vn_reference_lookup_3): Likewise.
19188 (vn_reference_lookup_pieces): Likewise.
19189 (vn_reference_lookup): Likewise.
19190 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19191 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19192 (avail_exprs_stack::lookup_avail_expr): Likewise.
19193
19194 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19195
19196 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19197 for comparaible types in the second direction even if first one
19198 hits incomparable type.
19199
19200 2019-05-07 Richard Biener <rguenther@suse.de>
19201
19202 PR lto/90369
19203 * lto-wrapper.c (debug_objcopy): Use the original filename
19204 including archive offset for the filename used for -save-temps.
19205
19206 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19207
19208 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19209 detection.
19210
19211 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19212 Hongtao Liu <hongtao.liu@intel.com>
19213
19214 PR target/89750
19215 PR target/86444
19216 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19217 Modified, original implementation isn't correct.
19218
19219 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19220
19221 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19222 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19223 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19224 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19225 (FRAME_POINTER_REGNUM): Change numbering.
19226 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19227 (alt_reg_names): Adjust.
19228 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19229 fixed.
19230 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19231 (DWARF_FRAME_REGISTERS): Delete.
19232 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19233 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19234 Adjust.
19235 (REG_ALLOC_ORDER): Adjust.
19236 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19237 (REG_CLASS_CONTENTS): Adjust.
19238 (RETURN_ADDR_RTX): Change comment.
19239 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19240 instead of 67.
19241 (REGISTER_NAMES): Adjust.
19242 (ADDITIONAL_REGISTER_NAMES): Adjust.
19243 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19244
19245 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19246
19247 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19248 Delete.
19249 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19250 (DWARF_FRAME_REGISTERS): Adjust.
19251 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19252 Adjust.
19253 (REG_ALLOC_ORDER): Adjust.
19254 (enum reg_class): Delete SPR_REGS.
19255 (REG_CLASS_NAMES): Delete SPR_REGS.
19256 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19257 (REGISTER_NAMES): Adjust.
19258 (ADDITIONAL_REGISTER_NAMES): Adjust.
19259 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19260 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19261 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19262 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19263 (htm_spr_regno): Delete.
19264 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19265 argument.
19266 (rs6000_dbx_register_number): Adjust.
19267
19268 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19269
19270 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19271
19272 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19273
19274 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19275 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19276
19277 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19278
19279 PR tree-optimization/88709
19280 PR tree-optimization/90271
19281 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19282 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19283 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19284 variable.
19285 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19286 of the store merging group is larger than
19287 PARAM_STORE_MERGING_MAX_SIZE parameter.
19288 (split_group): Add bzero_first argument. If set, always emit first
19289 the first store which must be = {} of the whole area and then for the
19290 rest of the stores consider all zero bytes as paddings.
19291 (imm_store_chain_info::output_merged_store): Check if first store
19292 is = {} of the whole area and if yes, determine which setting of
19293 bzero_first for split_group gives smaller number of stores. Adjust
19294 split_group callers.
19295 (lhs_valid_for_store_merging_p): Allow decls.
19296 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19297 no elts.
19298 (pass_store_merging::process_store): Likewise.
19299
19300 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19301
19302 PR target/89424
19303 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19304 handling of V1TImode.
19305
19306 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19307
19308 PR target/89221
19309 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19310 and enable_frame_pointer ...
19311 * configure.ac: ... here. Update help strings for
19312 --enable-frame-pointer.
19313 * configure: Regenerate.
19314 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19315 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19316 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19317 (USE_X86_64_FRAME_POINTER): Ditto.
19318
19319 2019-05-06 Martin Liska <mliska@suse.cz>
19320
19321 * config.gcc: Append to target_gtfiles and fix indentation.
19322
19323 2019-05-06 Richard Biener <rguenther@suse.de>
19324
19325 PR tree-optimization/90358
19326 * tree-vect-stmts.c (get_group_load_store_type): Properly
19327 detect unused upper half of load.
19328 (vectorizable_load): Likewise.
19329
19330 2019-05-06 Richard Biener <rguenther@suse.de>
19331
19332 PR tree-optimization/88828
19333 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19334 (simplify_vector_constructor): ...here. Handle constants in
19335 the constructor.
19336
19337 2019-05-06 Richard Biener <rguenther@suse.de>
19338
19339 PR tree-optimization/90328
19340 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19341 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19342 is valid in the loop nest before using it.
19343 (initialize_data_dependence_relation): Adjust.
19344 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19345 loop as loop-nest to dr_may_alias_p.
19346
19347 2019-05-06 Richard Biener <rguenther@suse.de>
19348
19349 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19350
19351 2019-05-06 Richard Biener <rguenther@suse.de>
19352
19353 PR tree-optimization/90316
19354 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19355 compute target on demand.
19356 (get_continuation_for_phi): Remove code walking stmts to
19357 get to a target virtual operand which could end up being
19358 quadratic.
19359
19360 2019-05-06 Martin Liska <mliska@suse.cz>
19361
19362 PR sanitizer/90312
19363 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19364 when -mabi is selected to a non-default version.
19365
19366 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19367 Martin Liska <mliska@suse.cz>
19368
19369 * Makefile.in: Add lto-dump.texi.
19370 * cgraph.h: Add new functions get_visibility_string and
19371 get_symtab_type_string.
19372 * doc/gcc.texi: Include lto-dump section.
19373 * doc/lto-dump.texi: New file.
19374 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19375 (parse_dump_option): Factor out this function.
19376 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19377 (parse_dump_option): Export the function.
19378 * symtab.c (symtab_node::get_visibility_string): New function.
19379 (symtab_node::get_symtab_type_string): Likewise.
19380
19381 2019-05-06 Martin Liska <mliska@suse.cz>
19382
19383 * config/i386/i386-builtins.c: New file.
19384 * config/i386/i386-builtins.h: New file.
19385 * config/i386/i386-expand.c: New file.
19386 * config/i386/i386-expand.h: New file.
19387 * config/i386/i386-features.c: New file.
19388 * config/i386/i386-features.h: New file.
19389 * config/i386/i386-options.c: New file.
19390 * config/i386/i386-options.h: New file.
19391 * config.gcc: Add new files into extra_objs and
19392 target_gtfiles.
19393 * config/i386/i386.c: Split content of the file
19394 into newly introduced files.
19395 * config/i386/i386.h: Declare common variables
19396 and macros.
19397 * config/i386/t-i386: Define dependencies for new files.
19398
19399 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19400
19401 PR target/89400
19402 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19403 Restrict 'all' variant to 32-bit configurations.
19404 (unaligned_loadhiu): Likewise.
19405 (unaligned_storehi): Likewise.
19406 (unaligned_storesi): Likewise.
19407 (unaligned_loadhis): Disable when compiling for thumb1.
19408
19409 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19410
19411 PR tree-optimization/90269
19412 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19413 Ignore clobbers.
19414
19415 2019-05-03 Martin Liska <mliska@suse.cz>
19416
19417 * hash-map.h: Add is_empty function.
19418 * hash-set.h: Likewise.
19419 * hash-table.h: Likewise.
19420 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19421 elements () == 0 (and similar usages).
19422 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19423 * gimplify.c (gimplify_bind_expr): Likewise.
19424 (gimplify_switch_expr): Likewise.
19425 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19426 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19427 * postreload-gcse.c (dump_hash_table): Likewise.
19428 (gcse_after_reload_main): Likewise.
19429 * predict.c (combine_predictions_for_bb): Likewise.
19430 * tree-parloops.c (reduction_phi): Likewise.
19431 (separate_decls_in_region): Likewise.
19432 (transform_to_exit_first_loop): Likewise.
19433 (gen_parallel_loop): Likewise.
19434 (gather_scalar_reductions): Likewise.
19435 (try_create_reduction_list): Likewise.
19436 * var-tracking.c (dump_vars): Likewise.
19437 (emit_notes_for_changes): Likewise.
19438 (vt_emit_notes): Likewise.
19439
19440 2019-05-03 Richard Biener <rguenther@suse.de>
19441
19442 PR tree-optimization/90316
19443 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19444 before running VN.
19445
19446 2019-05-03 Richard Biener <rguenther@suse.de>
19447
19448 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19449 peeling for gaps by loading only lower halves of vectors
19450 if possible.
19451 (vectorizable_load): Likewise.
19452
19453 2019-05-03 Richard Biener <rguenther@suse.de>
19454
19455 PR middle-end/89518
19456 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19457
19458 2019-05-03 Richard Biener <rguenther@suse.de>
19459
19460 PR middle-end/87314
19461 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19462 Handle STRING_CST vs DECL or STRING_CST.
19463
19464 2019-05-03 Richard Biener <rguenther@suse.de>
19465
19466 PR tree-optimization/88963
19467 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19468 vector loads feeding only BIT_FIELD_REFs to component
19469 loads. Rewrite stores fed by CONSTRUCTORs to component
19470 stores.
19471
19472 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19473
19474 * opts.h (finish_options): Remove lang_mask argument.
19475 (print_help, help_option_argument): Declare.
19476 * opts.c (print_help): Remove forward declaration, no longer static.
19477 (finish_options): Remove lang_mask argument, don't call print_help
19478 here.
19479 * opts-global.c (decode_options): Adjust finish_option caller, call
19480 print_help here.
19481
19482 PR tree-optimization/90303
19483 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19484 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19485
19486 2019-05-03 Richard Biener <rguenther@suse.de>
19487
19488 PR tree-optimization/89698
19489 * gimple-fold.c (canonicalize_constructor_val): Early out
19490 for constants, handle unfolded INTEGER_CSTs as they appear in
19491 C++ virtual table ctors.
19492
19493 2019-05-03 Richard Biener <rguenther@suse.de>
19494
19495 * passes.c (execute_function_todo): Remove dead code.
19496
19497 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19498
19499 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19500 the internal register number, for any "real" register.
19501
19502 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19503
19504 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19505 correct numbers for TFHAR, TFIAR, TEXASR.
19506
19507 2019-05-02 Richard Biener <rguenther@suse.de>
19508
19509 PR tree-optimization/89653
19510 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19511 update-address-taken before the pass.
19512 * passes.def (pass_tree_loop_init): Put comment before it.
19513
19514 2019-05-02 Richard Biener <rguenther@suse.de>
19515
19516 PR tree-optimization/89509
19517 * tree-ssa-structalias.c (compute_dependence_clique): Look
19518 at the first subvar when determining whether it is restrict.
19519
19520 2019-05-02 Richard Biener <rguenther@suse.de>
19521
19522 PR tree-optimization/90273
19523 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19524 useless debug stmts.
19525
19526 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19527
19528 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19529 ACLE branch.
19530 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19531 SVE ACLE branch.
19532 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19533 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19534 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19535 (vectorizable_reduction): Use the functions above to vectorize in a
19536 fully masked loop codes that don't have a conditional internal
19537 function.
19538
19539 2019-05-02 Martin Liska <mliska@suse.cz>
19540
19541 * cgraphclones.c: Call valid_attribute_p with 1 for
19542 target_clone.
19543 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19544 it's for target attribute.
19545 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19546 Add new boolean argument.
19547 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19548 Likewise.
19549 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19550 to ix86_valid_target_attribute_inner_p.
19551 (ix86_valid_target_attribute_p): Pass flags argument to
19552 ix86_valid_target_attribute_inner_p.
19553 (get_builtin_code_for_version): Use 0 as it's target attribute.
19554
19555 2019-05-02 Martin Liska <mliska@suse.cz>
19556
19557 * gcc.c (process_command): Add dummy file only
19558 if n_infiles == 0.
19559 * opts-global.c (decode_options): Pass lang_mask.
19560 * opts.c (print_help): New function.
19561 (finish_options): Print --help if help_option_argument
19562 is set.
19563 (common_handle_option): Factor out content of OPT__help_
19564 into print_help.
19565 * opts.h (finish_options): Add new argument.
19566
19567 2019-05-02 Martin Liska <mliska@suse.cz>
19568
19569 PR target/88809
19570 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19571 With -minline-all-stringops use inline expansion using 4B loop.
19572 * doc/invoke.texi: Document the change of
19573 -minline-all-stringops.
19574
19575 2019-05-01 Jeff Law <law@redhat.com>
19576
19577 PR tree-optimization/88797
19578 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19579 PHI feeds a conditional on the RHS of an assignment.
19580
19581 2019-04-30 Andrew Waterman <andrew@sifive.com>
19582 Jim Wilson <jimw@sifive.com>
19583
19584 * config/riscv/constraints.md (L): New.
19585 * config/riscv/predicates.md (lui_operand): New.
19586 (sfb_alu_operand): New.
19587 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19588 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19589 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19590 * config/riscv/risc.md (type): Add sfb_alu.
19591 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19592 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19593 (branch_zero<mode>): Delete.
19594 (mov<mode>cc): New.
19595 (mov<GPR:mode><X:mode>cc): Likewise.
19596 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19597
19598 2019-04-30 Nathan Sidwell <nathan@acm.org>
19599
19600 * tree.h (MARK_TS_EXP): New.
19601
19602 2019-04-30 Martin Liska <mliska@suse.cz>
19603
19604 * opts.c (enable_warning_as_error): Provide hints
19605 for unknown options.
19606
19607 2019-04-30 Martin Liska <mliska@suse.cz>
19608
19609 PR debug/90288
19610 * doc/invoke.texi: Add missing dash for gas-locview-support
19611 and gno-as-locview-support.
19612
19613 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19614
19615 PR target/89093
19616 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19617 whitespace at the start of target attribute string.
19618
19619 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19620
19621 PR target/86538
19622 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19623 Define __ARM_FEATURE_ATOMICS.
19624
19625 2019-04-30 Martin Liska <mliska@suse.cz>
19626
19627 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19628 into built_in_function enum. Remove code for endp == 2 and
19629 use BUILT_IN_* constants.
19630 (gimple_fold_builtin): Call the function with fcode.
19631
19632 2019-04-30 Martin Liska <mliska@suse.cz>
19633
19634 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19635 DECL_FUNCTION_CODE into ix86_builtins enum before
19636 the switch statement.
19637
19638 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19639
19640 PR tree-optimization/89475
19641 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19642 calls.
19643
19644 2019-04-30 Martin Liska <mliska@suse.cz>
19645
19646 PR translation/90274
19647 * opts.c (print_filtered_help): Wrap string in _(...).
19648
19649 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19650
19651 PR tree-optimization/90240
19652 Revert:
19653 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19654
19655 PR tree-optimization/90078
19656 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19657 checks for infinite_cost overflow.
19658
19659 2019-04-29 Jeff Law <law@redhat.com>
19660
19661 * passes.def: Move -Wrestrict pass after copy propagation.
19662
19663 2019-04-29 Maya Rashish <coypu@sdf.org>
19664
19665 * config.gcc (default_gnu_indirect_function): Default to yes
19666 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19667 sparc*-*-netbsd*, x86_64-*-netbsd*.
19668
19669 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19670
19671 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19672 where cond2 is NE_EXPR.
19673 (is_value_included_in): Update comment.
19674
19675 2019-04-29 Richard Biener <rguenther@suse.de>
19676
19677 PR tree-optimization/90278
19678 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19679 EH on comparison simplification.
19680
19681 2019-04-29 Jason Merrill <jason@redhat.com>
19682
19683 PR c++/82081 - tail call optimization breaks noexcept
19684 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19685 nothrow function to a might-throw function into a tail call.
19686
19687 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19688
19689 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19690 (DDR_INNER_LOOP): Likewise.
19691 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19692 (initialize_data_dependence_relation): Likewise.
19693 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19694
19695 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19696
19697 PR rtl-optimization/90257
19698 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19699 return value.
19700
19701 Revert the revert:
19702 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19703
19704 PR target/90178
19705 Revert:
19706 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19707
19708 Revert the revert:
19709 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19710
19711 Revert:
19712 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19713
19714 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19715
19716 2019-04-29 Richard Biener <rguenther@suse.de>
19717
19718 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19719 rhs issue a reset.
19720
19721 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19722
19723 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19724 varasm.h, and netbsd-protos.h.
19725
19726 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19727
19728 PR target/89261
19729 * config/i386/i386-protos.h (ix86_data_alignment): Change
19730 the second argument type to unsigned int.
19731 * config/i386/i386.c (ix86_data_alignment): Change "align"
19732 argument type to unsigned int.
19733
19734 2019-04-27 Martin Liska <mliska@suse.cz>
19735
19736 PR middle-end/90258
19737 * opt-suggestions.c (option_proposer::build_option_suggestions):
19738 When get_valid_option_values returns empty values, add the
19739 misspelling candidate.
19740
19741 2019-04-26 Jim Wilson <jimw@sifive.com>
19742
19743 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19744 parameter.
19745 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19746 Pass orig_mode to riscv_build_integer.
19747 (riscv_split_integer): Pass mode to riscv_move_integer.
19748 (riscv_legitimize_const_move): Likewise.
19749 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19750 promoted_mode. Replace force_reg call with code to load constant into
19751 promoted reg and then subreg it for the store.
19752 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19753 riscv_move_integer.
19754
19755 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19756
19757 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19758 corrupt codes.
19759
19760 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19761
19762 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19763 commentary about the encoding of precision.
19764
19765 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19766
19767 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19768 * config/i386/t-freebsd64: New file.
19769 * config.gcc: Add the t-freebsd64 for multilib support.
19770
19771 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19772
19773 * doc/extend.texi (vector_size): Add missing comma after @xref.
19774
19775 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19776
19777 * BASE-VER: Set to 10.0.0.
19778
19779 2019-04-25 Richard Biener <rguenther@suse.de>
19780
19781 PR middle-end/89765
19782 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19783 VIEW_CONVERT_EXPR into one operating on an rvalue.
19784
19785 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19786
19787 PR target/89929
19788 * config/i386/i386.c (feature_priority): Moved to file scope.
19789 (processor_features): Likewise.
19790 (processor_model): Likewise.
19791 (_arch_names_table): Likewise.
19792 (arch_names_table): Likewise.
19793 (_feature_list): Removed.
19794 (feature_list): Likewise.
19795 (_isa_names_table): Moved to file scope. Add priority.
19796 (isa_names_table): Likewise.
19797 (get_builtin_code_for_version): Replace feature_list with
19798 isa_names_table. Update error message for P_ZERO priority.
19799
19800 2019-04-25 Richard Biener <rguenther@suse.de>
19801
19802 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19803 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19804
19805 2019-04-24 Jeff Law <law@redhat.com>
19806
19807 PR tree-optimization/90037
19808 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19809 * passes.def: Replace all instance of phi-only cprop with the
19810 lattice propagator. Move propagation pass from after erroneous
19811 path isolation to before erroneous path isolation.
19812 * tree-ssa-phionlycprop.c: Remove.
19813
19814 2019-04-24 Richard Biener <rguenther@suse.de>
19815
19816 PR middle-end/90213
19817 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19818 by size and BITS_PER_UNIT on poly-wide-ints.
19819
19820 2019-04-25 Richard Biener <rguenther@suse.de>
19821
19822 PR middle-end/90194
19823 * match.pd: Add pattern to simplify view-conversion of an
19824 empty constructor.
19825
19826 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19827
19828 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19829 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19830 for Go on 32 bit AIX.
19831 * config/rs6000/aix72.h: Likewise.
19832
19833 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19834
19835 PR target/90193
19836 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19837 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19838
19839 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19840
19841 PR target/89952
19842 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19843 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19844 for restored hard frame pointer.
19845 (s390_sched_dependencies_evaluation): Implement new target hook.
19846 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19847
19848 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19849
19850 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19851 * config/arc/arc.c (arc_init): Cleanup warning message.
19852 (arc_override_options): Likewise.
19853
19854 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19855
19856 PR target/90187
19857 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19858 a register if both if_true and if_false are MEMs.
19859
19860 PR tree-optimization/90208
19861 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19862 after labels of new_bb, not before them.
19863
19864 PR tree-optimization/90211
19865 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19866 which are not SSA_NAMEs.
19867
19868 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19869
19870 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19871 AArch64.
19872 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19873
19874 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19875
19876 PR rtl-optimization/87979
19877 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19878 not equal zero.
19879
19880 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19881
19882 PR rtl-optimization/84032
19883 * modulo-sched.c (ps_insn_find_column): Change condition so that
19884 branch will always be the last insn in a row inside partial
19885 schedule.
19886
19887 2019-04-23 Richard Biener <rguenther@suse.de>
19888
19889 PR debug/90131
19890 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19891 dest_single_pred_p argument.
19892 (remove_forwarder_block): Adjust.
19893 (remove_forwarder_block_with_phi): Likewise.
19894
19895 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19896 Bernd Edlinger <bernd.edlinger@hotmail.de>
19897 Jakub Jelinek <jakub@redhat.com>
19898
19899 PR target/89093
19900 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19901 if used with general-regs-only.
19902 (arm_conditional_register_usage): Don't add non-general regs if
19903 general-regs-only.
19904 (arm_valid_target_attribute_rec): Handle general-regs-only.
19905 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19906 general-regs-only.
19907 (TARGET_HARD_FLOAT_SUB): Define.
19908 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19909 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19910 (TARGET_REALLY_IWMMXT2): Likewise.
19911 * config/arm/arm.opt: Add -mgeneral-regs-only.
19912 * doc/extend.texi: Document ARM general-regs-only target.
19913 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19914
19915 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19916
19917 PR tree-optimization/90078
19918 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19919 checks for infinite_cost overflow.
19920
19921 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19922
19923 PR tree-optimization/90021
19924 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19925 and check univariate against it.
19926 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19927 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19928
19929 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19930
19931 PR target/90178
19932 Revert:
19933 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19934
19935 Revert the revert:
19936 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19937
19938 Revert:
19939 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19940
19941 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19942
19943 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19944
19945 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19946 names using operand format, rather than hard-wired.
19947 (speculation_barrier): Likewise.
19948
19949 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19950
19951 PR tree-optimization/88055
19952 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19953 (gen_one_condition): Use it if !HONOR_NANS.
19954
19955 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19956
19957 PR middle-end/90139
19958 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19959 assign_temp instead of gen_reg_rtx.
19960
19961 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19962
19963 PR translation/90118
19964 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19965 Add missing space before %<.
19966
19967 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19968
19969 PR rtl-optimization/87871
19970 * ira-lives.c (make_object_dead): Don't add conflicts to
19971 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19972
19973 2019-04-18 Martin Sebor <msebor@redhat.com>
19974
19975 PR middle-end/89797
19976 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19977 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19978 assuming type size fits in SHWI.
19979
19980 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19981
19982 PR ipa/85051
19983 * ipa-inline.c (flatten_function): New parameter UPDATE.
19984 (ipa_inline, early_inliner): Use it.
19985
19986 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19987
19988 * fold-const.c (int_const_binop): Return early on failure.
19989
19990 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19991
19992 PR middle-end/85164
19993 * combine.c (force_int_to_mode): Cast the argument rather than
19994 the result of known_alignment.
19995 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19996
19997 2019-04-18 Richard Biener <rguenther@suse.de>
19998
19999 PR debug/90131
20000 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20001 out from ...
20002 (remove_forwarder_block): ... here.
20003 (remove_forwarder_block_with_phi): Also move debug stmts here.
20004
20005 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20006
20007 PR translation/79183
20008 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20009 inform where appropriate.
20010
20011 2019-04-18 Richard Biener <rguenther@suse.de>
20012
20013 * tree.c (get_qualified_type): Put found type variants at the
20014 head of the variant list.
20015
20016 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20017
20018 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20019
20020 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20021
20022 PR target/90125
20023 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20024 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20025 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20026 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20027 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20028
20029 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20030
20031 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20032 even for allocno's with no conflicts.
20033 (print_conflicts): Print an extra newline.
20034
20035 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20036
20037 * auto-inc-dec.c (attempt_change): Set the alignment of the
20038 temporary memory to that of the original.
20039
20040 2019-04-17 Joao Moreira <jmoreira@suse.de>
20041
20042 * targhooks.c (default_print_patchable_function_entry): Emit
20043 __patchable_function_entries section with writable flags to allow
20044 relocation resolution.
20045
20046 2019-04-17 Jonny Grant <jg@jguk.org>
20047
20048 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20049
20050 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20051
20052 PR middle-end/90095
20053 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20054 on lowpart SUBREGs.
20055
20056 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20057
20058 * config/arc/arc.c (arc_init): Format diagnostic string.
20059 (arc_override_options): Likewise.
20060 (check_if_valid_regno_const): Likewise.
20061 (arc_reorg): Likewise.
20062
20063 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20064
20065 PR target/17108
20066 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20067 name.
20068 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20069 name.
20070 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20071 (*movdi_update1): Use Pmode.
20072 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20073 (movdi_<mode>_update_stack): Rename to ...
20074 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20075 use Pmode.
20076 (*movsi_update1): Use Pmode.
20077 (*movsi_update2): Use Pmode.
20078 (movsi_update): Rename to ...
20079 (movsi_<mode>_update): ... this. Use Pmode.
20080 (movsi_update_stack): Fix condition.
20081 (*movhi_update1): Use Pmode. Fix argument to
20082 avoiding_indexed_address_p.
20083 (*movhi_update2): Ditto.
20084 (*movhi_update3): Ditto.
20085 (*movhi_update4): Ditto.
20086 (*movqi_update1): Ditto.
20087 (*movqi_update2): Ditto.
20088 (*movqi_update3): Ditto.
20089 (*movsf_update1, *movdf_update1): Merge, rename to...
20090 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20091 avoiding_indexed_address_p. Add "size" attribute.
20092 (*movsf_update2, *movdf_update2): Merge, rename to...
20093 (*mov<mode>_update2): This. Ditto.
20094 (*movsf_update3): Use Pmode. Fix argument to
20095 avoiding_indexed_address_p.
20096 (*movsf_update4): Ditto.
20097 (allocate_stack): Simplify condition. Adjust pattern names.
20098
20099 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20100
20101 PR target/89093
20102 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20103 whitespace at the start of target attribute string.
20104
20105 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20106
20107 PR target/84369
20108 * config/rs6000/power9.md: Add store forwarding bypass.
20109
20110 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20111
20112 PR debug/89528
20113 * valtrack.c (dead_debug_insert_temp): Reset debug references
20114 to the return value of a call being removed.
20115
20116 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20117
20118 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20119 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20120 implement target hook.
20121 (arc_memory_move_cost): New function.
20122 (TARGET_REGISTER_MOVE_COST): Define.
20123 (TARGET_MEMORY_MOVE_COST): Likewise.
20124 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20125 (MEMORY_MOVE_COST): Likewise.
20126
20127 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20128
20129 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20130 (sibcall_value_insn): Likewise.
20131 * config/arc/constraints.md (Rs5): Remove.
20132
20133 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20134
20135 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20136 for last two fake registers.
20137 (arc_conditional_register_usage): Make sure fake frame and arg
20138 pointer regs are in general regs class.
20139 (FRAME_POINTER_MASK): Remove.
20140 (RETURN_ADDR_MASK): Remove.
20141 (arc_must_save_register): Use hard frame regnum.
20142 (frame_restore_reg): Use hard_frame_pointer_rtx.
20143 (arc_save_callee_saves): Likewise.
20144 (arc_restore_callee_saves): Likewise.
20145 (arc_save_callee_enter): Likewise.
20146 (arc_restore_callee_leave): Likewise.
20147 (arc_save_callee_milli): Likewise.
20148 (arc_eh_return_address_location): Likewise.
20149 (arc_check_multi): Use hard frame regnum.
20150 (arc_can_eliminate): Likewise.
20151 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20152 for register allocator.
20153 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20154 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20155 (FRAME_POINTER_REGNUM): Change it to a fake register.
20156 (HARD_FRAME_POINTER_REGNUM): Defined.
20157 (ARG_POINTER_REGNUM): Change it to a new fake register.
20158 (ELIMINABLE_REGS): Update.
20159 (REGISTER_NAMES): Update names.
20160 * config/arc/arc.md (LP_START): Remove.
20161 (LP_END): Likewise.
20162 (shift_si3_loop): Update pattern.
20163
20164 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20165
20166 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20167 to avoid delay slot scheduling.
20168 (arc_must_save_register): Don't save SP.
20169 * config/arc/arc.md (stack_tie): Remove.
20170 (UNSPEC_ARC_STKTIE): Likewise.
20171
20172 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20173 Shiva Chen <shiva0217@gmail.com>
20174
20175 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20176 code gen with large shift amount.
20177
20178 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20179
20180 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20181 subreg.
20182
20183 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20184
20185 PR target/90096
20186 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20187 print -m64/-mx32/-m32 if it is true.
20188 (ix86_debug_options, ix86_function_specific_print): Pass true as
20189 ADD_ABI_P to ix86_target_string.
20190 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20191 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20192 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20193
20194 PR rtl-optimization/90082
20195 * dce.c (can_delete_call): New function.
20196 (deletable_insn_p, mark_insn): Use it.
20197
20198 PR tree-optimization/90090
20199 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20200 throw internally.
20201 (is_division_by_square): Likewise. Formatting fix.
20202
20203 2019-04-16 Richard Biener <rguenther@suse.de>
20204
20205 PR tree-optimization/56049
20206 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20207 equality check if alias-set zero will prevail.
20208
20209 2019-04-15 Jeff Law <law@redhat.com>
20210
20211 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20212 size and alignment as unsigned.
20213
20214 2019-04-15 Richard Biener <rguenther@suse.de>
20215
20216 PR debug/90074
20217 * tree-loop-distribution.c (destroy_loop): Preserve correct
20218 debug info.
20219
20220 2019-04-15 Richard Biener <rguenther@suse.de>
20221
20222 PR tree-optimization/90071
20223 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20224 abnormal operands from def stmts.
20225
20226 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20227
20228 PR rtl-optimization/89794
20229 * combine.c (count_auto_inc): New function.
20230 (try_combine): Count how many auto_inc expressions there were in the
20231 original instructions. Ensure we have the same number in the new
20232 instructions. Remove the code that tried to ensure auto_inc side
20233 effects on i1 and i0 are not lost.
20234
20235 2019-04-15 Richard Biener <rguenther@suse.de>
20236
20237 PR ipa/88936
20238 * tree.h (auto_var_p): Declare.
20239 * tree.c (auto_var_p): New function, split out from ...
20240 (auto_var_in_fn_p): ... here.
20241 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20242 member.
20243 (new_var_info): Initialize it.
20244 (set_uids_in_ptset): Also set the shadow variable uid if required.
20245 (ipa_pta_execute): Postprocess points-to solutions assigning
20246 shadow variable uids for locals that may reach their containing
20247 function recursively.
20248 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20249 assert but instead check whether the points-to solution is
20250 a singleton.
20251
20252 2019-04-15 Martin Jambor <mjambor@suse.cz>
20253
20254 PR ipa/pr89693
20255 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20256 the thunk chain.
20257
20258 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20259
20260 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20261
20262 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20263 Kito Cheng <kito.cheng@gmail.com>
20264 Shiva Chen <shiva0217@gmail.com>
20265
20266 * config/nds32/nds32-md-auxiliary.c
20267 (nds32_legitimize_pic_address): Use new PIC pattern.
20268 (nds32_legitimize_tls_address): Use new TLS pattern.
20269 (nds32_output_symrel): New.
20270 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20271 (nds32_alloc_relax_group_id): Ditto.
20272 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20273 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20274 relax_group_id.
20275 (nds32_group_tls_insn): Ditto.
20276 (nds32_group_float_insns): Ditto.
20277 * config/nds32/nds32.md (tls_le): New.
20278 (sym_got): Ditto.
20279
20280 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20281
20282 * configure: Add nds32 target for dwarf2 debug_line checking.
20283 * configure.ac: Regenerated.
20284
20285 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20286
20287 PR lto/89358
20288 * ipa-devirt.c (skip_in_fields_list_p): New.
20289 (odr_types_equivalent_p): Use it.
20290
20291 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20292
20293 PR target/89093
20294 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20295 instead of strncmp when checking for thumb and arm. Formatting fixes.
20296
20297 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20298
20299 * doc/install.texi: Document --with-target-system-zlib.
20300
20301 2019-04-12 Martin Sebor <msebor@redhat.com>
20302
20303 PR c/88383
20304 PR c/89288
20305 PR c/89798
20306 PR c/89797
20307 * targhooks.c (default_vector_alignment): Avoid assuming
20308 argument fits in SHWI.
20309 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20310 a shift expression.
20311 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20312
20313 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20314
20315 PR rtl-optimization/89965
20316 * dce.c: Include rtl-iter.h.
20317 (struct check_argument_load_data): New type.
20318 (check_argument_load): New function.
20319 (find_call_stack_args): Check for loads from stack slots still tracked
20320 in sp_bytes and punt if any is found.
20321
20322 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20323
20324 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20325
20326 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20327 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20328
20329 2019-04-12 Martin Liska <mliska@suse.cz>
20330
20331 PR middle-end/89970
20332 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20333 in error message.
20334 (separate_attrs): Handle multiple 'default's.
20335 (expand_target_clones): Rework error handling code.
20336
20337 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20338
20339 PR target/87532
20340 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20341 mode of vector rather than mode of destination for move instruction.
20342 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20343 Use QI inner mode with V16QI vector mode.
20344
20345 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20346
20347 PR target/52726
20348 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20349 "invalid %%t operand" in output_operand_lossage message.
20350
20351 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20352
20353 * config/s390/predicates.md (permute_pattern_operand): New
20354 predicate.
20355 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20356 operand for the permute pattern.
20357 ("*vec_perm<mode>"): New insn definition.
20358 ("bswap<mode>"): Generate the permute pattern operand in the
20359 expander and perform the operand reloads for pre arch13 level
20360 already.
20361 ("*bswap<mode>_emu"): Rename to ...
20362 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20363 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20364 Add the USE operand for the permute pattern.
20365 ("*vec_set_bswap_vec<mode>"): Likewise.
20366
20367 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20368
20369 PR c/89946
20370 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20371 and gcc_unreachable if it fails, just call tree_to_uhwi which
20372 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20373 Start warning message with a lower-case letter. Formatting fixes.
20374
20375 PR rtl-optimization/90026
20376 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20377 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20378 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20379 in cfglayout mode, use emit_barrier_after_bb.
20380
20381 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20382
20383 PR rtl-optimization/87763
20384 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20385 New Instruction.
20386
20387 2019-04-11 Tom de Vries <tdevries@suse.de>
20388
20389 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20390 max macro using statement expression.
20391
20392 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20393
20394 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20395 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20396 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20397 read_only_private_data_section using xcoff_private_rodata_section_name.
20398 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20399
20400 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20401
20402 PR target/90016
20403 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20404
20405 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20406
20407 PR rtl-optimization/89965
20408 * dce.c (sp_based_mem_offset): New function.
20409 (find_call_stack_args): Use sp_based_mem_offset.
20410
20411 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20412
20413 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20414
20415 2019-04-11 Richard Biener <rguenther@suse.de>
20416
20417 PR tree-optimization/90020
20418 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20419 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20420 * tree-ssa-pre.c (compute_avail): Use it to not put
20421 possibly trapping references after a call that might not
20422 return into EXP_GEN.
20423 * gcse.c (compute_hash_table_work): Do not elide
20424 marking a block containing a call if the call might not
20425 return.
20426
20427 2019-04-11 Richard Biener <rguenther@suse.de>
20428
20429 PR tree-optimization/90018
20430 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20431 Test both SLP and interleaving variants.
20432
20433 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20434
20435 * config/s390/8561.md: New file.
20436 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20437 Add arch13 cpu model.
20438 * config/s390/s390-opts.h (enum processor_type): Likewise.
20439 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20440 (s390_get_unit_mask): Likewise.
20441 (s390_is_fpd): Likewise.
20442 (s390_is_fxd): Likewise.
20443 * config/s390/s390.h (s390_tune_attr): Likewise.
20444 * config/s390/s390.md: Include arch13 pipeline description.
20445 * config/s390/s390.opt: Add arch13.
20446
20447 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20448
20449 PR rtl-optimization/87763
20450 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20451 New prototype.
20452 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20453 New function.
20454 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20455 New instruction.
20456 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20457 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20458 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20459 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20460
20461 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20462
20463 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20464 "Although" in -fipa-icf documentation.
20465
20466 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20467 of using multiple -g options.
20468
20469 2019-04-10 Martin Liska <mliska@suse.cz>
20470
20471 PR gcov-profile/89959
20472 * doc/gcov.texi: Make documentation of -x option
20473 more precise.
20474
20475 2019-04-10 Richard Biener <rguenther@suse.de>
20476
20477 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20478 member.
20479 (DR_GROUP_SAME_DR_STMT): Remove.
20480 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20481 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20482 replace with assert.
20483 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20484 (vect_record_grouped_load_vectors): Remove unreachable code.
20485
20486 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20487
20488 PR target/90016
20489 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20490 obsolete reference to N.
20491
20492 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20493
20494 PR middle-end/90025
20495 * expr.c (store_expr): Set properly size on the MEM passed to
20496 clear_storage.
20497
20498 PR c++/90010
20499 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20500 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20501 translation is needed, and when translation is needed, only append
20502 ... if the string length is hostsz or more bytes long. Avoid using
20503 strncpy or strcat.
20504
20505 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20506
20507 PR target/90024
20508 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20509 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20510 into three.
20511 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20512 differences directly.
20513 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20514
20515 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20516
20517 PR translation/90011
20518 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20519 from diagnostics.
20520 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20521 diagnostics.
20522 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20523 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20524 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20525 trailing space from -gsplit-dwarf diagnostics.
20526
20527 PR tree-optimization/89998
20528 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20529 instead of integer_type_node if possible, don't add ranges if return
20530 type is not compatible with int.
20531 * gimple-fold.c (gimple_fold_builtin_sprintf,
20532 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20533 integer_type_node.
20534
20535 2019-04-09 Martin Liska <mliska@suse.cz>
20536
20537 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20538 * doc/install.texi: Document the new config.
20539
20540 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20541
20542 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20543 use gimple_expr_type for load and store calls. Skip over the
20544 condition argument in a conditional internal function.
20545 Protect use of TREE_INT_CST_LOW.
20546
20547 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20548
20549 PR target/90015
20550 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20551 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20552 trailing period from it too.
20553
20554 2019-04-08 wu yuan <wuyuan5@huawei.com>
20555
20556 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20557 * config/aarch64/aarch64.md : Add "tsv110.md"
20558 * config/aarch64/tsv110.md: New file.
20559
20560 2019-04-08 Richard Biener <rguenther@suse.de>
20561
20562 PR tree-optimization/90006
20563 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20564 calls like lrint.
20565
20566 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20567
20568 PR target/83033
20569 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20570 construction.
20571 (fma_root_node): Likewise.
20572 (func_fma_steering): Likewise.
20573
20574 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20575
20576 PR rtl-optimization/89865
20577 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20578
20579 PR rtl-optimization/89865
20580 * config/i386/i386.md
20581 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20582 numbers not to clash with the additional operands[4].
20583 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20584 with extra register copy in the middle.
20585
20586 2019-04-08 Martin Liska <mliska@suse.cz>
20587
20588 PR gcov-profile/89961
20589 * doc/gcov.texi: Document data_file.
20590 * gcov.c (generate_results): Add data_info into JSON output.
20591
20592 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20593
20594 PR tree-optimization/89725
20595 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20596 loop's chrec as invariant symbol.
20597 * tree-chrec.h (chrec_contains_symbols): New parameter.
20598 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20599 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20600 function of loops not in DDR's loop_nest.
20601 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20602
20603 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20604
20605 PR target/89623
20606 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20607 Mask.
20608
20609 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20610
20611 PR target/89945
20612 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20613 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20614
20615 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20616
20617 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20618 targetm.fixed_condition_code_regs.
20619
20620 2019-04-05 Richard Biener <rguenther@suse.de>
20621
20622 PR debug/89892
20623 PR debug/89905
20624 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20625 debug bind stmts but reset them if they are not valid at the
20626 destination.
20627
20628 2019-04-05 Martin Liska <mliska@suse.cz>
20629
20630 PR translation/89936
20631 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20632 order to wrap keywords or arguments.
20633 * collect2.c (main): Likewise.
20634 (scan_prog_file): Likewise.
20635 (scan_libraries): Likewise.
20636 * common/config/riscv/riscv-common.c
20637 (riscv_subset_list::parsing_subset_version): Likewise.
20638 (riscv_subset_list::parse_std_ext): Likewise.
20639 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20640 Likewise.
20641 * config/arm/arm.c (arm_option_override): Likewise.
20642 * config/cris/cris.c (cris_print_operand): Likewise.
20643 * config/darwin-c.c (darwin_pragma_options): Likewise.
20644 (darwin_pragma_unused): Likewise.
20645 (darwin_pragma_ms_struct): Likewise.
20646 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20647 * config/i386/i386.c (print_reg): Likewise.
20648 (ix86_print_operand): Likewise.
20649 * config/i386/xm-djgpp.h: Likewise.
20650 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20651 * config/m32c/m32c.c (m32c_option_override): Likewise.
20652 * config/msp430/msp430.c (msp430_option_override): Likewise.
20653 * config/nds32/nds32.c (nds32_option_override): Likewise.
20654 * config/nvptx/mkoffload.c (main): Likewise.
20655 * config/rx/rx.c (rx_print_operand): Likewise.
20656 (valid_psw_flag): Likewise.
20657 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20658 (vms_pragma_nomember_alignment): Likewise.
20659 (vms_pragma_extern_model): Likewise.
20660 * lto-wrapper.c (compile_offload_image): Likewise.
20661 * omp-offload.c (oacc_parse_default_dims): Likewise.
20662 * symtab.c (symtab_node::verify_base): Likewise.
20663 * tlink.c (recompile_files): Likewise.
20664 (start_tweaking): Likewise.
20665 * tree-profile.c (parse_profile_filter): Likewise.
20666
20667 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20668
20669 PR tree-optimization/89956
20670 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20671 multiple negates of the same value.
20672
20673 2019-04-04 Martin Sebor <msebor@redhat.com>
20674
20675 PR middle-end/89957
20676 PR middle-end/89911
20677 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20678 have the same precision since the function crashes otherwise.
20679 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20680 has non-zero arguments.
20681
20682 2019-04-04 Martin Sebor <msebor@redhat.com>
20683
20684 PR middle-end/89934
20685 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20686 out if the number of arguments is less than expected.
20687
20688 2019-04-04 Jeff Law <law@redhat.com>
20689
20690 PR rtl-optimization/89399
20691 * ree.c (combine_set_extension): Use single_set rather than
20692 digging into PATTERN for items on the candidate list.
20693 (combine_reaching_defs): Likewise.
20694
20695 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20696
20697 PR rtl-optimization/46590
20698 * loop-invariant.c (find_defs): Move df_remove_problem and
20699 df_process_deferred_rescans to move_invariants.
20700 Move df_live_add_problem and df_live_set_all_dirty calls
20701 to move_invariants.
20702 (move_invariants): Likewise.
20703 (move_loop_invariants): Likewise, making the df_live calls
20704 conditional on -O. Remove the problem again if we added it
20705 locally.
20706
20707 2019-04-03 qing zhao <qing.zhao@oracle.com>
20708
20709 PR tree-optimization/89730
20710 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20711 -flive-patching=inline-only-static.
20712 (can_inline_edge_by_limits_p): Add the checking for
20713 -flive-patching=inline-only-static and grant always_inline
20714 even when -flive-patching=inline-only-static is specified.
20715
20716 2019-04-03 Jeff Law <law@redhat.com>
20717
20718 PR rtl-optimization/81025
20719 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20720
20721 2019-04-03 Richard Biener <rguenther@suse.de>
20722
20723 PR tree-optimization/84101
20724 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20725 regs.h for hard_regno_nregs.
20726 (cfun_returns): New helper.
20727 (vect_model_store_cost): When vectorizing a store to a decl
20728 we return and the function ABI returns in a multi-reg location
20729 account for the possible spilling that will happen.
20730
20731 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20732
20733 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20734 displacement addresses for vector mode operands.
20735
20736 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20737
20738 * config/arc/arc.c (GMASK_LEN): Define.
20739 (arc_restore_callee_saves): Restore first blink when
20740 !optimize_size.
20741
20742 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20743
20744 * doc/extend.texi: Add deprecated comment on sign-return-address
20745 function attribute and add mbranch-protection.
20746 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20747
20748 2019-04-03 Richard Biener <rguenther@suse.de>
20749
20750 PR lto/89896
20751 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20752 the all target phony.
20753
20754 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20755
20756 PR target/89902
20757 PR target/89903
20758 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20759 Return false for variable DImode shifts.
20760 (dimode_scalar_chain::compute_convert_gain): Do not handle
20761 register count operand in variable DImode shifts.
20762 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20763 count argument of a variable shift instruction to a vector register.
20764 (dimode_scalar_chain::convert_reg): Remove support to convert
20765 count argument of a variable shift instruction.
20766
20767 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20768
20769 PR rtl-optimization/84206
20770 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20771 iterating over loop headers.
20772
20773 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20774
20775 PR rtl-optimization/85876
20776 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20777 beyond the original fence.
20778
20779 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20780
20781 * config.gcc: Mark spu* targets as deprecated/obsolete.
20782
20783 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20784
20785 * config/s390/s390-builtin-types.def: New builtin function type
20786 definitions. Remove unused types.
20787 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20788 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20789 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20790 overloaded builtins.
20791 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20792 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20793 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20794 (vec_double, vec_signed, vec_unsigned): Define to use the new
20795 overloaded builtins.
20796 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20797 Remove expanders.
20798
20799 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20800
20801 * config/s390/s390-builtin-types.def: New builtin function type
20802 definitions.
20803 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20804 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20805 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20806 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20807 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20808 constant definitions.
20809 * config/s390/vecintrin.h (vec_search_string_cc)
20810 (vec_search_string_until_zero_cc): New builtin name definitions.
20811 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20812 expanders.
20813 ("vec_vstrs<mode>"): New insn definition.
20814
20815 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20816
20817 * config/s390/s390-builtin-types.def: Add new builtin function
20818 types.
20819 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20820 New overloaded builtins.
20821 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20822 s390_vsrd.
20823 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20824 (UNSPEC_VEC_SLDBYTE): ... this.
20825 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20826 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20827 definitions.
20828 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20829 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20830 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20831
20832 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20833
20834 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20835 New insn definition.
20836 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20837 * config/s390/vector.md (V_HW_HSD): ... here.
20838
20839 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20840
20841 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20842 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20843 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20844 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20845 New insn definitions.
20846
20847 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20848
20849 * config/s390/s390-builtin-types.def: Add new builtin function type.
20850 * config/s390/s390-builtins.def: Add overloaded builtin
20851 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20852 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20853 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20854 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20855 ("eltswap<mode>"): New expander.
20856 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20857 insn definitions.
20858
20859 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20860
20861 * config/s390/s390-builtin-types.def: Add new builtin function types.
20862 * config/s390/s390-builtins.def: Add overloaded builtin
20863 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20864 instructions.
20865 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20866 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20867 ("bswap<mode>"): New expander.
20868 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20869
20870 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20871
20872 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20873 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20874 vector builtin version number in __VEC__.
20875
20876 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20877
20878 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20879 iterators.
20880 (SFSI): New mode attribute.
20881 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20882 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20883 rename to ...
20884 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20885 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20886 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20887 ("floatsi<mode>2"): Add wcefb instruction.
20888
20889 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20890
20891 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20892 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20893 mode iterators.
20894 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20895 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20896 support 32 bit fp-int conversions. Rename to ...
20897 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20898 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20899 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20900 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20901 ... to these.
20902
20903 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20904
20905 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20906 if-then-else constructs if we can use the select instruction.
20907 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20908
20909 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20910
20911 * config/s390/s390.md ("*popcountdi_arch13_cc")
20912 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20913 definition.
20914 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20915 Append _z196 to make it ...
20916 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20917 ("popcounthi2_z196"): ... this.
20918 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20919 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20920
20921 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20922
20923 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20924 certain compares for arch13 in order to make use of the condition
20925 code result produced by the new instructions.
20926 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20927 nxrk, and nxgrk instruction patterns.
20928 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20929 (inv_no): Add new code iterator together with some attributes.
20930 ("*andc_split_<mode>"): Disable splitter for arch13.
20931 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20932 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20933 ("*<ANDOR:bitops_name>c<GPR:mode>")
20934 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20935 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20936 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20937 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20938
20939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20940
20941 * common/config/s390/s390-common.c (processor_flags_table): New
20942 entry for arch13.
20943 * config.gcc: Support arch13 with the --with-arch= configure flag.
20944 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20945 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20946 * config/s390/s390.c (s390_get_sched_attrmask)
20947 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20948 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20949 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20950 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20951 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20952 definitions.
20953 * config/s390/s390.opt: Support arch13 as processor type in
20954 command line options.
20955
20956 2019-04-02 Martin Liska <mliska@suse.cz>
20957
20958 PR translation/89912
20959 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20960 Fix param description of graphite-max-arrays-per-scop.
20961
20962 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20963
20964 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20965 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20966 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20967
20968 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20969
20970 PR rtl-optimization/85412
20971 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20972 sel_sched_region_1, not after.
20973
20974 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20975
20976 PR rtl-optimization/86928
20977 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20978 compute_live if necessary.
20979 (sel_redirect_edge_and_branch): Likewise.
20980
20981 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20982
20983 PR rtl-optimization/89865
20984 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20985 register if it is a part of small class.
20986
20987 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20988
20989 PR rtl-optimization/87273
20990 * sel-sched-ir.c (merge_fences): Remove assert.
20991
20992 2019-04-01 Richard Biener <rguenther@suse.de>
20993
20994 PR tree-optimization/46590
20995 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20996 (dom_walker::m_reachability): Add in place of...
20997 (dom_walker::m_skip_unreachable_blocks): ...this.
20998 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20999 Move complex initialization ...
21000 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21001 lazily and initialize edge flags on each invocation.
21002 (dom_walker::bb_reachable): Use m_reachability.
21003
21004 2019-04-01 Martin Liska <mliska@suse.cz>
21005
21006 PR driver/89861
21007 * opt-suggestions.c (option_proposer::build_option_suggestions):
21008 Add variant without any argument in order to provide better
21009 hints.
21010
21011 2019-04-01 Richard Biener <rguenther@suse.de>
21012
21013 PR c/71598
21014 * gimple.c: Include langhooks.h.
21015 (gimple_get_alias_set): Treat enumeral types as the underlying
21016 integer type.
21017
21018 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21019 Eric Botcazou <ebotcazou@adacore.com>
21020
21021 PR rtl-optimization/89862
21022 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21023 that operates on the full registers for WORD_REGISTER_OPERATIONS
21024 architectures.
21025
21026 2019-03-29 Jim Wilson <jimw@sifive.com>
21027
21028 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21029 Clear MASK_RVC and then set if C subset supported.
21030
21031 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21032
21033 PR c/89872
21034 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21035 non-addressable complit into its initializer if it is volatile.
21036
21037 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21038
21039 * opts-common.c (integral_argument): Set errno properly in one case.
21040
21041 2019-03-29 Martin Liska <mliska@suse.cz>
21042
21043 * doc/invoke.texi: Remove -Wchkp from documentation.
21044
21045 2019-03-29 Martin Liska <mliska@suse.cz>
21046
21047 * dbgcnt.c (print_limit_reach): New function.
21048 (dbg_cnt): Use it.
21049
21050 2019-03-29 Martin Liska <mliska@suse.cz>
21051
21052 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21053 (dbg_cnt_process_opt): Parse first tokens aas
21054 dbg_cnt_process_single_pair is also using strtok.
21055
21056 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21057
21058 PR rtl-optimization/87485
21059 * function.c (expand_function_end): Move stack_protect_epilogue
21060 before loading of return value into hard register(s).
21061
21062 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21063
21064 PR middle-end/89621
21065 * tree-inline.h (struct copy_body_data): Add
21066 dont_remap_vla_if_no_change flag.
21067 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21068 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21069 and remap_type_2 returns false.
21070 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21071 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21072 only from where it is copied to nested contexts.
21073
21074 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21075
21076 PR target/89865
21077 * config/i386/i386.md (RMW operation with LEA peephole):
21078 Use LEAMODE mode attribute instead of SWI mode iterator for
21079 LEA pattern.
21080
21081 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21082
21083 PR target/89848
21084 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21085 Also process XEXP (src, 0) of a shift insn.
21086
21087 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21088
21089 PR middle-end/89725
21090 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21091 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21092
21093 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21094
21095 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21096 test.
21097 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21098 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21099 immediately after first one with df_analyze in between, but rather
21100 process all bbs, queueing ones that need second pass in a worklist,
21101 df_analyze, process queued debug insn changes and if second pass is
21102 needed, process bbs from worklist, df_analyze, process queued debug
21103 insns again.
21104
21105 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21106 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21107 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21108
21109 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21110
21111 PR c/79022
21112 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21113 definition.
21114
21115 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21116
21117 PR target/85667
21118 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21119 function for 32-bit MS_ABI.
21120 (function_value_ms_32): New function.
21121
21122 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21123
21124 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21125 (movdi): Call gen_movdi_symbol_save_scc.
21126 (gen_movdi_symbol_save_scc): New insn and split.
21127
21128 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21129
21130 PR rtl-optimization/89313
21131 * function.c (matching_constraint_num): New static function.
21132 (match_asm_constraints_1): Use it. Fixup white space and comment.
21133 Don't replace inputs with non-matching constraints which conflict
21134 with early clobber outputs.
21135
21136 2019-03-27 Jeff Law <law@redhat.com>
21137
21138 PR rtl-optimization/87761
21139 PR rtl-optimization/89826
21140 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21141 slightly later.
21142 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21143 note problem to get REG_DEAD/REG_UNUSED notes updated.
21144
21145 2019-03-27 Richard Biener <rguenther@suse.de>
21146
21147 PR tree-optimization/89463
21148 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21149 queue edges to remove.
21150 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21151 dead stmts. Delay edge removal until PHIs are removed to
21152 make debug-stmt creation not confused by seemingly degenerate
21153 PHIs.
21154
21155 2019-03-27 Alan Modra <amodra@gmail.com>
21156
21157 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21158 throughout file.
21159 * config/rs6000/darwin.h: Likewise.
21160 * config/rs6000/rs6000.c: Likewise.
21161
21162 2019-03-27 Alan Modra <amodra@gmail.com>
21163
21164 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21165 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21166
21167 2019-03-26 Andrew Waterman <andrew@sifive.com>
21168 Jim Wilson <jimw@sifive.com>
21169
21170 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21171 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21172 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21173 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21174 (generic_alu): Add auipc to type list.
21175 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21176 (riscv_microarchitecture): Declare.
21177 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21178 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21179 field.
21180 (riscv_microarchitecture): New.
21181 (sifive_7_tune_info): New.
21182 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21183 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21184 entries.
21185 (riscv_store_data_bypass_p): New.
21186 (riscv_option_override): Set riscv_microarchitecture from
21187 cpu->microarchitecture.
21188 * config/riscv/riscv.md: Include sifive-7.md.
21189 (type): Add auipc.
21190 (tune): New.
21191 (auipc<mode>): Change type to auipc.
21192 (restore_stack_nonlocal): New.
21193 * config/riscv/sifive-7.md: New.
21194 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21195
21196 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21197
21198 PR target/89827
21199 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21200 Also process XEXP (src, 0) of a shift insn.
21201
21202 2019-03-26 Richard Biener <rguenther@suse.de>
21203
21204 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21205 (copy_debug_stmt): Likewise.
21206 (expand_call_inline): Likewise.
21207 (copy_bb): Avoid redundant lookup & set of gimple_block.
21208 * gimple-low.c (lower_gimple_return): Likewise.
21209 (lower_builtin_setjmp): Likewise.
21210
21211 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21212
21213 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21214 is constant 0, turn into static const data member initialized to false.
21215 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21216 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21217
21218 2019-03-26 Jason Merrill <jason@redhat.com>
21219 Jakub Jelinek <jakub@redhat.com>
21220
21221 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21222 method.
21223 (mem_alloc_description::release_object_overhead): Fix comment typos.
21224 * hash-table.h (hash_table::~hash_table): Call
21225 release_instance_overhead only if m_entries is non-NULL, otherwise
21226 call unregister_descriptor.
21227
21228 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21229
21230 PR tree-optimization/81740
21231 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21232 In case of outer loop vectorization, check for backward dependence
21233 at the inner loop if outer loop dependence is reversed.
21234
21235 2019-03-26 Alan Modra <amodra@gmail.com>
21236
21237 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21238 rs6000_vector_mem init. Correct wI and wJ comment.
21239
21240 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21241
21242 PR rtl-optimization/88347
21243 PR rtl-optimization/88423
21244 * sched-deps.c (sched_analyze_insn): Take into account that for
21245 tablejumps the barrier appears after a label and a jump_table_data.
21246
21247 2019-03-25 Martin Sebor <msebor@redhat.com>
21248
21249 PR c/89812
21250 * c-common.c (check_user_alignment): Rename local. Correct maximum
21251 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21252 convert it to UHWI when it fits.
21253
21254 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21255
21256 PR debug/86964
21257 * dwarf2out.c (premark_used_variables): New function.
21258 (prune_unused_types_walk): Do not mark not premarked external
21259 variables.
21260 (prune_unused_types): Call premark_used_variables.
21261
21262 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21263
21264 PR rtl-optimization/89676
21265 * lra-constraints.c (curr_insn_transform): Do match reload for
21266 early clobbers when the match was successful only for different
21267 registers.
21268
21269 2019-03-25 Martin Sebor <msebor@redhat.com>
21270
21271 * doc/extend.texi (Common Type Attributes): Document vector_size.
21272 (Common Variable Attributes): Mention size constraint. Correct
21273 quoting and typos.
21274 (Vector Extensions): Use @dfn when defining bas type. Clarify
21275 base type and size constraints.
21276
21277 2019-03-25 Richard Biener <rguenther@suse.de>
21278
21279 PR tree-optimization/89789
21280 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21281 changes from non-undefined back to undefined.
21282
21283 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21284
21285 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21286 heap string and a gc string, but since this variable is unknown to
21287 ggc the gc string might get reused and corrupted. Fixed by always
21288 using a heap string.
21289
21290 2019-03-25 Richard Biener <rguenther@suse.de>
21291
21292 PR tree-optimization/89779
21293 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21294 to remove IV defs, delay actual removal.
21295 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21296 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21297 very end, properly also reset loop control IV information.
21298
21299 2019-03-25 Richard Biener <rguenther@suse.de>
21300
21301 PR tree-optimization/89802
21302 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21303 move EH data to folded stmt.
21304
21305 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21306
21307 * config/s390/s390-builtin-types.def: Remove few unused types and
21308 fix sort order for others.
21309
21310 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21311
21312 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21313 expected and found types with -mdebug during builtin matching.
21314
21315 2019-03-25 Richard Biener <rguenther@suse.de>
21316
21317 PR middle-end/89790
21318 * fold-const.c (operand_equal_p): Revert last change with
21319 updated comment.
21320
21321 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21322
21323 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21324 notes for the result of the __tls_get_addr calls.
21325 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21326
21327 2019-03-24 Jeff Law <law@redhat.com>
21328
21329 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21330
21331 PR rtl-optimization/87761
21332 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21333 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21334 as needed.
21335 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21336 rescans. Reprocess blocks as needed, calling df_analyze before
21337 reprocessing. Always call df_analyze before fixing up debug bind
21338 insns.
21339
21340 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21341
21342 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21343 big endian.
21344
21345 2019-03-22 Andrew Pinski <apinski@marvell.com>
21346
21347 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21348 attrribute for uxtw.
21349
21350 2019-03-26 Jeff Law <law@redhat.com>
21351
21352 PR rtl-optimization/87761
21353 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21354 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21355 (mips_split_move): Accept new INSN argument. Try to forward SRC
21356 into the next instruction.
21357 (mips_split_move_insn): Pass INSN through to mips_split_move.
21358
21359 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21360
21361 PR rtl-optimization/89676
21362 * lra-constraints.c (curr_insn_transform): Do match reload for
21363 early clobbers even if the match was successful.
21364
21365 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21366
21367 PR c++/87481
21368 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21369
21370 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21371
21372 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21373
21374 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21375
21376 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21377 <avx512>_fmsub_<mode>_mask3<round_name>,
21378 <avx512>_fnmadd_<mode>_mask3<round_name>,
21379 <avx512>_fnmsub_<mode>_mask3<round_name>,
21380 avx512f_vmfmadd_<mode>_mask3<round_name>,
21381 avx512f_vmfmsub_<mode>_mask3<round_name>,
21382 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21383 instead of register_operand and %v instead of v for match_operand 1.
21384 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21385 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21386 <round_nimm_predicate> instead of register_operand and %v instead of v
21387 for match_operand 1.
21388
21389 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21390 <avx512>_fmadd_<mode>_mask3<round_name>,
21391 <avx512>_fmsub_<mode>_mask<round_name>,
21392 <avx512>_fmsub_<mode>_mask3<round_name>,
21393 <avx512>_fnmadd_<mode>_mask<round_name>,
21394 <avx512>_fnmadd_<mode>_mask3<round_name>,
21395 <avx512>_fnmsub_<mode>_mask<round_name>,
21396 <avx512>_fnmsub_<mode>_mask3<round_name>,
21397 <avx512>_fmaddsub_<mode>_mask<round_name>,
21398 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21399 <avx512>_fmsubadd_<mode>_mask<round_name>,
21400 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21401 <round_nimm_predicate> instead of nonimmediate_operand.
21402 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21403 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21404 Use register_operand instead of <round_nimm_predicate> for the
21405 operand that needs to match output.
21406 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21407 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21408 Likewise. Formatting fixes.
21409
21410 PR target/89784
21411 * config/i386/i386.c (enum ix86_builtins): Remove
21412 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21413 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21414 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21415 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21416 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21417 __builtin_ia32_vfmsubss3_mask3): New builtins.
21418 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21419 avx512f_vmfmadd_<mode>_mask3<round_name>,
21420 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21421 *avx512f_vmfmsub_<mode>_mask<round_name>,
21422 avx512f_vmfmsub_<mode>_mask3<round_name>,
21423 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21424 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21425 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21426 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21427 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21428 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21429 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21430 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21431 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21432 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21433 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21434 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21435 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21436 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21437 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21438 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21439 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21440 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21441 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21442 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21443 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21444 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21445 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21446 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21447 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21448 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21449 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21450 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21451
21452 2019-03-21 Martin Sebor <msebor@redhat.com>
21453
21454 PR tree-optimization/89350
21455 * builtins.c (compute_objsize): Also ignore offsets whose upper
21456 bound is negative.
21457 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21458 (builtin_memref::builtin_memref): Initialize new member.
21459 Allow EXPR to be null.
21460 (builtin_memref::extend_offset_range): Replace local with a member.
21461 Avoid assuming pointer offsets are unsigned.
21462 (builtin_memref::set_base_and_offset): Determine base object
21463 before computing offset range.
21464 (builtin_access::builtin_access): Handle memset.
21465 (builtin_access::generic_overlap): Replace local with a member.
21466 (builtin_access::strcat_overlap): Same.
21467 (builtin_access::overlap): Same.
21468 (maybe_diag_overlap): Same.
21469 (maybe_diag_access_bounds): Same.
21470 (wrestrict_dom_walker::check_call): Handle memset.
21471 (check_bounds_or_overlap): Same.
21472
21473 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21474 Jakub Jelinek <jakub@redhat.com>
21475
21476 PR lto/89692
21477 * tree.c (fld_type_variant, fld_incomplete_type_of,
21478 fld_process_array_type): Call fld->pset.add and don't call
21479 add_tree_to_fld_list if it returns true.
21480 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21481 non-marked types from TYPE_NEXT_VARIANT list.
21482 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21483
21484 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21485
21486 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21487 to false, if true, don't alloc_entries during construction, but defer
21488 it to the first method that needs m_entries allocated.
21489 (hash_table::hash_table, hash_table::~hash_table,
21490 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21491 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21492 hash_table::clear_slot, hash_table::traverse_noresize,
21493 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21494 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21495 false.
21496 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21497 NO_INSERT instead of find_with_hash.
21498 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21499 hash_set::m_table): Add Lazy to template params of hash_table.
21500 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21501 * attribs.c (test_attribute_exclusions): Likewise.
21502 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21503 hash_set. Add tests for hash_set with Lazy = true.
21504
21505 2019-03-21 Richard Biener <rguenther@suse.de>
21506
21507 PR tree-optimization/89779
21508 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21509 checks with respect to released SSA names now having error_mark_node
21510 type.
21511 * fold-const.c (operand_equal_p): Likewise.
21512
21513 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21514
21515 PR target/89775
21516 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21517 available to ...
21518 (s390_optimize_register_info): Use global_not_special_regno_p to
21519 check for global regs.
21520
21521 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21522
21523 PR target/89752
21524 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21525 update this_alternative nor this_alternative_set.
21526
21527 2019-03-19 Jim Wilson <jimw@sifive.com>
21528
21529 PR target/89411
21530 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21531 align, size, offset. Use them to handle a BLKmode reference. Update
21532 comment.
21533 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21534
21535 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21536
21537 PR rtl-optimization/89768
21538 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21539 instead of GEN_INT.
21540 (unroll_loop_runtime_iterations): Likewise.
21541
21542 2019-03-19 Martin Sebor <msebor@redhat.com>
21543
21544 PR tree-optimization/89644
21545 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21546 rather than endptr as an indicator of nul-termination.
21547
21548 PR tree-optimization/89644
21549 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21550 arrays in determining sequence sizes in strncpy and stpncpy.
21551
21552 2019-03-19 Martin Liska <mliska@suse.cz>
21553
21554 PR middle-end/89737
21555 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21556 unlikely_edges if there's an edge that belongs to both these sets.
21557
21558 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21559
21560 PR target/89746
21561 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21562 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21563 go via a stack temporary.
21564
21565 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21566
21567 PR target/89378
21568 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21569 instead of gen_rtx_SUBREG.
21570 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21571
21572 2019-03-19 Richard Biener <rguenther@suse.de>
21573
21574 PR debug/88389
21575 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21576
21577 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21578
21579 PR lto/87809
21580 PR lto/89335
21581 * tree.c (free_lang_data_in_decl): Do not free context of C++
21582 destrutors.
21583
21584 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21585
21586 PR target/89506
21587 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21588 subs for the first alternative except when operands[3] is 1.
21589
21590 PR target/89752
21591 * gimplify.c (gimplify_asm_expr): For output argument with
21592 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21593 diagnose error.
21594
21595 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21596
21597 PR rtl-optimization/89753
21598 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21599 explicit unrolling factor even more robust.
21600
21601 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21602
21603 PR target/89726
21604 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21605 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21606 signed zeros, do another copysign after the compensation.
21607
21608 2019-03-18 Martin Sebor <msebor@redhat.com>
21609
21610 PR tree-optimization/89720
21611 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21612 more conservatively, the same as anti-range.
21613
21614 2019-03-18 Richard Biener <rguenther@suse.de>
21615
21616 PR middle-end/88945
21617 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21618 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21619 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21620 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21621
21622 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21623
21624 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21625 Extend queue to 1024 entries.
21626 Add "consumed" field.
21627 (gomp_print_output): Remove print_index parameter.
21628 Add final parameter.
21629 Change limit to unsigned.
21630 Use consumed field to implement circular buffer.
21631 Detect interrupted print in final pass.
21632 Flush output at the end.
21633 (run): Update gomp_print_output usage.
21634 (main): Initialize kernargs->output_data.consumed.
21635
21636 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21637
21638 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21639 calculation of the minimum number of scalar iterations for
21640 fully-predicated loops.
21641
21642 2019-03-18 Martin Jambor <mjambor@suse.cz>
21643
21644 PR tree-optimization/89546
21645 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21646 any propagation to its children took place.
21647
21648 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21649
21650 PR target/89627
21651 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21652 parameter, and make use of it.
21653 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21654
21655 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21656
21657 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21658 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21659 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21660 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21661 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21662 match what the ops is doing.
21663 (push_multi_fp_blink): Likewise.
21664 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21665 compiling for size and elf target.
21666 (arc_save_callee_enter): Adjust note to match what enter/leave
21667 operation does.
21668
21669 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21670
21671 * config/arc/arc.md (tst_movb): Fix constraint.
21672
21673 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21674
21675 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21676
21677 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21678
21679 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21680 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21681 reg_alloc_order references.
21682 (size_alloc_order): Define.
21683 (arc_adjust_reg_alloc_order): New function.
21684 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21685 order.
21686 (ADJUST_REG_ALLOC_ORDER): Define.
21687 (HONOR_REG_ALLOC_ORDER): Likewise.
21688
21689 2019-03-18 Richard Biener <rguenther@suse.de>
21690
21691 PR target/87561
21692 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21693 loads and stores a bit more.
21694
21695 2019-03-18 Richard Biener <rguenther@suse.de>
21696
21697 PR target/87561
21698 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21699 load pessimization to stores as well.
21700
21701 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21702
21703 PR middle-end/86979
21704 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21705 successor, use NULL as its av set.
21706
21707 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21708
21709 PR rtl-optimization/89721
21710 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21711
21712 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21713
21714 PR target/87532
21715 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21716 When handling vec_extract, use modular arithmetic to allow
21717 constant selectors greater than vector length.
21718 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21719 V1TImode vectors to have constant selector values greater than 0.
21720 Use modular arithmetic to compute vector index.
21721 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21722 index for in-memory vectors. Correct code generation for
21723 in-register vectors.
21724 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21725 compute index.
21726
21727 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21728
21729 PR c++/88534
21730 PR c++/88537
21731 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21732 VAR_DECL args.
21733
21734 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21735
21736 PR c++/89709
21737 * tree.c (inchash::add_expr): Strip any location wrappers.
21738 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21739 after hash verification.
21740
21741 PR debug/89704
21742 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21743 SIGN_EXTEND and ZERO_EXTEND.
21744
21745 2019-03-14 Jason Merrill <jason@redhat.com>
21746 Jakub Jelinek <jakub@redhat.com>
21747
21748 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21749 than if is_empty (*slot).
21750 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21751 existing elt and for elt removal.
21752 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21753 of already removed elt.
21754
21755 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21756
21757 PR target/89650
21758 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21759 REG_EH_REGION note.
21760
21761 2019-03-14 Martin Liska <mliska@suse.cz>
21762
21763 PR other/89712
21764 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21765
21766 2019-03-14 Richard Biener <rguenther@suse.de>
21767
21768 PR target/89711
21769 * config/i386/i386.c (make_resolver_func): Properly set
21770 DECL_CONTEXT on the RESULT_DECL.
21771 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21772
21773 2019-03-14 Richard Biener <rguenther@suse.de>
21774
21775 * gimple-pretty-print.c: Include cfgloop.h.
21776 (dump_gimple_phi): Adjust.
21777 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21778 (pp_cfg_jump): Adjust.
21779 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21780 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21781 (lower_phi_internal_fn): Remove.
21782 (verify_gimple_call): Remove IFN_PHI special-casing.
21783 (dump_function_to_file): Dump IL state.
21784 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21785 done to deal with PHI nodes being present in non-SSA state.
21786
21787 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21788
21789 PR ipa/89684
21790 * multiple_target.c (create_dispatcher_calls): Change
21791 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21792 In the node->iterate_referring loop, push *ref rather than ref, call
21793 ref->remove_reference () and always pass 0 to iterate_referring.
21794
21795 PR rtl-optimization/89679
21796 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21797 would contain a paradoxical SUBREG.
21798
21799 2019-03-14 Richard Biener <rguenther@suse.de>
21800
21801 PR tree-optimization/89710
21802 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21803 safe_dyn_cast.
21804
21805 2019-03-14 Martin Liska <mliska@suse.cz>
21806
21807 * coverage.c (coverage_begin_function): Stream also
21808 end_column.
21809 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21810 documentation about function declaration location.
21811 * gcov-dump.c (tag_function): Print whole range
21812 of function declaration.
21813 * gcov.c (struct function_info): Add end_column field.
21814 (function_info::function_info): Initialize it.
21815 (output_json_intermediate_file): Output {start,end}_column
21816 fields.
21817 (read_graph_file): Read end_column.
21818
21819 2019-03-14 Richard Biener <rguenther@suse.de>
21820
21821 PR middle-end/89698
21822 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21823 that the access types are similar.
21824
21825 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21826
21827 PR tree-optimization/89703
21828 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21829 aren't compatible also with builtin_decl_explicit. Check pure
21830 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21831 and BUILT_IN_STPNCPY{,_CHK}.
21832
21833 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21834
21835 PR target/89523
21836 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21837 addr32 prefix to VSIB address for X32.
21838 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21839 "%M2" to opcode.
21840 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21841 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21842 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21843 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21844 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21845 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21846 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21847 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21848 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21849 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21850 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21851 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21852 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21853 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21854 (*avx512f_scatterdi<mode>): Likewise.
21855
21856 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21857
21858 PR target/85860
21859 * lra-constraints.c (inherit_in_ebb): Update
21860 potential_reload_hard_regs along with live_hard_regs.
21861
21862 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21863
21864 PR debug/89498
21865 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21866 DWARF_OFFSET_SIZE.
21867 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21868
21869 2019-03-13 Martin Sebor <msebor@redhat.com>
21870
21871 PR tree-optimization/89662
21872 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21873 has a size.
21874
21875 2019-03-13 Richard Biener <rguenther@suse.de>
21876
21877 PR middle-end/89677
21878 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21879 throw FP expressions at tree-affine.
21880
21881 2019-03-14 Richard Biener <rguenther@suse.de>
21882
21883 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21884 dump negative integer constants using _Literal (type) -num.
21885
21886 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21887
21888 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21889 nonlocal_value member.
21890
21891 PR middle-end/88588
21892 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21893 (ipa_simd_modify_function_body): Handle PHIs.
21894
21895 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21896
21897 * config/s390/s390.c (s390_option_override_internal): Use more
21898 aggressive inlining parameters.
21899
21900 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21901
21902 * config/s390/3906.md: New file.
21903 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21904 (LONGRUNNING_THRESHOLD): Remove.
21905 (MAX_SCHED_MIX_SCORE): Decrease.
21906 (MAX_SCHED_MIX_DISTANCE): Decrease.
21907 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21908 (struct s390_sched_state): New struct to hold scheduling state.
21909 (S390_SCHED_STATE_NORMAL): Remove.
21910 (S390_SCHED_STATE_CRACKED): Remove.
21911 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21912 (s390_get_sched_attrmask): Use new attribute.
21913 (s390_get_unit_mask): Use new units.
21914 (s390_is_fpd): New function.
21915 (s390_is_fxd): New function.
21916 (s390_is_longrunning): New function.
21917 (s390_sched_score): Use new functions.
21918 (s390_sched_reorder): Likewise.
21919 (s390_sched_variable_issue): Rework and use new functions.
21920 (s390_sched_init): Use new functions.
21921 * config/s390/s390.h (s390_tune_attr): Add z14.
21922 * config/s390/s390.md: Add z14.
21923
21924 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21925
21926 * config/s390/2964.md: Update pipeline description.
21927 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21928 (LONGRUNNING_THRESHOLD): Remove.
21929 (LATENCY_FACTOR): Remove.
21930 (s390_get_unit_mask): Add unit.
21931 (s390_sched_score): Use fxd/fpd.
21932 (s390_sched_variable_issue): Use fxd/fpd.
21933
21934 2019-03-12 Martin Liska <mliska@suse.cz>
21935
21936 * config/i386/i386.c: Reword an error message.
21937
21938 2019-03-12 Martin Jambor <mjambor@suse.cz>
21939
21940 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21941 terminate with newline.
21942
21943 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21944
21945 PR target/52726
21946 * config/s390/s390.md (tabort): Use %wd instead of
21947 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21948 letters and periods.
21949 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21950 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21951 's with %< and %>.
21952
21953 PR middle-end/89663
21954 * builtins.c (expand_builtin_int_roundingfn,
21955 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21956 gcc_unreachable if validate_arglist fails.
21957
21958 2019-03-12 Richard Biener <rguenther@suse.de>
21959
21960 PR tree-optimization/89664
21961 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21962 free the occurance tree after the early out.
21963
21964 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21965
21966 PR middle-end/89655
21967 PR bootstrap/89656
21968 * vr-values.c (vr_values::update_value_range): If
21969 old_vr->varying_p (), don't update it, make new_vr also VARYING
21970 and return false.
21971
21972 2019-03-11 Martin Liska <mliska@suse.cz>
21973
21974 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21975 Fix double string quoting.
21976
21977 2019-03-11 Martin Liska <mliska@suse.cz>
21978
21979 * collect-utils.c (collect_wait): Wrap apostrophes
21980 in gcc internal format with %'.
21981 * collect2.c (main): Likewise.
21982 (scan_prog_file): Likewise.
21983 (scan_libraries): Likewise.
21984 * config/i386/i386.c (ix86_expand_call): Likewise.
21985 (ix86_handle_interrupt_attribute): Likewise.
21986 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21987 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21988 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21989 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21990 * symtab.c (symtab_node::verify_base): Likewise.
21991 * tree-cfg.c (verify_gimple_label): Likewise.
21992 * tree.c (verify_type_variant): Likewise.
21993
21994 2019-03-11 Martin Liska <mliska@suse.cz>
21995
21996 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21997 in a string format message and fix GNU coding style.
21998 (expand_builtin_set_thread_pointer): Likewise.
21999 * common/config/aarch64/aarch64-common.c
22000 (aarch64_rewrite_selected_cpu): Likewise.
22001 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22002 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22003 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22004 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22005 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22006 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22007 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22008 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22009 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22010 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22011 Likewise.
22012 * common/config/riscv/riscv-common.c
22013 (riscv_subset_list::parsing_subset_version): Likewise.
22014 (riscv_subset_list::parse_std_ext): Likewise.
22015 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22016 (riscv_subset_list::parse): Likewise.
22017 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22018 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22019 (aarch64_override_options_internal): Likewise.
22020 (aarch64_validate_mcpu): Likewise.
22021 (aarch64_validate_march): Likewise.
22022 (aarch64_validate_mtune): Likewise.
22023 (aarch64_override_options): Likewise.
22024 * config/alpha/alpha.c (alpha_option_override): Likewise.
22025 * config/arc/arc.c (arc_init): Likewise.
22026 (parse_mrgf_banked_regs_option): Likewise.
22027 (arc_override_options): Likewise.
22028 (arc_expand_builtin_aligned): Likewise.
22029 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22030 (arm_expand_builtin): Likewise.
22031 * config/arm/arm.c (arm_option_check_internal): Likewise.
22032 (arm_configure_build_target): Likewise.
22033 (arm_option_override): Likewise.
22034 (arm_options_perform_arch_sanity_checks): Likewise.
22035 (arm_handle_cmse_nonsecure_entry): Likewise.
22036 (arm_handle_cmse_nonsecure_call): Likewise.
22037 (arm_tls_referenced_p): Likewise.
22038 (thumb1_expand_prologue): Likewise.
22039 * config/avr/avr.c (avr_option_override): Likewise.
22040 * config/bfin/bfin.c (bfin_option_override): Likewise.
22041 * config/c6x/c6x.c (c6x_option_override): Likewise.
22042 * config/cr16/cr16.c (cr16_override_options): Likewise.
22043 * config/cris/cris.c (cris_option_override): Likewise.
22044 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22045 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22046 * config/darwin.c (darwin_override_options): Likewise.
22047 * config/frv/frv.c (frv_expand_builtin): Likewise.
22048 * config/h8300/h8300.c (h8300_option_override): Likewise.
22049 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22050 (ix86_option_override_internal): Likewise.
22051 (warn_once_call_ms2sysv_xlogues): Likewise.
22052 (ix86_expand_prologue): Likewise.
22053 (split_stack_prologue_scratch_regno): Likewise.
22054 (ix86_warn_parameter_passing_abi): Likewise.
22055 * config/ia64/ia64.c (fix_range): Likewise.
22056 * config/m68k/m68k.c (m68k_option_override): Likewise.
22057 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22058 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22059 (mips_set_compression_mode): Likewise.
22060 * config/mmix/mmix.c (mmix_option_override): Likewise.
22061 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22062 * config/msp430/msp430.c (msp430_option_override): Likewise.
22063 * config/nds32/nds32.c (nds32_option_override): Likewise.
22064 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22065 (nios2_option_override): Likewise.
22066 (nios2_expand_custom_builtin): Likewise.
22067 * config/nvptx/mkoffload.c (main): Likewise.
22068 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22069 * config/pa/pa.c (fix_range): Likewise.
22070 (pa_option_override): Likewise.
22071 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22072 (riscv_option_override): Likewise.
22073 * config/rl78/rl78.c (rl78_option_override): Likewise.
22074 * config/rs6000/aix61.h: Likewise.
22075 * config/rs6000/aix71.h: Likewise.
22076 * config/rs6000/aix72.h: Likewise.
22077 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22078 * config/rs6000/freebsd64.h: Likewise.
22079 * config/rs6000/linux64.h: Likewise.
22080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22081 (rs6000_expand_zeroop_builtin): Likewise.
22082 (rs6000_expand_mtfsb_builtin): Likewise.
22083 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22084 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22085 (rs6000_invalid_builtin): Likewise.
22086 (rs6000_expand_split_stack_prologue): Likewise.
22087 * config/rs6000/rtems.h: Likewise.
22088 * config/rx/rx.c (valid_psw_flag): Likewise.
22089 (rx_expand_builtin): Likewise.
22090 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22091 * config/s390/s390.c (s390_expand_builtin): Likewise.
22092 (s390_function_profiler): Likewise.
22093 (s390_option_override_internal): Likewise.
22094 (s390_option_override): Likewise.
22095 * config/sh/sh.c (sh_option_override): Likewise.
22096 (sh_builtin_saveregs): Likewise.
22097 (sh_fix_range): Likewise.
22098 * config/sh/vxworks.h: Likewise.
22099 * config/sparc/sparc.c (sparc_option_override): Likewise.
22100 * config/spu/spu.c (spu_option_override): Likewise.
22101 (fix_range): Likewise.
22102 * config/visium/visium.c (visium_option_override): Likewise.
22103 (visium_handle_interrupt_attr): Likewise.
22104 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22105 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22106 (dbg_cnt_process_opt): Likewise.
22107 * dwarf2out.c (output_dwarf_version): Likewise.
22108 * except.c (expand_eh_return): Likewise.
22109 * gcc.c (defined): Likewise.
22110 (driver_handle_option): Likewise.
22111 (process_command): Likewise.
22112 (compare_files): Likewise.
22113 (driver::prepare_infiles): Likewise.
22114 (driver::do_spec_on_infiles): Likewise.
22115 (driver::maybe_run_linker): Likewise.
22116 * omp-offload.c (oacc_parse_default_dims): Likewise.
22117 * opts-global.c (handle_common_deferred_options): Likewise.
22118 * opts.c (parse_sanitizer_options): Likewise.
22119 (common_handle_option): Likewise.
22120 (enable_warning_as_error): Likewise.
22121 * passes.c (enable_disable_pass): Likewise.
22122 * plugin.c (parse_plugin_arg_opt): Likewise.
22123 (default_plugin_dir_name): Likewise.
22124 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22125 (default_pch_valid_p): Likewise.
22126 * toplev.c (init_asm_output): Likewise.
22127 (process_options): Likewise.
22128 (toplev::run_self_tests): Likewise.
22129 * tree-cfg.c (verify_gimple_call): Likewise.
22130 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22131 (tree_inlinable_function_p): Likewise.
22132 * var-tracking.c (vt_find_locations): Likewise.
22133
22134 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22135
22136 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22137 only on the else branch.
22138
22139 2019-03-11 Martin Liska <mliska@suse.cz>
22140
22141 * gcov.c (output_intermediate_json_line): Print function
22142 name of each line.
22143 (output_json_intermediate_file): Add new argument.
22144 * doc/gcov.texi: Document the change.
22145
22146 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22147
22148 PR rtl-optimization/89588
22149 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22150 explicit unrolling factor more robust.
22151
22152 2019-03-11 Richard Biener <rguenther@suse.de>
22153
22154 PR tree-optimization/89649
22155 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22156 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22157 on the prolog and epilog loops.
22158 (vect_loop_versioning): Return copy of loop.
22159 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22160 on the non-vectorized version of the loop.
22161
22162 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22163
22164 PR target/68924
22165 * config/i386/sse.md (*vec_extractv2di_0_sse):
22166 Add (=r,x) alternative and corresponding splitter.
22167
22168 2019-03-10 Martin Jambor <mjambor@suse.cz>
22169
22170 PR tree-optimization/85762
22171 PR tree-optimization/87008
22172 PR tree-optimization/85459
22173 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22174 it points to if there is a type changing MEM_REF. Adjust all callers.
22175 (build_accesses_from_assign): Disable total scalarization if
22176 contains_vce_or_bfcref_p returns true through the new parameter, for
22177 both rhs and lhs.
22178
22179 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22180
22181 PR c/88568
22182 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22183 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22184
22185 PR target/79645
22186 * common.opt (fdiagnostics-show-labels,
22187 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22188 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22189 gas-locview-support, ginline-points, ginternal-reset-location-views):
22190 Terminate description text with a dot.
22191 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22192 * config/mcore/mcore.opt (m210, m340): Likewise.
22193 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22194 mnops=): Start description text with a capital letter.
22195 * config/arc/arc.opt (msize-level=): Likewise.
22196 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22197 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22198 mnewlib): Likewise.
22199 * config/ft32/ft32.opt (msim): Likewise.
22200 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22201 (mnodiv, mnopm): Terminate description text with a dot.
22202 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22203 a colon.
22204 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22205 Likewise.
22206 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22207 text.
22208
22209 PR rtl-optimization/89634
22210 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22211 are modified in BB_END (e->src) instruction.
22212
22213 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22214
22215 PR target/79926
22216 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22217 messages more amenable to translation, and improve wording.
22218
22219 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22220
22221 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22222 ud- and du-chains between phases.
22223
22224 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22225
22226 PR debug/89631
22227 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22228 instead of POLY_INT_CST.
22229
22230 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22231
22232 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22233 requirement.
22234
22235 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22236
22237 PR target/68924
22238 PR target/78782
22239 PR target/87558
22240 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22241 (_mm_storeu_si64): Ditto.
22242
22243 2019-03-08 Martin Liska <mliska@suse.cz>
22244
22245 PR target/86952
22246 * config/i386/i386.c (ix86_option_override_internal): Disable
22247 jump tables when retpolines are used.
22248
22249 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22250
22251 PR go/63560
22252 * ipa-split.c (execute_split_functions): Do not split
22253 'noinline' or 'section' function.
22254
22255 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22256
22257 PR target/79846
22258 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22259 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22260 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22261
22262 PR ipa/80000
22263 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22264 from diagnostics. Formatting fixes.
22265
22266 PR target/85665
22267 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22268 warn_odr diagnostics.
22269
22270 PR other/80058
22271 * lra-constraints.c (process_alt_operands): Avoid one space before
22272 " at the end of line and another after " on another line in a string
22273 literal.
22274 * attribs.c (handle_dll_attribute): Likewise.
22275 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22276
22277 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22278 warning_at or inform messages in G_() if there is no ?:.
22279
22280 PR tree-optimization/89550
22281 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22282 returned true. Formatting fixes.
22283 (expand_builtin_strnlen): Formatting fixes.
22284 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22285 if warning_at returned true.
22286 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22287
22288 2019-03-08 Richard Biener <rguenther@suse.de>
22289
22290 PR middle-end/89578
22291 * cfgloop.h (struct loop): Add owned_clique field.
22292 * cfgloopmanip.c (copy_loop_info): Copy it.
22293 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22294 cliques.
22295 * tree-inline.c (copy_loops): Remap owned_clique.
22296 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22297 * lto-streamer-out.c (output_cfg): Likewise.
22298
22299 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22300
22301 PR target/80190
22302 * config/darwin.c: Include intl.h.
22303 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22304 composing the message out of two separate parts.
22305
22306 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22307
22308 PR target/80003
22309 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22310 doesn't start with a capital letter and doesn't end with a dot.
22311 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22312 with a capital letter.
22313 (ix86_mangle_function_version_assembler_name): Likewise.
22314 (ix86_generate_version_dispatcher_body): Likewise.
22315 (fold_builtin_cpu): Likewise.
22316 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22317 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22318 translators, wrap full type name in %qs.
22319
22320 PR translation/79999
22321 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22322 depend clause with source (or sink) modifier.
22323 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22324
22325 PR target/89602
22326 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22327 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22328 (avx512f_load<mode>_mask): New define_expand.
22329 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22330 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22331 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22332 __builtin_ia32_movess_mask): New builtins.
22333 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22334 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22335 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22336 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22337
22338 2019-03-07 Martin Jambor <mjambor@suse.cz>
22339
22340 PR lto/87525
22341 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22342 for extern inline functions.
22343
22344 2019-03-07 Martin Jambor <mjambor@suse.cz>
22345
22346 PR ipa/88235
22347 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22348 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22349 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22350 have multiple callees. At the end check if declarations match as
22351 opposed to cgraph_nodes.
22352
22353 2019-03-07 Martin Liska <mliska@suse.cz>
22354
22355 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22356 which is equivalent to searching for this in clones chain.
22357 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22358 names with a neighbour and special case first node in a chain.
22359
22360 2019-01-25 Jason Merrill <jason@redhat.com>
22361
22362 PR c++/80916 - spurious "static but not defined" warning.
22363 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22364 for an internal symbol with DECL_EXTERNAL.
22365
22366 2019-04-07 Richard Biener <rguenther@suse.de>
22367
22368 PR middle-end/89618
22369 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22370 * tree-inline.c (copy_loops): Simplify.
22371
22372 2019-03-07 Martin Liska <mliska@suse.cz>
22373
22374 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22375
22376 2019-03-07 Richard Biener <rguenther@suse.de>
22377
22378 PR tree-optimization/89595
22379 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22380 stmt iterator as reference, take boolean output parameter to
22381 indicate whether the stmt was removed and thus the iterator
22382 already advanced.
22383 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22384 stmts created by folding.
22385
22386 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR c++/89585
22389 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22390 at toplevel.
22391
22392 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22393
22394 PR rtl-optimization/88845
22395 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22396 LRA.
22397 * lra.c (remove_scratches_1): New function.
22398 (remove_scratches): Use it.
22399 (lra_emit_move): Likewise.
22400
22401 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22402
22403 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22404 unaligned_access variable.
22405 * config/arc/arc.c (arc_override_options): Set unaligned access
22406 default on for HS CPUs.
22407 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22408
22409 2019-03-06 Martin Liska <mliska@suse.cz>
22410
22411 PR gcov-profile/89577
22412 * doc/gcov.texi: Prefer to use --coverage.
22413 * doc/sourcebuild.texi: Likewise.
22414
22415 2019-03-02 Jason Merrill <jason@redhat.com>
22416
22417 PR c++/86485 - -Wmaybe-unused with empty class ?:
22418 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22419
22420 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22421
22422 PR target/89587
22423 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22424 if_multiarch.
22425
22426 PR middle-end/89590
22427 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22428 exactly one argument.
22429
22430 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22431 Richard Sandiford <richard.sandiford@arm.com>
22432
22433 PR tree-optimization/89570
22434 * match.pd (vec_cond into cond_op simplification): Don't use
22435 get_conditional_internal_fn, use as_internal_fn (cond_op).
22436
22437 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22438
22439 PR target/89222
22440 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22441 to decide when to split off a non-zero offset from a symbol.
22442 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22443 in function symbols.
22444
22445 2019-03-05 Richard Biener <rguenther@suse.de>
22446
22447 PR tree-optimization/89594
22448 * tree-if-conv.c (pass_if_conversion::execute): Handle
22449 case where .LOOP_VECTORIZED_FUNCTION was removed.
22450
22451 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22452
22453 PR bootstrap/89560
22454 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22455 instead alloca it only when needed with the needed size.
22456
22457 PR tree-optimization/89570
22458 * match.pd (vec_cond into cond_op simplification): Guard with
22459 vectorized_internal_fn_supported_p test and #if GIMPLE.
22460
22461 PR tree-optimization/89566
22462 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22463 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22464 Punt if get_user_idx_format succeeds, but idx_format argument is
22465 not provided or doesn't have pointer type, or if idx_args is above
22466 number of provided arguments.
22467
22468 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22469
22470 PR tree-optimization/89437
22471 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22472
22473 2019-03-04 Richard Biener <rguenther@suse.de>
22474
22475 PR middle-end/89572
22476 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22477 safe_dyn_cast.
22478
22479 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22480
22481 PR tree-optimization/89487
22482 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22483 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22484 (distribute_loop): Don't do runtime alias check if there is non-
22485 addressable data reference.
22486 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22487 is a register variable.
22488
22489 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22490
22491 PR target/89506
22492 * config/arm/arm.md (cmpsi2_addneg): Use
22493 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22494 If operands[2] is 0 or INT_MIN, force use of subs.
22495 (*compare_scc splitter): Use gen_int_mode.
22496 (*negscc): Likewise.
22497 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22498
22499 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22500 Monk Chiang <sh.chiang04@gmail.com>
22501
22502 * common/config/riscv/riscv-common.c: Include sstream.
22503 (riscv_subset_list::to_string): New.
22504 (riscv_arch_str): Likewise.
22505 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22506 * config.in: Regen.
22507 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22508 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22509 (riscv_emit_attribute): New.
22510 (riscv_file_start): Emit attribute if needed.
22511 (riscv_option_override): Init riscv_emit_attribute_p.
22512 * config/riscv/riscv.opt (mriscv-attribute): New option.
22513 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22514 * configure: Regen.
22515 * doc/install.texi: Document --with-riscv-attribute.
22516 * doc/invoke.texi: Document -mriscv-attribute.
22517
22518 * common/config/riscv/riscv-common.c:
22519 Include config/riscv/riscv-protos.h.
22520 (INCLUDE_STRING): Defined.
22521 (RISCV_DONT_CARE_VERSION): Defined.
22522 (riscv_subset_t): Declare.
22523 (riscv_subset_t::riscv_subset_t): New.
22524 (riscv_subset_list): Declare.
22525 (riscv_subset_list::riscv_subset_list): New.
22526 (riscv_subset_list::~riscv_subset_list): Likewise.
22527 (riscv_subset_list::parsing_subset_version): Likewise.
22528 (riscv_subset_list::parse_std_ext): Likewise.
22529 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22530 (riscv_subset_list::add): Likewise.
22531 (riscv_subset_list::lookup): Likewise.
22532 (riscv_subset_list::xlen): Likewise.
22533 (riscv_subset_list::parse): Likewise.
22534 (riscv_supported_std_ext): Likewise.
22535 (current_subset_list): Likewise.
22536 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22537 parse.
22538
22539 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22540
22541 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22542 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22543 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22544
22545 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22546
22547 PR rtl-optimization/85899
22548 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22549 fallthru edges leading to the exit block.
22550
22551 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22552
22553 PR target/89517
22554 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22555 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22556
22557 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22558
22559 PR tree-optimization/89535
22560 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22561 for each operand. Calculate the fallback choice for mask operands
22562 and pass it to vect_get_vec_def_for_operand.
22563
22564 2019-03-01 Richard Biener <rguenther@suse.de>
22565
22566 PR middle-end/89541
22567 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22568 get virtual operands.
22569 (get_expr_operands): Handle CONST_DECL like other decls.
22570
22571 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22572
22573 PR middle-end/89503
22574 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22575 on DECL_P and EXPR_P.
22576
22577 2019-03-01 Richard Biener <rguenther@suse.de>
22578
22579 PR middle-end/89497
22580 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22581 argument, defaulted to zero.
22582 * passes.c (execute_function_todo): Pass down SSA update flags
22583 to cleanup_tree_cfg.
22584 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22585 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22586 form if requested.
22587 (cleanup_tree_cfg): Get and pass down SSA update flags.
22588
22589 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22590
22591 PR bootstrap/89539
22592 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22593 early_lto_debug argument.
22594
22595 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22596
22597 PR tree-optimization/89536
22598 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22599 only whether bit #0 of the value is 0 instead of the entire value.
22600
22601 2019-02-28 Marek Polacek <polacek@redhat.com>
22602
22603 PR c++/87068 - missing diagnostic with fallthrough statement.
22604 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22605 at the end of a seq, save its location to walk_stmt_info.
22606 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22607 a switch.
22608
22609 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22610
22611 PR lto/88585
22612 * tree.c (find_atomic_core_type): Move ahead in file.
22613 (check_base_type): Correctly compare alignments of atomic types.
22614
22615 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22616
22617 PR target/89455
22618 * config/i386/i386.c (get_builtin_code_for_version): Identify
22619 Westmere from PCLMUL, instead of AES.
22620
22621 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22622
22623 PR target/89434
22624 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22625 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22626 -UINTVAL (...).
22627
22628 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22629
22630 PR target/88530
22631 * config/aarch64/aarch64-option-extensions.def: Document it.
22632 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22633 if empty hwcaps.
22634
22635 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22636
22637 PR c/89520
22638 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22639 builtins if they don't have a single scalar floating point argument.
22640 Formatting fixes.
22641
22642 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22643
22644 PR rtl-optimization/89490
22645 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22646 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22647 block section is not mergeable.
22648
22649 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22650
22651 PR target/70341
22652 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22653 old define_insn to ...
22654 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22655 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22656 Rename old define_insn to ...
22657 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22658 (thumb2_casesi_internal_pic): New define_expand. Rename old
22659 define_insn to ...
22660 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22661 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22662 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22663
22664 2019-02-27 Richard Biener <rguenther@suse.de>
22665
22666 PR debug/88878
22667 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22668
22669 2019-02-27 Richard Biener <rguenther@suse.de>
22670
22671 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22672 building.
22673
22674 2019-02-27 Richard Biener <rguenther@suse.de>
22675
22676 PR debug/88878
22677 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22678 parameter, prefix section name with .gnu.debuglto_ if true.
22679 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22680 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22681
22682 2019-02-27 Richard Biener <rguenther@suse.de>
22683
22684 PR debug/89514
22685 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22686 rather than on use_debug_types, doing what output_die does.
22687 (value_format): Likewise.
22688
22689 2019-02-27 Martin Jambor <mjambor@suse.cz>
22690 Martin Sebor <msebor@redhat.com>
22691
22692 * doc/invoke.texi (Warning Options): Reword description of
22693 -Wno-absolute-value.
22694
22695 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22696
22697 PR tree-optimization/89280
22698 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22699 builtin_setjmp_setup_bb): New functions.
22700 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22701 When visiting __builtin_setjmp_setup block, queue in special
22702 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22703 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22704 from visited after the loop if they don't have any visited successor
22705 blocks.
22706
22707 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22708
22709 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22710 New function.
22711 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22712
22713 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22714
22715 PR c++/89507
22716 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22717 with types other than sizetype/ssizetype.
22718
22719 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22720
22721 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22722 (enum sparc_processor_type): ...this.
22723 (enum sparc_code_model_type): New enumeration type.
22724 (enum sparc_memory_model_type): Tweak comments.
22725 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22726 (mtune): Likewise.
22727 (mcmodel): Use sparc_code_model enumeration and variable.
22728 (sparc_code_model): New enumeration.
22729 (mdebug): Add Undocumented marker.
22730 * config/sparc/sparc.h (enum cmodel): Delete.
22731 (sparc_cmodel): Likewise.
22732 (TARGET_CM_MEDLOW): Adjust to above renaming.
22733 (TARGET_CM_MEDMID): Likewise.
22734 (TARGET_CM_MEDANY): Likewise.
22735 (TARGET_CM_EMBMEDANY): Likewise.
22736 * config/sparc/sparc.c (sparc_cmodel): Delete.
22737 (sparc_option_override): Remove string/value mapping support for the
22738 code model. Move code and memory model support to after the handling
22739 of target flags. Do private machine setup last.
22740 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22741 (sparc_legitimize_reload_address): Likewise.
22742 (sparc_output_mi_thunk): Likewise.
22743 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22744
22745 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22746
22747 PR tree-optimization/89500
22748 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22749 (handle_builtin_strlen): Remove noncst_bound variable. Always
22750 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22751 cst if the first cst bytes starting at x are known to be non-zero,
22752 even if the string is not zero terminated. Don't try to modify
22753 *si for strnlen. Update strlen_to_stridx only for strlen or if
22754 we can prove strnlen returns the same value as strlen would.
22755
22756 2019-02-26 Martin Liska <mliska@suse.cz>
22757
22758 * alloc-pool.h (struct pool_usage): Remove extra
22759 print_dash_line.
22760 * bitmap.h (struct bitmap_usage): Likewise.
22761 * ggc-common.c (struct ggc_usage): Likewise.
22762 * mem-stats.h (struct mem_usage): Likewise.
22763 (mem_alloc_description::dump): Print dash lines
22764 here and repeat header at the end of a table report.
22765 It's then more readable.
22766 * tree-phinodes.c (phinodes_print_statistics): Make
22767 horizontal alignment.
22768 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22769 * vec.c (struct vec_usage): Remove extra print_dash_line.
22770 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22771
22772 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22773
22774 * doc/extend.texi (__builtin_object_size):
22775 Use @pxref instead of @xref inside parenthesis.
22776 (__builtin_has_attribute): Add missing comma after @xref.
22777 (__builtin_object_size): Ditto.
22778 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22779
22780 2019-02-26 Jeff Law <law@redhat.com>
22781
22782 PR rtl-optimization/87761
22783 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22784 detect obviously dead insns and delete them.
22785
22786 2019-02-26 Richard Biener <rguenther@suse.de>
22787
22788 PR tree-optimization/89505
22789 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22790 to handle restrict pointed-to vars with multiple subvars
22791 correctly.
22792
22793 2019-02-26 Richard Biener <rguenther@suse.de>
22794
22795 PR tree-optimization/89489
22796 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22797
22798 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22799
22800 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22801 and move around comment.
22802 <BIT_AND_EXPR>: Likewise.
22803 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22804
22805 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22806
22807 PR target/89474
22808 * config/i386/i386.c (remove_partial_avx_dependency): Call
22809 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22810 after changing possibly many instructions to use that pseudo. Fix up
22811 insertion of v4sf_const0 setter at the start of bb.
22812
22813 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22814
22815 PR c/80409
22816 * doc/extend.texi (Variadic Pointer Args): New section.
22817
22818 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22819 Martin Sebor <msebor@gmail.com>
22820
22821 * common.opt (Wattribute-alias): Likewise.
22822 * doc/invoke.texi (Option Summary): List general form of
22823 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22824 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22825 Add cross-references.
22826 (-Wattribute-alias): Rewrite and correct default. Mention
22827 considered attributes (same as for -Wmissing-attributes).
22828
22829 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22830
22831 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22832 (_mm_cvtpd_ps): Likewise.
22833 (_mm_cvttpd_epi32): Likewise.
22834
22835 PR target/89338
22836 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22837 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22838
22839 PR target/89339
22840 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22841
22842 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22843
22844 PR target/88530
22845 * common/config/aarch64/aarch64-common.c
22846 (struct aarch64_option_extension): Add is_synthetic.
22847 (all_extensions): Use it.
22848 (TARGET_OPTION_INIT_STRUCT): Define hook.
22849 (struct gcc_targetm_common): Moved to end.
22850 (all_extensions_by_on): New.
22851 (opt_ext_cmp, typedef opt_ext): New.
22852 (aarch64_option_init_struct): New.
22853 (aarch64_contains_opt): New.
22854 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22855 * config/aarch64/aarch64-option-extensions.def
22856 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22857 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22858 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22859 Set is_synthetic to false.
22860 (crypto): Set is_synthetic to true.
22861 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22862 SYNTHETIC.
22863
22864 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22865
22866 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22867 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22868 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22869 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22870 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22871 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22872 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22873 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22874 Rename ...
22875 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22876 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22877 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22878 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22879 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22880 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22881 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22882 vfmlsl_laneq_high_f16): ... To this.
22883 * config/arm/neon.md: Update comments.
22884
22885 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22886
22887 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22888 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22889 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22890 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22891 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22892 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22893 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22894 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22895 Rename ...
22896 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22897 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22898 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22899 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22900 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22901 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22902 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22903 vfmlslq_laneq_high_f16): ... To this.
22904
22905 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22906
22907 PR rtl-optimization/86096
22908 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22909 comparing mw_order values.
22910
22911 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22912
22913 PR target/89434
22914 * config/arm/arm.md (*subsi3_carryin_const): Use
22915 arm_neg_immediate_operand predicate instead of
22916 arm_not_immediate_operand, "L" constraint instead of "K" and
22917 print it using %n2 instead of %B2.
22918 (*subsi3_carryin_const0): New define_insn.
22919 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22920 instead of arm_not_operand and "I" constraint instead of "K" and
22921 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22922 another match_operand and in the condition check that it is negation
22923 of operands[2].
22924 (*subsi3_carryin_compare_const0): New define_ins.
22925 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22926 *subsi3_carryin_const.
22927 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22928 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22929
22930 PR target/89438
22931 * config/arm.vfp.md (*negdf2_vfp): Use
22932 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22933 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22934
22935 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22936
22937 PR rtl-optimization/89445
22938 * simplify-rtx.c (simplify_ternary_operation): Don't use
22939 simplify_merge_mask on operands that may trap.
22940 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22941 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22942 second operand is CONST_VECTOR, check if any element could be zero.
22943 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22944 their operands can trap.
22945
22946 2019-02-23 Martin Sebor <msebor@redhat.com>
22947
22948 * gimple-ssa-sprintf.c (target_strtol): Rename...
22949 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22950 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22951 check for range error.
22952
22953 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22954
22955 PR driver/69471
22956 * opts-common.c (prune_options): Also prune joined switches
22957 with Negative and RejectNegative.
22958 * config/i386/i386.opt (march=): Add Negative(march=).
22959 (mtune=): Add Negative(mtune=).
22960 * doc/options.texi: Document Negative used together with Joined
22961 and RejectNegative.
22962
22963 2019-02-22 Martin Sebor <msebor@redhat.com>
22964
22965 * doc/extend.texi (Other Builtins): Add
22966 __builtin_is_constant_evaluated.
22967
22968 2019-02-22 Richard Biener <rguenther@suse.de>
22969
22970 PR tree-optimization/87609
22971 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22972
22973 2019-02-22 Jeff Law <law@redhat.com>
22974
22975 PR rtl-optimization/87761
22976 * config/mips/mips.md: Add new combiner pattern to recognize
22977 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22978
22979 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22980
22981 PR target/89324
22982 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22983 destination register in peepholes generating patterns for ADDS/SUBS.
22984 (add<mode>3_compare0,
22985 *addsi3_compare0_uxtw, add<mode>3_compareC,
22986 add<mode>3_compareV_imm, add<mode>3_compareV,
22987 *adds_<optab><ALLX:mode>_<GPI:mode>,
22988 *subs_<optab><ALLX:mode>_<GPI:mode>,
22989 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22990 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22991 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22992 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22993 sub<mode>3_compare1): Allow stack pointer for source register.
22994 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22995
22996 2019-02-22 Martin Sebor <msebor@redhat.com>
22997
22998 PR tree-optimization/88993
22999 PR tree-optimization/88853
23000 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23001 New helper.
23002 (sprintf_dom_walker::call_info::is_string_func): New helper.
23003 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23004 for formatted string functions.
23005 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23006
23007 2019-02-22 Martin Sebor <msebor@redhat.com>
23008
23009 PR c/89425
23010 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23011 unreachable subexpressions.
23012
23013 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23014 Hongtao Liu <hongtao.liu@intel.com>
23015 Sunil K Pandey <sunil.k.pandey@intel.com>
23016
23017 PR target/87007
23018 * config/i386/i386-passes.def: Add
23019 pass_remove_partial_avx_dependency.
23020 * config/i386/i386-protos.h
23021 (make_pass_remove_partial_avx_dependency): New.
23022 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23023 New function.
23024 (pass_data_remove_partial_avx_dependency): New.
23025 (pass_remove_partial_avx_dependency): Likewise.
23026 (make_pass_remove_partial_avx_dependency): Likewise.
23027 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23028 (*extendsfdf2): Add avx_partial_xmm_update.
23029 (truncdfsf2): Likewise.
23030 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23031 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23032
23033 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23034
23035 PR middle-end/85598
23036 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23037 analysis for pass.
23038
23039 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23040
23041 PR target/89444
23042 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23043 (PTA_SKYLAKE): Add PTA_AES.
23044 (PTA_GOLDMONT): Likewise.
23045
23046 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23047
23048 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23049 instruction if enabled.
23050 (aarch64_override_options): Remove reference to return address key.
23051
23052 2019-02-22 Richard Biener <rguenther@suse.de>
23053
23054 PR tree-optimization/89440
23055 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23056 not necessary assert.
23057
23058 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23059
23060 PR fortran/72741
23061 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23062 (oacc_replace_fn_attrib_attr): ... this new function.
23063 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23065
23066 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23067
23068 * config/arm/arm-cpus.in (ares): Rename to...
23069 (neoverse-n1): ... This. Add ares as alias.
23070 * config/arm/arm-tables.opt: Regenerate.
23071 * config/arm/arm-tune.md: Likewise.
23072 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23073
23074 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23075
23076 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23077 * config/aarch64/aarch64-tune.md: Regenerate.
23078 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23079
23080 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23081
23082 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23083 (neoversen1_tunings): ... This.
23084 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23085 (neoverse-n1): New CPU.
23086 * config/aarch64/aarch64-tune.md: Regenerate.
23087 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23088
23089 2019-02-22 Richard Biener <rguenther@suse.de>
23090
23091 PR middle-end/87609
23092 * cfghooks.h (dependence_hash): New typedef.
23093 (struct copy_bb_data): New type.
23094 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23095 (duplicate_block): Likewise.
23096 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23097 (copy_bbs): Create and pass down copy_bb_data.
23098 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23099 (rtl_duplicate_bb): Likewise.
23100 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23101 remap dependence info.
23102
23103 2019-02-22 Richard Biener <rguenther@suse.de>
23104
23105 PR tree-optimization/87609
23106 * tree-core.h (tree_base): Document special clique values.
23107 * tree-inline.c (remap_dependence_clique): Do not use the
23108 special clique value of one.
23109 (maybe_set_dependence_info): Use clique one.
23110 (clear_dependence_clique): New callback.
23111 (compute_dependence_clique): Clear clique one from all refs
23112 before assigning it (again).
23113
23114 2019-02-21 Martin Sebor <msebor@redhat.com>
23115
23116 * doc/extend.texi (__clear_cache): Correct signature.
23117
23118 2019-02-21 Ian Lance Taylor <iant@golang.org>
23119
23120 PR go/89170
23121 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23122 than output_constant_def.
23123 (add_constant_to_table): New static function.
23124 (output_constant_def): Call add_constant_to_table.
23125 (tree_output_constant_def): Likewise.
23126
23127 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23128
23129 PR c++/89285
23130 * builtins.c (fold_builtin_arith_overflow): If first two args are
23131 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23132 to ifn.
23133
23134 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23135
23136 PR target/87412
23137 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23138 error for -mindirect-branch/-mfunction-return with incompatible
23139 -fcf-protection.
23140
23141 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23142
23143 PR bootstrap/88714
23144 * constraints.md (q): Remove.
23145 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23146 instead of q.
23147
23148 2019-02-21 Martin Jambor <mjambor@suse.cz>
23149
23150 PR hsa/89302
23151 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23152 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23153 (omp_adjust_for_condition): ...here. Added necessary parameters.
23154 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23155 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23156 proper values to new parameters of omp_adjust_for_condition.
23157
23158 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23159
23160 PR middle-end/89412
23161 * expr.c (expand_assignment): If result is a MEM, use change_address
23162 instead of simplify_gen_subreg.
23163
23164 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23165 David Malcolm <dmalcolm@redhat.com>
23166
23167 PR middle-end/89091
23168 * fold-const.c (decode_field_reference): Return NULL_TREE if
23169 lang_hooks.types.type_for_size returns NULL. Check it before
23170 overwriting *exp_. Use return NULL_TREE instead of return 0.
23171
23172 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23173
23174 PR middle-end/88074
23175 PR middle-end/89415
23176 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23177 buggy mpc_norm.
23178
23179 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23180
23181 PR target/89397
23182 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23183 TARGET_SSE in addition to TARGET_SSE_MATH.
23184
23185 (ix86_excess_precision): Ditto.
23186 (ix86_float_exceptions_rounding_supported_p): Ditto.
23187 (use_rsqrt_p): Ditto.
23188 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23189
23190 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23191
23192 PR c/89410
23193 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23194 linenum_arith_t when determining if two adjacent line spans are
23195 close enough to merge.
23196 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23197 lines within each line_span.
23198
23199 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23200
23201 PR target/86487
23202 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23203 paradoxical SUBREGS.
23204
23205 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23206
23207 PR target/88100
23208 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23209 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23210 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23211 range checking it.
23212
23213 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23214
23215 * config/gcn/gcn.c (print_operand): Fix typo.
23216
23217 2019-02-19 Richard Biener <rguenther@suse.de>
23218
23219 PR middle-end/88074
23220 * toplev.c (do_compile): Initialize mpfr's exponent range
23221 based on available float modes.
23222
23223 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23224
23225 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23226 as long as the epilogue isn't completed.
23227
23228 2019-02-18 Martin Sebor <msebor@redhat.com>
23229
23230 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23231 __has_cpp_attribute, and __has_include.
23232
23233 2019-02-18 Martin Sebor <msebor@redhat.com>
23234
23235 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23236
23237 2019-02-18 Martin Sebor <msebor@redhat.com>
23238
23239 PR middle-end/89294
23240 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23241 expression.
23242 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23243
23244 2019-02-18 Richard Biener <rguenther@suse.de>
23245
23246 PR tree-optimization/89296
23247 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23248 of no-warning flag to cases that might emit the bogus warning.
23249
23250 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23251
23252 PR bootstrap/88714
23253 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23254 "q" constraint.
23255 * config/arm/vfp.md (*movdi_vfp): Likewise.
23256 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23257 "q" constraint for operands[0].
23258
23259 PR target/89369
23260 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23261 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23262 pattern in a temporary buffer.
23263 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23264 than 64-operands[2].
23265
23266 PR target/89361
23267 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23268 s390_indirect_branch_settings): Define unconditionally.
23269 (s390_set_current_function): Likewise, but guard the whole body except
23270 the s390_indirect_branch_settings call with
23271 #if S390_USE_TARGET_ATTRIBUTE.
23272 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23273
23274 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23275 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23276 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23277 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23278 HOST_WIDE_INT_1U instead of 1ULL.
23279 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23280 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23281 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23282 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23283 instead of 1UL.
23284 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23285 instead of 1ul.
23286
23287 2019-02-18 Martin Jambor <mjambor@suse.cz>
23288
23289 PR tree-optimization/89209
23290 * tree-sra.c (create_access_replacement): New optional parameter
23291 reg_tree. Use it as a type if non-NULL and access type is not of
23292 a register type.
23293 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23294 to create_access_replacement.
23295 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23296 Check lacc is non-NULL before attempting to re-create it on the RHS.
23297
23298 2019-02-18 Martin Liska <mliska@suse.cz>
23299
23300 PR ipa/89306
23301 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23302 by default.
23303 (symbol_table::free_edge): Recycle m_summary_id.
23304 * cgraph.h (get_summary_id): New.
23305 (symbol_table::release_symbol): Set m_summary_id to -1
23306 by default.
23307 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23308 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23309 function_summary to fast_function_summary.
23310 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23311 * ipa-pure-const.c (class funct_state_summary_t):
23312 Switch from function_summary to fast_function_summary.
23313 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23314 (class ipa_ref_opt_summary_t): Switch from function_summary
23315 to fast_function_summary.
23316 * symbol-summary.h (class function_summary_base): New class
23317 that is created from base of former function_summary.
23318 (function_summary_base::unregister_hooks): New.
23319 (class function_summary): Inherit from function_summary_base.
23320 (class call_summary_base): New class
23321 that is created from base of former call_summary.
23322 (class call_summary): Inherit from call_summary_base.
23323 (struct is_same): New.
23324 (class fast_function_summary): New summary class.
23325 (class fast_call_summary): New summary class.
23326 * vec.h (vec_safe_grow_cleared): New function.
23327
23328 2019-02-18 Martin Liska <mliska@suse.cz>
23329
23330 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23331 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23332 * doc/tm.texi: Document new target hook.
23333 * doc/tm.texi.in: Likewise.
23334 * target.def: Add new target macro.
23335 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23336 suffixes.
23337
23338 2019-02-17 Alan Modra <amodra@gmail.com>
23339
23340 PR target/89271
23341 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23342 output reg on add insn.
23343 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23344
23345 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23346
23347 PR target/89372
23348 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23349 (PMULHRSW): Likewise.
23350 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23351 TARGET_AVX2.
23352 (ssse3_pmulhrswv4hi3): New expander.
23353
23354 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23355
23356 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23357 MMX. Add isa attribute.
23358
23359 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23360
23361 PR rtl-optimization/66152
23362 * builtins.h (c_readstr): Declare.
23363 * builtins.c (c_readstr): Remove forward declaration. Add
23364 null_terminated_p argument, if false, read all bytes from the
23365 string instead of stopping after '\0'.
23366 * expr.c (string_cst_read_str): New function.
23367 (store_expr): Use string_cst_read_str instead of
23368 builtin_strncpy_read_str. Try to store by pieces the whole
23369 exp_len first, and only if that fails, split it up into
23370 store by pieces followed by clear_storage. Formatting fix.
23371
23372 * config/i386/i386.md (*movqi_internal): Remove static from
23373 buf variable. Use output_asm_insn (buf, operands); return "";
23374 instead of return buf;.
23375 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23376 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23377 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23378
23379 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23380
23381 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23382 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23383 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23384 (CC1_SPEC): Likewise.
23385 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23386
23387 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23388
23389 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23390 the base address on 64-bit strict-alignment platforms.
23391
23392 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23393
23394 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23395
23396 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23397
23398 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23399
23400 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23401
23402 PR rtl-optimization/88308
23403 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23404 on copied instruction.
23405
23406 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23407
23408 * final.c (insn_current_reference_address): Replace test on JUMP_P
23409 with test on jump_to_label_p.
23410 * config/visium/visium-passes.def: New file.
23411 * config/visium/t-visium (PASSES_EXTRA): Define.
23412 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23413 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23414 (TRAMPOLINE_ALIGNMENT): Define.
23415 * config/visium/visium.c (visium_option_override): Do not register
23416 the machine-specific reorg pass here.
23417 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23418 for the GR6.
23419 (output_branch): Adjust threshold for long branch instruction.
23420 * config/visium/visium.md (cpu): Move around.
23421 (length): Adjust for the GR6.
23422
23423 2019-02-15 Richard Biener <rguenther@suse.de>
23424 Jakub Jelinek <jakub@redhat.com>
23425
23426 PR tree-optimization/89278
23427 * tree-loop-distribution.c: Include tree-eh.h.
23428 (generate_memset_builtin, generate_memcpy_builtin): Call
23429 rewrite_to_non_trapping_overflow on builtin->size before passing it
23430 to force_gimple_operand_gsi.
23431
23432 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23433
23434 PR other/89342
23435 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23436 optimize_debug.
23437 * opth-gen.awk: Likewise.
23438
23439 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23440
23441 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23442 Enable MMX, SSE and SSE2 by default.
23443 * config/i386/i386.c (ix86_option_override_internal): Do not
23444 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23445
23446 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23447
23448 PR rtl-optimization/89354
23449 * combine.c (make_extraction): Punt if extraction_mode is narrower
23450 than len bits.
23451
23452 2019-02-14 Maya Rashish <coypu@sdf.org>
23453
23454 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23455 * config/netbsd-d.c: New file.
23456 * config/t-netbsd: Add netbsd-d.o
23457
23458 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23459
23460 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23461 affects_type_identity to true for aarch64_vector_pcs.
23462 (aarch64_comp_type_attributes): New function.
23463 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23464
23465 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23466
23467 PR target/88850
23468 * config/arm/iterators.md (ANY64): Add V4HF.
23469
23470 2019-02-14 Martin Liska <mliska@suse.cz>
23471
23472 PR rtl-optimization/89242
23473 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23474 process a transformation.
23475
23476 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23477
23478 PR tree-optimization/89314
23479 * fold-const.c (fold_binary_loc): Cast strlen argument to
23480 const char * before dereferencing it. Formatting fixes.
23481
23482 PR middle-end/89284
23483 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23484
23485 2019-02-13 Ian Lance Taylor <iant@golang.org>
23486
23487 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23488 and set current index for other optimizations.
23489
23490 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23491
23492 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23493 nonimmediate_operand as operand 2 predicate.
23494 (vec_set<VF2_512_256:mode>_0): Ditto.
23495 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23496 (*vec_concatv2si): Remove alternative 2.
23497 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23498 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23499 (vec_concatv2di): Split alternatives 4,5,6 to ...
23500 (*vec_concatv2di_0) ... new pattern.
23501
23502 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23503
23504 PR target/89190
23505 * config/arm/arm.c (ldm_stm_operation_p) Set
23506 addr_reg_in_reglist correctly for first register.
23507 (load_multiple_sequence): Remove dead base check.
23508 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23509
23510 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23511
23512 PR target/88847
23513 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23514 Expose as @aarch64_pred_mov.
23515 * config/aarch64/aarch64.c (aarch64_classify_address):
23516 Use expand_insn which legitimizes operands.
23517
23518 2019-02-13 Martin Liska <mliska@suse.cz>
23519
23520 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23521 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23522 and pointer_offset fields.
23523 (initialize_argument_information): Remove usage of dead
23524 fields.
23525 * cgraph.h (struct cgraph_thunk_info): Remove
23526 add_pointer_bounds_args.
23527 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23528 fields.
23529 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23530 fields.
23531 * config/i386/i386.c (ix86_function_arg_advance): Remove
23532 unrelated comment.
23533 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23534 (def_builtin): Remove usage of dead fields.
23535 (ix86_add_new_builtins): Likewise.
23536 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23537 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23538 (sem_function::init): Likewise.
23539 (sem_variable::merge): Likewise.
23540 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23541 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23542 * lto-cgraph.c (lto_output_node): Likewise.
23543 (lto_output_varpool_node): Likewise.
23544 (input_node): Likewise.
23545 (input_varpool_node): Likewise.
23546 * lto-streamer-out.c (lto_output): Likewise.
23547 * tree-inline.c (expand_call_inline): Remove usage of
23548 assign_stmts.
23549 * tree-inline.h (struct copy_body_data): Likewise.
23550 * varpool.c (varpool_node::dump): Likewise.
23551
23552 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23553
23554 PR middle-end/89303
23555 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23556 into pt->vars_contains_escaped_heap instead of setting
23557 pt->vars_contains_escaped_heap to it.
23558
23559 PR middle-end/89281
23560 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23561 INTVAL (size), compare it to GET_MODE_MASK instead of
23562 1 << GET_MODE_BITSIZE.
23563
23564 PR target/89290
23565 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23566 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23567 -mcmodel=large.
23568
23569 2019-02-13 Martin Liska <mliska@suse.cz>
23570
23571 PR lto/88858
23572 * cfgrtl.c (remove_barriers_from_footer): New function.
23573 (try_redirect_by_replacing_jump): Use it.
23574 (cfg_layout_redirect_edge_and_branch): Likewise.
23575
23576 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23577
23578 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23579 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23580 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23581 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23582 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23583 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23584 New BU_CRYPTO_2.
23585 * config/rs6000/rs6000.c (builtin_function_type)
23586 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23587 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23588 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23589 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23590 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23591
23592 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23593
23594 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23595 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23596
23597 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23598
23599 PR target/89229
23600 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23601 268678 and revision 268657.
23602 (*movti_internal): Likewise.
23603
23604 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23605
23606 PR target/89233
23607 * config/s390/s390.c (s390_decompose_address): Update comment.
23608 (s390_check_qrst_address): Reject invalid address forms after
23609 LRA.
23610
23611 2019-02-12 Martin Liska <mliska@suse.cz>
23612
23613 PR lto/88876
23614 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23615 we need default values of funct_state for a function that
23616 is not optimized.
23617
23618 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23619
23620 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23621 the object to pick the size of stores on strict-alignment platforms.
23622
23623 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23624 (*movdi_insn_sp32): Likewise.
23625 (*movdi_insn_sp64): Likewise.
23626
23627 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23628
23629 PR lto/88677
23630 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23631 types that needs constructiong.
23632 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23633
23634 2019-02-12 Richard Biener <rguenther@suse.de>
23635
23636 PR tree-optimization/89253
23637 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23638 duplicate the loop.
23639
23640 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23641
23642 PR lto/88147
23643 * input.c (selftest::test_line_offset_overflow): New selftest.
23644 (selftest::input_c_tests): Call it.
23645
23646 2019-02-11 Martin Sebor <msebor@redhat.com>
23647
23648 PR tree-optimization/88771
23649 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23650 when -Wstringop-overflow is set.
23651 (builtin_memref::builtin_memref): Adjust excessive upper bound
23652 only when lower bound is not excessive.
23653 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23654 -Wstringop-ovefflow.
23655 (maybe_diag_offset_bounds): Rename...
23656 (maybe_diag_access_bounds): ...to this.
23657 (check_bounds_or_overlap): Adjust for name change above.
23658
23659 2019-02-11 Martin Sebor <msebor@redhat.com>
23660
23661 PR c++/87996
23662 * builtins.c (max_object_size): Move from here...
23663 * builtins.h (max_object_size): ...and here...
23664 * tree.c (max_object_size): ...to here...
23665 * tree.h (max_object_size): ...and here.
23666
23667 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23668
23669 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23670 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23671 for correct semantics.
23672
23673 2019-02-11 Alan Modra <amodra@gmail.com>
23674
23675 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23676 -mlongcall and -mpltseq.
23677 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23678 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23679 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23680 * config/rs6000/sysv4.opt (mpltseq): New option.
23681 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23682 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23683 support is lacking. Don't allow -mpltseq with -mbss-plt.
23684 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23685 -mpltseq given for ELFv1.
23686 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23687 Only use UNSPEC_PLTSEQ for inline PLT calls.
23688 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23689 use UNSPEC_PLTSEQ for inline PLT calls.
23690 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23691 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23692 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23693 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23694 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23695 (pltseq_mtctr_<mode>): Likewise.
23696
23697 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23698
23699 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23700 Solaris ld.
23701 * configure: Regenerate.
23702
23703 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23704
23705 PR bootstrap/88714
23706 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23707 instead of r.
23708
23709 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23710
23711 * function.c (assign_parm_setup_block): Use the stored
23712 size, not the passed size, when allocating stack-space,
23713 also for a parameter with alignment larger than
23714 MAX_SUPPORTED_STACK_ALIGNMENT.
23715
23716 2019-02-11 Martin Liska <mliska@suse.cz>
23717
23718 PR ipa/89009
23719 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23720 * ipa-inline.c (inline_small_functions): Likewise.
23721 * ipa-pure-const.c (propagate_pure_const): Likewise.
23722 (propagate_nothrow): Likewise.
23723 * ipa-reference.c (propagate): Likewise.
23724 * ipa-utils.c (struct searchc_env): Remove unused field.
23725 (searchc): Always search across AVAIL_INTERPOSABLE.
23726 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23727 the only called IPA pure const can properly not propagate
23728 across interposable boundary.
23729 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23730
23731 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23732
23733 * config/nds32/nds32.md (call_internal, call_value_internal,
23734 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23735
23736 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23737
23738 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23739 typo.
23740
23741 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23742
23743 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23744 in comments
23745
23746 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23747
23748 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23749
23750 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23751
23752 PR tree-optimization/89268
23753 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23754 if preds is non-NULL.
23755
23756 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23757
23758 PR lto/89272
23759 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23760 polymorphic types.
23761
23762 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23763
23764 * config/nds32/nds32.md (trap): New pattern.
23765
23766 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23767
23768 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23769 dwarf span.
23770
23771 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23772
23773 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23774 to split POST_INC.
23775
23776 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23777
23778 * ipa-visibility.c (localize_node): Also do not localize
23779 LDPR_PREVAILING_DEF_IRONLY_EXP.
23780
23781 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23782
23783 PR lto/87957
23784 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23785 instead of type_with_linkage.
23786
23787 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23788
23789 PR ipa/88755
23790 * params.def (uninlined-function-insns, uninlined-function-time,
23791 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23792 bound so we don't get overflows.
23793
23794 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23795
23796 * config/rs6000/rs6000-string.c (expand_compare_loop,
23797 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23798 memcmp/strncmp.
23799
23800 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23801
23802 PR middle-end/89246
23803 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23804 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23805 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23806
23807 2019-02-09 Alan Modra <amodra@gmail.com>
23808
23809 PR target/88343
23810 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23811 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23812 setup.
23813
23814 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23815
23816 PR middle-end/88560
23817 * lra-constraints.c (process_alt_operands): Don't increase reject
23818 for memory when offset memory is required.
23819
23820 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23821
23822 * config/s390/vector.md: Implement vector copysign.
23823
23824 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23825
23826 * expr.c (expand_constructor): Correct indentations.
23827
23828 2019-02-08 Richard Biener <rguenther@suse.de>
23829
23830 PR tree-optimization/89247
23831 * tree-if-conv.c: Include tree-cfgcleanup.h.
23832 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23833 (tree_if_conversion): Pass through predicate vector.
23834 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23835 inline, see if any if-converted loops we refrece in
23836 LOOP_VECTORIZED calls vanished and fixup.
23837 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23838
23839 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23840
23841 * config/s390/constraints.md (jdd): New constraint.
23842
23843 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23844
23845 PR target/89229
23846 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23847 upper 16 vector registers without TARGET_AVX512VL.
23848 (*movti_internal): Likewise.
23849
23850 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23851
23852 PR rtl-optimization/89234
23853 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23854 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23855 (copy_reg_eh_region_note_backward): Likewise.
23856
23857 2019-02-08 Richard Biener <rguenther@suse.de>
23858
23859 PR middle-end/89223
23860 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23861 doesn't fit in HWI.
23862 (analyze_subscript_affine_affine): Handle failure from
23863 initialize_matrix_A.
23864
23865 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23866
23867 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23868 cfun everywhere.
23869
23870 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23871
23872 PR tree-optimization/86637
23873 PR tree-optimization/89235
23874 * tree-vect-loop.c (optimize_mask_stores): Add an
23875 auto_purge_vect_location sentinel to ensure that vect_location is
23876 purged on exit.
23877 * tree-vectorizer.c
23878 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23879 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23880 to ensure that vect_location is purged on exit.
23881 (pass_slp_vectorize::execute): Likewise, replacing the manual
23882 reset.
23883 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23884
23885 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23886
23887 * config/aarch64/iterators.md (max_opp): New code_attr.
23888 (USMAX): New code iterator.
23889 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23890 (aarch64_smax): Likewise.
23891 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23892 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23893 MINUS (MAX MIN).
23894
23895 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23896
23897 PR target/89229
23898 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23899 for TARGET_AVX512VL.
23900 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23901
23902 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23903
23904 * config/s390/s390-builtin-types.def: Add new types.
23905 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23906 (s390_vec_xlw4): Make the memory operand into a const pointer.
23907 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23908 float.
23909 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23910 a new vector type with the alignment of the scalar memory operand.
23911
23912 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23913 Jakub Jelinek <jakub@redhat.com>
23914
23915 PR bootstrap/88714
23916 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23917 arm_count_ldrdstrd_insns): New declarations.
23918 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23919 MINUS.
23920 (valid_operands_ldrd_strd): New function.
23921 (arm_count_ldrdstrd_insns): New function.
23922 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23923 sets instead of single DImode set and define new insns to match this.
23924
23925 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23926
23927 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23928 Make it a C initializer.
23929
23930 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23931
23932 PR/target 88850
23933 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23934
23935 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23936
23937 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23938 Use neon_dot<q> for type.
23939 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23940
23941 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23942
23943 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23944 Use neon_dot<q> for type.
23945 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23946 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23947
23948 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23949
23950 PR rtl-optimization/89225
23951 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23952 sizes check.
23953
23954 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23955
23956 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23957 after restoring registers saved to allocate the frame on Windows.
23958
23959 2019-02-06 Richard Biener <rguenther@suse.de>
23960
23961 PR tree-optimization/89182
23962 * graphite.h (cached_scalar_evolution_in_region): Declare.
23963 * graphite.c (struct seir_cache_key): New.
23964 (struct sese_scev_hash): Likewise.
23965 (seir_cache): New global.
23966 (cached_scalar_evolution_in_region): New function.
23967 (graphite_transform_loops): Allocate and release seir_cache.
23968 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23969 cached_scalar_evolution_in_region.
23970 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23971 Simplify.
23972 (scop_detection::graphite_can_represent_expr: Use
23973 cached_scalar_evolution_in_region.
23974 (scop_detection::stmt_simple_for_scop_p): Likewise.
23975 (find_params_in_bb): Likewise.
23976 (gather_bbs::before_dom_children): Likewise.
23977 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23978 (add_loop_constraints): Likewise.
23979
23980 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23981
23982 PR middle-end/89210
23983 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23984 operand to new_unary_operation only if both element types are integral
23985 and it isn't a widening conversion. Return NULL_TREE if
23986 new_unary_operation failed.
23987
23988 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23989
23990 PR target/88856
23991 * config/s390/s390.md: Remove load and test FP splitter.
23992
23993 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23994
23995 PR target/89112
23996 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23997 expand_compare_loop, expand_block_compare_gpr,
23998 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23999 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24000 #include "profile-count.h" and "predict.h" for types and functions
24001 needed to work with REG_BR_PROB notes.
24002
24003 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24004
24005 PR target/89112
24006 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24007 for the long branch case.
24008
24009 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24010
24011 PR target/89188
24012 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24013 can throw, non-call exceptions are enabled and we can't delete
24014 dead exceptions or alter cfg. Set must_clean if
24015 delete_insn_and_edges returns true, don't set it blindly for calls.
24016 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24017
24018 PR rtl-optimization/89195
24019 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24020 of the original MEM.
24021
24022 2019-02-05 Martin Liska <mliska@suse.cz>
24023
24024 PR gcov-profile/89000
24025 * gcov.c (function_summary): Remove argument.
24026 (file_summary): New function.
24027 (print_usage): Replace tabs with spaces.
24028 (generate_results): Use new function file_summary.
24029
24030 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24031
24032 PR target/89186
24033 * optabs.c (prepare_cmp_insn): Pass x and y to
24034 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24035
24036 2019-02-05 Richard Biener <rguenther@suse.de>
24037
24038 PR middle-end/89150
24039 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24040 (struct bitmap_element): Drop chain_prev so we properly recurse on
24041 the prev member, supporting tree views.
24042 (struct bitmap_head): GTY skip the obstack member.
24043
24044 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24045
24046 PR c/88698
24047 * doc/extend.texi (Vector Extensions): Add an example of using vector
24048 types together with x86 intrinsics.
24049
24050 2019-02-04 Alan Modra <amodra@gmail.com>
24051
24052 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24053 str[] size to 160, and comment.
24054
24055 2019-02-04 Alan Modra <amodra@gmail.com>
24056
24057 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24058 (rs6000_pltseq_template): Guard output of TLS markers with
24059 TARGET_TLS_MARKERS.
24060 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24061 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24062 to use inline PLT sequences.
24063 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24064 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24065 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24066
24067 2019-02-04 Martin Liska <mliska@suse.cz>
24068
24069 PR ipa/88985
24070 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24071 out when ipa_fn_summaries does not contain entry for callee.
24072
24073 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24074
24075 * config/sparc/sparc.h: Remove superfluous blank lines.
24076 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24077 (got_register_rtx): ...this.
24078 (sparc_got): Adjust to above renaming.
24079 (sparc_tls_got): Likewise.
24080 (sparc_delegitimize_address): Likewise.
24081 (sparc_output_mi_thunk): Likewise.
24082 (sparc_init_pic_reg): Likewise.
24083 (save_local_or_in_reg_p): Fix test on the GOT register.
24084 (USE_HIDDEN_LINKONCE): Move around.
24085 (get_pc_thunk_name): Likewise.
24086 (gen_load_pcrel_sym): Likewise.
24087 (load_got_register): Likewise.
24088
24089 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24090
24091 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24092 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24093
24094 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24095
24096 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24097 into consideration.
24098
24099 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24100
24101 * config.gcc (with_nds32_lib, glibc):
24102 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24103 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24104 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24105
24106 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24107
24108 PR target/89071
24109 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24110 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24111 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24112 (*rcpsf2_sse): Ditto.
24113 (*rsqrtsf2_sse): Ditto.
24114 (sse4_1_round<mode<2): Ditto.
24115
24116 2019-02-03 Richard Biener <rguenther@suse.de>
24117
24118 PR debug/87295
24119 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24120 orig.
24121
24122 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24123
24124 PR middle-end/87887
24125 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24126 Punt with warning on aggregate return or argument types. Ignore
24127 type/mode checking for uniform arguments.
24128
24129 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24130
24131 * combine.c (try_combine): Do not print "Can't combine" messages unless
24132 printing failed combination attempts.
24133
24134 2019-02-01 Martin Jambor <mjambor@suse.cz>
24135
24136 PR hsa/87863
24137 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24138 segment and global segment variables before making them static.
24139
24140 2019-02-01 Martin Jambor <mjambor@suse.cz>
24141
24142 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24143 missed optimization dump with dump_enabled_p.
24144
24145 2019-02-01 Richard Biener <rguenther@suse.de>
24146
24147 PR middle-end/88597
24148 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24149 the instantiate cache.
24150 (instantiate_scev_binary): Elide second operand procesing
24151 if equal to the first.
24152 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24153 (chrec_contains_undetermined): Likewise.
24154 (tree_contains_chrecs): Likewise.
24155
24156 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24157
24158 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24159
24160 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24161
24162 PR tree-optimization/89143
24163 * wide-int-range.h (wide_int_range_absu): Declare.
24164 * wide-int-range.cc (wide_int_range_absu): New function.
24165 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24166
24167 PR tree-optimization/88107
24168 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24169 instead of assertion that eh_region_outermost is non-NULL, if it
24170 is NULL, set *ALL to true and return NULL.
24171 (move_sese_region_to_fn): Adjust caller, if all is set, call
24172 duplicate_eh_regions with NULL region.
24173
24174 2019-02-01 Richard Biener <rguenth@suse.de>
24175
24176 PR rtl-optimization/88593
24177 * mode-switching.c (optimize_mode_switching): Free dominators before
24178 calling cleanup_cfg.
24179
24180 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24181
24182 PR tree-optimization/88932
24183 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24184
24185 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24186
24187 PR middle-end/89137
24188 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24189 bogus clang warning.
24190
24191 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24192
24193 PR target/89071
24194 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24195 alternative to avoid partial SSE register stall for TARGET_AVX.
24196 (truncdfsf2): Ditto.
24197 (sse4_1_round<mode>2): Ditto.
24198
24199 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24200
24201 PR tree-optimization/89008
24202 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24203 process anything of the form X * 0.
24204
24205 2019-01-31 Richard Biener <rguenther@suse.de>
24206
24207 PR tree-optimization/89135
24208 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24209 with abnormal preds.
24210
24211 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24212
24213 PR sanitizer/89124
24214 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24215 always_inline callees into no_sanitize_address callers.
24216
24217 2019-01-31 Richard Biener <rguenther@suse.de>
24218
24219 PR rtl-optimization/89115
24220 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24221
24222 2019-01-30 Martin Sebor <msebor@redhat.com>
24223
24224 PR other/89106
24225 * doc/extend.texi (cast to a union): Correct and expand.
24226
24227 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24228
24229 PR rtl-optimization/87246
24230 * lra-constraints.c (simplify_operand_subreg): Reload memory
24231 in subreg if the address became invalid.
24232
24233 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24234
24235 PR target/87064
24236 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24237 Disable for little-endian.
24238
24239 2019-01-30 Richard Biener <rguenther@suse.de>
24240
24241 PR rtl-optimization/89115
24242 * opts.c (default_options_optimization): Reduce
24243 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24244 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24245 to the default.
24246
24247 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24248
24249 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24250 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24251 type of vector element when vec_extract is implemented by direct
24252 move.
24253
24254 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24255
24256 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24257
24258 2019-01-30 Richard Biener <rguenther@suse.de>
24259
24260 PR tree-optimization/89111
24261 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24262 canonicalization to appropriately sized access types.
24263
24264 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24265
24266 PR c++/89105
24267 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24268 for arguments to functions that are TU-local and shouldn't be
24269 referenced by assembly.
24270
24271 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24272
24273 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24274 after '='.
24275
24276 2019-01-29 Martin Sebor <msebor@redhat.com>
24277
24278 PR c/88956
24279 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24280
24281 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24282
24283 PR c++/66676
24284 PR ipa/89104
24285 * omp-simd-clone.c (simd_clone_clauses_extract)
24286 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24287 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24288
24289 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24290
24291 * config.gcc: Force .init_array for ARC.
24292
24293 2019-01-29 Richard Biener <rguenther@suse.de>
24294
24295 PR debug/87295
24296 * dwarf2out.c (collect_skeleton_dies): New helper.
24297 (copy_decls_for_unworthy_types): Call it.
24298 (build_abbrev_table): Assert we do not try to replace
24299 DW_AT_signature refs with local refs.
24300
24301 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24302
24303 PR middle-end/89002
24304 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24305 for lastprivate/linear IV, push gimplify context around gimplify_assign
24306 and, if it needed any temporaries, pop it into a gimple bind around the
24307 sequence.
24308
24309 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24310
24311 * common.opt (-Wattribute-alias): Remove "no-" from name.
24312 Make -Wattribute-alias command line option and
24313 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24314
24315 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24316
24317 PR target/89073
24318 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24319 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24320 x86 ISA options.
24321 (bmi2): Add missing @opindex.
24322 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24323 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24324 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24325 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24326 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24327 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24328 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24329 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24330 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24331 xsavec, xsaveopt and xsaves options.
24332
24333 2019-01-28 Richard Biener <rguenther@suse.de>
24334
24335 PR debug/89076
24336 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24337 support removal.
24338
24339 2019-01-28 Richard Biener <rguenther@suse.de>
24340
24341 PR tree-optimization/88739
24342 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24343 BIT_FIELD_REFs only are applied to mode-precision operands
24344 when they are integral.
24345 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24346 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24347 BIT_FIELD_REFs of non-mode-precision integral operands.
24348
24349 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24350
24351 PR target/87214
24352 * config/i386/sse.md
24353 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24354 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24355 first constants in pairs are multiples of 2. Formatting fixes.
24356 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24357 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24358 first constants in each quadruple are multiples of 4. Formatting fixes.
24359
24360 2019-01-26 Martin Jambor <mjambor@suse.cz>
24361
24362 PR ipa/88933
24363 * tree-inline.c: Include tree-cfgcleanup.h.
24364 (delete_unreachable_blocks_update_callgraph): Move...
24365 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24366 ...here, make externally visible, make second argument bool, adjust
24367 all callers.
24368 * tree-cfgcleanup.c: Include cgraph.h.
24369 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24370 Declare.
24371 * ipa-prop.c: Include tree-cfgcleanup.h.
24372 (ipcp_transform_function): Call
24373 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24374
24375 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24376
24377 PR rtl-optimization/88846
24378 * ira.c (process_set_for_memref_referenced_p): New.
24379 (memref_referenced_p): Add new param. Use
24380 process_set_for_memref_referenced_p. Add new switch cases.
24381 (memref_used_between_p): Pass new arg to memref_referenced_p.
24382
24383 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24384
24385 PR target/88469
24386 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24387 argument ABI_BREAK. Set to true if the calculated alignment has
24388 changed in gcc-9. Check bit-fields for their base type alignment.
24389 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24390 (aarch64_function_arg_boundary): Likewise.
24391 (aarch64_gimplify_va_arg_expr): Likewise.
24392
24393 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24394
24395 PR middle-end/89037
24396 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24397 instead of accessing TREE_INT_CST_ELT directly.
24398
24399 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24400
24401 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24402 fenv_exceptions description.
24403
24404 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24405
24406 PR rtl-optimization/87763
24407 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24408 Allow SUBREG when matching CC_NZmode compare.
24409
24410 2019-01-25 Richard Biener <rguenther@suse.de>
24411
24412 PR tree-optimization/89049
24413 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24414 Look at the pattern stmt to determine if the stmt is vectorized.
24415
24416 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24417
24418 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24419 (pred_mov<mode>): Handle all-register forms using both a new
24420 alternative and a split.
24421
24422 2019-01-25 Richard Biener <rguenther@suse.de>
24423
24424 PR tree-optimization/86865
24425 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24426 Reject non-do-while loops.
24427
24428 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24429
24430 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24431 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24432 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24433 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24434 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24435 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24436 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24437 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24438 vlogical_operand, gpc_reg_operand, int_reg_operand,
24439 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24440 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24441 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24442 (save_world_operation, restore_world_operation, lmw_operation,
24443 stmw_operation): Use MEM_P and REG_P.
24444 (tie_operand): Use MEM_P.
24445 (vrsave_operation, crsave_operation): Use REG_P.
24446 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24447 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24448 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24449 (call_operand): Use HARD_REGISTER_P.
24450 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24451 Use CONST_INT_P.
24452 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24453 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24454 quad_aligned_load_p, replace_swapped_aligned_store,
24455 recombine_lvx_pattern, replace_swapped_aligned_load,
24456 recombine_stvx_pattern): Use MEM_P.
24457 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24458 Use MEM_P and SYMBOL_REF_P.
24459 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24460 (insn_is_swappable_p): Use REG_P and MEM_P.
24461 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24462 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24463 Use CONST_INT_P.
24464 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24465 Use CONST_DOUBLE_P.
24466 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24467 CONST_WIDE_INT_P.
24468 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24469 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24470 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24471 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24472 reg_or_subregno:
24473 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24474 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24475 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24476 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24477 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24478 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24479 rs6000_split_logical_di): Use CONST_INT_P.
24480 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24481 REG_P and SYMBOL_REF_P.
24482 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24483 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24484 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24485 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24486 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24487 (small_data_operand, print_operand_address): Use CONST_INT_P and
24488 SYMBOL_REF_P.
24489 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24490 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24491 Use HARD_REGISTER_NUM_P.
24492 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24493 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24494 SUBREG_P and SYMBOL_REF_P.
24495 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24496 and HARD_REGISTER_NUM_P.
24497 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24498 reg_or_subregno.
24499 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24500 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24501 MEM_P and REG_P.
24502 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24503 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24504 find_addr_reg): Use REG_P.
24505 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24506 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24507 (offsettable_ok_by_alignment, constant_pool_expr_p,
24508 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24509 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24510 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24511 rs6000_assemble_integer, create_TOC_reference,
24512 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24513 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24514 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24515 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24516 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24517 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24518 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24519 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24520 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24521 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24522 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24523 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24524 and cbranch<mode>4): Use CONST_INT_P.
24525 (multiple define_splits): Use REG_P and SUBREG_P.
24526 (define_expands call, call_value): Use MEM_P.
24527 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24528 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24529 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24530 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24531 and HARD_REGISTER_NUM_P.
24532 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24533
24534 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24535
24536 PR rtl-optimization/88948
24537 * rtl.h (prepare_copy_insn): New prototype.
24538 * gcse.c (prepare_copy_insn): New function, split out from
24539 process_insert_insn.
24540 (process_insert_insn): Use prepare_copy_insn.
24541 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24542 instead of gen_move_insn.
24543
24544 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24545
24546 PR debug/89006
24547 * config/i386/i386.c (ix86_pic_register_p): Return true for
24548 UNSPEC_SET_GOT too.
24549
24550 PR tree-optimization/88964
24551 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24552 punt if HONOR_SNANS (chrec).
24553
24554 PR middle-end/89015
24555 * tree-nested.c (convert_nonlocal_reference_stmt,
24556 convert_local_reference_stmt, convert_tramp_reference_stmt,
24557 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24558 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24559 or GIMPLE_OMP_TASK.
24560
24561 PR tree-optimization/89027
24562 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24563 for "omp simd array" variables.
24564
24565 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24566
24567 PR target/88469
24568 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24569 force the alignment of m_val.
24570
24571 2019-01-24 Richard Biener <rguenther@suse.de>
24572
24573 PR lto/87187
24574 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24575 When in "legacy" debug mode make sure to reset self-origins.
24576
24577 2019-01-24 Martin Liska <mliska@suse.cz>
24578
24579 PR gcov-profile/88994
24580 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24581 result will be always smaller or equal to the original.
24582 * gcov.c (mangle_name): Fix else branch where we should
24583 also copy to PTR and shift the pointer.
24584
24585 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24586
24587 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24588 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24589
24590 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24591
24592 * common/config/i386/i386-common.c
24593 (OPTION_MASK_ISA_ENQCMD_SET,
24594 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24595 (ix86_handle_option): Handle -menqcmd.
24596 * config.gcc (enqcmdintrin.h): New header file.
24597 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24598 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24599 -menqcmd.
24600 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24601 function type.
24602 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24603 __builtin_ia32_enqcmds): New builtins.
24604 * config/i386/i386-c.c (__ENQCMD__): New macro.
24605 * config/i386/i386-option.c (ix86_target_string): Add
24606 -menqcmd.
24607 (ix86_valid_target_attribute_inner_p): Likewise.
24608 * config/i386/i386-expand.c
24609 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24610 IX86_BUILTIN_ENQCMDS.
24611 * config/i386/i386.h (TARGET_ENQCMD): New.
24612 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24613 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24614 (movdir64b_<mode>): Parameterize to enable share expansion code
24615 with ENQCMD in function ix86_expand_builtin.
24616 * config/i386/i386.opt: Add -menqcmd.
24617 * config/i386/immintrin.h: Include enqcmdintrin.h.
24618 * config/i386/enqcmdintrin.h: New intrinsic file.
24619 * doc/invoke.texi: Add -menqcmd.
24620
24621 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24622 Steve Ellcey <sellcey@marvell.com>
24623
24624 PR target/85711
24625 * recog.c (address_operand): Return false on wrong mode for address.
24626 (constrain_operands): Check for mode with 'p' constraint.
24627
24628 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24629
24630 PR target/88998
24631 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24632 Disparage MMX alternative.
24633 (sse2_cvtpd2pi): Ditto.
24634 (sse2_cvttpd2pi): Ditto.
24635
24636 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24637
24638 PR driver/89014
24639 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24640 use-after-free of the result of
24641 aarch64_get_extension_string_for_isa_flags.
24642
24643 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24644
24645 PR c/44715
24646 * doc/extend.texi: Document break and continue behavior in
24647 statement expressions.
24648
24649 2019-01-23 Richard Biener <rguenther@suse.de>
24650
24651 PR tree-optimization/89008
24652 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24653 not leave another stray operand.
24654
24655 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24656
24657 * BASE-VER: Bump to 9.0.1.
24658
24659 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24660
24661 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24662 thunk that returns by reference, use the type of the return object
24663 of the thunk instead of that of the alias to build the dereference.
24664
24665 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24666
24667 * config/arc/atomic.md: Add operand to DMB instruction.
24668
24669 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24670
24671 PR tree-optimization/88964
24672 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24673 build_zero_cst instead of build_int_cst. Return false for loop
24674 invariants which honor signed zeros.
24675
24676 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24677
24678 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24679
24680 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24681
24682 PR target/88965
24683 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24684 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24685 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24686
24687 PR middle-end/88968
24688 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24689 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24690
24691 PR target/87064
24692 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24693 Disable for little endian.
24694
24695 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24696
24697 PR target/88469
24698 * config/arm/arm.c (arm_needs_double_word_align): Check
24699 DECL_BIT_FIELD_TYPE.
24700
24701 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24702 H.J. Lu <hongjiu.lu@intel.com>
24703
24704 PR target/88909
24705 * config/i386/i386-builtin.def: Add mask2 to all builtin
24706 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24707 SPECIAL_ARGS.
24708 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24709 (BDESC_FIRST): Likewise.
24710 (define_builtin): Add an argument for mask2. Updated to handle
24711 both ix86_isa_flags and ix86_isa_flags2.
24712 (define_builtin_const): Likewise.
24713 (define_builtin_pure): Likewise.
24714 (define_builtin2): Deleted.
24715 (define_builtin_const2): Likewise.
24716 (builtin_description): Add a member, mask2.
24717 (bdesc_*): Add mask2 to builtin initializations.
24718 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24719 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24720 support.
24721 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24722
24723 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24724
24725 PR target/88954
24726 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24727 noplt attribute.
24728
24729 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24730
24731 PR target/88469
24732 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24733 alignment is dominated by a bitfield with 64-bit aligned base type.
24734 (arm_function_arg): Emit a warning if the alignment has changed since
24735 earlier GCC releases.
24736 (arm_function_arg_boundary): Likewise.
24737 (arm_setup_incoming_varargs): Likewise.
24738
24739 2019-01-22 Richard Biener <rguenther@suse.de>
24740
24741 PR tree-optimization/88862
24742 * graphite-scop-detection.c
24743 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24744
24745 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24746
24747 * doc/extend.tex (AMD GCN Function Attributes): New section.
24748 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24749 * doc/invoke.texi (AMD GCN Options): New section.
24750 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24751
24752 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24753
24754 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24755 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24756
24757 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24758
24759 PR tree-optimization/88044
24760 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24761 is false in the first iteration, but !every_iteration, return false
24762 instead of true with niter->niter zero.
24763
24764 PR rtl-optimization/88904
24765 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24766 any nonequal registers before processing BB_END (b).
24767
24768 PR target/88905
24769 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24770 GET_MODE (op0).
24771 (expand_binop_directly, expand_doubleword_clz,
24772 expand_doubleword_popcount, expand_ctz, expand_ffs,
24773 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24774
24775 PR rtl-optimization/49429
24776 PR target/49454
24777 PR rtl-optimization/86334
24778 PR target/88906
24779 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24780 addressable from here...
24781 (emit_block_op_via_libcall): ... to here.
24782
24783 2019-01-22 Richard Biener <rguenther@suse.de>
24784
24785 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24786 auto_vec for cost vector to fix memleak.
24787 (vectorize_fold_left_reduction): Properly gather SLP defs.
24788 (vectorizable_comparison): Do not swap operands to properly
24789 gather SLP defs.
24790
24791 2019-01-22 Alan Modra <amodra@gmail.com>
24792
24793 PR target/88614
24794 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24795 stays a reg. Allow a const_int.
24796 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24797 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24798 (IS_NOMARK_TLSGETADDR): Define.
24799 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24800 (rs6000_output_tlsargs): New function.
24801 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24802 __tls_get_addr call takes an arg.
24803 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24804 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24805 delete split..
24806 (call_value_nonlocal_sysv): ..or here, delete split.
24807 (tls_gdld_nomark): Delete.
24808 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24809 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24810 (call_value_nonlocal_sysv): Likewise.
24811 (call_value_nonlocal_sysv_secure): Likewise.
24812 (call_value_nonlocal_aix): Likewise.
24813 (call_value_indirect_aix): Likewise.
24814 (call_value_indirect_elfv2): Likewise.
24815 (call_value_local32, call_value_local64): Disable for no-mark tls.
24816 (call_value_local_aix): Likewise.
24817
24818 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24819
24820 PR target/88938
24821 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24822 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24823
24824 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24825
24826 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24827 string contents as hash_map keys.
24828
24829 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24830
24831 PR c/88928
24832 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24833 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24834 instead of TYPE_ALIGN.
24835 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24836 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24837 pointer from TYPE_STUB_DECL.
24838
24839 2019-01-21 Richard Biener <rguenther@suse.de>
24840
24841 PR tree-optimization/88934
24842 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24843 at the possibly non-constant operand.
24844 (vect_get_constant_vectors): Adjust.
24845
24846 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24847
24848 PR target/71659
24849 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24850 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24851 instead of _X86INTRIN_H_INCLUDED.
24852 * onfig/i386/clwbintrin.h: Likewise.
24853 * config/i386/pkuintrin.h: Likewise.
24854 * config/i386/prfchwintrin.h: Likewise.
24855 * config/i386/rdseedintrin.h: Likewise.
24856 * config/i386/wbnoinvdintrin.h: Likewise.
24857 * config/i386/xsavecintrin.h: Likewise.
24858 * config/i386/xsavesintrin.h: Likewise.
24859 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24860 * config/i386/xsaveintrin.h: Likewise.
24861 * config/i386/xsaveoptintrin.h: Likewise.
24862 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24863 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24864 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24865 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24866 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24867 * config/i386/immintrin.h: Here.
24868
24869 2019-01-20 Martin Jambor <mjambor@suse.cz>
24870
24871 PR ipa/87615
24872 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24873 with aa_walk_budget.
24874 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24875 aa_walk_budget_p parameter.
24876 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24877 walk. Updated all callers.
24878 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24879 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24880 unmodified_parm.
24881 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24882 parameter info. Extract info from fbi. Pass fbi to recursive calls
24883 and to unmodified_parm.
24884 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24885 info, updated call to will_be_nonconstant_expr_predicate.
24886 (param_change_prob): New parameter fbi, limit AA walking.
24887 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24888 calls to various above functions.
24889 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24890 parameter. Use it to limit AA walking.
24891 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24892 fbi, limit AA walk.
24893 (detect_type_change): New parameter fbi, pass it on to
24894 detect_type_change_from_memory_writes.
24895 (detect_type_change_ssa): Likewise.
24896 (aa_overwalked): Removed.
24897 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24898 accordingly, adjust to the neew AA limiting scheme.
24899 (parm_ref_data_preserved_p): Likewise.
24900 (ipa_compute_jump_functions_for_edge): Adjust call to
24901 get_dynamic_type.
24902 (ipa_analyze_call_uses): Likewise.
24903 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24904 (ipa_analyze_node): Initialize aa_walk_budget.
24905 (ipcp_transform_function): Likewise.
24906 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24907 to get_dynamic_type.
24908
24909 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24910
24911 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24912 outside of #if CHECKING_P code.
24913
24914 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24915
24916 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24917 New function, split out from...
24918 (loop_versioning::analyze_stride): ...here.
24919 (loop_versioning::find_per_loop_multiplication): Use gassign.
24920 (loop_versioning::analyze_term_using_scevs): Return a success code.
24921 (loop_versioning::analyze_arbitrary_term): New function.
24922 (loop_versioning::analyze_address_fragment): Use
24923 analyze_arbitrary_term if all else fails.
24924
24925 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24926
24927 PR target/88892
24928 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24929 operands.
24930
24931 2019-01-18 Richard Biener <rguenther@suse.de>
24932
24933 PR tree-optimization/88903
24934 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24935 scalar stmts a SLP shift amount is composed of when detecting
24936 shifts by scalars.
24937
24938 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24939
24940 PR target/88799
24941 * config/arm/arm-cpus.in (mp): New feature.
24942 (sec): New feature.
24943 (fgroup ARMv7ve): Add mp and sec features.
24944 (arch armv7-a): Add options to allow mp and sec extensions.
24945 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24946 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24947 extenstions to the base architecture.
24948 (cpu cortex-a8): Add sec extension to the base architecture.
24949 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24950 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24951 variants down to the base v7-a varaint.
24952 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24953 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24954 of permitted extensions for -march=armv7-a and for
24955 -mcpu=generic-armv7-a.
24956
24957 2019-01-18 Martin Liska <mliska@suse.cz>
24958
24959 * params.def: Fix comment.
24960 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24961 name.
24962 (gimple_gen_ic_func_profiler): Likewise.
24963
24964 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24965
24966 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24967 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24968 and put in error checks for stack protector guard options.
24969 (aarch64_stack_protect_guard): New.
24970 (TARGET_STACK_PROTECT_GUARD): Define.
24971 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24972 (reg_stack_protect_address<mode>): New.
24973 (stack_protect_set): Adjust for SSP_GLOBAL.
24974 (stack_protect_test): Likewise.
24975 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24976 (-mstack-protector-guard): Likewise.
24977 (-mstack-protector-guard-offset): Likewise.
24978
24979 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24980
24981 PR tree-optimization/86214
24982 * tree-inline.h (struct copy_body_data): Add
24983 add_clobbers_to_eh_landing_pads member.
24984 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24985 (copy_edges_for_bb): Call it if EH edge destination is <
24986 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24987 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24988 if flag_stack_reuse != SR_NONE and clear it afterwards.
24989
24990 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24991
24992 PR target/85596
24993 * doc/install.texi (with-multilib-list): Document for aarch64.
24994
24995 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24996
24997 PR target/88734
24998 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24999 (("..."))) with ("...").
25000
25001 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25002
25003 * doc/extend.texi (Built-in Functions for Memory Model Aware
25004 Atomic Operations): Document atomic fetch and nand.
25005
25006 2019-01-18 Martin Liska <mliska@suse.cz>
25007 Richard Biener <rguenther@suse.de>
25008
25009 PR middle-end/88587
25010 * cgraph.h (create_version_clone_with_body): Add new argument
25011 with attributes.
25012 * cgraphclones.c (cgraph_node::create_version_clone): Add
25013 DECL_ATTRIBUTES to a newly created decl. And call
25014 valid_attribute_p so that proper cl_target_optimization_node
25015 is set for the newly created declaration.
25016 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25017 for declaration.
25018 (expand_target_clones): Do not call valid_attribute_p, it must
25019 be already done.
25020 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25021 vector types.
25022
25023 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25024
25025 PR target/88734
25026 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25027 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25028 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25029
25030 2019-01-17 Martin Sebor <msebor@redhat.com>
25031
25032 PR middle-end/88273
25033 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25034 Handle anti-ranges the same as no range at all.
25035
25036 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25037
25038 * config/aarch64/aarch64.c (cgraph.h): New include.
25039 (intl.h): New include.
25040 (supported_simd_type): New function.
25041 (currently_supported_simd_type): Ditto.
25042 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25043 (aarch64_simd_clone_adjust): Ditto.
25044 (aarch64_simd_clone_usable): Ditto.
25045 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25046 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25047 (TARGET_SIMD_CLONE_USABLE): Ditto.
25048 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25049 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25050 call.
25051
25052 2019-01-17 Martin Sebor <msebor@redhat.com>
25053
25054 PR tree-optimization/88800
25055 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25056 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25057 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25058 redundant argument. Add new argument and issue diagnostics under
25059 its control. Detect out-of-bounds access even with warnings
25060 disabled.
25061 (check_bounds_or_overlap): Change return type. Add argument.
25062 (wrestrict_dom_walker::check_call): Adjust.
25063 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25064 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25065 check_bounds_or_overlap's return value.
25066 (handle_builtin_stxncpy): Same.
25067 (handle_builtin_strcat): Same.
25068
25069 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25070 Kwok Cheung Yeung <kcy@codesourcery.com>
25071 Julian Brown <julian@codesourcery.com>
25072 Tom de Vries <tom@codesourcery.com>
25073
25074 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25075
25076 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25077
25078 * doc/sourcebuild.texi: Document dg-require-effective-target
25079 llvm_binutils and offload_gcn.
25080
25081 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25082 Kwok Cheung Yeung <kcy@codesourcery.com>
25083 Julian Brown <julian@codesourcery.com>
25084 Tom de Vries <tom@codesourcery.com>
25085
25086 * doc/sourcebuild.texi: Document dg-required-effective-target
25087 exceptions.
25088
25089 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25090 Kwok Cheung Yeung <kcy@codesourcery.com>
25091 Julian Brown <julian@codesourcery.com>
25092 Tom de Vries <tom@codesourcery.com>
25093 Jan Hubicka <hubicka@ucw.cz>
25094 Martin Jambor <mjambor@suse.cz>
25095
25096 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25097 * configure.ac: Check for dlopen.
25098 * configure: Regenerate.
25099
25100 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25101 Kwok Cheung Yeung <kcy@codesourcery.com>
25102 Julian Brown <julian@codesourcery.com>
25103 Tom de Vries <tom@codesourcery.com>
25104 Jan Hubicka <hubicka@ucw.cz>
25105 Martin Jambor <mjambor@suse.cz>
25106
25107 * common/config/gcn/gcn-common.c: New file.
25108 * config/gcn/driver-gcn.c: New file.
25109 * config/gcn/gcn-builtins.def: New file.
25110 * config/gcn/gcn-hsa.h: New file.
25111 * config/gcn/gcn-modes.def: New file.
25112 * config/gcn/gcn-opts.h: New file.
25113 * config/gcn/gcn-passes.def: New file.
25114 * config/gcn/gcn-protos.h: New file.
25115 * config/gcn/gcn-run.c: New file.
25116 * config/gcn/gcn-tree.c: New file.
25117 * config/gcn/gcn.c: New file.
25118 * config/gcn/gcn.h: New file.
25119 * config/gcn/gcn.opt: New file.
25120 * config/gcn/t-gcn-hsa: New file.
25121
25122 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25123 Kwok Cheung Yeung <kcy@codesourcery.com>
25124 Julian Brown <julian@codesourcery.com>
25125 Tom de Vries <tom@codesourcery.com>
25126 Jan Hubicka <hubicka@ucw.cz>
25127 Martin Jambor <mjambor@suse.cz>
25128
25129 * config/gcn/constraints.md: New file.
25130 * config/gcn/gcn-valu.md: New file.
25131 * config/gcn/gcn.md: New file.
25132 * config/gcn/predicates.md: New file.
25133
25134 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25135
25136 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25137 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25138 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25139 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25140
25141 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25142
25143 PR target/88851
25144 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25145 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25146 it and document registers.
25147
25148 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25149
25150 * config/aarch64/aarch64.c (ares_tunings): Define.
25151 * config/aarch64/aarch64-cores.def (ares): Use the above.
25152
25153 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25154
25155 PR target/88794
25156 Revert:
25157 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25158
25159 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25160 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25161 (_mm512_maskz_fixupimm_round_pd): Ditto.
25162 (_mm512_fixupimm_round_ps): Ditto.
25163 (_mm512_maskz_fixupimm_round_ps): Ditto.
25164 (_mm_fixupimm_round_sd): Ditto.
25165 (_mm_maskz_fixupimm_round_sd): Ditto.
25166 (_mm_fixupimm_round_ss): Ditto.
25167 (_mm_maskz_fixupimm_round_ss): Ditto.
25168 (_mm512_fixupimm_pd): Ditto.
25169 (_mm512_maskz_fixupimm_pd): Ditto.
25170 (_mm512_fixupimm_ps): Ditto.
25171 (_mm512_maskz_fixupimm_ps): Ditto.
25172 (_mm_fixupimm_sd): Ditto.
25173 (_mm_maskz_fixupimm_sd): Ditto.
25174 (_mm_fixupimm_ss): Ditto.
25175 (_mm_maskz_fixupimm_ss): Ditto.
25176 (_mm512_mask_fixupimm_round_pd): Update builtin.
25177 (_mm512_mask_fixupimm_round_ps): Ditto.
25178 (_mm_mask_fixupimm_round_sd): Ditto.
25179 (_mm_mask_fixupimm_round_ss): Ditto.
25180 (_mm512_mask_fixupimm_pd): Ditto.
25181 (_mm512_mask_fixupimm_ps): Ditto.
25182 (_mm_mask_fixupimm_sd): Ditto.
25183 (_mm_mask_fixupimm_ss): Ditto.
25184 * config/i386/avx512vlintrin.h:
25185 (_mm256_fixupimm_pd): Update parameters and builtin.
25186 (_mm256_maskz_fixupimm_pd): Ditto.
25187 (_mm256_fixupimm_ps): Ditto.
25188 (_mm256_maskz_fixupimm_ps): Ditto.
25189 (_mm_fixupimm_pd): Ditto.
25190 (_mm_maskz_fixupimm_pd): Ditto.
25191 (_mm_fixupimm_ps): Ditto.
25192 (_mm_maskz_fixupimm_ps): Ditto.
25193 (_mm256_mask_fixupimm_pd): Update builtin.
25194 (_mm256_mask_fixupimm_ps): Ditto.
25195 (_mm_mask_fixupimm_pd): Ditto.
25196 (_mm_mask_fixupimm_ps): Ditto.
25197 * config/i386/i386-builtin-types.def: Add new types and remove
25198 useless ones.
25199 * config/i386/i386-builtin.def: Update builtin definitions.
25200 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25201 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25202 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25203 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25204 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25205 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25206 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25207 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25208 * config/i386/subst.md:
25209 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25210 (round_saeonly_sd_mask_op4): Ditto.
25211 (round_saeonly_expand_operand5): Ditto.
25212 (round_saeonly_expand): Update.
25213
25214 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25215
25216 PR target/88794
25217 Revert:
25218 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25219
25220 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25221 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25222 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25223 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25224 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25225 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25226 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25227
25228 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25229
25230 PR target/88794
25231 Revert:
25232 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25233
25234 PR target/88489
25235 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25236 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25237 instead of UNSPEC_FIXUPIMM.
25238
25239 2019-01-17 Richard Biener <rguenther@suse.de>
25240
25241 PR lto/86736
25242 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25243 and friends for the LTO part of debug info.
25244
25245 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25246
25247 PR tree-optimization/86214
25248 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25249 if x == y.
25250
25251 PR rtl-optimization/88870
25252 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25253 throw if we can't alter the cfg or delete dead exceptions.
25254 (mark_insn): Don't call find_call_stack_args for such calls.
25255
25256 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25257
25258 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25259 prototypes for vec_st.
25260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25261 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25262 mainly on signed/unsigned long long and double.
25263
25264 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25265
25266 PR target/88861
25267 * combine.c (delete_noop_moves): Convert to "bool" return,
25268 returning true if any edges are eliminated.
25269 (combine_instructions): Also return true if delete_noop_moves
25270 returns true.
25271
25272 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25273
25274 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25275 correct max nunits for endian swap.
25276 (aarch64_expand_fcmla_builtin): Correct subreg code.
25277 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25278 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25279 lane endianness.
25280
25281 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25282
25283 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25284 Handle split indirect COMPLEX_TYPE arguments.
25285
25286 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25287
25288 PR target/86891
25289 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25290 bit is set by add and compare.
25291 (CC_ADC): New CC_MODE.
25292 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25293 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25294 comparison. Add detection for CC_ADCmode.
25295 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25296 CC_ADCmode.
25297 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25298 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25299 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25300 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25301 to eliminate the need for zero-extending the operands.
25302 (add<mode>3_compareC_imm): Delete. Merge into ...
25303 (add<mode>3_compareC): ... this. Restructure the comparison to
25304 eliminate the need for zero-extending the operands.
25305 (add<mode>3_carryin): Use LTU for the overflow detection.
25306 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25307 Reexpress comparison for overflow.
25308 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25309 (add<mode>3_carryinC): Likewise.
25310 (add<mode>3_carryinV): Use LTU for carry between partials.
25311 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25312 handling of CC_Cmode and add CC_ADCmode.
25313 (aarch64_borrow_operation): Likewise.
25314
25315 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25316
25317 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25318 Remove patternmode.
25319 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25320 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25321 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25322 Remove endianness conversion.
25323
25324 2019-01-16 Martin Liska <mliska@suse.cz>
25325
25326 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25327 for GCC driver.
25328 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25329 a new argument.
25330 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25331 (path_prefix_reset): Move up in the source file.
25332 (find_fortran_preinclude_file): Make complex search for the
25333 fortran header files.
25334
25335 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25336
25337 * godump.c (go_output_typedef): When outputting a typedef, refer
25338 to the underlying type by its name and not its structure.
25339
25340 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25341
25342 PR c++/88795
25343 * tree.c (build_function_type): Assert that arg_types is not
25344 error_mark_node.
25345
25346 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25347
25348 PR inline-asm/52813
25349 * doc/extend.texi: Document that listing the stack pointer in the
25350 clobber list of an asm is a deprecated feature.
25351 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25352 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25353 warning instead of an error for clobbers of the stack pointer.
25354 Add a note explaining why.
25355
25356 2019-01-15 Richard Biener <rguenther@suse.de>
25357
25358 PR debug/88046
25359 * dwarf2out.c (gen_member_die): Do not generate inheritance
25360 DIEs late.
25361
25362 2019-01-15 Richard Biener <rguenther@suse.de>
25363
25364 PR tree-optimization/88855
25365 * tree-if-conv.c (combine_blocks): Collect
25366 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25367
25368 2019-01-15 Tom de Vries <tdevries@suse.de>
25369
25370 PR target/80547
25371 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25372 lhs == NULL_TREE for gang-level reduction.
25373
25374 2019-01-15 Richard Biener <rguenther@suse.de>
25375 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25376
25377 PR ipa/88788
25378 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25379 return true if SSA_NAME is already marked in visited bitmap.
25380 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25381
25382 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25383
25384 PR tree-optimization/88775
25385 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25386 equal == 0 equality pointer comparisons some more if compared in
25387 integral types and either one points to an automatic var and the
25388 other to a global, or we can prove at least one points to the middle
25389 or both point to start or both point to end.
25390
25391 2019-01-14 Andi Kleen <ak@linux.intel.com>
25392
25393 * Makefile.in: Lower autofdo sampling rate by 10x.
25394 * Makefile.tpl: Dito.
25395
25396 2019-01-14 Tom Honermann <tom@honermann.net>
25397
25398 * defaults.h: Define CHAR8_TYPE.
25399
25400 2019-01-14 Martin Sebor <msebor@redhat.com>
25401
25402 PR target/88638
25403 * doc/extend.texi (Darwin Format Checks): Clarify.
25404
25405 2019-01-14 Richard Biener <rguenther@suse.de>
25406
25407 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25408 whether we are in (simplify ...) or (match ...) context.
25409
25410 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25411
25412 PR rtl-optimization/88796
25413 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25414 * cfgexpand.c (stack_protect_prologue): Initialize
25415 crtl->stack_protect_guard_decl.
25416 * function.c (stack_protect_epilogue): Use it instead of calling
25417 targetm.stack_protect_guard again.
25418 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25419 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25420 crtl->stack_protect_guard_decl.
25421 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25422 on the returned MEM_EXPR.
25423
25424 2019-01-12 Tom de Vries <tdevries@suse.de>
25425
25426 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25427 vector length using -fopenacc-dim.
25428
25429 2019-01-12 Tom de Vries <tdevries@suse.de>
25430
25431 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25432 lengths into account.
25433
25434 2019-01-12 Svante Signell <svante.signell@gmail.com>
25435
25436 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25437 (TARGET_CAN_SPLIT_STACK): Define.
25438 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25439
25440 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25441
25442 * params.def (inline-unit-growth): Set to 40.
25443
25444 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25445
25446 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25447
25448 2019-01-12 Tom de Vries <tdevries@suse.de>
25449
25450 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25451 region calling vector-partitionable routine, set default_vector_length
25452 to WARP_SIZE.
25453
25454 2019-01-12 Tom de Vries <tdevries@suse.de>
25455
25456 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25457 variable default_vector_length.
25458
25459 2019-01-12 Tom de Vries <tdevries@suse.de>
25460
25461 PR middle-end/88703
25462 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25463 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25464 dimensions limits.
25465
25466 2019-01-12 Tom de Vries <tdevries@suse.de>
25467
25468 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25469 (nvptx_goacc_validate_dims): Add used parameter.
25470 * doc/tm.texi: Regenerate.
25471 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25472 argument to call to targetm.goacc.validate_dims.
25473 (default_goacc_validate_dims): Add used
25474 parameter.
25475 * target.def (validate_dims): Add used parameter in DEFHOOK.
25476 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25477
25478 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25479
25480 PR middle-end/85956
25481 PR lto/88733
25482 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25483 field.
25484 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25485 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25486 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25487 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25488
25489 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25490
25491 PR rtl-optimization/87305
25492 * lra-assigns.c
25493 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25494 for little endian pseudos used as paradoxical subreg.
25495
25496 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25497
25498 PR tree-optimization/88693
25499 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25500 for STRING_CSTs that don't contain any NUL characters in the first
25501 TREE_STRING_LENGTH bytes.
25502
25503 2019-01-11 Alan Modra <amodra@gmail.com>
25504
25505 PR 88777
25506 PR 88614
25507 * genattrtab.c (min_fn): Don't translate values.
25508 (min_attr_value): Return INT_MAX when the value can't be calculated.
25509 Return minimum among any values that can be calculated.
25510 (max_attr_value): Adjust.
25511
25512 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25513
25514 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25515
25516 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25517
25518 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25519 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25520 (aarch64_return_call_with_max_clobbers): New function.
25521 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25522 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25523 argument.
25524 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25525 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25526 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25527 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25528 * cselib.c (cselib_process_insn): Add argument to
25529 targetm.hard_regno_call_part_clobbered call.
25530 * ira-conflicts.c (ira_build_conflicts): Ditto.
25531 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25532 * lra-constraints.c (inherit_reload_reg): Ditto.
25533 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25534 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25535 argument. Call targetm.return_call_with_max_clobbers.
25536 Add argument to targetm.hard_regno_call_part_clobbered call.
25537 (calls_have_same_clobbers_p): New function.
25538 (process_bb_lives): Add call_insn and last_call_insn variables.
25539 Pass call_insn to check_pseudos_live_through_calls.
25540 Modify if stmt to check targetm.return_call_with_max_clobbers.
25541 Update setting of flush variable.
25542 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25543 to false.
25544 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25545 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25546 targetm.hard_regno_call_part_clobbered call.
25547 * reginfo.c (choose_hard_reg_mode): Ditto.
25548 * regrename.c (check_new_reg_p): Ditto.
25549 * reload.c (find_equiv_reg): Ditto.
25550 * reload1.c (emit_reload_insns): Ditto.
25551 * sched-deps.c (deps_analyze_insn): Ditto.
25552 * sel-sched.c (init_regs_for_mode): Ditto.
25553 (mark_unavailable_hard_regs): Ditto.
25554 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25555 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25556 (return_call_with_max_clobbers): New target function.
25557 * doc/tm.texi: Regenerate.
25558 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25559 * hooks.c (hook_bool_uint_mode_false): Change to
25560 hook_bool_insn_uint_mode_false.
25561 * hooks.h (hook_bool_uint_mode_false): Ditto.
25562
25563 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25564
25565 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25566 (aarch64_remove_extra_call_preserved_regs): New function.
25567 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25568 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25569 * doc/tm.texi: Regenerate.
25570 * final.c (get_call_reg_set_usage): Call new hook.
25571 * target.def (remove_extra_call_preserved_regs): New hook.
25572 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25573 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25574
25575 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25576
25577 PR bootstrap/88714
25578 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25579 inside of pass_combine_1 dump rather than pass_profile_1.
25580
25581 2019-01-11 Tom de Vries <tdevries@suse.de>
25582
25583 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25584 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25585 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25586 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25587 num_workers 16.
25588
25589 2019-01-11 Tom de Vries <tdevries@suse.de>
25590
25591 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25592
25593 2019-01-11 Jan Beulich <jbeulich@suse.com>
25594
25595 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25596 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25597 sse2_cvtsi2sd): Add {l}.
25598 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25599 syntax.
25600
25601 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25602
25603 PR target/88785
25604 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25605 define_expand.
25606 (*float<floatunssuffix>v2div2sf2): New define_insn.
25607 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25608 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25609 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25610 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25611 match_operands with "const0_operand" "C".
25612
25613 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25614
25615 * config/aarch64/aarch64-builtins.c
25616 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25617 (aarch64_init_simd_builtins): ...Here
25618
25619 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25620
25621 PR rtl-optimization/87305
25622 * lra-assigns.c
25623 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25624 allocation for big endian pseudos used as paradoxical subregs and
25625 spill them if it is wrong.
25626 * lra-constraints.c (lra_constraints): Add a comment.
25627
25628 2019-01-10 Richard Biener <rguenther@suse.de>
25629
25630 PR tree-optimization/88792
25631 * tree-ssa-pre.c (get_representative_for): Do not return a
25632 value-number here.
25633
25634 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25635
25636 PR middle-end/84877
25637 PR bootstrap/88450
25638 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25639 (assign_parm_setup_block): Do the argument slot realignment here
25640 instead.
25641
25642 2019-01-10 Stefan Agner <stefan@agner.ch>
25643
25644 PR target/88648
25645 * config/arm/arm.c (arm_option_override_internal): Force
25646 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25647
25648 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25649
25650 PR c/88568
25651 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25652 DECL_EXTERNAL.
25653
25654 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25655
25656 * config/arm/arm-builtins.c
25657 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25658 (MAC_LANE_PAIR_QUALIFIERS): New.
25659 (arm_expand_builtin_args): Use it.
25660 (arm_expand_builtin_1): Likewise.
25661 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25662 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25663 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25664 * config/arm/arm_neon.h:
25665 (vcadd_rot90_f16): New.
25666 (vcaddq_rot90_f16): New.
25667 (vcadd_rot270_f16): New.
25668 (vcaddq_rot270_f16): New.
25669 (vcmla_f16): New.
25670 (vcmlaq_f16): New.
25671 (vcmla_lane_f16): New.
25672 (vcmla_laneq_f16): New.
25673 (vcmlaq_lane_f16): New.
25674 (vcmlaq_laneq_f16): New.
25675 (vcmla_rot90_f16): New.
25676 (vcmlaq_rot90_f16): New.
25677 (vcmla_rot90_lane_f16): New.
25678 (vcmla_rot90_laneq_f16): New.
25679 (vcmlaq_rot90_lane_f16): New.
25680 (vcmlaq_rot90_laneq_f16): New.
25681 (vcmla_rot180_f16): New.
25682 (vcmlaq_rot180_f16): New.
25683 (vcmla_rot180_lane_f16): New.
25684 (vcmla_rot180_laneq_f16): New.
25685 (vcmlaq_rot180_lane_f16): New.
25686 (vcmlaq_rot180_laneq_f16): New.
25687 (vcmla_rot270_f16): New.
25688 (vcmlaq_rot270_f16): New.
25689 (vcmla_rot270_lane_f16): New.
25690 (vcmla_rot270_laneq_f16): New.
25691 (vcmlaq_rot270_lane_f16): New.
25692 (vcmlaq_rot270_laneq_f16): New.
25693 (vcadd_rot90_f32): New.
25694 (vcaddq_rot90_f32): New.
25695 (vcadd_rot270_f32): New.
25696 (vcaddq_rot270_f32): New.
25697 (vcmla_f32): New.
25698 (vcmlaq_f32): New.
25699 (vcmla_lane_f32): New.
25700 (vcmla_laneq_f32): New.
25701 (vcmlaq_lane_f32): New.
25702 (vcmlaq_laneq_f32): New.
25703 (vcmla_rot90_f32): New.
25704 (vcmlaq_rot90_f32): New.
25705 (vcmla_rot90_lane_f32): New.
25706 (vcmla_rot90_laneq_f32): New.
25707 (vcmlaq_rot90_lane_f32): New.
25708 (vcmlaq_rot90_laneq_f32): New.
25709 (vcmla_rot180_f32): New.
25710 (vcmlaq_rot180_f32): New.
25711 (vcmla_rot180_lane_f32): New.
25712 (vcmla_rot180_laneq_f32): New.
25713 (vcmlaq_rot180_lane_f32): New.
25714 (vcmlaq_rot180_laneq_f32): New.
25715 (vcmla_rot270_f32): New.
25716 (vcmlaq_rot270_f32): New.
25717 (vcmla_rot270_lane_f32): New.
25718 (vcmla_rot270_laneq_f32): New.
25719 (vcmlaq_rot270_lane_f32): New.
25720 (vcmlaq_rot270_laneq_f32): New.
25721 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25722 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25723 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25724 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25725 vcmlaq_lane270): New.
25726 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25727 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25728 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25729 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25730 (arm_option_reconfigure_globals): Use them.
25731 * config/arm/iterators.md (VDF, VQ_HSF): New.
25732 (VCADD, VCMLA): New.
25733 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25734 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25735 New.
25736 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25737 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25738
25739 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25740
25741 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25742 Add qualifier_lane_pair_index.
25743 (emit-rtl.h): Include.
25744 (TYPES_QUADOP_LANE_PAIR): New.
25745 (aarch64_simd_expand_args): Use it.
25746 (aarch64_simd_expand_builtin): Likewise.
25747 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25748 New.
25749 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25750 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25751 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25752 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25753 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25754 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25755 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25756 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25757 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25758 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25759 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25760 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25761 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25762 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25763 Add __ARM_FEATURE_COMPLEX.
25764 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25765 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25766 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25767 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25768 fcmlaq_lane270): New.
25769 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25770 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25771 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25772 * config/aarch64/arm_neon.h:
25773 (vcadd_rot90_f16): New.
25774 (vcaddq_rot90_f16): New.
25775 (vcadd_rot270_f16): New.
25776 (vcaddq_rot270_f16): New.
25777 (vcmla_f16): New.
25778 (vcmlaq_f16): New.
25779 (vcmla_lane_f16): New.
25780 (vcmla_laneq_f16): New.
25781 (vcmlaq_lane_f16): New.
25782 (vcmlaq_rot90_lane_f16): New.
25783 (vcmla_rot90_laneq_f16): New.
25784 (vcmla_rot90_lane_f16): New.
25785 (vcmlaq_rot90_f16): New.
25786 (vcmla_rot90_f16): New.
25787 (vcmlaq_laneq_f16): New.
25788 (vcmla_rot180_laneq_f16): New.
25789 (vcmla_rot180_lane_f16): New.
25790 (vcmlaq_rot180_f16): New.
25791 (vcmla_rot180_f16): New.
25792 (vcmlaq_rot90_laneq_f16): New.
25793 (vcmlaq_rot270_laneq_f16): New.
25794 (vcmlaq_rot270_lane_f16): New.
25795 (vcmla_rot270_laneq_f16): New.
25796 (vcmlaq_rot270_f16): New.
25797 (vcmla_rot270_f16): New.
25798 (vcmlaq_rot180_laneq_f16): New.
25799 (vcmlaq_rot180_lane_f16): New.
25800 (vcmla_rot270_lane_f16): New.
25801 (vcadd_rot90_f32): New.
25802 (vcaddq_rot90_f32): New.
25803 (vcaddq_rot90_f64): New.
25804 (vcadd_rot270_f32): New.
25805 (vcaddq_rot270_f32): New.
25806 (vcaddq_rot270_f64): New.
25807 (vcmla_f32): New.
25808 (vcmlaq_f32): New.
25809 (vcmlaq_f64): New.
25810 (vcmla_lane_f32): New.
25811 (vcmla_laneq_f32): New.
25812 (vcmlaq_lane_f32): New.
25813 (vcmlaq_laneq_f32): New.
25814 (vcmla_rot90_f32): New.
25815 (vcmlaq_rot90_f32): New.
25816 (vcmlaq_rot90_f64): New.
25817 (vcmla_rot90_lane_f32): New.
25818 (vcmla_rot90_laneq_f32): New.
25819 (vcmlaq_rot90_lane_f32): New.
25820 (vcmlaq_rot90_laneq_f32): New.
25821 (vcmla_rot180_f32): New.
25822 (vcmlaq_rot180_f32): New.
25823 (vcmlaq_rot180_f64): New.
25824 (vcmla_rot180_lane_f32): New.
25825 (vcmla_rot180_laneq_f32): New.
25826 (vcmlaq_rot180_lane_f32): New.
25827 (vcmlaq_rot180_laneq_f32): New.
25828 (vcmla_rot270_f32): New.
25829 (vcmlaq_rot270_f32): New.
25830 (vcmlaq_rot270_f64): New.
25831 (vcmla_rot270_lane_f32): New.
25832 (vcmla_rot270_laneq_f32): New.
25833 (vcmlaq_rot270_lane_f32): New.
25834 (vcmlaq_rot270_laneq_f32): New.
25835 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25836 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25837 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25838 (FCADD, FCMLA): New.
25839 (rot): New.
25840 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25841
25842 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25843
25844 PR other/16615
25845
25846 * config/pa/pa.c: Change "can not" to "cannot".
25847 * gimple-ssa-evrp-analyze.c: Likewise.
25848 * ipa-icf.c: Likewise.
25849 * ipa-polymorphic-call.c: Likewise.
25850 * ipa-pure-const.c: Likewise.
25851 * lra-constraints.c: Likewise.
25852 * lra-remat.c: Likewise.
25853 * reload1.c: Likewise.
25854 * reorg.c: Likewise.
25855 * tree-ssa-uninit.c: Likewise.
25856
25857 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25858
25859 PR other/16615
25860
25861 * Makefile.in: Mechanically replace "can not" with "cannot".
25862 * alias.c: Likewise.
25863 * builtins.c: Likewise.
25864 * calls.c: Likewise.
25865 * cgraph.c: Likewise.
25866 * cgraph.h: Likewise.
25867 * cgraphclones.c: Likewise.
25868 * cgraphunit.c: Likewise.
25869 * combine-stack-adj.c: Likewise.
25870 * combine.c: Likewise.
25871 * common/config/i386/i386-common.c: Likewise.
25872 * config/aarch64/aarch64.c: Likewise.
25873 * config/alpha/sync.md: Likewise.
25874 * config/arc/arc.c: Likewise.
25875 * config/arc/predicates.md: Likewise.
25876 * config/arm/arm-c.c: Likewise.
25877 * config/arm/arm.c: Likewise.
25878 * config/arm/arm.h: Likewise.
25879 * config/arm/arm.md: Likewise.
25880 * config/arm/cortex-r4f.md: Likewise.
25881 * config/csky/csky.c: Likewise.
25882 * config/csky/csky.h: Likewise.
25883 * config/darwin-f.c: Likewise.
25884 * config/epiphany/epiphany.md: Likewise.
25885 * config/i386/i386.c: Likewise.
25886 * config/i386/sol2.h: Likewise.
25887 * config/m68k/m68k.c: Likewise.
25888 * config/mcore/mcore.h: Likewise.
25889 * config/microblaze/microblaze.md: Likewise.
25890 * config/mips/20kc.md: Likewise.
25891 * config/mips/sb1.md: Likewise.
25892 * config/nds32/nds32.c: Likewise.
25893 * config/nds32/predicates.md: Likewise.
25894 * config/pa/pa.c: Likewise.
25895 * config/rs6000/e300c2c3.md: Likewise.
25896 * config/rs6000/rs6000.c: Likewise.
25897 * config/s390/s390.h: Likewise.
25898 * config/sh/sh.c: Likewise.
25899 * config/sh/sh.md: Likewise.
25900 * config/spu/vmx2spu.h: Likewise.
25901 * cprop.c: Likewise.
25902 * dbxout.c: Likewise.
25903 * df-scan.c: Likewise.
25904 * doc/cfg.texi: Likewise.
25905 * doc/extend.texi: Likewise.
25906 * doc/fragments.texi: Likewise.
25907 * doc/gty.texi: Likewise.
25908 * doc/invoke.texi: Likewise.
25909 * doc/lto.texi: Likewise.
25910 * doc/md.texi: Likewise.
25911 * doc/objc.texi: Likewise.
25912 * doc/rtl.texi: Likewise.
25913 * doc/tm.texi: Likewise.
25914 * dse.c: Likewise.
25915 * emit-rtl.c: Likewise.
25916 * emit-rtl.h: Likewise.
25917 * except.c: Likewise.
25918 * expmed.c: Likewise.
25919 * expr.c: Likewise.
25920 * fold-const.c: Likewise.
25921 * genautomata.c: Likewise.
25922 * gimple-fold.c: Likewise.
25923 * hard-reg-set.h: Likewise.
25924 * ifcvt.c: Likewise.
25925 * ipa-comdats.c: Likewise.
25926 * ipa-cp.c: Likewise.
25927 * ipa-devirt.c: Likewise.
25928 * ipa-fnsummary.c: Likewise.
25929 * ipa-icf.c: Likewise.
25930 * ipa-inline-transform.c: Likewise.
25931 * ipa-inline.c: Likewise.
25932 * ipa-polymorphic-call.c: Likewise.
25933 * ipa-profile.c: Likewise.
25934 * ipa-prop.c: Likewise.
25935 * ipa-pure-const.c: Likewise.
25936 * ipa-reference.c: Likewise.
25937 * ipa-split.c: Likewise.
25938 * ipa-visibility.c: Likewise.
25939 * ipa.c: Likewise.
25940 * ira-build.c: Likewise.
25941 * ira-color.c: Likewise.
25942 * ira-conflicts.c: Likewise.
25943 * ira-costs.c: Likewise.
25944 * ira-int.h: Likewise.
25945 * ira-lives.c: Likewise.
25946 * ira.c: Likewise.
25947 * ira.h: Likewise.
25948 * loop-invariant.c: Likewise.
25949 * loop-unroll.c: Likewise.
25950 * lower-subreg.c: Likewise.
25951 * lra-assigns.c: Likewise.
25952 * lra-constraints.c: Likewise.
25953 * lra-eliminations.c: Likewise.
25954 * lra-lives.c: Likewise.
25955 * lra-remat.c: Likewise.
25956 * lra-spills.c: Likewise.
25957 * lra.c: Likewise.
25958 * lto-cgraph.c: Likewise.
25959 * lto-streamer-out.c: Likewise.
25960 * postreload-gcse.c: Likewise.
25961 * predict.c: Likewise.
25962 * profile-count.h: Likewise.
25963 * profile.c: Likewise.
25964 * recog.c: Likewise.
25965 * ree.c: Likewise.
25966 * reload.c: Likewise.
25967 * reload1.c: Likewise.
25968 * reorg.c: Likewise.
25969 * resource.c: Likewise.
25970 * rtl.def: Likewise.
25971 * rtl.h: Likewise.
25972 * rtlanal.c: Likewise.
25973 * sched-deps.c: Likewise.
25974 * sched-ebb.c: Likewise.
25975 * sched-rgn.c: Likewise.
25976 * sel-sched-ir.c: Likewise.
25977 * sel-sched.c: Likewise.
25978 * shrink-wrap.c: Likewise.
25979 * simplify-rtx.c: Likewise.
25980 * symtab.c: Likewise.
25981 * target.def: Likewise.
25982 * toplev.c: Likewise.
25983 * tree-call-cdce.c: Likewise.
25984 * tree-cfg.c: Likewise.
25985 * tree-complex.c: Likewise.
25986 * tree-core.h: Likewise.
25987 * tree-eh.c: Likewise.
25988 * tree-inline.c: Likewise.
25989 * tree-loop-distribution.c: Likewise.
25990 * tree-nrv.c: Likewise.
25991 * tree-profile.c: Likewise.
25992 * tree-sra.c: Likewise.
25993 * tree-ssa-alias.c: Likewise.
25994 * tree-ssa-dce.c: Likewise.
25995 * tree-ssa-dom.c: Likewise.
25996 * tree-ssa-forwprop.c: Likewise.
25997 * tree-ssa-loop-im.c: Likewise.
25998 * tree-ssa-loop-ivcanon.c: Likewise.
25999 * tree-ssa-loop-ivopts.c: Likewise.
26000 * tree-ssa-loop-niter.c: Likewise.
26001 * tree-ssa-phionlycprop.c: Likewise.
26002 * tree-ssa-phiopt.c: Likewise.
26003 * tree-ssa-propagate.c: Likewise.
26004 * tree-ssa-threadedge.c: Likewise.
26005 * tree-ssa-threadupdate.c: Likewise.
26006 * tree-ssa-uninit.c: Likewise.
26007 * tree-ssanames.c: Likewise.
26008 * tree-streamer-out.c: Likewise.
26009 * tree.c: Likewise.
26010 * tree.h: Likewise.
26011 * vr-values.c: Likewise.
26012
26013 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26014
26015 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26016 (ix86_split_xorsign): Ditto.
26017 * config/i386/i386.c (ix86_expand_xorsign): New function.
26018 (ix86_split_xorsign): Ditto.
26019 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26020 (xorsign<mode>3): New expander.
26021 (xorsign<mode>3_1): New insn_and_split pattern.
26022 * config/i386/sse.md (xorsign<mode>3): New expander.
26023
26024 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26025
26026 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26027 (*tablejump_sp64): Likewise.
26028 (*tablejump<P:mode>): ...this.
26029 (*call_address_sp32): Merge into...
26030 (*call_address_sp64): Likewise.
26031 (*call_address<P:mode>): ...this.
26032 (*call_symbolic_sp32): Merge into...
26033 (*call_symbolic_sp64): Likewise.
26034 (*call_symbolic<P:mode>): ...this.
26035 (call_value): Remove constraint and add predicate.
26036 (*call_value_address_sp32): Merge into...
26037 (*call_value_address_sp64): Likewise.
26038 (*call_value_address<P:mode>): ...this.
26039 (*call_value_symbolic_sp32): Merge into...
26040 (*call_value_symbolic_sp64): Likewise.
26041 (*call_value_symbolic<P:mode>): ...this.
26042 (*sibcall_symbolic_sp32): Merge into...
26043 (*sibcall_symbolic_sp64): Likewise.
26044 (*sibcall_symbolic<P:mode>): ...this.
26045 (sibcall_value): Remove constraint and add predicate.
26046 (*sibcall_value_symbolic_sp32): Merge into...
26047 (*sibcall_value_symbolic_sp64): Likewise.
26048 (*sibcall_value_symbolic<P:mode>): ...this.
26049 (window_save): Minor tweak.
26050 (*branch_sp32): Merge into...
26051 (*branch_sp64): Likewise.
26052 (*branch<P:mode>): ...this.
26053
26054 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26055 James Clarke <jrtc27@jrtc27.com>
26056
26057 PR target/84010
26058 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26059 consistently in TLS address generation and adjust code to the renaming
26060 of patterns. Mark calls to __tls_get_addr as const.
26061 * config/sparc/sparc.md (tgd_hi22): Turn into...
26062 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26063 (tgd_lo10): Turn into...
26064 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26065 (tgd_add32): Merge into...
26066 (tgd_add64): Likewise.
26067 (tgd_add<P:mode>): ...this and use Pmode throughout.
26068 (tldm_hi22): Turn into...
26069 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26070 (tldm_lo10): Turn into...
26071 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26072 (tldm_add32): Merge into...
26073 (tldm_add64): Likewise.
26074 (tldm_add<P:mode>): ...this and use Pmode throughout.
26075 (tldm_call32): Merge into...
26076 (tldm_call64): Likewise.
26077 (tldm_call<P:mode>): ...this and use Pmode throughout.
26078 (tldo_hix22): Turn into...
26079 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26080 (tldo_lox10): Turn into...
26081 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26082 (tldo_add32): Merge into...
26083 (tldo_add64): Likewise.
26084 (tldo_add<P:mode>): ...this and use Pmode throughout.
26085 (tie_hi22): Turn into...
26086 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26087 (tie_lo10): Turn into...
26088 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26089 (tie_ld64): Use DImode throughout.
26090 (tie_add32): Merge into...
26091 (tie_add64): Likewise.
26092 (tie_add<P:mode>): ...this and use Pmode throughout.
26093 (tle_hix22_sp32): Merge into...
26094 (tle_hix22_sp64): Likewise.
26095 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26096 (tle_lox22_sp32): Merge into...
26097 (tle_lox22_sp64): Likewise.
26098 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26099 (*tldo_ldub_sp32): Merge into...
26100 (*tldo_ldub_sp64): Likewise.
26101 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26102 (*tldo_ldub1_sp32): Merge into...
26103 (*tldo_ldub1_sp64): Likewise.
26104 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26105 (*tldo_ldub2_sp32): Merge into...
26106 (*tldo_ldub2_sp64): Likewise.
26107 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26108 (*tldo_ldsb1_sp32): Merge into...
26109 (*tldo_ldsb1_sp64): Likewise.
26110 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26111 (*tldo_ldsb2_sp32): Merge into...
26112 (*tldo_ldsb2_sp64): Likewise.
26113 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26114 (*tldo_ldub3_sp64): Use DImode throughout.
26115 (*tldo_ldsb3_sp64): Likewise.
26116 (*tldo_lduh_sp32): Merge into...
26117 (*tldo_lduh_sp64): Likewise.
26118 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26119 (*tldo_lduh1_sp32): Merge into...
26120 (*tldo_lduh1_sp64): Likewise.
26121 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26122 (*tldo_ldsh1_sp32): Merge into...
26123 (*tldo_ldsh1_sp64): Likewise.
26124 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26125 (*tldo_lduh2_sp64): Use DImode throughout.
26126 (*tldo_ldsh2_sp64): Likewise.
26127 (*tldo_lduw_sp32): Merge into...
26128 (*tldo_lduw_sp64): Likewise.
26129 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26130 (*tldo_lduw1_sp64): Use DImode throughout.
26131 (*tldo_ldsw1_sp64): Likewise.
26132 (*tldo_ldx_sp64): Likewise.
26133 (*tldo_stb_sp32): Merge into...
26134 (*tldo_stb_sp64): Likewise.
26135 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26136 (*tldo_sth_sp32): Merge into...
26137 (*tldo_sth_sp64): Likewise.
26138 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26139 (*tldo_stw_sp32): Merge into...
26140 (*tldo_stw_sp64): Likewise.
26141 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26142 (*tldo_stx_sp64): Use DImode throughout.
26143
26144 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26145
26146 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26147 check configure option to set BTI and Return Address Signing.
26148 * configure.ac: Add --enable-standard-branch-protection and
26149 --disable-standard-branch-protection.
26150 * configure: Regenerated.
26151 * doc/install.texi: Document the same.
26152
26153 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26154 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26155
26156 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26157 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26158 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26159 if bti is enabled.
26160 * config/aarch64/aarch64-bti-insert.c: New file.
26161 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26162 pass.
26163 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26164 new bti pass.
26165 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26166 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26167 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26168 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26169
26170 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26171
26172 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26173 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26174 Disable bti for -mbranch-protection=none.
26175 (aarch64_handle_standard_branch_protection): Enable bti for
26176 -mbranch-protection=standard.
26177 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26178 -mbranch-protection.
26179 (aarch64_bti_enabled): Check if bti is enabled.
26180 * config/aarch64/aarch64.opt: Declare target variable.
26181 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26182
26183 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26184
26185 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26186 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26187 (aarch64_expand_epilogue): Likewise.
26188 (aarch64_output_mi_thunk): Likewise.
26189 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26190 TAILCALL_ADDR_REGS to x16 and x17.
26191 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26192
26193 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26194
26195 * config/aarch64/aarch64-option-extensions.def: Define
26196 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26197 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26198 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26199 (AARCH64_FL_PREDRES): New.
26200 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26201 AARCH64_FL_PREDRES by default.
26202 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26203
26204 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26205
26206 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26207 ARMv8.5-A.
26208 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26209 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26210 * doc/invoke.texi: Document ARMv8.5-A.
26211
26212 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26213
26214 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26215 (xorsign<mode>3): Likewise.
26216
26217 2019-01-09 Jelinek <jakub@redhat.com>
26218
26219 PR middle-end/88758
26220 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26221 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26222
26223 PR rtl-optimization/88331
26224 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26225 not currently_expanding_to_rtl.
26226
26227 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26228
26229 * doc/invoke.texi (-Os): Remove trailing spaces.
26230 (-finline-functions): Remove reference to -O2.
26231
26232 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26233
26234 PR rtl-optimization/79593
26235 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26236
26237 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26238 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26239
26240 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26241
26242 PR bootstrap/88721
26243 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26244 to -1 on entry.
26245
26246 PR debug/88723
26247 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26248 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26249
26250 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26251
26252 PR target/88717
26253 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26254 ix86_avx_u128_mode_entry.
26255
26256 2019-01-08 Martin Liska <mliska@suse.cz>
26257
26258 PR tree-optimization/88753
26259 * tree-switch-conversion.c (switch_conversion::build_one_array):
26260 Come up with local variable constructor. Convert first to
26261 type of constructor values.
26262
26263 2019-01-08 Richard Biener <rguenther@suse.de>
26264
26265 PR tree-optimization/86554
26266 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26267 rpo_avail): Move earlier.
26268 (visit_nary_op): When value-numbering to expressions
26269 with different overflow behavior make sure there's an
26270 available expression on the path.
26271
26272 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26273
26274 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26275 aarch64_parse_branch_protection,
26276 struct aarch64_branch_protect_type,
26277 aarch64_handle_no_branch_protection,
26278 aarch64_handle_standard_branch_protection,
26279 aarch64_validate_mbranch_protection,
26280 aarch64_handle_pac_ret_protection,
26281 aarch64_handle_attr_branch_protection,
26282 accepted_branch_protection_string,
26283 aarch64_pac_ret_subtypes,
26284 aarch64_branch_protect_types,
26285 aarch64_handle_pac_ret_leaf): Define.
26286 (aarch64_override_options_after_change_1, aarch64_override_options):
26287 Add check for accepted_branch_protection_string.
26288 (aarch64_option_save): Save accepted_branch_protection_string.
26289 (aarch64_option_restore): Save accepted_branch_protection_string.
26290 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26291 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26292 msign-return-address.
26293 * doc/invoke.texi: Add mbranch-protection.
26294
26295 2019-01-08 Alan Modra <amodra@gmail.com>
26296
26297 PR target/88614
26298 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26299 Delete "unknownp" parameter. Adjust callers. Handle
26300 CONST_INT, PLUS, MINUS, and MULT.
26301 (attr_value_aligned): Renamed from or_attr_value.
26302 (min_attr_value): Return INT_MIN for unhandled rtl case..
26303 (min_fn): ..and translate to INT_MAX here.
26304 (write_length_unit_log): Modify to cope without "unknown".
26305 (write_attr_value): Handle IF_THEN_ELSE.
26306
26307 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26308
26309 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26310 optimization for masked stores.
26311
26312 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26313
26314 PR middle-end/88567
26315 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26316 output vector directly to duplicate_and_interleave instead of
26317 going through a temporary. Postpone insertion of ctor_seq to
26318 the end of the loop.
26319
26320 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26321
26322 PR target/86891
26323 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26324 unsigned_p. Handle signed and unsigned overflow correction as
26325 required.
26326 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26327 prototype.
26328 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26329 for operand 2.
26330 (add<mode>3_compareV_imm): Make this callable for expanding.
26331 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26332 aarch64_plus_operand for operand 2.
26333 (subv<GPI:mode>_insn): New insn pattern.
26334 (subv<GPI:mode>_imm): Likewise.
26335 (negv<GPI:mode>3): New expand pattern.
26336 (negv<GPI:mode>_insn): New insn pattern.
26337 (negv<GPI:mode>_cmp_only): Likewise.
26338 (cmpv<GPI:mode>_insn): Likewise.
26339 (subvti4): Use register_operand for operand 1. Update call to
26340 aarch64_expand_subvti.
26341 (usubvti4): Likewise.
26342 (negvti3): New expand pattern.
26343 (negdi_carryout): New insn pattern.
26344 (negvdi_carryinV): New insn pattern.
26345 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26346 version the named version.
26347 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26348 operands.
26349 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26350 patterns.
26351 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26352 patterns.
26353 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26354 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26355 (sub<mode>3_carryinCV): Delete.
26356 (sub<GPI:mode>3_carryinV): New expand pattern.
26357 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26358
26359 2019-01-07 Richard Biener <rguenther@suse.de>
26360
26361 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26362 of tree_operand_hash.
26363
26364 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26365
26366 PR tree-optimization/88598
26367 * tree.h (single_nonzero_element): Declare.
26368 * tree.c (single_nonzero_element): New function.
26369 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26370 if I is the only nonzero element of CST.
26371
26372 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26373
26374 PR tree-optimization/88598
26375 * tree.h (initializer_each_zero_or_onep): Declare.
26376 * tree.c (initializer_each_zero_or_onep): New function.
26377 (signed_or_unsigned_type_for): Handle float types too.
26378 (unsigned_type_for, signed_type_for): Update comments accordingly.
26379 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26380 x & { 0 or -1, 0 or -1, ... }.
26381
26382 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26383
26384 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26385 with x86_64-pc-linux-gnu.
26386
26387 2019-01-07 Tom de Vries <tdevries@suse.de>
26388
26389 PR target/85486
26390 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26391 function.
26392 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26393 routines.
26394
26395 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26396
26397 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26398 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26399 TARGET_AVX512F as condition.
26400
26401 PR debug/88723
26402 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26403 const_not_ok_for_debug_p target hook.
26404 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26405 on UNSPEC and subexpressions thereof if all subexpressions of the
26406 UNSPEC are CONSTANT_P.
26407
26408 PR tree-optimization/88676
26409 * tree-ssa-phiopt.c (two_value_replacement): New function.
26410 (tree_ssa_phiopt_worker): Call it.
26411
26412 PR sanitizer/88619
26413 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26414 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26415
26416 PR c++/85052
26417 * tree-vect-generic.c: Include insn-config.h and recog.h.
26418 (expand_vector_piecewise): Add defaulted ret_type argument,
26419 if non-NULL, use that in preference to type for the result type.
26420 (expand_vector_parallel): Formatting fix.
26421 (do_vec_conversion, do_vec_narrowing_conversion,
26422 expand_vector_conversion): New functions.
26423 (expand_vector_operations_1): Call expand_vector_conversion
26424 for VEC_CONVERT ifn calls.
26425 * internal-fn.def (VEC_CONVERT): New internal function.
26426 * internal-fn.c (expand_VEC_CONVERT): New function.
26427 * fold-const-call.c (fold_const_vec_convert): New function.
26428 (fold_const_call): Use it for CFN_VEC_CONVERT.
26429 * doc/extend.texi (__builtin_convertvector): Document.
26430
26431 2019-01-07 Tom de Vries <tdevries@suse.de>
26432
26433 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26434 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26435 vector_red_partition, vector_red_sym): New global variables.
26436 (nvptx_option_override): Initialize vector_red_sym.
26437 (nvptx_declare_function_name): Restore red_partition register.
26438 (nvptx_file_end): Emit code to declare the vector reduction variables.
26439 (nvptx_output_red_partition): New function.
26440 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26441 large vector reductions.
26442 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26443 (nvptx_init_builtins): Add VECTOR_ADDR.
26444 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26445 Handle nvptx_expand_shared_addr.
26446 (nvptx_get_shared_red_addr): Add vector argument and handle large
26447 vectors.
26448 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26449 large vectors.
26450 (nvptx_goacc_reduction_init): Likewise.
26451 (nvptx_goacc_reduction_fini): Likewise.
26452 (nvptx_goacc_reduction_teardown): Likewise.
26453 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26454 init,fini,teardown}.
26455 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26456 (nvptx_set_current_function): Init vector_red_partition.
26457 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26458 (nvptx_red_partition): New insn.
26459 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26460
26461 2019-01-07 Tom de Vries <tdevries@suse.de>
26462
26463 PR target/85381
26464 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26465 empty loops.
26466
26467 2019-01-07 Tom de Vries <tdevries@suse.de>
26468
26469 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26470 (nvptx_option_override): Init oacc_bcast_partition.
26471 (nvptx_init_oacc_workers): New function.
26472 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26473 (nvptx_needs_shared_bcast): New function.
26474 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26475 to propagate state.
26476 (nvptx_shared_propagate): Initialize vector bcast partition and
26477 synchronization state.
26478 (nvptx_single): Generalize to enable vectors to use shared-memory
26479 to propagate state.
26480 (nvptx_process_pars): Likewise.
26481 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26482 * config/nvptx/nvptx.h (struct machine_function): Add
26483 bcast_partition and sync_bar members.
26484
26485 2019-01-07 Tom de Vries <tdevries@suse.de>
26486
26487 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26488 (nvptx_apply_dim_limits): New function.
26489 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26490 PTX_WARP_SIZE.
26491
26492 2019-01-07 Tom de Vries <tdevries@suse.de>
26493
26494 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26495 as late as possible.
26496
26497 2019-01-07 Tom de Vries <tdevries@suse.de>
26498
26499 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26500 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26501 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26502 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26503 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26504
26505 2019-01-07 Tom de Vries <tdevries@suse.de>
26506
26507 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26508
26509 2019-01-07 Tom de Vries <tdevries@suse.de>
26510
26511 * omp-offload.c (oacc_get_min_dim): New function.
26512 * omp-offload.h (oacc_get_min_dim): Declare.
26513
26514 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26515
26516 PR target/88521
26517 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26518 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26519
26520 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26521
26522 PR tree-opt/86020
26523 Revert:
26524 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26525
26526 * ipa-inline.c (edge_badness): Use inlined_time instead of
26527 inline_summaries->get.
26528
26529 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26530
26531 * opts.c (enable_fdo_optimizations): Enable
26532 version-loops-for-strides, loop-interchange, unrol-and-jam
26533 and tree-loop-distribution.
26534 * invoke.texi: Document newly enabled options.
26535
26536 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26537
26538 * doc/invoke.texi (max-inline-insns-small): New parameters.
26539 * ipa-inline.c (want_early_inline_function_p): simplify.
26540 (want_inline_small_function_p): Fix pasto from previous patch;
26541 use max-inline-insns-small bound.
26542 * params.def (max-inline-insns-small): New param.
26543 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26544 variables correctly.
26545
26546 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26547
26548 * doc/invoke.texi: Document max-inline-insns-size,
26549 uninlined-function-insns, uninlined-function-time,
26550 uninlined-thunk-insns and uninlined-thunk-time.
26551 * params.def: Add max-inline-insns-size,
26552 uninlined-function-insns, uninlined-function-time,
26553 uninlined-thunk-insns and uninlined-thunk-time.
26554 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26555 new parameters.
26556 * ipa-inline.c (can_inline_edge_by_limits_p,
26557 want_inline_small_function_p): Use new parameters.
26558
26559 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26560
26561 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26562
26563 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26564
26565 PR middle-end/82564
26566 PR target/88620
26567 * expr.c (expand_assignment): For calls returning VLA structures
26568 if to_rtx is not a MEM, force it into a stack temporary.
26569
26570 PR debug/88635
26571 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26572 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26573 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26574 subexpressions of both operands.
26575 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26576 subrtxes are CONSTANT_P.
26577 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26578 2018-11-09 changes.
26579
26580 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26581
26582 * params.def (hot-bb-count-ws-permille): Set to 990.
26583
26584 2019-01-04 Martin Sebor <msebor@redhat.com>
26585
26586 PR c/88546
26587 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26588 leaf.
26589
26590 2019-01-04 Martin Sebor <msebor@redhat.com>
26591
26592 PR c/88363
26593 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26594
26595 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26596
26597 * gdbinit.in: Turn off pagination for the skip commands, restore
26598 it to previous state afterwards.
26599
26600 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26601
26602 PR target/88594
26603 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26604 of GET_MODE (opN) as modes of the libcall arguments.
26605
26606 2019-01-04 Jan Beulich <jbeulich@suse.com>
26607
26608 * config/i386/sse.md
26609 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26610 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26611 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26612 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26613 avx512f_vmcmp<mode>3<round_saeonly_name>,
26614 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26615 avx512f_maskcmp<mode>3,
26616 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26617 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26618 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26619 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26620 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26621 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26622 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26623 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26624 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26625 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26626 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26627 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26628 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26629 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26630 avx512cd_maskb_vec_dup<mode>,
26631 avx512cd_maskw_vec_dup<mode>,
26632 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26633 avx512dq_vmfpclass<mode>,
26634 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26635 instead of =Yk.
26636
26637 2019-01-03 Martin Sebor <msebor@redhat.com>
26638
26639 PR tree-optimization/88659
26640 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26641
26642 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26643
26644 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26645 unaligned vsx and avoid lxvd2x/stxvd2x.
26646 (gen_lvx_v4si_move): New function.
26647
26648 2019-01-03 Tom de Vries <tdevries@suse.de>
26649
26650 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26651 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26652 function.
26653 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26654
26655 2019-01-03 Tom de Vries <tdevries@suse.de>
26656
26657 * config/nvptx/nvptx.c (struct offload_attrs): New.
26658 (populate_offload_attrs): New function. Factor mask extraction out of
26659 nvptx_reorg. Add extraction of dimensions.
26660 (nvptx_reorg): Use populate_offload_attrs.
26661
26662 2019-01-03 Tom de Vries <tdevries@suse.de>
26663
26664 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26665 cases for oacc_min_dims_p and routine_p. Add asserts for
26666 oacc_default_dims_p and offload_region_p.
26667
26668 2019-01-03 Tom de Vries <tdevries@suse.de>
26669
26670 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26671 factored out of ...
26672 (nvptx_goacc_validate_dims): ... here.
26673
26674 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26675
26676 PR tree-optimization/85574
26677 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26678 structure.
26679 (struct ssa_equip_hash_traits): Declare.
26680 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26681
26682 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26683
26684 PR debug/88644
26685 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26686 change it to qualified_type.
26687
26688 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26689
26690 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26691 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26692
26693 2019-01-02 Martin Sebor <msebor@redhat.com>
26694 Jeff Law <law@redhat.com>
26695
26696 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26697 (get_range_strlen_tree): Update appropriately.
26698 (get_range_strlen)
26699 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26700
26701 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26702 rather than set_range_info.
26703 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26704 maybe_set_strlen_range. Handle potentially boundary crossing
26705 cases more conservatively.
26706 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26707 Call set_strlen_range.
26708 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26709
26710 PR middle-end/88663
26711 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26712 need the flexp argument.
26713 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26714 from calls to get_range_strlen. Update comments. Just update
26715 VAL for an unterminated const char array and let the reset of the
26716 code handle it normally. No longer try to set *flexp. Adjust
26717 return value.
26718 (get_range_strlen): Update for the new get_range_strlen API.
26719 (get_maxval_strlen): Similarly.
26720 (gimple_fold_builtin_strlen): Handle update meaning of return value
26721 from get_range_strlen.
26722 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26723 get_range_strlen API.
26724
26725 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26726
26727 PR lto/88130
26728 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26729 false at WPA time when body was removed.
26730
26731 2019-01-02 Martin Liska <mliska@suse.cz>
26732
26733 PR tree-optimization/88650
26734 * predict.c (set_even_probabilities): Calculate probability
26735 remainer only when really used.
26736
26737 2019-01-02 Richard Biener <rguenther@suse.de>
26738
26739 PR middle-end/88651
26740 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26741 widest_ints when mangling max_stmt_execution results.
26742
26743 2019-01-02 Richard Biener <rguenther@suse.de>
26744
26745 PR tree-optimization/88621
26746 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26747 bitfields when canoncalizing.
26748
26749 2019-01-02 Richard Biener <rguenther@suse.de>
26750
26751 PR target/87545
26752 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26753 cost of cheap SSE instruction.
26754
26755 2019-01-02 Richard Biener <rguenther@suse.de>
26756
26757 PR ipa/85574
26758 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26759 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26760 function.
26761 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26762 set after UIDs before splitting them.
26763
26764 2019-01-01 Martin Sebor <msebor@redhat.com>
26765 Jeff Law <law@redhat.com>
26766
26767 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26768 length is optimistic. If it is, then arrange to compute the
26769 conservative length as well.
26770
26771 * gimple-fold.h (get_range_strlen): Update prototype.
26772 * builtins.c (check_access): Update call to get_range_strlen to use
26773 c_strlen_data pointer. Change various variable accesses to instead
26774 pull data from the c_strlen_data structure.
26775 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26776 * calls.c (maybe_warn_nonstring_arg): Likewise.
26777 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26778 minimum length if maximum lengh is unknown.
26779 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26780 that used c_strlen, it's no longer needed. Restructure slightly.
26781 (format_string): Set unlikely range appropriately.
26782 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26783 formatting issues.
26784 (get_range_strlen): Accept c_strlen_data pointer for external
26785 call sites as well. Pass through to call to internal get_range_strlen.
26786 Adjust minlen, maxlen and maxbound as needed.
26787 (get_maxval_strlen): Update comments.
26788 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26789 to use c_strlen_data pointer. Change variable accesses to instead
26790 use c_strlen_data data members.
26791
26792 * gimple-fold.c (get_range_strlen): Update prototype.
26793 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26794 local variables. Use pdata to return information to caller.
26795 Update calls to get_range_strlen. Update pdata->maxbound.
26796 (get_range_strlen -- static version): Similarly.
26797 (get_range_strlen -- extern version): Update for internal
26798 get_range_strlen API change. Convert to external data format.
26799 (get_maxval_strlen): Similarly.
26800
26801 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26802
26803 * coverage.c (get_coverage_counts): Use current_function_decl.
26804 * profile.c (read_thunk_profile): New function.
26805 (branch_prob): Add THUNK parameter.
26806 * tree-profile.c (tree_profiling): Handle thunks.
26807 * value-prof.c (init_node_map): Handle thunks.
26808 * value-prof.h (branch_prob): Upate prototype.
26809 (read_thunk_profile): Declare.
26810
26811 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26812
26813 Update copyright years.
26814
26815 * gcc.c (process_command): Update copyright notice dates.
26816 * gcov-dump.c (print_version): Ditto.
26817 * gcov.c (print_version): Ditto.
26818 * gcov-tool.c (print_version): Ditto.
26819 * gengtype.c (create_file): Ditto.
26820 * doc/cpp.texi: Bump @copying's copyright year.
26821 * doc/cppinternals.texi: Ditto.
26822 * doc/gcc.texi: Ditto.
26823 * doc/gccint.texi: Ditto.
26824 * doc/gcov.texi: Ditto.
26825 * doc/install.texi: Ditto.
26826 * doc/invoke.texi: Ditto.
26827 \f
26828 Copyright (C) 2019 Free Software Foundation, Inc.
26829
26830 Copying and distribution of this file, with or without modification,
26831 are permitted in any medium without royalty provided the copyright
26832 notice and this notice are preserved.