]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
70e51c5e21c8ad8218c3d45d5eaff9756f4a67ec
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4 Apply reasonable limit to symbol offsets.
5
6 2019-10-16 Richard Biener <rguenther@suse.de>
7
8 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9 (vect_is_simple_reduction): Delay checking to
10 vectorizable_reduction and relax the checking.
11 (vectorizable_reduction): Check we have a simple use. Check
12 for bogus condition reductions.
13 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
14 are looking at the last stmt in a pattern sequence when
15 filling in backedge PHI values.
16
17 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
18 Jiufu Guo <guojiufu@linux.ibm.com>
19
20 PR target/70010
21 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
22 the callee explicitly disables some isa_flags the caller is using.
23
24 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
25
26 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
27
28 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
29
30 * genmodes.c (mode_data::order): New field.
31 (blank_mode): Update accordingly.
32 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
33 (make_vector_modes): Likewise.
34 (VECTOR_MODES): Update use accordingly.
35 (cmp_modes): Sort by the new order field ahead of sorting by size.
36 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
37 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
38 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
39 (aarch64_classify_vector_mode): Handle the new partial modes.
40 (aarch64_vl_bytes): New function.
41 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
42 when counting the number of registers in an SVE mode.
43 (aarch64_class_max_nregs): Likewise.
44 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
45 in registers yet.
46 (aarch64_classify_address): Treat partial vectors analogously
47 to full vectors.
48 (aarch64_print_address_internal): Consolidate the printing of
49 MUL VL addresses, using aarch64_vl_bytes as the number of
50 bytes represented by "VL".
51 (aarch64_vector_mode_supported_p): Reject partial vector modes.
52
53 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
54
55 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
56 rather than known_lt when choosing frame layouts.
57
58 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
59
60 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
61 that all the adjustments add up to the full frame size.
62 Use crtl->outgoing_args_size directly as the final adjustment
63 where appropriate.
64
65 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
66
67 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
68 "frame" reference instead of always referring directly to
69 "cfun->machine->frame".
70
71 2019-10-16 Richard Biener <rguenther@suse.de>
72
73 PR tree-optimization/92119
74 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
75 against missing bswap lhs.
76
77 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
78
79 PR middle-end/92033
80 * poly-int.h (constant_lower_bound_with_limit): New function.
81 (constant_upper_bound_with_limit): Likewise.
82 * doc/poly-int.texi: Document them.
83 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
84 into the worst-case INTEGER_CST bounds.
85
86 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
87
88 PR ipa/91088
89 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
90 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
91 * ipa-predicat.h (struct expr_eval_op): New struct.
92 (expr_eval_ops): New typedef.
93 (struct condition): Add type and param_ops fields, remove size field.
94 (add_condition): Replace size parameter with type parameter, add
95 param_ops parameter.
96 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
97 (predicate::add_clause): Add comparisons on type and param_ops.
98 (dump_condition): Add debug dump for param_ops.
99 (remap_after_inlining): Adjust call arguments to add_condition.
100 (add_condition): Replace size parameter with type parameter, add
101 param_ops parameter. Unshare constant value used in conditions.
102 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
103 parameter expressions using param_ops.
104 (decompose_param_expr): New function.
105 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
106 to replace call to unmodified_parm_or_parm_agg_item.
107 (set_switch_stmt_execution_predicate): Likewise.
108 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
109 with type.
110 (inline_read_section): Read param_ops from summary stream.
111 (ipa_fn_summary_write): Write param_ops to summary stream.
112
113 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
114
115 PR rtl-optimization/92107
116 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
117 expression written.
118
119 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
120
121 * config/darwin.c: Update description of fix and continue.
122
123 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
124
125 * config/darwin.c (darwin_binds_local_p): Update to call
126 default_binds_local_p_3 () directly. amend comments.
127
128 2019-10-15 Richard Biener <rguenther@suse.de>
129
130 * lto-streamer-out.c (lto_variably_modified_type_p): New.
131 (tree_is_indexable): Use it.
132 * tree-streamer-out.c (pack_ts_type_common_value_fields):
133 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
134 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
135
136 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
137
138 * config/msp430/msp430.md (zero_extendqipsi2): New.
139 (zero_extendqisi2): Optimize case where src register and base dst
140 register are the same.
141 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
142 (zero_extendpsisi2): Optimize r->m case.
143 Add unnamed insn patterns to catch insns combine searches for when
144 optimizing pointer manipulation.
145
146 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
147
148 * config/msp430/msp430.md: Group zero_extend* insns together.
149
150 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
151
152 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
153 constraint.
154 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
155 POST_INC.
156 (msp430_subreg): Likewise.
157 (msp430_split_addsi): Likewise.
158 (msp430_print_operand_addr): Likewise.
159 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
160 (USE_STORE_POST_INCREMENT): Define.
161 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
162 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
163 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
164 (msp430_general_dst_operand): New.
165 (msp430_general_dst_nonv_operand): New.
166 (msp430_nonsubreg_operand): Remove.
167 (msp430_nonsubreg_dst_operand): New.
168 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
169 of defunct msp430_nonsubreg_operand.
170 (msp430_nonsubregnonpostinc_or_imm_operand): New.
171
172 2019-10-15 Richard Biener <rguenther@suse.de>
173
174 PR tree-optimization/91929
175 * tree-ssa-pre.c (pre_expr_d::loc): New member.
176 (get_or_alloc_expr_for_name): Initialize it.
177 (get_or_alloc_expr_for_constant): Likewise.
178 (phi_translate_1): Copy it.
179 (create_expression_by_pieces): Use the original location
180 of the expression for the inserted stmt.
181 (compute_avail): Record the location of the stmt for the
182 expressions created.
183
184 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
185
186 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
187 before using tree_to_uhwi.
188
189 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
190
191 * config/s390/s390.md: Run %a0:DI splitters only after reload.
192
193 2019-10-15 Richard Biener <rguenther@suse.de>
194
195 PR tree-optimization/92094
196 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
197 do not adjust the reduction definition def type.
198 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
199 defines the latch argument of the PHI.
200
201 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
202
203 PR target/92035
204 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
205 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
206 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
207 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
208 _mm_maskz_roundscale_round_sd): New intrinsics.
209 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
210 __builtin_ia32_rndscales?_mask_round builtins instead of
211 __builtin_ia32_rndscales?_round.
212 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
213 __builtin_ia32_rndscalesd_round): Remove.
214 (__builtin_ia32_rndscaless_mask_round,
215 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
216 * config/i386/sse.md
217 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
218 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
219 ... this, adjust and add subst atrributes to make it maskable.
220
221 2019-10-15 Richard Biener <rguenther@suse.de>
222
223 PR middle-end/92046
224 * common.opt (fallow-store-data-races): New.
225 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
226 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
227 * doc/invoke.texi (fallow-store-data-races): Document.
228 (--param allow-store-data-races): Remove docs.
229 * opts.c (default_options_table): Enable -fallow-store-data-races
230 at -Ofast.
231 (default_options_optimization): Do not enable --param
232 allow-store-data-races at -Ofast.
233 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
234 instead of PARAM_ALLOW_STORE_DATA_RACES.
235 * tree-ssa-loop-im.c (execute_sm): Likewise.
236
237 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
238
239 PR tree-optimization/92085
240 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
241 instead of calling it unconditionally after
242 delete_dead_or_redundant_assignment and fix indentation.
243
244 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
245
246 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
247 TARGET_VFP_DOUBLE.
248 (*fmsub<SDF:mode>4): Likewise.
249 *fnmsub<SDF:mode>4): Likewise.
250 (*fnmadd<SDF:mode>4): Likewise.
251
252 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
253
254 * doc/tree-ssa.texi: Update renamed macro name.
255
256 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
257
258 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
259 vector constants.
260
261 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
262
263 * config/darwin.c: Use unsigned ints for the picbase label
264 counters, initialise the vars explicitly.
265 (update_pic_label_number_if_needed): Move a variable declaration
266 to where it's needed.
267 (machopic_output_function_base_name): Use a more strict checking
268 assert, and and unsigned int for the picbase label counter.
269 (machopic_get_function_picbase): Likewise.
270
271 2019-10-14 Richard Biener <rguenther@suse.de>
272
273 PR middle-end/92046
274 * dse.c (scan_insn): Use param max_active_local_stores.
275 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
276 based on optimization level.
277 * loop-invariant.c (move_loop_invariants): Adjust
278 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
279 * opts.c (default_options_optimization): Do not adjust
280 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
281 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
282
283 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
284
285 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
286
287 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
288
289 * config/arm/arm.c (arm_option_override): Don't override sched
290 pressure algorithm.
291
292 2019-10-14 Richard Biener <rguenther@suse.de>
293
294 PR tree-optimization/92069
295 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
296 cycles do not set vect_nested_cycle on the latch definition.
297
298 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
299
300 * function-abi.h (expr_callee_abi): Declare.
301 * function-abi.cc (expr_callee_abi): New function.
302
303 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
304
305 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
306 into [1,MAX].
307 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
308 non-zero being represented as [1,MAX].
309
310 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
311
312 * tree-sra.c (dump_access): Add missing braces.
313
314 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
315
316 * config/darwin.c (machopic_indirection_name): Rework the
317 function to emit linker-visible symbols only for indirections
318 in the data section. Clean up the code and update comments.
319
320 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
321
322 * config/darwin.c (machopic_indirect_data_reference): Remove
323 redundant code.
324
325 2019-10-13 Nathan Sidwell <nathan@acm.org>
326
327 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
328
329 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
330
331 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
332 c99_runtime.
333
334 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
335
336 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
337 so non-virutal are before virutals.
338 (output_function): Avoid body modifications.
339
340 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
341
342 * config/pa/pa.c (pa_output_call): Load descriptor address to register
343 %r22. Load function address before global pointer.
344 (pa_attr_length_indirect_call): Adjust length of inline versions of
345 $$dyncall.
346 (pa_output_indirect_call): Remove fast inline version of $$dyncall
347 before normal cases. Update inline $$dyncall sequences to preserve
348 function descriptor address in register %r22.
349 (TRAMPOLINE_CODE_SIZE): Adjust.
350 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
351 register %r22 contains trampoline address.
352 (pa_trampoline_init): Adjust offsets.
353 (pa_trampoline_adjust_address): Likewise.
354 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
355
356 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
357
358 PR target/67183
359 * config/darwin.c (machopic_indirection): New field to flag
360 non-lazy-symbol-pointers in the data section.
361 (machopic_indirection_name): Compute if an indirection should
362 appear in the data section.
363 (machopic_output_data_section_indirection): New callback split
364 from machopic_output_indirection.
365 (machopic_output_stub_indirection): Likewise.
366 (machopic_output_indirection): Retain the code for non-lazy
367 symbol pointers in their regular section.
368 (machopic_finish): Use the new callbacks to order the indirection
369 output.
370
371 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
372
373 * config/darwin-protos.h (machopic_finish): Delete.
374 * config/darwin.c (machopic_finish): Make static.
375
376 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
377
378 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
379 sections when building kernel extension code.
380
381 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
382
383 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
384 later standard."
385
386 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
387
388 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
389 from warning.
390
391 2019-10-12 Jakub Jelinek <jakub@redhat.com>
392
393 PR middle-end/92063
394 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
395 <case VEC_COND_EXPR>: Return false with *handled = false.
396 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
397 recursing on the first operand.
398 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
399 instead of tree_could_trap_p.
400 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
401
402 2019-10-11 Jim Wilson <jimw@sifive.com>
403
404 PR rtl-optimization/91860
405 * combine.c (subst): If new_rtx is a constant, also check for
406 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
407
408 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
409
410 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
411 INTVAL when calling store_bit_field.
412
413 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
414
415 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
416 size.
417
418 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
419
420 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
421 vectorizable_live_operation.
422 (vectorizable_live_operation): Adjust parameters.
423 * tree-vect-stmts.c (vect_init_vector,
424 vect_gen_widened_results_half): Fix typo in function comment.
425 (can_vectorize_live_stmts): Adjust function comment.
426 Adjust parameters. Adjust call to vectorizable_live_operation.
427 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
428 (vect_transform_stmt): Adjust function comment. Adjust call to
429 can_vectorize_live_stmts.
430 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
431
432 2019-10-11 Richard Biener <rguenther@suse.de>
433
434 PR tree-optimization/90883
435 PR tree-optimization/91091
436 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
437 alias-sets both for recording VN table entries and continuing
438 walking after translating through copies. Handle same-sized
439 reads from SSA names by returning the plain SSA name.
440 (eliminate_dom_walker::eliminate_stmt): Properly handle
441 non-size precision stores in redundant store elimination.
442
443 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
444
445 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
446 (ggc_collect): Dump later to not interfere with release_page dump.
447 (ggc_trim): New function.
448 * ggc-none.c (ggc_trim): New.
449 * ggc.h (ggc_trim): Declare.
450
451 2019-10-11 Richard Biener <rguenther@suse.de>
452
453 PR tree-optimization/92066
454 PR tree-optimization/92046
455 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
456 Fix bogus cost model check.
457
458 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
459
460 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
461 (LANG_HOOKS_DECLS): Add it.
462 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
463 update comment for omp_is_optional_argument.
464 * omp-general.c (omp_is_allocatable_or_ptr): New.
465 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
466 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
467 Fortran's optional arguments and allocatable/pointer scalars
468 with use_device_addr.
469
470 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
471
472 PR target/77918
473 * config/s390/2827.md: Add new opcodes.
474 * config/s390/2964.md: Likewise.
475 * config/s390/3906.md: Likewise.
476 * config/s390/8561.md: Likewise.
477 * config/s390/s390-builtins.def (s390_vfchesb): Use
478 the new vec_cmpgev4sf_quiet_nocc.
479 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
480 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
481 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
482 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
483 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
484 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
485 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
486 * config/s390/s390-modes.def (CCSFPS): New mode.
487 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
488 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
489 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
490 (s390_expand_vec_compare): Use non-signaling patterns where
491 necessary.
492 (s390_reverse_condition): Support CCSFPS.
493 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
494 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
495 (asm_fcmp_op): Likewise.
496 (*smaxv2df3_vx): Use pattern for quiet comparison.
497 (*sminv2df3_vx): Likewise.
498 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
499 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
500 (vec_cmpgt<mode>_quiet_nocc): Likewise.
501 (vec_cmplt<mode>_quiet_nocc): New expander.
502 (vec_cmpge<mode>_quiet_nocc): New pattern.
503 (vec_cmple<mode>_quiet_nocc): New expander.
504 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
505 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
506 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
507 (*vec_cmpge<mode>_signaling_nocc): Likewise.
508 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
509 (vec_cmpungt<mode>): New expander.
510 (vec_cmpunge<mode>): Likewise.
511 (vec_cmpuneq<mode>): Use quiet patterns.
512 (vec_cmpltgt<mode>): Allow only on z14+.
513 (vec_cmpordered<mode>): Use quiet patterns.
514 (vec_cmpunordered<mode>): Likewise.
515 (VEC_CMP_EXPAND): Add ungt and unge.
516
517 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
518
519 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
520 parameter.
521 * lto-streamer-out.c: Include tree-dfa.h.
522 (output_cfg): Do not use cfun.
523 (lto_prepare_function_for_streaming): New.
524 (output_function): Do not push cfun; do not initialize loop optimizer.
525 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
526 * passes.c (ipa_write_summaries): Use it.
527 (ipa_write_optimization_summaries): Do not modify bodies.
528 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
529 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
530 * tree-ssa-dse.c (pass_dse::execute): Update use of
531 renumber_gimple_stmt_uids.
532 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
533
534 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
535
536 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
537 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
538
539 2019-10-10 Joseph Myers <joseph@codesourcery.com>
540
541 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
542 macros.
543 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
544 Also define DFP macros for these conditions.
545 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
546 DEC128_SUBNORMAL_MIN): Do not define.
547 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
548 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
549
550 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
551 Sandra Loosemore <sandra@codesourcery.com>
552
553 PR middle-end/26241
554 * doc/lto.texi (IPA): Reference to the IPA passes.
555 * doc/passes.texi (Pass manager): Add node IPA passes and
556 description for each IPA pass.
557
558 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
559
560 * ipa-reference.c: Do not include splay-tree.h
561 (reference_vars_to_consider): Turn to hash map.
562 (get_static_name, ipa_init, analyze_function, propagate,
563 stream_out_bitmap, ipa_reference_write_optimization_summary,
564 ipa_reference_write_optimization_summary): Update.
565
566 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
567
568 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
569
570 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
571
572 * config/darwin.c: Lookup Objective C metadata and force indirection
573 for IVAR refs.
574
575 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
576
577 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
578 addresses.
579 (mem_operand_gpr): Add check for prefixed addresses.
580 (mem_operand_ds_form): Add check for prefixed addresses.
581 (rs6000_legitimate_offset_address_p): If we support prefixed
582 addresses, check for a 34-bit offset instead of 16-bit.
583 (rs6000_legitimate_address_p): Add check for prefixed addresses.
584 Do not allow load/store with update if the address is prefixed.
585 (rs6000_mode_dependent_address): If we support prefixed
586 addresses, check for a 34-bit offset instead of 16-bit.
587
588 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
589
590 PR target/77918
591 * config/s390/vector.md (vcond_comparison_operator): New
592 predicate.
593 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
594
595 2019-10-10 David Malcolm <dmalcolm@redhat.com>
596
597 PR 87488
598 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
599 -D.
600 * configure.ac (--with-documentation-root-url): New option.
601 * configure: Regenerate.
602 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
603 option URL, add it as a new string field of the diagnostic option.
604 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
605 (print_option_information): If get_option_url is non-NULL, call
606 it, and if the result is non-NULL, potentially emit an escape
607 sequence to markup the option text with the resulting URL.
608 * diagnostic.h (diagnostic_context::get_option_url): New callback.
609 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
610 example of JSON output.
611 * opts-diagnostic.h (get_option_url): New decl.
612 * opts.c (get_option_url): New function.
613 * toplev.c (general_init): Initialize the get_option_url callback.
614
615 2019-10-10 David Malcolm <dmalcolm@redhat.com>
616
617 PR 87488
618 * common.opt (fdiagnostics-urls=): New option.
619 (diagnostic-url.h): Add SourceInclude.
620 (diagnostic_url_rule): New enum.
621 * diagnostic-color.c: Include "diagnostic-url.h".
622 (diagnostic_urls_enabled_p): New function.
623 * diagnostic-url.h: New file.
624 * diagnostic.c: Include "diagnostic-url.h".
625 (diagnostic_urls_init): New function.
626 * diagnostic.h (diagnostic_urls_init): New decl.
627 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
628 -fdiagnostics-urls to the list.
629 (-fdiagnostics-urls): New option.
630 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
631 (driver::global_initializations): Call diagnostic_urls_init.
632 * opts-global.c (init_options_once): Likewise.
633 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
634 * pretty-print.c (pretty_printer::pretty_printer): Initialize
635 show_urls.
636 (pp_begin_url): New function.
637 (pp_end_url): New function.
638 (selftest::test_urls): New selftest.
639 (selftest::pretty_print_c_tests): Call it.
640 * pretty-print.h (pretty_printer::show_urls): New field.
641 (pp_begin_url): New decl.
642 (pp_end_url): New decl.
643
644 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
645
646 PR target/92022
647 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
648
649 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
650
651 PR target/88630
652 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
653 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
654 also for TARGET_FPU_SH4_300.
655 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
656 TARGET_SH4_300.
657 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
658 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
659 (*negsf2_i): Split into ...
660 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
661 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
662 (**abssf2_i): Split into ...
663 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
664 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
665 (*negdf2_i): Split into ...
666 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
667 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
668 (**abssf2_i): Split into ...
669 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
670
671 2019-10-10 Richard Biener <rguenther@suse.de>
672
673 PR middle-end/92046
674 * opts.c (finish_options): Do not influence global --params
675 from options that are adjustable per function.
676 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
677 Apply --param adjustment based on active cost-model.
678 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
679 further store-sinking when vectorization or if-conversion
680 are not enabled.
681
682 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
683
684 PR middle-end/92037
685 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
686 rather than ggc_alloc_cleared to alloc symbol table.
687 * toplev.c (general_init): Likewise.
688 * cgraph.h (symbol_table): Explicitly construct every field.
689
690 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
691
692 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
693 (PF_Z15): ... this.
694 * config.gcc: Add z15 as option for --with-arch and --with-tune
695 configure switches.
696 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
697 error reporting for unsupported builtins.
698 * config/s390/s390-opts.h (enum processor_type): Rename
699 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
700 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
701 * config/s390/driver-native.c (s390_host_detect_local_cpu):
702 Likewise.
703 * config/s390/s390-builtins.def: Likewise.
704 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
705 (s390_expand_builtin): Add missing check for unsupported builtins.
706 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
707 (s390_rtx_costs): Likewise.
708 (s390_get_sched_attrmask): Rename arch13 to z15.
709 (s390_get_unit_mask): Likewise.
710 (s390_is_fpd): Likewise.
711 (s390_is_fxd): Likewise.
712 * config/s390/s390.h (enum processor_flags): Likewise.
713 * config/s390/s390.md: Likewise.
714 * config/s390/vector.md: Likewise.
715 * config/s390/vx-builtins.md: Likewise.
716 * config/s390/s390.opt: Add z15 to processor_type value.
717
718 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
719
720 PR target/91035
721 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
722 prototype.
723 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
724 ("split_stack_data", "split_stack_call")
725 ("split_stack_call_<mode>", "split_stack_cond_call")
726 ("split_stack_cond_call_<mode>"): Remove.
727 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
728 insn definition.
729 * config/s390/s390.c (s390_output_split_stack_data): New function.
730 (s390_expand_split_stack_prologue): Use the merged expander.
731
732 2019-10-09 Martin Sebor <msebor@redhat.com>
733
734 PR tree-optimization/90879
735 * builtins.c (check_access): Avoid using maxbound when null.
736 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
737 * doc/invoke.texi (-Wstring-compare): Document new warning option.
738 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
739 conditional.
740 (get_range_strlen): Overwrite initial maxbound when non-null.
741 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
742 changes.
743 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
744 (used_only_for_zero_equality): New function.
745 (handle_builtin_memcmp): Call it.
746 (determine_min_objsize): Return an integer instead of tree.
747 (get_len_or_size, strxcmp_eqz_result): New functions.
748 (maybe_warn_pointless_strcmp): New function.
749 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
750 between a longer string and a smaller array.
751 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
752
753 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
754
755 * config/darwin.c (darwin_override_options): Make the check for
756 Objective-C ABI version more specific for 64bit code.
757
758 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
759
760 * config/darwin.c (machopic_indirect_data_reference): Set flag to
761 indicate that the new symbol is an indirection.
762 (machopic_indirect_call_target): Likewise.
763 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
764 (MACHO_SYMBOL_INDIRECTION_P): New.
765 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
766
767 2019-10-08 Jason Merrill <jason@redhat.com>
768
769 * doc/invoke.texi: Document -fconcepts-ts.
770
771 2019-10-09 Richard Biener <rguenther@suse.de>
772
773 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
774 allow stmts other than GIMPLE_ASSIGN in nested cycles.
775
776 2019-10-08 Richard Biener <rguenther@suse.de>
777
778 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
779 (_stmt_vec_info::force_single_cycle): Likewise.
780 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
781 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
782 * tree-vect-loop.c (vectorizable_reduction): Set
783 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
784 (vect_transform_reduction): Use them to remove redundant code.
785 (vect_transform_cycle_phi): Likewise.
786
787 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
788
789 PR tree-optimization/90836
790 * gcc/match.pd (popcount): New pattern.
791
792 2019-10-08 Martin Sebor <msebor@redhat.com>
793
794 PR middle-end/92026
795 PR middle-end/92014
796 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
797 again once nbytes has been set. Set the access size when not yet set.
798
799 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
800
801 * config/darwin.c (machopic_select_section): Remove dead code for
802 old Objective-C section selection method, replace with unreachable.
803
804 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
805
806 * config/darwin.c (machopic_indirect_data_reference): Check for
807 required indirections before making direct access to defined
808 values.
809 (machopic_output_indirection): Place the indirected pointes for
810 required indirections into the non-lazy symbol pointers section.
811 (darwin_encode_section_info):
812 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
813 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
814
815 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
816
817 PR target/91994
818 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
819 instead of ALL_SSE_REG to check if function call preserves some
820 256-bit SSE registers.
821
822 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
823
824 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
825 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
826 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
827
828 2019-10-08 Richard Biener <rguenther@suse.de>
829
830 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
831 (_stmt_vec_info::is_reduc_info): Add.
832 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
833 (vectorizable_condition): Remove.
834 (vectorizable_shift): Likewise.
835 (vectorizable_reduction): Adjust.
836 (info_for_reduction): New.
837 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
838 (vect_analyze_scalar_cycles_1): ... here.
839 (vect_analyze_loop_operations): Adjust.
840 (needs_fold_left_reduction_p): Simplify for single caller.
841 (vect_is_simple_reduction): Likewise. Remove stmt restriction
842 for nested cycles not part of double reductions.
843 (vect_model_reduction_cost): Pass in the reduction type.
844 (info_for_reduction): New function.
845 (vect_create_epilog_for_reduction): Use it, access reduction
846 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
847 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
848 (vectorize_fold_left_reduction): Remove pointless assert.
849 (vectorizable_reduction): Analyze the full reduction when
850 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
851 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
852 stmt code-generation to vectorizable_* in most cases. Verify
853 code-generation only for cases handled by
854 vect_transform_reductuon.
855 (vect_transform_reduction): Use info_for_reduction to get at
856 reduction meta. Simplify.
857 (vect_transform_cycle_phi): Likewise.
858 (vectorizable_live_operation): Likewise.
859 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
860 at the PHI node for STMT_VINFO_REDUC_TYPE.
861 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
862 longer necessary code.
863 * tree-vect-stmts.c (vectorizable_shift): Make static again.
864 (vectorizable_condition): Likewise. Get at reduction related
865 info via info_for_reduction.
866 (vect_analyze_stmt): Adjust.
867 (vect_transform_stmt): Likewise.
868 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
869 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
870
871 2019-10-08 Joseph Myers <joseph@codesourcery.com>
872
873 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
874 -fno-fp-int-builtin-inexact default for C2X.
875
876 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
877 Richard Biener <rguenther@suse.de>
878
879 PR tree-optimization/91532
880 * tree-if-conv.c: Include tree-ssa-dse.h.
881 (ifcvt_local_dce): Change param from bb to loop,
882 and call dse_classify_store.
883 (tree_if_conversion): Pass loop instead of loop->header as arg
884 to ifcvt_local_dce.
885 * tree-ssa-dse.c: Include tree-ssa-dse.h.
886 (delete_dead_or_redundant_assignment): Remove static qualifier from
887 declaration, and add prototype in tree-ssa-dse.h.
888 (dse_store_status): Move to tree-ssa-dse.h.
889 (dse_classify_store): Remove static qualifier and add new tree param
890 stop_at_vuse, and add prototype in tree-ssa-dse.h.
891 * tree-ssa-dse.h: New header.
892
893 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
894
895 * config/darwin.c (machopic_output_indirection): Don't put
896 hidden symbol indirections into the .data section, use the
897 non-lazy symbol pointers section as normal.
898 (darwin_encode_section_info): Record if a symbol is hidden.
899 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
900 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
901
902 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
903
904 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
905 predicates instead of accessing bits directly.
906 (machopic_indirect_call_target): Likewise.
907 (machopic_output_indirection): Likewise.
908 (darwin_encode_section_info): Improve description. Use renamed
909 symbol flags. Use predicate macros for variables and functions.
910 * config/darwin.h:
911 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
912 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
913 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
914 (MACHO_SYMBOL_VARIABLE_P): New.
915 (MACHO_SYMBOL_DEFINED_P):New.
916 (MACHO_SYMBOL_STATIC_P): New.
917 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
918 (SYMBOL_FLAG_SUBT_DEP): New.
919 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
920
921 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
922
923 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
924 (msp430_expand_epilogue): Likewise.
925 * config/msp430/predicates.md: Likewise.
926 * config/msp430/msp430.md: Likewise.
927 Replace blocks of 8 spaces with tabs.
928
929 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
930
931 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
932 * config/msp430/msp430.c (msp430_split_addsi): New.
933 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
934 a block of C code for splitting addsi.
935
936 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
937
938 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
939 ix86_expand_rounddf_32): Reorder functions.
940 * config/i386/i386-protos.h: Update.
941
942 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
943
944 * config.in: Regenerate.
945 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
946 Add new "Yx" constraint.
947 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
948 function.
949 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
950 prototype.
951 * config/msp430/msp430.c (msp430_option_override): Allow the lower
952 code/data region to be selected in the small memory model.
953 (msp430_section_attr): Don't warn if the "section" and "lower"
954 attributes are used together.
955 (msp430_handle_generic_attribute): Likewise.
956 (msp430_var_in_low_mem): New function.
957 (TARGET_ENCODE_SECTION_INFO): Define.
958 (msp430_encode_section_info): New function.
959 (gen_prefix): Return early in the small memory model.
960 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
961 ".lower" prefix if -m{code,data}-region=lower have been passed.
962 (msp430_output_aligned_decl_common): Emit common symbols when
963 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
964 set.
965 (TARGET_ASM_FILE_END): Define.
966 (msp430_file_end): New function.
967 (msp430_do_not_relax_short_jumps): Allow relaxation when
968 function will be in the lower region.
969 (msp430_op_not_in_high_mem): New function.
970 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
971 the 'X' operand selector.
972 Clarify comment for 'x' operand selector.
973 * config/msp430/msp430.h (LINK_SPEC): Propagate
974 -m{code,data}-region to the linker via spec function
975 msp430_propagate_region_opt.
976 (msp430_propagate_region_opt): New prototype.
977 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
978 (SYMBOL_FLAG_LOW_MEM): Define.
979 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
980 selector.
981 (zero_extendqihi2): Fix operand number used by "%X" selector.
982 (zero_extendqisi2): Likewise.
983 (zero_extendhisi2): Likewise.
984 (movqi): Use "Yx" constraint in place of "%X" operand selector.
985 (movhi): Likewise.
986 (addqi3): Likewise.
987 (addhi3): Likewise.
988 (addsi3): Likewise.
989 (addhi3_cy): Likewise.
990 (addchi4_cy): Likewise.
991 (subqi3): Likewise.
992 (subhi3): Likewise.
993 (subsi3): Likewise.
994 (bic<mode>3): Likewise.
995 (and<mode>3): Likewise.
996 (ior<mode>3): Likewise.
997 (xor<mode>3): Likewise.
998 (slli_1): Add missing "%X" operand selector.
999 (slll_1): Likewise.
1000 (slll_2): Likewise.
1001 (srai_1): Likewise.
1002 (sral_1): Likewise.
1003 (sral_2): Likewise.
1004 (srli_1): Likewise.
1005 (srll_1): Likewise.
1006 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1007 selector.
1008 (cbranchhi4_real): Likewise.
1009 (cbranchqi4_reversed): Likewise.
1010 (cbranchhi4_reversed): Likewise.
1011 (*bitbranch<mode>4): Likewise.
1012 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1013 * config/msp430/msp430.opt (mcode-region=): Set default to
1014 MSP430_REGION_LOWER. Improve docstring.
1015 (mdata-region=): Likewise.
1016 (muse-lower-region-prefix): New option.
1017 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1018 mdata-region=none multilib.
1019 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1020 mdata-region=none multilib.
1021 MULTILIB_EXCEPTIONS: Remove.
1022 MULTILIB_REQUIRED: Define.
1023 * configure: Regenerate.
1024 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1025 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1026 * doc/extend.texi: Clarify comment for {upper,lower,either}
1027 function attributes.
1028 Add separate description for "lower" variable attribute.
1029
1030 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1031
1032 PR target/77918
1033 * optabs-tree.c (vcond_icode_p): New function.
1034 (vcond_eq_icode_p): Likewise.
1035 (expand_vec_cond_expr_p): Use vcond_icode_p and
1036 vcond_eq_icode_p.
1037 * optabs.c (can_vcond_compare_p): New function.
1038 * optabs.h (can_vcond_compare_p): Likewise.
1039
1040 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1041
1042 PR target/77918
1043 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1044 caller passes a non-trapping condition.
1045 (is_gimple_condexpr): Allow trapping conditions.
1046 (is_gimple_condexpr_1): New helper function.
1047 (is_gimple_condexpr_for_cond): New function, acts like old
1048 is_gimple_condexpr.
1049 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1050 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1051 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1052 * gimplify.c (gimplify_cond_expr): Use
1053 is_gimple_condexpr_for_cond.
1054 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1055 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1056 VEC_COND_EXPR.
1057 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1058 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1059 is_gimple_condexpr_for_cond, remove pointless tmp check
1060 (forward_propagate_into_cond): Remove pointless tmp check.
1061
1062 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1063
1064 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1065 match that of other gsi_next_* functions. Adjust the comment.
1066 (gsi_start_nonvirtual_phis): New function.
1067 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1068 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1069
1070 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1071
1072 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1073 setjmp situation here. Fix a verb's ending: "the exact variables or
1074 elements for which there are warnings depends" -> "... depend".
1075
1076 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1077
1078 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1079
1080 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1081
1082 * ipa-prop.c (ipa_vr::nonzero_p): New.
1083 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1084 non-zero range.
1085 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1086 * tree-vrp.c (range_has_numeric_bounds_p): New.
1087 (range_int_cst_p): Use range_has_numeric_bounds_p.
1088 (get_range_op_handler): New.
1089 (supported_types_p): New.
1090 (defined_ranges_p): New.
1091 (drop_undefines_to_varying): New.
1092 (range_fold_binary_symbolics_p): New.
1093 (range_fold_unary_symbolics_p): New.
1094 (range_fold_unary_expr): Extract out into above functions.
1095 (range_fold_binary_expr): Same.
1096 (value_range_base::normalize_addresses): New.
1097 (value_range_base::normalize_symbolics): Normalize addresses.
1098 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1099
1100 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1101
1102 * tree-vrp.c (value_range_base::singleton_p): Use
1103 value_range_base::num_pairs instead of vrp_val_is* to check
1104 if a range has one sub-range.
1105
1106 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1107
1108 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1109 DEF is not a true earlyclobber but is tied to a specific input
1110 operand, and so is effectively earlyclobber wrt inputs that have
1111 different values.
1112 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1113
1114 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1115
1116 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1117 (pod_mode): Mark operators likewise.
1118 (scalar_int_mode): Mark non-default constructors and
1119 operators with CONSTEXPR.
1120 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1121 (fixed_size_mode): Likewise.
1122
1123 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1124
1125 PR target/91994
1126 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1127 and wrap the unspec_volatile in a parallel.
1128 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1129 the unspec_volatile.
1130 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1131 unspec_volatile to be wrapped in a parallel.
1132 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1133 (ix86_add_reg_usage_to_vzerouppers): New functions.
1134 (rest_of_handle_insert_vzeroupper): Use them to add register
1135 usage information to the vzeroupper instructions.
1136
1137 2019-10-07 Richard Biener <rguenther@suse.de>
1138
1139 PR tree-optimization/91975
1140 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1141 handle invariants.
1142
1143 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1144
1145 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1146 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1147
1148 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1149
1150 * config/darwin.c (darwin_override_options): Adjust objective-c
1151 ABI version error messages to avoid punctuation and contracted
1152 negations.
1153
1154 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1155
1156 * ipa-inline.c: Fix type; compute size rather than self_size
1157 for size of caller function.
1158
1159 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1160
1161 PR target/59888
1162 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1163 choose const_data section for constants with relocations.
1164 (machopic_select_section): Pass relocation flag to
1165 darwin_rodata_section ().
1166
1167 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1168
1169 PR tree-optimization/91734
1170 * generic-match-head.c: Include fold-const-call.h.
1171 * match.pd (sqrt(x) cmp c): Check the boundary value and
1172 in case inexact computation of c*c affects comparison of the boundary,
1173 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1174 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1175 for -frounding-math. For c2, try the next smaller or larger floating
1176 point constant depending on comparison code and if it has the same
1177 sqrt as c2, use it instead of c2.
1178
1179 2019-10-04 Martin Sebor <msebor@redhat.com>
1180
1181 PR middle-end/91977
1182 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1183 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1184 uninitialized objects.
1185
1186 2019-10-04 Martin Sebor <msebor@redhat.com>
1187
1188 * builtins.c (compute_objsize): Add an argument.
1189 * tree-object-size.c (addr_object_size): Same.
1190 (compute_builtin_object_size): Same.
1191 * tree-object-size.h (compute_builtin_object): Same.
1192
1193 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1194
1195 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1196
1197 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1198
1199 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1200
1201 2019-10-04 Martin Jambor <mjambor@suse.cz>
1202
1203 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1204 fntype when switching to calling memcpy instead of memset.
1205
1206 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1207
1208 * hash-table.h (hash_table::empty_slow): Don't assign
1209 size_t values to int variables.
1210
1211 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1212
1213 * expr.c (convert_mode_scalar): Remove shadowing local var.
1214 (emit_block_move): Rename local vars.
1215 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1216 (emit_push_insn): Rename local vars.
1217 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1218 shadowing local vars.
1219 (store_constructor): Remove shadowing local vars. Rename local var.
1220 (store_field, expand_cond_expr_using_cmove,
1221 expand_expr_real_2): Remove shadowing local vars.
1222 (expand_expr_real_1,
1223 do_store_flag): Remove shadowing local vars. Rename local vars.
1224
1225 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1226
1227 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1228
1229 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1230
1231 * genmatch.c (commutate): Rename local var.
1232 (lower_cond): Reuse local var.
1233 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1234 dt_operand::gen, dt_operand::gen_gimple_expr,
1235 dt_simplify::gen): Add a param. Rename generated vars.
1236 (decision_tree::insert_operand,
1237 (capture_info::walk_match, capture_info::walk_result,
1238 capture_info::walk_c_expr): Rename local vars.
1239 (expr::gen_transform): Rename generated vars.
1240 Use snprintf. Rename local vars.
1241 (capture::gen_transform, dt_operand::get_name,
1242 dt_operand::gen_opname): Rename generated vars.
1243 (write_predicate): Adjust call to gen_kids.
1244 (parser::get_internal_capture_id): Rename generated vars.
1245 (parser::parse_expr): Rename local vars.
1246 (parser::parse_if): Remove local var.
1247 (parser::parse_pattern, add_operator): Rename local vars.
1248
1249 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1250
1251 * builtins.def (DEF_C2X_BUILTIN): New macro.
1252 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1253 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1254 (strndup): Use DEF_C2X_BUILTIN.
1255 * coretypes.h (enum function_class): Add function_c2x_misc.
1256
1257 2019-10-04 Maya Rashish <coypu@sdf.org>
1258
1259 * ira-color.c (update_costs_from_allocno): Call
1260 ira_init_register_move_cost_if_necessary.
1261
1262 2019-10-04 Jeff Law <law@redhat.com>
1263
1264 * config/h8300/h8300.md (cpymemsi): Disable.
1265 (movmd, movmd_internal_<mode>, movstr, movsd):
1266 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1267 (movmd splitter, movsd splitter): Likewise.
1268
1269 * range-op.cc (range_tests): Avoid two tests when ints and
1270 shorts are the same size.
1271
1272 2019-10-04 Richard Biener <rguenther@suse.de>
1273
1274 PR lto/91968
1275 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1276 BLOCK_VARS.
1277
1278 2019-10-04 Richard Biener <rguenther@suse.de>
1279
1280 PR tree-optimization/91982
1281 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1282 against EXTRACT_LAST_REDUCTION.
1283 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1284
1285 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1286
1287 * range-op.o (value_range_from_overflowed_bounds): Rename from
1288 adjust_overflow_bound.
1289 (value_range_with_overflow): Rename from
1290 create_range_with_overflow.
1291 (create_possibly_reversed_range): Adjusted for above renames.
1292 (operator_*::wi_fold): Same.
1293 (cross_product_operator::wi_cross_productor): Same.
1294
1295 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1296
1297 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1298 -Wshadow=compatible-local): Fix description.
1299 Add an example where -Wshadow=compatible-local does not
1300 warn.
1301
1302 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1303
1304 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1305
1306 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1307 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1308
1309 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1310
1311 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1312 can_move_by_pieces issue.
1313
1314 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1315
1316 PR target/87243
1317 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1318 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1319 is available and the user has not set one on the command line.
1320
1321 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1322
1323 PR target/91769
1324 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1325 instead of REGNO equality check on addr.reg.
1326
1327 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1328
1329 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1330 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1331 * doc/invoke.texi (inline-heuristics-hint-percent,
1332 inline-heuristics-hint-percent-O2): Document.
1333 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1334 hint attribute.
1335 (can_inline_edge_by_limits_p): Use it.
1336
1337 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1338
1339 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1340 to print CONST_DOUBLEs.
1341
1342 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1343
1344 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1345 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1346 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1347
1348 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1349
1350 * Makefile.in (OBJS): Add range.o and range-op.o.
1351 Remove wide-int-range.o.
1352 * function-tests.c (test_ranges): New.
1353 (function_tests_c_tests): Call test_ranges.
1354 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1355 range_fold_unary_expr instead of extract_range_from_unary_expr.
1356 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1357 * range-op.cc: New file.
1358 * range-op.h: New file.
1359 * range.cc: New file.
1360 * range.h: New file.
1361 * selftest.h (range_tests): New prototype.
1362 * ssa.h: Include range.h.
1363 * tree-vrp.c (value_range_base::value_range_base): New
1364 constructors.
1365 (value_range_base::singleton_p): Do not call
1366 ranges_from_anti_range until sure we will need to.
1367 (value_range_base::type): Rename gcc_assert to
1368 gcc_checking_assert.
1369 (vrp_val_is_max): New argument.
1370 (vrp_val_is_min): Same.
1371 (wide_int_range_set_zero_nonzero_bits): Move from
1372 wide-int-range.cc.
1373 (extract_range_into_wide_ints): Remove.
1374 (extract_range_from_multiplicative_op): Remove.
1375 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1376 from extract_range_from_binary_expr.
1377 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1378 from extract_range_from_binary_expr.
1379 (extract_range_from_binary_expr): Remove.
1380 (normalize_for_range_ops): New.
1381 (range_fold_binary_expr): New.
1382 (range_fold_unary_expr): New.
1383 (value_range_base::num_pairs): New.
1384 (value_range_base::lower_bound): New.
1385 (value_range_base::upper_bound): New.
1386 (value_range_base::upper_bound): New.
1387 (value_range_base::contains_p): New.
1388 (value_range_base::invert): New.
1389 (value_range_base::union_): New.
1390 (value_range_base::intersect): New.
1391 (range_compatible_p): New.
1392 (value_range_base::operator==): New.
1393 (determine_value_range_1): Call range_fold_*expr instead of
1394 extract_range_from_*expr.
1395 * tree-vrp.h (class value_range_base): Add new constructors.
1396 Add methods for union_, intersect, operator==, contains_p,
1397 num_pairs, lower_bound, upper_bound, invert.
1398 (vrp_val_is_min): Add handle_pointers argument.
1399 (vrp_val_is_max): Same.
1400 (extract_range_from_unary_expr): Remove.
1401 (extract_range_from_binary_expr): Remove.
1402 (range_fold_unary_expr): New.
1403 (range_fold_binary_expr): New.
1404 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1405 range_fold_binary_expr instead of extract_range_from_binary_expr.
1406 (vr_values::extract_range_basic): Same.
1407 (vr_values::extract_range_from_unary_expr): Call
1408 range_fold_unary_expr instead of extract_range_from_unary_expr.
1409 * wide-int-range.cc: Remove.
1410 * wide-int-range.h: Remove.
1411
1412 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1413
1414 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1415 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1416 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1417 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1418 macro.
1419
1420 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1421
1422 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1423 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1424 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1425 * glimits.h: Likewise.
1426
1427 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1428
1429 PR rtl-optimization/91976
1430 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1431 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1432 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1433
1434 2019-10-02 Martin Sebor <msebor@redhat.com>
1435
1436 PR tree-optimization/80936
1437 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1438
1439 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1440
1441 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1442 instead of reg_class_contents[ALL_REGS].
1443
1444 2019-09-30 Jason Merrill <jason@redhat.com>
1445
1446 Add some hash_map_safe_* functions like vec_safe_*.
1447 * hash-map.h (default_hash_map_size): New variable.
1448 (create_ggc): Use it as default argument.
1449 (hash_map_maybe_create, hash_map_safe_get)
1450 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1451
1452 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1453
1454 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1455 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1456 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1457 (can_inline_edge_by_limits_p): Use it.
1458 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1459 (want_inline_small_function_p): Use O2 bounds.
1460 (edge_badness): LIkewise.
1461 * opts.c (default_options): Add OPT_finline_functions.
1462 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1463 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1464 New parameters.
1465 * doc/invoke.texi (-finline-functions): Update documentation.
1466 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1467 inline-min-speedup-O2): Document.
1468 (early-inlining-insns-O2): Simplify docs.
1469
1470 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1471
1472 PR rtl-optimization/87047
1473 * ifcvt.c (average_cost): New static function. Use it...
1474 (noce_process_if_block): ... here.
1475
1476 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1477
1478 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1479 * config/rs6000/rs6000-string.c (expand_block_move): Add
1480 might_overlap parm.
1481 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1482 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1483
1484 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1485
1486 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1487 (expand_builtin_memcpy): Use might_overlap parm.
1488 (expand_builtin_mempcpy_args): Use might_overlap parm.
1489 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1490 (expand_builtin_memory_copy_args): Add might_overlap parm.
1491 * expr.c (emit_block_move_via_cpymem): Rename to
1492 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1493 or movmem optab as appropriate.
1494 (emit_block_move_hints): Add might_overlap parm, do the right
1495 thing for might_overlap==true.
1496 * expr.h (emit_block_move_hints): Update prototype.
1497
1498 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1499
1500 * tree-eh.h (unsplit_eh_edges): Declare.
1501 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1502 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1503 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1504 (struct store_immediate_info): Add lp_nr field.
1505 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1506 initialize lp_nr with it.
1507 (struct merged_store_group): Add lp_nr and only_constants fields.
1508 (merged_store_group::merged_store_group): Initialize them.
1509 (merged_store_group::can_be_merged_into): Deal with them.
1510 (pass_store_merging): Rename terminate_and_release_chain into
1511 terminate_and_process_chain.
1512 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1513 renaming and remove useless assertions.
1514 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1515 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1516 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1517 instead of always recomputing it and compare lp_nr.
1518 (imm_store_chain_info::output_merged_store): If the group is in an
1519 active EH region, register new stores if they can throw. Moreover,
1520 if the insertion has created new basic blocks, adjust the PHI nodes
1521 of the post landing pad.
1522 (imm_store_chain_info::output_merged_stores): If the original stores
1523 are in an active EH region, deregister them.
1524 (lhs_valid_for_store_merging_p): Prettify.
1525 (adjust_bit_pos): New function extracted from...
1526 (mem_valid_for_store_merging): ...here. Use it for the base address
1527 and also for the offset if it is the addition of a constant.
1528 (lp_nr_for_store): New function.
1529 (pass_store_merging::process_store): Change return type to bool.
1530 Call lp_nr_for_store to initialize the store info. Propagate the
1531 return status of various called functions to the return value.
1532 (store_valid_for_store_merging_p): New predicate.
1533 (enum basic_block_status): New enumeration.
1534 (get_status_for_store_merging): New function.
1535 (pass_store_merging::execute): If the function can throw and catch
1536 non-call exceptions, unsplit the EH edges on entry and clean up the
1537 CFG on exit if something changed. Call get_status_for_store_merging
1538 for every basic block and keep the chains open across basic blocks
1539 when possible. Terminate and process open chains at the end, if any.
1540
1541 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1542
1543 * reginfo.c (globalize_reg): Fix shadowed variable in
1544 function_abis walk.
1545
1546 2019-10-02 Martin Jambor <mjambor@suse.cz>
1547
1548 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1549 do not compute some stuff when set.
1550 (cgraph_node::create_edge): Likewise.
1551 (cgraph_node::create_indirect_edge): Renamed last parameter to
1552 coning_p and flipped its meaning, don't even calculate
1553 inline_failed when set.
1554 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1555 (symbol_table::::create_edge): Likewise.
1556 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1557 the default value.
1558 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1559 call graph edge creating functions.
1560
1561 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1562
1563 PR c++/91222
1564 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1565 namespace types.
1566
1567 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1568
1569 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1570
1571 2019-10-02 Richard Biener <rguenther@suse.de>
1572
1573 * tree-vectorizer.h (vect_transform_reduction): Declare.
1574 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1575 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1576 stmt transform to ...
1577 (vect_transform_reduction): ... this.
1578
1579 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1580
1581 * omp-low.c (lower_omp_target): Dereference optional argument
1582 to work with the right pointer.
1583
1584 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1585
1586 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1587 false.
1588 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1589 * langhooks.h (omp_is_optional_argument): New hook.
1590 * omp-general.c (omp_is_optional_argument): New.
1591 * omp-general.h (omp_is_optional_argument): New declaration.
1592 * omp-low.c (lower_omp_target): Create temporary for received value
1593 and take the address for new_var if the original variable was a
1594 DECL_BY_REFERENCE. Use size of referenced object when a
1595 pass-by-reference optional argument used as argument to firstprivate.
1596
1597 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1598
1599 PR tree-optimization/91940
1600 * tree-vect-patterns.c: Include tree-vector-builder.h and
1601 vec-perm-indices.h.
1602 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1603 unpromoting the argument back to uint16_t, or by converting into a
1604 rotate, or into shifts plus ior.
1605
1606 2019-10-02 Richard Biener <rguenther@suse.de>
1607
1608 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1609 New.
1610 (vect_transform_cycle_phi): Declare.
1611 * tree-vect-stmts.c (vect_transform_stmt): Call
1612 vect_transform_cycle_phi.
1613 * tree-vect-loop.c (vectorizable_reduction): Split out
1614 PHI transformation stage to ...
1615 (vect_transform_cycle_phi): ... here.
1616
1617 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1618
1619 PR middle-end/91957
1620 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1621 eliminable registers.
1622 (make_hard_regno_live): Likewise, and don't make them live.
1623
1624 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1625
1626 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1627 Call pp_emit_prefix.
1628 (layout::print_source_line): Likewise.
1629 (layout::start_annotation_line): Likewise.
1630 (diagnostic_show_locus): Remove call to temporarily clear the
1631 prefix.
1632 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1633 interaction of pp_set_prefix with rulers and fix-it hints.
1634 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1635 prefix when calling diagnostic_show_locus, rather than destroying
1636 it afterwards.
1637 (print_parseable_fixits): Temporarily clear prefix.
1638 * pretty-print.c (pp_format): Save and restore line_length, rather
1639 than assuming it is zero.
1640 (pp_output_formatted_text): Remove assertion that line_length is
1641 zero.
1642
1643 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1644
1645 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1646 Rename to ...
1647 (nonoverlapping_refs_since_match_p): ... this; handle also
1648 ARRAY_REFs.
1649 (alias_stats): Update stats.
1650 (dump_alias_stats): Likewise.
1651 (cheap_array_ref_low_bound): New function.
1652 (aliasing_matching_component_refs_p): Add partial_overlap
1653 argument;
1654 pass it to nonoverlapping_refs_since_match_p.
1655 (aliasing_component_refs_walk): Update call of
1656 aliasing_matching_component_refs_p
1657 (nonoverlapping_array_refs_p): New function.
1658 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1659 indirect_refs_may_alias_p): Update calls of
1660 nonoverlapping_refs_since_match_p.
1661
1662 2019-10-01 Maya Rashish <coypu@sdf.org>
1663
1664 PR target/85401
1665 * ira-color.c (allocno_copy_cost_saving): Call
1666 ira_init_register_move_cost_if_necessary.
1667
1668 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1669
1670 * Makefile.in (gnat_install_lib): New variable.
1671 * configure.ac: Substitute it.
1672 * configure: Regenerate.
1673
1674 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1675
1676 PR lto/91222
1677 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1678 is matched with non-C++ type
1679
1680 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1681
1682 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1683 after local CSE.
1684
1685 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1686
1687 * doc/invoke.texi (early-inlining-insns-O2): Document.
1688 (early-inlining-insns): Update.
1689 * params.def (early-inlining-insns-O2): New bound.
1690 (early-inlining-insns): Update docs.
1691 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1692
1693 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1694
1695 PR target/88562
1696 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1697 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1698 a memory access insn.
1699
1700 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1701
1702 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1703 vpmsumd.
1704
1705 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1706
1707 PR target/77918
1708 * config/s390/s390.c (s390_expand_vec_compare): Use
1709 gen_vec_cmpordered and gen_vec_cmpunordered.
1710 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1711 vec_unordered): Delete.
1712 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1713 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1714 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1715 (vec_cmp<code>): Generic dispatcher.
1716
1717 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1718
1719 PR target/77918
1720 * config/s390/vector.md (V_HW): Add V1TI in order to make
1721 vcond$a$b generate vcondv1tiv1tf.
1722
1723 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1724
1725 PR rtl-optimization/91948
1726 * ira-build.c (ira_create_allocno): Initialize
1727 ALLOCNO_CROSSED_CALLS_ABIS.
1728 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1729 than regno to ira_need_caller_save_p.
1730
1731 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1732
1733 * config/i386/i386-options.c
1734 (ix86_recompute_optlev_based_flags): New, moved out of...
1735 (ix86_option_override_internal): ... this. Call it.
1736 (ix86_override_options_after_change): Call it here too.
1737
1738 PR debug/91507
1739 * dwarf2out.c (override_type_for_decl_p): New.
1740 (gen_variable_die): Use it.
1741
1742 2019-10-01 Richard Biener <rguenther@suse.de>
1743
1744 * tree-vect-loop.c (vectorizable_reduction): Move variables
1745 to where they are used.
1746
1747 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1748
1749 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1750 (build_def_use): Use PC instead of CC0 in a comment.
1751
1752 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1753
1754 * rtl.def (CLOBBER_HIGH): Delete.
1755 * doc/rtl.texi (clobber_high): Remove documentation.
1756 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1757 (reg_is_clobbered_by_clobber_high): Delete.
1758 (gen_hard_reg_clobber_high): Likewise.
1759 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1760 * cfgexpand.c (expand_gimple_stmt): Likewise.
1761 * combine-stack-adj.c (single_set_for_csa): Likewise.
1762 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1763 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1764 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1765 * cse.c (invalidate_reg): Remove clobber_high parameter.
1766 (invalidate): Update call accordingly.
1767 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1768 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1769 (count_reg_usage, insn_live_p): Likewise.
1770 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1771 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1772 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1773 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1774 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1775 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1776 (mark_nonreg_stores_2): Likewise.
1777 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1778 (df_get_call_refs): Likewise.
1779 * dwarf2out.c (mem_loc_descriptor): Likewise.
1780 * emit-rtl.c (verify_rtx_sharing): Likewise.
1781 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1782 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1783 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1784 * genemit.c (gen_exp, gen_insn): Likewise.
1785 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1786 * haifa-sched.c (haifa_classify_rtx): Likewise.
1787 * ira-build.c (create_insn_allocnos): Likewise.
1788 * ira-costs.c (scan_one_insn): Likewise.
1789 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1790 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1791 * jump.c (mark_jump_label_1): Likewise.
1792 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1793 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1794 handling.
1795 (mark_not_eliminable): Likewise.
1796 * lra-lives.c (process_bb_lives): Likewise.
1797 * lra.c (new_insn_reg): Remove clobber_high parameter.
1798 (collect_non_operand_hard_regs): Likewise. Update call to new
1799 insn_reg. Remove CLOBBER_HIGH handling.
1800 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1801 to collect_non_operand_hard_regs.
1802 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1803 Update call to new_insn_reg.
1804 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1805 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1806 (move2add_note_store): Likewise.
1807 * print-rtl.c (print_pattern): Likewise.
1808 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1809 (if_test_bypass_p): Likewise.
1810 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1811 * reginfo.c (reg_scan_mark_refs): Likewise.
1812 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1813 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1814 (forget_old_reloads_1): Likewise.
1815 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1816 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1817 (dbr_schedule): Likewise.
1818 * resource.c (update_live_status, mark_referenced_resources)
1819 (mark_set_resources): Likewise.
1820 * rtl.c (copy_rtx): Likewise.
1821 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1822 (note_pattern_stores): Likewise.
1823 (reg_is_clobbered_by_clobber_high): Delete.
1824 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1825 CLOBBER_HIGH handling.
1826
1827 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1828
1829 PR target/91452
1830 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1831 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1832 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1833 Handle ARM_PCS_TLSDESC.
1834 (aarch64_tlsdesc_abi_id): New function.
1835 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1836 rtx instead of a list of clobbers and clobber_highs.
1837 (tlsdesc_small_<mode>): Update accordingly.
1838
1839 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1840
1841 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1842 extra callee_abi argument.
1843 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1844 Insert a CALLEE_ABI unspec into the call pattern as the second
1845 element in the PARALLEL.
1846 (aarch64_simd_call_p): Delete.
1847 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1848 the new CALLEE_ABI element of the PARALLEL.
1849 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1850 from the function type, if given.
1851 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1852 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1853 when passed the function_arg_info end marker.
1854 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1855 final argument of gen_sibcall.
1856 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1857 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1858 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1859 pattern.
1860 (call_value): Likewise operand 3.
1861 (sibcall): Likewise operand 2. Place the unspec before rather than
1862 after the return.
1863 (sibcall_value): Likewise operand 3.
1864 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1865 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1866 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1867 constraint strings.
1868 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1869
1870 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1871
1872 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1873 choose_hard_reg_mode.
1874 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1875
1876 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1877
1878 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1879 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1880 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1881
1882 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1883
1884 * diagnostic-show-locus.c (line_label::line_label): Initialize
1885 m_has_vbar.
1886 (line_label::comparator): Reverse the sort order by m_state_idx,
1887 so that when the list is walked backwards the labels appear in
1888 order of insertion into the rich_location.
1889 (line_label::m_has_vbar): New field.
1890 (layout::print_any_labels): When dealing with multiple labels at
1891 the same line and column, only print vertical bars for the one
1892 with the highest label_line.
1893 (selftest::test_one_liner_labels): Update test for multiple labels
1894 to expect the labels to be in the order of insertion into the
1895 rich_location. Add a test for many such labels, where the column
1896 numbers are out-of-order relative to the insertion order.
1897
1898 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1899
1900 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1901 (ix86_frame::expensive_count): Likewise.
1902 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1903 of use_fast_prologue_epilogue robust against incidental changes
1904 in function size.
1905
1906 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1907
1908 PR target/77918
1909 * config/s390/vector.md (vec_unordered<mode>): Call
1910 gen_vec_ordered<mode>.
1911
1912 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1913
1914 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1915 New pattern for ASRD.
1916 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1917 * internal-fn.def (IFN_DIV_POW2): New internal function.
1918 * optabs.def (sdiv_pow2_optab): New optab.
1919 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1920 Modify pattern to support new operation.
1921 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1922 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1923 Document new target selector.
1924
1925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1926
1927 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1928 to test whether we're compiling a vector PCS function and to test
1929 whether the function needs to save a particular register.
1930 Remove the vector PCS handling of df_set_regs_ever_live.
1931 (aarch64_components_for_bb): Use crtl->abi to test whether
1932 the function needs to save a particular register.
1933 (aarch64_process_components): Use crtl->abi to test whether
1934 we're compiling a vector PCS function.
1935 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1936 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1937
1938 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1939
1940 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1941 Delete.
1942 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1943 whether the block calls a function that clobbers more registers
1944 than the current function is allowed to.
1945 (aarch64_use_simple_return_insn_p): Delete.
1946 * config/aarch64/aarch64.md (simple_return): Remove condition.
1947
1948 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1949
1950 * function-abi.h (function_abi_aggregator): New class.
1951 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1952 function.
1953 * ira.c (update_equiv_regs_prescan): New function. Call
1954 set_paradoxical_subreg here rather than...
1955 (update_equiv_regs): ...here.
1956 (ira): Call update_equiv_regs_prescan.
1957
1958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1959
1960 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1961 IN_TARGET_CODE.
1962 (call_used_or_fixed_regs): Likewise.
1963 (call_used_or_fixed_reg_p): Likewise.
1964 * reginfo.c (regs_invalidated_by_call): New macro.
1965
1966 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1967
1968 * shrink-wrap.c: Include function-abi.h.
1969 (requires_stack_frame_p): Use crtl->abi to test whether the
1970 current function can use a register without saving it first.
1971
1972 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1973
1974 * sel-sched-ir.h (_def::crosses_call): Replace with...
1975 (_def::crossed_call_abis): ..this new field.
1976 (def_list_add): Take a mask of ABIs instead of a crosses_call
1977 boolean.
1978 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1979 of _def accordingly.
1980 * sel-sched.c: Include function-abi.h.
1981 (hard_regs_data::regs_for_call_clobbered): Delete.
1982 (reg_rename::crosses_call): Replace with...
1983 (reg_rename::crossed_call_abis): ...this new field.
1984 (fur_static_params::crosses_call): Replace with...
1985 (fur_static_params::crossed_call_abis): ...this new field.
1986 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1987 (init_hard_regs_data): Use crtl->abi to test which registers the
1988 current function would need to save before it uses them.
1989 (mark_unavailable_hard_regs): Update handling of call-clobbered
1990 registers, using call_clobbers_in_region to find out which registers
1991 might be call-clobbered (but without taking -fipa-ra into account
1992 for now). Remove separate handling of partially call-clobbered
1993 registers.
1994 (verify_target_availability): Use crossed_call_abis instead of
1995 crosses_call.
1996 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1997 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1998
1999 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2000
2001 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2002 function to test whether a register is fully or partly clobbered.
2003
2004 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * rtlanal.c: Include function-abi.h.
2007 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2008 function and clobbers_reg_p to test whether the register
2009 is call-clobbered.
2010 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2011 to get the ABI of the called function and full_reg_clobbers to
2012 get the set of fully call-clobbered registers. Warn about the
2013 pitfalls of using this mode.
2014
2015 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2016
2017 * reload.c: Include function-abi.h.
2018 (find_equiv_reg): Use clobbers_reg_p to test whether either
2019 of the equivalent registers is clobbered by a call.
2020 * reload1.c: Include function-abi.h.
2021 (reg_reloaded_call_part_clobbered): Delete.
2022 (reload): Use crtl->abi to test which registers would need
2023 saving in the prologue before use.
2024 (find_reg): Likewise.
2025 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2026 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2027 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2028
2029 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * regrename.h (du_head::call_clobber_mask): New field.
2032 (du_head::need_caller_save_reg): Replace with...
2033 (du_head::call_abis): ...this new field.
2034 * regrename.c: Include function-abi.h.
2035 (call_clobbered_in_chain_p): New function.
2036 (check_new_reg_p): Use crtl->abi when deciding whether a register
2037 is free for use after RA. Use call_clobbered_in_chain_p to test
2038 whether a candidate register would be clobbered by a call.
2039 (find_rename_reg): Don't add call-clobber conflicts here.
2040 (rename_chains): Check call_abis instead of need_caller_save_reg.
2041 (merge_chains): Update for changes to du_head.
2042 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2043 target. Record the ABI identifier in call_abis and the set of
2044 fully or partially clobbered registers in call_clobber_mask.
2045 Add fully-clobbered registers to hard_conflicts here rather
2046 than in find_rename_reg.
2047 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2048 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2049 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2050 function-abi.h.
2051 * config/c6x/c6x.c: Likewise.
2052
2053 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2054
2055 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2056 mode of the register when deciding whether it is no longer
2057 available after a call.
2058
2059 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2060
2061 * recog.c: Include function-abi.h.
2062 (peep2_find_free_register): Use crtl->abi when deciding whether
2063 a register is free for use after RA.
2064
2065 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2066
2067 * postreload-gcse.c: Include regs.h and function-abi.h.
2068 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2069 call insn target. Conservatively assume that partially-clobbered
2070 registers are altered.
2071
2072 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2073
2074 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2075 when deciding whether a register is free for use after RA.
2076 (reload_combine): Remove unnecessary use of fixed_reg_set.
2077 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2078 call insn target. Use reg_mode when testing whether a register
2079 is no longer available.
2080
2081 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2082
2083 * target.def (return_call_with_max_clobbers): Delete.
2084 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2085 * doc/tm.texi: Regenerate.
2086 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2087 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2088 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2089 (lra_reg::call_insn): Delete.
2090 * lra.c: Include function-abi.h.
2091 (initialize_lra_reg_info_element): Don't initialize the fields above.
2092 (lra): Use crtl->abi to test whether the current function needs to
2093 save a register in the prologue. Remove special pre-inheritance
2094 lra_create_live_ranges pass for flag_ipa_ra.
2095 * lra-assigns.c: Include function-abi.h
2096 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2097 function needs to save a register in the prologue.
2098 (lra_assign): Assert that registers aren't allocated to a
2099 conflicting register, rather than checking only for overlaps
2100 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2101 and for registers that are not live across a call.
2102 * lra-constraints.c (last_call_for_abi): New variable.
2103 (full_and_partial_call_clobbers): Likewise.
2104 (setup_next_usage_insn): Remove the register from
2105 full_and_partial_call_clobbers.
2106 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2107 whether the register needs a caller save.
2108 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2109 of call_used_or_fixed_regs.
2110 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2111 full_and_partial_call_clobbers.
2112 * lra-lives.c (check_pseudos_live_through_calls): Replace
2113 last_call_used_reg_set and call_insn arguments with an abi argument.
2114 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2115 as the set of conflicting registers.
2116 (calls_have_same_clobbers_p): Delete.
2117 (process_bb_lives): Track the ABI of the last call instead of an
2118 insn/HARD_REG_SET pair. Update calls to
2119 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2120 the set of registers that could be clobbered by an EH edge.
2121 Include partially-clobbered as well as fully-clobbered registers.
2122 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2123 * lra-remat.c: Include function-abi.h.
2124 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2125 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2126 registers and bitmap_view to combine them into dead_regs.
2127 (call_used_input_regno_present_p): Take a function_abi argument
2128 and use it to test whether a register is call-clobbered.
2129 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2130 call insn target. Update tje call to call_used_input_regno_present_p.
2131 (do_remat): Likewise.
2132 (lra_remat): Remove the initialization of call_used_regs_arr_len
2133 and call_used_regs_arr.
2134
2135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2136
2137 * loop-iv.c: Include regs.h and function-abi.h.
2138 (simplify_using_initial_values): Use insn_callee_abi to get the
2139 ABI of the call insn target. Conservatively assume that
2140 partially-clobbered registers are altered.
2141
2142 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * function-abi.h (call_clobbers_in_region): Declare.
2145 (call_clobbered_in_region_p): New function.
2146 * function-abi.cc (call_clobbers_in_region): Likewise.
2147 * ira-int.h: Include function-abi.h.
2148 (ira_allocno::crossed_calls_abis): New field.
2149 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2150 (ira_need_caller_save_regs): New function.
2151 (ira_need_caller_save_p): Likewise.
2152 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2153 of call_used_or_fixed_regs.
2154 (do_reload): Use crtl->abi to test whether the current function
2155 needs to save a register in the prologue. Count registers that
2156 need to be saved rather than registers that don't.
2157 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2158 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2159 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2160 (propagate_some_info_from_allocno): Likewise.
2161 (copy_info_to_removed_store_destinations): Likewise.
2162 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2163 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2164 (ira_build): Use ira_need_caller_save_regs instead of
2165 call_used_or_fixed_regs.
2166 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2167 whether the current function would need to save a register
2168 before using it.
2169 (calculate_spill_cost): Likewise.
2170 (allocno_reload_assign): Use ira_need_caller_save_regs and
2171 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2172 * ira-conflicts.c (ira_build_conflicts): Use
2173 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2174 as the set of call-clobbered registers. Remove the
2175 call_used_or_fixed_regs mask from the calculation of
2176 temp_hard_reg_set and mask its use instead. Remove special
2177 handling of partially-clobbered registers.
2178 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2179 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2180 calculate the set of conflicting registers for calls that
2181 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2182 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2183 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2184 Use eh_edge_abi to calculate the set of registers that could
2185 be clobbered by an EH edge. Include partially-clobbered as
2186 well as fully-clobbered registers.
2187
2188 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2189
2190 * haifa-sched.c: Include function-abi.h.
2191 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2192 the function would need to save a register before using it.
2193
2194 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2195
2196 * gcse.c: Include function-abi.h.
2197 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2198 the call insn target. Invalidate partially call-clobbered
2199 registers as well as fully call-clobbered ones.
2200
2201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 * function.c (aggregate_value_p): Work out which ABI the
2204 function is using before testing which registers are at least
2205 partly preserved by a call.
2206
2207 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2208
2209 * early-remat.c: Include regs.h and function-abi.h.
2210 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2211 registers here.
2212 (early_remat::restrict_remat_for_unavail_regs): New function.
2213 (early_remat::restrict_remat_for_call): Likewise.
2214 (early_remat::process_block): Before calling emit_remat_insns
2215 for a previous call in the block, invalidate any candidates
2216 that would clobber call-preserved registers.
2217 (early_remat::emit_remat_insns_for_block): Likewise for the
2218 final call in a block. Do the same thing for live-in registers
2219 when calling emit_remat_insns at the head of a block.
2220
2221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2224 whether the current function needs to save at least part of a
2225 register before using it.
2226 (df_get_exit_block_use_set): Likewise for epilogue restores.
2227
2228 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2229
2230 * df-problems.c: Include regs.h and function-abi.h.
2231 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2232 sparse_invalidated_by_eh and dense_invalidated_by_call to
2233 dense_invalidated_by_eh.
2234 (df_print_bb_index): Update accordingly.
2235 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2236 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2237 that are clobbered by an EH edge. Clobber partially-clobbered
2238 registers as well as fully-clobbered ones.
2239 (df_md_confluence_n): Likewise.
2240 (df_rd_local_compute): Likewise. Update for changes to
2241 df_rd_problem_data.
2242 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2243 of registers that are clobbered by an EH edge. Includde partially-
2244 clobbered registers as well as fully-clobbered ones.
2245
2246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2247
2248 * cselib.c (cselib_process_insn): If we know what mode a
2249 register was set in, check whether it is clobbered in that
2250 mode by a call. Only fall back to reg_raw_mode if that fails.
2251
2252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2253
2254 * cse.c: Include regs.h and function-abi.h.
2255 (invalidate_for_call): Take the call insn as an argument.
2256 Use insn_callee_abi to get the ABI of the call and invalidate
2257 partially clobbered registers as well as fully clobbered ones.
2258 (cse_insn): Update call accordingly.
2259
2260 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2261
2262 * combine.c: Include function-abi.h.
2263 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2264 of the target of call insns. Invalidate partially-clobbered
2265 registers as well as fully-clobbered ones.
2266
2267 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2268
2269 * cfgloopanal.c: Include regs.h and function-abi.h.
2270 (init_set_costs): Use default_function_abi to test whether
2271 a general register is call-clobbered.
2272
2273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2274
2275 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2276 instead of the call-clobbered sets.
2277
2278 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2279
2280 * caller-save.c (setup_save_areas): Remove redundant |s of
2281 fixed_reg_set.
2282 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2283 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2284 value is useful.
2285
2286 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2287
2288 * rtl.h (predefined_function_abi): Declare.
2289 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2290 instead of a boolean call_save flag.
2291 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2292 accordingly.
2293 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2294 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2295 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2296 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2297 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2298 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2299 * reginfo.c (init_reg_modes_target): Likewise.
2300 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2301 instead of a boolean call_save flag.
2302 * targhooks.c: Include function-abi.h.
2303 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2304 using eh_edge_abi to choose the mode.
2305
2306 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2307
2308 * target.def (hard_regno_call_part_clobbered): Take an ABI
2309 identifier instead of an rtx_insn.
2310 * doc/tm.texi: Regenerate.
2311 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2312 (hook_bool_uint_uint_mode_false): New function.
2313 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2314 (hook_bool_uint_uint_mode_false): New function.
2315 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2316 Take an ABI identifier instead of an rtx_insn.
2317 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2318 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2319 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2320 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2321 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2322 Likewise.
2323 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2324 * cselib.c: Include function-abi.h.
2325 (cselib_process_insn): Update call to
2326 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2327 to get the appropriate ABI identifier.
2328 * function-abi.cc (predefined_function_abi::initialize): Update call
2329 to targetm.hard_regno_call_part_clobbered.
2330 * ira-conflicts.c (ira_build_conflicts): Likewise.
2331 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2332 * lra-constraints.c: Include function-abi.h.
2333 (need_for_call_save_p): Update call to
2334 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2335 to get the appropriate ABI identifier.
2336 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2337 * regcprop.c (copyprop_hardreg_forward_1): Update call
2338 to targetm.hard_regno_call_part_clobbered.
2339 * reginfo.c (choose_hard_reg_mode): Likewise.
2340 * regrename.c (check_new_reg_p): Likewise.
2341 * reload.c (find_equiv_reg): Likewise.
2342 * reload1.c (emit_reload_insns): Likewise.
2343 * sched-deps.c: Include function-abi.h.
2344 (deps_analyze_insn): Update call to
2345 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2346 to get the appropriate ABI identifier.
2347 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2348 call to targetm.hard_regno_call_part_clobbered.
2349 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2350
2351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2352
2353 * config/i386/i386.c: Include function-abi.h.
2354 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2355 if they preserve some 256-bit or 512-bit SSE registers.
2356
2357 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2358
2359 * target.def (insn_callee_abi): New hook.
2360 (remove_extra_call_preserved_regs): Delete.
2361 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2362 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2363 * doc/tm.texi: Regenerate.
2364 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2365 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2366 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2367 insn argument.
2368 (aarch64_remove_extra_call_preserved_regs): Delete.
2369 (aarch64_insn_callee_abi): New function.
2370 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2371 (TARGET_INSN_CALLEE_ABI): New macro.
2372 * rtl.h (get_call_fndecl): Declare.
2373 (cgraph_rtl_info): Fix formatting. Tweak comment for
2374 function_used_regs. Remove function_used_regs_valid.
2375 * rtlanal.c (get_call_fndecl): Moved from final.c
2376 * function-abi.h (insn_callee_abi): Declare.
2377 (target_function_abi_info): Mention insn_callee_abi.
2378 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2379 way to get_call_reg_set_usage did.
2380 (insn_callee_abi): New function.
2381 * regs.h (get_call_reg_set_usage): Delete.
2382 * final.c: Include function-abi.h.
2383 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2384 function_used_regs before the main loop rather than afterwards.
2385 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2386 if function_used_regs ends up not being useful.
2387 (get_call_fndecl): Move to rtlanal.c
2388 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2389 * caller-save.c: Include function-abi.h.
2390 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2391 instead of get_call_reg_set_usage.
2392 * cfgcleanup.c: Include function-abi.h.
2393 (old_insns_match_p): Use insn_callee_abi instead of
2394 get_call_reg_set_usage.
2395 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2396 a tree.
2397 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2398 function_used_regs.
2399 * df-scan.c: Include function-abi.h.
2400 (df_get_call_refs): Use insn_callee_abi instead of
2401 get_call_reg_set_usage.
2402 * ira-lives.c: Include function-abi.h.
2403 (process_bb_node_lives): Use insn_callee_abi instead of
2404 get_call_reg_set_usage.
2405 * lra-lives.c: Include function-abi.h.
2406 (process_bb_lives): Use insn_callee_abi instead of
2407 get_call_reg_set_usage.
2408 * postreload.c: Include function-abi.h.
2409 (reload_combine): Use insn_callee_abi instead of
2410 get_call_reg_set_usage.
2411 * regcprop.c: Include function-abi.h.
2412 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2413 get_call_reg_set_usage.
2414 * resource.c: Include function-abi.h.
2415 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2416 instead of get_call_reg_set_usage.
2417 * var-tracking.c: Include function-abi.h.
2418 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2419 get_call_reg_set_usage.
2420
2421 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2422
2423 * target.def (fntype_abi): New target hook.
2424 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2425 * doc/tm.texi: Regenerate.
2426 * target.h (predefined_function_abi): Declare.
2427 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2428 if defined.
2429 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2430 * config/aarch64/aarch64.c: Include function-abi.h.
2431 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2432 (TARGET_FNTYPE_ABI): Define.
2433
2434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2435
2436 * Makefile.in (OBJS): Add function-abi.o.
2437 (GTFILES): Add function-abi.h.
2438 * function-abi.cc: New file.
2439 * function-abi.h: Likewise.
2440 * emit-rtl.h (rtl_data::abi): New field.
2441 * function.c: Include function-abi.h.
2442 (prepare_function_start): Initialize crtl->abi.
2443 * read-rtl-function.c: Include regs.h and function-abi.h.
2444 (read_rtl_function_body): Initialize crtl->abi.
2445 (read_rtl_function_body_from_file_range): Likewise.
2446 * reginfo.c: Include function-abi.h.
2447 (init_reg_sets_1): Initialize default_function_abi.
2448 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2449 when making a register global.
2450 * target-globals.h (this_target_function_abi_info): Declare.
2451 (target_globals::function_abi_info): New field.
2452 (restore_target_globals): Copy it.
2453 * target-globals.c: Include function-abi.h.
2454 (default_target_globals): Initialize the function_abi_info field.
2455 (target_globals): Allocate it.
2456 (save_target_globals): Free it.
2457
2458 2019-09-30 Nick Clifton <nickc@redhat.com>
2459
2460 PR target/85978
2461 * config/frv/frv.c (frv_register_move_cost): Add break statements
2462 to avoid falling through to the wrong cases. Tidy code.
2463
2464 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2465
2466 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2467 For multi-registers modes, test how big each register part is.
2468
2469 2019-09-30 Nick Clifton <nickc@redhat.com>
2470
2471 PR target/59205
2472 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2473 (TARGET_ASM_SELECT_SECTION): Remove definition.
2474 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2475
2476 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2477
2478 * emit-rtl.c (init_raw_REG): New function.
2479 (gen_raw_REG): Use init_raw_REG.
2480 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2481 macros.
2482 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2483 * rtl.h (rtx_init): New function.
2484 (rtx_alloca): New function.
2485 (init_raw_REG): New function.
2486 (alloca_raw_REG): New macro.
2487
2488 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2489
2490 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2491 (pcrel_local_address): Replace pcrel_address predicate, use the
2492 new function address_to_insn_form.
2493 (pcrel_external_address): Replace with new implementation using
2494 address_to_insn_form..
2495 (prefixed_mem_operand): Delete predicate which is now unused.
2496 (pcrel_external_mem_operand): Delete predicate which is now
2497 unused.
2498 * config/rs6000/rs6000-protos.h (enum insn_form): New
2499 enumeration.
2500 (enum non_prefixed_form): New enumeration.
2501 (address_to_insn_form): New declaration.
2502 (prefixed_load_p): New declaration.
2503 (prefixed_store_p): New declaration.
2504 (prefixed_paddi_p): New declaration.
2505 (rs6000_asm_output_opcode): New declaration.
2506 (rs6000_final_prescan_insn): Move declaration and update calling
2507 signature.
2508 (address_is_prefixed): New helper inline function.
2509 * config/rs6000/rs6000.c(print_operand_address): Check for either
2510 PC-relative local symbols or PC-relative external symbols.
2511 (rs6000_emit_move): Support loading PC-relative addresses.
2512 (mode_supports_prefixed_address_p): Delete, no longer used.
2513 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2514 (address_to_insn_form): New function to decode an address format.
2515 (reg_to_non_prefixed): New function to identify what the
2516 non-prefixed memory instruction format is for a register.
2517 (prefixed_load_p): New function to identify prefixed loads.
2518 (prefixed_store_p): New function to identify prefixed stores.
2519 (prefixed_paddi_p): New function to identify prefixed load
2520 immediates.
2521 (next_insn_prefixed_p): New static state variable.
2522 (rs6000_final_prescan_insn): New function to determine if an insn
2523 uses a prefixed instruction.
2524 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2525 prefixed instruction.
2526 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2527 (ASM_OUTPUT_OPCODE): New target hook.
2528 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2529 prefixed instructions.
2530 (prefixed_length): New insn attribute for the size of prefixed
2531 instructions.
2532 (non_prefixed_length): New insn attribute for the size of
2533 non-prefixed instructions.
2534 (pcrel_local_addr): New insn to load up a local PC-relative
2535 address.
2536 (pcrel_extern_addr): New insn to load up an external PC-relative
2537 address.
2538 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2539 GPR and loading a 128-bit floating point type to a GPR.
2540
2541 2019-09-30 Richard Biener <rguenther@suse.de>
2542
2543 * gimple.c (gimple_get_lhs): For PHIs return the result.
2544 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2545 SLP instance as argument.
2546 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2547 double-reduction PHIs with vectorizable_lc_phi.
2548 (vect_analyze_loop_operations): Adjust.
2549 (vect_create_epilog_for_reduction): Remove all code not dealing
2550 with reduction LC PHI or epilogue generation.
2551 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2552 for live stmts of reductions.
2553 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2554 do not handle defs that are not vect_internal_def.
2555 (can_vectorize_live_stmts): Adjust.
2556 (vect_analyze_stmt): When the vectorized stmt defined a value
2557 used on backedges adjust the backedge uses of vectorized PHIs.
2558
2559 2019-09-30 Martin Jambor <mjambor@suse.cz>
2560
2561 PR ipa/91853
2562 * tree-inline.c (force_value_to_type): New function.
2563 (setup_one_parameter): Use force_value_to_type to convert type.
2564 * tree-inline.c (force_value_to_type): Declare.
2565 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2566 with register type mismatches.
2567
2568 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2569
2570 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2571 32-bit PowerPC.
2572 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2573 * config/rs6000/t-freebsd64: Make use of the above define and build
2574 the 32-bit libraries with secure-plt.
2575
2576 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2577
2578 PR target/91931
2579 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2580 gen_int_mode instead of GEN_INT.
2581
2582 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2583
2584 * config/darwin.c (gen_macho_low): Amend to include the mode
2585 argument.
2586 (machopic_indirect_data_reference): Amend gen_macho_low call
2587 to include mode argument
2588 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2589 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2590 the macho_high expander and two define_insn entries.
2591
2592 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2593
2594 PR bootstrap/90543
2595 * optc-save-gen.awk: Fix up printing string option differences.
2596
2597 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2598
2599 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2600 vec_perm cost to 1 for non-Power7 VSX architectures.
2601
2602 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2603
2604 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2605 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2606 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2607
2608 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2609
2610 * config/darwin.c (gen_macho_high): Amend to include the mode
2611 argument.
2612 (machopic_indirect_data_reference): Amend gen_macho_high call
2613 to include mode argument.
2614 (machopic_legitimize_pic_address): Likewise.
2615 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2616 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2617 the macho_high expander and two define_insn entries.
2618
2619 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2620
2621 PR target/86805
2622 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2623
2624 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2625
2626 PR target/80672
2627 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2628 std::string::compare instead of std::string::find.
2629
2630 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2631
2632 * configure: Regenerate.
2633
2634 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2635
2636 PR middle-end/91920
2637 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2638 variables as shared.
2639
2640 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2641
2642 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2643 replaces the expander and two define_insn entries.
2644 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2645 call.
2646 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2647
2648 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2649
2650 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2651 (fibonacci_heap::nodes): Likewise.
2652 (fibonacci_heap::min_key): Likewise.
2653 (fibonacci_heap::min): Likewise.
2654
2655 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2656
2657 * cgraph.c (cgraph_node::get_fun): Make const.
2658 * cgraph.h (cgraph_node::get_fun): Likewise.
2659
2660 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2661
2662 PR target/91919
2663 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2664 of SImode MULT.
2665
2666 2019-09-27 Richard Biener <rguenther@suse.de>
2667
2668 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2669 (STMT_VINFO_REDUC_FN): Likewise.
2670 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2671 STMT_VINFO_REDUC_FN.
2672 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2673 for condition reductions.
2674 (vect_create_epilog_for_reduction): Compute all required state
2675 from the stmt to be vectorized.
2676 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2677 invocation and remove then dead code. For single def-use chains
2678 record only a single vector stmt.
2679
2680 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2681
2682 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2683 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2684 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2685 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2686 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2687 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2688 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2689 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2690 (aarch64_general_builtin_rsqrt): Declare.
2691 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2692 New function.
2693 (aarch64_mangle_builtin_type): Rename to...
2694 (aarch64_general_mangle_builtin_type): ...this.
2695 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2696 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2697 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2698 aarch64_general_add_builtin instead of add_builtin_function.
2699 (aarch64_init_builtins): Rename to...
2700 (aarch64_general_init_builtins): ...this. Use
2701 aarch64_general_add_builtin instead of add_builtin_function.
2702 (aarch64_builtin_decl): Rename to...
2703 (aarch64_general_builtin_decl): ...this and remove the unused
2704 arguments.
2705 (aarch64_expand_builtin): Rename to...
2706 (aarch64_general_expand_builtin): ...this and remove the unused
2707 arguments.
2708 (aarch64_builtin_rsqrt): Rename to...
2709 (aarch64_general_builtin_rsqrt): ...this.
2710 (aarch64_fold_builtin): Rename to...
2711 (aarch64_general_fold_builtin): ...this. Take the function subcode
2712 and return type as arguments. Remove the "ignored" argument.
2713 (aarch64_gimple_fold_builtin): Rename to...
2714 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2715 subcode and gcall as arguments, and return the new function call.
2716 * config/aarch64/aarch64.c (aarch64_init_builtins)
2717 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2718 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2719 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2720 instead of aarch64_builtin_rsqrt.
2721 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2722 instead of aarch64_mangle_builtin_type.
2723
2724 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2725
2726 * target.def (check_builtin_call): New target hook.
2727 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2728 * doc/tm.texi: Regenerate.
2729
2730 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2731
2732 PR tree-optimization/91909
2733 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2734 reduc_index parameter. When handling COND_REDUCTION, make sure
2735 that the reduction phi operand is in the correct arm of the
2736 VEC_COND_EXPR.
2737 (vectorizable_reduction): Pass reduc_index to the above.
2738
2739 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2740
2741 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2742 New combine pattern.
2743
2744 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2745
2746 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2747 loop instruction into new basic block before the loop when basic
2748 block that precedes the loop is empty.
2749
2750 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2751
2752 * function.c (gimplify_parameters): Use build_clobber function.
2753 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2754 * tree-inline.c (expand_call_inline): Likewise.
2755 * tree-sra.c (clobber_subtree): Likewise.
2756 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2757 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2758 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2759 lower_omp_target): Likewise.
2760 * omp-expand.c (expand_omp_for_generic): Likewise.
2761 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2762
2763 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2764
2765 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2766 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2767 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2768 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2769 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2770 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2771 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2772 LD_ELEMREV_V16QI): Use the PURE attribute.
2773
2774 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2775
2776 * config/rs6000/darwin.md: Replace the expanders for
2777 load_macho_picbase and reload_macho_picbase with use of '@'
2778 and <mode> in their respective define_insns.
2779 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2780 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2781 Pmode to gen_load_macho_picbase.
2782 * config/rs6000/rs6000.md: Likewise.
2783
2784 2019-09-25 Richard Biener <rguenther@suse.de>
2785
2786 PR tree-optimization/91896
2787 * tree-vect-loop.c (vectorizable_reduction): The single
2788 def-use cycle optimization cannot apply when there's more
2789 than one pattern stmt involved.
2790
2791 2019-09-26 Richard Biener <rguenther@suse.de>
2792
2793 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2794 loop-closed PHIs that are vect_internal_def.
2795 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2796 Simplify.
2797 (vectorizable_lc_phi): New.
2798 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2799 (vect_transform_stmt): Likewise.
2800 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2801 (vectorizable_lc_phi): Declare.
2802
2803 2019-09-26 Richard Biener <rguenther@suse.de>
2804
2805 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2806 vectorizable_reduction for vect_double_reduction_def.
2807 (vect_transform_loop): Likewise.
2808 (vect_create_epilog_for_reduction): Move double-reduction
2809 PHI creation and preheader argument setting of PHIs ...
2810 (vectorizable_reduction): ... here. Also process
2811 vect_double_reduction_def PHIs, creating the vectorized
2812 PHI nodes, remembering the scalar adjustment computed for
2813 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2814 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2815 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2816 Initialize STMT_VINFO_REDUC_CODE.
2817 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2818 (_stmt_vec_info::reduc_code): Likewise.
2819 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2820 (STMT_VINFO_REDUC_CODE): Likewise.
2821
2822 2019-09-26 Matt Turner <mattst88@gmail.com>
2823
2824 PR driver/69471
2825 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2826 (mtune=): Add Negative(mtune=).
2827 (mcpu=): Add Negative(mcpu=).
2828 * config/arm/arm.opt: Likewise.
2829
2830 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2831
2832 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2833 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2834 Define.
2835 * config/arm/arm_acle.h: Define builtins for the above.
2836 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2837 (simd32_op): Handle the above.
2838 * config/arm/unspecs.md: Define unspecs for the above.
2839
2840 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2841
2842 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2843 (arm_<sup>xtb16): Likewise.
2844 (arm_usada8): Likewise.
2845 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2846 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2847 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2848 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2849 __sxtb16, __uxtab16, __uxtb16): Define.
2850 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2851 * config/arm/unspecs.md: Define unspecs for the above.
2852 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2853 (USXTB16): Likewise.
2854 (simd32_op): New int_attribute.
2855 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2856 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2857
2858 2019-09-26 Martin Jambor <mjambor@suse.cz>
2859
2860 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2861 internal_error.
2862
2863 2019-09-26 Martin Jambor <mjambor@suse.cz>
2864
2865 * ipa-sra.c (process_scan_results): Fix continue condition.
2866
2867 2019-09-26 Martin Liska <mliska@suse.cz>
2868
2869 PR tree-optimization/91885
2870 * tree-vectorizer.c (try_vectorize_loop_1): Add
2871 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2872
2873 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2874
2875 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2876 aarch64_plus_immediate rather than aarch64_uimm12_shift
2877 to test for valid PLUS immediates.
2878
2879 2019-09-25 Martin Jambor <mjambor@suse.cz>
2880
2881 * tree-sra.c (no_accesses_p): Remove.
2882 (no_accesses_representant): Likewise.
2883
2884 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2885
2886 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2887 consistenly.
2888 (vaba_s16): Likewise.
2889 (vaba_s32): Likewise.
2890 (vaba_u8): Likewise.
2891 (vaba_u16): Likewise.
2892 (vaba_u32): Likewise.
2893 (vabal_high_s8): Likewise.
2894 (vabal_high_s16): Likewise.
2895 (vabal_high_s32): Likewise.
2896 (vabal_high_u8): Likewise.
2897 (vabal_high_u16): Likewise.
2898 (vabal_high_u32): Likewise.
2899 (vabal_s8): Likewise.
2900 (vabal_s16): Likewise.
2901 (vabal_s32): Likewise.
2902 (vabal_u8): Likewise.
2903 (vabal_u16): Likewise.
2904 (vabal_u32): Likewise.
2905 (vabaq_s8): Likewise.
2906 (vabaq_s16): Likewise.
2907 (vabaq_s32): Likewise.
2908 (vabaq_u8): Likewise.
2909 (vabaq_u16): Likewise.
2910 (vabaq_u32): Likewise.
2911 (vabd_s8): Likewise.
2912 (vabd_s16): Likewise.
2913 (vabd_s32): Likewise.
2914 (vabd_u8): Likewise.
2915 (vabd_u16): Likewise.
2916 (vabd_u32): Likewise.
2917 (vabdl_high_s8): Likewise.
2918 (vabdl_high_s16): Likewise.
2919 (vabdl_high_s32): Likewise.
2920 (vabdl_high_u8): Likewise.
2921 (vabdl_high_u16): Likewise.
2922 (vabdl_high_u32): Likewise.
2923 (vabdl_s8): Likewise.
2924 (vabdl_s16): Likewise.
2925 (vabdl_s32): Likewise.
2926 (vabdl_u8): Likewise.
2927 (vabdl_u16): Likewise.
2928 (vabdl_u32): Likewise.
2929 (vabdq_s8): Likewise.
2930 (vabdq_s16): Likewise.
2931 (vabdq_s32): Likewise.
2932 (vabdq_u8): Likewise.
2933 (vabdq_u16): Likewise.
2934 (vabdq_u32): Likewise.
2935 (vaddlv_s8): Likewise.
2936 (vaddlv_s16): Likewise.
2937 (vaddlv_u8): Likewise.
2938 (vaddlv_u16): Likewise.
2939 (vaddlvq_s8): Likewise.
2940 (vaddlvq_s16): Likewise.
2941 (vaddlvq_s32): Likewise.
2942 (vaddlvq_u8): Likewise.
2943 (vaddlvq_u16): Likewise.
2944 (vaddlvq_u32): Likewise.
2945 (vcvtx_f32_f64): Likewise.
2946 (vcvtx_high_f32_f64): Likewise.
2947 (vcvtxd_f32_f64): Likewise.
2948 (vmla_n_f32): Likewise.
2949 (vmla_n_s16): Likewise.
2950 (vmla_n_s32): Likewise.
2951 (vmla_n_u16): Likewise.
2952 (vmla_n_u32): Likewise.
2953 (vmla_s8): Likewise.
2954 (vmla_s16): Likewise.
2955 (vmla_s32): Likewise.
2956 (vmla_u8): Likewise.
2957 (vmla_u16): Likewise.
2958 (vmla_u32): Likewise.
2959 (vmlal_high_n_s16): Likewise.
2960 (vmlal_high_n_s32): Likewise.
2961 (vmlal_high_n_u16): Likewise.
2962 (vmlal_high_n_u32): Likewise.
2963 (vmlal_high_s8): Likewise.
2964 (vmlal_high_s16): Likewise.
2965 (vmlal_high_s32): Likewise.
2966 (vmlal_high_u8): Likewise.
2967 (vmlal_high_u16): Likewise.
2968 (vmlal_high_u32): Likewise.
2969 (vmlal_n_s16): Likewise.
2970 (vmlal_n_s32): Likewise.
2971 (vmlal_n_u16): Likewise.
2972 (vmlal_n_u32): Likewise.
2973 (vmlal_s8): Likewise.
2974 (vmlal_s16): Likewise.
2975 (vmlal_s32): Likewise.
2976 (vmlal_u8): Likewise.
2977 (vmlal_u16): Likewise.
2978 (vmlal_u32): Likewise.
2979 (vmlaq_n_f32): Likewise.
2980 (vmlaq_n_s16): Likewise.
2981 (vmlaq_n_s32): Likewise.
2982 (vmlaq_n_u16): Likewise.
2983 (vmlaq_n_u32): Likewise.
2984 (vmlaq_s8): Likewise.
2985 (vmlaq_s16): Likewise.
2986 (vmlaq_s32): Likewise.
2987 (vmlaq_u8): Likewise.
2988 (vmlaq_u16): Likewise.
2989 (vmlaq_u32): Likewise.
2990 (vmls_n_f32): Likewise.
2991 (vmls_n_s16): Likewise.
2992 (vmls_n_s32): Likewise.
2993 (vmls_n_u16): Likewise.
2994 (vmls_n_u32): Likewise.
2995 (vmls_s8): Likewise.
2996 (vmls_s16): Likewise.
2997 (vmls_s32): Likewise.
2998 (vmls_u8): Likewise.
2999 (vmls_u16): Likewise.
3000 (vmls_u32): Likewise.
3001 (vmlsl_high_n_s16): Likewise.
3002 (vmlsl_high_n_s32): Likewise.
3003 (vmlsl_high_n_u16): Likewise.
3004 (vmlsl_high_n_u32): Likewise.
3005 (vmlsl_high_s8): Likewise.
3006 (vmlsl_high_s16): Likewise.
3007 (vmlsl_high_s32): Likewise.
3008 (vmlsl_high_u8): Likewise.
3009 (vmlsl_high_u16): Likewise.
3010 (vmlsl_high_u32): Likewise.
3011 (vmlsl_n_s16): Likewise.
3012 (vmlsl_n_s32): Likewise.
3013 (vmlsl_n_u16): Likewise.
3014 (vmlsl_n_u32): Likewise.
3015 (vmlsl_s8): Likewise.
3016 (vmlsl_s16): Likewise.
3017 (vmlsl_s32): Likewise.
3018 (vmlsl_u8): Likewise.
3019 (vmlsl_u16): Likewise.
3020 (vmlsl_u32): Likewise.
3021 (vmlsq_n_f32): Likewise.
3022 (vmlsq_n_s16): Likewise.
3023 (vmlsq_n_s32): Likewise.
3024 (vmlsq_n_u16): Likewise.
3025 (vmlsq_n_u32): Likewise.
3026 (vmlsq_s8): Likewise.
3027 (vmlsq_s16): Likewise.
3028 (vmlsq_s32): Likewise.
3029 (vmlsq_u8): Likewise.
3030 (vmlsq_u16): Likewise.
3031 (vmlsq_u32): Likewise.
3032 (vmovl_high_s8): Likewise.
3033 (vmovl_high_s16): Likewise.
3034 (vmovl_high_s32): Likewise.
3035 (vmovl_high_u8): Likewise.
3036 (vmovl_high_u16): Likewise.
3037 (vmovl_high_u32): Likewise.
3038 (vmovl_s8): Likewise.
3039 (vmovl_s16): Likewise.
3040 (vmovl_s32): Likewise.
3041 (vmovl_u8): Likewise.
3042 (vmovl_u16): Likewise.
3043 (vmovl_u32): Likewise.
3044 (vmovn_high_s16): Likewise.
3045 (vmovn_high_s32): Likewise.
3046 (vmovn_high_s64): Likewise.
3047 (vmovn_high_u16): Likewise.
3048 (vmovn_high_u32): Likewise.
3049 (vmovn_high_u64): Likewise.
3050 (vmovn_s16): Likewise.
3051 (vmovn_s32): Likewise.
3052 (vmovn_s64): Likewise.
3053 (vmovn_u16): Likewise.
3054 (vmovn_u32): Likewise.
3055 (vmovn_u64): Likewise.
3056 (vmull_high_n_s16): Likewise.
3057 (vmull_high_n_s32): Likewise.
3058 (vmull_high_n_u16): Likewise.
3059 (vmull_high_n_u32): Likewise.
3060 (vmull_high_p8): Likewise.
3061 (vmull_high_s8): Likewise.
3062 (vmull_high_s16): Likewise.
3063 (vmull_high_s32): Likewise.
3064 (vmull_high_u8): Likewise.
3065 (vmull_high_u16): Likewise.
3066 (vmull_high_u32): Likewise.
3067 (vmull_n_s16): Likewise.
3068 (vmull_n_s32): Likewise.
3069 (vmull_n_u16): Likewise.
3070 (vmull_n_u32): Likewise.
3071 (vmull_p8): Likewise.
3072 (vmull_s8): Likewise.
3073 (vmull_s16): Likewise.
3074 (vmull_s32): Likewise.
3075 (vmull_u8): Likewise.
3076 (vmull_u16): Likewise.
3077 (vmull_u32): Likewise.
3078 (vpadal_s8): Likewise.
3079 (vpadal_s16): Likewise.
3080 (vpadal_s32): Likewise.
3081 (vpadal_u8): Likewise.
3082 (vpadal_u16): Likewise.
3083 (vpadal_u32): Likewise.
3084 (vpadalq_s8): Likewise.
3085 (vpadalq_s16): Likewise.
3086 (vpadalq_s32): Likewise.
3087 (vpadalq_u8): Likewise.
3088 (vpadalq_u16): Likewise.
3089 (vpadalq_u32): Likewise.
3090 (vpaddl_s8): Likewise.
3091 (vpaddl_s16): Likewise.
3092 (vpaddl_s32): Likewise.
3093 (vpaddl_u8): Likewise.
3094 (vpaddl_u16): Likewise.
3095 (vpaddl_u32): Likewise.
3096 (vpaddlq_s8): Likewise.
3097 (vpaddlq_s16): Likewise.
3098 (vpaddlq_s32): Likewise.
3099 (vpaddlq_u8): Likewise.
3100 (vpaddlq_u16): Likewise.
3101 (vpaddlq_u32): Likewise.
3102 (vpaddq_s8): Likewise.
3103 (vpaddq_s16): Likewise.
3104 (vpaddq_s32): Likewise.
3105 (vpaddq_s64): Likewise.
3106 (vpaddq_u8): Likewise.
3107 (vpaddq_u16): Likewise.
3108 (vpaddq_u32): Likewise.
3109 (vpaddq_u64): Likewise.
3110 (vqdmulh_n_s16): Likewise.
3111 (vqdmulh_n_s32): Likewise.
3112 (vqdmulhq_n_s16): Likewise.
3113 (vqdmulhq_n_s32): Likewise.
3114 (vqmovn_high_s16): Likewise.
3115 (vqmovn_high_s32): Likewise.
3116 (vqmovn_high_s64): Likewise.
3117 (vqmovn_high_u16): Likewise.
3118 (vqmovn_high_u32): Likewise.
3119 (vqmovn_high_u64): Likewise.
3120 (vqmovun_high_s16): Likewise.
3121 (vqmovun_high_s32): Likewise.
3122 (vqmovun_high_s64): Likewise.
3123 (vqrdmulh_n_s16): Likewise.
3124 (vqrdmulh_n_s32): Likewise.
3125 (vqrdmulhq_n_s16): Likewise.
3126 (vqrdmulhq_n_s32): Likewise.
3127 (vrsqrte_u32): Likewise.
3128 (vrsqrteq_u32): Likewise.
3129 (vtst_p8): Likewise.
3130 (vtst_p16): Likewise.
3131 (vtst_p64): Likewise.
3132 (vtstq_p8): Likewise.
3133 (vtstq_p16): Likewise.
3134 (vtstq_p64): Likewise.
3135 (vaddlv_s32): Likewise.
3136 (vaddlv_u32): Likewise.
3137 (vqtbl1_p8): Likewise.
3138 (vqtbl1_s8): Likewise.
3139 (vqtbl1_u8): Likewise.
3140 (vqtbl1q_p8): Likewise.
3141 (vqtbl1q_s8): Likewise.
3142 (vqtbl1q_u8): Likewise.
3143 (vqtbx1_s8): Likewise.
3144 (vqtbx1_u8): Likewise.
3145 (vqtbx1_p8): Likewise.
3146 (vqtbx1q_s8): Likewise.
3147 (vqtbx1q_u8): Likewise.
3148 (vqtbx1q_p8): Likewise.
3149 (vtbl1_s8): Likewise.
3150 (vtbl1_u8): Likewise.
3151 (vtbl1_p8): Likewise.
3152 (vtbl2_s8): Likewise.
3153 (vtbl2_u8): Likewise.
3154 (vtbl2_p8): Likewise.
3155 (vtbl3_s8): Likewise.
3156 (vtbl3_u8): Likewise.
3157 (vtbl3_p8): Likewise.
3158 (vtbl4_s8): Likewise.
3159 (vtbl4_u8): Likewise.
3160 (vtbl4_p8): Likewise.
3161 (vtbx2_s8): Likewise.
3162 (vtbx2_u8): Likewise.
3163 (vtbx2_p8): Likewise.
3164 (vld1_f32): Likewise.
3165 (vld1_f64): Likewise.
3166 (vld1_p8): Likewise.
3167 (vld1_p16): Likewise.
3168 (vld1_p64): Likewise.
3169 (vld1_s8): Likewise.
3170 (vld1_s16): Likewise.
3171 (vld1_s32): Likewise.
3172 (vld1_s64): Likewise.
3173 (vld1_u8): Likewise.
3174 (vld1_u16): Likewise.
3175 (vld1_u32): Likewise.
3176 (vld1_u64): Likewise.
3177 (vld1q_f32): Likewise.
3178 (vld1q_f64): Likewise.
3179 (vld1q_p8): Likewise.
3180 (vld1q_p16): Likewise.
3181 (vld1q_p64): Likewise.
3182 (vld1q_s8): Likewise.
3183 (vld1q_s16): Likewise.
3184 (vld1q_s32): Likewise.
3185 (vld1q_s64): Likewise.
3186 (vld1q_u8): Likewise.
3187 (vld1q_u16): Likewise.
3188 (vld1q_u32): Likewise.
3189 (vld1q_u64): Likewise.
3190 (vpmax_s8): Likewise.
3191 (vpmax_s16): Likewise.
3192 (vpmax_s32): Likewise.
3193 (vpmax_u8): Likewise.
3194 (vpmax_u16): Likewise.
3195 (vpmax_u32): Likewise.
3196 (vpmaxq_s8): Likewise.
3197 (vpmaxq_s16): Likewise.
3198 (vpmaxq_s32): Likewise.
3199 (vpmaxq_u8): Likewise.
3200 (vpmaxq_u16): Likewise.
3201 (vpmaxq_u32): Likewise.
3202 (vpmax_f32): Likewise.
3203 (vpmaxq_f32): Likewise.
3204 (vpmaxq_f64): Likewise.
3205 (vpmaxqd_f64): Likewise.
3206 (vpmaxs_f32): Likewise.
3207 (vpmaxnm_f32): Likewise.
3208 (vpmaxnmq_f32): Likewise.
3209 (vpmaxnmq_f64): Likewise.
3210 (vpmaxnmqd_f64): Likewise.
3211 (vpmaxnms_f32): Likewise.
3212 (vpmin_s8): Likewise.
3213 (vpmin_s16): Likewise.
3214 (vpmin_s32): Likewise.
3215 (vpmin_u8): Likewise.
3216 (vpmin_u16): Likewise.
3217 (vpmin_u32): Likewise.
3218 (vpminq_s8): Likewise.
3219 (vpminq_s16): Likewise.
3220 (vpminq_s32): Likewise.
3221 (vpminq_u8): Likewise.
3222 (vpminq_u16): Likewise.
3223 (vpminq_u32): Likewise.
3224 (vpmin_f32): Likewise.
3225 (vpminq_f32): Likewise.
3226 (vpminq_f64): Likewise.
3227 (vpminqd_f64): Likewise.
3228 (vpmins_f32): Likewise.
3229 (vpminnm_f32): Likewise.
3230 (vpminnmq_f32): Likewise.
3231 (vpminnmq_f64): Likewise.
3232 (vpminnmqd_f64): Likewise.
3233 (vpminnms_f32): Likewise.
3234 (vmla_f32): Likewise.
3235 (vmlaq_f32): Likewise.
3236 (vmlaq_f64): Likewise.
3237 (vmls_f32): Likewise.
3238 (vmlsq_f32): Likewise.
3239 (vmlsq_f64): Likewise.
3240 (vqtbl2_s8): Likewise.
3241 (vqtbl2_u8): Likewise.
3242 (vqtbl2_p8): Likewise.
3243 (vqtbl2q_s8): Likewise.
3244 (vqtbl2q_u8): Likewise.
3245 (vqtbl2q_p8): Likewise.
3246 (vqtbl3_s8): Likewise.
3247 (vqtbl3_u8): Likewise.
3248 (vqtbl3_p8): Likewise.
3249 (vqtbl3q_s8): Likewise.
3250 (vqtbl3q_u8): Likewise.
3251 (vqtbl3q_p8): Likewise.
3252 (vqtbl4_s8): Likewise.
3253 (vqtbl4_u8): Likewise.
3254 (vqtbl4_p8): Likewise.
3255 (vqtbl4q_s8): Likewise.
3256 (vqtbl4q_u8): Likewise.
3257 (vqtbl4q_p8): Likewise.
3258 (vqtbx2_s8): Likewise.
3259 (vqtbx2_u8): Likewise.
3260 (vqtbx2_p8): Likewise.
3261 (vqtbx2q_s8): Likewise.
3262 (vqtbx2q_u8): Likewise.
3263 (vqtbx2q_p8): Likewise.
3264 (vqtbx3_s8): Likewise.
3265 (vqtbx3_u8): Likewise.
3266 (vqtbx3_p8): Likewise.
3267 (vqtbx3q_s8): Likewise.
3268 (vqtbx3q_u8): Likewise.
3269 (vqtbx3q_p8): Likewise.
3270 (vqtbx4_s8): Likewise.
3271 (vqtbx4_u8): Likewise.
3272 (vqtbx4_p8): Likewise.
3273 (vqtbx4q_s8): Likewise.
3274 (vqtbx4q_u8): Likewise.
3275 (vqtbx4q_p8): Likewise.
3276 (vrev16_p8): Likewise.
3277 (vrev16_s8): Likewise.
3278 (vrev16_u8): Likewise.
3279 (vrev16q_p8): Likewise.
3280 (vrev16q_s8): Likewise.
3281 (vrev16q_u8): Likewise.
3282 (vrev32_p8): Likewise.
3283 (vrev32_p16): Likewise.
3284 (vrev32_s8): Likewise.
3285 (vrev32_s16): Likewise.
3286 (vrev32_u8): Likewise.
3287 (vrev32_u16): Likewise.
3288 (vrev32q_p8): Likewise.
3289 (vrev32q_p16): Likewise.
3290 (vrev32q_s8): Likewise.
3291 (vrev32q_s16): Likewise.
3292 (vrev32q_u8): Likewise.
3293 (vrev32q_u16): Likewise.
3294 (vrev64_f32): Likewise.
3295 (vrev64_p8): Likewise.
3296 (vrev64_p16): Likewise.
3297 (vrev64_s8): Likewise.
3298 (vrev64_s16): Likewise.
3299 (vrev64_s32): Likewise.
3300 (vrev64_u8): Likewise.
3301 (vrev64_u16): Likewise.
3302 (vrev64_u32): Likewise.
3303 (vrev64q_f32): Likewise.
3304 (vrev64q_p8): Likewise.
3305 (vrev64q_p16): Likewise.
3306 (vrev64q_s8): Likewise.
3307 (vrev64q_s16): Likewise.
3308 (vrev64q_s32): Likewise.
3309 (vrev64q_u8): Likewise.
3310 (vrev64q_u16): Likewise.
3311 (vrev64q_u32): Likewise.
3312 (vsha1cq_u32): Likewise.
3313 (vsha1mq_u32): Likewise.
3314 (vsha1pq_u32): Likewise.
3315 (vsha1h_u32): Likewise.
3316 (vsha1su0q_u32): Likewise.
3317 (vsha1su1q_u32): Likewise.
3318 (vsha256hq_u32): Likewise.
3319 (vsha256h2q_u32): Likewise.
3320 (vsha256su0q_u32): Likewise.
3321 (vsha256su1q_u32): Likewise.
3322 (vmull_p64): Likewise.
3323 (vmull_high_p64): Likewise.
3324 (vsqrt_f32): Likewise.
3325 (vsqrtq_f32): Likewise.
3326 (vsqrt_f64): Likewise.
3327 (vsqrtq_f64): Likewise.
3328 (vst1_f32): Likewise.
3329 (vst1_f64): Likewise.
3330 (vst1_p8): Likewise.
3331 (vst1_p16): Likewise.
3332 (vst1_p64): Likewise.
3333 (vst1_s8): Likewise.
3334 (vst1_s16): Likewise.
3335 (vst1_s32): Likewise.
3336 (vst1_s64): Likewise.
3337 (vst1_u8): Likewise.
3338 (vst1_u16): Likewise.
3339 (vst1_u32): Likewise.
3340 (vst1_u64): Likewise.
3341 (vst1q_f32): Likewise.
3342 (vst1q_f64): Likewise.
3343 (vst1q_p8): Likewise.
3344 (vst1q_p16): Likewise.
3345 (vst1q_p64): Likewise.
3346 (vst1q_s8): Likewise.
3347 (vst1q_s16): Likewise.
3348 (vst1q_s32): Likewise.
3349 (vst1q_s64): Likewise.
3350 (vst1q_u8): Likewise.
3351 (vst1q_u16): Likewise.
3352 (vst1q_u32): Likewise.
3353 (vst1q_u64): Likewise.
3354 (vst1_s64_x2): Likewise.
3355 (vst1_u64_x2): Likewise.
3356 (vst1_f64_x2): Likewise.
3357 (vst1_s8_x2): Likewise.
3358 (vst1_p8_x2): Likewise.
3359 (vst1_s16_x2): Likewise.
3360 (vst1_p16_x2): Likewise.
3361 (vst1_s32_x2): Likewise.
3362 (vst1_u8_x2): Likewise.
3363 (vst1_u16_x2): Likewise.
3364 (vst1_u32_x2): Likewise.
3365 (vst1_f16_x2): Likewise.
3366 (vst1_f32_x2): Likewise.
3367 (vst1_p64_x2): Likewise.
3368 (vst1q_s8_x2): Likewise.
3369 (vst1q_p8_x2): Likewise.
3370 (vst1q_s16_x2): Likewise.
3371 (vst1q_p16_x2): Likewise.
3372 (vst1q_s32_x2): Likewise.
3373 (vst1q_s64_x2): Likewise.
3374 (vst1q_u8_x2): Likewise.
3375 (vst1q_u16_x2): Likewise.
3376 (vst1q_u32_x2): Likewise.
3377 (vst1q_u64_x2): Likewise.
3378 (vst1q_f16_x2): Likewise.
3379 (vst1q_f32_x2): Likewise.
3380 (vst1q_f64_x2): Likewise.
3381 (vst1q_p64_x2): Likewise.
3382 (vst1_s64_x3): Likewise.
3383 (vst1_u64_x3): Likewise.
3384 (vst1_f64_x3): Likewise.
3385 (vst1_s8_x3): Likewise.
3386 (vst1_p8_x3): Likewise.
3387 (vst1_s16_x3): Likewise.
3388 (vst1_p16_x3): Likewise.
3389 (vst1_s32_x3): Likewise.
3390 (vst1_u8_x3): Likewise.
3391 (vst1_u16_x3): Likewise.
3392 (vst1_u32_x3): Likewise.
3393 (vst1_f16_x3): Likewise.
3394 (vst1_f32_x3): Likewise.
3395 (vst1_p64_x3): Likewise.
3396 (vst1q_s8_x3): Likewise.
3397 (vst1q_p8_x3): Likewise.
3398 (vst1q_s16_x3): Likewise.
3399 (vst1q_p16_x3): Likewise.
3400 (vst1q_s32_x3): Likewise.
3401 (vst1q_s64_x3): Likewise.
3402 (vst1q_u8_x3): Likewise.
3403 (vst1q_u16_x3): Likewise.
3404 (vst1q_u32_x3): Likewise.
3405 (vst1q_u64_x3): Likewise.
3406 (vst1q_f16_x3): Likewise.
3407 (vst1q_f32_x3): Likewise.
3408 (vst1q_f64_x3): Likewise.
3409 (vst1q_p64_x3): Likewise.
3410 (vst2_s64): Likewise.
3411 (vst2_u64): Likewise.
3412 (vst2_f64): Likewise.
3413 (vst2_s8): Likewise.
3414 (vst2_p8): Likewise.
3415 (vst2_s16): Likewise.
3416 (vst2_p16): Likewise.
3417 (vst2_s32): Likewise.
3418 (vst2_u8): Likewise.
3419 (vst2_u16): Likewise.
3420 (vst2_u32): Likewise.
3421 (vst2_f16): Likewise.
3422 (vst2_f32): Likewise.
3423 (vst2_p64): Likewise.
3424 (vst2q_s8): Likewise.
3425 (vst2q_p8): Likewise.
3426 (vst2q_s16): Likewise.
3427 (vst2q_p16): Likewise.
3428 (vst2q_s32): Likewise.
3429 (vst2q_s64): Likewise.
3430 (vst2q_u8): Likewise.
3431 (vst2q_u16): Likewise.
3432 (vst2q_u32): Likewise.
3433 (vst2q_u64): Likewise.
3434 (vst2q_f16): Likewise.
3435 (vst2q_f32): Likewise.
3436 (vst2q_f64): Likewise.
3437 (vst2q_p64): Likewise.
3438 (vst3_s64): Likewise.
3439 (vst3_u64): Likewise.
3440 (vst3_f64): Likewise.
3441 (vst3_s8): Likewise.
3442 (vst3_p8): Likewise.
3443 (vst3_s16): Likewise.
3444 (vst3_p16): Likewise.
3445 (vst3_s32): Likewise.
3446 (vst3_u8): Likewise.
3447 (vst3_u16): Likewise.
3448 (vst3_u32): Likewise.
3449 (vst3_f16): Likewise.
3450 (vst3_f32): Likewise.
3451 (vst3_p64): Likewise.
3452 (vst3q_s8): Likewise.
3453 (vst3q_p8): Likewise.
3454 (vst3q_s16): Likewise.
3455 (vst3q_p16): Likewise.
3456 (vst3q_s32): Likewise.
3457 (vst3q_s64): Likewise.
3458 (vst3q_u8): Likewise.
3459 (vst3q_u16): Likewise.
3460 (vst3q_u32): Likewise.
3461 (vst3q_u64): Likewise.
3462 (vst3q_f16): Likewise.
3463 (vst3q_f32): Likewise.
3464 (vst3q_f64): Likewise.
3465 (vst3q_p64): Likewise.
3466 (vst4_s64): Likewise.
3467 (vst4_u64): Likewise.
3468 (vst4_f64): Likewise.
3469 (vst4_s8): Likewise.
3470 (vst4_p8): Likewise.
3471 (vst4_s16): Likewise.
3472 (vst4_p16): Likewise.
3473 (vst4_s32): Likewise.
3474 (vst4_u8): Likewise.
3475 (vst4_u16): Likewise.
3476 (vst4_u32): Likewise.
3477 (vst4_f16): Likewise.
3478 (vst4_f32): Likewise.
3479 (vst4_p64): Likewise.
3480 (vst4q_s8): Likewise.
3481 (vst4q_p8): Likewise.
3482 (vst4q_s16): Likewise.
3483 (vst4q_p16): Likewise.
3484 (vst4q_s32): Likewise.
3485 (vst4q_s64): Likewise.
3486 (vst4q_u8): Likewise.
3487 (vst4q_u16): Likewise.
3488 (vst4q_u32): Likewise.
3489 (vst4q_u64): Likewise.
3490 (vst4q_f16): Likewise.
3491 (vst4q_f32): Likewise.
3492 (vst4q_f64): Likewise.
3493 (vst4q_p64): Likewise.
3494 (vtbx4_s8): Likewise.
3495 (vtbx4_u8): Likewise.
3496 (vtbx4_p8): Likewise.
3497 (vtrn_f32): Likewise.
3498 (vtrn_p8): Likewise.
3499 (vtrn_p16): Likewise.
3500 (vtrn_s8): Likewise.
3501 (vtrn_s16): Likewise.
3502 (vtrn_s32): Likewise.
3503 (vtrn_u8): Likewise.
3504 (vtrn_u16): Likewise.
3505 (vtrn_u32): Likewise.
3506 (vtrnq_f32): Likewise.
3507 (vtrnq_p8): Likewise.
3508 (vtrnq_p16): Likewise.
3509 (vtrnq_s8): Likewise.
3510 (vtrnq_s16): Likewise.
3511 (vtrnq_s32): Likewise.
3512 (vtrnq_u8): Likewise.
3513 (vtrnq_u16): Likewise.
3514 (vtrnq_u32): Likewise.
3515 (vrsqrte_f16): Likewise.
3516 (vrsqrteq_f16): Likewise.
3517 (vsqrt_f16): Likewise.
3518 (vsqrtq_f16): Likewise.
3519 (vabd_f16): Likewise.
3520 (vabdq_f16): Likewise.
3521 (vpadd_f16): Likewise.
3522 (vpaddq_f16): Likewise.
3523 (vpmax_f16): Likewise.
3524 (vpmaxq_f16): Likewise.
3525 (vpmaxnm_f16): Likewise.
3526 (vpmaxnmq_f16): Likewise.
3527 (vpmin_f16): Likewise.
3528 (vpminq_f16): Likewise.
3529 (vpminnm_f16): Likewise.
3530 (vpminnmq_f16): Likewise.
3531 (vrsqrts_f16): Likewise.
3532 (vrsqrtsq_f16): Likewise.
3533
3534 2019-09-25 Richard Biener <rguenther@suse.de>
3535
3536 PR tree-optimization/91896
3537 * tree-vect-loop.c (vectorizable_reduction): The single
3538 def-use cycle optimization cannot apply when there's more
3539 than one pattern stmt involved.
3540
3541 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3542
3543 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3544 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3545 (reload_macho_picbase_<mode>): Likewise.
3546
3547 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3548
3549 * config/rs6000/rs6000.md: Move darwin.md include until
3550 after the definition of the mode iterators.
3551
3552 2019-09-23 Martin Sebor <msebor@redhat.com>
3553
3554 PR tree-optimization/91570
3555 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3556 non-constant minlen, maxlen and maxbound.
3557
3558 2019-09-24 Richard Biener <rguenther@suse.de>
3559
3560 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3561 Rename to...
3562 (_stmt_vec_info::cond_reduc_code): ... this.
3563 (_stmt_vec_info::induc_cond_initial_val): Add.
3564 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3565 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3566 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3567 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3568 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3569 the reduction code.
3570 (vect_create_epilog_for_reduction): Drop special
3571 induction condition reduction params, pass in reduction code
3572 and simplify.
3573 (vectorizable_reduction): Perform condition reduction kind
3574 selection only at analysis time. Adjust passing on state.
3575
3576 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3577
3578 * config/aarch64/aarch64.md (mov<mode>): Don't call
3579 aarch64_split_dimode_const_store on volatile MEM.
3580
3581 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3582
3583 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3584 Update hwcap string for fp16fml.
3585
3586 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3587
3588 PR middle-end/91866
3589 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3590 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3591
3592 2019-09-24 Martin Liska <mliska@suse.cz>
3593
3594 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3595 instead of if-elseif-elseif-...
3596 * gimple-expr.c (extract_ops_from_tree): Likewise.
3597 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3598 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3599
3600 2019-09-24 Martin Jambor <mjambor@suse.cz>
3601
3602 PR ipa/91831
3603 * ipa-param-manipulation.c (carry_over_param): Make a method of
3604 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3605 in case of a context mismatch.
3606 (ipa_param_body_adjustments::common_initialization): Adjust call to
3607 carry_over_param.
3608 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3609 private method carry_over_param.
3610
3611 2019-09-24 Martin Jambor <mjambor@suse.cz>
3612
3613 PR ipa/91832
3614 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3615
3616 2019-09-24 Richard Biener <rguenther@suse.de>
3617
3618 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3619 base.
3620
3621 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3622
3623 * config/arm/t-arm (arm-builtins.o): Add dependency on
3624 arm_acle_builtins.def.
3625
3626 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3627
3628 PR target/91823
3629 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3630 canonical CONST_INTs. Use gen_rtvec.
3631
3632 2019-09-23 Richard Biener <rguenther@suse.de>
3633
3634 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3635 avoid adjusting by + 0 or * 1.
3636 (vect_create_epilog_for_reduction): Get reduction code only
3637 when necessary. Deal with adjustment_def only when necessary.
3638
3639 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3640
3641 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3642 memmodel index.
3643
3644 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3645
3646 PR ipa/91835
3647 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3648 "ipa-sra".
3649
3650 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3651
3652 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3653 code. Merge code blocks with common conditionals. Use declared
3654 macro instead of a magic number for PIC level.
3655
3656 2019-09-21 Martin Sebor <msebor@redhat.com>
3657
3658 PR middle-end/91830
3659 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3660 Simplify computation of the offset of the referenced subobject.
3661
3662 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3663
3664 * config/darwin.c (machopic_legitimize_pic_address): Check
3665 for lra not reload.
3666
3667 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3668
3669 * ira-conflicts.c (can_use_same_reg_p): New function.
3670 (process_reg_shuffles): Take an insn parameter. Ignore cases
3671 in which input operand op_num could seemingly never be allocated
3672 to the same register as the destination.
3673 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3674
3675 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3676
3677 * simplify-rtx.c (neg_const_int): Replace with...
3678 (neg_poly_int_rtx): ...this new function.
3679 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3680 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3681 (simplify_plus_minus): Likewise for constant terms here.
3682
3683 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3684
3685 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3686 HOST_WIDE_PRINT_UNSIGNED.
3687
3688 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3689
3690 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3691 character.
3692
3693 2019-09-20 Maya Rashish <coypu@sdf.org>
3694
3695 PR target/86811
3696 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3697 Define to speculation_safe_value_not_needed.
3698
3699 2019-09-20 Richard Biener <rguenther@suse.de>
3700 Uros Bizjak <ubizjak@gmail.com>
3701
3702 PR target/91814
3703 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3704 previous change.
3705 (general_scalar_chain::convert_op): Force not suitable memory
3706 operands to a register.
3707
3708 2019-09-20 Richard Biener <rguenther@suse.de>
3709
3710 PR tree-optimization/91821
3711 * tree-vect-loop.c (check_reduction_path): Check we can compute
3712 reduc_idx.
3713 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3714 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3715 operands in canonical order.
3716 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3717 STMT_VINFO_REDUC_IDX.
3718 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3719 (STMT_VINFO_REDUC_IDX): Likewise.
3720
3721 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3722
3723 PR target/91269
3724 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3725
3726 2019-09-20 Richard Biener <rguenther@suse.de>
3727
3728 PR tree-optimization/91822
3729 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3730 parameter.
3731 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3732 for reduc_index in nested cycles, adjust vectorizable_condition
3733 calls.
3734 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3735 parameter.
3736 (vect_analyze_stmt): Adjust.
3737 (vect_transform_stmt): Likewise.
3738
3739 2019-09-20 Richard Biener <rguenther@suse.de>
3740
3741 PR target/91767
3742 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3743 Ensure there's a sequence point between allocating the new register
3744 and passing a reference to a reg via regno_reg_rtx.
3745
3746 2019-09-20 Martin Jambor <mjambor@suse.cz>
3747
3748 * coretypes.h (cgraph_edge): Declare.
3749 * ipa-param-manipulation.c: Rewrite.
3750 * ipa-param-manipulation.h: Likewise.
3751 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3752 (OBJS): Added ipa-sra.o.
3753 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3754 and ref_p, added fields param_adjustments and performed_splits.
3755 (struct cgraph_clone_info): Remove ags_to_skip and
3756 combined_args_to_skip, new field param_adjustments.
3757 (cgraph_node::create_clone): Changed parameters to use
3758 ipa_param_adjustments.
3759 (cgraph_node::create_virtual_clone): Likewise.
3760 (cgraph_node::create_virtual_clone_with_body): Likewise.
3761 (tree_function_versioning): Likewise.
3762 (cgraph_build_function_type_skip_args): Removed.
3763 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3764 using ipa_param_adjustments.
3765 (clone_of_p): Likewise.
3766 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3767 (build_function_decl_skip_args): Likewise.
3768 (duplicate_thunk_for_node): Adjust parameters using
3769 ipa_param_body_adjustments, copy param_adjustments instead of
3770 args_to_skip.
3771 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3772 (cgraph_node::create_virtual_clone): Likewise.
3773 (cgraph_node::create_version_clone_with_body): Likewise.
3774 (cgraph_materialize_clone): Likewise.
3775 (symbol_table::materialize_all_clones): Likewise.
3776 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3777 ipa_replace_map check.
3778 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3779 (initialize_node_lattices): Make aware that some parameters might have
3780 already been removed.
3781 (want_remove_some_param_p): New function.
3782 (create_specialized_node): Convert to using ipa_param_adjustments and
3783 deal with possibly pre-existing adjustments.
3784 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3785 (output_node_opt_summary): Do not stream removed fields. Stream
3786 parameter adjustments instead of argumetns to skip.
3787 (input_node_opt_summary): Likewise.
3788 (input_node_opt_summary): Likewise.
3789 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3790 * lto-streamer.h (lto_section_type): Likewise.
3791 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3792 param_body_adjs.
3793 (copy_decl_to_var): Declare.
3794 * tree-inline.c (update_clone_info): Do not remap old_tree.
3795 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3796 statements, walk all extra generated statements and remap their
3797 operands.
3798 (redirect_all_calls): Add killed SSA names to a hash set.
3799 (remap_ssa_name): Do not remap killed SSA names.
3800 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3801 half of functionality moved to ipa_param_body_adjustments.
3802 (copy_decl_to_var): Make exported.
3803 (copy_body): Destroy killed_new_ssa_names hash set.
3804 (expand_call_inline): Remap performed splits.
3805 (update_clone_info): Likewise.
3806 (tree_function_versioning): Simplify tree_map processing. Updated to
3807 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3808 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3809 for the new interface.
3810 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3811 (simd_clone_compute_base_data_type): Likewise.
3812 (simd_clone_init_simd_arrays): Adjust for the new interface.
3813 (simd_clone_adjust_argument_types): Likewise.
3814 (struct modify_stmt_info): Likewise.
3815 (ipa_simd_modify_stmt_ops): Likewise.
3816 (ipa_simd_modify_function_body): Likewise.
3817 (simd_clone_adjust): Likewise.
3818 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3819 (type_internals_preclude_sra_p): Make public.
3820 * tree-sra.h: New file.
3821 * ipa-inline-transform.c (save_inline_function_body): Update to
3822 refelct new tree_function_versioning signature.
3823 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3824 ipa_param_adjustments to get current parameter indices.
3825 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3826 (ipcp_update_bits): Likewise.
3827 (ipcp_update_vr): Likewise.
3828 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3829 * ipa-sra.c: New file.
3830 * multiple_target.c (create_target_clone): Update to reflet new type
3831 of create_version_clone_with_body.
3832 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3833 tree_function_versioning.
3834 (modify_function): Update to reflect new type of
3835 tree_function_versioning.
3836 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3837 * passes.def: Remove old IPA-SRA and add new one.
3838 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3839 (make_pass_ipa_sra): Declare.
3840 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3841 ipa_sra_retvalues.
3842 * doc/invoke.texi (ipa-sra-max-replacements): New.
3843
3844 2019-09-19 Martin Sebor <msebor@redhat.com>
3845
3846 PR middle-end/91631
3847 * builtins.c (component_size): Correct trailing array computation,
3848 rename to component_ref_size and move...
3849 (compute_objsize): Adjust.
3850 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3851 (builtin_access::strict): Do not consider memmove.
3852 (builtin_access::write_off): New function.
3853 (builtin_memref::builtin_memref): Initialize refsize.
3854 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3855 refsize.
3856 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3857 Handle refsize.
3858 (builtin_access::builtin_access): Initialize dstoff to destination
3859 refeence offset here instead of in maybe_diag_overlap. Adjust
3860 referencess even to unrelated objects. Adjust sizrange of bounded
3861 string functions to reflect bound. For strcat, adjust destination
3862 sizrange by that of source.
3863 (builtin_access::strcat_overlap): Adjust offsets and sizes
3864 to reflect the increase in destination sizrange above.
3865 (builtin_access::overlap): Do not set dstoff here but instead
3866 in builtin_access::builtin_access.
3867 (check_bounds_or_overlap): Use builtin_access::write_off.
3868 (maybe_diag_access_bounds): Add argument. Add informational notes.
3869 (dump_builtin_memref, dump_builtin_access): New functions.
3870 * tree.c (component_ref_size): ...to here.
3871 * tree.h (component_ref_size): Declare.
3872 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3873 nul in the size of the source string.
3874
3875 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3876
3877 PR c/67224
3878 * doc/cpp.texi: Document support for extended characters in
3879 identifiers.
3880 * doc/cppopts.texi: Likewise.
3881
3882 2019-09-19 Richard Biener <rguenther@suse.de>
3883
3884 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3885 (check_reduction_path): New overload having the path as result.
3886 (vect_is_simple_reduction): From the detected reduction
3887 path build a SLP reduction chain if possible.
3888
3889 2019-09-19 Richard Biener <rguenther@suse.de>
3890
3891 PR target/91814
3892 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3893 Force operand to a register if it isn't nonimmediate_operand.
3894
3895 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3896
3897 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3898 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3899 (logical_op): Remove code attribute.
3900 (logical_OP): Likewise.
3901
3902 2019-09-19 Martin Liska <mliska@suse.cz>
3903
3904 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3905 Use proper casting.
3906
3907 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3908
3909 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3910 registers with %R.
3911
3912 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3913 for NE comparison of TImode values.
3914 (aarch64_emit_load_exclusive): Add support for TImode.
3915 (aarch64_emit_store_exclusive): Likewise.
3916 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3917 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3918 Change iterator from ALLI to ALLI_TI.
3919 (@atomic_compare_and_swap<JUST_TI>): New.
3920 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3921 (aarch64_load_exclusive_pair): New.
3922 (aarch64_store_exclusive_pair): New.
3923 * config/aarch64/iterators.md (JUST_TI): New.
3924
3925 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3926 strong_zero_p for aarch64_track_speculation; unify some code paths;
3927 use aarch64_gen_compare_reg instead of open-coding.
3928
3929 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3930 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3931 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3932 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3933 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3934 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3935 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3936 (atomic_<atomic_op><ALLI>): Likewise.
3937 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3938 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3939 * doc/invoke.texi: Document -moutline-atomics.
3940
3941 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3942
3943 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3944 trivial predicate for condition branch.
3945 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3946 for switch case.
3947 (compute_bb_predicates): Update predicate based on post-dominating
3948 relationship.
3949 (analyze_function_body): Calculate post-dominating information.
3950
3951 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3952
3953 * tree-vectorizer.h (vectorizable_condition): Take an int
3954 reduction index instead of a boolean flag.
3955 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3956 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3957 reductions if the reduction accumulator is the "then" rather
3958 than the "else" value.
3959 (vect_analyze_stmt): Update call accordingly.
3960 (vect_transform_stmt): Likewise.
3961 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3962 asserting that the index is > 0.
3963
3964 2019-09-19 Martin Liska <mliska@suse.cz>
3965
3966 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3967 (sort_congruence_classes_by_decl_uid): Likewise.
3968 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3969 easier sorting.
3970 (sem_item_optimizer::merge_classes): Likewise.
3971
3972 2019-09-19 Richard Biener <rguenther@suse.de>
3973
3974 PR tree-optimization/91812
3975 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3976 volatile loads.
3977
3978 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3979
3980 * defaults.h (TARGET_UNIT): New macro.
3981 (target_unit): New type.
3982 * rtl.h (native_encode_rtx, native_decode_rtx)
3983 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3984 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3985 * rtlanal.c (subreg_lsb_1): Delete.
3986 (subreg_size_lsb): New function.
3987 * simplify-rtx.c: Include rtx-vector-builder.h
3988 (simplify_immed_subreg): Delete.
3989 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3990 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3991 functions.
3992 (simplify_subreg): Use them.
3993 (test_vector_subregs_modes, test_vector_subregs_repeating)
3994 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3995 (test_vector_subregs): New functions.
3996 (test_vector_ops): Call test_vector_subregs for integer vector
3997 modes with at least 2 elements.
3998
3999 2019-09-19 Richard Biener <rguenther@suse.de>
4000
4001 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4002 LOOP_VINFO_OPERANDS_SWAPPED.
4003 (parloops_is_simple_reduction): Likewise.
4004 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4005 initialize operands_swapped.
4006 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4007 (vect_is_slp_reduction): Do not swap operands.
4008 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4009 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4010
4011 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4012
4013 PR target/87007
4014 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4015 Add avx_partial_xmm_update.
4016
4017 2019-09-18 Jim Wilson <jimw@sifive.com>
4018
4019 PR target/91683
4020 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4021 (riscv_move_integer): Likewise.
4022 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4023 riscv_move_integer arg.
4024 (riscv_legitimize_move): Likewise.
4025 (riscv_force_temporary): New parameter in_splitter. Don't call
4026 force_reg if true.
4027 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4028 arg.
4029 (riscv_add_offset): Likewise.
4030 (riscv_split_symbol): New parameter in_splitter. Pass to
4031 riscv_force_temporary.
4032 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4033 arg.
4034 (riscv_move_integer): New parameter in_splitter. New local
4035 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4036 in_splitter TRUE.
4037 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4038 riscv_split_symbol, and riscv_force_temporary args.
4039 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4040 riscv_move_integer arg.
4041 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4042
4043 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4044
4045 PR target/90878
4046 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4047 hard register store cost to 6.
4048
4049 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4050
4051 PR target/91446
4052 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4053 pseudo register store cost from 3 to 6 to make it the same as
4054 QImode and HImode.
4055
4056 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4057
4058 PR target/91738
4059 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4060 (one_cmpldi2): Likewise.
4061 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4062 of the constant parts is simple.
4063 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4064 (logical_op): Add new code attribute.
4065 (logical_OP): Likewise.
4066 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4067 (arm_iordi_operand): Add predicate.
4068 (arm_xordi_operand): Add predicate.
4069
4070 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4071
4072 * config/arm/arm.md (maddsidi4): Remove expander.
4073 (mulsidi3adddi): Remove pattern.
4074 (mulsidi3adddi_v6): Likewise.
4075 (mulsidi3_nov6): Likewise.
4076 (mulsidi3_v6): Likewise.
4077 (umulsidi3): Remove expander.
4078 (umulsidi3_nov6): Remove pattern.
4079 (umulsidi3_v6): Likewise.
4080 (umulsidi3adddi): Likewise.
4081 (umulsidi3adddi_v6): Likewise.
4082 (<Us>mulsidi3): Add combined expander.
4083 (<Us>maddsidi4): Likewise.
4084 (<US>mull): Add combined umull and smull pattern.
4085 (<US>mlal): Likewise.
4086 * config/arm/iterators.md (Us): Add new iterator.
4087
4088 2019-09-18 Richard Biener <rguenther@suse.de>
4089
4090 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4091 swapping.
4092 (vectorize_fold_left_reduction): Remove assert.
4093 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4094 operand in position 2. Remove assert.
4095
4096 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4097
4098 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4099 (smulsi3_highpart_nov6): Remove pattern.
4100 (smulsi3_highpart_v6): Likewise.
4101 (umulsi3_highpart): Likewise.
4102 (umulsi3_highpart_nov6): Likewise.
4103 (umulsi3_highpart_v6): Likewise.
4104 (<US>mull_high): Add new combined multiply pattern.
4105
4106 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4107
4108 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4109 (arm_mulsi3_v6): Likewise.
4110 (mulsi3addsi_v6): Likewise.
4111 (mulsi3subsi): Likewise.
4112 (mul): Add new multiply pattern.
4113 (mla): Likewise.
4114 (mls): Likewise.
4115
4116 2019-09-18 Richard Biener <rguenther@suse.de>
4117
4118 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4119 (parloops_valid_reduction_input_p): Copy from
4120 valid_reduction_input_p.
4121 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4122 (parloops_needs_fold_left_reduction_p): Copy from
4123 needs_fold_left_reduction_p.
4124 (parloops_is_simple_reduction): Copy from
4125 vect_is_simple_reduction.
4126 (parloops_force_simple_reduction): Copy from
4127 vect_force_simple_reduction.
4128 (gather_scalar_reductions): Adjust.
4129 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4130 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4131
4132 2019-09-18 Richard Biener <rguenther@suse.de>
4133
4134 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4135 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4136 static.
4137 (vect_create_epilog_for_reduction): Remove dead code.
4138
4139 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4140
4141 * varasm.c (assemble_real): Generate canonical const_ints.
4142
4143 2019-09-18 Richard Biener <rguenther@suse.de>
4144
4145 PR lto/91763
4146 * lto-streamer-in.c (input_eh_regions): Move EH init to
4147 lto_materialize_function.
4148 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4149 Likewise.
4150
4151 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4152
4153 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4154 are INTEGER_CSTs.
4155
4156 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4157
4158 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4159 of checking specifically for INTEGER_CST.
4160
4161 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4162
4163 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4164 sizes instead of uhwi sizes.
4165
4166 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4167
4168 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4169 (add_const_value_attribute): Handle CONST_POLY_INT.
4170
4171 2019-09-18 Martin Liska <mliska@suse.cz>
4172
4173 * dbgcnt.def (store_merging): New counter.
4174 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4175 Use it in store merging.
4176
4177 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4178
4179 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4180 function.
4181 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4182 * config/arm/arm.c (arm_sched_variable_issue): New function.
4183 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4184
4185 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4186
4187 * config/arm/types.md (no_reservation): New reservation.
4188 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4189 no_insn here.
4190 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4191 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4192 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4193 * config/arm/arm1020e.md (1020alu_op): Likewise.
4194 * config/arm/arm1026ejs.md (alu_op): Likewise.
4195 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4196 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4197 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4198 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4199 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4200 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4201 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4202 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4203 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4204 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4205 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4206 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4207 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4208 * config/arm/fa526.md (526_alu_op): Likewise.
4209 * config/arm/fa606te.md (606te_alu_op): Likewise.
4210 * config/arm/fa626te.md (626te_alu_op): Likewise.
4211 * config/arm/fa726te.md (726te_alu_op): Likewise.
4212 * config/arm/xgene1.md (xgene1_nop): Likewise.
4213
4214 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4215
4216 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4217 "no_insn" to "branch".
4218
4219 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4220
4221 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4222
4223 2019-09-17 Richard Biener <rguenther@suse.de>
4224
4225 PR debug/91772
4226 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4227 was missing generate locations only once.
4228
4229 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4230
4231 PR ipa/91089
4232 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4233 option.
4234 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4235 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4236 for switch default case using range analysis information.
4237
4238 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4239
4240 PR target/91749
4241 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4242 mode attributed is supported by FDPIC.
4243
4244 2019-09-17 Richard Biener <rguenther@suse.de>
4245
4246 PR tree-optimization/91790
4247 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4248 use the correct DR for setting up realignment.
4249
4250 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4251
4252 PR target/91719
4253 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4254 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4255 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4256 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4257
4258 2019-09-16 Jason Merrill <jason@redhat.com>
4259
4260 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4261
4262 2019-09-16 Martin Liska <mliska@suse.cz>
4263
4264 * gimple-fold.c (or_comparisons_1): Remove rules moved
4265 to ...
4266 * match.pd: ... here.
4267
4268 2019-09-16 Martin Liska <mliska@suse.cz>
4269
4270 * gimple-fold.c (or_comparisons_1): Remove rules
4271 moved to ...
4272 * match.pd: ... here.
4273
4274 2019-09-16 Martin Liska <mliska@suse.cz>
4275
4276 * genmatch.c (dt_node::append_simplify): Do not print
4277 warning when we have duplicate patterns belonging
4278 to a same simplify rule.
4279 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4280 (maybe_fold_comparisons_from_match_pd): Handle
4281 tcc_comparison as a results.
4282 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4283
4284 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4285 Qi Feng <ffengqi@linux.ibm.com>
4286
4287 PR middle-end/88784
4288 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4289 (x > y && x == XXX_MIN): Optimize into 'false'.
4290 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4291 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4292 (x < y && x == XXX_MAX): Optimize into 'false'.
4293 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4294 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4295 (x <= y || x != XXX_MIN): Optimize into 'true'.
4296 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4297 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4298 (x >= y || x != XXX_MAX): Optimize into 'true'.
4299 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4300
4301 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4302 Martin Liska <mliska@suse.cz>
4303
4304 * gimple-fold.c (and_comparisons_1): Add type as first
4305 argument.
4306 (and_var_with_comparison): Likewise.
4307 (and_var_with_comparison_1): Likewise.
4308 (or_comparisons_1): Likewise.
4309 (or_var_with_comparison): Likewise.
4310 (or_var_with_comparison_1): Likewise.
4311 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4312 (maybe_fold_or_comparisons): Likewise.
4313 (maybe_fold_comparisons_from_match_pd): New.
4314 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4315 (maybe_fold_or_comparisons): Likewise.
4316 * gimple.c (gimple_size): Make it public and add num_ops argument.
4317 (gimple_init): New function.
4318 (gimple_alloc): Call gimple_init.
4319 * gimple.h (gimple_size): New.
4320 (gimple_init): Likewise.
4321 * tree-if-conv.c (fold_or_predicates): Pass type.
4322 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4323 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4324 (optimize_vec_cond_expr): Likewise.
4325 (ovce_extract_ops): Return type of conditional expression.
4326 * tree-ssanames.c (init_ssa_name_imm_use): New.
4327 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4328 * tree-ssanames.h (init_ssa_name_imm_use): New.
4329
4330 2019-09-16 Richard Biener <rguenther@suse.de>
4331
4332 PR tree-optimization/91756
4333 PR tree-optimization/87132
4334 * tree-ssa-alias.h (enum translate_flags): New.
4335 (get_continuation_for_phi): Use it instead of simple bool flag.
4336 (walk_non_aliased_vuses): Likewise.
4337 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4338 (get_continuation_for_phi): When looking across backedges only
4339 disallow valueization.
4340 (walk_non_aliased_vuses): Adjust.
4341 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4342 if requested.
4343
4344 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4345
4346 PR middle-end/80791
4347 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4348 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4349 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4350 * target.def (have_count_reg_decr_p): New hook.
4351 (doloop_cost_for_generic): Likewise.
4352 (doloop_cost_for_address): Likewise.
4353 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4354 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4355 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4356 * doc/tm.texi: Regenerate.
4357 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4358 addend.
4359 (record_group): Init doloop_p.
4360 (add_candidate_1): Add optional argument doloop, change the handlings
4361 accordingly.
4362 (add_candidate): Likewise.
4363 (generic_predict_doloop_p): Update attribute.
4364 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4365 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4366 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4367 MIN_EXPR.
4368 (get_computation_cost): Update for doloop IV cand extra cost.
4369 (determine_group_iv_cost_cond): Update for doloop IV cand.
4370 (determine_iv_cost): Likewise.
4371 (ivopts_estimate_reg_pressure): Likewise.
4372 (may_eliminate_iv): Update handlings for doloop IV cand.
4373 (add_iv_candidate_for_doloop): New function.
4374 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4375 (iv_ca_set_no_cp): Update for doloop IV cand.
4376 (iv_ca_set_cp): Likewise.
4377 (iv_ca_dump): Dump register cost.
4378 (find_doloop_use): New function.
4379 (analyze_and_mark_doloop_use): Likewise.
4380 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4381
4382 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4383
4384 PR middle-end/91708
4385 * cse.c (cse_insn): Do not replace anything with a
4386 MEM.
4387
4388 2019-09-13 Ian Lance Taylor <iant@golang.org>
4389
4390 * doc/invoke.texi (Optimize Options): Fix typo.
4391
4392 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4393
4394 PR tree-optimization/89386
4395 * config/i386/sse.md (smulhrs<mode>3): New expander.
4396 (smulhrsv4hi3): Ditto.
4397
4398 2019-09-12 Richard Biener <rguenther@suse.de>
4399
4400 PR tree-optimization/91750
4401 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4402 in the type of the evolution.
4403
4404 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4405
4406 PR tree-optimization/89386
4407 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4408 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4409 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4410 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4411 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4412 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4413 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4414 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4415 (su, r): Handle the unspecs above.
4416 (bt): New int attribute.
4417 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4418 * internal-fn.c (first_commutative_argument): Commutativity info for
4419 above.
4420 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4421 (umulhrs_optab): New optabs.
4422 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4423 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4424 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4425 function.
4426 (vect_vect_recog_func_ptrs): Add it.
4427
4428 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4429
4430 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4431 code.
4432
4433 2019-09-11 Nathan Sidwell <nathan@acm.org>
4434
4435 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4436 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4437
4438 2019-09-11 Richard Biener <rguenther@suse.de>
4439
4440 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4441 * lto-wrapper.c (merge_and_complain): Pick up -g.
4442 (append_compiler_options): Likewise.
4443 (run_gcc): Re-instantiate handling -g0 at link-time.
4444 * doc/invoke.texi (flto): Document debug info generation.
4445
4446 2019-09-11 Richard Biener <rguenther@suse.de>
4447
4448 PR tree-optimization/90387
4449 * vr-values.c (vr_values::extract_range_basic): After inlining
4450 simplify non-constant __builtin_constant_p to false.
4451
4452 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4453
4454 PR rtl-optimization/89795
4455 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4456 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4457
4458 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR tree-optimization/91723
4461 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4462 instead of pointer equality when checking if argument vectypes are
4463 the same.
4464
4465 PR middle-end/91725
4466 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4467 of get_nonzero_bits, only call it for integral types.
4468
4469 2019-09-11 Richard Biener <rguenther@suse.de>
4470
4471 Revert
4472 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4473
4474 * match.pd: Add flag_unsafe_math_optimizations check
4475 before deciding on the widest type in a binary math operation.
4476
4477 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4478
4479 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4480 and CALL_REALLY_USED_REGISTERS must be defined, and that
4481 CALL_REALLY_USED_REGISTERS is preferred.
4482 * doc/tm.texi: Regenerate.
4483 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4484 (call_really_used_regs): Likewise.
4485 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4486 CALL_REALLY_USED_REGISTERS are defined.
4487 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4488 initial value if defined.
4489 (initial_call_really_used_regs): Delete.
4490 (saved_call_really_used_regs): Likewise.
4491 (CALL_REALLY_USED_REGNO_P): Likewise.
4492 (init_reg_sets): Remove handling of call_really_used_regs.
4493 (save_register_info, restore_register_info, globalize_reg): Likewise.
4494 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4495 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4496 outside operand_reg_set.
4497 (fix_register): Don't change call_used_regs if
4498 CALL_REALLY_USED_REGISTERS is defined.
4499 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4500 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4501 instead of call_really_used_regs.
4502 (csky_conditional_register_usage): Remove the old handling of
4503 call_used_regs and change the handling of call_really_used_regs
4504 to use call_used_regs instead.
4505 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4506 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4507 making a register fixed.
4508 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4509 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4510 instead of call_really_used_regs.
4511 (m32r_conditional_register_usage): Don't set call_used_regs when
4512 making a register fixed.
4513 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4514 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4515 instead of call_really_used_regs.
4516 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4517 (mips_cfun_call_saved_reg_p): Likewise.
4518 (mips_swap_registers): Remove the old handling of call_used_regs
4519 and change the handling of call_really_used_regs to use call_used_regs
4520 instead.
4521 (mips_conditional_register_usage): Likewise.
4522 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4523 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4524 instead of call_really_used_regs.
4525 (mn10300_get_live_callee_saved_regs): Likewise.
4526 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4527 (mn10300_conditional_register_usage): Don't set call_used_regs when
4528 making a register fixed.
4529 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4530 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4531 Remove the old handling of call_used_regs and change the handling
4532 of call_really_used_regs to use call_used_regs instead.
4533 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4534 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4535 instead of call_really_used_regs.
4536 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4537 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4538 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4539 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4540 (s390_conditional_register_usage): Remove the old handling of
4541 call_used_regs and change the handling of call_really_used_regs
4542 to use call_used_regs instead.
4543 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4544 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4545 (sh_fix_range, reg_unused_after): Likewise.
4546 (sh_conditional_register_usage): Remove the old handling of
4547 call_used_regs and change the handling of call_really_used_regs
4548 to use call_used_regs instead.
4549 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4550 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4551 call_used_regs when making a register fixed.
4552 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4553 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4554 call_used_regs when making a register fixed.
4555 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4556 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4557 set call_used_regs when making a register fixed.
4558 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4559 * config/visium/visium.c (visium_conditional_register_usage): Remove
4560 the old handling of call_used_regs and change the handling of
4561 call_really_used_regs to use call_used_regs instead.
4562
4563 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4564
4565 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4566 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4567 * reginfo.c (call_used_regs): New macro.
4568
4569 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4570
4571 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4572 fixed_regs test.
4573 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4574 (bpf_expand_epilogue): Likewise.
4575 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4576 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4577 (ft32_expand_epilogue): Likewise.
4578 * config/i386/i386.c (ix86_save_reg): Likewise.
4579 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4580 (moxie_expand_epilogue): Likewise.
4581 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4582 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4583 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4584
4585 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4586
4587 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4588 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4589 instead of testing call_used_regs directly.
4590 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4591 (aarch64_components_for_bb): Likewise.
4592 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4593 * config/arc/arc.c (arc_must_save_register): Likewise.
4594 (arc_epilogue_uses): Likewise.
4595 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4596 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4597 (arm_compute_save_reg0_reg12_mask): Likewise.
4598 (arm_compute_save_core_reg_mask): Likewise.
4599 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4600 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4601 (cmse_nonsecure_entry_clear_before_return): Likewise.
4602 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4603 (arm_expand_epilogue): Likewise.
4604 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4605 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4606 (_reg_unused_after): Likewise.
4607 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4608 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4609 (add_to_reg, hwloop_optimize): Likewise.
4610 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4611 (bpf_expand_epilogue): Likewise.
4612 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4613 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4614 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4615 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4616 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4617 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4618 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4619 * config/frv/frv.c (frv_stack_info): Likewise.
4620 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4621 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4622 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4623 (move_callee_saved_registers): Likewise.
4624 * config/h8300/h8300.c (byte_reg): Likewise.
4625 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4626 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4627 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4628 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4629 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4630 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4631 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4632 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4633 * config/m32c/m32c.c (need_to_save): Likewise.
4634 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4635 * config/mcore/mcore.c (calc_live_regs): Likewise.
4636 * config/microblaze/microblaze.c (microblaze_must_save_register):
4637 Likewise.
4638 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4639 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4640 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4641 (mmix_expand_epilogue): Likewise.
4642 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4643 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4644 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4645 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4646 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4647 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4648 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4649 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4650 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4651 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4652 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4653 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4654 * config/rl78/rl78.c (need_to_save): Likewise.
4655 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4656 (rs6000_stack_info, generate_set_vrsave): Likewise.
4657 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4658 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4659 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4660 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4661 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4662 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4663 (save_local_or_in_reg_p): Likewise.
4664 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4665 (xstormy16_epilogue_uses): Likewise.
4666 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4667 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4668 * config/v850/v850.c (compute_register_save_size): Likewise.
4669 * config/vax/vax.c (vax_expand_prologue): Likewise.
4670 * config/visium/visium.c (visium_save_reg_p): Likewise.
4671 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4672 * cselib.c (cselib_process_insn): Likewise.
4673 * df-scan.c (df_get_entry_block_def_set): Likewise.
4674 * function.c (aggregate_value_p): Likewise.
4675 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4676 * ira-lives.c (process_bb_node_lives): Likewise.
4677 * ira.c (do_reload): Likewise.
4678 * lra-lives.c (process_bb_lives): Likewise.
4679 * lra-remat.c (lra_remat): Likewise.
4680 * lra.c (lra): Likewise.
4681 * postreload.c (reload_combine_recognize_pattern): Likewise.
4682 (reload_cse_move2add): Likewise.
4683 * recog.c (peep2_find_free_register): Likewise.
4684 * regrename.c (check_new_reg_p): Likewise.
4685 * reload.c (find_equiv_reg): Likewise.
4686 * reload1.c (reload, find_reg): Likewise.
4687 * sel-sched.c (init_hard_regs_data): Likewise.
4688
4689 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4690
4691 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4692 regs_invalidated_by_call & ~fixed_reg_set instead of
4693 call_used_or_fixed_regs & ~fixed_reg_set.
4694 * config/sh/sh.c (output_stack_adjust): Likewise.
4695
4696 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4697
4698 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4699 (call_used_reg_set): Delete.
4700 (call_used_or_fixed_regs): New macro.
4701 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4702 of call_used_reg_set.
4703 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4704 instead of call_used_regs.
4705 (save_call_clobbered_regs): Likewise.
4706 * cfgcleanup.c (old_insns_match_p): Likewise.
4707 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4708 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4709 Likewise.
4710 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4711 * config/sh/sh.c (output_stack_adjust): Likewise.
4712 * final.c (collect_fn_hard_reg_usage): Likewise.
4713 * ira-build.c (ira_build): Likewise.
4714 * ira-color.c (calculate_saved_nregs): Likewise.
4715 (allocno_reload_assign, calculate_spill_cost): Likewise.
4716 * ira-conflicts.c (ira_build_conflicts): Likewise.
4717 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4718 * ira-lives.c (process_bb_node_lives): Likewise.
4719 * ira.c (setup_reg_renumber): Likewise.
4720 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4721 * lra-constraints.c (need_for_call_save_p): Likewise.
4722 (need_for_split_p, inherit_in_ebb): Likewise.
4723 * lra-lives.c (process_bb_lives): Likewise.
4724 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4725 * postreload.c (reload_combine): Likewise.
4726 * regrename.c (find_rename_reg): Likewise.
4727 * reload1.c (reload_as_needed): Likewise.
4728 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4729 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4730 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4731
4732 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4733
4734 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4735 (no_caller_save_reg_set): Delete.
4736 * caller-save.c (init_caller_save): Don't initialize it.
4737 * ira-conflicts.c (ira_build_conflicts): Calculate
4738 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4739
4740 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4741
4742 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4743 (target_hard_regs::x_savable_regs): New field.
4744 (call_fixed_reg_set): Delete.
4745 (savable_regs): New macro,
4746 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4747 (init_reg_sets_1): Likewise. Initialize savable_regs.
4748 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4749 for all registers. Set savable_regs instead of call_fixed_reg_set.
4750 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4751 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4752 * config/sh/sh.c (output_stack_adjust): Likewise.
4753
4754 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4755
4756 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4757 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4758 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4759
4760 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4761
4762 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4763 * rtlanal.c (get_call_rtx_from): Likewise.
4764 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4765 than the pattern to get_call_rtx_from.
4766 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4767 an rtx_insn * instead of an rtx.
4768 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4769
4770 2019-09-10 Martin Liska <mliska@suse.cz>
4771
4772 * common.opt: Use newly added WarnRemoved.
4773 * config/aarch64/aarch64.opt: Likewise.
4774 * config/arm/arm.opt: Likewise.
4775 * config/i386/i386.opt: Likewise.
4776 * config/ia64/ia64.opt: Likewise.
4777 * config/rs6000/rs6000.opt: Likewise.
4778 * doc/options.texi: Document WarnRemoved properly.
4779 * dwarf2out.c (gen_producer_string): Handle renamed
4780 OPT_SPECIAL_warn_removed.
4781 * lto-opts.c (lto_write_options): Likewise.
4782 * lto-wrapper.c (merge_and_complain): Likewise.
4783 * opts-common.c (decode_cmdline_option): Likewise.
4784 (prune_options): Likewise.
4785 (read_cmdline_option): Likewise.
4786 (control_warning_option): Likewise.
4787 * opts.c (print_filtered_help): Likewise.
4788 * optc-gen.awk: Parse for WarnRemoved and make usage
4789 of Deprecated an error.
4790 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4791
4792 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4793
4794 * doc/install.texi: Fix syntax for html generation.
4795
4796 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4797
4798 PR middle-end/91680
4799 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4800 the shift type to type.
4801
4802 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4803
4804 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4805 FDPIC mode.
4806 (stack_protect_combined_test_insn): Likewise.
4807
4808 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4809 Mickaël Guêné <mickael.guene@st.com>
4810
4811 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4812 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4813 (load_tp_soft_fdpic): New pattern.
4814 (load_tp_soft): Disable in FDPIC mode.
4815
4816 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4817 Mickaël Guêné <mickael.guene@st.com>
4818
4819 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4820 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4821 (arm_call_tls_get_addr): Add FDPIC support.
4822 (legitimize_tls_address): Likewise.
4823 (arm_emit_tls_decoration): Likewise.
4824
4825 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4826 Mickaël Guêné <mickael.guene@st.com>
4827
4828 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4829 support.
4830 (arm_trampoline_init): Likewise.
4831 (arm_trampoline_adjust_address): Likewise.
4832 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4833
4834 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4835 Mickaël Guêné <mickael.guene@st.com>
4836
4837 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4838 (legitimize_pic_address): Enforce binding rules on function
4839 pointers in FDPIC mode.
4840 (arm_assemble_integer): Likewise.
4841
4842 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4843 Mickaël Guêné <mickael.guene@st.com>
4844
4845 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4846 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4847 FDPIC.
4848
4849 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4850 Mickaël Guêné <mickael.guene@st.com>
4851
4852 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4853 field.
4854
4855 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4856 Mickaël Guêné <mickael.guene@st.com>
4857
4858 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4859 in FDPIC mode.
4860 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4861 new function.
4862 * config/arm/arm.c (arm_option_override): Define pic register to
4863 FDPIC_REGNUM.
4864 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4865 have no decl or go through PLT.
4866 (calculate_pic_address_constant): New function.
4867 (legitimize_pic_address): Call calculate_pic_address_constant.
4868 (arm_load_pic_register): Handle TARGET_FDPIC.
4869 (arm_is_segment_info_known): New function.
4870 (arm_pic_static_addr): Add support for FDPIC.
4871 (arm_load_function_descriptor): New function.
4872 (arm_emit_call_insn): Add support for FDPIC.
4873 (arm_assemble_integer): Add support for FDPIC.
4874 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4875 Define. (FDPIC_REGNUM): New define.
4876 * config/arm/arm.md (call): Add support for FDPIC.
4877 (call_value): Likewise.
4878 (restore_pic_register_after_call): New pattern.
4879 (untyped_call): Disable if FDPIC.
4880 (untyped_return): Likewise.
4881 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4882
4883 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4884 Mickaël Guêné <mickael.guene@st.com>
4885
4886 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4887 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4888 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4889 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4890 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4891 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4892 * config/arm/uclinuxfdpiceabi.h: New file.
4893
4894 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4895
4896 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4897
4898 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4899 Mickaël Guêné <mickael.guene@st.com>
4900
4901 * config/arm/arm.opt: Add -mfdpic option.
4902 * doc/invoke.texi: Add documentation for -mfdpic.
4903
4904 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4905
4906 * expmed.c (extract_bit_field): Update function comment
4907 regarding alt_rtl.
4908 * expr.c (expand_expr_real): Update function comment
4909 regarding alt_rtl.
4910 (expand_misaligned_mem_ref): New helper function.
4911 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4912 Remove duplicate assignment to "base" at case MEM_REF.
4913 Remove a shadowed variable "unsignedp" at case VCE.
4914
4915 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4916
4917 * regset.h (regs_invalidated_by_call_regset): Delete.
4918 (fixed_reg_set_regset): Likewise.
4919 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4920 (fixed_reg_set_regset, persistent_obstack): Likewise.
4921 (init_reg_sets_1, globalize_reg): Update accordingly.
4922 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4923 instead of a bitmap.
4924 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4925 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4926 instead of regs_invalidated_by_call_regset.
4927 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4928 * df-scan.c (df_scan_start_dump): Likewise.
4929 * dse.c (copy_fixed_regs): Likewise.
4930 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4931
4932 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4933
4934 * array-traits.h: New file.
4935 * coretypes.h (array_traits, bitmap_view): New types.
4936 * bitmap.h: Include "array-traits.h"
4937 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4938 (base_bitmap_view, bitmap_view): New classes.
4939 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4940 * hard-reg-set.h: Include array-traits.h.
4941 (array_traits<HARD_REG_SET>): New struct.
4942 * regset.h (IOR_REG_SET_HRS): New macro.
4943 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4944 rather than iterating over each hard register.
4945 * sched-deps.c (sched_analyze_insn): Likewise.
4946 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4947
4948 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4949
4950 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4951 instead of a HARD_REG_SET *.
4952 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4953 (ira_build): Update call accordingly.
4954 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4955
4956 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4957
4958 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4959 (HARD_REG_SET::operator!=): Likewise.
4960 (hard_reg_set_equal_p): Delete.
4961 * cfgcleanup.c (old_insns_match_p): Use == instead of
4962 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4963 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4964 (add_allocno_hard_regs_to_forest): Likewise.
4965 (setup_allocno_available_regs_num): Likewise.
4966 * ira.c (setup_pressure_classes): Likewise.
4967 (setup_allocno_and_important_classes): Likewise.
4968 (setup_reg_class_relations): Likewise.
4969 * lra-lives.c (process_bb_lives): Likewise.
4970 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4971
4972 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4973
4974 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4975 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4976 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4977 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4978 Likewise.
4979 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4980 * ira.c (setup_reg_renumber): Likewise.
4981 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4982 * regrename.c (regrename_find_superclass): Likewise.
4983 * reload1.c (find_reg): Likewise.
4984
4985 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4986
4987 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4988 * caller-save.c (setup_save_areas): Use "&~" instead of
4989 AND_COMPL_HARD_REG_SET.
4990 (save_call_clobbered_regs): Likewise.
4991 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4992 Likewise.
4993 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4994 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4995 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4996 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4997 (mips_conditional_register_usage): Likewise.
4998 * config/sh/sh.c (output_stack_adjust): Likewise.
4999 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5000 (setup_profitable_hard_regs): Likewise.
5001 (get_conflict_and_start_profitable_regs): Likewise.
5002 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5003 (ira_build_conflicts): Likewise.
5004 * ira-costs.c (restrict_cost_classes): Likewise.
5005 (setup_regno_cost_classes_by_aclass): Likewise.
5006 * ira-lives.c (process_bb_node_lives): Likewise.
5007 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5008 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5009 (setup_allocno_and_important_classes, setup_class_translate_array)
5010 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5011 Likewise.
5012 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5013 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5014 (process_alt_operands, inherit_in_ebb): Likewise.
5015 * lra-eliminations.c (update_reg_eliminate): Likewise.
5016 * lra-lives.c (process_bb_lives): Likewise.
5017 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5018 * resource.c (find_dead_or_set_registers): Likewise.
5019 (mark_target_live_regs): Likewise.
5020 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5021 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5022 (implicit_clobber_conflict_p): Likewise.
5023 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5024 (try_shrink_wrapping): Likewise.
5025
5026 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5027
5028 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5029 (HARD_REG_SET::operator|=): Likewise.
5030 (IOR_HARD_REG_SET): Delete.
5031 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5032 IOR_HARD_REG_SET.
5033 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5034 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5035 * final.c (collect_fn_hard_reg_usage): Likewise.
5036 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5037 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5038 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5039 (propagate_some_info_from_allocno): Likewise.
5040 (copy_info_to_removed_store_destinations): Likewise.
5041 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5042 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5043 (fast_allocation): Likewise.
5044 * ira-conflicts.c (ira_build_conflicts): Likewise.
5045 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5046 (process_bb_node_lives): Likewise.
5047 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5048 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5049 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5050 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5051 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5052 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5053 (process_bb_lives): Likewise.
5054 * lra-spills.c (assign_spill_hard_regs): Likewise.
5055 * postreload.c (reload_combine): Likewise.
5056 * reginfo.c (init_reg_sets_1): Likewise.
5057 * regrename.c (merge_overlapping_regs, find_rename_reg)
5058 (merge_chains): Likewise.
5059 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5060 (find_reload_regs, finish_spills, choose_reload_regs_init)
5061 (emit_reload_insns): Likewise.
5062 * reorg.c (redundant_insn): Likewise.
5063 * resource.c (find_dead_or_set_registers, mark_set_resources)
5064 (mark_target_live_regs): Likewise.
5065 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5066 * sched-deps.c (sched_analyze_insn): Likewise.
5067 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5068 (find_best_reg_for_expr): Likewise.
5069 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5070
5071 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5072
5073 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5074 (HARD_REG_SET::operator&): Likewise.
5075 (AND_HARD_REG_SET): Delete.
5076 * caller-save.c (setup_save_areas): Use "&" instead of
5077 AND_HARD_REG_SET.
5078 (save_call_clobbered_regs): Likewise.
5079 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5080 * config/m32c/m32c.c (reduce_class): Likewise.
5081 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5082 * final.c (get_call_reg_set_usage): Likewise.
5083 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5084 (setup_left_conflict_sizes_p): Likewise.
5085 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5086 (ira_build_conflicts): Likewise.
5087 * ira-costs.c (restrict_cost_classes): Likewise.
5088 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5089 (setup_reg_class_relations): Likewise.
5090 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5091 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5092 * resource.c (find_dead_or_set_registers): Likewise.
5093 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5094
5095 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5096
5097 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5098 (COMPL_HARD_REG_SET): Delete.
5099 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5100 of COMPL_HARD_REG_SET.
5101 (try_rename_operands): Likewise.
5102 * config/sh/sh.c (push_regs): Likewise.
5103 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5104 * lra-constraints.c (contains_reg_p): Likewise.
5105 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5106
5107 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5108
5109 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5110 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5111 of COPY_HARD_REG_SET.
5112 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5113 (epiphany_conditional_register_usage): Likewise.
5114 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5115 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5116 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5117 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5118 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5119 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5120 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5121 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5122 * config/sh/sh.c (output_stack_adjust): Likewise.
5123 * final.c (collect_fn_hard_reg_usage): Likewise.
5124 (get_call_reg_set_usage): Likewise.
5125 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5126 (ira_flattening): Likewise.
5127 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5128 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5129 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5130 (ira_reassign_pseudos): Likewise.
5131 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5132 (ira_build_conflicts): Likewise.
5133 * ira-costs.c (restrict_cost_classes): Likewise.
5134 (setup_regno_cost_classes_by_aclass): Likewise.
5135 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5136 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5137 (setup_stack_reg_pressure_class, setup_pressure_classes)
5138 (setup_allocno_and_important_classes, setup_class_translate_array)
5139 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5140 (ira_setup_eliminable_regset): Likewise.
5141 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5142 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5143 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5144 (process_alt_operands, inherit_in_ebb): Likewise.
5145 * lra-lives.c (process_bb_lives): Likewise.
5146 * lra-spills.c (assign_spill_hard_regs): Likewise.
5147 * lra.c (lra): Likewise.
5148 * mode-switching.c (new_seginfo): Likewise.
5149 * postreload.c (reload_combine): Likewise.
5150 * reg-stack.c (straighten_stack): Likewise.
5151 * reginfo.c (save_register_info, restore_register_info): Likewise.
5152 (init_reg_sets_1, record_subregs_of_mode): Likewise
5153 * regrename.c (create_new_chain, rename_chains): Likewise.
5154 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5155 (find_reload_regs): Likewise.
5156 * resource.c (find_dead_or_set_registers): Likewise.
5157 (mark_target_live_regs): Likewise.
5158 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5159
5160 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5161
5162 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5163 (note_pattern_stores): Declare.
5164 (note_stores): Take an rtx_insn *.
5165 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5166 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5167 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5168 (note_stores): Take an rtx_insn * as argument and process
5169 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5170 (note_pattern_stores): ...this.
5171 (find_first_parameter_load): Pass the insn rather than
5172 its pattern to note_stores.
5173 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5174 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5175 (insert_one_insn): Likewise.
5176 * combine.c (combine_instructions): Likewise.
5177 (likely_spilled_retval_p): Likewise.
5178 (try_combine): Use note_pattern_stores instead of note_stores.
5179 (record_dead_and_set_regs): Pass the insn rather than its pattern
5180 to note_stores.
5181 (reg_dead_at_p): Likewise.
5182 * config/bfin/bfin.c (workaround_speculation): Likewise.
5183 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5184 rather than an rtx.
5185 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5186 instead of note_stores.
5187 (frv_optimize_membar_local): Pass the insn rather than its pattern
5188 to note_stores.
5189 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5190 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5191 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5192 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5193 (mips_reorg_process_insns): Likewise.
5194 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5195 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5196 rather than rtxes.
5197 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5198 its pattern to note_stores.
5199 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5200 of note_stores.
5201 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5202 the insn to note_stores.
5203 (prescan_insns_for_dce): Update call accordingly.
5204 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5205 to note_stores.
5206 * df-problems.c (can_move_insns_across): Likewise.
5207 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5208 * function.c (assign_parm_setup_reg): Likewise.
5209 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5210 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5211 (single_set_gcse): Likewise.
5212 * ira.c (validate_equiv_mem): Likewise.
5213 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5214 for no_equiv.
5215 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5216 pattern to note_stores.
5217 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5218 * loop-iv.c (simplify_using_initial_values): Likewise.
5219 * mode-switching.c (optimize_mode_switching): Likewise.
5220 * optabs.c (emit_libcall_block_1): Likewise.
5221 (expand_atomic_compare_and_swap): Likewise.
5222 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5223 (record_opr_changes): Likewise. Remove explicit handling of
5224 CALL_INSN_FUNCTION_USAGE.
5225 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5226 * regcprop.c (kill_clobbered_values): Likewise.
5227 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5228 to note_stores.
5229 * regrename.c (build_def_use): Likewise.
5230 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5231 for mark_not_eliminable.
5232 (reload_as_needed): Pass the insn rather than its pattern
5233 to note_stores.
5234 (emit_output_reload_insns): Likewise.
5235 * resource.c (mark_target_live_regs): Likewise.
5236 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5237 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5238 instead of note_stores.
5239 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5240 its pattern to note_stores.
5241 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5242 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5243
5244 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5245
5246 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5247 than a #define. Use a structure rather than an array as the
5248 fallback definition. Remove special cases for low array sizes.
5249 (const_hard_reg_set): New typedef.
5250 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5251 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5252 (hard_reg_set_empty_p): Likewise.
5253 (SET_HARD_REG_BIT): Use a function rather than a macro to
5254 handle the case in which HARD_REG_SET is a structure.
5255 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5256 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5257 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5258 (IOR_COMPL_HARD_REG_SET): Likewise.
5259 (hard_reg_set_iterator::pset): Constify the pointer target.
5260 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5261 of a "const HARD_REG_SET". Update the handling of non-integer
5262 HARD_REG_SETs.
5263 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5264 * reload.h: Likewise.
5265 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5266 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5267 of a "const HARD_REG_SET".
5268 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5269 (range_in_hard_reg_set_p): Likewise.
5270 * ira-costs.c (restrict_cost_classes): Likewise.
5271 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5272 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5273 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5274 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5275 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5276 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5277 take an unsigned int and open-code the HARD_REG_SET operations.
5278
5279 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5280
5281 * Makefile.in (OBJS): Remove bt-load.o.
5282 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5283 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5284 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5285 document that the option no longer does anything.
5286 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5287 * target.def (branch_target_register_class): Delete.
5288 (branch_target_register_callee_saved): Likewise.
5289 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5290 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5291 * doc/tm.texi: Regenerate.
5292 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5293 (make_pass_branch_target_load_optimize2): Likewise.
5294 * passes.def (pass_branch_target_load_optimize1): Likewise.
5295 (pass_branch_target_load_optimize2): Likewise.
5296 * targhooks.h (default_branch_target_register_class): Likewise.
5297 * targhooks.c (default_branch_target_register_class): Likewise.
5298 * opt-suggestions.c (test_completion_valid_options): Remove
5299 -fbtr-bb-exclusive from the list of test options.
5300 * bt-load.c: Remove.
5301
5302 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5303
5304 * match.pd: Add flag_unsafe_math_optimizations check
5305 before deciding on the widest type in a binary math operation.
5306
5307 2019-09-09 Martin Liska <mliska@suse.cz>
5308
5309 * config/i386/i386.opt: Update comment of removed
5310 options that are preserved only for backward
5311 compatibility.
5312
5313 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5314
5315 PR target/87853
5316 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5317 instead of __v16qs.
5318
5319 PR target/91704
5320 * config/i386/avxintrin.h (__v32qs): New typedef.
5321 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5322 instead of __v32qi.
5323
5324 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5325
5326 * doc/invoke.texi (Option Summary): Cover eBPF.
5327 (eBPF Options): New section.
5328 * doc/extend.texi (BPF Built-in Functions): Likewise.
5329 (BPF Kernel Helpers): Likewise.
5330
5331 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5332
5333 * config.gcc: Support for bpf-*-* targets.
5334 * common/config/bpf/bpf-common.c: New file.
5335 * config/bpf/t-bpf: Likewise.
5336 * config/bpf/predicates.md: Likewise.
5337 * config/bpf/constraints.md: Likewise.
5338 * config/bpf/bpf.opt: Likewise.
5339 * config/bpf/bpf.md: Likewise.
5340 * config/bpf/bpf.h: Likewise.
5341 * config/bpf/bpf.c: Likewise.
5342 * config/bpf/bpf-protos.h: Likewise.
5343 * config/bpf/bpf-opts.h: Likewise.
5344 * config/bpf/bpf-helpers.h: Likewise.
5345 * config/bpf/bpf-helpers.def: Likewise.
5346
5347 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5348
5349 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5350 indirect_calls.
5351
5352 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5353
5354 * opt-functions.awk (integer_range_info): Make sure values are in
5355 numeric context before operating with them.
5356
5357 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5358
5359 * genemit.c (gen_split): Print the filename and line number where the
5360 splitter (or peephole2) was defined, to the dump file.
5361
5362 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5363
5364 PR tree-optimization/91665
5365 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5366 incompatible with the type of PHI result.
5367
5368 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5369
5370 PR target/91684
5371 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5372 gen_unaligned_storedi for 4-byte aligned addresses.
5373
5374 2019-09-06 Jim Wilson <jimw@sifive.com>
5375
5376 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5377 change.
5378
5379 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5380
5381 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5382
5383 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5384
5385 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5386 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5387
5388 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5389
5390 PR target/91654
5391 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5392 cost of SSE->integer and integer->SSE moves from 2 to 6.
5393 (core_cost): Ditto.
5394
5395 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5396
5397 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5398 before testing TYPE_TRANSPARENT_AGGR.
5399 * calls.c (initialize_argument_information, load_register_parameters):
5400 Likewise.
5401
5402 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5403
5404 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5405 high regs.
5406 (cmp_ior): Likewise.
5407
5408 2019-09-06 Martin Liska <mliska@suse.cz>
5409
5410 * doc/match-and-simplify.texi: Separate tuples with ;.
5411
5412 2019-09-06 Martin Liska <mliska@suse.cz>
5413
5414 PR c++/91125
5415 * Makefile.in: Remove tlink.o.
5416 * collect2.c (do_link): New function isolated
5417 from do_tlink.
5418 (main): Use.
5419 * collect2.h (do_tlink): Remove declaration of do_tlink.
5420 * doc/extend.texi: Remove documentation of -frepo.
5421 * doc/invoke.texi: Likewise.
5422 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5423 * tlink.c: Remove.
5424
5425 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5426 Jim Wilson <jimw@sifive.com>
5427
5428 PR target/91635
5429 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5430 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5431 paradoxical_subreg_p (operands[0]).
5432 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5433 use as intermediate value.
5434
5435 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5436
5437 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5438 (sync_compare_and_swap<mode>_insn): Likewise.
5439
5440 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5441
5442 PR middle-end/91615
5443 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5444 without movmisalign optab.
5445
5446 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5447
5448 PR middle-end/91001
5449 PR middle-end/91105
5450 PR middle-end/91106
5451 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5452 types, use type of their first field instead of type of
5453 args[i].tree_value.
5454
5455 2019-09-05 Richard Biener <rguenther@suse.de>
5456
5457 PR rtl-optimization/91656
5458 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5459 of early out.
5460
5461 2019-09-05 Richard Biener <rguenther@suse.de>
5462
5463 PR middle-end/90501
5464 * tree-inline.c (declare_return_variable): Mark the return
5465 slot as addressable after building an address of it.
5466
5467 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5468
5469 * doc/install.texi: Update and clarify requirements to build GNAT.
5470
5471 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5472
5473 PR middle-end/91577
5474 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5475 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5476 call to be in memory.
5477 (pass_expand::execute): Call discover_nonconstant_array_refs before
5478 setting currently_expanding_to_rtl.
5479
5480 2019-09-04 Caroline Tice <cmtice@google.com>
5481
5482 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5483 specified together.
5484
5485 2019-09-04 Marek Polacek <polacek@redhat.com>
5486
5487 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5488
5489 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5490
5491 PR target/32413
5492 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5493 for QI and HImode moves between SSE and general registers.
5494
5495 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5496
5497 PR c/78736
5498 * doc/invoke.texi: Document -Wenum-conversion.
5499
5500 2019-09-04 Richard Biener <rguenther@suse.de>
5501
5502 PR rtl-optimization/36262
5503 * postreload-gcse.c: Include intl.h and gcse.h.
5504 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5505 to avoid linear list walk.
5506 (record_last_mem_set_info): Gate off if not computing transparentness.
5507 (get_bb_avail_insn): If transparentness isn't computed give up
5508 early.
5509 (gcse_after_reload_main): Skip compute_transp and extended PRE
5510 if gcse_or_cprop_is_too_expensive says so.
5511
5512 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5513
5514 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5515 noinit section.
5516 (msp430_select_section): Handle decls with the "noinit" attribute with
5517 default_elf_select_section.
5518 Handle SECCAT_RODATA_MERGE_* section types with
5519 default_elf_select_section.
5520 Add comments about handling of unsupported section types.
5521 (msp430_section_type_flags): Remove handling of the noinit section.
5522
5523 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5524
5525 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5526 conflicting msp430-specific attributes.
5527 (msp430_section_attr): Likewise.
5528 Add warnings about conflicts with generic "noinit" and "section"
5529 attributes.
5530 Fix grammar in -mlarge error message.
5531 (msp430_data_attr): Rename to msp430_persist_attr.
5532 Add warnings about conflicts with generic "noinit" and "section"
5533 attributes.
5534 Add warning for when variable is not initialized.
5535 Chain conditionals which prevent the attribute being added.
5536 (ATTR_EXCL): New helper.
5537 (attr_reent_exclusions): New exclusion table.
5538 (attr_naked_exclusions): Likewise.
5539 (attr_crit_exclusions): Likewise.
5540 (attr_lower_exclusions): Likewise.
5541 (attr_upper_exclusions): Likewise.
5542 (attr_either_exclusions): Likewise.
5543 (attr_persist_exclusions): Likewise.
5544 (msp430_attribute_table): Update with exclusion rules.
5545 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5546 has a section.
5547
5548 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5549
5550 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5551 (msp430_handle_generic_attribute): New function.
5552 * doc/tm.texi: Regenerate.
5553 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5554 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5555 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5556 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5557
5558 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5559
5560 PR tree-optimization/91504
5561 * match.pd: Add ((~a & b) ^a) --> (a | b).
5562
5563 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5564
5565 PR target/91604
5566 * config/i386/i386-expand.c (split_double_mode): If there is more than
5567 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5568 already split matching MEM operand instead of calling adjust_address
5569 again.
5570
5571 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5572
5573 * config.gcc: Obsolete spu target. Remove references to spu.
5574 * configure.ac: Remove references to spu.
5575 * configure: Regenerate.
5576 * config/spu/: Remove directory.
5577 * common/config/spu/: Remove directory.
5578
5579 * doc/extend.texi: Remove references to spu.
5580 * doc/invoke.texi: Likewise.
5581 * doc/md.texi: Likewise.
5582 * doc/sourcebuild.texi: Likewise.
5583
5584 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5585
5586 PR middle-end/91603
5587 PR middle-end/91612
5588 PR middle-end/91613
5589 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5590 and SSA_NAME referring to CONSTANT_P correctly.
5591
5592 2019-09-03 Richard Biener <rguenther@suse.de>
5593
5594 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5595 (vn_nary_op_insert): Likewise.
5596 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5597 (vn_nary_op_lookup): Likewise.
5598 (vn_nary_op_insert): Likewise.
5599
5600 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5601
5602 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5603 (*op0, 1) instead of XEXP (*op1, 0).
5604
5605 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5606
5607 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5608 (aarch64_fjcvtzs): New define_insn.
5609 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5610 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5611 Add AARCH64_JSCVT.
5612 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5613 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5614 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5615 __ARM_FEATURE_JCVT where appropriate.
5616 * config/aarch64/arm_acle.h (__jcvt): Define.
5617
5618 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5619
5620 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5621 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5622 (aarch64_<frintnzs_op><mode>): New define_insn.
5623 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5624 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5625 __ARM_FEATURE_FRINT when appropriate.
5626 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5627 frint32x, frint64z, frint64x.
5628 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5629 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5630 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5631 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5632 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5633 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5634 * config/aarch64/iterators.md (VSFDF): Define.
5635 (FRINTNZX): Likewise.
5636 (frintnzs_op): Likewise.
5637
5638 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5639
5640 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5641 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5642 Cortex-A34.
5643 * config/aarch64/aarch64-tune.md: Regenerated.
5644 * doc/invoke.texi: Document the new processors.
5645
5646 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5647
5648 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5649 string.
5650 (ssbs): Likewise.
5651 (sve2): Likewise.
5652 (sve2-sm4): Likewise.
5653 (sveaes): Likewise.
5654 (svesha3): Likewise.
5655 (svebitperm): Likewise.
5656
5657 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5658 Richard Biener <rguenther@suse.de>
5659
5660 PR tree-optimization/91597
5661 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5662 BIT_AND_EXPR optimization for pointers, even if both operand
5663 ranges don't include NULL, the result can be NULL.
5664
5665 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5666
5667 PR middle-end/91605
5668 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5669 (non_mem_decl_p): ...this.
5670 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5671 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5672 unconditionally as before.
5673
5674 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5675
5676 PR target/91323
5677 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5678 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5679 * tree.def (LTGT_EXPR): Likewise.
5680 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5681
5682 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5683
5684 PR go/91617
5685 * fold-const.c (range_check_type): For enumeral and boolean
5686 type, pass 1 to type_for_size langhook instead of
5687 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5688 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5689 (build_range_check): Don't call unsigned_type_for for pointer types.
5690 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5691 range_check_type result.
5692
5693 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5694
5695 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5696 (replace_ref): Do not replace a chain of only two candidates which are
5697 valid memory references.
5698
5699 2019-09-02 Martin Liska <mliska@suse.cz>
5700
5701 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5702 Bail out when we'll end up with the same number of clusters as
5703 at the beginning.
5704 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5705 (jump_table_cluster::can_be_handled): Remove the guard
5706 as it's already handled in ::is_enabled. Allocate output
5707 after early bail out.
5708
5709 2019-09-02 Martin Liska <mliska@suse.cz>
5710
5711 PR gcov-profile/91601
5712 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5713 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5714 also negative edges.
5715 (circuit): Handle also negative edges as they can happen
5716 in some situations.
5717
5718 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5719
5720 PR target/91472
5721 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5722 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5723 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5724
5725 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5726
5727 PR middle-end/91623
5728 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5729 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5730 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5731 zero vector.
5732
5733 PR lto/91572
5734 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5735 GIMPLE_ASM TREE_LIST operands.
5736
5737 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5738
5739 * doc/generic.texi (Unary and Binary Expressions): Mark up
5740 an instance of TYPE_MIN.
5741
5742 2019-08-31 Stafford Horne <shorne@gmail.com>
5743
5744 * config/or1k/constraints.md (t): New constraint.
5745 * config/or1k/or1k.h (GOT_REGS): New register class.
5746 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5747
5748 2019-08-30 Jim Wilson <jimw@sifive.com>
5749
5750 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5751 and -fpic and -mplt then disable -msave-restore and warn.
5752
5753 2019-08-30 Martin Sebor <msebor@redhat.com>
5754
5755 PR middle-end/91599
5756 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5757 the statement doesn't have one.
5758 * gimple-pretty-print.c (percent_G_format): Same.
5759
5760 PR middle-end/91584
5761 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5762 before using them to validate MEM_REF offset.
5763
5764 2019-08-30 Marek Polacek <polacek@redhat.com>
5765
5766 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5767
5768 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5769
5770 * config/arm/arm.md (unaligned_loaddi,
5771 unaligned_storedi): New unspec insn patterns.
5772 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5773 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5774 and unaligned_storedi for 4-byte aligned memory.
5775 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5776 4-byte aligned memory.
5777
5778 2019-08-30 Martin Jambor <mjambor@suse.cz>
5779
5780 tree-optimization/91579
5781 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5782 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5783 appropriate.
5784 (arg_needs_copy_p): Removed.
5785 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5786 arg_needs_copy_p.
5787 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5788
5789 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5790
5791 * config/i386/i386-features.c
5792 (general_scalar_chain::compute_convert_gain):
5793 Correct cost for double-word shifts.
5794 (general_scalar_to_vector_candidate_p): Reject count operands
5795 greater or equal to mode bitsize.
5796
5797 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5798
5799 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5800 for moves between SSE and non-general registers and between
5801 mask and non-general registers.
5802 (ix86_register_move_cost): Remove stalled comment.
5803
5804 2019-08-29 Richard Biener <rguenther@suse.de>
5805
5806 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5807 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5808
5809 2019-08-29 Richard Biener <rguenther@suse.de>
5810
5811 PR bootstrap/91580
5812 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5813 Do not emit scalar copies for debug-insns, instead replace
5814 their uses with the reg copy used in the chain or reset them
5815 if there is a reaching definition outside of the chain as well.
5816
5817 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5818
5819 PR target/91560
5820 * config/i386/i386-expand.c (expand_vec_perm_movs,
5821 expand_vec_perm_blend, expand_vec_perm_vpermil,
5822 expand_vec_perm_pshufb, expand_vec_perm_1,
5823 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5824 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5825 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5826 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5827 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5828 comments - replace ix86_expand_vec_perm_builtin_1 with
5829 ix86_expand_vec_perm_const_1.
5830 (expand_vec_perm2_vperm2f128_vblend): New function.
5831 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5832 expand_vec_perm2_vperm2f128_vblend as last resort.
5833 (canonicalize_perm): Formatting fix.
5834
5835 PR tree-optimization/91351
5836 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5837 unsigned_type_for.
5838 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5839 range_check_type returns NULL.
5840 * tree-switch-conversion.c (switch_conversion::build_one_array):
5841 Use range_check_type instead of unsigned_type_for, don't perform
5842 linear opt if it returns NULL.
5843 (bit_test_cluster::find_bit_tests): Formatting fix.
5844 (bit_test_cluster::emit): Use range_check_type instead of
5845 unsigned_type_for.
5846 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5847 returns NULL.
5848
5849 2019-08-29 Richard Biener <rguenther@suse.de>
5850
5851 PR tree-optimization/91568
5852 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5853 (vect_update_max_nunits): Add overload for poly_uint64.
5854 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5855 (vect_build_slp_tree): Record max_nunits into the subtree
5856 and merge it upwards.
5857 (vect_print_slp_tree): Print max_nunits.
5858
5859 2019-08-28 Marek Polacek <polacek@redhat.com>
5860
5861 Implement P1152R4: Deprecating some uses of volatile.
5862 PR c++/91361
5863 * doc/invoke.texi: Document -Wvolatile.
5864
5865 2019-08-28 Marek Polacek <polacek@redhat.com>
5866
5867 PR c++/91360 - Implement C++20 P1143R2: constinit.
5868 * doc/invoke.texi: Document -Wc++20-compat.
5869
5870 2019-08-28 Martin Sebor <msebor@redhat.com>
5871
5872 PR tree-optimization/91457
5873 * builtins.c (component_size): New function.
5874 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5875 * builtins.h (compute_objsize): Add argument.
5876 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5877 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5878 (vrp_prop::check_mem_ref): Same.
5879 (vrp_prop::search_for_addr_array): Set no-warning bit.
5880 (check_array_bounds): Same.
5881
5882 2019-08-28 Martin Sebor <msebor@redhat.com>
5883
5884 PR driver/80545
5885 * opts-common.c (option_enabled): Correct checking for language
5886 options.
5887
5888 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5889
5890 * config/i386/i386.c (ix86_register_move_cost): Do not
5891 limit the cost of moves to/from XMM register to minimum 8.
5892
5893 2019-08-28 Martin Jambor <mjambor@suse.cz>
5894
5895 PR ipa/91468
5896 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5897 checking assert a normal assert to test it really is redundant.
5898 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5899 redundant test.
5900 (update_jump_functions_after_inlining): Removed combining unary
5901 arithmetic operations with an ancestor jump function.
5902 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5903 instead of t.
5904
5905 2019-08-28 Richard Biener <rguenther@suse.de>
5906
5907 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5908 add the MD problem.
5909
5910 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5911 Richard Biener <rguenther@suse.de>
5912
5913 * expr.c (expand_assignment): Handle misaligned DECLs.
5914 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5915 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5916 too.
5917 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5918 * varasm.c (build_constant_desc): Align constants of misaligned types.
5919 * config/arm/predicates.md (aligned_operand): New predicate.
5920 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5921 aligned_operand to check restrictions on memory addresses.
5922 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5923 * config/arm/vec-common.md (mov<VALL>): Likewise.
5924
5925 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5926
5927 PR libgomp/91530
5928 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5929 V_128 iterator instead of VI_128.
5930
5931 2019-08-28 Martin Liska <mliska@suse.cz>
5932
5933 PR tree-optimization/90970
5934 * builtins.c (check_access): Remove assignment to maxread
5935 as it hasn't been used since when it was introduced in r255755.
5936
5937 2019-08-27 Martin Sebor <msebor@redhat.com>
5938
5939 PR tree-optimization/91567
5940 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5941 of unknown strings.
5942 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5943 to PTRDIFF_MAX - 2.
5944
5945 2019-08-27 Jeff Law <law@redhat.com>
5946
5947 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5948 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5949
5950 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5951
5952 PR target/91528
5953 * config/i386/i386-features.c (convert_scalars_to_vector):
5954 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5955 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5956 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5957 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5958
5959 2019-08-27 Richard Biener <rguenther@suse.de>
5960
5961 * config/i386/i386-features.h
5962 (general_scalar_chain::~general_scalar_chain): Add.
5963 (general_scalar_chain::insns_conv): New bitmap.
5964 (general_scalar_chain::n_sse_to_integer): New.
5965 (general_scalar_chain::n_integer_to_sse): Likewise.
5966 (general_scalar_chain::make_vector_copies): Adjust signature.
5967 * config/i386/i386-features.c
5968 (general_scalar_chain::general_scalar_chain): Outline,
5969 initialize new members.
5970 (general_scalar_chain::~general_scalar_chain): New.
5971 (general_scalar_chain::mark_dual_mode_def): Record insns
5972 we need to insert conversions at and count them.
5973 (general_scalar_chain::compute_convert_gain): Account
5974 for conversion instructions at chain boundary.
5975 (general_scalar_chain::make_vector_copies): Generate a single
5976 copy for a def by a specific insn.
5977 (general_scalar_chain::convert_registers): First populate
5978 defs_map, then make copies at out-of chain insns.
5979
5980 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5981
5982 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5983 comment.
5984 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5985
5986 2019-08-27 Martin Liska <mliska@suse.cz>
5987
5988 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5989 loop.
5990 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5991 Enclose in anonymous namespace.
5992 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5993 hard_register initialization in braces.
5994 * tree-vrp.h (value_range_base::supports_type_p): Return false
5995 for function with boolean return type.
5996
5997 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5998
5999 * config/i386/i386.c (emit_i387_cw_initialization)
6000 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6001
6002 2019-08-26 Martin Sebor <msebor@redhat.com>
6003
6004 PR c++/83431
6005 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6006 (sprintf_dom_walker): Remove class.
6007 (get_int_range): Make argument const.
6008 (directive::fmtfunc, directive::set_precision): Same.
6009 (format_none): Same.
6010 (build_intmax_type_nodes): Same.
6011 (adjust_range_for_overflow): Same.
6012 (format_floating): Same.
6013 (format_character): Same.
6014 (format_string): Same.
6015 (format_plain): Same.
6016 (get_int_range): Cast away constness.
6017 (format_integer): Same.
6018 (get_string_length): Call get_range_strlen_dynamic. Handle
6019 null lendata.maxbound.
6020 (should_warn_p): Adjust argument scope qualifier.
6021 (maybe_warn): Same.
6022 (format_directive): Same.
6023 (parse_directive): Same.
6024 (is_call_safe): Same.
6025 (try_substitute_return_value): Same.
6026 (sprintf_dom_walker::handle_printf_call): Rename...
6027 (handle_printf_call): ...to this. Initialize target to host charmap
6028 here instead of in pass_sprintf_length::execute.
6029 (struct call_info): Make global.
6030 (sprintf_dom_walker::compute_format_length): Make global.
6031 (sprintf_dom_walker::handle_gimple_call): Same.
6032 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6033 * print-rtl.c (print_pattern): Reduce the number of spaces to
6034 avoid -Wformat-truncation.
6035 * tree-pass.h (make_pass_warn_printf): New function.
6036 * tree-ssa-strlen.c (strlen_optimize): New variable.
6037 (get_string_length): Add comments.
6038 (get_range_strlen_dynamic): New function.
6039 (check_and_optimize_call): New function.
6040 (handle_integral_assign): New function.
6041 (strlen_check_and_optimize_stmt): Factor code out into
6042 strlen_check_and_optimize_call and handle_integral_assign.
6043 (strlen_dom_walker::evrp): New member.
6044 (strlen_dom_walker::before_dom_children): Use evrp member.
6045 (strlen_dom_walker::after_dom_children): Use evrp member.
6046 (printf_strlen_execute): New function.
6047 (pass_strlen::gate): Update to handle printf calls.
6048 (dump_strlen_info): New function.
6049 (pass_data_warn_printf): New variable.
6050 (pass_warn_printf): New class.
6051 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6052 (handle_printf_call): Same.
6053 * tree-vrp.c (value_range_base::type): Adjust assertion.
6054 * vr-values.c (vr_values::update_value_range): Use type of the first
6055 argument rather than the second.
6056
6057 2019-08-26 Richard Biener <rguenther@suse.de>
6058
6059 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6060 Remove.
6061 (convert_scalars_to_vector): Do not call it.
6062
6063 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6064 Uros Bizjak <ubizjak@gmail.com>
6065
6066 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6067 CASE_MATHFN_FLOATN for roundeven.
6068 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6069 I387_ROUNDEVEN.
6070 (ix86_mode_needed): Likewise.
6071 (ix86_mode_after): Likewise.
6072 (ix86_mode_entry): Likewise.
6073 (ix86_mode_exit): Likewise.
6074 (ix86_emit_mode_set): Likewise.
6075 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6076 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6077 (ix86_entity): Add I387_ROUNDEVEN.
6078 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6079 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6080 (define_int_iterator): Likewise.
6081 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6082 (define_constant): Define ROUND_ROUNDEVEN mode.
6083 (define_attr): Add roundeven mode for i387_cw.
6084 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6085 * internal-fn.def (ROUNDEVEN): New builtin function.
6086 * optabs.def (roundeven_optab): New optab.
6087
6088 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6089
6090 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6091 for ROUNDEVEN.
6092 * builtins.def: Added function definitions for roundeven function
6093 variants.
6094 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6095 function call. Adjust condition for floor, ceil, trunc and round.
6096 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6097 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6098 (integer_valued_real_call_p): Added case for roundeven function.
6099 * real.c (is_even): New function. Returns true if real number is even,
6100 otherwise returns false.
6101 (is_halfway_below): New function. Returns true if real number is
6102 halfway between two integers, else return false.
6103 (real_roundeven): New function. Round real number to nearest integer,
6104 rounding halfway cases towards even.
6105 * real.h (real_value): Added descriptive comments. Added function
6106 declaration for roundeven function.
6107 * doc/extend.texi (Other Builtins): List roundeven variants among
6108 functions which can be handled as builtins.
6109
6110 2019-08-26 Richard Biener <rguenther@suse.de>
6111
6112 PR target/91522
6113 PR target/91527
6114 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6115 New member.
6116 (general_scalar_chain::replace_with_subreg): Remove.
6117 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6118 (general_scalar_chain::convert_reg): Adjust signature.
6119 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6120 iterate over all defs of a reg.
6121 (general_scalar_chain::replace_with_subreg): Remove.
6122 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6123 (general_scalar_chain::make_vector_copies): Populate defs_map,
6124 place copy only after defs that are used as vectors in the chain.
6125 (general_scalar_chain::convert_reg): Emit a copy for a specific
6126 def in a specific instruction.
6127 (general_scalar_chain::convert_op): All reg uses are converted here.
6128 (general_scalar_chain::convert_insn): Emit copies for scalar
6129 uses of defs here. Replace uses with the copies we created.
6130 Replace and convert the def. Adjust REG_DEAD notes, remove
6131 REG_EQUIV/EQUAL notes.
6132 (general_scalar_chain::convert_registers): Only handle copies
6133 into the chain here.
6134
6135 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6136
6137 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6138
6139 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6140
6141 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6142 Add nop_convert case.
6143 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6144 Fold all statements if requested.
6145 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6146 Allow to fold all statements.
6147 * tree-vrp.c (class vrp_folder):
6148 Let substitute_and_fold_engine fold all statements.
6149
6150 2019-08-26 Richard Biener <rguenther@suse.de>
6151
6152 PR tree-optimization/91526
6153 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6154 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6155 TODO_update_address_taken.
6156
6157 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6158
6159 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6160 __STDC_HOSTED__.
6161
6162 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6163
6164 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6165 machine mode for unspec_volatile operand.
6166
6167 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6168
6169 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6170 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6171 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6172 (prefer_neon_for_64bits): Remove.
6173 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6174 (tune_params): Remove PREF_NEON_64_FALSE uses.
6175 (arm_option_override): Remove prefer_neon selection code.
6176 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6177 * gcc/config/arm/arm-protos.h (tune_params): Remove
6178 prefer_neon_for_64bits.
6179 (prefer_neon_for_64bits): Remove.
6180
6181 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6182
6183 PR pch/61250
6184 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6185 and issue any diagnostics needed before collecting the pre-PCH
6186 state.
6187
6188 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6189
6190 PR middle-end/91283
6191 * common.opt (fexcess-precision=): Add Optimization flag. Use
6192 flag_excess_precision variable instead of
6193 flag_excess_precision_cmdline.
6194 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6195 member.
6196 (flag_excess_precision): Don't define.
6197 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6198 flag_excess_precision_cmdline. Remove comment.
6199 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6200 and x_flag_excess_precision instead of
6201 frontend_set_flag_excess_precision_cmdline and
6202 x_flag_excess_precision_cmdline.
6203 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6204 x_flag_excess_precision_cmdline.
6205 * toplev.c (init_excess_precision): Remove.
6206 (lang_dependent_init_target): Don't call it.
6207
6208 2019-08-23 Martin Liska <mliska@suse.cz>
6209
6210 * lto-wrapper.c (run_gcc): When setting jobserver
6211 set also parallel to 1. This was done so before r273908.
6212
6213 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6214
6215 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6216 (cortex-a76ae): Likewise.
6217 (cortex-a77): Likewise
6218 * config/arm/arm-tables.opt: Regenerate.
6219 * config/arm/arm-tune.md: Likewise.
6220 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6221 cortex-a77 CPU options.
6222
6223 2019-08-23 Martin Liska <mliska@suse.cz>
6224
6225 * profile.c (instrument_values): Do not set
6226 0 as last argument.
6227 * tree-profile.c (gimple_gen_interval_profiler): Remove
6228 last argument.
6229 (gimple_gen_pow2_profiler): Likewise.
6230 (gimple_gen_topn_values_profiler): Likewise.
6231 (gimple_gen_ic_profiler): Likewise.
6232 (gimple_gen_time_profiler): Likewise.
6233 (gimple_gen_average_profiler): Likewise.
6234 (gimple_gen_ior_profiler): Likewise.
6235 * value-prof.c (dump_histogram_value): Use default
6236 in switch statement instead of HIST_TYPE_MAX.
6237 (stream_in_histogram_value): Likewise.
6238 (gimple_duplicate_stmt_histograms): Do not
6239 use NULL for implicitly set arguments.
6240 (gimple_divmod_values_to_profile): Do not use
6241 reserve+quick_push.
6242 (gimple_indirect_call_to_profile): Likewise.
6243 (gimple_find_values_to_profile): Use implicit
6244 function call arguments.
6245 * value-prof.h (gimple_alloc_histogram_value):
6246 Set default values.
6247 (gimple_gen_interval_profiler): Remove last argument.
6248 (gimple_gen_pow2_profiler): Likewise.
6249 (gimple_gen_topn_values_profiler): Likewise.
6250 (gimple_gen_ic_profiler): Likewise.
6251 (gimple_gen_time_profiler): Likewise.
6252 (gimple_gen_average_profiler): Likewise.
6253 (gimple_gen_ior_profiler): Likewise.
6254
6255 2019-08-22 Martin Sebor <msebor@redhat.com>
6256
6257 PR middle-end/91490
6258 * builtins.c (c_strlen): Rename argument and introduce new local.
6259 Set no-warning bit on original argument.
6260 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6261 Fold empty and zero constructors into empty strings.
6262 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6263 for missing initializers.
6264 * tree.c (build_string_literal): Handle optional argument.
6265 * tree.h (build_string_literal): Add defaulted argument.
6266 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6267 no-warning bit on original expression.
6268
6269 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6270
6271 PR target/91481
6272 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6273 and UNSPEC_DARN_RAW.
6274 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6275 UNSPECV_DARN_RAW.
6276 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6277 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6278 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6279
6280 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6281
6282 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6283 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6284 * config/rs6000/rs6000.md (unspec): ... here.
6285 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6286 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6287 cmpeqb, *cmpeqb_internal): Delete, move to...
6288 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6289 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6290 cmpeqb, *cmpeqb_internal): ... here.
6291
6292 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6293
6294 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6295 intrinsics if __ARM_FP.
6296 Use __ARM_FEATURE_CRC32 ifdef guard.
6297
6298 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6299
6300 * config/arm/arm.md (neon_for_64bits): Remove.
6301 (avoid_neon_for_64bits): Remove.
6302 (arm_adddi3): Always split early.
6303 (arm_subdi3): Always split early.
6304 (negdi2): Remove Neon expansion.
6305 (split zero_extend): Split before reload.
6306 (split sign_extend): Split before reload.
6307
6308 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6309
6310 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6311 (qhs_extenddi_cstr): Likewise.
6312 * config/arm/arm.md (ashldi3): Always expand early.
6313 (ashlsi3): Likewise.
6314 (ashrsi3): Likewise.
6315 (zero_extend<mode>di2): Remove Neon variants.
6316 (extend<mode>di2): Likewise.
6317 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6318 (signed_shift_di3_neon): Likewise.
6319 (unsigned_shift_di3_neon): Likewise.
6320 (ashrdi3_neon_imm_noclobber): Likewise.
6321 (lshrdi3_neon_imm_noclobber): Likewise.
6322 (<shift>di3_neon): Likewise.
6323 (split extend): Remove DI extend split patterns.
6324
6325 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6326
6327 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6328 (split not): Add DImode not splitter.
6329 (anddi3): Remove pattern.
6330 (anddi3_insn): Likewise.
6331 (anddi_zesidi_di): Likewise.
6332 (anddi_sesdi_di): Likewise.
6333 (anddi_notdi_di): Likewise.
6334 (anddi_notzesidi_di): Likewise.
6335 (anddi_notsesidi_di): Likewise.
6336 (iordi3): Likewise.
6337 (iordi3_insn): Likewise.
6338 (iordi_zesidi_di): Likewise.
6339 (iordi_sesidi_di): Likewise.
6340 (xordi3): Likewise.
6341 (xordi3_insn): Likewise.
6342 (xordi_sesidi_di): Likewise.
6343 (xordi_zesidi_di): Likewise.
6344 (one_cmpldi2): Likewise.
6345 (one_cmpldi2_insn): Likewise.
6346 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6347 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6348 alternative.
6349 (iwmmxt_xordi3): Likewise.
6350 (iwmmxt_anddi3): Likewise.
6351 * config/arm/neon.md (orndi3_neon): Remove pattern.
6352 (anddi_notdi_di): Likewise.
6353 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6354 (arm_iordi_operand_neon): Likewise.
6355 (arm_xordi_operand_neon): Likewise.
6356 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6357 (iordi_notzesidi_di): Likewise.
6358 (iordi_notdi_zesidi): Likewise.
6359 (iordi_notsesidi_di): Likewise.
6360
6361 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6362
6363 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6364 insn.
6365 (iorsi3_compare0_scratch): Likewise.
6366
6367 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6368
6369 * config/aarch64/aarch64-simd-builtins.def:
6370 (ld1x4): New.
6371 (st1x4): Likewise.
6372 * config/aarch64/aarch64-simd.md:
6373 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6374 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6375 (aarch64_ld1_x4_<mode>): Likewise.
6376 (aarch64_st1_x4_<mode>): Likewise.
6377 * config/aarch64/arm_neon.h:
6378 (vld1_s8_x4): New function.
6379 (vld1q_s8_x4): Likewise.
6380 (vld1_s16_x4): Likewise.
6381 (vld1q_s16_x4): Likewise.
6382 (vld1_s32_x4): Likewise.
6383 (vld1q_s32_x4): Likewise.
6384 (vld1_u8_x4): Likewise.
6385 (vld1q_u8_x4): Likewise.
6386 (vld1_u16_x4): Likewise.
6387 (vld1q_u16_x4): Likewise.
6388 (vld1_u32_x4): Likewise.
6389 (vld1q_u32_x4): Likewise.
6390 (vld1_f16_x4): Likewise.
6391 (vld1q_f16_x4): Likewise.
6392 (vld1_f32_x4): Likewise.
6393 (vld1q_f32_x4): Likewise.
6394 (vld1_p8_x4): Likewise.
6395 (vld1q_p8_x4): Likewise.
6396 (vld1_p16_x4): Likewise.
6397 (vld1q_p16_x4): Likewise.
6398 (vld1_s64_x4): Likewise.
6399 (vld1_u64_x4): Likewise.
6400 (vld1_p64_x4): Likewise.
6401 (vld1q_s64_x4): Likewise.
6402 (vld1q_u64_x4): Likewise.
6403 (vld1q_p64_x4): Likewise.
6404 (vld1_f64_x4): Likewise.
6405 (vld1q_f64_x4): Likewise.
6406 (vst1_s8_x4): Likewise.
6407 (vst1q_s8_x4): Likewise.
6408 (vst1_s16_x4): Likewise.
6409 (vst1q_s16_x4): Likewise.
6410 (vst1_s32_x4): Likewise.
6411 (vst1q_s32_x4): Likewise.
6412 (vst1_u8_x4): Likewise.
6413 (vst1q_u8_x4): Likewise.
6414 (vst1_u16_x4): Likewise.
6415 (vst1q_u16_x4): Likewise.
6416 (vst1_u32_x4): Likewise.
6417 (vst1q_u32_x4): Likewise.
6418 (vst1_f16_x4): Likewise.
6419 (vst1q_f16_x4): Likewise.
6420 (vst1_f32_x4): Likewise.
6421 (vst1q_f32_x4): Likewise.
6422 (vst1_p8_x4): Likewise.
6423 (vst1q_p8_x4): Likewise.
6424 (vst1_p16_x4): Likewise.
6425 (vst1q_p16_x4): Likewise.
6426 (vst1_s64_x4): Likewise.
6427 (vst1_u64_x4): Likewise.
6428 (vst1_p64_x4): Likewise.
6429 (vst1q_s64_x4): Likewise.
6430 (vst1q_u64_x4): Likewise.
6431 (vst1q_p64_x4): Likewise.
6432 (vst1_f64_x4): Likewise.
6433 (vst1q_f64_x4): Likewise.
6434
6435 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6436
6437 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6438
6439 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6440 Richard Sandiford <richard.sandiford@arm.com>
6441
6442 PR target/88839
6443 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6444 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6445
6446 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6447
6448 PR target/90724
6449 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6450 in reg if it fails aarch64_plus_operand predicate.
6451
6452 2019-08-21 Richard Biener <rguenther@suse.de>
6453
6454 PR tree-optimization/91482
6455 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6456 BUILT_IN_ASSUME_ALIGNED calls.
6457
6458 2019-08-21 Richard Biener <rguenther@suse.de>
6459
6460 PR target/91498
6461 PR target/91503
6462 * config/i386/i386-features.c
6463 (general_scalar_chain::make_vector_copies): Copy stack temporary
6464 rtx when using it multiple times.
6465 (general_scalar_chain::convert_reg): Likewise.
6466
6467 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6468
6469 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6470
6471 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6472
6473 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6474 catch more redundant zero initialization cases.
6475 (dse_dom_walker::dse_optimize_stmt): Likewise.
6476
6477 2019-08-20 Richard Biener <rguenther@suse.de>
6478
6479 PR lto/91307
6480 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6481 by collect2 when targetm.have_ctors_dtors which avoids dragging
6482 in temporary filenames from LTO input objects.
6483
6484 2019-08-20 Richard Biener <rguenther@suse.de>
6485
6486 PR tree-optimization/37242
6487 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6488 to (T)a + (T)b if we know that a + b does not overflow.
6489
6490 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6491
6492 PR rtl-optimization/91347
6493 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6494 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6495
6496 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6497
6498 * calls.h (function_arg_info): Add a pass_by_reference field,
6499 defaulting to false.
6500 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6501 when applying pass-by-reference semantics.
6502 (initialize_argument_information): Likewise.
6503 (emit_library_call_value_1): Likewise.
6504 * function.c (assign_parm_data_one): Remove passed_pointer field.
6505 (assign_parm_find_data_types): Don't set it.
6506 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6507 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6508 arg.pass_by_reference instead of passed_pointer.
6509
6510 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6511
6512 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6513 into a single function_arg_info, updating its fields when we
6514 apply pass-by-reference and promotion semantics. Use the
6515 function_arg_info to track the mode rather than keeping it in
6516 a separate local variable.
6517 (initialize_argument_information): Likewise. Base the final
6518 arg_to_skip on this new function_arg_info rather than creating
6519 a new one from scratch.
6520
6521 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6522
6523 * function.c (assign_parm_data_one): Replace passed_type,
6524 promoted_mode and named_arg with a function_arg_info field.
6525 (assign_parm_find_data_types): Remove local variables and
6526 assign directly to "data". Make data->passed_mode shadow
6527 data->arg.mode until promotion, then assign the promoted
6528 mode to data->arg.mode.
6529 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6530 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6531 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6532 (assign_parm_setup_block, assign_parm_setup_reg)
6533 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6534 arg.mode instead of promoted_mode, arg.type instead of passed_type
6535 and arg.named instead of named_arg. Use data->arg for
6536 function_arg_info structures that had the field values passed_type,
6537 promoted_mode and named_arg. Base other function_arg_infos on
6538 data->arg, changing the necessary properties.
6539
6540 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6541
6542 * calls.h (apply_pass_by_reference_rules): Declare.
6543 * calls.c (apply_pass_by_reference_rules): New function.
6544 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6545 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6546 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6547 * function.c (assign_parm_find_data_types): Likewise.
6548 * var-tracking.c (prepare_call_arguments): Likewise.
6549
6550 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6551
6552 * target.def (must_pass_in_stack): Take a function_arg_info instead
6553 of a mode and a type.
6554 * doc/tm.texi: Regenerate.
6555 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6556 instead of a mode and a type.
6557 (must_pass_in_stack_var_size_or_pad): Likewise.
6558 * calls.c (must_pass_in_stack_var_size): Likewise.
6559 (must_pass_in_stack_var_size_or_pad): Likewise.
6560 (initialize_argument_information): Update call to
6561 targetm.calls.must_pass_in_stack.
6562 (must_pass_va_arg_on_stack): Likewise.
6563 * function.c (assign_parm_find_entry_rtl): Likewise.
6564 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6565 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6566 (alpha_function_arg_advance): Likewise.
6567 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6568 (cr16_function_arg_advance): Likewise.
6569 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6570 (cris_arg_partial_bytes): Likewise.
6571 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6572 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6573 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6574 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6575 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6576 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6577 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6578 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6579 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6580 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6581 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6582 instead of a mode and a type.
6583 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6584 (fr30_num_arg_regs): Likewise.
6585 (fr30_setup_incoming_varargs): Update calls accordingly.
6586 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6587 (fr30_function_arg_advance): Likewise.
6588 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6589 instead of a mode and a type.
6590 * config/gcn/gcn.c (num_arg_regs): Likewise.
6591 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6592 num_arg_regs and targetm.calls.must_pass_in_stack.
6593 (gcn_arg_partial_bytes): Likewise.
6594 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6595 function_arg_info instead of a mode and a type.
6596 (classify_argument): Update call accordingly.
6597 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6598 function_arg_info instead of a mode and a type.
6599 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6600 Likewise.
6601 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6602 (rs6000_parm_needs_stack): Update call accordingly.
6603 (setup_incoming_varargs): Likewise.
6604
6605 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6606
6607 * target.def (callee_copies): Take a function_arg_info instead
6608 of a mode, type and named flag.
6609 * doc/tm.texi: Regenerate.
6610 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6611 instead of a mode, type and named flag.
6612 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6613 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6614 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6615 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6616 instead of a mode, type and named flag.
6617 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6618 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6619 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6620 * calls.h (reference_callee_copied): Take a function_arg_info
6621 instead of a mode, type and named flag.
6622 * calls.c (reference_callee_copied): Likewise.
6623 (initialize_argument_information): Update call accordingly.
6624 (emit_library_call_value_1): Likewise.
6625 * function.c (gimplify_parameters): Likewise.
6626 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6627 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6628 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6629 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6630 (TARGET_CALLEE_COPIES): Define to
6631 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6632 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6633 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6634 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6635 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6636 instead of a mode, type and named flag.
6637 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6638 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6639 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6640 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6641 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6642 (TARGET_CALLEE_COPIES): Define to
6643 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6644 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6645 instead of a mode, type and named flag.
6646 * config/sh/sh.c (sh_callee_copies): Likewise.
6647 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6648 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6649 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6650
6651 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6652
6653 * target.def (function_arg_advance): Take a function_arg_info instead
6654 of a mode, type and named flag.
6655 * doc/tm.texi: Regenerate.
6656 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6657 instead of a mode, type and named flag.
6658 * targhooks.c (default_function_arg_advance): Likewise.
6659 * calls.c (initialize_argument_information): Update call to
6660 targetm.calls.function_arg_advance.
6661 (emit_library_call_value_1): Likewise.
6662 * dse.c (get_call_args): Likewise.
6663 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6664 * function.c (assign_parms, gimplify_parameters): Likewise.
6665 * var-tracking.c (prepare_call_arguments): Likewise.
6666 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6667 function_arg_info instead of a mode, type and named flag.
6668 (aarch64_setup_incoming_varargs): Update call accordingly.
6669 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6670 function_arg_info instead of a mode, type and named flag.
6671 (alpha_setup_incoming_varargs): Update call accordingly.
6672 * config/arc/arc.c (arc_function_arg_advance): Take a
6673 function_arg_info instead of a mode, type and named flag.
6674 (arc_setup_incoming_varargs): Update call accordingly.
6675 * config/arm/arm.c (arm_function_arg_advance): Take a
6676 function_arg_info instead of a mode, type and named flag.
6677 (cmse_func_args_or_return_in_stack): Update call accordingly.
6678 (arm_function_ok_for_sibcall): Likewise.
6679 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6680 * config/avr/avr.c (avr_function_arg_advance): Take a
6681 function_arg_info instead of a mode, type and named flag.
6682 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6683 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6684 (c6x_call_saved_register_used): Update call accordingly.
6685 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6686 function_arg_info instead of a mode, type and named flag.
6687 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6688 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6689 (csky_setup_incoming_varargs): Update call accordingly.
6690 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6691 function_arg_info instead of a mode, type and named flag.
6692 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6693 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6694 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6695 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6696 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6697 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6698 (ix86_setup_incoming_varargs): Update call accordingly.
6699 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6700 function_arg_info instead of a mode, type and named flag.
6701 (ia64_setup_incoming_varargs): Update call accordingly.
6702 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6703 function_arg_info instead of a mode, type and named flag.
6704 (iq2000_expand_prologue): Update call accordingly.
6705 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6706 function_arg_info instead of a mode, type and named flag.
6707 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6708 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6709 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6710 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6711 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6712 Likewise.
6713 (microblaze_expand_prologue): Update call accordingly.
6714 * config/mips/mips.c (mips_function_arg_advance): Take a
6715 function_arg_info instead of a mode, type and named flag.
6716 (mips_setup_incoming_varargs): Update call accordingly.
6717 (mips_output_args_xfer): Likewise.
6718 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6719 function_arg_info instead of a mode, type and named flag.
6720 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6721 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6722 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6723 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6724 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6725 (nios2_setup_incoming_varargs): Update call accordingly.
6726 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6727 function_arg_info instead of a mode, type and named flag.
6728 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6729 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6730 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6731 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6732 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6733 (riscv_setup_incoming_varargs): Update call accordingly.
6734 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6735 function_arg_info instead of a mode, type and named flag.
6736 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6737 Likewise.
6738 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6739 (rs6000_parm_needs_stack): Update call accordingly.
6740 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6741 instead of a mode, type and named flag.
6742 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6743 (s390_call_saved_register_used): Update call accordingly.
6744 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6745 instead of a mode, type and named flag.
6746 (sh_output_mi_thunk): Update call accordingly.
6747 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6748 function_arg_info instead of a mode, type and named flag.
6749 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6750 (spu_setup_incoming_varargs): Update call accordingly.
6751 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6752 function_arg_info instead of a mode, type and named flag.
6753 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6754 (tilegx_setup_incoming_varargs): Update call accordingly.
6755 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6756 function_arg_info instead of a mode, type and named flag.
6757 (tilegx_setup_incoming_varargs): Update call accordingly.
6758 * config/v850/v850.c (v850_function_arg_advance): Take a
6759 function_arg_info instead of a mode, type and named flag.
6760 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6761 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6762 (visium_setup_incoming_varargs): Update call accordingly.
6763 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6764 function_arg_info instead of a mode, type and named flag.
6765
6766 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6767
6768 * target.def (function_arg, function_incoming_arg): Take a
6769 function_arg_info instead of a mode, tree and named flag.
6770 * doc/tm.texi: Regenerate.
6771 * targhooks.h (default_function_arg): Take a function_arg_info
6772 instead of a mode, tree and named flag.
6773 (default_function_incoming_arg): Likewise.
6774 * targhooks.c (default_function_arg): Likewise.
6775 (default_function_incoming_arg): Likewise.
6776 * calls.h (function_arg_info::end_marker_p): New function.
6777 (function_arg_info::end_marker): Likewise.
6778 * calls.c (prepare_call_address, initialize_argument_information)
6779 (expand_call, emit_library_call_value_1): Update calls to
6780 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6781 * dse.c: Include calls.h.
6782 (get_call_args): Update call to targetm.calls.function_arg.
6783 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6784 * var-tracking.c (prepare_call_arguments): Likewise.
6785 * function.c (assign_parm_find_entry_rtl): Update call to
6786 targetm.calls.function_incoming_arg.
6787 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6788 function_arg_info instead of a mode, tree and named flag.
6789 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6790 * config/arc/arc.c (arc_function_arg): Likewise.
6791 * config/arm/arm.c (arm_function_arg): Likewise.
6792 (cmse_func_args_or_return_in_stack): Update call accordingly.
6793 (arm_function_ok_for_sibcall): Likewise.
6794 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6795 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6796 instead of a mode, tree and named flag.
6797 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6798 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6799 (c6x_call_saved_register_used): Update call accordingly.
6800 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6801 instead of a mode, tree and named flag.
6802 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6803 (cris_function_arg_1): Likewise.
6804 * config/csky/csky.c (csky_function_arg): Likewise.
6805 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6806 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6807 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6808 (frv_function_arg_1): Likewise.
6809 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6810 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6811 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6812 * config/i386/i386.c (ix86_function_arg): Likewise.
6813 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6814 (ia64_function_arg_1): Likewise.
6815 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6816 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6817 accordingly.
6818 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6819 instead of a mode, tree and named flag.
6820 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6821 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6822 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6823 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6824 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6825 (microblaze_expand_prologue): Update call accordingly.
6826 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6827 instead of a mode, tree and named flag.
6828 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6829 (mmix_function_arg_1): Likewise.
6830 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6831 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6832 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6833 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6834 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6835 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6836 (nvptx_function_incoming_arg): Likewise.
6837 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6838 * config/pa/pa.c (pa_function_arg): Likewise.
6839 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6840 * config/pru/pru.c (pru_function_arg): Likewise.
6841 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6842 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6843 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6844 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6845 (rs6000_parm_needs_stack): Update call accordingly.
6846 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6847 instead of a mode, tree and named flag.
6848 * config/s390/s390.c (s390_function_arg): Likewise.
6849 (s390_call_saved_register_used): Update call accordingly.
6850 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6851 instead of a mode, tree and named flag.
6852 (sh_output_mi_thunk): Update call accordingly.
6853 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6854 (sparc_function_incoming_arg): Take a function_arg_info instead of
6855 a mode, tree and named flag.
6856 * config/spu/spu.c (spu_function_arg): Likewise.
6857 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6858 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6859 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6860 * config/v850/v850.c (v850_function_arg): Likewise.
6861 * config/vax/vax.c (vax_function_arg): Likewise.
6862 * config/visium/visium.c (visium_function_arg): Likewise.
6863 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6864 (xtensa_function_incoming_arg): Likewise.
6865
6866 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6867
6868 * target.def (setup_incoming_varargs): Take a function_arg_info
6869 instead of a mode and tree.
6870 * doc/tm.texi: Regenerate.
6871 * targhooks.h (default_setup_incoming_varargs): Take a
6872 function_arg_info instead of a mode and tree.
6873 * targhooks.c (default_setup_incoming_varargs): Likewise.
6874 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6875 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6876 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6877 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6878 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6879 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6880 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6881 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6882 Likewise.
6883 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6884 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6885 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6886 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6887 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6888 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6889 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6890 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6891 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6892 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6893 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6894 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6895 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6896 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6897 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6898 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6899 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6900 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6901 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6902 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6903 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6904 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6905 * function.c (assign_parms_setup_varargs): Update call to
6906 targetm.calls.setup_incoming_varargs.
6907
6908 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6909
6910 * target.def (pass_by_reference): Take a function_arg_info instead
6911 of a mode, type and named flag.
6912 * doc/tm.texi: Regenerate.
6913 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6914 accordingly.
6915 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6916 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6917 function_arg_info instead of a mode, type and named flag.
6918 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6919 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6920 mode, type and named flag.
6921 * calls.c (pass_by_reference): Likewise.
6922 (pass_va_arg_by_reference): Update call accordingly.
6923 (initialize_argument_information): Likewise.
6924 (emit_library_call_value_1): Likewise.
6925 * function.c (assign_parm_find_data_types): Likewise.
6926 * var-tracking.c (prepare_call_arguments): Likewise.
6927 * stor-layout.c: Include calls.h.
6928 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6929 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6930 function_arg_info instead of a mode, type and named flag.
6931 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6932 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6933 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6934 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6935 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6936 (c6x_call_saved_register_used): Update call to pass_by_reference.
6937 * config/cris/cris.c (cris_pass_by_reference): Take a
6938 function_arg_info instead of a mode, type and named flag.
6939 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6940 function_arg_info instead of a mode, type and named flag.
6941 (epiphany_arg_partial_bytes): Update call accordingly.
6942 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6943 function_arg_info instead of a mode, type and named flag.
6944 (ft32_arg_partial_bytes): Update call accordingly.
6945 * config/i386/i386.c (ix86_pass_by_reference): Take a
6946 function_arg_info instead of a mode, type and named flag.
6947 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6948 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6949 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6950 (m32r_return_in_memory): Update call accordingly.
6951 * config/mips/mips.c (mips_pass_by_reference): Take a
6952 function_arg_info instead of a mode, type and named flag.
6953 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6954 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6955 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6956 (moxie_arg_partial_bytes): Update call accordingly.
6957 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6958 function_arg_info instead of a mode, type and named flag.
6959 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6960 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6961 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6962 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6963 (riscv_return_in_memory): Update call accordingly.
6964 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6965 function_arg_info instead of a mode, type and named flag.
6966 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6967 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6968 * config/s390/s390.c (s390_pass_by_reference): Take a
6969 function_arg_info instead of a mode, type and named flag.
6970 (s390_call_saved_register_used): Update call accordingly.
6971 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6972 instead of a mode, type and named flag.
6973 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6974 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6975 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6976 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6977 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6978 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6979
6980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6981
6982 * target.def (arg_partial_bytes): Take a function_arg_info instead
6983 of a mode, type and named flag.
6984 * doc/tm.texi: Regenerate.
6985 * target.h (function_arg_info): Declare.
6986 * calls.h (function_arg_info): New class.
6987 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6988 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6989 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6990 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6991 * calls.c (initialize_argument_information): Update call to
6992 targetm.calls.partial_bytes.
6993 (emit_library_call_value_1): Likewise.
6994 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6995 * function.c (assign_parm_find_entry_rtl): Likewise.
6996 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6997 function_arg_info instead of a mode, type and named flag.
6998 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6999 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7000 (cmse_func_args_or_return_in_stack): Update accordingly.
7001 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7002 function_arg_info instead of a mode, type and named flag.
7003 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7004 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7005 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7006 * config/fr30/fr30.c: Include calls.h.
7007 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7008 type and named flag.
7009 * config/frv/frv.c: Include calls.h.
7010 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7011 type and named flag.
7012 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7013 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7014 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7015 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7016 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7017 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7018 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7019 Likewise.
7020 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7021 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7022 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7023 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7024 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7025 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7026 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7027 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7028 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7029 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7030 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7031 (rs6000_parm_needs_stack): Update call accordingly.
7032 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7033 function_arg_info instead of a mode, type and named flag.
7034 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7035 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7036
7037 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7038
7039 * calls.h (must_pass_va_arg_in_stack): Declare.
7040 * calls.c (must_pass_va_arg_in_stack): New function.
7041 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7042 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7043 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7044 Likewise.
7045 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7046
7047 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7048
7049 * calls.h (pass_va_arg_by_reference): Declare.
7050 * calls.c (pass_va_arg_by_reference): New function.
7051 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7052 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7053 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7054 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7055 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7056 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7057 (mips_gimplify_va_arg_expr): Likewise.
7058 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7059 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7060 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7061 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7062 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7063 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7064 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7065 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7066 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7067 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7068 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7069
7070 2019-08-20 Richard Biener <rguenther@suse.de>
7071
7072 PR target/91498
7073 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7074 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7075 (convert_scalars_to_vector): Add timode_p parameter and use it
7076 to guard TImode-only operation.
7077 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7078 (pass_stv::execute): Pass down timode_p.
7079
7080 2019-08-20 Lili Cui <lili.cui@intel.com>
7081
7082 * common/config/i386/i386-common.c
7083 (processor_names): Add tigerlake and cooperlake.
7084 (processor_alias_table): Add tigerlake and cooperlake.
7085 * config.gcc: Add -march=tigerlake and cooperlake.
7086 * config/i386/driver-i386.c
7087 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7088 Add "has_avx" to classify processor.
7089 * config/i386/i386-builtins.c (processor_model) :
7090 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7091 (arch_names_table): Add tigerlake and cooperlake.
7092 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7093 and PROCESSOR_COOPERLAKE.
7094 * config/i386/i386-c.c
7095 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7096 * config/i386/i386-options.c
7097 (m_TIGERLAKE) : Define.
7098 (m_COOPERLAKE) : Ditto.
7099 (m_CORE_AVX512): Ditto.
7100 (processor_cost_table): Add cascadelake.
7101 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7102 * config/i386/i386.h
7103 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7104 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7105 (PTA_MOVDIRI): Ditto.
7106 (PTA_MOVDIR64B): Ditto.
7107 (PTA_COOPERLAKE) : Ditto.
7108 (PTA_TIGERLAKE) : Ditto.
7109 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7110 * doc/extend.texi: Add tigerlake and cooperlake.
7111 * doc/invoke.texi: Add tigerlake and cooperlake.
7112
7113 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7114
7115 * doc/install.texi (Specific, alpha): Remove note to use
7116 binutils 2.11.2 or later.
7117
7118 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7119
7120 PR middle-end/89544
7121 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7122 when possible.
7123
7124 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7125
7126 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7127 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7128 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7129 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7130 * config/aarch64/constraints.md (Dt): New constraint
7131 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7132
7133 2019-08-19 Richard Biener <rguenther@suse.de>
7134
7135 PR tree-optimization/91403
7136 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7137 cases we can handle with tail-recursion...
7138 (follow_ssa_edge_expr): ... here. Do so.
7139
7140 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7141
7142 PR target/91441
7143 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7144 implemented for -fsanitize=kernel-address, and merge check logic
7145 with -fsanitize=address.
7146
7147 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7148
7149 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7150 for cpu and machine. Factor 64/32b builtins.
7151
7152 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7153
7154 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7155 gone, point to sourceforge.net.
7156
7157 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7158
7159 * doc/ux.texi (User Experience Guidelines): Update reference.
7160
7161 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7162
7163 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7164 not LGPL".
7165
7166 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7167
7168 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7169 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7170
7171 2019-08-16 Martin Sebor <msebor@redhat.com>
7172
7173 * tree.def (TYPE_SIZE): Clarify.
7174 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7175
7176 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7177
7178 PR tree-optimization/91109
7179 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7180 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7181 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7182
7183 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7184
7185 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7186 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7187 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7188 (uavg<mode>3_ceil): New expander.
7189 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7190 mode iterator when creating CONST1_RTX.
7191 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7192 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7193 mode iterator for const1_operand predicate.
7194
7195 2019-08-16 Richard Biener <rguenther@suse.de>
7196
7197 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7198 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7199 follow_ssa_edge.
7200 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7201 (analyze_evolution_in_loop): Likewise.
7202 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7203 (follow_ssa_edge_expr): ... here. Refactor code.
7204
7205 2019-08-16 Richard Biener <rguenther@suse.de>
7206
7207 PR target/91469
7208 * config/i386/i386-features.c
7209 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7210
7211 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7212
7213 PR other/91255
7214 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7215 only if subst_name matches curr_attr string.
7216
7217 2019-08-16 Richard Biener <rguenther@suse.de>
7218
7219 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7220 stmt at gsi_p, instead replace it with a NOP removed later.
7221 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7222 that became dead because of that.
7223
7224 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7225
7226 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7227 for which we can't represent a range.
7228 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7229 set_varying.
7230 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7231 Set VR_UNDEFINED if type is not supported.
7232 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7233 * tree-vrp.c (value_range_base::check): Assert that a varying has
7234 min/max set.
7235 (value_range_base::equal_p): Early bail for undefines.
7236 (value_range_base::set_varying): Accept a type.
7237 (value_range::set_varying): Same.
7238 (value_range_base::type): VARYING can have a type, while UNDEFINE
7239 is typeless.
7240 (value_range_base::dump): Print type for VARYING nodes.
7241 (value_range_base::set): Add type to VARYING.
7242 (extract_range_from_multiplicative_op): Pass type to set_varying.
7243 (extract_range_from_binary_expr): Same.
7244 (value_range_base::intersect_helper): Same.
7245 (value_range_base::union_helper): Same.
7246 (value_range_base::normalize_symbolics): Same.
7247 (determine_value_range_1): Same.
7248 * tree-vrp.h (class value_range_base): Add type to set_varying.
7249 Add prototype for dump(void).
7250 Add prototype for supports_type_p.
7251 (class value_range): Add type to set_varying.
7252 Add prototype for dump(void).
7253 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7254 set_varying.
7255 (vr_values::get_lattice_entry): Set varying even if propagation
7256 finished.
7257 Pass type to set_varying.
7258 (vr_values::get_value_range): Remove vr_const_varying.
7259 Reallocate the lattice if needed.
7260 (vr_values::update_value_range): Pass type to set_varying.
7261 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7262 (vr_values::extract_range_from_binary_expr): Same.
7263 (vr_values::extract_range_from_unary_expr): Same.
7264 (vr_values::extract_range_from_cond_expr): Same.
7265 (vr_values::check_for_binary_op_overflow): Same.
7266 (vr_values::extract_range_basic): Same.
7267 (vr_values::extract_range_from_assignment): Same.
7268 (vr_values::vr_values): Increase size of num_vr_values.
7269 (vr_values::extract_range_from_phi_node): Pass type to
7270 set_varying.
7271
7272 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7273
7274 PR target/90878
7275 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7276 for costs of hard register moves.
7277 (ix86_register_move_cost): Likewise.
7278 * config/i386/i386.h (processor_costs): Move costs of hard
7279 register moves to hard_register. Add int_load, int_store,
7280 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7281 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7282 for costs of RTL expressions.
7283 * config/i386/x86-tune-costs.h: Move costs of hard register
7284 moves to hard_register. Duplicate int_load, int_store,
7285 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7286 sse_load, sse_store for costs of RTL expressions.
7287
7288 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7289
7290 * target.def (setup_incoming_vararg_bounds): Remove.
7291 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7292 * doc/tm.texi: Regenerate.
7293 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7294 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7295 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7296 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7297
7298 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7299
7300 MSP430: Fix lines over 80 characters long in
7301 config/msp430/*.{c,h} files
7302
7303 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7304 specifier in string.
7305 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7306 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7307 redundant old comment.
7308 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7309 Split line more than 80 characters long.
7310 * config/msp430/msp430.c (msp430_option_override): Likewise.
7311 (msp430_return_in_memory): Likewise.
7312 (msp430_gimplify_va_arg_expr): Likewise.
7313 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7314 (msp430_legitimate_constant): Likewise.
7315 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7316 (msp430_attr): Likewise.
7317 (msp430_data_attr): Likewise.
7318 (msp430_start_function): Likewise.
7319 (gen_prefix): Likewise.
7320 (msp430_init_sections): Likewise.
7321 (msp430_select_section): Likewise.
7322 (msp430_function_section): Likewise.
7323 (msp430_unique_section): Likewise.
7324 (msp430_output_aligned_decl_common): Likewise.
7325 (msp430_do_not_relax_short_jumps): Likewise.
7326 (msp430_init_builtins): Likewise.
7327 (msp430_expand_delay_cycles): Likewise.
7328 (msp430_expand_prologue): Likewise.
7329 (msp430_expand_epilogue): Likewise.
7330 (msp430_expand_helper): Likewise.
7331 (msp430_split_movsi): Likewise.
7332 (msp430_print_operand): Likewise.
7333 (msp430_return_addr_rtx): Likewise.
7334 (msp430x_extendhisi): Likewise.
7335 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7336 (ASM_SPEC): Likewise.
7337 Remove very obvious comments.
7338 (LIB_SPEC): Split line more than 80 characters long.
7339 (EH_RETURN_HANDLER_RTX): Likewise.
7340 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7341
7342 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7343
7344 MSP430: Fix whitespace errors and incorrect indentation in
7345 config/msp430/*.{c,h} files
7346
7347 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7348 (msp430_select_hwmult_lib): Likewise.
7349 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7350 (msp430_extract_mcu_data): Likewise.
7351 (struct t_msp430_mcu_data): Likewise.
7352 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7353 before left square bracket.
7354 (msp430_option_override): Fix indentation.
7355 (msp430_hard_regno_nregs_with_padding): Likewise.
7356 (msp430_initial_elimination_offset): Likewise.
7357 (msp430_special_register_convention_p): Remove whitespace before left
7358 square bracket and after exclamation mark.
7359 (msp430_evaluate_arg): Likewise.
7360 (msp430_callee_copies): Fix indentation.
7361 (msp430_gimplify_va_arg_expr): Likewise.
7362 (msp430_function_arg_advance): Remove whitespace before left square
7363 bracket.
7364 (reg_ok_for_addr): Likewise.
7365 (msp430_preserve_reg_p): Likewise.
7366 (msp430_compute_frame_info): Likewise.
7367 (msp430_asm_output_addr_const_extra): Add space between function name
7368 and open parenthesis.
7369 (has_section_name): Fix indentation.
7370 (msp430_attr): Remove trailing whitespace.
7371 (msp430_section_attr): Likewise.
7372 (msp430_data_attr): Likewise.
7373 (struct msp430_attribute_table): Fix comment and whitespace.
7374 (msp430_start_function): Remove whitespace before left square bracket.
7375 Add space between function name and open parenthesis.
7376 (msp430_select_section): Remove trailing whitespace.
7377 (msp430_section_type_flags): Remove trailing whitespace.
7378 (msp430_unique_section): Remove space before closing parenthesis.
7379 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7380 (msp430_builtins): Remove whitespace before left square bracket.
7381 (msp430_init_builtins): Fix indentation.
7382 (msp430_expand_prologue): Remove whitespace before left square bracket.
7383 Remove space before closing parenthesis.
7384 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7385 (msp430_split_movsi): Remove space before closing parenthesis.
7386 (helper_function_name_mappings): Fix indentation.
7387 (msp430_use_f5_series_hwmult): Fix whitespace.
7388 (use_32bit_hwmult): Likewise.
7389 (msp430_no_hwmult): Likewise.
7390 (msp430_output_labelref): Remove whitespace before left square bracket.
7391 (msp430_print_operand_raw): Likewise.
7392 (msp430_print_operand_addr): Likewise.
7393 (msp430_print_operand): Add two spaces after '.' in comment.
7394 Fix trailing whitespace.
7395 (msp430x_extendhisi): Fix indentation.
7396 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7397 tab.
7398 (PC_REGNUM): Likewise.
7399 (STACK_POINTER_REGNUM): Likewise.
7400 (CC_REGNUM): Likewise.
7401
7402 2019-08-15 Richard Biener <rguenther@suse.de>
7403
7404 PR target/91454
7405 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7406 helper.
7407 (general_scalar_chain::make_vector_copies): Use it.
7408
7409 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7410
7411 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7412
7413 2019-08-15 Martin Liska <mliska@suse.cz>
7414
7415 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7416 operators with no arguments.
7417 (eliminate_unnecessary_stmts): Likewise here.
7418
7419 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7420
7421 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7422 <case COMPARE>: Revert 2019-08-14 change.
7423 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7424 for (TARGET_64BIT || mode != DImode).
7425
7426 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7427
7428 * tree-vrp.c (value_range_base::set): Merge in code from
7429 value_range_base::set_and_canonicalize.
7430 Enforce canonicalization at set time.
7431 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7432 (value_range_base::set_undefined): Inline call to set().
7433 (value_range_base::set_varying): Same.
7434 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7435 (vrp_val_max): New argument handle_pointers.
7436 (vrp_val_min): Same.
7437 (ranges_from_anti_range): Same.
7438 (extract_range_into_wide_ints): Use tree argument instead of sign
7439 and precision.
7440 (extract_range_from_multiplicative_op): Take in tree type instead
7441 of precision and sign. Adapt function for canonicalized ranges.
7442 (extract_range_from_binary_expr): Pass type to
7443 extract_range_from_multiplicative_op.
7444 Adapt for canonicalized ranges.
7445 (extract_range_from_unary_expr): Same.
7446 (value_range_base::intersect_helper): Adjust for canonicalized
7447 ranges.
7448 (value_range_base::union_helper): Same.
7449 (value_range_base::normalize_symbolics): New.
7450 * tree-vrp.h (class value_range_base): Remove
7451 set_and_canonicalize.
7452 New prototype for normalize_symbolics.
7453 (class value_range): Remove set_and_canonicalize.
7454 (vrp_val_min): Adjust prototype.
7455 (vrp_val_max): Same.
7456 * vr-values.c
7457 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7458 instead of set_and_canonicalize.
7459
7460 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7461
7462 PR middle-end/91444
7463 * tree-vect-stmts.c (vectorizable_call): Check that the function
7464 is a BUILT_IN_MD function before passing it to
7465 targetm.vectorize.builtin_md_vectorized_function.
7466
7467 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7468
7469 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7470 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7471 (aarch64_select_early_remat_modes): Use it.
7472
7473 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7474
7475 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7476 16 for SVE predicates even if they are fixed-length.
7477
7478 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7479
7480 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7481 operand order match the MOV /Z alias.
7482
7483 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7484
7485 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7486 the vector pattern as an aarch64_svpattern argument. Update the
7487 overloaded caller accordingly.
7488 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7489 (aarch64_output_sve_vector_inc_dec): Likewise.
7490
7491 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7492
7493 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7494 multiplication case, try to compute VG * (lowest set bit) directly
7495 rather than always basing the multiplication on VG. Use
7496 expand_mult for the multiplication if we can.
7497
7498 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7499
7500 * config/aarch64/aarch64-protos.h
7501 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7502 (aarch64_sve_inc_dec_immediate_p): Rename to...
7503 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7504 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7505 (aarch64_output_sve_scalar_inc_dec): Declare.
7506 (aarch64_output_sve_inc_dec_immediate): Rename to...
7507 (aarch64_output_sve_vector_inc_dec): ...this.
7508 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7509 (aarch64_output_sve_scalar_inc_dec): New functions.
7510 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7511 arguments. Only handle true ADDVL and ADDPL instructions;
7512 don't emit an INC or DEC.
7513 (aarch64_sve_inc_dec_immediate_p): Rename to...
7514 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7515 (aarch64_output_sve_inc_dec_immediate): Rename to...
7516 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7517 aarch64_sve_vector_inc_dec_immediate_p.
7518 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7519 (aarch64_sve_plus_immediate): New predicates.
7520 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7521 rather than aarch64_sve_addvl_addpl_immediate.
7522 (aarch64_sve_inc_dec_immediate): Rename to...
7523 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7524 aarch64_sve_vector_inc_dec_immediate_p.
7525 (aarch64_sve_add_operand): Update accordingly.
7526 * config/aarch64/constraints.md (Uai): New constraint.
7527 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7528 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7529 operand into a register if it satisfies aarch64_sve_plus_immediate.
7530 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7531 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7532 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7533 aarch64_output_sve_vector_inc_dec instead of
7534 aarch64_output_sve_inc_dec_immediate.
7535
7536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7539 (UNSPEC_REVW): New constants.
7540 (elem_bits): New mode attribute.
7541 (SVE_INT_UNARY): New int iterator.
7542 (optab): Handle UNSPEC_REV[BHW].
7543 (sve_int_op): New int attribute.
7544 (min_elem_bits): Handle VNx16QI and the predicate modes.
7545 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7546 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7547 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7548 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7549 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7550 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7551 unspecs based on the total width of the reversed data.
7552 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7553 reinterpret followed by a subreg on big-endian targets.
7554
7555 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7556 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7557
7558 * config/aarch64/aarch64-sve.md
7559 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7560 alternatives in which one of the inputs is in the same register
7561 as the output.
7562
7563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7564
7565 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7566 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7567
7568 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7569
7570 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7571 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7572
7573 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7574 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7575
7576 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7577 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7578 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7579
7580 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7581 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7582
7583 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7584 Add an alternative that uses reversed shifts.
7585
7586 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587
7588 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7589 struct.
7590
7591 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7592
7593 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7594 a commutativity marker.
7595
7596 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7597 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7598
7599 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7600 (aarch64_prepare_sve_cond_int_fma): Declare.
7601 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7602 (aarch64_prepare_sve_int_fma): New functions.
7603 (aarch64_prepare_sve_cond_int_fma): Likewise.
7604 * config/aarch64/aarch64-sve.md
7605 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7606 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7607 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7608 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7609 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7610 (*madd<mode>): Rename to...
7611 (*fma<mode>4): ...this.
7612 (*msub<mode>): Rename to...
7613 (*fnma<mode>4): ...this.
7614
7615 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7616 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7617
7618 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7619 Print 2.0 naturally.
7620 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7621 * config/aarch64/predicates.md
7622 (aarch64_sve_float_negated_arith_immediate): New predicate,
7623 renamed from aarch64_sve_float_arith_with_sub_immediate.
7624 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7625 positive and negative constants.
7626 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7627 or an aarch64_sve_float_arith_with_sub_immediate.
7628 * config/aarch64/constraints.md (vsN): Use
7629 aarch64_sve_float_negated_arith_immediate.
7630 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7631 iterator.
7632 (sve_pred_fp_rhs2_immediate): New int attribute.
7633 * config/aarch64/aarch64-sve.md
7634 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7635 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7636 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7637 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7638 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7639 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7640
7641 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7642 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7643
7644 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7645 (*aarch64_cond_abd<SVE_F:mode>_3)
7646 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7647
7648 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7649 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7650
7651 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7652 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7653
7654 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7655 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7656
7657 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7658 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7659 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7660 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7661 optabs.
7662 * optabs.h (create_convert_operand_from): Expand comment.
7663 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7664 when mapping scalar rtxes to vector operands.
7665 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7666 ashiftrt and lshiftrt.
7667 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7668 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7669 (*cond_<optab><mode>_any_const): New patterns.
7670
7671 2019-08-15 Martin Liska <mliska@suse.cz>
7672
7673 PR ipa/91438
7674 * cgraph.c (cgraph_node::remove): When setting
7675 n->origin = NULL for all nested functions, reset
7676 also next_nested.
7677
7678 2019-08-15 Martin Liska <mliska@suse.cz>
7679
7680 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7681 and next_nested.
7682
7683 2019-08-15 Martin Liska <mliska@suse.cz>
7684
7685 PR ipa/91404
7686 * passes.c (order): Remove.
7687 (uid_hash_t): Likewise).
7688 (remove_cgraph_node_from_order): Remove from set
7689 of pointers (cgraph_node *).
7690 (insert_cgraph_node_to_order): New.
7691 (duplicate_cgraph_node_to_order): New.
7692 (do_per_function_toporder): Register all 3 cgraph hooks.
7693 Skip removed_nodes now as we know about all of them.
7694
7695 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7696
7697 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7698 <case E_V8QImode>: Use vector_set path for
7699 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7700 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7701 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7702
7703 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7704
7705 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7706
7707 2019-08-14 Martin Sebor <msebor@redhat.com>
7708
7709 PR tree-optimization/91294
7710 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7711 source length as exact.
7712
7713 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7714
7715 * doc/extend.texi: Add "noinit" attribute documentation.
7716 * doc/sourcebuild.texi: Add noinit effective target documentation.
7717 * varasm.c (default_section_type_flags): Add support for "noinit"
7718 section.
7719 (default_elf_select_section): Add support for "noinit" attribute.
7720 * config/msp430/msp430.c (msp430_attribute_table): Remove
7721 "noinit" entry.
7722
7723 2019-08-14 Richard Biener <rguenther@suse.de>
7724 Uroš Bizjak <ubizjak@gmail.com>
7725
7726 PR target/91154
7727 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7728 mode arguments.
7729 (scalar_chain::smode): New member.
7730 (scalar_chain::vmode): Likewise.
7731 (dimode_scalar_chain): Rename to...
7732 (general_scalar_chain): ... this.
7733 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7734 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7735 base with TImode and V1TImode.
7736 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7737 (general_scalar_chain::vector_const_cost): Adjust for SImode
7738 chains.
7739 (general_scalar_chain::compute_convert_gain): Likewise. Add
7740 {S,U}{MIN,MAX} support.
7741 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7742 (general_scalar_chain::make_vector_copies): Likewise. Handle
7743 non-DImode chains appropriately.
7744 (general_scalar_chain::convert_reg): Likewise.
7745 (general_scalar_chain::convert_op): Likewise.
7746 (general_scalar_chain::convert_insn): Likewise. Add
7747 fatal_insn_not_found if the result is not recognized.
7748 (convertible_comparison_p): Pass in the scalar mode and use that.
7749 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7750 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7751 (scalar_to_vector_candidate_p): Remove by inlining into single
7752 caller.
7753 (general_remove_non_convertible_regs): Rename from
7754 dimode_remove_non_convertible_regs.
7755 (remove_non_convertible_regs): Remove by inlining into single caller.
7756 (convert_scalars_to_vector): Handle SImode and DImode chains
7757 in addition to TImode chains.
7758 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7759 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7760 (*<maxmin>di3_doubleword): Likewise.
7761
7762 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7763 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7764
7765 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7766 (*cond_bic<mode>_any): New patterns.
7767
7768 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7769
7770 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7771 take the equivalent mask, as well as a bit count.
7772 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7773 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7774 (aarch64_sve_pred_and_operand): New predicates.
7775 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7776 code attribute.
7777 * config/aarch64/aarch64-sve.md
7778 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7779 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7780
7781 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7782
7783 * config/aarch64/aarch64-sve.md
7784 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7785 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7786 New patterns.
7787
7788 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7789 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7790
7791 * config/aarch64/aarch64-sve.md
7792 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7793 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7794
7795 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7796 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7797
7798 * config/aarch64/aarch64-sve.md
7799 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7800 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7801
7802 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7803
7804 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7805 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7806 New pattern.
7807
7808 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7809 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7810
7811 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7812
7813 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7814 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7815
7816 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7817 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7818 (aarch64_print_operand): Add support for %I.
7819 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7820 Bitcast floating-point constants to the corresponding integer constant.
7821 (aarch64_float_const_representable_p): Handle vectors as well
7822 as scalars.
7823 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7824 for the new vcond_mask_<mode><vpred> expander.
7825 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7826 test aarch64_float_const_representable_p.
7827 (aarch64_sve_reg_or_dup_imm): New predicate.
7828 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7829 gen_vcond_mask_<mode><vpred> instead of
7830 gen_aarch64_sve_dup<mode>_const.
7831 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7832 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7833 for operands 1 and 2 respectively. Force operand 2 into a
7834 register if operand 1 is a register. Fold old define_insn...
7835 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7836 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7837 floating-point constants that can be moved as integers. Add
7838 alternatives for MOV /M and FMOV /M.
7839 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7840 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7841 1 and 2 respectively.
7842 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7843 as scalars.
7844 (vss): New constraint.
7845
7846 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7847
7848 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7849 (aarch64_sve_float_maxmin_operand): New predicates.
7850 * config/aarch64/constraints.md (vsB): New constraint.
7851 (vsM): Fix typo.
7852 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7853 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7854 UNSPEC_COND_FMINNM.
7855 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7856 Use aarch64_sve_float_maxmin_operand for operand 2.
7857 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7858 Add alternatives for the constant forms.
7859
7860 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7861
7862 * config/aarch64/constraints.md (vsb): New constraint.
7863 (vsm): Generalize description.
7864 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7865 iterator.
7866 (sve_imm_con): Handle smax, smin, umax and umin.
7867 (sve_imm_prefix): New code attribute.
7868 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7869 (aarch64_sve_vsb_operand): New predicates.
7870 (aarch64_sve_mul_immediate): Rename to...
7871 (aarch64_sve_vsm_immediate): ...this.
7872 (aarch64_sve_mul_operand): Rename to...
7873 (aarch64_sve_vsm_operand): ...this.
7874 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7875 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7876 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7877 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7878 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7879 add movprfx support for the immediate alternatives.
7880 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7881 of the above.
7882 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7883 for operand 3.
7884
7885 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7886
7887 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7888 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7889 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7890
7891 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7892
7893 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7894 (optab, sve_int_op): Handle them.
7895 * config/aarch64/aarch64-sve.md: Expand comment.
7896
7897 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7898
7899 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7900 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7901 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7902
7903 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7904
7905 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7906 (aarch64_expand_sve_const_pred_trn): New functions.
7907 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7908 use the above functions when the parameter is true.
7909 (aarch64_expand_sve_const_pred): Update call accordingly.
7910 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7911 Rename to...
7912 (@aarch64_sve_<perm_insn><mode>): ...this.
7913
7914 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7915
7916 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7917 Declare.
7918 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7919 (aarch64_sve_emit_int_cmp): New functions.
7920 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7921 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7922 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7923 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7924 (UNSPEC_PRED_Z): New unspec.
7925 (set_clobber_cc_nzc): Delete.
7926 * config/aarch64/aarch64-sve.md: Add a block comment about
7927 UNSPEC_PRED_Z.
7928 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7929 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7930 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7931 UNSPEC_MERGE_PTRUE.
7932 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7933 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7934 check for compatible predicates.
7935 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7936 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7937 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7938 comparisons above.
7939
7940 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7941
7942 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7943 * config/aarch64/aarch64-sve.md: Add a section describing it.
7944 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7945 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7946 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7947 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7948 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7949 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7950 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7951 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7952 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7953 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7954 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7955 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7956 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7957 (aarch64_evpc_rev_local): Update accordingly.
7958
7959 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7960
7961 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7962 iterators.
7963 (SVE_BHSI, SVE_SDI): Tweak comment.
7964 (SVE_HSDI): Likewise. Fix definition.
7965 (SVE_SDF): New mode iterator.
7966 (elem_bits): New mode attribute.
7967 (SVE_COND_FCVT): New int iterator.
7968 * config/aarch64/aarch64-sve.md
7969 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7970 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7971 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7972 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7973 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7974 ...these new patterns.
7975 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7976 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7977 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7978 Merge into...
7979 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7980 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7981 ...these new patterns.
7982 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7983 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7984 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7985 ...this new pattern.
7986 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7987 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7988 ...this new pattern.
7989 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7990
7991 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7992
7993 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7994 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7995 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7996 unspecs.
7997 (optab, su): Handle them.
7998 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7999 * config/aarch64/aarch64-sve.md
8000 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8001 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8002 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8003 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8004 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8005 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8006 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8007 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8008 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8009 FIXUORS.
8010 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8011 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8012 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8013 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8014 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8015 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8016 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8017 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8018 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8019 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8020 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8021 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8022 of UNSPEC_FLOAT_CONVERT.
8023 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8024 aarch64_sve_extend<mode><Vwide>2.
8025
8026 2019-08-14 Richard Biener <rguenther@suse.de>
8027
8028 PR target/91154
8029 * config/i386/i386-features.c
8030 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8031 individual instruction gain. Fix reg-reg copy GRP cost. Use
8032 ix86_cost->sse_op for vector instruction costs.
8033
8034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8035
8036 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8037 (cmp_op): Handle it.
8038 (SVE_COND_FP_CMP): Rename to...
8039 (SVE_COND_FP_CMP_I0): ...this.
8040 (SVE_FP_CMP): Remove.
8041 * config/aarch64/aarch64-sve.md
8042 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8043 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8044 using unspecs to represent the comparison.
8045 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8046 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8047 accordingly.
8048 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8049 (aarch64_unspec_cond_code): Move after integer code. Handle
8050 UNORDERED.
8051 (aarch64_emit_sve_predicated_cond): Replace with...
8052 (aarch64_emit_sve_fp_cond): ...this new function.
8053 (aarch64_emit_sve_or_conds): Replace with...
8054 (aarch64_emit_sve_or_fp_conds): ...this new function.
8055 (aarch64_emit_sve_inverted_cond): Replace with...
8056 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8057 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8058
8059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8060
8061 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8062 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8063 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8064 SVE_HSD instead of SVE_SD.
8065
8066 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8067 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8068
8069 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8070 iterator.
8071 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8072 attributes.
8073 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8074 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8075 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8076 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8077 (*div<SVE_F:mode>3): Generalize to...
8078 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8079
8080 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8081 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8082
8083 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8084 constants.
8085 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8086 predicate.
8087 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8088 Declare.
8089 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8090 function.
8091 * config/aarch64/aarch64-sve.md: Add a block comment about the
8092 handling of predicated FP operations.
8093 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8094 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8095 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8096 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8097 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8098 operand.
8099 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8100 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8101 operand.
8102 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8103 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8104 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8105 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8106 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8107 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8108 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8109 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8110 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8111 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8112 strictness operands. Use aarch64_sve_pred_dominates_p to check
8113 whether the predicate on the conditional operation is suitable
8114 for merging. Split patterns into the canonical equal-predicate form.
8115 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8116 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8117
8118 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8119 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8120
8121 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8122 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8123 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8124 rtx codes.
8125 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8126 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8127 unspecs.
8128
8129 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8130 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8131
8132 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8133 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8134 actually has, rather than relying on REG_EQUAL notes.
8135 Make the insn operand order match the SVE operand order.
8136 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8137 the SVE operand order.
8138
8139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8140
8141 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8142 (aarch64_emit_set_immediate): Likewise.
8143 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8144 (aarch64_pfalse_reg): Likewise.
8145 (aarch64_convert_sve_data_to_pred): New function.
8146 (aarch64_sve_move_pred_via_while): Take an optional target register
8147 and the required register mode.
8148 (aarch64_expand_sve_const_pred_1): New function.
8149 (aarch64_expand_sve_const_pred): Likewise.
8150 (aarch64_expand_mov_immediate): Build an all-true predicate
8151 if the significant bits of the immediate are all true. Use
8152 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8153 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8154 before register allocation.
8155 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8156 a VNx16BI PTRUE when splitting the memory alternative.
8157 (vec_duplicate<mode>): Update accordingly.
8158 (*pred_cmp<cmp_op><mode>): Rename to...
8159 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8160
8161 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8162
8163 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8164 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8165 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8166 (UNSPEC_PTEST): New unspec.
8167 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8168 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8169 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8170 * config/aarch64/aarch64-sve.md: Add a new section describing the
8171 handling of UNSPEC_PTEST.
8172 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8173 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8174 (ptest_ptrue<mode>): Replace with...
8175 (aarch64_ptest<mode>): ...this new pattern.
8176 (cbranch<mode>4): Update after above changes.
8177 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8178 UNSPEC_PTEST_PTRUE.
8179 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8180 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8181 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8182
8183 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8184
8185 PR lto/91287
8186 * builtins.c (builtin_with_linkage_p): New function.
8187 * builtins.h (builtin_with_linkage_p): New function.
8188 * symtab.c (write_symbol): Remove redundant assert.
8189 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8190 Remove FIXME and use builtin_with_linkage_p.
8191
8192 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8193
8194 PR middle-end/91421
8195 * tree-core.h (function_decl::function_code): Change type to
8196 unsigned int.
8197 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8198 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8199 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8200 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8201 is BUILT_IN_NORMAL.
8202 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8203 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8204 (fndecl_built_in_p): Change the type of the "name" argument to
8205 unsigned int.
8206 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8207 after check for DECL_BUILT_IN_CLASS.
8208 * cgraphclones.c (build_function_decl_skip_args): Use
8209 set_decl_built_in_function.
8210 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8211 * ipa-split.c (split_function): Likewise.
8212 * langhooks.c (add_builtin_function_common): Likewise.
8213 * omp-simd-clone.c (simd_clone_create): Likewise.
8214 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8215 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8216 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8217 DECL_FUNCTION_CODE.
8218 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8219 instead of DECL_FUNCTION_CODE.
8220 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8221 instead of DECL_FUNCTION_CODE.
8222 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8223 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8224 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8225 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8226 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8227 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8228 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8229 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8230 (alpha_gimple_fold_builtin): Likewise.
8231 * config/arc/arc.c (arc_expand_builtin): Likewise.
8232 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8233 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8234 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8235 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8236 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8237 * config/frv/frv.c (frv_expand_builtin): Likewise.
8238 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8239 (gcn_expand_builtin): Likewise.
8240 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8241 (fold_builtin_cpu): Likewise.
8242 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8243 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8244 (ix86_gimple_fold_builtin): Likewise.
8245 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8246 (ia64_expand_builtin): Likewise.
8247 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8248 * config/mips/mips.c (mips_expand_builtin): Likewise.
8249 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8250 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8251 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8252 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8253 * config/pa/pa.c (pa_expand_builtin): Likewise.
8254 * config/pru/pru.c (pru_expand_builtin): Likewise.
8255 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8256 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8257 Likewise.
8258 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8259 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8260 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8261 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8262 (rs6000_builtin_reciprocal): Likewise.
8263 * config/rx/rx.c (rx_expand_builtin): Likewise.
8264 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8265 * config/s390/s390.c (s390_expand_builtin): Likewise.
8266 * config/sh/sh.c (sh_expand_builtin): Likewise.
8267 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8268 (sparc_fold_builtin): Likewise.
8269 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8270 * config/spu/spu.c (spu_expand_builtin): Likewise.
8271 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8272 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8273 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8274 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8275 (xtensa_expand_builtin): Likewise.
8276
8277 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8278
8279 PR middle-end/91421
8280 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8281 before the DECL_FUNCTION_CODE.
8282 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8283 to check for a BUILT_IN_ALLOCA call.
8284 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8285 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8286 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8287 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8288 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8289 for BUILT_IN_NORMAL functions.
8290 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8291 test for BUILT_IN_TM_ABORT.
8292 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8293 to check for a BUILT_IN_STACK_RESTORE call.
8294 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8295 * tree-ssa-threadedge.c
8296 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8297 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8298 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8299 test for a BUILT_IN_NORMAL call instead of a negative test for
8300 an internal function call.
8301
8302 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8303
8304 * tree.h (build_vector_a_then_b): Declare.
8305 * tree.c (build_vector_a_then_b): New function.
8306 * fold-const-call.c (fold_while_ult): Likewise.
8307 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8308 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8309 (aarch64_svpattern): New enum.
8310 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8311 constants through aarch64_expand_mov_immediate.
8312 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8313 than general_operand as the predicate for operand 1.
8314 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8315 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8316 insn_type.
8317 (simd_immediate_info::simd_immediate_info): New overload that
8318 takes a scalar_int_mode and an svpattern.
8319 (simd_immediate_info::u): Add a "pattern" field.
8320 (svpattern_token): New function.
8321 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8322 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8323 (aarch64_sve_move_pred_via_while): New functions.
8324 (aarch64_expand_mov_immediate): Try using
8325 aarch64_sve_move_pred_via_while for predicates that contain N ones
8326 followed by M zeros but that do not correspond to a VLnnn pattern.
8327 (aarch64_sve_pred_valid_immediate): New function.
8328 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8329 with PTRUE and PFALSE.
8330 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8331 forms.
8332
8333 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8334
8335 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8336 flag.
8337 (darwin_override_options): Likewise.
8338 * config/darwin.h: Likewise.
8339 * config/darwin.opt: Likewise.
8340 * config/i386/i386.c (output_pic_addr_const): Likewise.
8341 * config/rs6000/darwin.h: Likewise.
8342 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8343 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8344 ... this TARGET_MACHO_SYMBOL_STUBS.
8345 (FUNCTION_PROFILER):Likewise.
8346 * config/i386/i386.h: Likewise.
8347
8348 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8349
8350 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8351 <case E_V2SImode>: Use vec_extr path for
8352 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8353 <case E_V8QImode>: Ditto.
8354 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8355 Use SWI48 mode iterator. Use %k to output operand 0.
8356 (*mmx_pextrw): New insn pattern.
8357 (*mmx_pextrb): Ditto.
8358 (*mmx_pextrb_zext): Ditto.
8359
8360 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8361
8362 * target.def (libc_has_function, libc_has_fast_function): Improve
8363 documentation strings.
8364 * doc/tm.texi: Regenerate.
8365
8366 2019-08-13 Caroline Tice <cmtice@google.com>
8367
8368 PR other/91396
8369 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8370 vtv_end.o or vtv_end_preinit.o files if !static.
8371
8372 2019-08-13 Olivier Hainque <hainque@adacore.com>
8373
8374 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8375
8376 2019-08-13 Olivier Hainque <hainque@adacore.com>
8377
8378 * rtlanal.c (tablejump_casesi_pattern): New function, to
8379 determine if a tablejump insn is a casesi dispatcher. Extracted
8380 from patch_jump_insn.
8381 * rtl.h (tablejump_casesi_pattern): Declare.
8382 * cfgrtl.c (patch_jump_insn): Use it.
8383 * dwarf2cfi.c (create_trace_edges): Use it.
8384
8385 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8386
8387 PR target/81800
8388 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8389 operand is larger than a long int.
8390
8391 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8392
8393 * machmode.h (opt_mode::else_mode): New function.
8394 (opt_mode::else_blk): Use it.
8395 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8396 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8397 (aarch64_gen_stepped_int_parallel): Likewise.
8398 (aarch64_stepped_int_parallel_p): Likewise.
8399 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8400 argument.
8401 * config/aarch64/aarch64.c
8402 (aarch64_expand_sve_widened_duplicate): Delete.
8403 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8404 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8405 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8406 argument. Use early returns in the !CONST_INT_P handling.
8407 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8408 than handling some inline.
8409 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8410 from...
8411 (aarch64_simd_container_mode): ...here.
8412 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8413 (aarch64_sve_ld1rq_operand_p): New functions.
8414 * config/aarch64/predicates.md (descending_int_parallel)
8415 (aarch64_sve_ld1rq_operand): New predicates.
8416 * config/aarch64/constraints.md (UtQ): New constraint.
8417 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8418 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8419 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8420 (@aarch64_sve_reinterpret<mode>): New expander.
8421 (*aarch64_sve_reinterpret<mode>): New pattern.
8422 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8423 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8424 (*sve_ld1rq<Vesize>): Replace with...
8425 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8426
8427 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8428
8429 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8430 16:12.
8431
8432 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8433
8434 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8435 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8436 (msp430_check_path_for_devices): New.
8437 (parse_devices_csv_1): New.
8438 (parse_devices_csv): New.
8439 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8440 MCU data in devices.csv before using the hard-coded data.
8441 Warn if devices.csv isn't found and the MCU wasn't found in the
8442 hard-coded data either.
8443 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8444 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8445 Search for devices.csv on -I and -L paths.
8446 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8447 msp430_set_driver_var.
8448 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8449 -mdevices-csv-loc=.
8450 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8451 searched for devices.csv.
8452 (mwarn-devices-csv): Document option.
8453
8454 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8455
8456 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8457 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8458 Use a single Dn alternative instead of separate Dz and Dm
8459 alternatives. Use aarch64_output_sve_move_immediate.
8460 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8461 function.
8462 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8463 for predicates too.
8464 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8465 (aarch64_output_ptrue): Delete.
8466
8467 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8468
8469 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8470 INDEX.
8471 (simd_immediate_info::value, simd_immediate_info::step)
8472 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8473 with...
8474 (simd_immediate_info::u): ...this new union.
8475 (simd_immediate_info::simd_immediate_info): Update accordingly.
8476 (aarch64_output_simd_mov_immediate): Likewise.
8477 (aarch64_output_sve_mov_immediate): Likewise.
8478
8479 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8480
8481 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8482 extra_gcc_objs.
8483 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8484 (msp430_select_cpu): New spec function.
8485 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8486 MCU data.
8487 * config/msp430/msp430-devices.c: New file.
8488 * config/msp430/msp430-devices.h: New file.
8489 * config/msp430/msp430.c: Remove msp430_mcu_data.
8490 (msp430_option_override): Use msp430_extract_mcu_data to extract
8491 MCU data.
8492 (msp430_use_f5_series_hwmult): Likewise.
8493 (use_32bit_hwmult): Likewise.
8494 (msp430_no_hwmult): Likewise.
8495 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8496 assembler.
8497 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8498 and -mcpu option.
8499 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8500 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8501 Remove hard-coded MCU multilib data.
8502
8503 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8504
8505 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8506 based on the mode instead of testing properties of it.
8507
8508 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8509
8510 * doc/md.texi: Document the x and y constraints for AArch64.
8511 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8512 (FP_LO8_REGS): New reg_class.
8513 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8514 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8515 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8516 * config/aarch64/predicates.md (aarch64_simd_register): Use
8517 FP_REGNUM_P instead of checking the classes manually.
8518 * config/aarch64/constraints.md (y): New constraint.
8519
8520 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8521
8522 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8523 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8524 * config/aarch64/aarch64-simd.md
8525 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8526 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8527 from the asm template.
8528 * config/aarch64/aarch64-sve.md
8529 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8530 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8531 from the asm template.
8532 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8533 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8534 from the asm template.
8535 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8536
8537 2019-08-13 Martin Liska <mliska@suse.cz>
8538
8539 * value-prof.c (gimple_ic_transform): Add new line.
8540 Print details with MSG_NOTE.
8541
8542 2019-08-13 Martin Liska <mliska@suse.cz>
8543
8544 * doc/invoke.texi: Document automatic detection of jobserver.
8545 * lto-wrapper.c (run_gcc): Detect jobserver always.
8546
8547 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8548
8549 * config/i386/i386-expand.c (ix86_expand_vector_set)
8550 <case E_V2SImode>: Use vec_merge path for
8551 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8552 <case E_V8QImode>: Ditto.
8553 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8554 (*mmx_pinsrb): Ditto.
8555
8556 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8557
8558 PR target/83250
8559 PR target/91340
8560 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8561 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8562 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8563 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8564 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8565
8566 2019-08-12 Richard Biener <rguenther@suse.de>
8567
8568 PR lto/91375
8569 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8570 flag_devirtualize.
8571
8572 2019-08-12 Richard Biener <rguenther@suse.de>
8573
8574 PR driver/91130
8575 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8576 lang_mask option, always use CL_DRIVER.
8577 (get_options_from_collect_gcc_options): Adjust.
8578 (find_and_merge_options): Likewise.
8579 (run_gcc): Likewise.
8580
8581 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8582
8583 * ipa-predicate.c (add_condition): Restore inverted test.
8584
8585 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8586
8587 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8588 (enum omp_clause_device_type_kind): New enum.
8589 (struct tree_omp_clause): Add subcode.device_type_kind.
8590 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8591 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8592 for device_type clause.
8593 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8594 * tree-pretty-print.c (dump_omp_clause): Likewise.
8595
8596 PR target/91408
8597 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8598 vector_operand.
8599
8600 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8601
8602 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8603 handling spilled pseudos.
8604
8605 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8606
8607 PR target/91386
8608 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8609 to preserve the contents of the original insns.
8610
8611 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8612
8613 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8614 (addsi3_compare_op2): Likewise.
8615
8616 2019-08-09 Martin Liska <mliska@suse.cz>
8617
8618 * alias.c (alias_ptr_types_compatible_p): Strengten
8619 type comparison in LTO mode.
8620
8621 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8622
8623 PR middle-end/90313
8624 * tree-tailcall.c (find_tail_calls): Reject calls that might
8625 read from an escaped RESULT_DECL.
8626
8627 2019-08-09 Martin Liska <mliska@suse.cz>
8628
8629 * doc/invoke.texi: Document the option value.
8630 * lto-wrapper.c (run_gcc): Set auto_parallel
8631 only with -flto=auto.
8632
8633 2019-08-09 Martin Liska <mliska@suse.cz>
8634
8635 * opts.c (common_handle_option): Error for an invalid argument
8636 to -flto=.
8637
8638 2019-08-09 Martin Liska <mliska@suse.cz>
8639
8640 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8641 use dump_printf to report optimization.
8642 (sem_variable::merge): Likwise.
8643 (sem_item_optimizer::merge_classes): Use dump_printf to report
8644 ICF hits.
8645
8646 2019-08-09 Martin Liska <mliska@suse.cz>
8647
8648 * value-prof.c (gimple_divmod_fixed_value_transform):
8649 Use dump_printf_loc.
8650 (gimple_mod_pow2_value_transform): Likewise.
8651 (gimple_mod_subtract_transform): Likewise.
8652 (init_node_map): Likewise.
8653 (gimple_ic_transform): Likewise.
8654 (gimple_stringops_transform): Likewise.
8655
8656 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8657
8658 * doc/extend.texi: Add const qualifier to ld intrinsics.
8659
8660 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8661
8662 * config/rs6000/dfp.md (D64_D128): Rename to ...
8663 (DDTD): ... this, throughout.
8664 (dfp_suffix): Rename to ...
8665 (q): ... this, throughout.
8666
8667 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8668
8669 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8670 (dfp_suffix): Ditto.
8671 (adddd3, addtd3): Merge to ...
8672 (add<mode>3 for D64_D128): ... this.
8673 (subdd3, subtd3): Merge to ...
8674 (sub<mode>3 for D64_D128): ... this.
8675 (muldd3, multd3): Merge to ...
8676 (mul<mode>3 for D64_D128): ... this.
8677 (divdd3, divtd3): Merge to ...
8678 (div<mode>3 for D64_D128): ... this.
8679 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8680 (*cmp<mode>_internal1 for D64_D128): ... this.
8681 (ftruncdd2, ftrunctd2): Merge to ...
8682 (ftrunc<mode>2 for D64_D128): ... this.
8683 (fixdddi2, fixtddi2): Merge to ...
8684 (fix<mode>di2 for D64_D128): ... this.
8685
8686 2019-08-08 Jim Wilson <jimw@sifive.com>
8687
8688 PR target/91229
8689 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8690 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8691 Pass into recursive call.
8692 (riscv_flatten_aggregate_argument): New arg. Pass to
8693 riscv_flatten_aggregate_field.
8694 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8695 riscv_flatten_aggregate_argument twice, with false and true as last
8696 arg. Process result twice. Compare results and warn if different.
8697 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8698
8699 2019-08-08 Martin Liska <mliska@suse.cz>
8700
8701 PR bootstrap/91352
8702 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8703 * lto-wrapper.c (jobserver_active_p): Likewise.
8704
8705 2019-08-08 Martin Liska <mliska@suse.cz>
8706
8707 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8708 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8709 (create_version_clone_with_body): Likewise.
8710
8711 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8712
8713 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8714 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8715 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8716 GOVD_EXPLICIT flags.
8717 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8718 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8719 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8720 call install_var_field with mask 11 instead of 3.
8721 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8722 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8723
8724 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8725
8726 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8727 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8728
8729 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8730
8731 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8732 MOVPRFX alternatives. Make the GPR alternatives more expensive
8733 than the FPR ones.
8734
8735 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8736
8737 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8738 Disparage the GPR alternative relative to the FPR one.
8739 Fix handling of 8-bit and 16-bit FPR values.
8740
8741 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8742
8743 * config/aarch64/iterators.md (BITWISEV): Delete.
8744 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8745 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8746 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8747 UNSPEC_FMINNMV, UNSPEC_FMINV.
8748 (bit_reduc_op): Delete.
8749 (sve_int_op): New int attribute.
8750 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8751 UNSPEC_FMINNMV, UNSPEC_FMINV.
8752 * config/aarch64/aarch64-sve.md
8753 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8754 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8755 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8756 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8757 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8758 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8759 new patterns.
8760 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8761 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8762 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8763 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8764 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8765 new patterns.
8766
8767 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8768
8769 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8770 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8771 (fms<mode>4, *fms<mode>4): Replace with...
8772 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8773 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8774 Use unspecs instead of rtx codes.
8775 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8776 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8777
8778 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8779
8780 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8781 int iterator.
8782 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8783 * config/aarch64/aarch64-sve.md
8784 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8785 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8786 use a single unspec for the rhs.
8787 (*<su><maxmin><mode>3): Delete.
8788 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8789
8790 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8791
8792 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8793 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8794 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8795 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8796 (optab, sve_fp_op): Handle them.
8797 (SVE_FP_UNARY): Delete.
8798 (optab): Remove sqrt entry.
8799 (sve_fp_op): Remove neg, abs and sqrt entries.
8800 (SVE_COND_FP_UNARY): New int iterator.
8801 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8802 (*<frint_pattern><mode>2): Delete.
8803 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8804 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8805 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8806 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8807
8808 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8809
8810 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8811
8812 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8813
8814 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8815 (UNSPEC_COND_FADD): ...this.
8816 (UNSPEC_COND_SUB): Rename to...
8817 (UNSPEC_COND_FSUB): ...this.
8818 (UNSPEC_COND_MUL): Rename to...
8819 (UNSPEC_COND_FMUL): ...this.
8820 (UNSPEC_COND_DIV): Rename to...
8821 (UNSPEC_COND_FDIV): ...this.
8822 (UNSPEC_COND_MAX): Rename to...
8823 (UNSPEC_COND_FMAXNM): ...this.
8824 (UNSPEC_COND_MIN): Rename to...
8825 (UNSPEC_COND_FMINNM): ...this.
8826 (UNSPEC_COND_LT): Rename to...
8827 (UNSPEC_COND_FCMLT): ...this.
8828 (UNSPEC_COND_LE): Rename to...
8829 (UNSPEC_COND_FCMLE): ...this.
8830 (UNSPEC_COND_EQ): Rename to...
8831 (UNSPEC_COND_FCMEQ): ...this.
8832 (UNSPEC_COND_NE): Rename to...
8833 (UNSPEC_COND_FCMNE): ...this.
8834 (UNSPEC_COND_GE): Rename to...
8835 (UNSPEC_COND_FCMGE): ...this.
8836 (UNSPEC_COND_GT): Rename to...
8837 (UNSPEC_COND_FCMGT): ...this.
8838 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8839 (sve_fp_op_rev): Update accordingly.
8840 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8841
8842 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8843
8844 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8845 banner comments.
8846 * config/aarch64/check-sve-md.awk: New file.
8847 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8848 (insn-conditions.md): Depend on it.
8849
8850 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8851
8852 PR target/91385
8853 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8854 (*negsi2_cmpz_zext): Ditto.
8855
8856 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8857
8858 * config/aarch64/iterators.md (commutative): Remove.
8859
8860 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8861
8862 PR driver/91130
8863 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8864 processing COLLECT_GCC_OPTIONS.
8865 (run_gcc): Likewise.
8866
8867 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8868
8869 PR tree-optimization/91109
8870 * lra-remat.c (update_scratch_ops): Remove assignment of the
8871 hard register.
8872
8873 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8874
8875 * data-streamer.h (streamer_write_poly_uint64): Declare.
8876 (streamer_read_poly_uint64): Likewise.
8877 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8878 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8879 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8880 (add_condition): Take a poly_int64 size.
8881 * ipa-predicate.c (add_condition): Likewise.
8882 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8883 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8884 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8885 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8886 condition::size as a poly_int64.
8887 (unmodified_parm_1): Take a poly_int64 size pointer.
8888 (unmodified_parm): Likewise.
8889 (unmodified_parm_or_parm_agg_item): Likewise.
8890 (set_cond_stmt_execution_predicate): Update accordingly.
8891 (set_switch_stmt_execution_predicate): Likewise.
8892 (will_be_nonconstant_expr_predicate): Likewise.
8893 (will_be_nonconstant_predicate): Likewise.
8894 (inline_read_section): Stream condition::size as a poly_int.
8895 (ipa_fn_summary_write): Likewise.
8896
8897 2019-08-07 Martin Liska <mliska@suse.cz>
8898
8899 * fold-const.c (twoval_comparison_p): Replace int
8900 with bool as a return type.
8901 (simple_operand_p): Likewise.
8902 (operand_equal_p): Replace int with bool as a return type.
8903 * fold-const.h (operand_equal_p): Likewise.
8904
8905 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8906
8907 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8908 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8909 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8910 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8911 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8912 * tree-pretty-print.c (dump_omp_clause): Likewise.
8913 * tree-nested.c (convert_nonlocal_omp_clauses,
8914 convert_local_omp_clauses): Likewise.
8915 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8916 Likewise.
8917 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8918 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8919 clause with array or reference to array types, no matter what type
8920 except for reference it has.
8921
8922 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8923
8924 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8925
8926 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8927
8928 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8929 (arch_canonicalize): Support rv32g and rv64g and fix error
8930 handling.
8931
8932 2019-08-06 Martin Liska <mliska@suse.cz>
8933
8934 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8935 and DECL_IS_OPERATOR_DELETE_P.
8936
8937 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8938
8939 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8940 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8941 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8942 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8943 (gimplify_omp_for): Don't do C++ random access iterator clause
8944 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8945 don't predetermine the artificial iterator in case of C++ random
8946 access iterators as lastprivate, but private. For OMP_LOOP, force
8947 bind expr around simd body and force for_pre_body before the
8948 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8949 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8950 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8951 diff var of C++ random access iterators. Handle
8952 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8953 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8954 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8955 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8956 * omp-low.c (lower_rec_input_clauses): For
8957 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8958 variables instead of default constructing them.
8959 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8960 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8961 is_taskloop_ctx check from the assert to the guarding condition.
8962
8963 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8964
8965 * config/riscv/multilib-generator: (canonical_order): New.
8966 (arch_canonicalize): Dito.
8967 Apply arch_canonicalize for alts.
8968
8969 2019-08-05 Martin Sebor <msebor@redhat.com>
8970
8971 * doc/extend.texi (Common Variable Attributes): Document alias
8972 attribute.
8973
8974 2019-08-05 Marek Polacek <polacek@redhat.com>
8975
8976 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8977 * doc/invoke.texi: Document -Wcomma-subscript.
8978
8979 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8980
8981 * tree-core.h (tree_function_decl): Make function_code an
8982 independent field. Group the remaining bitfields into bytes
8983 and move decl_type so that it contines to be at a byte boundary.
8984 Leave 12 bits for future expansion.
8985
8986 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8987
8988 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8989 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8990 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8991 IFN_MASK_STORE.
8992
8993 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8994
8995 * gimple.h (gimple_move_vops): Declare.
8996 * gimple.c (gimple_move_vops): New function
8997 * gimple-fold.c (replace_call_with_call_and_fold)
8998 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8999 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9000 (gimple_fold_call): Use it.
9001 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9002 * tree-call-cdce.c (use_internal_fn): Likewise.
9003 * tree-if-conv.c (predicate_load_or_store): Likewise.
9004 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9005 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9006 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9007 (update_call_from_tree): Likewise.
9008 * tree-vect-stmts.c (vectorizable_load): Likewise.
9009 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9010
9011 2019-08-05 Martin Liska <mliska@suse.cz>
9012
9013 PR c++/91334
9014 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9015 with not arguments.
9016 (eliminate_unnecessary_stmts): Likewise.
9017
9018 2019-08-05 Richard Biener <rguenther@suse.de>
9019
9020 PR middle-end/91169
9021 * fold-const.c (get_array_ctor_element_at_index): Create
9022 offset_ints according to the sign of the index type and treat
9023 that as signed if it is obviously so.
9024
9025 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR target/91341
9028 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9029 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9030 _mm256_storeu2_m128i): New function.
9031
9032 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9033
9034 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9035 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9036
9037 2019-08-05 Alan Modra <amodra@gmail.com>
9038
9039 PR target/91349
9040 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9041 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9042
9043 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9044
9045 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9046 bug that was fixed in Tcl 8.6.1.
9047
9048 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9049
9050 * config/rs6000/future.md: New file.
9051 * config/rs6000/rs6000.md: Include future.md.
9052 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9053
9054 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9055
9056 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9057 check to use targetm.slow_unaligned_access instead.
9058
9059 * function.c (assign_param_data_one): Remove unused data members.
9060
9061 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9062
9063 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9064 build_distinct_type_copy.
9065 (simd_clone_adjust_argument_types): Ditto.
9066 (simd_clone_adjust): Call build_distinct_type_copy here.
9067 (expand_simd_clones): Ditto.
9068
9069 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9070
9071 PR target/91201
9072 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9073
9074 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9075
9076 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9077 from 'const void *'.
9078 (sort_locs_in_loop_postorder_cmp): Likewise.
9079
9080 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9081
9082 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9083 (hot-bb-count-ws-permille): Likewise.
9084 (hot-bb-frequency-fraction): Likewise.
9085 (unlikely-bb-count-fraction): Likewise.
9086 * params.def (hot-bb-count-fraction): Rework description.
9087 (hot-bb-count-ws-permille): Likewise.
9088 (hot-bb-frequency-fraction): Likewise.
9089 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9090 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9091
9092 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9093
9094 PR target/91323
9095 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9096 Return false.
9097
9098 2019-08-02 Richard Biener <rguenther@suse.de>
9099
9100 * vec.h (vec::sort): Add gcc_qsort_r support.
9101 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9102 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9103 to gcc_qsort_r style callback.
9104 (sort_locs_in_loop_postorder_cmp): Likewise.
9105 (analyze_memory_references): Use gcc_sort_r interfaces.
9106 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9107
9108 2019-08-02 Martin Liska <mliska@suse.cz>
9109
9110 PR lto/91313
9111 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9112 to detect working job server.
9113 (driver::detect_jobserver): Test whether jobserver
9114 is active from GCC driver. That will prevent situation where
9115 GCC is invoked from a LD plugin and the linker already uses
9116 file descriptors suggested by make. That leads to a wrong
9117 detection.
9118 * gcc.h (driver): Add detect_jobserver.
9119 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9120 not scanning for --jobserver-auth prefix.
9121
9122 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9123
9124 PR tree-optimization/91201
9125 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9126 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9127 extraction.
9128
9129 2019-08-01 Martin Sebor <msebor@redhat.com>
9130
9131 PR c++/90947
9132 * tree.c (type_initializer_zero_p): Define.
9133 * tree.h (type_initializer_zero_p): New function.
9134
9135 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9136
9137 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9138
9139 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9140
9141 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9142 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9143 * predict.c (maybe_hot_count_p): Likewise.
9144 (maybe_hot_bb_p): Tweak comment.
9145 (maybe_hot_edge_p): Likewise.
9146 (probably_never_executed): Likewise. Minor tweak.
9147 (probably_never_executed_bb_p): Likewise.
9148 (unlikely_executed_edge_p): Likewise.
9149 (probably_never_executed_edge_p): Likewise.
9150 (optimize_function_for_size_p): Likewise.
9151 (optimize_function_for_speed_p): Likewise.
9152 (function_optimization_type): Likewise.
9153 (optimize_bb_for_size_p): Likewise.
9154 (optimize_bb_for_speed_p): Likewise.
9155 (bb_optimization_type): Likewise.
9156 (optimize_edge_for_size_p): Likewise.
9157 (optimize_edge_for_speed_p): Likewise.
9158 (optimize_insn_for_size_p): Likewise.
9159 (optimize_insn_for_speed_p): Likewise.
9160 (optimize_loop_for_size_p): Likewise.
9161 (optimize_loop_for_speed_p): Likewise.
9162 (optimize_loop_nest_for_speed_p): Likewise.
9163 (optimize_loop_nest_for_size_p): Likewise.
9164 (predictable_edge_p): Likewise.
9165 (handle_missing_profiles): Minor tweak.
9166
9167 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9168
9169 * config/rs6000/predicates.md (pcrel_external_address): Update
9170 comment.
9171
9172 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9173
9174 PR target/85693
9175 * config/i386/mmx.md (usadv8qi): New expander.
9176
9177 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9178
9179 PR c++/90590
9180 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9181 with reserved names that are in a system header.
9182
9183 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9184
9185 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9186 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9187 (*vec_extractv2si_0_zext): Ditto.
9188 (*vec_extractv2si_1): Add (rm,x) alternative.
9189 (*vec_extractv2si_1_zext): New insn pattern.
9190 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9191 insn constraint.
9192
9193 2019-08-01 Richard Biener <rguenther@suse.de>
9194
9195 * domwalk.c (bb_postorder): Remove static variable.
9196 (cmp_bb_postorder): Adjust.
9197 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9198 (dom_walker::walk): Adjust.
9199
9200 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9201
9202 * sort.cc (sort_r_ctx): New struct.
9203 (reorder23): Make templated on context type.
9204 (reorder45): Ditto.
9205 (cmp1): Ditto. Adjust signature.
9206 (netsort): Ditto.
9207 (mergesort): Ditto.
9208 [CHECKING_P] (cmp2to3): New static function. Use it...
9209 (gcc_qsort) [CHECKING_P]: ...here.
9210 (gcc_sort_r): New function.
9211 * system.h (sort_r_cmp_fn): New function typedef.
9212 (qsort_chk): Adjust signature.
9213 (gcc_sort_r): Declare.
9214 * vec.c (qsort_chk_error): Adjust.
9215 (qsort_chk): Adjust.
9216
9217 2019-08-01 Richard Biener <rguenther@suse.de>
9218
9219 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9220 (compute_antic): Localize it here.
9221
9222 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9223
9224 * common/config/riscv/riscv-common.c: Check -march string ends
9225 with null.
9226
9227 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9228
9229 * ipa-devirt.c (type_warning_cmp): Make static.
9230 (decl_warning_cmp): Ditto.
9231
9232 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9233
9234 PR target/91050
9235 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9236 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9237 use of deleted rs6000_dejagnu_cpu_index variable.
9238 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9239 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9240 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9241 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9242 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9243 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9244
9245 2019-07-31 Richard Biener <rguenther@suse.de>
9246
9247 PR tree-optimization/91280
9248 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9249 Decompose MEM_REF manually for offset handling.
9250
9251 2019-07-31 Richard Biener <rguenther@suse.de>
9252
9253 PR tree-optimization/91293
9254 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9255 of reduction stmts.
9256
9257 2019-07-31 Matt Thomas <matt@3am-software.com>
9258 Nick Hudson <nick@nthcliff.demon.co.uk>
9259 Matthew Green <mrg@eterna.com.au>
9260 Maya Rashish <coypu@sdf.org>
9261
9262 * config.gcc (hppa*-*-netbsd*): New target.
9263 * config/pa/pa-netbsd.h: New file.
9264 * config/pa/pa32-netbsd.h: New file.
9265
9266 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9267
9268 PR tree-optimization/91201
9269 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9270
9271 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9272
9273 * config/gcn/gcn-valu.md
9274 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9275 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9276 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9277 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9278 struct ilist. Add nops for delayeduse insns.
9279 * config/gcn/gcn.md (delayeduse): New attribute.
9280 (*movbi): Remove s_waitcnt from stores.
9281 (*mov<mode>_insn): Likewise.
9282 (*movti_insn): Likewise. Add delayeduse attribute.
9283 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9284 (atomic_store<mode>): Remove or adjust s_waitcnt.
9285
9286 2019-07-31 Richard Biener <rguenther@suse.de>
9287
9288 * vr-values.h (vr_values::swap_vr_value): New.
9289 (vr_values::free_value_range): likewise.
9290 * vr-values.c (vr_values::swap_vr_value): Implement.
9291 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9292 Do not return a range or take a var.
9293 (evrp_range_analyzer::stack): Change back to recording a non-const
9294 value_range *.
9295 * gimple-ssa-evrp-analyze.c
9296 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9297 value-range.
9298 (evrp_range_analyzer::pop_to_marker): Adjust.
9299 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9300 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9301 no longer needed value-range.
9302
9303 2019-07-31 Martin Liska <mliska@suse.cz>
9304
9305 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9306 have size and (or) alignment as 2nd and later arguments.
9307 Mark all of them as necessary.
9308
9309 2019-07-31 Richard Biener <rguenther@suse.de>
9310
9311 PR tree-optimization/91178
9312 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9313 Use tail-recursion.
9314
9315 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9316
9317 PR tree-optimization/91201
9318 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9319 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9320 TARGET_AVX512F.
9321 (reduc_plus_scal_<mode>): Improve formatting by introducing
9322 a temporary.
9323
9324 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9325
9326 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9327 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9328 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9329 (aarch64_init_tme_builtins): New.
9330 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9331 (aarch64_expand_builtin_tme): New.
9332 (aarch64_expand_builtin): Handle TME builtins.
9333 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9334 __ARM_FEATURE_TME when enabled.
9335 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9336 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9337 (TARGET_TME): New.
9338 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9339 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9340 UNSPECV_TCANCEL.
9341 (tstart, ttest, tcommit, tcancel): New instructions.
9342 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9343 (__tcancel, __ttest): New.
9344 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9345 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9346 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9347 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9348 * config/arm/types.md: Add new tme type attr.
9349 * doc/invoke.texi: Document "tme".
9350
9351 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9352
9353 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9354 warn_unused_result attribute.
9355 (cmse_check_address_range): Add warn_unused_result attribute.
9356
9357 2019-07-31 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/91257
9360 * tree-vrp.c (union_ranges): Unify equality and less tests
9361 by using compare_values. Re-order cheap tests first.
9362
9363 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR middle-end/91301
9366 * gimplify.c (gimplify_omp_for): If for class iterator on
9367 distribute parallel for there is no data sharing clause
9368 on inner_for_stmt, look for private clause on combined
9369 parallel too and if found, move it to inner_for_stmt.
9370
9371 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9372
9373 * lra-int.h (lra_operand_data): Remove early_clobber field.
9374 (lra_insn_reg): Likewise.
9375 * lra.c (debug_operand_data): Update accordingly.
9376 (setup_operand_alternative): Likewise.
9377 (new_insn_reg): Likewise. Remove early_clobber parameter.
9378 (collect_non_operand_hard_regs): Update call accordingly.
9379 Don't assign to lra_insn_reg::early_clobber.
9380 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9381 and update calls to new_insn_reg.
9382 (lra_update_insn_regno_info): Update calls accordingly.
9383 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9384 alternative number as a parameter and test whether the operand
9385 is earlyclobbered in that particular alternative.
9386 (process_alt_operands): Update call accordingly. Use per-alternative
9387 checks for earyclobber here too.
9388 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9389 against zero for IRA_UNKNOWN_ALT.
9390
9391 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9392
9393 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9394
9395 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9396
9397 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9398 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9399
9400 2019-07-30 Martin Liska <mliska@suse.cz>
9401
9402 PR ipa/89330
9403 * cgraph.c (cgraph_edge::make_direct): Use
9404 edge->indirect_unknown_callee as edge->resolve_speculation can
9405 deallocate edge which is this pointer.
9406
9407 2019-07-30 Richard Biener <rguenther@suse.de>
9408
9409 PR tree-optimization/91257
9410 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9411
9412 2019-07-30 Martin Liska <mliska@suse.cz>
9413
9414 * doc/invoke.texi: Document new behavior.
9415 * lto-wrapper.c (cpuset_popcount): New function
9416 is a copy of libgomp/config/linux/proc.c.
9417 (init_num_threads): Likewise.
9418 (run_gcc): Automatically detect core count for -flto.
9419 (jobserver_active_p): New function.
9420
9421 2019-07-30 Richard Biener <rguenther@suse.de>
9422
9423 PR tree-optimization/91257
9424 * bitmap.h (bitmap_ior_into_and_free): Declare.
9425 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9426 whether to add the unliked element to the freelist.
9427 (bitmap_list_insert_element_after): Add defaulted param for
9428 an already allocated element.
9429 (bitmap_ior_into_and_free): New function.
9430 * tree-ssa-structalias.c (condense_visit): Reduce the
9431 ponts-to and edge bitmaps of the SCC members in a
9432 logarithmic fashion rather than all to one.
9433
9434 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9435
9436 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9437 parameter. When nonnull, make sure that the addition or subtraction
9438 has the same condition.
9439 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9440 for CFN_COND_MUL too.
9441
9442 2019-07-30 Richard Biener <rguenther@suse.de>
9443
9444 PR tree-optimization/91291
9445 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9446 constant values.
9447
9448 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9449
9450 PR middle-end/91216
9451 * omp-low.c (global_nonaddressable_vars): New variable.
9452 (use_pointer_for_field): For global decls, if they are non-addressable,
9453 remember it in the global_nonaddressable_vars bitmap, if they are
9454 addressable and in the global_nonaddressable_vars bitmap, ignore their
9455 TREE_ADDRESSABLE bit.
9456 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9457 vars in global_nonaddressable_vars bitmap.
9458 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9459
9460 PR target/91150
9461 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9462 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9463 comparison to unsigned HOST_WIDE_INT before shifting it left.
9464
9465 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9466
9467 * config/i386/i386.md (movstrict<mode>): Use register_operand
9468 predicate for operand 0. Add expander condition. Assert that
9469 operand 0 is a SUBREG RTX.
9470 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9471 Update operand constraints and insn condition.
9472 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9473 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9474 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9475 Update operand 0 constraints.
9476 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9477
9478 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9479
9480 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9481 when -m{code,data}-region are used without -mlarge.
9482 * config/msp430/msp430.c (msp430_option_override): Error when a
9483 non-default code or data region is used without -mlarge.
9484 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9485 attributes when they are used without -mlarge.
9486
9487 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9488
9489 PR target/70320
9490 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9491
9492 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9493
9494 PR middle-end/91242
9495 * wide-int.h (generic_wide_int::sext_elt): New function.
9496 * inchash.h (hash::add_wide_int): Use it instead of elt.
9497
9498 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9499
9500 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9501 CODE_FOR_arm_##.
9502 * config/arm/arm.md (<crc_variant>): Rename to...
9503 (arm_<crc_variant>): ... This.
9504 (<cdp>): Rename to...
9505 (arm_<cdp>): ... This.
9506 (<ldc>): Rename to...
9507 (arm_<ldc>): ... This.
9508 (<stc>): Rename to...
9509 (arm_<stc>): ... This.
9510 (<mcr>): Rename to...
9511 (arm_<mcr>): ... This.
9512 (<mrc>): Rename to...
9513 (arm_<mrc>): ... This.
9514 (<mcrr>): Rename to...
9515 (arm_<mcrr>): ... This.
9516 (<mrrc>): Rename to...
9517 (arm_<mrrc>): ... This.
9518
9519 2019-07-29 Richard Biener <rguenther@suse.de>
9520
9521 PR tree-optimization/91257
9522 * tree-ssa-sccvn.h (struct vn_avail): New.
9523 (struct vn_ssa_aux): Add avail member.
9524 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9525 member, add m_avail_freelist one.
9526 (rpo_elim::~rpo_elim): Remove.
9527 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9528 data structure.
9529 (rpo_elim::eliminate_push_avail): Likewise.
9530 (do_unwind): Likewise.
9531 (do_rpo_vn): Likewise.
9532
9533 2019-07-29 Richard Biener <rguenther@suse.de>
9534
9535 PR tree-optimization/91257
9536 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9537 most cases, instead call compare_values which handles the
9538 symbolic ranges we handle specially.
9539 (compare_values_warnv): Do not call operand_less_p but open-code
9540 the effective fold calls. Avoid converting so much.
9541
9542 2019-07-29 Martin Liska <mliska@suse.cz>
9543
9544 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9545 remove LHS of operator new call. It's handled latter.
9546
9547 2019-07-29 Richard Biener <rguenther@suse.de>
9548
9549 PR tree-optimization/91267
9550 * vr-values.c (vr_values::update_value_range): Add early return
9551 for effectively VARYING lattice entry.
9552
9553 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9554
9555 PR debug/86638
9556 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9557 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9558 necessary if keep_all_vdefs_p is true.
9559 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9560 that keep_all_vdefs_p is false.
9561 (mark_all_reaching_defs_necessary): Likewise.
9562 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9563
9564 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9565
9566 * common.opt (Og): Change the initial value of flag_dse to 0.
9567 * opts.c (default_options_table): Move OPT_ftree_dse from
9568 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9569 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9570 entry before the OPT_ftree_sra entry.
9571 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9572 of flags disabled by Og.
9573
9574 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9575
9576 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9577 variables for -Og.
9578
9579 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9580
9581 * doc/sourcebuild.texi (check-function-bodies): Document.
9582
9583 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9584
9585 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9586 VEC_DUPLICATE of a fixed-length vector even if the result
9587 is variable-length. Likewise fold a duplicate of a
9588 variable-length vector if the variable-length vector is
9589 itself a duplicate of a fixed-length sequence.
9590 (test_vector_ops_duplicate): Test more cases.
9591
9592 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9593
9594 * vector-builder.h (vector_builder): Add a shape template parameter.
9595 (vector_builder::new_unary_operation): New function, generalizing
9596 the old tree_vector_builder function.
9597 (vector_builder::new_binary_operation): Likewise.
9598 (vector_builder::binary_encoded_nelts): Likewise.
9599 * int-vector-builder.h (int_vector_builder): Update template
9600 parameters to vector_builder.
9601 (int_vector_builder::shape_nelts): New function.
9602 * rtx-vector-builder.h (rtx_vector_builder): Update template
9603 parameters to vector_builder.
9604 (rtx_vector_builder::shape_nelts): New function.
9605 (rtx_vector_builder::nelts_of): Likewise.
9606 (rtx_vector_builder::npatterns_of): Likewise.
9607 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9608 * tree-vector-builder.h (tree_vector_builder): Update template
9609 parameters to vector_builder.
9610 (tree_vector_builder::shape_nelts): New function.
9611 (tree_vector_builder::nelts_of): Likewise.
9612 (tree_vector_builder::npatterns_of): Likewise.
9613 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9614 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9615 (tree_vector_builder::new_binary_operation): Delete.
9616 (tree_vector_builder::binary_encoded_nelts): Likewise.
9617 * simplify-rtx.c: Include rtx-vector-builder.h.
9618 (distributes_over_addition_p): New function.
9619 (simplify_const_unary_operation)
9620 (simplify_const_binary_operation): Generalize handling of vector
9621 constants to include variable-length vectors.
9622 (test_vector_ops_series): Add more tests.
9623
9624 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9625
9626 PR lto/91222
9627 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9628 than INDENTIFIER_POINTER.
9629
9630 2019-07-28 Martin Liska <mliska@suse.cz>
9631
9632 PR ipa/89330
9633 * cgraph.c (symbol_table::create_edge): Always allocate
9634 a cgraph_edge.
9635 (symbol_table::free_edge): Store summary_id to
9636 edge_released_summary_ids if != -1;
9637 * cgraph.h (NEXT_FREE_NODE): Remove.
9638 (SET_NEXT_FREE_NODE): Likewise.
9639 (NEXT_FREE_EDGE): Likewise.
9640 (symbol_table::release_symbol): Store summary_id to
9641 cgraph_released_summary_ids if != -1;
9642 (symbol_table::allocate_cgraph_symbol): Always allocate
9643 a cgraph_node.
9644
9645 2019-07-28 Alan Modra <amodra@gmail.com>
9646
9647 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9648 gen_sibcall.
9649
9650 2019-07-28 Alan Modra <amodra@gmail.com>
9651
9652 PR target/91135
9653 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9654 define.
9655 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9656 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9657 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9658
9659 2019-07-28 Alan Modra <amodra@gmail.com>
9660
9661 PR target/91050
9662 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9663 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9664 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9665 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9666 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9667 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9668 in asm_default spec.
9669 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9670 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9671
9672 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9673
9674 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9675
9676 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9677
9678 PR target/89517
9679 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9680 * config/aarch64/aarch64-option-extensions.def: Add new comments
9681 and restore easier to read options.
9682
9683 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9684
9685 * convert.c (convert_to_real_1): Move part of conversion code...
9686 * match.pd: ...To here.
9687
9688 2019-07-26 Martin Jambor <mjambor@suse.cz>
9689
9690 PR ipa/89330
9691 * ipa-inline-transform.c (check_speculations_1): New function.
9692 (push_all_edges_in_set_to_vec): Likewise.
9693 (check_speculations): Use check_speculations_1, new parameter
9694 new_edges.
9695 (inline_call): Pass new_edges to check_speculations.
9696 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9697 NULL.
9698 (speculation_useful_p): Early return true if edge is inlined, remove
9699 later checks for inline_failed.
9700
9701 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9702
9703 PR rtl-optimization/91223
9704 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9705 matching with INOUT operand.
9706
9707 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9708
9709 * stmt.c (expand_case): Try to narrow the index type if it's larger
9710 than a word. Tidy up.
9711
9712 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9713
9714 * cif-code.def (NEVER_CALL): New code.
9715 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9716 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9717
9718 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9719
9720 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9721 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9722
9723 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9724
9725 * ipa-devirt.c (add_type_duplicate): Fix return value.
9726
9727 2019-07-25 Richard Biener <rguenther@suse.de>
9728
9729 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9730 type parameter and use it instead of guessing expression
9731 type from the first operand.
9732 (extract_range_from_binary_expr): Pass expr_type down.
9733
9734 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9735
9736 * config/arm/arm.md (SATrev): Change to code attribute.
9737 (*satsi_<SAT:code>): Adjust for the above.
9738 (*satsi_<SAT:code>_shift): Likewise.
9739
9740 2019-07-25 Richard Biener <rguenther@suse.de>
9741
9742 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9743 Make value_range * temporary const.
9744 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9745 Likewise.
9746 (evrp_range_analyzer::record_ranges_from_): Likewise.
9747 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9748 deal with having recorded a const one.
9749 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9750 Return a const value_range *.
9751 (evrp_range_analyzer::pop_value_range): Likewise.
9752 (evrp_range_analyzer::stack): Record const value_range *s.
9753 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9754 Adjust.
9755 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9756 (format_integer): Likewise.
9757 (sprintf_dom_walker::handle_gimple_call): Likewise.
9758 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9759 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9760 (vrp_prop::get_value_range): Adjust.
9761 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9762 modifying the lattice in-place.
9763 (vrp_prop::visit_stmt): Likewise.
9764 * vr-values.c (vr_values::get_lattice_entry): New private method.
9765 (vr_values::get_value_range): Wrap it and return a const
9766 value_range *.
9767 (vr_values::set_def_to_varying): New.
9768 (vr_values::set_defs_to_varying): Use it.
9769 (vr_values::update_value_range): Likewise.
9770 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9771 (values::op_with_constant_singleton_va): Likewise.
9772 (vr_values::extract_range_for_var_from_co): Likewise.
9773 (vr_values::extract_range_from_ssa_name): Likewise.
9774 (vr_values::extract_range_from_cond_expr): Likewise.
9775 (vr_values::extract_range_basic): Likewise.
9776 (compare_ranges): Take const value_range *, adjust.
9777 (compare_range_with_value): Likewise.
9778 (vrp_valueize): Adjust.
9779 (vrp_valueize_1): Likewise.
9780 (vr_values::get_vr_for_comparison): Return a const value_range *.
9781 (vr_values::compare_name_with_value): Adjust.
9782 (vr_values::compare_names): Likewise.
9783 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9784 Likewise.
9785 (vr_values::vrp_evaluate_conditional): Likewise.
9786 (find_case_label_ranges): Take a const value_range *.
9787 (vr_values::vrp_visit_switch_stmt): Adjust.
9788 (vr_values::extract_range_from_phi_node): Likewise.
9789 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9790 (vr_values::simplify_abs_using_ranges): Likewise.
9791 (test_for_singularity): Take a const value_range *.
9792 (range_fits_type_p): Likewise.
9793 (vr_values::simplify_cond_using_ranges_1): Adjust.
9794 (vr_values::simplify_cond_using_ranges_2): Likewise.
9795 (vr_values::simplify_switch_using_ranges): Likewise.
9796 (vr_values::simplify_float_conversion_usi): Likewise.
9797 (vr_values::two_valued_val_range_p): Likewise.
9798 * vr-values.h (vr_values::get_value_range): Return a const
9799 value_range *.
9800 (vr_values::set_def_to_varying): New.
9801 (vr_values::get_lattice_entry): New private method.
9802 (vr_values::get_vr_for_comparison): Return a const value_range *.
9803
9804 2019-07-25 Martin Liska <mliska@suse.cz>
9805 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9806
9807 PR c++/23383
9808 * common.opt: Add -fallocation-dce
9809 * gimple.c (gimple_call_operator_delete_p): New.
9810 * gimple.h (gimple_call_operator_delete_p): Likewise.
9811 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9812 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9813 DECL_IS_OPERATOR_DELETE_P.
9814 (mark_all_reaching_defs_necessary_1): Likewise.
9815 (propagate_necessity): Likewise.
9816 (eliminate_unnecessary_stmts): Handle
9817 gimple_call_operator_delete_p.
9818 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9819 Add packing of OPERATOR_DELETE.
9820 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9821 Similarly here.
9822 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9823 (DECL_SET_IS_OPERATOR_DELETE): New.
9824 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9825
9826 2019-07-25 Martin Liska <mliska@suse.cz>
9827
9828 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9829 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9830 * coverage.c (coverage_begin_function): Likewise.
9831 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9832 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9833 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9834 (sem_item::hash_referenced_symbol_properties): Likewise.
9835 * lto-streamer-out.c (hash_tree): Likewise.
9836 * predict.c (expr_expected_value_1): Likewise.
9837 * tree-inline.c (expand_call_inline): Likewise.
9838 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9839 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9840 * tree-core.h (enum function_decl_type): New enum.
9841 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9842 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9843 (set_function_decl_type): Likewise.
9844 (DECL_IS_OPERATOR_NEW_P): New.
9845 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9846 (DECL_LAMBDA_FUNCTION): Likewise.
9847 (DECL_LAMBDA_FUNCTION_P): Likewise.
9848 (DECL_IS_OPERATOR_NEW): Remove.
9849 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9850
9851 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9852
9853 * ipa-profile.c (get_most_common_single_value): Use
9854 get_nth_most_common_value.
9855 * profile.c (sort_hist_value): New function.
9856 (compute_value_histograms): Call sort_hist_value to sort the
9857 values after loading from disk.
9858 * value-prof.c (get_most_common_single_value): Rename to ...
9859 get_nth_most_common_value. Add input params n, return
9860 the n_th value and count.
9861 (gimple_divmod_fixed_value_transform): Use
9862 get_nth_most_common_value.
9863 (gimple_ic_transform): Likewise.
9864 (gimple_stringops_transform): Likewise.
9865 * value-prof.h (get_most_common_single_value): Add input params
9866 n, default to 0.
9867
9868 2019-07-25 Richard Biener <rguenther@suse.de>
9869
9870 PR tree-optimization/91236
9871 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9872 size of CONSTRUCTOR write. Fix buffer size we pass to
9873 native_encode_expr.
9874
9875 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9876
9877 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9878 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9879 r273773.
9880
9881 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9882
9883 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9884 explicitly disabled with --disable-initfini-array.
9885
9886 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9887
9888 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9889 if-exists.
9890
9891 2019-07-24 Martin Sebor <msebor@redhat.com>
9892
9893 PR tree-optimization/91183
9894 PR tree-optimization/86688
9895 * builtins.c (compute_objsize): Handle MEM_REF.
9896 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9897 (get_min_string_length): Remove.
9898 (count_nonzero_bytes): New function.
9899 (handle_char_store): Rename...
9900 (handle_store): to this. Handle multibyte stores via integer types.
9901 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9902 function name.
9903
9904 2019-07-24 Martin Sebor <msebor@redhat.com>
9905
9906 PR driver/80545
9907 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9908 (diagnostic_report_diagnostic): Same.
9909 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9910 (diagnostic_context::lang_mask): New data member.
9911 * ipa-pure-const.c (suggest_attribute): Use
9912 lang_hooks.option_lang_mask ().
9913 * opts-common.c (option_enabled): Handle new argument.
9914 (get_option_state): Pass an additional argument.
9915 * opts.c (print_filtered_help): Print supported languages for
9916 unsupported options. Adjust printing of current state.
9917 * opts.h (option_enabled): Add argument.
9918 * toplev.c (print_switch_values): Use lang_mask.
9919 (general_init): Set global_dc->lang_mask.
9920
9921 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9922
9923 PR bootstrap/87030
9924 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9925
9926 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9927
9928 * cgraphunit.c (symbol_table::compile): Start and stop
9929 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9930 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9931
9932 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9933
9934 * gimplify.c (flag_instrument_functions_exclude_p): Include
9935 namespace/class information in the printable name.
9936 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9937 to tokens entered into the vector.
9938
9939 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9940
9941 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9942 (get_static_chain): Call it instead of build_simple_mem_ref.
9943 (get_frame_field): Likewise.
9944 (get_nonlocal_debug_decl): Likewise.
9945 (convert_nonlocal_reference_op): Likewise.
9946
9947 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9948
9949 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9950 declaration.
9951 (arc_compute_frame_size): Millicode is disabled when compiling
9952 ISR.
9953 (arc_return_address_register): Likewise.
9954 (arc_compute_function_type): Likewise.
9955 (arc_compute_frame_size): Likewise.
9956 (secondary_reload_info): Likewise.
9957 (arc_get_unalign): Likewise.
9958 (arc_can_use_return_insn): Declare.
9959 * config/arc/arc.c (AUX_LP_START): Define
9960 (AUX_LP_END): Likewise.
9961 (arc_frame_info): Update gmask member to 64-bit datum.
9962 (GMASK_LEN): Update.
9963 (arc_compute_function_type): Make it static, move it forward.
9964 (arc_must_save_register): Update, consider the extra regs.
9965 (arc_compute_millicode_save_restore_regs): Update to use the 64
9966 bit gmask.
9967 (arc_compute_frame_size): Likewise.
9968 (arc_enter_leave_p): Likewise.
9969 (arc_save_callee_saves): Likewise.
9970 (arc_restore_callee_saves): Likewise.
9971 (arc_save_callee_enter): Likewise.
9972 (arc_restore_callee_leave): Likewise.
9973 (arc_save_callee_milli): Likewise.
9974 (arc_restore_callee_milli): Likewise.
9975 (arc_expand_prologue): Add new interrupt handling.
9976 (arc_return_address_register): Make it static, move it forward.
9977 (arc_expand_epilogue): Add new interrupt handling.
9978 (arc_get_unalign): Delete.
9979 (arc_epilogue_uses): Make sure we do not remove the extra
9980 saved/restored registers when interrupt.
9981 (arc_can_use_return_insn): New function.
9982 (push_reg): Likewise.
9983 (pop_reg): Likewise.
9984 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9985 procedures.
9986 (arc_restore_callee_saves): Likewise, but restoring.
9987 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9988 (R33_REG): Likewise.
9989 (R34_REG): Likewise.
9990 (R35_REG): Likewise.
9991 (R36_REG): Likewise.
9992 (R37_REG): Likewise.
9993 (R38_REG): Likewise.
9994 (R39_REG): Likewise.
9995 (R45_REG): Likewise.
9996 (R46_REG): Likewise.
9997 (R47_REG): Likewise.
9998 (R48_REG): Likewise.
9999 (R49_REG): Likewise.
10000 (R50_REG): Likewise.
10001 (R51_REG): Likewise.
10002 (R52_REG): Likewise.
10003 (R53_REG): Likewise.
10004 (R54_REG): Likewise.
10005 (R55_REG): Likewise.
10006 (R56_REG): Likewise.
10007 (R58_REG): Likewise.
10008 (type): Add rtie attribute.
10009 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10010 (movsi_insn): Accept moves to lp_count.
10011 (rtie): Update pattern.
10012 (simple_return): Simplify it, don't use this pattern as a return
10013 from an interrupt.
10014 (arc600_rtie): New pattern.
10015 (p_return_i): Clean up.
10016 (return): Likewise.
10017 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10018 family CPUs.
10019 * config/arc/predicates.md (move_src_operand): Consider lp_count
10020 as a register.
10021
10022 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10023
10024 * config/s390/predicates.md (addv_const_operand): New predicate.
10025 * config/s390/s390-modes.def (CCO): New condition code mode.
10026 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10027 (s390_branch_condition_mask): Likewise.
10028 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10029 ("mulv<mode>4"): New expanders.
10030 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10031 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10032 pattern definitions.
10033
10034 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10035
10036 PR middle-end/91166
10037 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10038 (define_predicates): Add entry for uniform_vector_p.
10039 (vec_same_elem_p): New match pattern.
10040
10041 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10042
10043 PR bootstrap/87030
10044 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10045 * config/i386/darwin32-biarch.h .. to here.
10046 * config/i386/darwin64-biarch.h: Adjust comments.
10047 * config/rs6000/darwin32-biarch.h: Likewise.
10048 * config/rs6000/darwin64-biarch.h: Likewise.
10049 * config.gcc: Missed commit from r273746
10050 (*-*-darwin*): Don't include CPU t-darwin here.
10051 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10052 an error message if i686-darwin configuration is attempted for
10053 Darwin >= 18.
10054
10055 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10056
10057 PR bootstrap/87030
10058 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10059 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10060 an error message if i686-darwin configuration is attempted for
10061 Darwin >= 18.
10062 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10063 (powerpc-*-darwin*): Use biarch files where needed.
10064 (powerpc64-*-darwin*): Likewise.
10065 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10066 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10067 arch case.
10068 * config/i386/darwin32-biarch.h: New.
10069 * config/i386/darwin64.h: Rename.
10070 * config/i386/darwin64-biarch.h: To this.
10071 * config/i386/t-darwin: Rename.
10072 * config/i386/t-darwin32-biarch: To this.
10073 * config/i386/t-darwin64: Rename.
10074 * config/i386/t-darwin64-biarch: To this.
10075 * config/rs6000/darwin32-biarch.h: New.
10076 * config/rs6000/darwin64.h: Rename.
10077 * config/rs6000/darwin64-biarch.h: To this.
10078 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10079 arch case.
10080 * config/rs6000/t-darwin8: Rename.
10081 * config/rs6000/t-darwin32-biarch: To this.
10082 * config/rs6000/t-darwin64 Rename.
10083 * config/rs6000/t-darwin64-biarch: To this.
10084
10085 2019-07-23 Martin Sebor <msebor@redhat.com>
10086
10087 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10088
10089 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10090
10091 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10092 (rh): New alias for it.
10093
10094 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10095
10096 * gdbhooks.py: Pass replace=True to
10097 gdb.printing.register_pretty_printer.
10098
10099 2019-07-23 Richard Biener <rguenther@suse.de>
10100
10101 PR debug/91231
10102 * lto-streamer-in.c (input_function): Drop inline-entry markers
10103 that ended up with an unknown location block.
10104
10105 2019-07-23 Richard Biener <rguenther@suse.de>
10106
10107 PR tree-optimization/83518
10108 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10109 init from a constant even when partial defs are already recorded.
10110
10111 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10112
10113 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10114 * config/i386/znver1.md: Enable patterns for znver2 and add store
10115 variants which use extra AGU unit.
10116
10117 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10118
10119 * config/i386/i386-options.c (ix86_option_override_internal): Default
10120 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10121 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10122 for ZNVER2.
10123
10124 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10125
10126 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10127 (znver2_costs): Update 256 bit SSE costs and multiplication.
10128
10129 2019-07-23 Jan Beulich <jbeulich@suse.com>
10130
10131 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10132 Require only AVX512F.
10133 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10134 alternative expanding to vpternlog.
10135
10136 2019-07-23 Martin Liska <mliska@suse.cz>
10137
10138 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10139 to -flto in dwarf producer string.
10140
10141 2019-07-23 Richard Biener <rguenther@suse.de>
10142
10143 * tree-cfg.c (label_for_bb): Remove global var.
10144 (main_block_label): Take label_for_bb as argument.
10145 (cleanup_dead_labels_eh): Likewise, adjust.
10146 (cleanup_dead_labels): Adjust.
10147
10148 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10149
10150 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10151 Configurations): Add documentation for __builtin_mtfsf.
10152
10153 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10154
10155 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10156 * config/riscv/riscv.c (riscv_constant_alignment): Use
10157 riscv_align_data_type.
10158 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10159 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10160 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10161 * config/riscv/riscv.opt (malign-data): New.
10162 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10163
10164 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10165
10166 * cgraph.c (dump_graphviz): New function.
10167 * cgraph.h (dump_graphviz): New function.
10168 * symtab.c (dump_graphviz): New function.
10169
10170 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10171
10172 * config/aarch64/aarch64-simd.md
10173 (*aarch64_simd_sra<mode>): New.
10174 * config/aarch64/iterators.md
10175 (SHIFTRT): New iterator.
10176 (sra_op): New attribute.
10177
10178 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10179
10180 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10181 callee-saved regs R4->R10 in an interrupt function that calls another
10182 function.
10183
10184 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10185
10186 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10187 (_mm_blendv_epi8): New.
10188
10189 2019-07-22 Richard Biener <rguenther@suse.de>
10190
10191 PR tree-optimization/91221
10192 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10193 restrict partial-def handling of empty constructors and
10194 memset to refs with known offset.
10195
10196 2019-07-22 Jan Beulich <jbeulich@suse.com>
10197
10198 * config/i386/sse.md (ternlogsuffix): New.
10199 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10200 AVX512F is in use.
10201 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10202
10203 2019-07-22 Martin Liska <mliska@suse.cz>
10204
10205 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10206 comment.
10207 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10208
10209 2019-07-22 Martin Liska <mliska@suse.cz>
10210
10211 * lto-section-in.c (lto_get_section_data):
10212 Use new function get_compression.
10213 * lto-streamer-out.c (produce_lto_section): Use
10214 set_compression to encode compression algorithm.
10215 * lto-streamer.h (struct lto_section): Do not
10216 use bitfields in the format.
10217
10218 2019-07-22 Martin Liska <mliska@suse.cz>
10219
10220 PR driver/91172
10221 * opts-common.c (decode_cmdline_option): Decode
10222 argument of -Werror and check it for a wrong language.
10223 * opts-global.c (complain_wrong_lang): Remove such case.
10224
10225 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10226
10227 * config/arc/arc.c (prepare_move_operands): Always use an
10228 intermediate register when storing a TLS symbols.
10229
10230 2019-07-22 Stafford Horne <shorne@gmail.com>
10231
10232 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10233 force_reg.
10234
10235 2019-07-22 Stafford Horne <shorne@gmail.com>
10236
10237 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10238 and munordered-float validations.
10239 * config/or1k/constraints.md (d): New register constraint.
10240 * config/or1k/predicates.md (fp_comparison_operator): New.
10241 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10242 operands.
10243 (or1k_expand_compare): Normalize unordered comparisons.
10244 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10245 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10246 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10247 * config/or1k/or1k.md (type): Add fpu.
10248 (fpu): New instruction reservation.
10249 (F, f, fr, fi, FI, FOP, fop): New.
10250 (<fop><F:mode>3): New ALU instruction definition.
10251 (float<fi><F:mode>2): New conversion instruction definition.
10252 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10253 (fpcmpcc): New code iterator.
10254 (*sf_fp_insn): New instruction definition.
10255 (cstore<F:mode>4): New expand definition.
10256 (cbranch<F:mode>4): New expand definition.
10257 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10258 munordered-float): New options.
10259 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10260 munordered-float.
10261
10262 2019-07-22 Stafford Horne <shorne@gmail.com>
10263
10264 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10265 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10266 documenation to be more clear.
10267 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10268 more clear.
10269 * config/or1k/or1k.opt (mrori): New option.
10270 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10271 msfimm, mshftimm): Rewrite documentation to be more clear.
10272 * config/or1k/or1k.md (insn_support): Add ror and rori.
10273 (enabled): Add conditions for ror and rori.
10274 (rotrsi3): Replace condition for shftimm with ror and rori.
10275
10276 2019-07-22 Stafford Horne <shorne@gmail.com>
10277
10278 PR target/90363
10279 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10280 (extend<mode>si2): Update predicate.
10281 * config/or1k/predicates.md (volatile_mem_operand): New.
10282 (reg_or_mem_operand): New.
10283
10284 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10285
10286 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10287 * config/rs6000/rs6000-call.c: ... to here.
10288
10289 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10290
10291 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10292 memory.
10293
10294 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10295
10296 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10297
10298 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10299
10300 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10301
10302 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10303
10304 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10305 (any_memory_operand): New predicate.
10306 (reg_or_mem_operand): Use it.
10307
10308 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10309
10310 PR target/91204
10311 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10312
10313 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10314
10315 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10316 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10317
10318 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10319
10320 * tree.def (OMP_LOOP): New tree code.
10321 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10322 (enum omp_clause_bind_kind): New enum.
10323 (struct tree_omp_clause): Add subcode.bind_kind.
10324 * tree.h (OMP_LOOP_CHECK): Rename to ...
10325 (OMP_LOOPING_CHECK): ... this.
10326 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10327 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10328 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10329 (OMP_CLAUSE_BIND_KIND): Define.
10330 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10331 bind clause entries.
10332 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10333 * tree-pretty-print.c (dump_omp_clause): Likewise.
10334 (dump_generic_node): Handle OMP_LOOP.
10335 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10336 (in_omp_construct): New variable.
10337 (is_gimple_stmt): Handle OMP_LOOP.
10338 (gimplify_scan_omp_clauses): For lastprivate don't set
10339 check_non_private if code == OMP_LOOP. For reduction clause
10340 on OMP_LOOP combined with parallel or teams propagate as shared
10341 on the combined construct. Handle OMP_CLAUSE_BIND.
10342 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10343 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10344 for constructs from a loop construct to gimplify_scan_omp_clauses.
10345 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10346 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10347 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10348 to match the implicit ORT_TARGET construct around whole body.
10349 Temporarily clear in_omp_construct when processing body.
10350 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10351 etc. temporarily set in_omp_construct when processing body.
10352 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10353 * omp-low.c (struct omp_context): Add loop_p.
10354 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10355 in that the original var might be private.
10356 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10357 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10358 addition of loop construct.
10359 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10360
10361 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10362 lastprivate non-addressable iterator of a collapse(1) simd.
10363
10364 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10365
10366 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10367 as in rs6000.c.
10368
10369 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10370
10371 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10372 refer to default conditions. Warn for the 'y' spec which is ignored
10373 by current linkers.
10374
10375 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10376
10377 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10378 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10379 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10380 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10381 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10382 init_cumulative_args, rs6000_promote_function_mode,
10383 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10384 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10385 rs6000_function_arg_boundary, rs6000_parm_offset,
10386 rs6000_parm_start, rs6000_arg_size,
10387 rs6000_darwin64_record_arg_advance_flush,
10388 rs6000_darwin64_record_arg_advance_recurse,
10389 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10390 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10391 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10392 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10393 rs6000_finish_function_arg, rs6000_function_arg,
10394 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10395 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10396 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10397 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10398 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10399 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10400 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10401 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10402 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10403 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10404 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10405 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10406 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10407 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10408 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10409 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10410 get_element_number, altivec_expand_vec_set_builtin,
10411 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10412 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10413 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10414 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10415 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10416 rs6000_expand_builtin, rs6000_vector_type,
10417 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10418 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10419 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10420 to rs6000-call.c.
10421 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10422 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10423 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10424 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10425 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10426 init_cumulative_args, rs6000_promote_function_mode,
10427 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10428 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10429 rs6000_function_arg_boundary, rs6000_parm_offset,
10430 rs6000_parm_start, rs6000_arg_size,
10431 rs6000_darwin64_record_arg_advance_flush,
10432 rs6000_darwin64_record_arg_advance_recurse,
10433 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10434 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10435 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10436 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10437 rs6000_finish_function_arg, rs6000_function_arg,
10438 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10439 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10440 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10441 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10442 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10443 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10444 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10445 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10446 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10447 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10448 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10449 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10450 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10451 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10452 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10453 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10454 get_element_number, altivec_expand_vec_set_builtin,
10455 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10456 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10457 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10458 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10459 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10460 rs6000_expand_builtin, rs6000_vector_type,
10461 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10462 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10463 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10464 to here from rs6000.c.
10465 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10466 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10467 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10468 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10469 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10470 rs6000_return_in_memory, rs6000_return_in_msb,
10471 rs6000_pass_by_reference, setup_incoming_varargs,
10472 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10473 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10474 rs6000_function_arg_padding, rs6000_function_arg,
10475 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10476 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10477 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10478 rs6000_passes_long_double, rs6000_passes_vector,
10479 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10480 altivec_builtin_mask_for_load) Add declarations.
10481 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10482 * config/config.gcc: Add new source file rs6000-call.c to garbage
10483 collector and extra_objs.
10484
10485 2019-07-19 Jeff Law <law@redhat.com>
10486
10487 PR tree-optimization/86061
10488 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10489 strncpy. Drop some trivial dead code.
10490 (maybe_trim_memstar_call): Handle strncpy.
10491
10492 2019-07-19 Richard Biener <rguenther@suse.de>
10493
10494 PR tree-optimization/91211
10495 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10496 memset encoding size.
10497
10498 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10499
10500 PR target/91204
10501 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10502
10503 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10504
10505 PR ipa/91194
10506 * ipa-inline.c (recursive_inlining): Fix limits check.
10507
10508 2019-07-19 Richard Biener <rguenther@suse.de>
10509
10510 PR tree-optimization/91200
10511 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10512 no PHI nodes in middle-bb.
10513
10514 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10515
10516 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10517 to +sve-bitperm.
10518 * config/aarch64/aarch64-option-extensions.def: Likewise.
10519
10520 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10521
10522 PR middle-end/91190
10523 * function.c (insert_temp_slot_address): Store into the hash table
10524 a copy of address to avoid RTL sharing issues.
10525
10526 2019-07-19 Richard Biener <rguenther@suse.de>
10527
10528 PR tree-optimization/91207
10529 Revert
10530 2019-07-17 Richard Biener <rguenther@suse.de>
10531
10532 PR tree-optimization/91178
10533 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10534 loads with a gap larger than the vector size always use
10535 VMAT_STRIDED_SLP.
10536 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10537 avoid loading vectors that are only contained in the gap
10538 and thus are not needed.
10539
10540 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10541
10542 * config/i386/i386.md (*addqi_2_slp): Remove.
10543 (*<code>qi_2_slp): Ditto.
10544
10545 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10546
10547 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10548 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10549 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10550 Rename function from rs6000_prefixed_address.
10551 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10552 TARGET_HAS_TOC.
10553 (TARGET_TOC): Likewise.
10554 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10555 rs6000.h.
10556 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10557 TARGET_HAS_TOC.
10558 (TARGET_TOC): Likewise.
10559 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10560 rs6000.h.
10561 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10562 TARGET_HAS_TOC.
10563 (TARGET_TOC): Likewise.
10564 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10565 check to require -mcmodel=medium for pc-relative addressing.
10566 (create_TOC_reference): Add assertion for TARGET_TOC.
10567 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10568 TARGET_NO_TOC.
10569 (rs6000_emit_move): Likewise.
10570 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10571 to 'TOC_alias_set'.
10572 (get_TOC_alias_set): Likewise.
10573 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10574 TARGET_NO_TOC.
10575 (rs6000_can_eliminate): Likewise.
10576 (rs6000_prefixed_address_mode_p): Rename function from
10577 rs6000_prefixed_address.
10578 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10579 TARGET_HAS_TOC and not pc-relative.
10580 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10581 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10582 TARGET_HAS_TOC.
10583 (TARGET_TOC): Likewise.
10584 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10585 rs6000.h.
10586
10587 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10588
10589 PR target/91188
10590 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10591 for operand 0. Do not use (match_dup) to match operand 1 with
10592 operand 0. Add check in insn constraint that either input operand
10593 matches operand 0. Use SWI12 mode iterator to also handle
10594 HImode operands.
10595 (*and<mode>_1_slp): Ditto.
10596 (*<code>qi_1_slp): Ditto.
10597 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10598 Do not use (match_dup) to match operand 1 with operand 0. Add
10599 check in insn constraint that operand 1 matches operand 0.
10600 Use SWI12 mode iterator to also handle HImode operands.
10601 (*ashl<mode>3_1_slp): Ditto.
10602 (*<shift_insn><mode>3_1_slp): Ditto.
10603 (*<rotate_insn><mode>3_1_slp): Ditto.
10604
10605 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10606
10607 * config/arm/arm-builtins.c
10608 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10609 (arm_expand_unop_builtin): Likewise.
10610 * config/arm/crypto.md
10611 (crypto_sha1h): Convert from define_insn to define_expand.
10612 (crypto_<crypto_pattern>): Likewise.
10613 (crypto_sha1h_lb): New define_insn.
10614 (crypto_<crypto_pattern>_lb): Likewise.
10615
10616 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10617
10618 PR target/90317
10619 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10620 (vsha1cq_u32): Likewise.
10621 (vsha1pq_u32): Likewise.
10622 (vsha1mq_u32): Likewise.
10623 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10624 vec select.
10625 (crypto_sha1c): Correct vec select.
10626 (crypto_sha1m): Likewise.
10627 (crypto_sha1p): Likewise.
10628
10629 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10630
10631 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10632 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10633 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10634 (subdi_zesidi_zesidi): Likewise.
10635 (negdi2_compare, negdi2_insn): Likewise.
10636 (negdi_extensidi): Likewise.
10637 (negdi_zero_extendsidi): Likewise.
10638 (arm_cmpdi_insn): Likewise.
10639 (subsi3_carryin): Use arm_borrow_operation.
10640 (subsi3_carryin_const): Likewise.
10641 (subsi3_carryin_const0): Likewise.
10642 (subsi3_carryin_compare): Likewise.
10643 (subsi3_carryin_compare_const): Likewise.
10644 (subsi3_carryin_compare_const0): Likewise.
10645 (subsi3_carryin_shift): Likewise.
10646 (rsbsi3_carryin_shift): Likewise.
10647 (negsi2_carryin_compare): Likewise.
10648
10649 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10650
10651 PR tree-optimization/91137
10652 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10653 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10654 Init, use and fini the above new field.
10655 (determine_base_object_1): New function.
10656 (determine_base_object): Reimplement using walk_tree.
10657
10658 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10659
10660 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10661 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10662 CLEANUP_FORCE_FAST_DCE is set.
10663 * ifcvt.c (rest_of_handle_if_conversion): Pass
10664 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10665 if-conversion succeeded.
10666
10667 2019-07-18 Richard Biener <rguenther@suse.de>
10668
10669 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10670 branches to make code less indented.
10671
10672 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10673
10674 PR middle-end/81824
10675 * attribs.c (decls_mismatched_attributes): Simplify the logic
10676 that avoids duplicates and false positives.
10677
10678 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10679
10680 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10681 data into data section when generating PIC code.
10682 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10683 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10684 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10685 return 2 for SOM and 0 for other targets.
10686
10687 2019-07-17 Jeff Law <law@redhat.com>
10688
10689 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10690 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10691 avoid unexpected switch statement fallthru.
10692
10693 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10694
10695 * config/i386/i386.md (*add<dwi>3_doubleword):
10696 Remove redundant constraints.
10697 (*add<mode>_1): Ditto.
10698 (*addhi_1): Ditto.
10699 (*addqi_1): Ditto.
10700 (*addqi_1_slp): Ditto.
10701 (*add<mode>_2): Ditto.
10702 (*addv<mode>4): Ditto.
10703 (*sub<dwi>3_doubleword): Ditto.
10704 (*sub<mode>_1): Ditto.
10705 (*subqi_1_slp): Ditto.
10706 (*sub<mode>_2): Ditto.
10707 (*subv<mode>4): Ditto.
10708 (*sub<mode>_3): Ditto.
10709 (@add<mode>3_carry): Ditto.
10710 (@sub<mode>3_carry): Ditto.
10711 (*add<mode>3_cc_overflow_1): Ditto.
10712 (*add<mode>3_zext_cc_overflow_2): Ditto.
10713 (*anddi_1): Ditto.
10714 (*and<mode>_1): Ditto.
10715 (*andqi_1): Ditto.
10716 (*andqi_1_slp): Ditto.
10717 (*anddi_2): Ditto.
10718 (*andqi_2_maybe_si): Ditto.
10719 (*and<mode>_2): Ditto.
10720 (*andqi_2_slp): Ditto.
10721 (*<code><mode>_1): Ditto.
10722 (*<code>qi_1): Ditto.
10723 (*<code>qi_1_slp): Ditto.
10724 (*<code><mode>_2): Ditto.
10725 (*<code>qi_2_slp): Ditto.
10726
10727 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10728
10729 * alias.c (record_component_aliases): Do not simplify pointed-to
10730 types of ODR types.
10731
10732 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10733
10734 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10735 partial reg stall on alternative 2.
10736
10737 2019-07-17 Richard Biener <rguenther@suse.de>
10738
10739 PR tree-optimization/91178
10740 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10741 lower SSA names to avoid quadratic behavior in the common case.
10742 * tree-data-ref.c (split_constant_offset): Add limit argument
10743 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10744 (split_constant_offset_1): Add limit argument and use it to
10745 limit SSA def walking. Optimize the common plus/minus case.
10746
10747 2019-07-17 Richard Biener <rguenther@suse.de>
10748
10749 PR tree-optimization/91178
10750 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10751 loads with a gap larger than the vector size always use
10752 VMAT_STRIDED_SLP.
10753 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10754 avoid loading vectors that are only contained in the gap
10755 and thus are not needed.
10756
10757 2019-07-17 Richard Biener <rguenther@suse.de>
10758
10759 PR tree-optimization/91180
10760 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10761 computation for memset partial defs.
10762
10763 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10764
10765 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10766 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10767 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10768 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10769 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10770 * omp-grid.c (grid_process_grid_body,
10771 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10772 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10773 == GF_OMP_FOR_KIND_SIMD.
10774 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10775 check_omp_nesting_restrictions, scan_omp_1_stmt,
10776 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10777 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10778 omp_find_scan): Likewise.
10779 * omp-expand.c (expand_omp_for): Likewise.
10780 * omp-general.c (omp_extract_for_data): Likewise.
10781
10782 PR tree-optimization/91157
10783 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10784 a vector boolean with scalar mode.
10785 (expand_vector_condition): Handle first operand being a vector boolean
10786 with scalar mode.
10787 (expand_vector_operations_1): For comparisons, don't bail out early
10788 if the return type is vector boolean with scalar mode, but comparison
10789 operand type is not.
10790
10791 2019-07-17 Richard Biener <rguenther@suse.de>
10792
10793 PR tree-optimization/91181
10794 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10795 IFN_LOADs as calls.
10796
10797 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10798
10799 * config/i386/i386.md (*testdi_1): Match CCZmode for
10800 constants that might have the SImode sign bit set.
10801 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10802 Use correct constraints for pentium pairing.
10803 (*test<mode>_1): Ditto.
10804
10805 2019-07-16 Jeff Law <law@redhat.com>
10806
10807 PR rtl-optimization/91173
10808 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10809 SSA_NAME with a constant value, fold its value into the offset
10810 and clear the base before calling gen_addr_rtx.
10811
10812 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10813
10814 PR rtl-optimization/91164
10815 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10816 invalidate dominance info.
10817
10818 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10819
10820 * read-md.h (md_reader::record_potential_iterator_use): Add a
10821 file_location parameter.
10822 * read-rtl.c (attribute_use::loc): New field.
10823 (map_attr_string): Take a file_location parameter. Report cases
10824 in which attributes map to multiple distinct values.
10825 (apply_attribute_uses): Update call accordingly.
10826 (md_reader::handle_overloaded_name): Likewise.
10827 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10828 nonnull strings.
10829 (record_attribute_use): Take a file_location parameter.
10830 Initialize attribute_use::loc.
10831 (md_reader::record_potential_iterator_use): Take a file_location
10832 parameter. Update call to record_attribute_use.
10833 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10834 (rtx_reader::read_rtx_code): Likewise.
10835 (rtx_reader::read_rtx_operand): Likewise. Record a location
10836 for implicitly-expanded empty strings.
10837
10838 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10839
10840 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10841 Use file_location instead of separate fields.
10842 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10843 separate filename and line number.
10844 * read-md.c (ptr_loc): As above.
10845 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10846 (md_reader::fprint_md_ptr_loc): Likewise.
10847 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10848 instead of a separate filename and line number.
10849 (md_reader::read_string): Update call accordingly.
10850
10851 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10852
10853 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10854 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10855 leaving the choice between SFDF and P implicit.
10856 (*mov<mode>_update2): Likewise.
10857 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10858 rather than leaving the choice betweem IBM128 and GPR implicit.
10859 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10860 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10861 QHSI implicit.
10862 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10863 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10864 * config/rs6000/vsx.md
10865 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10866 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10867 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10868 and VSX_EXTRACT_I implicit.
10869
10870 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10871
10872 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10873 Explicitly use <MOVEP1:MODE> for the mode attribute.
10874
10875 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10876
10877 PR bootstrap/91176
10878 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10879
10880 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10881
10882 PR target/91050
10883 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10884 .machine directive.
10885
10886 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10887
10888 * config/i386/i386.md (@test<mode>_ccno_1):
10889 Rename from test<mode>_ccno_1.
10890 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10891 (*testqi_1_maybe_si): Remove modrm attribute.
10892 (*test<mode>_1): Ditto.
10893 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10894 gen_test_ccno_1 and gen_extend_insn.
10895
10896 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10897
10898 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10899 to 0.
10900
10901 2019-07-15 Richard Biener <rguenther@suse.de>
10902
10903 PR middle-end/91162
10904 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10905 node make sure to replace all uses with something valid.
10906
10907 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10908
10909 PR tree-optimization/88497
10910 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10911 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10912 function undistribute_bitref_for_vector.
10913 (undistribute_bitref_for_vector): New function.
10914 (cleanup_vinfo_map): Likewise.
10915 (sort_by_mach_mode): Likewise.
10916
10917 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10918
10919 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10920 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10921 and testdi_ccno_1 using SWI48 mode attribute.
10922 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10923 x86_64_szext_general_operand.
10924 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10925 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10926 instead of genera_operand mode attribute.
10927
10928 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10929
10930 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10931 fopen and fclose to their respective types.
10932 (DotFn.invoke): Ditto.
10933
10934 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10935
10936 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10937 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10938 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10939 (array_index_predicate): Remove.
10940 (analyze_function_body): Account cost for variable ofsetted array
10941 indexing.
10942 (estimate_node_size_and_time): Do not compute array index hint.
10943 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10944 (inline_read_section): Do not read array index hint.
10945 (ipa_fn_summary_write): Do not write array index hint.
10946 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10947 * ipa-cp.c (hint_time_bonus): Remove.
10948 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10949 (ipa_fnsummary): Remove array_index.
10950 * ipa-inline.c (want_inline_small_function_p): Do not use
10951 array_index.
10952 (edge_badness): Likewise.
10953 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10954
10955 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10956
10957 PR target/91148
10958 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10959 superfluous "builtin function" phrasing.
10960
10961 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10962
10963 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10964 Break out from ...
10965 (aliasing_component_refs_walk): Break out from ...
10966 (aliasing_component_refs_p): ... here.
10967
10968 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10969
10970 PR target/91148
10971 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10972 "builtin function" phrasing.
10973
10974 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10975
10976 PR target/90723
10977 * recog.h (temporary_volatile_ok): New class.
10978 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10979 volatile_ok temporarily to true using temporary_volatile_ok.
10980 * expr.c (emit_block_move_via_cpymem): Likewise.
10981 * optabs.c (maybe_legitimize_operand): Likewise.
10982
10983 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10984
10985 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10986 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10987 uses inside of order(concurrent) constructs.
10988 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10989 OMP_CLAUSE_ORDER is seen.
10990 * omp-low.c (struct omp_context): Add order_concurrent member.
10991 (scan_sharing_clauses): Set ctx->order_concurrent if
10992 OMP_CLAUSE_ORDER is seen.
10993 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10994 of simd order(concurrent). Diagnose constructs not allowed inside of
10995 for order(concurrent).
10996 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10997 complaining about static double setjmp (double); or class static
10998 methods or non-global namespace setjmps.
10999 (omp_runtime_api_call): New function.
11000 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11001 order(concurrent) loops.
11002
11003 2019-07-12 Martin Sebor <msebor@redhat.com>
11004
11005 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11006 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11007 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11008 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11009
11010 2019-07-12 Jan Hubicka <jh@suse.cz>
11011
11012 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11013 (indirect_refs_may_alias_p): ... here.
11014 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11015 mem refs in the access paths.
11016
11017 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11018
11019 PR tree-optimization/89430
11020 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11021 store elimination for local variable without address escape.
11022
11023 2019-07-12 Jeff Law <law@redhat.com>
11024
11025 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11026 for the ".far" section.
11027
11028 2019-07-12 Richard Biener <rguenther@suse.de>
11029
11030 PR tree-optimization/91145
11031 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11032 chain check.
11033
11034 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11035
11036 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11037 rather than this_state as the lowering context for the ELSE
11038 seq in a GIMPLE_EH_ELSE.
11039
11040 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11041
11042 * vector-builder.h (vector_builder::elt): Allow already-supplied
11043 elements to be read back before building is complete.
11044
11045 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11046
11047 PR rtl-optimization/91136
11048 * df-core.c (ACCESSING REFS): Fix typos in comment.
11049 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11050 the beginning of the block to the initial set of live registers.
11051
11052 2019-07-12 Richard Biener <rguenther@suse.de>
11053
11054 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11055 * fold-const.c (get_array_ctor_element_at_index): Add
11056 ctor_idx output parameter informing the caller where in
11057 the constructor the element was (not) found. Add early exit
11058 for when the ctor is sorted.
11059 * gimple-fold.c (fold_array_ctor_reference): Support constant
11060 folding across multiple array elements.
11061
11062 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11063
11064 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11065 doesn't have location, set the current location to the function's end.
11066
11067 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11068
11069 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11070 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11071 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11072 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11073 * config/aarch64/aarch64-simd.md
11074 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11075 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11076 * config/aarch64/aarch64-sve.md
11077 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11078 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11079
11080 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11081
11082 * doc/md.texi: Document that @ patterns can have different
11083 numbers of operands.
11084 * genemit.c (handle_overloaded_gen): Handle this case.
11085 * genopinit.c (handle_overloaded_gen): Likewise.
11086 * gensupport.c (replace_operands_with_dups): Iterate over
11087 the new rtx's format rather than the old one's.
11088
11089 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11090
11091 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11092 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11093 order clause entries.
11094 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11095 * tree-pretty-print.c (dump_omp_clause): Likewise.
11096 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11097 Likewise.
11098 * omp-low.c (scan_sharing_clauses): Likewise.
11099 * tree-nested.c (convert_nonlocal_omp_clauses,
11100 convert_local_omp_clauses): Likewise.
11101
11102 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11103
11104 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11105 fallthrough target of current basic block isn't the placed
11106 right next.
11107
11108 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11109
11110 PR target/90980
11111 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11112 (_mm512_storeu_epi64): Likewise.
11113 (_mm512_loadu_epi32): Likewise.
11114 (_mm512_storeu_epi32): Likewise.
11115 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11116 (_mm_storeu_epi64): Likewise.
11117 (_mm256_storeu_epi32): Likewise.
11118 (_mm_storeu_epi32): Likewise.
11119
11120 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11121
11122 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11123
11124 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11125
11126 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11127 Handle Modula-2.
11128
11129 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11130
11131 PR target/91124
11132 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11133 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11134 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11135 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11136 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11137 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11138 define_insns.
11139 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11140 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11141 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11142 define_insns.
11143 (sse2_cvttpd2dq<mask_name>): Change into ...
11144 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11145 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11146 (*sse2_cvtpd2dq<mask_name>): Change into ...
11147 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11148 Add "C" constraint to const0_operand.
11149 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11150 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11151 changes.
11152
11153 PR target/91124
11154 * config/i386/i386-builtin-types.def
11155 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11156 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11157 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11158 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11159 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11160 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11161 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11162 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11163 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11164 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11165 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11166 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11167 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11168 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11169 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11170 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11171 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11172 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11173 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11174 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11175 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11176 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11177 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11178 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11179 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11180 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11181 __builtin_ia32_vpdpbusd_v4si_maskz,
11182 __builtin_ia32_vpdpbusds_v16si_mask,
11183 __builtin_ia32_vpdpbusds_v16si_maskz,
11184 __builtin_ia32_vpdpbusds_v8si_mask,
11185 __builtin_ia32_vpdpbusds_v8si_maskz,
11186 __builtin_ia32_vpdpbusds_v4si_mask,
11187 __builtin_ia32_vpdpbusds_v4si_maskz,
11188 __builtin_ia32_vpdpwssd_v16si_mask,
11189 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11190 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11191 __builtin_ia32_vpdpwssd_v4si_maskz,
11192 __builtin_ia32_vpdpwssds_v16si_mask,
11193 __builtin_ia32_vpdpwssds_v16si_maskz,
11194 __builtin_ia32_vpdpwssds_v8si_mask,
11195 __builtin_ia32_vpdpwssds_v8si_maskz,
11196 __builtin_ia32_vpdpwssds_v4si_mask,
11197 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11198 suffixed types rather than *_INT.
11199 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11200 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11201 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11202 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11203 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11204 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11205
11206 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11207
11208 * tree-vrp.c (intersect_ranges): If we know the intersection is
11209 empty, there is no need to conservatively add anything else to
11210 the set.
11211
11212 2019-07-11 Richard Biener <rguenther@suse.de>
11213
11214 PR middle-end/91131
11215 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11216 when the object is volatile and we have not cleared it even though
11217 there are no nonzero elements.
11218
11219 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11220
11221 * config/rs6000/predicates.md (cint34_operand): Update
11222 SIGNED_34BIT_OFFSET_P call.
11223 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11224 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11225 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11226 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11227 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11228 argument.
11229 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11230 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11231 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11232 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11233 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11234
11235 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11236
11237 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11238 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11239 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11240 (DEF_MIN_OSX_VERSION): New.
11241
11242 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11243
11244 * fold-const.c (fold_relational_const): Fix folding of
11245 vector-to-scalar NE_EXPRs.
11246 (test_vector_folding): Add more tests.
11247
11248 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11249
11250 PR target/91060
11251 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11252 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11253 (vec_setv2di_internal): Reexpress as...
11254 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11255 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11256 rather than gen_neon_vset_lane<mode>.
11257
11258 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11259
11260 PR target/91102
11261 * lra-constraints.c (process_alt_operands): Don't match user
11262 defined regs only if they are early clobbers.
11263
11264 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11265
11266 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11267
11268 2019-07-10 Richard Biener <rguenther@suse.de>
11269
11270 PR tree-optimization/91126
11271 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11272 native encoding offset for BYTES_BIG_ENDIAN.
11273 (vn_reference_lookup_3): Likewise.
11274
11275 2019-07-10 Richard Biener <rguenther@suse.de>
11276
11277 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11278 LHS whenever possible.
11279
11280 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11281
11282 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11283 from ...; work also on duplicated types.
11284 (nonoverlapping_component_refs_since_match): ... here
11285 (ncr_type_uid): Break out from ...
11286 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11287 available.
11288 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11289 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11290
11291 2019-07-09 Martin Sebor <msebor@redhat.com>
11292
11293 PR tree-optimization/90989
11294 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11295 optimization to just single character stores.
11296
11297 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11298
11299 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11300 Swap operands only once.
11301
11302 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11303
11304 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11305 for both call instructions.
11306
11307 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11308
11309 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11310 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11311
11312 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11313
11314 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11315 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11316 function from rs6000-logue.c back to rs6000.c.
11317 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11318
11319 2019-07-09 Martin Sebor <msebor@redhat.com>
11320
11321 PR c++/61339
11322 * auto-profile.c: Change class-key of PODs to struct and others
11323 to class.
11324 * basic-block.h: Same.
11325 * bitmap.c (bitmap_alloc): Same.
11326 * bitmap.h: Same.
11327 * builtins.c (expand_builtin_prefetch): Same.
11328 (expand_builtin_interclass_mathfn): Same.
11329 (expand_builtin_strlen): Same.
11330 (expand_builtin_mempcpy_args): Same.
11331 (expand_cmpstr): Same.
11332 (expand_builtin___clear_cache): Same.
11333 (expand_ifn_atomic_bit_test_and): Same.
11334 (expand_builtin_thread_pointer): Same.
11335 (expand_builtin_set_thread_pointer): Same.
11336 * caller-save.c (setup_save_areas): Same.
11337 (replace_reg_with_saved_mem): Same.
11338 (insert_restore): Same.
11339 (insert_save): Same.
11340 (add_used_regs): Same.
11341 * cfg.c (get_bb_copy): Same.
11342 (set_loop_copy): Same.
11343 * cfg.h: Same.
11344 * cfganal.h: Same.
11345 * cfgexpand.c (alloc_stack_frame_space): Same.
11346 (add_stack_var): Same.
11347 (add_stack_var_conflict): Same.
11348 (add_scope_conflicts_1): Same.
11349 (update_alias_info_with_stack_vars): Same.
11350 (expand_used_vars): Same.
11351 * cfghooks.c (redirect_edge_and_branch_force): Same.
11352 (delete_basic_block): Same.
11353 (split_edge): Same.
11354 (make_forwarder_block): Same.
11355 (force_nonfallthru): Same.
11356 (duplicate_block): Same.
11357 (lv_flush_pending_stmts): Same.
11358 * cfghooks.h: Same.
11359 * cfgloop.c (flow_loops_cfg_dump): Same.
11360 (flow_loop_nested_p): Same.
11361 (superloop_at_depth): Same.
11362 (get_loop_latch_edges): Same.
11363 (flow_loop_dump): Same.
11364 (flow_loops_dump): Same.
11365 (flow_loops_free): Same.
11366 (flow_loop_nodes_find): Same.
11367 (establish_preds): Same.
11368 (flow_loop_tree_node_add): Same.
11369 (flow_loop_tree_node_remove): Same.
11370 (flow_loops_find): Same.
11371 (find_subloop_latch_edge_by_profile): Same.
11372 (find_subloop_latch_edge_by_ivs): Same.
11373 (mfb_redirect_edges_in_set): Same.
11374 (form_subloop): Same.
11375 (merge_latch_edges): Same.
11376 (disambiguate_multiple_latches): Same.
11377 (disambiguate_loops_with_multiple_latches): Same.
11378 (flow_bb_inside_loop_p): Same.
11379 (glb_enum_p): Same.
11380 (get_loop_body_with_size): Same.
11381 (get_loop_body): Same.
11382 (fill_sons_in_loop): Same.
11383 (get_loop_body_in_dom_order): Same.
11384 (get_loop_body_in_custom_order): Same.
11385 (release_recorded_exits): Same.
11386 (get_loop_exit_edges): Same.
11387 (num_loop_branches): Same.
11388 (remove_bb_from_loops): Same.
11389 (find_common_loop): Same.
11390 (delete_loop): Same.
11391 (cancel_loop): Same.
11392 (verify_loop_structure): Same.
11393 (loop_preheader_edge): Same.
11394 (loop_exit_edge_p): Same.
11395 (single_exit): Same.
11396 (loop_exits_to_bb_p): Same.
11397 (loop_exits_from_bb_p): Same.
11398 (get_loop_location): Same.
11399 (record_niter_bound): Same.
11400 (get_estimated_loop_iterations_int): Same.
11401 (max_stmt_executions_int): Same.
11402 (likely_max_stmt_executions_int): Same.
11403 (get_estimated_loop_iterations): Same.
11404 (get_max_loop_iterations): Same.
11405 (get_max_loop_iterations_int): Same.
11406 (get_likely_max_loop_iterations): Same.
11407 * cfgloop.h (simple_loop_desc): Same.
11408 (get_loop): Same.
11409 (loop_depth): Same.
11410 (loop_outer): Same.
11411 (loop_iterator::next): Same.
11412 (loop_outermost): Same.
11413 * cfgloopanal.c (mark_irreducible_loops): Same.
11414 (num_loop_insns): Same.
11415 (average_num_loop_insns): Same.
11416 (expected_loop_iterations_unbounded): Same.
11417 (expected_loop_iterations): Same.
11418 (mark_loop_exit_edges): Same.
11419 (single_likely_exit): Same.
11420 * cfgloopmanip.c (fix_bb_placement): Same.
11421 (fix_bb_placements): Same.
11422 (remove_path): Same.
11423 (place_new_loop): Same.
11424 (add_loop): Same.
11425 (scale_loop_frequencies): Same.
11426 (scale_loop_profile): Same.
11427 (create_empty_if_region_on_edge): Same.
11428 (create_empty_loop_on_edge): Same.
11429 (loopify): Same.
11430 (unloop): Same.
11431 (fix_loop_placements): Same.
11432 (copy_loop_info): Same.
11433 (duplicate_loop): Same.
11434 (duplicate_subloops): Same.
11435 (loop_redirect_edge): Same.
11436 (can_duplicate_loop_p): Same.
11437 (duplicate_loop_to_header_edge): Same.
11438 (mfb_keep_just): Same.
11439 (has_preds_from_loop): Same.
11440 (create_preheader): Same.
11441 (create_preheaders): Same.
11442 (lv_adjust_loop_entry_edge): Same.
11443 (loop_version): Same.
11444 * cfgloopmanip.h: Same.
11445 * cgraph.h: Same.
11446 * cgraphbuild.c: Same.
11447 * combine.c (make_extraction): Same.
11448 * config/i386/i386-features.c: Same.
11449 * config/i386/i386-features.h: Same.
11450 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11451 (ix86_emit_outlined_ms2sysv_restore): Same.
11452 (ix86_noce_conversion_profitable_p): Same.
11453 (ix86_init_cost): Same.
11454 (ix86_simd_clone_usable): Same.
11455 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11456 Wstruct-not-pod.
11457 * coretypes.h: Same.
11458 * data-streamer-in.c (string_for_index): Change class-key of PODs
11459 to struct and others to class.
11460 (streamer_read_indexed_string): Same.
11461 (streamer_read_string): Same.
11462 (bp_unpack_indexed_string): Same.
11463 (bp_unpack_string): Same.
11464 (streamer_read_uhwi): Same.
11465 (streamer_read_hwi): Same.
11466 (streamer_read_gcov_count): Same.
11467 (streamer_read_wide_int): Same.
11468 * data-streamer.h (streamer_write_bitpack): Same.
11469 (bp_unpack_value): Same.
11470 (streamer_write_char_stream): Same.
11471 (streamer_write_hwi_in_range): Same.
11472 (streamer_write_record_start): Same.
11473 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11474 (add_cross_iteration_register_deps): Same.
11475 (build_intra_loop_deps): Same.
11476 * df-core.c (df_analyze): Same.
11477 (loop_post_order_compute): Same.
11478 (loop_inverted_post_order_compute): Same.
11479 * df-problems.c (df_rd_alloc): Same.
11480 (df_rd_simulate_one_insn): Same.
11481 (df_rd_local_compute): Same.
11482 (df_rd_init_solution): Same.
11483 (df_rd_confluence_n): Same.
11484 (df_rd_transfer_function): Same.
11485 (df_rd_free): Same.
11486 (df_rd_dump_defs_set): Same.
11487 (df_rd_top_dump): Same.
11488 (df_lr_alloc): Same.
11489 (df_lr_reset): Same.
11490 (df_lr_local_compute): Same.
11491 (df_lr_init): Same.
11492 (df_lr_confluence_n): Same.
11493 (df_lr_free): Same.
11494 (df_lr_top_dump): Same.
11495 (df_lr_verify_transfer_functions): Same.
11496 (df_live_alloc): Same.
11497 (df_live_reset): Same.
11498 (df_live_init): Same.
11499 (df_live_confluence_n): Same.
11500 (df_live_finalize): Same.
11501 (df_live_free): Same.
11502 (df_live_top_dump): Same.
11503 (df_live_verify_transfer_functions): Same.
11504 (df_mir_alloc): Same.
11505 (df_mir_reset): Same.
11506 (df_mir_init): Same.
11507 (df_mir_confluence_n): Same.
11508 (df_mir_free): Same.
11509 (df_mir_top_dump): Same.
11510 (df_word_lr_alloc): Same.
11511 (df_word_lr_reset): Same.
11512 (df_word_lr_init): Same.
11513 (df_word_lr_confluence_n): Same.
11514 (df_word_lr_free): Same.
11515 (df_word_lr_top_dump): Same.
11516 (df_md_alloc): Same.
11517 (df_md_simulate_one_insn): Same.
11518 (df_md_reset): Same.
11519 (df_md_init): Same.
11520 (df_md_free): Same.
11521 (df_md_top_dump): Same.
11522 * df-scan.c (df_insn_delete): Same.
11523 (df_insn_rescan): Same.
11524 (df_notes_rescan): Same.
11525 (df_sort_and_compress_mws): Same.
11526 (df_install_mws): Same.
11527 (df_refs_add_to_chains): Same.
11528 (df_ref_create_structure): Same.
11529 (df_ref_record): Same.
11530 (df_def_record_1): Same.
11531 (df_find_hard_reg_defs): Same.
11532 (df_uses_record): Same.
11533 (df_get_conditional_uses): Same.
11534 (df_get_call_refs): Same.
11535 (df_recompute_luids): Same.
11536 (df_get_entry_block_def_set): Same.
11537 (df_entry_block_defs_collect): Same.
11538 (df_get_exit_block_use_set): Same.
11539 (df_exit_block_uses_collect): Same.
11540 (df_mws_verify): Same.
11541 (df_bb_verify): Same.
11542 * df.h (df_scan_get_bb_info): Same.
11543 * doc/tm.texi: Same.
11544 * dse.c (record_store): Same.
11545 * dumpfile.h: Same.
11546 * emit-rtl.c (const_fixed_hasher::equal): Same.
11547 (set_mem_attributes_minus_bitpos): Same.
11548 (change_address): Same.
11549 (adjust_address_1): Same.
11550 (offset_address): Same.
11551 * emit-rtl.h: Same.
11552 * except.c (dw2_build_landing_pads): Same.
11553 (sjlj_emit_dispatch_table): Same.
11554 * explow.c (allocate_dynamic_stack_space): Same.
11555 (emit_stack_probe): Same.
11556 (probe_stack_range): Same.
11557 * expmed.c (store_bit_field_using_insv): Same.
11558 (store_bit_field_1): Same.
11559 (store_integral_bit_field): Same.
11560 (extract_bit_field_using_extv): Same.
11561 (extract_bit_field_1): Same.
11562 (emit_cstore): Same.
11563 * expr.c (emit_block_move_via_cpymem): Same.
11564 (expand_cmpstrn_or_cmpmem): Same.
11565 (set_storage_via_setmem): Same.
11566 (emit_single_push_insn_1): Same.
11567 (expand_assignment): Same.
11568 (store_constructor): Same.
11569 (expand_expr_real_2): Same.
11570 (expand_expr_real_1): Same.
11571 (try_casesi): Same.
11572 * flags.h: Same.
11573 * function.c (try_fit_stack_local): Same.
11574 (assign_stack_local_1): Same.
11575 (assign_stack_local): Same.
11576 (cut_slot_from_list): Same.
11577 (insert_slot_to_list): Same.
11578 (max_slot_level): Same.
11579 (move_slot_to_level): Same.
11580 (temp_address_hasher::equal): Same.
11581 (remove_unused_temp_slot_addresses): Same.
11582 (assign_temp): Same.
11583 (combine_temp_slots): Same.
11584 (update_temp_slot_address): Same.
11585 (preserve_temp_slots): Same.
11586 * function.h: Same.
11587 * fwprop.c: Same.
11588 * gcc-rich-location.h: Same.
11589 * gcov.c: Same.
11590 * genattrtab.c (check_attr_test): Same.
11591 (check_attr_value): Same.
11592 (convert_set_attr_alternative): Same.
11593 (convert_set_attr): Same.
11594 (check_defs): Same.
11595 (copy_boolean): Same.
11596 (get_attr_value): Same.
11597 (expand_delays): Same.
11598 (make_length_attrs): Same.
11599 (min_fn): Same.
11600 (make_alternative_compare): Same.
11601 (simplify_test_exp): Same.
11602 (tests_attr_p): Same.
11603 (get_attr_order): Same.
11604 (clear_struct_flag): Same.
11605 (gen_attr): Same.
11606 (compares_alternatives_p): Same.
11607 (gen_insn): Same.
11608 (gen_delay): Same.
11609 (find_attrs_to_cache): Same.
11610 (write_test_expr): Same.
11611 (walk_attr_value): Same.
11612 (write_attr_get): Same.
11613 (eliminate_known_true): Same.
11614 (write_insn_cases): Same.
11615 (write_attr_case): Same.
11616 (write_attr_valueq): Same.
11617 (write_attr_value): Same.
11618 (write_dummy_eligible_delay): Same.
11619 (next_comma_elt): Same.
11620 (find_attr): Same.
11621 (make_internal_attr): Same.
11622 (copy_rtx_unchanging): Same.
11623 (gen_insn_reserv): Same.
11624 (check_tune_attr): Same.
11625 (make_automaton_attrs): Same.
11626 (handle_arg): Same.
11627 * genextract.c (gen_insn): Same.
11628 (VEC_char_to_string): Same.
11629 * genmatch.c (print_operand): Same.
11630 (lower): Same.
11631 (parser::parse_operation): Same.
11632 (parser::parse_capture): Same.
11633 (parser::parse_c_expr): Same.
11634 (parser::parse_simplify): Same.
11635 (main): Same.
11636 * genoutput.c (output_operand_data): Same.
11637 (output_get_insn_name): Same.
11638 (compare_operands): Same.
11639 (place_operands): Same.
11640 (process_template): Same.
11641 (validate_insn_alternatives): Same.
11642 (validate_insn_operands): Same.
11643 (gen_expand): Same.
11644 (note_constraint): Same.
11645 * genpreds.c (write_one_predicate_function): Same.
11646 (add_constraint): Same.
11647 (process_define_register_constraint): Same.
11648 (write_lookup_constraint_1): Same.
11649 (write_lookup_constraint_array): Same.
11650 (write_insn_constraint_len): Same.
11651 (write_reg_class_for_constraint_1): Same.
11652 (write_constraint_satisfied_p_array): Same.
11653 * genrecog.c (optimize_subroutine_group): Same.
11654 * gensupport.c (process_define_predicate): Same.
11655 (queue_pattern): Same.
11656 (remove_from_queue): Same.
11657 (process_rtx): Same.
11658 (is_predicable): Same.
11659 (change_subst_attribute): Same.
11660 (subst_pattern_match): Same.
11661 (alter_constraints): Same.
11662 (alter_attrs_for_insn): Same.
11663 (shift_output_template): Same.
11664 (alter_output_for_subst_insn): Same.
11665 (process_one_cond_exec): Same.
11666 (subst_dup): Same.
11667 (process_define_cond_exec): Same.
11668 (mnemonic_htab_callback): Same.
11669 (gen_mnemonic_attr): Same.
11670 (read_md_rtx): Same.
11671 * ggc-page.c: Same.
11672 * gimple-loop-interchange.cc (dump_reduction): Same.
11673 (dump_induction): Same.
11674 (loop_cand::~loop_cand): Same.
11675 (free_data_refs_with_aux): Same.
11676 (tree_loop_interchange::interchange_loops): Same.
11677 (tree_loop_interchange::map_inductions_to_loop): Same.
11678 (tree_loop_interchange::move_code_to_inner_loop): Same.
11679 (compute_access_stride): Same.
11680 (compute_access_strides): Same.
11681 (proper_loop_form_for_interchange): Same.
11682 (tree_loop_interchange_compute_ddrs): Same.
11683 (prune_datarefs_not_in_loop): Same.
11684 (prepare_data_references): Same.
11685 (pass_linterchange::execute): Same.
11686 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11687 (unroll_jam_possible_p): Same.
11688 (fuse_loops): Same.
11689 (adjust_unroll_factor): Same.
11690 (tree_loop_unroll_and_jam): Same.
11691 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11692 (loop_versioning::expensive_stmt_p): Same.
11693 (loop_versioning::version_for_unity): Same.
11694 (loop_versioning::dump_inner_likelihood): Same.
11695 (loop_versioning::find_per_loop_multiplication): Same.
11696 (loop_versioning::analyze_term_using_scevs): Same.
11697 (loop_versioning::record_address_fragment): Same.
11698 (loop_versioning::analyze_expr): Same.
11699 (loop_versioning::analyze_blocks): Same.
11700 (loop_versioning::prune_conditions): Same.
11701 (loop_versioning::merge_loop_info): Same.
11702 (loop_versioning::add_loop_to_queue): Same.
11703 (loop_versioning::decide_whether_loop_is_versionable): Same.
11704 (loop_versioning::make_versioning_decisions): Same.
11705 (loop_versioning::implement_versioning_decisions): Same.
11706 * gimple-ssa-evrp-analyze.c
11707 (evrp_range_analyzer::record_ranges_from_phis): Same.
11708 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11709 (count_multiple_uses): Same.
11710 (split_group): Same.
11711 (imm_store_chain_info::output_merged_store): Same.
11712 (pass_store_merging::process_store): Same.
11713 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11714 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11715 (is_max): Same.
11716 (alloca_call_type): Same.
11717 (pass_walloca::execute): Same.
11718 * gimple-streamer-in.c (input_phi): Same.
11719 (input_gimple_stmt): Same.
11720 * gimple-streamer.h: Same.
11721 * godump.c (go_force_record_alignment): Same.
11722 (go_format_type): Same.
11723 (go_output_type): Same.
11724 (go_output_fndecl): Same.
11725 (go_output_typedef): Same.
11726 (keyword_hash_init): Same.
11727 (find_dummy_types): Same.
11728 * graph.c (draw_cfg_nodes_no_loops): Same.
11729 (draw_cfg_nodes_for_loop): Same.
11730 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11731 * hsa-brig.c: Same.
11732 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11733 * hsa-dump.c (dump_hsa_cfun): Same.
11734 * hsa-gen.c (gen_function_def_parameters): Same.
11735 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11736 * input.c (dump_line_table_statistics): Same.
11737 (test_lexer): Same.
11738 * input.h: Same.
11739 * internal-fn.c (get_multi_vector_move): Same.
11740 (expand_load_lanes_optab_fn): Same.
11741 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11742 (expand_GOMP_SIMT_EXIT): Same.
11743 (expand_GOMP_SIMT_LAST_LANE): Same.
11744 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11745 (expand_GOMP_SIMT_VOTE_ANY): Same.
11746 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11747 (expand_GOMP_SIMT_XCHG_IDX): Same.
11748 (expand_addsub_overflow): Same.
11749 (expand_neg_overflow): Same.
11750 (expand_mul_overflow): Same.
11751 (expand_call_mem_ref): Same.
11752 (expand_mask_load_optab_fn): Same.
11753 (expand_scatter_store_optab_fn): Same.
11754 (expand_gather_load_optab_fn): Same.
11755 * ipa-cp.c (ipa_get_parm_lattices): Same.
11756 (print_all_lattices): Same.
11757 (ignore_edge_p): Same.
11758 (build_toporder_info): Same.
11759 (free_toporder_info): Same.
11760 (push_node_to_stack): Same.
11761 (ipcp_lattice<valtype>::set_contains_variable): Same.
11762 (set_agg_lats_to_bottom): Same.
11763 (ipcp_bits_lattice::meet_with): Same.
11764 (set_single_call_flag): Same.
11765 (initialize_node_lattices): Same.
11766 (ipa_get_jf_ancestor_result): Same.
11767 (ipcp_verify_propagated_values): Same.
11768 (propagate_scalar_across_jump_function): Same.
11769 (propagate_context_across_jump_function): Same.
11770 (propagate_bits_across_jump_function): Same.
11771 (ipa_vr_operation_and_type_effects): Same.
11772 (propagate_vr_across_jump_function): Same.
11773 (set_check_aggs_by_ref): Same.
11774 (set_chain_of_aglats_contains_variable): Same.
11775 (merge_aggregate_lattices): Same.
11776 (agg_pass_through_permissible_p): Same.
11777 (propagate_aggs_across_jump_function): Same.
11778 (call_passes_through_thunk_p): Same.
11779 (propagate_constants_across_call): Same.
11780 (devirtualization_time_bonus): Same.
11781 (good_cloning_opportunity_p): Same.
11782 (context_independent_aggregate_values): Same.
11783 (gather_context_independent_values): Same.
11784 (perform_estimation_of_a_value): Same.
11785 (estimate_local_effects): Same.
11786 (value_topo_info<valtype>::add_val): Same.
11787 (add_all_node_vals_to_toposort): Same.
11788 (value_topo_info<valtype>::propagate_effects): Same.
11789 (ipcp_propagate_stage): Same.
11790 (ipcp_discover_new_direct_edges): Same.
11791 (same_node_or_its_all_contexts_clone_p): Same.
11792 (cgraph_edge_brings_value_p): Same.
11793 (gather_edges_for_value): Same.
11794 (create_specialized_node): Same.
11795 (find_more_scalar_values_for_callers_subset): Same.
11796 (find_more_contexts_for_caller_subset): Same.
11797 (copy_plats_to_inter): Same.
11798 (intersect_aggregates_with_edge): Same.
11799 (find_aggregate_values_for_callers_subset): Same.
11800 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11801 (decide_about_value): Same.
11802 (decide_whether_version_node): Same.
11803 (spread_undeadness): Same.
11804 (identify_dead_nodes): Same.
11805 (ipcp_store_vr_results): Same.
11806 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11807 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11808 (redirect_to_unreachable): Same.
11809 (edge_set_predicate): Same.
11810 (evaluate_conditions_for_known_args): Same.
11811 (evaluate_properties_for_edge): Same.
11812 (ipa_fn_summary_t::duplicate): Same.
11813 (ipa_call_summary_t::duplicate): Same.
11814 (dump_ipa_call_summary): Same.
11815 (ipa_dump_fn_summary): Same.
11816 (eliminated_by_inlining_prob): Same.
11817 (set_cond_stmt_execution_predicate): Same.
11818 (set_switch_stmt_execution_predicate): Same.
11819 (compute_bb_predicates): Same.
11820 (will_be_nonconstant_expr_predicate): Same.
11821 (phi_result_unknown_predicate): Same.
11822 (analyze_function_body): Same.
11823 (compute_fn_summary): Same.
11824 (estimate_edge_devirt_benefit): Same.
11825 (estimate_edge_size_and_time): Same.
11826 (estimate_calls_size_and_time): Same.
11827 (estimate_node_size_and_time): Same.
11828 (remap_edge_change_prob): Same.
11829 (remap_edge_summaries): Same.
11830 (ipa_merge_fn_summary_after_inlining): Same.
11831 (ipa_fn_summary_generate): Same.
11832 (inline_read_section): Same.
11833 (ipa_fn_summary_read): Same.
11834 (ipa_fn_summary_write): Same.
11835 * ipa-fnsummary.h: Same.
11836 * ipa-hsa.c (ipa_hsa_read_section): Same.
11837 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11838 * ipa-icf.c (sem_function::param_used_p): Same.
11839 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11840 * ipa-inline.c (edge_badness): Same.
11841 (inline_small_functions): Same.
11842 * ipa-polymorphic-call.c
11843 (ipa_polymorphic_call_context::stream_out): Same.
11844 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11845 (predicate::remap_after_inlining): Same.
11846 (predicate::stream_out): Same.
11847 * ipa-predicate.h: Same.
11848 * ipa-profile.c (ipa_profile_read_summary): Same.
11849 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11850 (count_formal_params): Same.
11851 (ipa_dump_param): Same.
11852 (ipa_alloc_node_params): Same.
11853 (ipa_print_node_jump_functions_for_edge): Same.
11854 (ipa_print_node_jump_functions): Same.
11855 (ipa_load_from_parm_agg): Same.
11856 (get_ancestor_addr_info): Same.
11857 (ipa_compute_jump_functions_for_edge): Same.
11858 (ipa_analyze_virtual_call_uses): Same.
11859 (ipa_analyze_stmt_uses): Same.
11860 (ipa_analyze_params_uses_in_bb): Same.
11861 (update_jump_functions_after_inlining): Same.
11862 (try_decrement_rdesc_refcount): Same.
11863 (ipa_impossible_devirt_target): Same.
11864 (update_indirect_edges_after_inlining): Same.
11865 (combine_controlled_uses_counters): Same.
11866 (ipa_edge_args_sum_t::duplicate): Same.
11867 (ipa_write_jump_function): Same.
11868 (ipa_write_indirect_edge_info): Same.
11869 (ipa_write_node_info): Same.
11870 (ipa_read_edge_info): Same.
11871 (ipa_prop_read_section): Same.
11872 (read_replacements_section): Same.
11873 * ipa-prop.h (ipa_get_param_count): Same.
11874 (ipa_get_param): Same.
11875 (ipa_get_type): Same.
11876 (ipa_get_param_move_cost): Same.
11877 (ipa_set_param_used): Same.
11878 (ipa_get_controlled_uses): Same.
11879 (ipa_set_controlled_uses): Same.
11880 (ipa_get_cs_argument_count): Same.
11881 * ipa-pure-const.c (analyze_function): Same.
11882 (pure_const_read_summary): Same.
11883 * ipa-ref.h: Same.
11884 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11885 * ipa-split.c (test_nonssa_use): Same.
11886 (dump_split_point): Same.
11887 (dominated_by_forbidden): Same.
11888 (split_part_set_ssa_name_p): Same.
11889 (find_split_points): Same.
11890 * ira-build.c (finish_loop_tree_nodes): Same.
11891 (low_pressure_loop_node_p): Same.
11892 * ira-color.c (ira_reuse_stack_slot): Same.
11893 * ira-int.h: Same.
11894 * ira.c (setup_reg_equiv): Same.
11895 (print_insn_chain): Same.
11896 (ira): Same.
11897 * loop-doloop.c (doloop_condition_get): Same.
11898 (add_test): Same.
11899 (record_reg_sets): Same.
11900 (doloop_optimize): Same.
11901 * loop-init.c (loop_optimizer_init): Same.
11902 (fix_loop_structure): Same.
11903 * loop-invariant.c (merge_identical_invariants): Same.
11904 (compute_always_reached): Same.
11905 (find_exits): Same.
11906 (may_assign_reg_p): Same.
11907 (find_invariants_bb): Same.
11908 (find_invariants_body): Same.
11909 (replace_uses): Same.
11910 (can_move_invariant_reg): Same.
11911 (free_inv_motion_data): Same.
11912 (move_single_loop_invariants): Same.
11913 (change_pressure): Same.
11914 (mark_ref_regs): Same.
11915 (calculate_loop_reg_pressure): Same.
11916 * loop-iv.c (biv_entry_hasher::equal): Same.
11917 (iv_extend_to_rtx_code): Same.
11918 (check_iv_ref_table_size): Same.
11919 (clear_iv_info): Same.
11920 (latch_dominating_def): Same.
11921 (iv_get_reaching_def): Same.
11922 (iv_constant): Same.
11923 (iv_subreg): Same.
11924 (iv_extend): Same.
11925 (iv_neg): Same.
11926 (iv_add): Same.
11927 (iv_mult): Same.
11928 (get_biv_step): Same.
11929 (record_iv): Same.
11930 (analyzed_for_bivness_p): Same.
11931 (record_biv): Same.
11932 (iv_analyze_biv): Same.
11933 (iv_analyze_expr): Same.
11934 (iv_analyze_def): Same.
11935 (iv_analyze_op): Same.
11936 (iv_analyze): Same.
11937 (iv_analyze_result): Same.
11938 (biv_p): Same.
11939 (eliminate_implied_conditions): Same.
11940 (simplify_using_initial_values): Same.
11941 (shorten_into_mode): Same.
11942 (canonicalize_iv_subregs): Same.
11943 (determine_max_iter): Same.
11944 (check_simple_exit): Same.
11945 (find_simple_exit): Same.
11946 (get_simple_loop_desc): Same.
11947 * loop-unroll.c (report_unroll): Same.
11948 (decide_unrolling): Same.
11949 (unroll_loops): Same.
11950 (loop_exit_at_end_p): Same.
11951 (decide_unroll_constant_iterations): Same.
11952 (unroll_loop_constant_iterations): Same.
11953 (compare_and_jump_seq): Same.
11954 (unroll_loop_runtime_iterations): Same.
11955 (decide_unroll_stupid): Same.
11956 (unroll_loop_stupid): Same.
11957 (referenced_in_one_insn_in_loop_p): Same.
11958 (reset_debug_uses_in_loop): Same.
11959 (analyze_iv_to_split_insn): Same.
11960 * lra-eliminations.c (lra_debug_elim_table): Same.
11961 (setup_can_eliminate): Same.
11962 (form_sum): Same.
11963 (lra_get_elimination_hard_regno): Same.
11964 (lra_eliminate_regs_1): Same.
11965 (eliminate_regs_in_insn): Same.
11966 (update_reg_eliminate): Same.
11967 (init_elimination): Same.
11968 (lra_eliminate): Same.
11969 * lra-int.h: Same.
11970 * lra-lives.c (initiate_live_solver): Same.
11971 * lra-remat.c (create_remat_bb_data): Same.
11972 * lra-spills.c (lra_spill): Same.
11973 * lra.c (lra_set_insn_recog_data): Same.
11974 (lra_set_used_insn_alternative_by_uid): Same.
11975 (init_reg_info): Same.
11976 (expand_reg_info): Same.
11977 * lto-cgraph.c (output_symtab): Same.
11978 (read_identifier): Same.
11979 (get_alias_symbol): Same.
11980 (input_node): Same.
11981 (input_varpool_node): Same.
11982 (input_ref): Same.
11983 (input_edge): Same.
11984 (input_cgraph_1): Same.
11985 (input_refs): Same.
11986 (input_symtab): Same.
11987 (input_offload_tables): Same.
11988 (output_cgraph_opt_summary): Same.
11989 (input_edge_opt_summary): Same.
11990 (input_cgraph_opt_section): Same.
11991 * lto-section-in.c (lto_free_raw_section_data): Same.
11992 (lto_create_simple_input_block): Same.
11993 (lto_free_function_in_decl_state_for_node): Same.
11994 * lto-streamer-in.c (lto_tag_check_set): Same.
11995 (lto_location_cache::revert_location_cache): Same.
11996 (lto_location_cache::input_location): Same.
11997 (lto_input_location): Same.
11998 (stream_input_location_now): Same.
11999 (lto_input_tree_ref): Same.
12000 (lto_input_eh_catch_list): Same.
12001 (input_eh_region): Same.
12002 (lto_init_eh): Same.
12003 (make_new_block): Same.
12004 (input_cfg): Same.
12005 (fixup_call_stmt_edges): Same.
12006 (input_struct_function_base): Same.
12007 (input_function): Same.
12008 (lto_read_body_or_constructor): Same.
12009 (lto_read_tree_1): Same.
12010 (lto_read_tree): Same.
12011 (lto_input_scc): Same.
12012 (lto_input_tree_1): Same.
12013 (lto_input_toplevel_asms): Same.
12014 (lto_input_mode_table): Same.
12015 (lto_reader_init): Same.
12016 (lto_data_in_create): Same.
12017 * lto-streamer-out.c (output_cfg): Same.
12018 * lto-streamer.h: Same.
12019 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12020 (generate_prolog_epilog): Same.
12021 (mark_loop_unsched): Same.
12022 (dump_insn_location): Same.
12023 (loop_canon_p): Same.
12024 (sms_schedule): Same.
12025 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12026 (expand_omp_for_generic): Same.
12027 (expand_omp_for_static_nochunk): Same.
12028 (expand_omp_for_static_chunk): Same.
12029 (expand_omp_simd): Same.
12030 (expand_omp_taskloop_for_inner): Same.
12031 (expand_oacc_for): Same.
12032 (expand_omp_atomic_pipeline): Same.
12033 (mark_loops_in_oacc_kernels_region): Same.
12034 * omp-offload.c (oacc_xform_loop): Same.
12035 * omp-simd-clone.c (simd_clone_adjust): Same.
12036 * optabs-query.c (get_traditional_extraction_insn): Same.
12037 * optabs.c (expand_vector_broadcast): Same.
12038 (expand_binop_directly): Same.
12039 (expand_twoval_unop): Same.
12040 (expand_twoval_binop): Same.
12041 (expand_unop_direct): Same.
12042 (emit_indirect_jump): Same.
12043 (emit_conditional_move): Same.
12044 (emit_conditional_neg_or_complement): Same.
12045 (emit_conditional_add): Same.
12046 (vector_compare_rtx): Same.
12047 (expand_vec_perm_1): Same.
12048 (expand_vec_perm_const): Same.
12049 (expand_vec_cond_expr): Same.
12050 (expand_vec_series_expr): Same.
12051 (maybe_emit_atomic_exchange): Same.
12052 (maybe_emit_sync_lock_test_and_set): Same.
12053 (expand_atomic_compare_and_swap): Same.
12054 (expand_atomic_load): Same.
12055 (expand_atomic_store): Same.
12056 (maybe_emit_op): Same.
12057 (valid_multiword_target_p): Same.
12058 (create_integer_operand): Same.
12059 (maybe_legitimize_operand_same_code): Same.
12060 (maybe_legitimize_operand): Same.
12061 (create_convert_operand_from_type): Same.
12062 (can_reuse_operands_p): Same.
12063 (maybe_legitimize_operands): Same.
12064 (maybe_gen_insn): Same.
12065 (maybe_expand_insn): Same.
12066 (maybe_expand_jump_insn): Same.
12067 (expand_insn): Same.
12068 * optabs.h (create_expand_operand): Same.
12069 (create_fixed_operand): Same.
12070 (create_output_operand): Same.
12071 (create_input_operand): Same.
12072 (create_convert_operand_to): Same.
12073 (create_convert_operand_from): Same.
12074 * optinfo.h: Same.
12075 * poly-int.h: Same.
12076 * predict.c (optimize_insn_for_speed_p): Same.
12077 (optimize_loop_for_size_p): Same.
12078 (optimize_loop_for_speed_p): Same.
12079 (optimize_loop_nest_for_speed_p): Same.
12080 (get_base_value): Same.
12081 (predicted_by_loop_heuristics_p): Same.
12082 (predict_extra_loop_exits): Same.
12083 (predict_loops): Same.
12084 (predict_paths_for_bb): Same.
12085 (predict_paths_leading_to): Same.
12086 (propagate_freq): Same.
12087 (pass_profile::execute): Same.
12088 * predict.h: Same.
12089 * profile-count.c (profile_count::differs_from_p): Same.
12090 (profile_probability::differs_lot_from_p): Same.
12091 * profile-count.h: Same.
12092 * profile.c (branch_prob): Same.
12093 * regrename.c (free_chain_data): Same.
12094 (mark_conflict): Same.
12095 (create_new_chain): Same.
12096 (merge_overlapping_regs): Same.
12097 (init_rename_info): Same.
12098 (merge_chains): Same.
12099 (regrename_analyze): Same.
12100 (regrename_do_replace): Same.
12101 (scan_rtx_reg): Same.
12102 (record_out_operands): Same.
12103 (build_def_use): Same.
12104 * regrename.h: Same.
12105 * reload.h: Same.
12106 * reload1.c (init_reload): Same.
12107 (maybe_fix_stack_asms): Same.
12108 (copy_reloads): Same.
12109 (count_pseudo): Same.
12110 (count_spilled_pseudo): Same.
12111 (find_reg): Same.
12112 (find_reload_regs): Same.
12113 (select_reload_regs): Same.
12114 (spill_hard_reg): Same.
12115 (fixup_eh_region_note): Same.
12116 (set_reload_reg): Same.
12117 (allocate_reload_reg): Same.
12118 (compute_reload_subreg_offset): Same.
12119 (reload_adjust_reg_for_icode): Same.
12120 (emit_input_reload_insns): Same.
12121 (emit_output_reload_insns): Same.
12122 (do_input_reload): Same.
12123 (inherit_piecemeal_p): Same.
12124 * rtl.h: Same.
12125 * sanopt.c (maybe_get_dominating_check): Same.
12126 (maybe_optimize_ubsan_ptr_ifn): Same.
12127 (can_remove_asan_check): Same.
12128 (maybe_optimize_asan_check_ifn): Same.
12129 (sanopt_optimize_walker): Same.
12130 * sched-deps.c (add_dependence_list): Same.
12131 (chain_to_prev_insn): Same.
12132 (add_insn_mem_dependence): Same.
12133 (create_insn_reg_set): Same.
12134 (maybe_extend_reg_info_p): Same.
12135 (sched_analyze_reg): Same.
12136 (sched_analyze_1): Same.
12137 (get_implicit_reg_pending_clobbers): Same.
12138 (chain_to_prev_insn_p): Same.
12139 (deps_analyze_insn): Same.
12140 (deps_start_bb): Same.
12141 (sched_free_deps): Same.
12142 (init_deps): Same.
12143 (init_deps_reg_last): Same.
12144 (free_deps): Same.
12145 * sched-ebb.c: Same.
12146 * sched-int.h: Same.
12147 * sched-rgn.c (add_branch_dependences): Same.
12148 (concat_insn_mem_list): Same.
12149 (deps_join): Same.
12150 (sched_rgn_compute_dependencies): Same.
12151 * sel-sched-ir.c (reset_target_context): Same.
12152 (copy_deps_context): Same.
12153 (init_id_from_df): Same.
12154 (has_dependence_p): Same.
12155 (change_loops_latches): Same.
12156 (bb_top_order_comparator): Same.
12157 (make_region_from_loop_preheader): Same.
12158 (sel_init_pipelining): Same.
12159 (get_loop_nest_for_rgn): Same.
12160 (make_regions_from_the_rest): Same.
12161 (sel_is_loop_preheader_p): Same.
12162 * sel-sched-ir.h (inner_loop_header_p): Same.
12163 (get_all_loop_exits): Same.
12164 * selftest.h: Same.
12165 * sese.c (sese_build_liveouts): Same.
12166 (sese_insert_phis_for_liveouts): Same.
12167 * sese.h (defined_in_sese_p): Same.
12168 * sreal.c (sreal::stream_out): Same.
12169 * sreal.h: Same.
12170 * streamer-hooks.h: Same.
12171 * target-globals.c (save_target_globals): Same.
12172 * target-globals.h: Same.
12173 * target.def: Same.
12174 * target.h: Same.
12175 * targhooks.c (default_has_ifunc_p): Same.
12176 (default_empty_mask_is_expensive): Same.
12177 (default_init_cost): Same.
12178 * targhooks.h: Same.
12179 * toplev.c: Same.
12180 * tree-affine.c (aff_combination_mult): Same.
12181 (aff_combination_expand): Same.
12182 (aff_combination_constant_multiple_p): Same.
12183 * tree-affine.h: Same.
12184 * tree-cfg.c (build_gimple_cfg): Same.
12185 (replace_loop_annotate_in_block): Same.
12186 (replace_uses_by): Same.
12187 (remove_bb): Same.
12188 (dump_cfg_stats): Same.
12189 (gimple_duplicate_sese_region): Same.
12190 (gimple_duplicate_sese_tail): Same.
12191 (move_block_to_fn): Same.
12192 (replace_block_vars_by_duplicates): Same.
12193 (move_sese_region_to_fn): Same.
12194 (print_loops_bb): Same.
12195 (print_loop): Same.
12196 (print_loops): Same.
12197 (debug): Same.
12198 (debug_loops): Same.
12199 * tree-cfg.h: Same.
12200 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12201 (chrec_fold_multiply_poly_poly): Same.
12202 (chrec_evaluate): Same.
12203 (chrec_component_in_loop_num): Same.
12204 (reset_evolution_in_loop): Same.
12205 (is_multivariate_chrec): Same.
12206 (chrec_contains_symbols): Same.
12207 (nb_vars_in_chrec): Same.
12208 (chrec_convert_1): Same.
12209 (chrec_convert_aggressive): Same.
12210 * tree-chrec.h: Same.
12211 * tree-core.h: Same.
12212 * tree-data-ref.c (dump_data_dependence_relation): Same.
12213 (canonicalize_base_object_address): Same.
12214 (data_ref_compare_tree): Same.
12215 (prune_runtime_alias_test_list): Same.
12216 (get_segment_min_max): Same.
12217 (create_intersect_range_checks): Same.
12218 (conflict_fn_no_dependence): Same.
12219 (object_address_invariant_in_loop_p): Same.
12220 (analyze_ziv_subscript): Same.
12221 (analyze_siv_subscript_cst_affine): Same.
12222 (analyze_miv_subscript): Same.
12223 (analyze_overlapping_iterations): Same.
12224 (build_classic_dist_vector_1): Same.
12225 (add_other_self_distances): Same.
12226 (same_access_functions): Same.
12227 (build_classic_dir_vector): Same.
12228 (subscript_dependence_tester_1): Same.
12229 (subscript_dependence_tester): Same.
12230 (access_functions_are_affine_or_constant_p): Same.
12231 (get_references_in_stmt): Same.
12232 (loop_nest_has_data_refs): Same.
12233 (graphite_find_data_references_in_stmt): Same.
12234 (find_data_references_in_bb): Same.
12235 (get_base_for_alignment): Same.
12236 (find_loop_nest_1): Same.
12237 (find_loop_nest): Same.
12238 * tree-data-ref.h (dr_alignment): Same.
12239 (ddr_dependence_level): Same.
12240 * tree-if-conv.c (fold_build_cond_expr): Same.
12241 (add_to_predicate_list): Same.
12242 (add_to_dst_predicate_list): Same.
12243 (phi_convertible_by_degenerating_args): Same.
12244 (idx_within_array_bound): Same.
12245 (all_preds_critical_p): Same.
12246 (pred_blocks_visited_p): Same.
12247 (predicate_bbs): Same.
12248 (build_region): Same.
12249 (if_convertible_loop_p_1): Same.
12250 (is_cond_scalar_reduction): Same.
12251 (predicate_scalar_phi): Same.
12252 (remove_conditions_and_labels): Same.
12253 (combine_blocks): Same.
12254 (version_loop_for_if_conversion): Same.
12255 (versionable_outer_loop_p): Same.
12256 (ifcvt_local_dce): Same.
12257 (tree_if_conversion): Same.
12258 (pass_if_conversion::gate): Same.
12259 * tree-if-conv.h: Same.
12260 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12261 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12262 (free_rdg): Same.
12263 (stmt_has_scalar_dependences_outside_loop): Same.
12264 (copy_loop_before): Same.
12265 (create_bb_after_loop): Same.
12266 (const_with_all_bytes_same): Same.
12267 (generate_memset_builtin): Same.
12268 (generate_memcpy_builtin): Same.
12269 (destroy_loop): Same.
12270 (build_rdg_partition_for_vertex): Same.
12271 (compute_access_range): Same.
12272 (data_ref_segment_size): Same.
12273 (latch_dominated_by_data_ref): Same.
12274 (compute_alias_check_pairs): Same.
12275 (fuse_memset_builtins): Same.
12276 (finalize_partitions): Same.
12277 (find_seed_stmts_for_distribution): Same.
12278 (prepare_perfect_loop_nest): Same.
12279 * tree-parloops.c (lambda_transform_legal_p): Same.
12280 (loop_parallel_p): Same.
12281 (reduc_stmt_res): Same.
12282 (add_field_for_name): Same.
12283 (create_call_for_reduction_1): Same.
12284 (replace_uses_in_bb_by): Same.
12285 (transform_to_exit_first_loop_alt): Same.
12286 (try_transform_to_exit_first_loop_alt): Same.
12287 (transform_to_exit_first_loop): Same.
12288 (num_phis): Same.
12289 (gen_parallel_loop): Same.
12290 (gather_scalar_reductions): Same.
12291 (get_omp_data_i_param): Same.
12292 (try_create_reduction_list): Same.
12293 (oacc_entry_exit_single_gang): Same.
12294 (parallelize_loops): Same.
12295 * tree-pass.h: Same.
12296 * tree-predcom.c (determine_offset): Same.
12297 (last_always_executed_block): Same.
12298 (split_data_refs_to_components): Same.
12299 (suitable_component_p): Same.
12300 (valid_initializer_p): Same.
12301 (find_looparound_phi): Same.
12302 (insert_looparound_copy): Same.
12303 (add_looparound_copies): Same.
12304 (determine_roots_comp): Same.
12305 (predcom_tmp_var): Same.
12306 (initialize_root_vars): Same.
12307 (initialize_root_vars_store_elim_1): Same.
12308 (initialize_root_vars_store_elim_2): Same.
12309 (finalize_eliminated_stores): Same.
12310 (initialize_root_vars_lm): Same.
12311 (remove_stmt): Same.
12312 (determine_unroll_factor): Same.
12313 (execute_pred_commoning_cbck): Same.
12314 (base_names_in_chain_on): Same.
12315 (combine_chains): Same.
12316 (pcom_stmt_dominates_stmt_p): Same.
12317 (try_combine_chains): Same.
12318 (prepare_initializers_chain_store_elim): Same.
12319 (prepare_initializers_chain): Same.
12320 (prepare_initializers): Same.
12321 (prepare_finalizers_chain): Same.
12322 (prepare_finalizers): Same.
12323 (insert_init_seqs): Same.
12324 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12325 (compute_overall_effect_of_inner_loop): Same.
12326 (add_to_evolution_1): Same.
12327 (add_to_evolution): Same.
12328 (follow_ssa_edge_binary): Same.
12329 (follow_ssa_edge_expr): Same.
12330 (backedge_phi_arg_p): Same.
12331 (follow_ssa_edge_in_condition_phi_branch): Same.
12332 (follow_ssa_edge_in_condition_phi): Same.
12333 (follow_ssa_edge_inner_loop_phi): Same.
12334 (follow_ssa_edge): Same.
12335 (analyze_evolution_in_loop): Same.
12336 (analyze_initial_condition): Same.
12337 (interpret_loop_phi): Same.
12338 (interpret_condition_phi): Same.
12339 (interpret_rhs_expr): Same.
12340 (interpret_expr): Same.
12341 (interpret_gimple_assign): Same.
12342 (analyze_scalar_evolution_1): Same.
12343 (analyze_scalar_evolution): Same.
12344 (analyze_scalar_evolution_for_address_of): Same.
12345 (get_instantiated_value_entry): Same.
12346 (loop_closed_phi_def): Same.
12347 (instantiate_scev_name): Same.
12348 (instantiate_scev_poly): Same.
12349 (instantiate_scev_binary): Same.
12350 (instantiate_scev_convert): Same.
12351 (instantiate_scev_not): Same.
12352 (instantiate_scev_r): Same.
12353 (instantiate_scev): Same.
12354 (resolve_mixers): Same.
12355 (initialize_scalar_evolutions_analyzer): Same.
12356 (scev_reset_htab): Same.
12357 (scev_reset): Same.
12358 (derive_simple_iv_with_niters): Same.
12359 (simple_iv_with_niters): Same.
12360 (expression_expensive_p): Same.
12361 (final_value_replacement_loop): Same.
12362 * tree-scalar-evolution.h (block_before_loop): Same.
12363 * tree-ssa-address.h: Same.
12364 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12365 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12366 (record_edge_info): Same.
12367 * tree-ssa-live.c (var_map_base_fini): Same.
12368 (remove_unused_locals): Same.
12369 * tree-ssa-live.h: Same.
12370 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12371 (pass_ch_vect::execute): Same.
12372 (pass_ch::process_loop_p): Same.
12373 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12374 (movement_possibility): Same.
12375 (outermost_invariant_loop): Same.
12376 (stmt_cost): Same.
12377 (determine_max_movement): Same.
12378 (invariantness_dom_walker::before_dom_children): Same.
12379 (move_computations): Same.
12380 (may_move_till): Same.
12381 (force_move_till_op): Same.
12382 (force_move_till): Same.
12383 (memref_free): Same.
12384 (record_mem_ref_loc): Same.
12385 (set_ref_stored_in_loop): Same.
12386 (mark_ref_stored): Same.
12387 (sort_bbs_in_loop_postorder_cmp): Same.
12388 (sort_locs_in_loop_postorder_cmp): Same.
12389 (analyze_memory_references): Same.
12390 (mem_refs_may_alias_p): Same.
12391 (find_ref_loc_in_loop_cmp): Same.
12392 (rewrite_mem_ref_loc::operator): Same.
12393 (first_mem_ref_loc_1::operator): Same.
12394 (sm_set_flag_if_changed::operator): Same.
12395 (execute_sm_if_changed_flag_set): Same.
12396 (execute_sm): Same.
12397 (hoist_memory_references): Same.
12398 (ref_always_accessed::operator): Same.
12399 (refs_independent_p): Same.
12400 (record_dep_loop): Same.
12401 (ref_indep_loop_p_1): Same.
12402 (ref_indep_loop_p): Same.
12403 (can_sm_ref_p): Same.
12404 (find_refs_for_sm): Same.
12405 (loop_suitable_for_sm): Same.
12406 (store_motion_loop): Same.
12407 (store_motion): Same.
12408 (fill_always_executed_in): Same.
12409 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12410 (estimated_unrolled_size): Same.
12411 (loop_edge_to_cancel): Same.
12412 (remove_exits_and_undefined_stmts): Same.
12413 (remove_redundant_iv_tests): Same.
12414 (unloop_loops): Same.
12415 (estimated_peeled_sequence_size): Same.
12416 (try_peel_loop): Same.
12417 (canonicalize_loop_induction_variables): Same.
12418 (canonicalize_induction_variables): Same.
12419 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12420 (name_info): Same.
12421 (stmt_after_inc_pos): Same.
12422 (contains_abnormal_ssa_name_p): Same.
12423 (niter_for_exit): Same.
12424 (find_bivs): Same.
12425 (mark_bivs): Same.
12426 (find_givs_in_bb): Same.
12427 (find_induction_variables): Same.
12428 (find_interesting_uses_cond): Same.
12429 (outermost_invariant_loop_for_expr): Same.
12430 (idx_find_step): Same.
12431 (add_candidate_1): Same.
12432 (add_iv_candidate_derived_from_uses): Same.
12433 (alloc_use_cost_map): Same.
12434 (prepare_decl_rtl): Same.
12435 (generic_predict_doloop_p): Same.
12436 (computation_cost): Same.
12437 (determine_common_wider_type): Same.
12438 (get_computation_aff_1): Same.
12439 (get_use_type): Same.
12440 (determine_group_iv_cost_address): Same.
12441 (iv_period): Same.
12442 (difference_cannot_overflow_p): Same.
12443 (may_eliminate_iv): Same.
12444 (determine_set_costs): Same.
12445 (cheaper_cost_pair): Same.
12446 (compare_cost_pair): Same.
12447 (iv_ca_cand_for_group): Same.
12448 (iv_ca_recount_cost): Same.
12449 (iv_ca_set_remove_invs): Same.
12450 (iv_ca_set_no_cp): Same.
12451 (iv_ca_set_add_invs): Same.
12452 (iv_ca_set_cp): Same.
12453 (iv_ca_add_group): Same.
12454 (iv_ca_cost): Same.
12455 (iv_ca_compare_deps): Same.
12456 (iv_ca_delta_reverse): Same.
12457 (iv_ca_delta_commit): Same.
12458 (iv_ca_cand_used_p): Same.
12459 (iv_ca_delta_free): Same.
12460 (iv_ca_new): Same.
12461 (iv_ca_free): Same.
12462 (iv_ca_dump): Same.
12463 (iv_ca_extend): Same.
12464 (iv_ca_narrow): Same.
12465 (iv_ca_prune): Same.
12466 (cheaper_cost_with_cand): Same.
12467 (iv_ca_replace): Same.
12468 (try_add_cand_for): Same.
12469 (get_initial_solution): Same.
12470 (try_improve_iv_set): Same.
12471 (find_optimal_iv_set_1): Same.
12472 (create_new_iv): Same.
12473 (rewrite_use_compare): Same.
12474 (remove_unused_ivs): Same.
12475 (determine_scaling_factor): Same.
12476 * tree-ssa-loop-ivopts.h: Same.
12477 * tree-ssa-loop-manip.c (create_iv): Same.
12478 (compute_live_loop_exits): Same.
12479 (add_exit_phi): Same.
12480 (add_exit_phis): Same.
12481 (find_uses_to_rename_use): Same.
12482 (find_uses_to_rename_def): Same.
12483 (find_uses_to_rename_in_loop): Same.
12484 (rewrite_into_loop_closed_ssa): Same.
12485 (check_loop_closed_ssa_bb): Same.
12486 (split_loop_exit_edge): Same.
12487 (ip_end_pos): Same.
12488 (ip_normal_pos): Same.
12489 (copy_phi_node_args): Same.
12490 (gimple_duplicate_loop_to_header_edge): Same.
12491 (can_unroll_loop_p): Same.
12492 (determine_exit_conditions): Same.
12493 (scale_dominated_blocks_in_loop): Same.
12494 (niter_for_unrolled_loop): Same.
12495 (tree_transform_and_unroll_loop): Same.
12496 (rewrite_all_phi_nodes_with_iv): Same.
12497 * tree-ssa-loop-manip.h: Same.
12498 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12499 (number_of_iterations_ne): Same.
12500 (assert_no_overflow_lt): Same.
12501 (assert_loop_rolls_lt): Same.
12502 (number_of_iterations_lt): Same.
12503 (adjust_cond_for_loop_until_wrap): Same.
12504 (tree_simplify_using_condition): Same.
12505 (simplify_using_initial_conditions): Same.
12506 (simplify_using_outer_evolutions): Same.
12507 (loop_only_exit_p): Same.
12508 (ssa_defined_by_minus_one_stmt_p): Same.
12509 (number_of_iterations_popcount): Same.
12510 (number_of_iterations_exit): Same.
12511 (find_loop_niter): Same.
12512 (finite_loop_p): Same.
12513 (chain_of_csts_start): Same.
12514 (get_val_for): Same.
12515 (loop_niter_by_eval): Same.
12516 (derive_constant_upper_bound_ops): Same.
12517 (do_warn_aggressive_loop_optimizations): Same.
12518 (record_estimate): Same.
12519 (get_cst_init_from_scev): Same.
12520 (record_nonwrapping_iv): Same.
12521 (idx_infer_loop_bounds): Same.
12522 (infer_loop_bounds_from_ref): Same.
12523 (infer_loop_bounds_from_array): Same.
12524 (infer_loop_bounds_from_pointer_arith): Same.
12525 (infer_loop_bounds_from_signedness): Same.
12526 (bound_index): Same.
12527 (discover_iteration_bound_by_body_walk): Same.
12528 (maybe_lower_iteration_bound): Same.
12529 (estimate_numbers_of_iterations): Same.
12530 (estimated_loop_iterations): Same.
12531 (estimated_loop_iterations_int): Same.
12532 (max_loop_iterations): Same.
12533 (max_loop_iterations_int): Same.
12534 (likely_max_loop_iterations): Same.
12535 (likely_max_loop_iterations_int): Same.
12536 (estimated_stmt_executions_int): Same.
12537 (max_stmt_executions): Same.
12538 (likely_max_stmt_executions): Same.
12539 (estimated_stmt_executions): Same.
12540 (stmt_dominates_stmt_p): Same.
12541 (nowrap_type_p): Same.
12542 (loop_exits_before_overflow): Same.
12543 (scev_var_range_cant_overflow): Same.
12544 (scev_probably_wraps_p): Same.
12545 (free_numbers_of_iterations_estimates): Same.
12546 * tree-ssa-loop-niter.h: Same.
12547 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12548 (idx_analyze_ref): Same.
12549 (analyze_ref): Same.
12550 (gather_memory_references_ref): Same.
12551 (mark_nontemporal_store): Same.
12552 (emit_mfence_after_loop): Same.
12553 (may_use_storent_in_loop_p): Same.
12554 (mark_nontemporal_stores): Same.
12555 (should_unroll_loop_p): Same.
12556 (volume_of_dist_vector): Same.
12557 (add_subscript_strides): Same.
12558 (self_reuse_distance): Same.
12559 (insn_to_prefetch_ratio_too_small_p): Same.
12560 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12561 (patch_loop_exit): Same.
12562 (find_or_create_guard_phi): Same.
12563 (easy_exit_values): Same.
12564 (connect_loop_phis): Same.
12565 (connect_loops): Same.
12566 (compute_new_first_bound): Same.
12567 (split_loop): Same.
12568 (tree_ssa_split_loops): Same.
12569 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12570 (is_maybe_undefined): Same.
12571 (tree_may_unswitch_on): Same.
12572 (simplify_using_entry_checks): Same.
12573 (tree_unswitch_single_loop): Same.
12574 (tree_unswitch_loop): Same.
12575 (tree_unswitch_outer_loop): Same.
12576 (empty_bb_without_guard_p): Same.
12577 (used_outside_loop_p): Same.
12578 (get_vop_from_header): Same.
12579 (hoist_guard): Same.
12580 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12581 (get_lsm_tmp_name): Same.
12582 * tree-ssa-loop.h: Same.
12583 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12584 (build_and_add_sum): Same.
12585 (no_side_effect_bb): Same.
12586 (get_ops): Same.
12587 (linearize_expr): Same.
12588 (should_break_up_subtract): Same.
12589 (linearize_expr_tree): Same.
12590 * tree-ssa-scopedtables.c: Same.
12591 * tree-ssa-scopedtables.h: Same.
12592 * tree-ssa-structalias.c (condense_visit): Same.
12593 (label_visit): Same.
12594 (dump_pred_graph): Same.
12595 (perform_var_substitution): Same.
12596 (move_complex_constraints): Same.
12597 (remove_preds_and_fake_succs): Same.
12598 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12599 (determine_bb_domination_status): Same.
12600 (duplicate_thread_path): Same.
12601 (thread_through_all_blocks): Same.
12602 * tree-ssa-threadupdate.h: Same.
12603 * tree-streamer-in.c (streamer_read_string_cst): Same.
12604 (input_identifier): Same.
12605 (unpack_ts_type_common_value_fields): Same.
12606 (unpack_ts_block_value_fields): Same.
12607 (unpack_ts_translation_unit_decl_value_fields): Same.
12608 (unpack_ts_omp_clause_value_fields): Same.
12609 (streamer_read_tree_bitfields): Same.
12610 (streamer_alloc_tree): Same.
12611 (lto_input_ts_common_tree_pointers): Same.
12612 (lto_input_ts_vector_tree_pointers): Same.
12613 (lto_input_ts_poly_tree_pointers): Same.
12614 (lto_input_ts_complex_tree_pointers): Same.
12615 (lto_input_ts_decl_minimal_tree_pointers): Same.
12616 (lto_input_ts_decl_common_tree_pointers): Same.
12617 (lto_input_ts_decl_non_common_tree_pointers): Same.
12618 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12619 (lto_input_ts_field_decl_tree_pointers): Same.
12620 (lto_input_ts_function_decl_tree_pointers): Same.
12621 (lto_input_ts_type_common_tree_pointers): Same.
12622 (lto_input_ts_type_non_common_tree_pointers): Same.
12623 (lto_input_ts_list_tree_pointers): Same.
12624 (lto_input_ts_vec_tree_pointers): Same.
12625 (lto_input_ts_exp_tree_pointers): Same.
12626 (lto_input_ts_block_tree_pointers): Same.
12627 (lto_input_ts_binfo_tree_pointers): Same.
12628 (lto_input_ts_constructor_tree_pointers): Same.
12629 (lto_input_ts_omp_clause_tree_pointers): Same.
12630 (streamer_read_tree_body): Same.
12631 * tree-streamer.h: Same.
12632 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12633 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12634 (vect_analyze_possibly_independent_ddr): Same.
12635 (vect_analyze_data_ref_dependence): Same.
12636 (vect_compute_data_ref_alignment): Same.
12637 (vect_enhance_data_refs_alignment): Same.
12638 (vect_analyze_data_ref_access): Same.
12639 (vect_check_gather_scatter): Same.
12640 (vect_find_stmt_data_reference): Same.
12641 (vect_create_addr_base_for_vector_ref): Same.
12642 (vect_setup_realignment): Same.
12643 (vect_supportable_dr_alignment): Same.
12644 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12645 (adjust_phi_and_debug_stmts): Same.
12646 (vect_set_loop_mask): Same.
12647 (add_preheader_seq): Same.
12648 (vect_maybe_permute_loop_masks): Same.
12649 (vect_set_loop_masks_directly): Same.
12650 (vect_set_loop_condition_masked): Same.
12651 (vect_set_loop_condition_unmasked): Same.
12652 (slpeel_duplicate_current_defs_from_edges): Same.
12653 (slpeel_add_loop_guard): Same.
12654 (slpeel_can_duplicate_loop_p): Same.
12655 (create_lcssa_for_virtual_phi): Same.
12656 (iv_phi_p): Same.
12657 (vect_update_ivs_after_vectorizer): Same.
12658 (vect_gen_vector_loop_niters_mult_vf): Same.
12659 (slpeel_update_phi_nodes_for_loops): Same.
12660 (slpeel_update_phi_nodes_for_guard1): Same.
12661 (find_guard_arg): Same.
12662 (slpeel_update_phi_nodes_for_guard2): Same.
12663 (slpeel_update_phi_nodes_for_lcssa): Same.
12664 (vect_do_peeling): Same.
12665 (vect_create_cond_for_alias_checks): Same.
12666 (vect_loop_versioning): Same.
12667 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12668 (vect_inner_phi_in_double_reduction_p): Same.
12669 (vect_analyze_scalar_cycles_1): Same.
12670 (vect_fixup_scalar_cycles_with_patterns): Same.
12671 (vect_get_loop_niters): Same.
12672 (bb_in_loop_p): Same.
12673 (vect_get_max_nscalars_per_iter): Same.
12674 (vect_verify_full_masking): Same.
12675 (vect_compute_single_scalar_iteration_cost): Same.
12676 (vect_analyze_loop_form_1): Same.
12677 (vect_analyze_loop_form): Same.
12678 (vect_active_double_reduction_p): Same.
12679 (vect_analyze_loop_operations): Same.
12680 (neutral_op_for_slp_reduction): Same.
12681 (vect_is_simple_reduction): Same.
12682 (vect_model_reduction_cost): Same.
12683 (get_initial_def_for_reduction): Same.
12684 (get_initial_defs_for_reduction): Same.
12685 (vect_create_epilog_for_reduction): Same.
12686 (vectorize_fold_left_reduction): Same.
12687 (vectorizable_reduction): Same.
12688 (vectorizable_induction): Same.
12689 (vectorizable_live_operation): Same.
12690 (loop_niters_no_overflow): Same.
12691 (vect_get_loop_mask): Same.
12692 (vect_transform_loop_stmt): Same.
12693 (vect_transform_loop): Same.
12694 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12695 (vect_determine_precisions): Same.
12696 (vect_pattern_recog_1): Same.
12697 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12698 * tree-vect-stmts.c (stmt_vectype): Same.
12699 (process_use): Same.
12700 (vect_init_vector_1): Same.
12701 (vect_truncate_gather_scatter_offset): Same.
12702 (get_group_load_store_type): Same.
12703 (vect_build_gather_load_calls): Same.
12704 (vect_get_strided_load_store_ops): Same.
12705 (vectorizable_simd_clone_call): Same.
12706 (vectorizable_store): Same.
12707 (permute_vec_elements): Same.
12708 (vectorizable_load): Same.
12709 (vect_transform_stmt): Same.
12710 (supportable_widening_operation): Same.
12711 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12712 (vec_info::free_stmt_vec_info): Same.
12713 (vect_free_loop_info_assumptions): Same.
12714 (vect_loop_vectorized_call): Same.
12715 (set_uid_loop_bbs): Same.
12716 (vectorize_loops): Same.
12717 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12718 * tree.c (add_tree_to_fld_list): Same.
12719 (fld_type_variant_equal_p): Same.
12720 (fld_decl_context): Same.
12721 (fld_incomplete_type_of): Same.
12722 (free_lang_data_in_binfo): Same.
12723 (need_assembler_name_p): Same.
12724 (find_decls_types_r): Same.
12725 (get_eh_types_for_runtime): Same.
12726 (find_decls_types_in_eh_region): Same.
12727 (find_decls_types_in_node): Same.
12728 (assign_assembler_name_if_needed): Same.
12729 * value-prof.c (stream_out_histogram_value): Same.
12730 * value-prof.h: Same.
12731 * var-tracking.c (use_narrower_mode): Same.
12732 (prepare_call_arguments): Same.
12733 (vt_expand_loc_callback): Same.
12734 (resolve_expansions_pending_recursion): Same.
12735 (vt_expand_loc): Same.
12736 * varasm.c (const_hash_1): Same.
12737 (compare_constant): Same.
12738 (tree_output_constant_def): Same.
12739 (simplify_subtraction): Same.
12740 (get_pool_constant): Same.
12741 (output_constant_pool_2): Same.
12742 (output_constant_pool_1): Same.
12743 (mark_constants_in_pattern): Same.
12744 (mark_constant_pool): Same.
12745 (get_section_anchor): Same.
12746 * vr-values.c (compare_range_with_value): Same.
12747 (vr_values::extract_range_from_phi_node): Same.
12748 * vr-values.h: Same.
12749 * web.c (unionfind_union): Same.
12750 * wide-int.h: Same.
12751
12752 2019-07-09 Martin Sebor <msebor@redhat.com>
12753
12754 PR c++/61339
12755 * align.h: Change class-key from class to struct and vice versa
12756 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12757 * alloc-pool.h: Same.
12758 * asan.c (shadow_mem_size): Same.
12759 * auto-profile.c: Same.
12760 * basic-block.h: Same.
12761 * bitmap.h: Same.
12762 * cfgexpand.c (set_rtl): Same.
12763 (expand_one_stack_var_at): Same.
12764 * cfghooks.h: Same.
12765 * cfgloop.h: Same.
12766 * cgraph.h: Same.
12767 * config/i386/i386.h: Same.
12768 * df-problems.c (df_print_bb_index): Same.
12769 * df-scan.c: Same.
12770 * df.h (df_single_use): Same.
12771 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12772 (layout::annotation_line_showed_range_p): Same.
12773 (get_printed_columns): Same.
12774 (correction::ensure_terminated): Same.
12775 (line_corrections::~line_corrections): Same.
12776 * dojump.h: Same.
12777 * dse.c: Same.
12778 * dump-context.h: Same.
12779 * dumpfile.h: Same.
12780 * dwarf2out.c: Same.
12781 * edit-context.c: Same.
12782 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12783 * flags.h: Same.
12784 * function.c (assign_stack_local): Same.
12785 * function.h: Same.
12786 * gcc.c: Same.
12787 * gcov.c (block_info::block_info): Same.
12788 * genattrtab.c: Same.
12789 * genextract.c: Same.
12790 * genmatch.c (comparison_code_p): Same.
12791 (id_base::id_base): Same.
12792 (decision_tree::print): Same.
12793 * genoutput.c: Same.
12794 * genpreds.c (write_one_predicate_function): Same.
12795 * genrecog.c (validate_pattern): Same.
12796 (find_operand_positions): Same.
12797 (optimize_subroutine_group): Same.
12798 (merge_pattern_transition::merge_pattern_transition): Same.
12799 (merge_pattern_info::merge_pattern_info): Same.
12800 (merge_state_result::merge_state_result): Same.
12801 (merge_into_state): Same.
12802 * gensupport.c: Same.
12803 * gensupport.h: Same.
12804 * ggc-common.c (init_ggc_heuristics): Same.
12805 * ggc-tests.c (test_union): Same.
12806 * gimple-loop-interchange.cc (dump_induction): Same.
12807 * gimple-loop-versioning.cc: Same.
12808 * gimple-match.h (gimple_match_cond::any_else): Same.
12809 * gimple-ssa-backprop.c: Same.
12810 * gimple-ssa-sprintf.c: Same.
12811 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12812 Same.
12813 (store_immediate_info::store_immediate_info): Same.
12814 (merged_store_group::apply_stores): Same.
12815 (get_location_for_stmts): Same.
12816 * gimple-ssa-strength-reduction.c: Same.
12817 * gimple-ssa-warn-alloca.c: Same.
12818 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12819 * godump.c (go_type_decl): Same.
12820 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12821 * hash-map.h: Same.
12822 * hash-set-tests.c (test_set_of_strings): Same.
12823 * hsa-brig.c: Same.
12824 * hsa-common.h: Same.
12825 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12826 * input.c (assert_loceq): Same.
12827 * input.h: Same.
12828 * ipa-cp.c: Same.
12829 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12830 * ipa-fnsummary.h: Same.
12831 * ipa-inline.h: Same.
12832 * ipa-prop.h: Same.
12833 * ipa-split.c (visit_bb): Same.
12834 * ira-int.h (minmax_set_iter_next): Same.
12835 * loop-invariant.c: Same.
12836 * loop-iv.c: Same.
12837 * lra-eliminations.c: Same.
12838 * lra-int.h: Same.
12839 * lra-lives.c (mark_regno_dead): Same.
12840 * lra-remat.c: Same.
12841 * lra-spills.c: Same.
12842 * lto-streamer.h: Same.
12843 * mem-stats.h: Same.
12844 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12845 * omp-low.c (omp_clause_aligned_alignment): Same.
12846 * optabs-query.h (get_vcond_eq_icode): Same.
12847 * optabs.h: Same.
12848 * opts.c (wrap_help): Same.
12849 * poly-int.h: Same.
12850 * predict.c (predict_paths_leading_to_edge): Same.
12851 * pretty-print.h: Same.
12852 * profile-count.h: Same.
12853 * read-md.h: Same.
12854 * read-rtl-function.c: Same.
12855 * ree.c: Same.
12856 * reginfo.c: Same.
12857 * regrename.c: Same.
12858 * regrename.h: Same.
12859 * reload.h: Same.
12860 * rtl-iter.h: Same.
12861 * rtl.h (costs_add_n_insns): Same.
12862 * sanopt.c: Same.
12863 * sched-int.h: Same.
12864 * sel-sched-ir.h: Same.
12865 * selftest.h: Same.
12866 * sese.h (vec_find): Same.
12867 * stmt.c: Same.
12868 * target-globals.h: Same.
12869 * tree-affine.c (aff_combination_find_elt): Same.
12870 * tree-affine.h: Same.
12871 * tree-data-ref.h: Same.
12872 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12873 * tree-predcom.c: Same.
12874 * tree-scalar-evolution.c (find_var_scev_info): Same.
12875 * tree-ssa-alias.h: Same.
12876 * tree-ssa-ccp.c: Same.
12877 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12878 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12879 (rewrite_mem_refs): Same.
12880 (execute_sm_if_changed): Same.
12881 (hoist_memory_references): Same.
12882 * tree-ssa-loop-ivopts.c (operator<=): Same.
12883 * tree-ssa-loop.h: Same.
12884 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12885 * tree-ssa-structalias.c: Same.
12886 * tree-switch-conversion.h (cluster::cluster): Same.
12887 (simple_cluster::simple_cluster): Same.
12888 * tree-vect-patterns.c (type_conversion_p): Same.
12889 * tree-vectorizer.c (dump_stmt_cost): Same.
12890 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12891 * tree.c (protected_set_expr_location): Same.
12892 * tree.h (desired_pro_or_demotion_p): Same.
12893 (fndecl_built_in_p): Same.
12894 * unique-ptr-tests.cc: Same.
12895 * var-tracking.c (delete_variable_part): Same.
12896 * varasm.c (assemble_real): Same.
12897 (tree_output_constant_def): Same.
12898 * vec.c: Same.
12899 * wide-int-bitmask.h: Same.
12900 * wide-int.h (decompose): Same.
12901
12902 2019-07-09 Richard Biener <rguenther@suse.de>
12903
12904 PR tree-optimization/91114
12905 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12906 find a vector type isn't fatal.
12907
12908 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12909
12910 * config/aarch64/aarch64-simd.md
12911 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12912 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12913 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12914 (*aarch64_crypto_aese_fused,
12915 *aarch64_crypto_aesd_fused): Update to new definition.
12916 * config/aarch64/aarch64.c
12917 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12918
12919 2019-07-09 Richard Biener <rguenther@suse.de>
12920
12921 * gimple-match.h (gimple_match_op::resimplify): New.
12922 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12923 gimple_resimplify4, gimple_resimplify5): Remove.
12924 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12925 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12926 Make static.
12927 (gimple_match_op::resimplify): New.
12928 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12929 according to availability. Use gimple_match_op::resimplify.
12930
12931 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12934
12935 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12936
12937 * config/arm/crypto.md:
12938 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12939 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12940 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12941 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12942 * config/arm/arm.c
12943 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12944 * config/arm/aarch-common-protos.h
12945 (aarch_crypto_can_dual_issue): Remove.
12946 * config/arm/aarch-common.c
12947 (aarch_crypto_can_dual_issue): Likewise.
12948 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12949 * config/arm/cortex-a53.md: Likewise.
12950 * config/arm/cortex-a57.md: Likewise.
12951 * config/arm/iterators.md:
12952 (CRYPTO_BINARY): Redefine.
12953 (CRYPTO_UNARY): Removed.
12954 (CRYPTO_AES, CRYPTO_AESMC): New.
12955
12956 2019-07-09 Richard Biener <rguenther@suse.de>
12957
12958 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12959 (vn_reference_lookup_3): If the main ref has no access path recorded
12960 but orig_ref has use it to do access-path based disambiguation.
12961 (vn_reference_lookup_pieces): Adjust.
12962 (vn_reference_lookup): Pass down original ref if we valueized.
12963
12964 2019-07-09 Martin Liska <mliska@suse.cz>
12965
12966 * doc/extend.texi: Document influence on loop
12967 optimizers.
12968
12969 2019-07-09 Martin Liska <mliska@suse.cz>
12970
12971 * lto-compress.c (lto_normalized_zstd_level): Do not use
12972 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12973 of libzstd. One can use 0 as a default compression level.
12974
12975 2019-07-09 Martin Liska <mliska@suse.cz>
12976
12977 * doc/invoke.texi: Add link from -fprofile-dir option.
12978 Use better wording for 'gcno filename'.
12979
12980 2019-07-08 Martin Sebor <msebor@redhat.com>
12981
12982 PR middle-end/71924
12983 PR middle-end/90549
12984 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12985 comment.
12986 (args_loc_t): New type.
12987 (args_loc_t, locmap_t): same.
12988 (diag_returned_locals): New function.
12989 (is_addr_local): Same.
12990 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12991 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12992 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12993
12994 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12995
12996 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12997 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12998 and casts in offset when different, both through gimple stmts
12999 and through trees. Rewritten using loops to minimize code duplication
13000 for each operand.
13001
13002 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13003
13004 * emit-rtl.c (set_insn_locations): New function moved from...
13005 * function.c (set_insn_locations): ...here.
13006 * ira-emit.c (emit_moves): Propagate location of the first instruction
13007 to the inserted move instructions.
13008 * reg-stack.c (compensate_edge): Set the location if the sequence is
13009 inserted on the edge.
13010 * rtl.h (set_insn_locations): Declare.
13011
13012 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13013
13014 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13015 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13016 .machine string.
13017
13018 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13019
13020 PR rtl-optimization/88233
13021 * common.opt (fsplit-wide-types-early): New option.
13022 * common/config/rs6000/rs6000-common.c
13023 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13024 OPT_LEVELS_ALL.
13025 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13026 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13027 flag_split_wide_types_early.
13028 (pass_data_lower_subreg3): New.
13029 (pass_lower_subreg3): New.
13030 (make_pass_lower_subreg3): New.
13031 * passes.def (pass_lower_subreg2): Move after the loop passes.
13032 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13033 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13034 the pass pipeline; its previous place is taken by ...
13035 (make_pass_lower_subreg3): ... this.
13036
13037 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13038
13039 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13040 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13041
13042 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13043
13044 * config/s390/constraints.md: Add new jsc constraint.
13045 * config/s390/predicates.md: New predicates.
13046 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13047 * config/s390/s390.c (s390_valid_shift_count): New function.
13048 (print_shift_count_operand): Use s390_valid_shift_count.
13049 (print_operand): Likewise.
13050 * config/s390/s390.md: Use new predicate.
13051 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13052 * config/s390/vector.md: Use new predicate.
13053
13054 2019-07-08 Andrew Waterman <andrew@sifive.com>
13055 Jim Wilson <jimw@sifive.com>
13056
13057 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13058 bitsize instead of BITS_PER_WORD.
13059
13060 2019-07-08 Martin Liska <mliska@suse.cz>
13061
13062 * collect2.c (defined): Revert to before r254460.
13063 (scan_prog_file): Revert to before r254460.
13064
13065 2019-07-08 Richard Biener <rguenther@suse.de>
13066
13067 PR tree-optimization/83518
13068 * tree-ssa-sccvn.c: Include splay-tree.h.
13069 (struct pd_range, struct pd_data): New.
13070 (struct vn_walk_cb_data): Add data to track partial definitions.
13071 (vn_walk_cb_data::~vn_walk_cb_data): New.
13072 (vn_walk_cb_data::push_partial_def): New.
13073 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13074 (vn_reference_lookup_2): When partial defs are registered give up.
13075 (vn_reference_lookup_3): Track partial defs for memset and
13076 constructor zeroing and for defs from constants.
13077
13078 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13079
13080 * doc/install.texi (bootstrap-Og): Document.
13081
13082 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13083
13084 * config/riscv/pic.md (*local_pic_load_s<mode>)
13085 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13086 referenced by <mode>, giving...
13087 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13088 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13089 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13090 use <X:MODE> for the mode attribute.
13091
13092 2019-07-07 Jeff Law <law@redhat.com>
13093
13094 PR tree-optimization/91090
13095 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13096 in handling of ranges to simplify switch statements.
13097
13098 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13099
13100 * config/darwin.c (darwin_override_options): Make a final check on PIC
13101 options.
13102
13103 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13104
13105 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13106 on for kernel code.
13107
13108 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13109
13110 PR target/91068
13111 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13112 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13113 instead of matching them to "l" output operands.
13114
13115 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13116
13117 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13118 and check whether addr.reg is nonnull before using it.
13119
13120 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13121
13122 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13123 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13124 variable(s). For conditional lastprivate look through outer
13125 GIMPLE_OMP_SCAN context.
13126 (lower_omp_1): For conditional lastprivate look through outer
13127 GIMPLE_OMP_SCAN context.
13128
13129 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13130 member to combined_into_simd_safelen1.
13131 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13132 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13133 clauses if ctx->combined_into_simd_safelen1 put statements after the
13134 predicate conditionalized block rather than into it.
13135
13136 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13137
13138 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13139 operand 1.
13140 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13141 Make the choice of <mode> explicit, giving...
13142 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13143
13144 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13145
13146 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13147 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13148 of .md attributes.
13149 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13150 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13151 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13152 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13153 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13154 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13155 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13156 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13157 (*avx512f_scatterdi<mode>): Likewise.
13158 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13159
13160 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13161
13162 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13163 specify the mode iterator referenced by <mode>, giving...
13164 (*push1_h8300hs_<QHI:mode>): ...this.
13165
13166 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13167
13168 * config/gcn/gcn-valu.md
13169 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13170 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13171 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13172 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13173 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13174 but using the _exec comparison patterns.
13175 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13176 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13177 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13178 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13179 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13180 but using the _exec comparison patterns.
13181
13182 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13183
13184 * config/arm/sync.md
13185 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13186 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13187 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13188 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13189 <SIDI:cas_cmp_str>.
13190
13191 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13192
13193 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13194 (maybe_lookup_ctx): Add forward declaration.
13195 (omp_find_scan): Likewise. Walk into body of simd if composited
13196 with worksharing loop.
13197 (scan_omp_simd_scan): New function.
13198 (scan_omp_1_stmt): Call it.
13199 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13200 ctx->for_simd_scan_phase.
13201 (lower_rec_input_clauses): Do much less work for inscan reductions
13202 in ctx->for_simd_scan_phase is_simd regions.
13203 (lower_omp_scan): Set is_simd also on simd constructs composited
13204 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13205 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13206 emit their body after in simd constructs composited with worksharing
13207 loop.
13208 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13209
13210 * omp-low.c (omp_find_scan): Make static.
13211 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13212 the second loop, var2 represents the first partial sum and so needs
13213 to go before rprivb[ivar].
13214
13215 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13216
13217 * config/rs6000/rs6000-logue.c: Remove unused code.
13218
13219 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13220
13221 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13222
13223 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13224
13225 PR target/90712
13226 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13227 check with a frame laid out check.
13228
13229 2019-07-05 Richard Biener <rguenther@suse.de>
13230
13231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13232 when comparing against a store with possibly the same value.
13233
13234 2019-07-05 Richard Biener <rguenther@suse.de>
13235
13236 PR tree-optimization/91091
13237 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13238 (walk_non_aliased_vuses): Likewise.
13239 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13240 (get_continuation_for_phi): New tbaa_p parameter and pass
13241 it down.
13242 (walk_non_aliased_vuses): Likewise.
13243 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13244 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13245 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13246 Likewise.
13247 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13248 (adjust_offsets_for_equal_base_address): New function.
13249 (vn_reference_lookup_3): Use it to catch more base equivalences.
13250 Handle and pass down tbaa_p flag.
13251 (vn_reference_lookup_pieces): Adjust.
13252 (vn_reference_lookup): Remove alias-set altering, instead pass
13253 down false as tbaa_p.
13254
13255 2019-07-05 Richard Biener <rguenther@suse.de>
13256
13257 PR tree-optimization/91091
13258 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13259 accesses can happen with -fno-strict-aliasing.
13260
13261 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13262
13263 * tree-ssa-alias.c (alias_stats): Add
13264 nonoverlapping_component_refs_since_match_p_must_overlap.
13265 (dump_alias_stats): Print it.
13266 (nonoverlapping_component_refs_since_match_p): Add early exit.
13267 (nonoverlapping_component_refs_p): Do not account early exit.
13268
13269 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13270
13271 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13272 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13273 (emit_eh_dispatch): Delete.
13274 (lower_catch): Emit the eh_dispatch manually and set the location of
13275 the first catch statement onto it.
13276 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13277 (lower_eh_dispatch): Propagate location.
13278 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13279 (eliminate_build): Likewise.
13280
13281 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13282
13283 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13284 phi nodes if possible.
13285 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13286 location info on the newly created statement.
13287 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13288 newly created increment if needed.
13289
13290 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13291
13292 PR middle-end/78884
13293 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13294 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13295 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13296 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13297 ctx->add_safelen1 is set.
13298
13299 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13300 GOMP_loop_start at the start of second worksharing loop in a scan.
13301 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13302 worksharing loop in a scan even if there are conditional lastprivates,
13303 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13304
13305 2019-07-04 Jan Hubicka <jh@suse.cz>
13306
13307 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13308 Fix check for match in the ref walk.
13309
13310 2019-07-04 Martin Liska <mliska@suse.cz>
13311
13312 * tree-ssa-loop-niter.c
13313 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13314 (estimate_numbers_of_iterations):
13315 Support __builtin_expect_with_probability for analysis
13316 of # of loop iterations.
13317
13318 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13319
13320 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13321 * except.c: Likewise.
13322 * expr.c (expand_expr_real_1): Reject it.
13323 * gimplify.c (gimplify_expr): Gimplify it, within
13324 TRY_FINALLY_EXPR.
13325 * tree-dump.c (dequeue_and_dump): Dump it.
13326 * tree-pretty-print.c (dump_generic_node): Likewise.
13327 * tree.c (block_may_fallthru): Handle it.
13328 * tree.def (EH_ELSE_EXPR): Introduce it.
13329 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13330 with GIMPLE_EH_ELSE as try/finally/else.
13331
13332 2019-07-04 Richard Biener <rguenther@suse.de>
13333
13334 PR ipa/91062
13335 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13336 parameter whether to disable GC collection.
13337 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13338 honor it.
13339 (execute_all_ipa_transforms): Likewise and pass it down.
13340 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13341 collection from applying IPA transforms.
13342 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13343 from applying IPA transforms.
13344
13345 2019-07-04 Richard Biener <rguenther@suse.de>
13346
13347 PR tree-optimization/90911
13348 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13349 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13350 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13351 scalar_loop_scaling.
13352 (vect_transform_loop): Scale scalar loop profile if needed.
13353 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13354 the loop copy from if-conversion adjust edge probabilities
13355 and scale the vectorized loop body profile, queue the scalar
13356 profile for updating after peeling.
13357
13358 2019-07-04 Jan Hubicka <jh@suse.cz>
13359
13360 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13361 parameters; return early for must-alias.
13362 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13363 outer types match, try nonoverlapping_component_refs
13364 if must-alias is not obvious.
13365 (indirect_refs_may_alias_p): Likewise.
13366 (refs_may_alias_p_2): Likewise.
13367
13368 2019-07-04 Richard Biener <rguenther@suse.de>
13369
13370 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13371 argument.
13372 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13373 globals into...
13374 (struct vn_walk_cb_data): New callback data struct.
13375 (vn_reference_lookup_2): Adjust.
13376 (vn_reference_lookup_3): Likewise.
13377 (vn_reference_lookup_pieces): Likewise.
13378 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13379 (visit_reference_op_load): Adjust.
13380
13381 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13382
13383 PR tree-optimization/91063
13384 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13385 stmt from stmts sequence before calling vect_init_vector_1.
13386 Formatting fix.
13387
13388 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13389
13390 PR target/88833
13391 * fwprop.c (reg_single_def_p): New function.
13392 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13393 (forward_propagate_into): New parameter reg_prop_only
13394 with default value false.
13395 Propagate def's src into loop only if SET_SRC and SET_DEST
13396 of def_set have single definitions.
13397 Likewise if reg_prop_only is set to true.
13398 (fwprop): New param fwprop_addr_p.
13399 Integrate fwprop_addr into fwprop.
13400 (fwprop_addr): Remove.
13401 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13402 to true.
13403 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13404 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13405 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13406
13407 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13408
13409 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13410 in worksharing loop scans.
13411
13412 PR tree-optimization/91074
13413 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13414 temporary.
13415
13416 PR rtl-optimization/90756
13417 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13418 for VECTOR_TYPE_P.
13419
13420 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13421
13422 * config/aarch64/aarch64.md: Remove redundant constraints from
13423 define_expand but keep some patterns untouched if they are
13424 specially selected by TARGET_SECONDARY_RELOAD hook.
13425 * config/aarch64/aarch64-sve.md: Likewise.
13426 * config/aarch64/atomics.md: Remove redundant constraints from
13427 define_expand.
13428 * config/aarch64/aarch64-simd.md: Likewise.
13429
13430 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13431
13432 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13433 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13434 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13435 clauses.
13436 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13437 DARWIN_NOPIE_SPEC.
13438
13439 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13440
13441 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13442 (STARTFILE_SPEC): Split crt3 into a separate spec.
13443 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13444 (DARWIN_CRT2_SPEC): New.
13445 (DARWIN_CRT3_SPEC): New.
13446 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13447 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13448 (DARWIN_CRT3_SPEC): New.
13449
13450 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13451
13452 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13453 Change the RTL attribute "length" from "4" to "*" to allow the
13454 length attribute to be adjusted automatically for prefixed load,
13455 store, and add immediate instructions.
13456 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13457 Likewise.
13458 (extendsi<mode>2, EXTSI iterator): Likewise.
13459 (movsi_internal1): Likewise.
13460 (movsi_from_sf): Likewise.
13461 (movdi_from_sf_zero_ext): Likewise.
13462 (mov<mode>_internal): Likewise.
13463 (movcc_internal1, QHI iterator): Likewise.
13464 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13465 (movsf_from_si): Likewise.
13466 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13467 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13468 (mov<mode>, FMOVE128 iterator): Likewise.
13469 (movdi_internal64): Likewise.
13470 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13471 Likewise.
13472 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13473 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13474 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13475 (vsx_splat_v4sf): Likewise.
13476
13477 2019-07-03 Mark Wielaard <mark@klomp.org>
13478
13479 PR debug/90981
13480 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13481 DW_AT_addr_base if there is actually a .debug_addr section with
13482 addresses.
13483 (output_addr_table): Add DWARF5 table header generation here after
13484 checking there are actually any addresses from...
13485 (dwarf2out_finish): ...here.
13486
13487 2019-07-03 Richard Biener <rguenther@suse.de>
13488
13489 PR middle-end/91069
13490 * match.pd (vec_perm -> bit_insert): Fix element read from
13491 first vector.
13492
13493 2019-07-03 Martin Liska <mliska@suse.cz>
13494
13495 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13496 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13497 condition.
13498 * generic-match-head.c: Include dbgcnt.h.
13499 * gimple-match-head.c: Likewise.
13500
13501 2019-07-03 Martin Liska <mliska@suse.cz>
13502
13503 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13504 (GCOV_COUNTER_V_TOPN): New.
13505 (GCOV_COUNTER_V_INDIR): Use _topn.
13506 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13507 (GCOV_TOPN_VALUES): New.
13508 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13509 (GCOV_TOPN_VALUES_COUNTERS): New.
13510 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13511 * tree-profile.c:
13512 (gimple_init_gcov_profiler): Rename variables from one_value
13513 to topn_values.
13514 (gimple_gen_one_value_profiler): Remove.
13515 (gimple_gen_topn_values_profiler): New function.
13516 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13517 names instead of SINGLE_VALUE.
13518 (stream_out_histogram_value): Likewise.
13519 (stream_in_histogram_value): Likewise.
13520 (get_most_common_single_value): Likewise.
13521 (gimple_divmod_fixed_value_transform): Likewise.
13522 (gimple_stringops_transform): Likewise.
13523 (gimple_divmod_values_to_profile): Likewise.
13524 (gimple_stringops_values_to_profile): Likewise.
13525 (gimple_find_values_to_profile): Likewise.
13526 * value-prof.h (enum hist_type): Rename to TOPN.
13527 (gimple_gen_one_value_profiler): Remove.
13528 (gimple_gen_topn_values_profiler): New.
13529
13530 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13531
13532 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13533 if it has the DW_AT_data_member_location attribute.
13534
13535 2019-07-03 Richard Biener <rguenther@suse.de>
13536
13537 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13538 dumping.
13539
13540 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13541
13542 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13543 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13544 (tlsdesc_small_sve_<mode>): Likewise.
13545
13546 2019-07-03 Martin Liska <mliska@suse.cz>
13547
13548 * Makefile.in: Define ZSTD_LIB.
13549 * common.opt: Adjust compression level
13550 to support also zstd levels.
13551 * config.in: Regenerate.
13552 * configure: Likewise.
13553 * configure.ac: Add --with-zstd and --with-zstd-include options
13554 and detect ZSTD.
13555 * doc/install.texi: Mention zstd dependency.
13556 * gcc.c: Print supported LTO compression algorithms.
13557 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13558 (lto_compression_zstd): Likewise.
13559 (lto_uncompression_zstd): Likewise.
13560 (lto_end_compression): Dispatch in between zlib and zstd.
13561 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13562 (lto_uncompression_zlib): Make it static.
13563 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13564 * lto-section-in.c (lto_get_section_data): Pass info
13565 about used compression.
13566 * lto-streamer-out.c: By default use zstd when possible.
13567 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13568 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13569
13570 2019-07-03 Martin Liska <mliska@suse.cz>
13571
13572 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13573 * lto-section-out.c (lto_destroy_simple_output_block): Never
13574 compress LTO_section_lto section.
13575 * lto-streamer-out.c (produce_asm): Do not set major_version
13576 and minor_version.
13577 (lto_output_toplevel_asms): Likewise.
13578 (produce_lto_section): New function.
13579 (lto_output): Call produce_lto_section.
13580 (lto_write_mode_table): Do not set major_version and
13581 minor_version.
13582 (produce_asm_for_decls): Likewise.
13583 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13584 type.
13585 (struct lto_header): Remove.
13586 (struct lto_section): New struct.
13587 (struct lto_simple_header): Do not inherit from lto_header.
13588 (struct lto_file_decl_data): Add lto_section_header field.
13589
13590 2019-07-03 Martin Liska <mliska@suse.cz>
13591
13592 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13593 dead assignemts.
13594 * reg-stack.c (check_asm_stack_operands): Likewise.
13595 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13596 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13597 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13598 force_expand_binop.
13599
13600 2019-07-03 Martin Liska <mliska@suse.cz>
13601
13602 PR tree-optimization/90892
13603 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13604 in string constants.
13605
13606 2019-07-03 Martin Liska <mliska@suse.cz>
13607
13608 PR middle-end/90899
13609 * multiple_target.c (create_dispatcher_calls): Add to comdat
13610 group only if set for ifunc.
13611
13612 2019-07-03 Martin Liska <mliska@suse.cz>
13613
13614 PR target/88056
13615 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13616 Define local_object_name in outer scope in order to handle
13617 use-after-scope issue.
13618
13619 2019-07-03 Martin Liska <mliska@suse.cz>
13620
13621 * common.opt: Add fprofile-note.
13622 * coverage.c (coverage_init): Append the option
13623 to bbg_file_name.
13624 * doc/invoke.texi: Document -fprofile-note.
13625
13626 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13627
13628 PR tree-optimization/91033
13629 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13630 vect_analyze_data_refs): Add bool * arguments.
13631 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13632 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13633 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13634 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13635 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13636 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13637 vect_analyze_data_refs caller.
13638
13639 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13640 clause.
13641 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13642 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13643 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13644 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13645 OMP_CLAUSE__SCANTEMP_ entry.
13646 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13647 * tree-pretty-print.c (dump_omp_clause): Likewise.
13648 * tree-nested.c (convert_nonlocal_omp_clauses,
13649 convert_local_omp_clauses): Likewise.
13650 * omp-general.h (struct omp_for_data): Add have_scantemp and
13651 have_nonctrl_scantemp members.
13652 * omp-general.c (omp_extract_for_data): Initialize them.
13653 * omp-low.c (struct omp_context): Add scan_exclusive member.
13654 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13655 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13656 ctx->scan_exclusive.
13657 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13658 of !ctx->scan_inclusive.
13659 (lower_rec_input_clauses): Simplify gimplification of dtors using
13660 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13661 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13662 loops. Don't add barrier for reduction_omp_orig_ref if
13663 ctx->scan_??xclusive.
13664 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13665 (lower_omp_scan): Use ctx->scan_exclusive instead
13666 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13667 reductions. Use new_vard != new_var instead of repeated
13668 omp_is_reference calls.
13669 (omp_find_scan, lower_omp_for_scan): New functions.
13670 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13671 inscan reductions.
13672 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13673 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13674 and fd->have_scantemp.
13675
13676 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13677 on worksharing loop propagate it as shared clause to containing
13678 combined parallel.
13679
13680 * omp-expand.c (expand_omp_for_static_nochunk,
13681 expand_omp_for_static_chunk): For nowait worksharing loop with
13682 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13683 at the end.
13684
13685 2019-07-02 qing zhao <qing.zhao@oracle.com>
13686
13687 PR preprocessor/90581
13688 * doc/cppopts.texi: Add document for -fmax-include-depth.
13689 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13690
13691 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13692
13693 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13694 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13695 (mmx_packssdw): Ditto.
13696 (mmx_punpckhbw): Ditto.
13697 (mmx_punpcklbw): Ditto.
13698 (mmx_punpckhwd): Ditto.
13699 (mmx_punpcklwd): Ditto.
13700 (mmx_punpckhdq): Ditto.
13701 (mmx_punpckldq): Ditto.
13702 (*vec_dupv4hi): Ditto.
13703 (*vec_dupv2si): Ditto.
13704 (mmx_pmovmskb): Ditto.
13705 * config/i386/sse.md (sse_cvtpi2ps): Use
13706 TARGET_SSE2 && SSE_REG_P in split condition.
13707 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13708 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13709 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13710 (ssse3_pshufbv8qi3): Ditto.
13711 (ssse3_palignrdi): Ditto.
13712
13713 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13714
13715 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13716 with inlined save and restore.
13717
13718 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13719
13720 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13721 to be inserted on single successor edge of the entry block. Then call
13722 commit_edge_insertions instead of inserting the instructions manually.
13723 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13724 RTL expansion and rebuild jump labels chain.
13725
13726 2019-07-02 Richard Biener <rguenther@suse.de>
13727
13728 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13729 TI_CHREC_KNOWN.
13730 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13731 Define here.
13732 * tree.c (build_common_tree_nodes): Initialize them.
13733 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13734 Make declarations comments.
13735 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13736 chrec_known): Remove definitions.
13737 (initialize_scalar_evolutions_analyzer): Remove.
13738 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13739 * tree-streamer.c (preload_common_nodes): Do not preload
13740 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13741
13742 2019-07-02 Jan Hubicka <jh@suse.cz>
13743
13744 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13745 sanity check.
13746
13747 2019-07-02 Jan Hubicka <jh@suse.cz>
13748
13749 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13750 to ..
13751 (nonoverlapping_component_refs_since_match_p): ... this one;
13752 handle also non-decl bases; return -1 if search gave up.
13753 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13754 nonoverlapping_component_refs_of_decl_p_no_alias to
13755 nonoverlapping_component_refs_since_match_p_may_alias,
13756 nonoverlapping_component_refs_since_match_p_no_alias.
13757 (dump_alias_stats): Update dumping.
13758 (aliasing_matching_component_refs_p): Break out from ...;
13759 dispatch to nonoverlapping_component_refs_for_decl_p
13760 and nonoverlapping_component_refs_since_match_p.
13761 (aliasing_component_refs_p): ... here; call
13762 nonoverlapping_component_refs_p in scenarios where we can not
13763 precisely determine base match.
13764 (decl_refs_may_alias_p): Use
13765 nonoverlapping_component_refs_since_match_p.
13766 (indirect_ref_may_alias_decl_p): Do not call
13767 nonoverlapping_component_refs_p.
13768 (indirect_refs_may_alias_p): Likewise.
13769
13770 2019-07-02 Jan Hubicka <jh@suse.cz>
13771
13772 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13773 to clobber of return value.
13774
13775 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13776
13777 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13778 for is_neon_type instructions that have not already been categorized.
13779
13780 2019-07-02 Richard Biener <rguenther@suse.de>
13781
13782 PR tree-optimization/58483
13783 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13784 for MEM_REF base hashing.
13785 (equal_mem_array_ref_p): Likewise for base comparison.
13786
13787 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13788
13789 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13790 parameterized name.
13791 (signbit<mode>2): Use that name. Simplify.
13792
13793 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13794
13795 PR middle-end/66726
13796 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13797 Tune heuristic from PR71016 to allow MIN / MAX.
13798
13799 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13800
13801 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13802 parameterized name.
13803 (abs<mode>2): Use that name. Simplify.
13804
13805 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13806
13807 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13808 parameterized name.
13809 (neg<mode>2): Use that name. Simplify.
13810
13811 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13812
13813 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13814 name.
13815 (abs<mode>2): Use that name. Simplify.
13816
13817 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13818
13819 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13820 name.
13821 (neg<mode>2): Use that name. Simplify.
13822
13823 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13824
13825 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13826 ("enabled" attribute): Handle sse_noavx isa attribute.
13827 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13828 Use TARGET_SSE && SSE_REGNO_P in split condition.
13829 (*vec_dupv2sf): Ditto.
13830
13831 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13832
13833 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13834 name.
13835 (floatsi<mode>2): Use that name. Simplify.
13836
13837 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13838
13839 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13840 parameterized name.
13841 (extenddf<mode>2_vsx): Make this a parameterized name.
13842 (extenddf<mode>2): Use those names. Simplify.
13843
13844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13845
13846 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13847 name.
13848 (eh_return): Use that name. Simplify.
13849
13850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13851
13852 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13853 (doloop_end): Use that name. Simplify.
13854
13855 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13856
13857 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13858 parameterized name.
13859 (indirect_jump): Use that name. Simplify.
13860
13861 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13862
13863 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13864 parameterized name.
13865 (abs<mode>2): Use that name. Simplify.
13866
13867 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13868
13869 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13870 parameterized name.
13871 (fix_trunc<mode>si2): Use that name. Simplify.
13872
13873 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13874
13875 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13876 (allocate_stack): Use that name. Simplify.
13877
13878 2019-07-01 Martin Sebor <msebor@redhat.com>
13879
13880 PR middle-end/90923
13881 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13882 (hash_map::get_or_insert): Same. Reformat comment.
13883 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13884 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13885 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13886 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13887 (hash_table::hash_table (const hash_table&)): Use copy ctor
13888 instead of assignment to copy elements.
13889
13890 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13891 John David Anglin <danglin@gcc.gnu.org>
13892
13893 PR target/90963
13894 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13895 using saved frame pointer.
13896
13897 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13898
13899 PR middle-end/64242
13900 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13901 Add frame clobber and schedule blockage.
13902
13903 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13904
13905 * doc/invoke.texi (Link Options): Further editorial changes to
13906 -flinker-output docs.
13907
13908 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13909
13910 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13911 Load both operands of a PLUS into registers separately.
13912
13913 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13914
13915 * config/s390/vector.md: Fix shift count operand printing.
13916
13917 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13918
13919 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13920
13921 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13922
13923 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13924 Use recog_data to test for an output operand.
13925
13926 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13927
13928 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13929 exclude any others that are disparaged or that are bound to need
13930 a reload or spill.
13931 (ira_get_dup_out_num): Expand comment.
13932
13933 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13934
13935 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13936 constraint string for each operand/alternative combo. Only handle
13937 '%' at the start of constraint strings, and look for it outside
13938 the main loop.
13939
13940 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13941
13942 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13943 alternative_mask instead of HARD_REG_SET to represent a
13944 bitmask of alternatives.
13945 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13946 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13947
13948 2019-07-01 Martin Liska <mliska@suse.cz>
13949
13950 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13951 use () for a constructor call.
13952 (test_applying_fixits_line_out_of_range): Likewise.
13953 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13954 argument.
13955 (free_page): Likewise.
13956
13957 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13958
13959 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13960 parameter names to match usage (no functional change).
13961 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13962
13963 2019-07-01 Richard Biener <rguenther@suse.de>
13964
13965 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13966 pass parameter.
13967 (pass_fre::execute): Honor it.
13968 * passes.def: Adjust pass_fre invocations to allow iterating,
13969 add non-iterating pass_fre before late threading/dom.
13970
13971 2019-07-01 Richard Biener <rguenther@suse.de>
13972
13973 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13974 TARGET_MEM_REF handling to also handle address-taken ones.
13975
13976 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13977
13978 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13979 hardware attributes): Document avx512vp2intersect.
13980
13981 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13982
13983 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13984 (abs<mode>2): New expander.
13985 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13986 Use CODE_FOR_ssse3_absv8qi2.
13987 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13988 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13989
13990 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13991
13992 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13993 to sse, sse_noavx and avx. Update all uses.
13994
13995 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13996
13997 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13998 (*mmx_<plusminus_insn><mode>3): Ditto.
13999 (*mmx_mulv4hi3"): Ditto.
14000 (*mmx_smulv4hi3_highpart): Ditto.
14001 (*mmx_umulv4hi3_highpart): Ditto.
14002 (*mmx_pmaddwd): Ditto.
14003 (*sse2_umulv1siv1di3): Ditto.
14004 (*mmx_<code>v4hi3): Ditto.
14005 (*mmx_<code>v8qi3): Ditto.
14006 (mmx_ashr<mode>3): Ditto.
14007 ("mmx_<shift_insn><mode>3): Ditto.
14008 (*mmx_eq<mode>3): Ditto.
14009 (mmx_gt<mode>3): Ditto.
14010 (mmx_andnot<mode>3): Ditto.
14011 (*mmx_<code><mode>3): Ditto.
14012 (*mmx_pinsrw): Ditto.
14013 (*mmx_pextrw): Ditto.
14014 (mmx_pshufw_1): Ditto.
14015 (*mmx_uavgv8qi3): Ditto.
14016 (*mmx_uavgv4hi3): Ditto.
14017 ("mmx_psadbw): Ditto.
14018 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14019 (sse_cvttps2pi): Ditto.
14020 (ssse3_pmaddubsw): Ditto.
14021 (*ssse3_pmulhrswv4hi3): Ditto.
14022 (ssse3_psign<mode>3): Ditto.
14023
14024 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14025
14026 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14027 adjustment for bit-fields to all aggregate types.
14028
14029 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14030
14031 * config/rs6000/predicates.md (pcrel_address): Use
14032 SYMBOL_REF_LOCAL_P to determine if a label is local.
14033 (pcrel_external_address): New predicate.
14034 (non_prefixed_mem_operand): Delete, predicate not used.
14035 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14036 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14037 addressing.
14038 (SYMBOL_REF_PCREL_P): Likewise.
14039
14040 PR target/91009
14041 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14042 alternative.
14043 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14044 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14045 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14046
14047 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14048
14049 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14050 override on extra_headers.
14051
14052 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14053
14054 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14055 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14056 from warning.
14057 (darwin_driver_init): Likewise.
14058
14059 2019-06-28 Jan Beulich <jbeulich@suse.com>
14060
14061 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14062 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14063 Eliminate redundant alternative.
14064
14065 2019-06-28 Jan Beulich <jbeulich@suse.com>
14066
14067 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14068 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14069 Use vector_operand.
14070
14071 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14072
14073 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14074 having a lower cost regardless of the speed option.
14075
14076 2019-06-28 Jan Beulich <jbeulich@suse.com>
14077
14078 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14079 vector_operand plus, on both alternatives, "Bm" constraint.
14080
14081 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14082
14083 * config/arm/arm.md: Remove redundant constraints from
14084 define_expand but leave reload_inm and reload_outm patterns
14085 untouched since they need special constraints to work.
14086 * config/arm/arm-fixed.md: Remove redundant constraints from
14087 define_expand.
14088 * config/arm/iwmmxt.md: Likewise.
14089 * config/arm/neon.md: Likewise.
14090 * config/arm/sync.md: Likewise.
14091 * config/arm/thumb1.md: Likewise.
14092 * config/arm/vec-common.md: Likewise.
14093
14094 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14095
14096 * doc/install.texi: Document --disable-tm-clone-registry.
14097
14098 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14099
14100 PR c++/91024
14101 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14102 statements.
14103
14104 PR tree-optimization/91010
14105 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14106 return true. Otherwise, don't call operand_equal_p if offset1 or
14107 offset2 is NULL and just return false.
14108
14109 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14110
14111 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14112 user-specified float mode choice for kernel mode code.
14113
14114 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14115
14116 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14117 spec.
14118
14119 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14120
14121 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14122 use longcall for 64b code.
14123
14124 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14125
14126 * builtins.c (get_memory_rtx): Fix comment.
14127 * optabs.def (movmem_optab): Change to cpymem_optab.
14128 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14129 (emit_block_move_hints): Change movmem to cpymem.
14130 * defaults.h: Change movmem to cpymem.
14131 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14132 (default_use_by_pieces_infrastructure_p): Ditto.
14133 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14134 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14135 to cpymem.
14136 * config/aarch64/aarch64.h: Change movmem to cpymem.
14137 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14138 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14139 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14140 movmem to cpymem.
14141 * config/arc/arc-protos.h: Change movmem to cpymem.
14142 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14143 * config/arc/arc.h: Change movmem to cpymem in comment.
14144 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14145 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14146 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14147 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14148 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14149 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14150 * config/avr/avr-protos.h: Change movmem to cpymem.
14151 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14152 avr_out_movmem): Change movmem to cpymem.
14153 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14154 Change movmem to cpymem.
14155 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14156 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14157 Change movmem to cpymem.
14158 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14159 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14160 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14161 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14162 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14163 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14164 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14165 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14166 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14167 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14168 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14169 expand_small_cpymem_or_setmem,
14170 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14171 expand_set_or_cpymem_constant_prologue,
14172 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14173 * config/i386/i386-protos.h: Change movmem to cpymem.
14174 * config/i386/i386.h: Change movmem to cpymem in comment.
14175 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14176 (setmem<mode>): Change expansion function name.
14177 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14178 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14179 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14180 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14181 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14182 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14183 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14184 to cpymem.
14185 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14186 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14187 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14188 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14189 Change movmem to cpymem.
14190 * config/mips/mips.h: Change movmem to cpymem.
14191 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14192 * config/nds32/nds32-memory-manipulation.c
14193 (nds32_expand_movmemsi_loop_unknown_size,
14194 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14195 nds32_expand_movmemsi_unroll,
14196 nds32_expand_movmemsi): Change movmem to cpymem.
14197 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14198 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14199 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14200 (pa_adjust_insn_length): Change call to compute_movmem_length.
14201 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14202 movmemdi, movmemdi_prereload,
14203 movmemdi_postreload): Change movmem to cpymem.
14204 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14205 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14206 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14207 * config/riscv/riscv.h: Change movmem to cpymem.
14208 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14209 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14210 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14211 movmem to cpymem.
14212 * config/s390/s390-protos.h: Change movmem to cpymem.
14213 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14214 s390_expand_insv): Change movmem to cpymem.
14215 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14216 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14217 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14218 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14219 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14220 for nonexistent function.
14221 * config/vax/vax.h: Change movmem to cpymem in comment.
14222 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14223 * config/visium/visium.h: Change movmem to cpymem in comment.
14224 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14225 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14226 * doc/md.texi: Change movmem to cpymem and update description to match.
14227 * doc/rtl.texi: Change movmem to cpymem.
14228 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14229 * doc/tm.texi: Regenerate.
14230
14231 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14232
14233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14234 -fvariable-expansion-in-unroller by default.
14235 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14236 default for Power.
14237
14238 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14239
14240 Revert
14241 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14242 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14243
14244 * config.gcc(rs6000-*-*): Define target_gtfiles.
14245
14246 2019-06-27 Jan Hubicka <jh@suse.cz>
14247
14248 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14249 (add_type_duplicate): When odr hash is not allocated, to nothing.
14250 (odr_based_tbaa_p): New function.
14251 (set_type_canonical_for_odr_type): New function.
14252 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14253 set_type_canonical_for_odr_type): New.
14254 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14255 ODR based TBAA are not equivalent to non-ODR types.
14256
14257 2019-06-27 Martin Liska <mliska@suse.cz>
14258
14259 PR tree-optimization/90974
14260 PR rtl-optimization/90975
14261 PR rtl-optimization/90976
14262 PR target/91016
14263 PR tree-optimization/91017
14264 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14265 unused tmp.
14266 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14267 initial commit of IRA.
14268 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14269 of op0 and op1.
14270 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14271 Remove unused mode1.
14272 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14273 to new_stmt_info.
14274
14275 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14276
14277 PR target/90991
14278 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14279 instead of register_operand for operands[1], add m to its constraints
14280 if operands[2] uses "C" constraint. Ensure in condition that if
14281 operands[2] is not 0, then operands[1] is not a MEM. For last two
14282 alternatives, use unaligned loads instead of aligned if operands[1] is
14283 misaligned_operand.
14284
14285 2019-06-27 Martin Liska <mliska@suse.cz>
14286
14287 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14288 dead assignments.
14289 * bt-load.c (move_btr_def): Likewise.
14290 * builtins.c (expand_builtin_apply_args_1): Likewise.
14291 (expand_builtin_apply): Likewise.
14292 * cfgexpand.c (expand_asm_stmt): Likewise.
14293 (construct_init_block): Likewise.
14294 * cfghooks.c (verify_flow_info): Likewise.
14295 * cfgloopmanip.c (remove_path): Likewise.
14296 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14297 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14298 * combine.c (simplify_if_then_else): Likewise.
14299 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14300 (choose_basereg): Likewise.
14301 (ix86_expand_prologue): Likewise.
14302 (ix86_preferred_output_reload_class): Likewise.
14303 * cselib.c (cselib_record_sets): Likewise.
14304 * df-scan.c (df_scan_alloc): Likewise.
14305 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14306 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14307 * emit-rtl.c (try_split): Likewise.
14308 * graphite-scop-detection.c (assign_parameter_index_in_region):
14309 Likewise.
14310 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14311 * ira-color.c (setup_profitable_hard_regs): Likewise.
14312 * ira.c (rtx_moveable_p): Likewise.
14313 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14314 * read-rtl.c (read_subst_mapping): Likewise.
14315 * regrename.c (scan_rtx): Likewise.
14316 * reorg.c (fill_slots_from_thread): Likewise.
14317 * tree-inline.c (tree_function_versioning): Likewise.
14318 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14319 * tree-ssa-sink.c (statement_sink_location): Likewise.
14320 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14321 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14322 (vect_create_epilog_for_reduction): Likewise.
14323 * tree.c (build_nonstandard_integer_type): Likewise.
14324
14325 2019-06-27 Richard Biener <rguenther@suse.de>
14326
14327 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14328
14329 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14330
14331 PR tree-optimization/89772
14332 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14333 out-of-bound accesses checking.
14334
14335 2019-06-27 Martin Liska <mliska@suse.cz>
14336
14337 PR tree-optimization/91014
14338 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14339 when LHS is NULL_TREE.
14340
14341 2019-06-27 Martin Liska <mliska@suse.cz>
14342
14343 * symbol-summary.h (traverse): Pass
14344 argument a to the call of callback.
14345 (gt_ggc_mx): Mark arguments as unused.
14346 (gt_pch_nx): Likewise.
14347
14348 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14349
14350 PR target/62147
14351 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14352 finiteness.
14353
14354 2019-06-26 Jeff Law <law@redhat.com>
14355
14356 PR tree-optimization/90883
14357 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14358 (delete_dead_or_redundant_assignment): Likewise.
14359
14360 PR tree-optimization/90883
14361 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14362 * tree-ssa-dse.c: Update various comments to distinguish between
14363 dead and redundant stores.
14364 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14365 (dse_optimize_redundant_stores): New function.
14366 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14367 Distinguish between dead and redundant calls in dump output. All
14368 callers updated.
14369 (delete_dead_or_redundant_assignment): Similarly for assignments.
14370 (dse_optimize_stmt): Handle _CHK variants. For statements which
14371 store 0 into multiple memory locations, try to prove a subsequent
14372 store is redundant.
14373
14374 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14375
14376 PR target/89021
14377 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14378 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14379
14380 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14381
14382 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14383 (branch_islands): New extern.
14384 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14385 * config/rs6000/rs6000.c: .. here.
14386
14387 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14388
14389 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14390 (powerpc*-*-*) ... to here.
14391
14392 2019-06-26 Jeff Law <law@redhat.com>
14393
14394 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14395 memcpy, memmove and memset builtins.
14396 (maybe_trim_memstar_call): Likewise.
14397
14398 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14399
14400 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14401
14402 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14403
14404 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14405
14406 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14407
14408 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14409 declaration.
14410 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14411 "static".
14412 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14413 declaration.
14414
14415 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14416
14417 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14418
14419 2019-06-26 Richard Biener <rguenther@suse.de>
14420
14421 PR ipa/90982
14422 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14423
14424 2019-06-26 Richard Biener <rguenther@suse.de>
14425
14426 * lto-streamer.h (lto_bitmap_alloc): Remove.
14427 (lto_bitmap_free): Likewise.
14428 * lto-streamer.c (lto_bitmap_alloc): Remove.
14429 (lto_bitmap_free): Likewise.
14430 (lto_obstack): Likewise.
14431 (lto_obstack_initialized): Likewise.
14432 * lto-streamer-out.c (lto_output): Use own obstack for local
14433 bitmap, free it consistently.
14434
14435 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14436
14437 PR target/90991
14438 * config/i386/sse.md
14439 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14440 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14441 insns if operands[2] is misaligned_operand.
14442
14443 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14444
14445 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14446 TARGET_POWERPC64.
14447 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14448 to GPR.
14449
14450 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14451
14452 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14453
14454 2019-06-26 Martin Liska <mliska@suse.cz>
14455
14456 PR tree-optimization/90973
14457 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14458 epilogue_cost_vec instead of prologue_cost_vec for
14459 a epilogue cost.
14460
14461 2019-06-26 Martin Liska <mliska@suse.cz>
14462
14463 * bb-reorder.c (connect_better_edge_p): Add missing else
14464 statement in the middle of if-else statements.
14465
14466 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14467 H.J. Lu <hongjiu.lu@intel.com>
14468 Olga Makhotina <olga.makhotina@intel.com>
14469
14470 * common/config/i386/i386-common.c
14471 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14472 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14473 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14474 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14475 (ix86_handle_option): Handle -mavx512vp2intersect.
14476 * config/i386/avx512vp2intersectintrin.h: New.
14477 * config/i386/avx512vp2intersectvlintrin.h: New.
14478 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14479 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14480 AVX512VP2INTERSECT.
14481 * config/i386/i386-builtin-types.def: Add new types.
14482 * config/i386/i386-builtin.def: Add new builtins.
14483 * config/i386/i386-builtins.c: (enum processor_features): Add
14484 F_AVX512VP2INTERSECT.
14485 (static const _isa_names_table isa_names_table): Ditto.
14486 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14487 __AVX512VP2INTERSECT__.
14488 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14489 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14490 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14491 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14492 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14493 * config/i386/i386-options.c (ix86_target_string): Add
14494 -mavx512vp2intersect.
14495 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14496 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14497 P2HImode and P2QImode.
14498 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14499 number for P2QImode and P2HImode.
14500 (ix86_regmode_natural_size): New function.
14501 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14502 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14503 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14504 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14505 * config/i386/i386.opt: Add -mavx512vp2intersect.
14506 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14507 avx512vp2intersectvlintrin.h.
14508 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14509 (define_mode_iterator VI48_AVX512VP2VL): New.
14510 (avx512vp2intersect_2intersect<mode>,
14511 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14512 * config.gcc: Add avx512vp2intersectvlintrin.h and
14513 avx512vp2intersectintrin.h to extra_headers.
14514 * doc/invoke.texi: Document -mavx512vp2intersect.
14515
14516 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14517
14518 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14519
14520 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14521
14522 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14523 savres_routine_syms, savres_routine_name, morestack_ref,
14524 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14525 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14526 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14527 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14528 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14529 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14530 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14531 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14532 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14533 get_stack_clash_protection_probe_interval,
14534 get_stack_clash_protection_guard_size,
14535 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14536 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14537 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14538 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14539 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14540 gen_frame_mem_offset, rs6000_savres_routine_name,
14541 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14542 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14543 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14544 rs6000_global_entry_point_prologue_needed_p,
14545 rs6000_get_separate_components, rs6000_components_for_bb,
14546 rs6000_disqualify_components, rs6000_emit_prologue_components,
14547 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14548 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14549 rs6000_output_savres_externs, rs6000_output_function_prologue,
14550 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14551 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14552 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14553 rs6000_output_function_epilogue, gen_add3_const,
14554 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14555 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14556 to rs6000-logue.c.
14557 (machine_function): Moved to rs6000.h.
14558 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14559 rs6000-internal.h.
14560 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14561 savres_routine_syms, savres_routine_name, morestack_ref,
14562 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14563 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14564 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14565 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14566 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14567 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14568 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14569 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14570 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14571 get_stack_clash_protection_probe_interval,
14572 get_stack_clash_protection_guard_size,
14573 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14574 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14575 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14576 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14577 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14578 gen_frame_mem_offset, rs6000_savres_routine_name,
14579 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14580 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14581 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14582 rs6000_global_entry_point_prologue_needed_p,
14583 rs6000_get_separate_components, rs6000_components_for_bb,
14584 rs6000_disqualify_components, rs6000_emit_prologue_components,
14585 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14586 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14587 rs6000_output_savres_externs, rs6000_output_function_prologue,
14588 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14589 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14590 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14591 rs6000_output_function_epilogue, gen_add3_const,
14592 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14593 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14594 to here from rs6000.c.
14595 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14596 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14597 quad_address_offset_p) Moved to here from rs6000.c.
14598 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14599 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14600 collector.
14601
14602 2019-06-25 Martin Liska <mliska@suse.cz>
14603
14604 * hash-table.c (hashtab_chk_error): Move here from ...
14605 * hash-table.h (hashtab_chk_error): ... here.
14606
14607 2019-06-25 Martin Liska <mliska@suse.cz>
14608
14609 PR tree-optimization/90978
14610 * df-scan.c (df_update_entry_block_defs): Remove dead else
14611 branch.
14612 (df_update_exit_block_uses): Likewise.
14613
14614 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14615 Andrew Stubbs <ams@codesourcery.com>
14616
14617 * config.gcc (thread_file): Set to gcn for AMD GCN.
14618 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14619 (TARGET_EMUTLS_VAR_INIT): New hook.
14620
14621 2019-06-25 Martin Jambor <mjambor@suse.cz>
14622
14623 PR ipa/90939
14624 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14625
14626 2019-06-25 Richard Biener <rguenther@suse.de>
14627
14628 PR tree-optimization/90930
14629 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14630 into parallel form in the last pass instance.
14631
14632 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14633
14634 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14635 (arc_legitimize_pic_address): Simplify and cleanup the function.
14636 (SYMBOLIC_CONST): Remove.
14637 (prepare_pic_move): Likewise.
14638 (prepare_move_operands): Handle complex mov cases here.
14639 (arc_legitimize_address_0): Remove call to
14640 arc_legitimize_pic_address.
14641 (arc_legitimize_address): Remove call to
14642 arc_legitimize_tls_address.
14643 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14644 (movhi_insn): Likewise.
14645
14646 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14647
14648 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14649 PTRDIFF_TYPE.
14650 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14651 format of "__intN" types for UINTMAX_TYPE.
14652 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14653 format of "__intN" types for SIZETYPE.
14654 * tree.c (build_common_tree_nodes): Accept "__intN__"
14655 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14656 * doc/invoke.texi: Document that __intN__ disables pedantic
14657 warnings.
14658
14659 2019-06-25 Jan Hubicka <jh@suse.cz>
14660
14661 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14662 base2_alias_set is non-zero before doing TBAA based disambiguation.
14663
14664 2019-06-25 Martin Liska <mliska@suse.cz>
14665
14666 PR tree-optimization/90973
14667 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14668 of prologue and epilogue.
14669
14670 2019-06-24 Jan Hubicka <jh@suse.cz>
14671
14672 * ipa-utils.h (type_with_linkage_p): Verify that type is
14673 CXX_ODR_P.
14674 (odr_type_p): Remove extra return.
14675 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14676 hash STRING_FLAG only for arrays and integers.
14677 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14678 Update analogously.
14679 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14680 Likewise.
14681 * print-tree.c (print_node): Print cxx-odr-p
14682 and string-flag.
14683 * tree.c (need_assembler_name_p): Also check that type
14684 is CXX_ODR_TYPE_P
14685 (verify_type_variant): Update verification of SRING_FLAG;
14686 also check CXX_ODR_P.
14687 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14688 (TYPE_STRING_FLAG): Use it.
14689 (TYPE_CXX_ODR_P): New macro.
14690 * dwarf2out.c (gen_array_type_die): First check that type
14691 is an array and then test string flag.
14692
14693 2019-06-24 Richard Biener <rguenther@suse.de>
14694
14695 PR tree-optimization/90972
14696 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14697 in common code, dealing with STRING_CST properly.
14698
14699 2019-06-24 Richard Biener <rguenther@suse.de>
14700
14701 PR tree-optimization/90930
14702 PR tree-optimization/90316
14703 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14704 decrement of limit.
14705
14706 2019-06-24 Martin Sebor <msebor@redhat.com>
14707
14708 * tree-pretty-print.h: Remove unnecessary punctuation characters
14709 from a diagnostic.
14710 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14711
14712 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14713
14714 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14715 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14716 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14717
14718 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14719
14720 * config/rs6000/darwin.h: Handle GCC target pragma.
14721
14722 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14723
14724 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14725
14726 2019-06-22 Jeff Law <law@redhat.com>
14727
14728 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14729
14730 2019-06-22 Jan Hubicka <jh@suse.cz>
14731
14732 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14733 give up on bitfields; continue searching for different refs
14734 appearing later.
14735
14736 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14737
14738 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14739 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14740 containing the offset as possible simd lane access. Look through
14741 widening conversion. Move the
14742 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14743
14744 2019-06-21 Richard Biener <rguenther@suse.de>
14745
14746 PR tree-optimization/90930
14747 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14748 flag on new stmts to avoid re-processing them.
14749
14750 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14751
14752 PR c++/90875 - added -Wswitch-outside-range option
14753 * doc/invoke.texi (Wswitch-outside-range): Document.
14754
14755 2019-06-21 Jeff Law <law@redhat.com>
14756
14757 PR tree-optimization/90949
14758 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14759 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14760
14761 2019-06-21 Richard Biener <rguenther@suse.de>
14762
14763 PR debug/90914
14764 * dwarf2out.c (prune_unused_types_walk): Always consider
14765 function-local extern declarations as used.
14766
14767 2019-06-21 Richard Biener <rguenther@suse.de>
14768
14769 PR tree-optimization/90913
14770 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14771 the scalar variant of if-conversion versioning.
14772
14773 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14774
14775 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14776 create another "omp scan inscan exclusive" array if
14777 !ctx->scan_inclusive.
14778 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14779 (lower_omp_scan): Likewise.
14780 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14781 2-bit bitfield for simd_lane_access_p member.
14782 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14783 aux == (void *)-4 as simd lane access.
14784 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14785 comment with permutations to show the canonical permutation order.
14786 (vectorizable_scan_store): Handle exclusive scan.
14787 (vectorizable_store): Call vectorizable_scan_store even for
14788 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14789
14790 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14791 "omp simd array" arrays with one byte elements.
14792
14793 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14794
14795 * config/alpha/alpha.md (@unaligned_store<mode>):
14796 Rename from unaligned_store<mode>.
14797 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14798 * config/alpha/sync.md (@load_locked_<mode>): Rename
14799 from load_locked_<mode>.
14800 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14801 (@atomic_compare_and_swap<mode>_1): Rename
14802 from atomic_compare_and_swap<mode>_1.
14803 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14804 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14805 Use gen_reload_in_aligned and gen_unaligned_store.
14806 (emit_load_locked): Remove.
14807 (emit_store_conditional): Ditto.
14808 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14809 (alpha_split_compare_and_swap): Ditto.
14810 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14811 (alpha_split_compare_and_swap_12): Use gen_load_locked
14812 and gen_store_conditional.
14813 (alpha_split_atomic_exchange): Ditto.
14814 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14815 (alpha_split_atomic_exchange_12): Use gen_load_locked
14816 and gen_store_conditional.
14817
14818 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14819
14820 * config/aarch64/aarch64-errata.h: New file.
14821 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14822 (CA53_ERR_843419_SPEC): Delete.
14823 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14824 * config/aarch64/aarch64-linux.h: Likewise.
14825 * config/aarch64/aarch64-netbsd.h: Likewise.
14826 * config/aarch64/aarch64-freebsd.h: Likewise.
14827
14828 2019-06-20 Marek Polacek <polacek@redhat.com>
14829
14830 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14831
14832 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14833
14834 * config/rs6000/rs6000.md (isa attribute): Add support for
14835 for a future processor.
14836
14837 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14838
14839 PR target/54855
14840 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14841 standard scalar operation pattern for V2DF.
14842 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14843 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14844 (*ieee_<ieee_maxmin><mode>3): Likewise.
14845 (vec_setv2df_0): Likewise.
14846
14847 2019-06-20 Jan Hubicka <jh@suse.cz>
14848
14849 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14850 parameter; it has no use in gimple memory model.
14851 (indirect_ref_may_alias_decl_p): Update.
14852
14853 2019-06-20 Martin Liska <mliska@suse.cz>
14854
14855 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14856 to 10.
14857
14858 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14859
14860 * tree-vect-stmts.c (enum scan_store_kind): New type.
14861 (scan_store_can_perm_p): Change last argument from int * to
14862 vec<enum scan_store_kind> *, record precisely which permutations
14863 need whole vector left shift or that plus VEC_COND_EXPR.
14864 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14865 and additional VEC_COND_EXPR only for those iterations that need it.
14866
14867 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14868
14869 * config.gcc: Fix ARM --with-fpu checking and error message.
14870
14871 2019-06-19 Marek Polacek <polacek@redhat.com>
14872
14873 PR c++/60364 - noreturn after first decl not diagnosed.
14874 * attribs.c (get_attribute_namespace): No longer static.
14875 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14876 attributes.
14877 (attr_noreturn_exclusions): Make it extern.
14878 * attribs.h (get_attribute_namespace): Declare.
14879 * tree-inline.c (function_attribute_inlinable_p): Use
14880 get_attribute_name.
14881
14882 2019-06-19 Martin Sebor <msebor@redhat.com>
14883
14884 PR tree-optimization/90626
14885 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14886
14887 PR tree-optimization/90626
14888 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14889 (handle_builtin_string_cmp): Call it.
14890
14891 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14892
14893 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14894 and DARWIN_NOPIE_SPEC.
14895 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14896 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14897 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14898 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14899 (DARWIN_EXPORT_DYNAMIC): Delete.
14900 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14901 and pie options processing to darwin.h.
14902 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14903
14904 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14905
14906 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14907 in computing the number of options to be moved.
14908
14909 2019-06-19 Maya Rashish <coypu@sdf.org>
14910
14911 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14912 (CLEAR_INSN_CACHE) Use it.
14913
14914 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14915
14916 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14917
14918 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14919
14920 PR middle-end/84521
14921 * builtins.c (expand_builtin_setjmp_setup): Save
14922 hard_frame_pointer_rtx.
14923 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14924 restore fp.
14925 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14926 non-local goto.
14927 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14928 elimination code.
14929 (remove_reg_equal_offset_note): Remove unused function.
14930 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14931 code.
14932 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14933 (arc_builtin_setjmp_frame_value): Remove function.
14934 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14935 (avr_builtin_setjmp_frame_value): Remove function.
14936 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14937 (ix86_builtin_setjmp_frame_value): Remove function.
14938 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14939 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14940 (sparc_builtin_setjmp_frame_value): Remove function.
14941 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14942 (vax_builtin_setjmp_frame_value): Remove function.
14943 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14944 pointer if has_nonlocal_label.
14945
14946 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14947
14948 * doc/md.texi: Document vec_shl_<mode> pattern.
14949 * optabs.def (vec_shl_optab): New optab.
14950 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14951 argument, if == vec_shl_optab, check for left whole vector shift
14952 pattern rather than right shift.
14953 (expand_vec_perm_const): Add vec_shl_optab support.
14954 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14955 in the comment.
14956 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14957 can be handled by vec_shl_optab.
14958 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14959 (check_scan_store): Use it.
14960 (vectorizable_scan_store): If target can't do normal permutations,
14961 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14962 after it.
14963 * config/i386/sse.md (vec_shl_<mode>): New expander.
14964
14965 * omp-low.c (lower_rec_input_clauses): Handle references properly
14966 in inscan clauses.
14967 (lower_omp_scan): Likewise.
14968
14969 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14970
14971 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14972 mem_mode is BLKmode.
14973
14974 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14975
14976 PR target/90922
14977 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14978 pointer adjustment for the case of no callee-saved registers and
14979 stack frame bigger than 128 bytes.
14980
14981 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14982
14983 PR middle-end/90862
14984 * omp-low.c (check_omp_nesting_restrictions): Handle
14985 GF_OMP_TARGET_KIND_OACC_DECLARE.
14986
14987 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14988
14989 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14990 (@add<mode>3_carry): Rename from add<mode>3_carry.
14991 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14992 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14993 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14994 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14995 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14996 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14997 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14998 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14999 (cmpstrnsi): Use gen_cmp_1.
15000 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15001 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15002 (@umonitor_<mode>): Rename from umonitor_<mode>.
15003 * config/i386/i386-expand.c (ix86_expand_copysign):
15004 Use gen_copysign3_const and gen_copysign3_var.
15005 (ix86_expand_xorsign): Use gen_xorsign3_1.
15006 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15007 gen_sub3_carry_ccgz and gen_cmp1.
15008 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15009 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15010 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15011 (ix86_split_lshr): Ditto.
15012 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15013
15014 2019-06-18 Jason Merrill <jason@redhat.com>
15015
15016 * tree.c (build_constructor): Add MEM_STAT_DECL.
15017
15018 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15019
15020 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15021 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15022 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15023 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15024 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15025 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15026 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15027 Use CC_NZC instead of CC.
15028 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15029 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15030 (aarch64_print_operand): Handle E_CC_NZCmode.
15031 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15032 of gen_set_clobber_cc.
15033
15034 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15035
15036 * config/aarch64/aarch64-sve.md: Tabify file.
15037
15038 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15039
15040 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15041 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15042 * config/aarch64/aarch64-sve.md: Use it.
15043
15044 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15045
15046 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15047 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15048 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15049 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15050 (aarch64_expand_sve_vec_cmp_int): Use it.
15051 (aarch64_expand_sve_vec_cmp_float): Likewise.
15052 * config/aarch64/aarch64-sve.md: Likewise throughout.
15053
15054 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15055 Kugan Vivekanandarajah <kuganv@linaro.org>
15056
15057 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15058 (*cond_<optab><mode>_z): Fold into...
15059 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15060 operand 4 can be tied to operand 0 (either inherently or via RA).
15061
15062 2019-06-18 Richard Biener <rguenther@suse.de>
15063
15064 PR debug/90900
15065 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15066 as if optimized away.
15067
15068 2019-06-18 Tom de Vries <tdevries@suse.de>
15069
15070 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15071 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15072 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15073 Rename to ...
15074 (define_insn "@set_softstack_<mode>"): ... this.
15075 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15076 (define_insn "@omp_simt_enter_<mode>"): ... this.
15077 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15078 (define_insn "@omp_simt_exit_<mode>"): ... this.
15079
15080 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15081
15082 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15083 vf parameter. Restore the previous iv step of nscalars_step,
15084 but give it iv_type rather than compare_type. Tweak code order
15085 to match the comments.
15086 (vect_set_loop_condition_masked): Update accordingly.
15087 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15088 for iv_precision. Tweak comment formatting.
15089
15090 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15091
15092 * config/darwin.c: Strip trailing whitespace.
15093
15094 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15095
15096 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15097 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15098
15099 2019-06-18 Martin Jambor <mjambor@suse.cz>
15100
15101 PR ipa/90889
15102 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15103 caller does not have flag_ipa_cp set.
15104
15105 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15106
15107 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15108 from "*fold_left_plus_<mode>", updated operands order.
15109 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15110 * internal-fn.c (mask_fold_left_direct): New define.
15111 (expand_mask_fold_left_optab_fn): Likewise.
15112 (direct_mask_fold_left_optab_supported_p): Likewise.
15113 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15114 * optabs.def (mask_fold_left_plus_optab): New optab.
15115 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15116 masked internal_fn for a reduction ifn.
15117 (vectorize_fold_left_reduction): Add support for masking reductions.
15118
15119 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15120
15121 PR middle-end/80791
15122 * target.def (predict_doloop_p): New hook.
15123 * targhooks.h (default_predict_doloop_p): New declaration.
15124 * targhooks.c (default_predict_doloop_p): New function.
15125 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15126 * doc/tm.texi: Regenerate.
15127 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15128 (TARGET_PREDICT_DOLOOP_P): New macro.
15129 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15130
15131 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15132
15133 * omp-low.c (struct omp_context): Add scan_inclusive field.
15134 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15135 if inclusive scan.
15136 (struct omplow_simd_context): Add lastlane member.
15137 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15138 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15139 1 or 2 argument.
15140 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15141 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15142 (lower_omp_scan): New function.
15143 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15144 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15145 check 3rd argument if present rather than 2nd.
15146 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15147 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15148 2-bit bitfield.
15149 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15150 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15151 than 2nd.
15152 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15153 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15154 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15155 init.
15156 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15157 IFN_GOMP_SIMD_LANE argument.
15158 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15159 encoded ->aux value.
15160 * tree-vect-stmts.c: Include attribs.h.
15161 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15162 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15163 functions.
15164 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15165 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15166
15167 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15168
15169 PR target/62055
15170 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15171 (*nabs<mode>2_1): Ditto.
15172 (nabs sse-reg splitter): New splitter.
15173 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15174
15175 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15176
15177 PR bootstrap/90873.
15178 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15179 TMR index check.
15180
15181 2019-06-17 Tom de Vries <tdevries@suse.de>
15182
15183 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15184 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15185 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15186 ...
15187 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15188 match_operand 0.
15189 (define_insn "omp_simt_enter_insn"): Rename to ...
15190 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15191 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15192 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15193 gen_omp_simt_enter_si.
15194 (define_expand "omp_simt_exit"): New.
15195 (define_insn "omp_simt_exit"): Rename to ...
15196 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15197 match_operand 0.
15198
15199 2019-06-17 Matthew Green <mrg@eterna.com.au>
15200 Maya Rashish <coypu@sdf.org>
15201
15202 * config.gcc (aarch64*-*-netbsd*): New target.
15203 * config/aarch64/aarch64-netbsd.h: New file.
15204 * config/aarch64/t-aarch64-netbsd: Likewise.
15205
15206 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15207
15208 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15209 the access path from base to first VIEW_CONVERT_EXPR or
15210 BIT_FIELD_REF.
15211
15212 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15213
15214 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15215 access path on BIT_FIELD_REFs.
15216
15217 2019-06-17 Martin Liska <mliska@suse.cz>
15218
15219 PR ipa/90874
15220 * ipa-utils.h (odr_type_p): Remove dead code.
15221
15222 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15223
15224 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15225 alternative Solaris 11.4 format.
15226 * configure: Regenerate.
15227
15228 2019-06-17 Tom de Vries <tdevries@suse.de>
15229
15230 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15231 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15232 match_operand 0.
15233 (define_insn "call_value_insn"): Rename to ...
15234 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15235 match_operand 0.
15236 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15237 DI.
15238
15239 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15240
15241 PR middle-end/64242
15242 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15243 frame clobbers and schedule block.
15244 (builtin_longjmp): Likewise.
15245
15246 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15247
15248 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15249 describe how to perform MSPABI compliant 64-bit shift.
15250 * config/msp430/msp430.md (ashldi3): New define_expand.
15251 (ashrdi3): New define_expand.
15252 (lshrdi3): New define_expand.
15253
15254 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15255
15256 * doc/sourcebuild.texi: Document new effective target keyword
15257 longlong64.
15258
15259 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15260
15261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15262 indirect_refs_may_alias_p): Revert accidental commits.
15263
15264 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15265 at the end of structures.
15266
15267 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15268
15269 * config/darwin.c (machopic_indirect_call_target): Use renamed
15270 darwin_picsymbol_stubs to decide on output.
15271 (darwin_override_options): Handle darwin_picsymbol_stubs.
15272 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15273 (LD64_VERSION): Revise default.
15274 * config/darwin.opt: (mpic-symbol-stubs): New option.
15275 (darwin_picsymbol_stubs): New variable.
15276 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15277 rename to TARGET_MACHO_PICSYM_STUBS.
15278 * config/i386/i386.c (output_pic_addr_const): Likewise.
15279 * config/i386/i386.h Likewise.
15280 * config/rs6000/darwin.h: Likewise.
15281 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15282 darwin_picsymbol_stubs.
15283
15284 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15285
15286 * config/darwin.opt (prebind, noprebind, seglinkedit,
15287 noseglinkedit): Add RejectNegative.
15288
15289 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15290
15291 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15292 in my previous patch.
15293
15294 2019-06-16 Tom de Vries <tdevries@suse.de>
15295
15296 PR tree-optimization/89376
15297 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15298
15299 2019-06-15 Maya Rashish <coypu@sdf.org>
15300
15301 * doc/invoke.texi (Spec Files): Update location of the
15302 Fortran spec file.
15303
15304 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15305
15306 * doc/extend.texi (Common Function Attributes): Clarify
15307 no_sanitize. Fix grammar.
15308
15309 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15310
15311 * tree-ssa-alias.c (alias_stats): Add
15312 nonoverlapping_component_refs_p_may_alias,
15313 nonoverlapping_component_refs_p_no_alias,
15314 nonoverlapping_component_refs_of_decl_p_may_alias,
15315 nonoverlapping_component_refs_of_decl_p_no_alias.
15316 (dump_alias_stats): Dump them.
15317 (nonoverlapping_component_refs_of_decl_p): Add stats.
15318 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15319 ARRAY_REF.
15320
15321 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15322
15323 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15324 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15325 only.
15326 (*anddi3_doubleword): Split before reload. Merge with
15327 anddi->zext pre-reload splitter.
15328 (*andndi3_doubleword): Split before reload.
15329 (*<code>di3_doubleword): Ditto.
15330 (*one_cmpldi2_doubleword): Ditto.
15331
15332 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15333
15334 PR middle-end/90779
15335 * gimplify.c: Include omp-offload.h and context.h.
15336 (gimplify_bind_expr): Add "omp declare target" attributes
15337 to static block scope variables inside of target region or target
15338 functions.
15339
15340 2019-06-15 Tom de Vries <tdevries@suse.de>
15341
15342 PR tree-optimization/90009
15343 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15344 Return NULL if bb contains IFN_UNIQUE.
15345
15346 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15347
15348 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15349 (un): New define_mode_attr.
15350 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15351 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15352 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15353 merge into ...
15354 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15355
15356 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15357
15358 * config/darwin.opt: Add RejectNegative where needed, reorder
15359 and add minimal functional descriptions.
15360
15361 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15362
15363 PR rtl-optimization/90765
15364 * calls.c (update_stack_alignment_for_call): New function.
15365 (expand_call): Call update_stack_alignment_for_call when
15366 outgoing parameter is passed in the stack.
15367 (emit_library_call_value_1): Likewise.
15368 * function.c (locate_and_pad_parm): Don't update
15369 stack_alignment_needed and preferred_stack_boundary.
15370
15371 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15372
15373 PR target/90877
15374 * config/i386/i386-features.c
15375 (dimode_scalar_chain::compute_convert_gain): Replace
15376 mmxsse_to_integer with sse_to_integer.
15377 * config/i386/i386.c (ix86_register_move_cost): Verify that
15378 moves between MMX and non-MMX units require secondary memory.
15379 Correct costs of moves between SSE and integer units.
15380 * config/i386/i386.h (processor_costs): Rename cost of moving
15381 SSE register to integer to sse_to_integer. Rename cost of
15382
15383 2019-06-14 Matt Thomas <matt@3am-software.com>
15384 Matthew Green <mrg@eterna.com.au>
15385 Nick Hudson <skrll@netbsd.org>
15386 Maya Rashish <coypu@sdf.org>
15387 Richard Earnshaw <rearnsha@arm.com>
15388
15389 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15390 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15391 * config/arm/netbsd-eabi.h: New file.
15392 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15393 redefining.
15394 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15395 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15396 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15397 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15398
15399 2019-06-14 Richard Biener <rguenther@suse.de>
15400
15401 * tree-loop-distribution.c (classify_partition): Return
15402 whether a reduction appeared in all partitions and do not
15403 stop builtin detection because of this.
15404 (distribute_loop): Sort a non-builtin partition last if
15405 there's a reduction in all partitions and make sure the
15406 partition prevailing as last is not a builtin.
15407
15408 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15409
15410 PR ipa/90401
15411 * ipa-prop.c (add_to_agg_contents_list): New function.
15412 (clobber_by_agg_contents_list_p): Likewise.
15413 (extract_mem_content): Likewise.
15414 (get_place_in_agg_contents_list): Delete.
15415 (determine_known_aggregate_parts): Renamed from
15416 determine_locally_known_aggregate_parts. New parameter
15417 aa_walk_budget_p.
15418
15419 2019-06-13 Martin Sebor <msebor@redhat.com>
15420
15421 PR tree-optimization/90662
15422 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15423 to the same type.
15424
15425 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15426
15427 PR bootstrap/90873
15428 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15429 dbase is not TARGET_MEM_REF.
15430
15431 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15432
15433 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15434 Update all uses.
15435 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15436 Do not generate DImode extends for 32bit targets.
15437 (and->zext post-reload splitter): Use gen_extend_insn
15438 instead of indirect functions.
15439 (anddi->zext pre-reload splitter): New.
15440 (*zext<mode>_doubleword_and): Remove.
15441 (*zext<mode>_doubleword): Ditto.
15442 (*zextsi_doubleword): Dittto.
15443
15444 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15445
15446 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15447 Use gen_sub3_insn instead of indirect function.
15448 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15449 indirect function.
15450 (ix86_adjust_counter): Ditto.
15451
15452 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15453 Lijia He <helijia@linux.ibm.com>
15454
15455 PR tree-optimization/77820
15456 * tree-ssa-threadedge.c
15457 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15458 function.
15459 (thread_across_edge): Add call to
15460 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15461
15462 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15463
15464 * config/darwin-driver.c (validate_macosx_version_min): New.
15465 (darwin_default_min_version): Cleanup and validate supplied version.
15466 (darwin_driver_init): Likewise and push cleaned version into opts.
15467
15468 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15469
15470 PR tree-optimization/90869
15471 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15472 converts in MEM_REF referencing decl rather than view converts
15473 from decl type to MEM_REF type.
15474
15475 2019-06-13 Richard Biener <rguenther@suse.de>
15476
15477 PR tree-optimization/90856
15478 * tree-sra.c (build_ref_for_model): Only use
15479 build_reconstructed_reference when address-spaces are the same.
15480
15481 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15482
15483 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15484 wrap ei variable name in the declaration in ()s.
15485 (nvptx_single): Actually use mode_label variable. Formatting fix.
15486
15487 2019-06-13 Richard Biener <rguenther@suse.de>
15488
15489 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15490 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15491 also return the condition stmt.
15492 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15493 loop we can version and version that, reusing the loop version
15494 created by if-conversion instead of versioning again.
15495
15496 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15497
15498 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15499 may_contain_p.
15500 * tree-vrp (value_range_base::may_contain_p): Call into
15501 value_inside_range.
15502 (value_inside_range): Make private inside value_range_base class.
15503 Take min/max from *this.
15504 (range_includes_p): Remove.
15505 * tree-vrp.h (value_range_base): Add value_inside_range.
15506 (range_includes_p): Remove.
15507 (range_includes_zero_p): Call may_contain_p.
15508 * vr-values.c (compare_range_with_value): Same.
15509
15510 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15511
15512 * doc/extend.texi (ARC Function Attributes): Update info.
15513
15514 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15515
15516 PR tree-optimization/89713
15517 * doc/invoke.texi (-ffinite-loops): Document new option.
15518 * common.opt (-ffinite-loops): New option.
15519 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15520 IFN_GOACC_LOOP calls as necessary.
15521 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15522 is finite.
15523 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15524 IFN_GOACC_LOOP call is not used.
15525 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15526
15527 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15528
15529 PR target/88838
15530 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15531 compare_type is not with Pmode size, we will create an IV with
15532 Pmode size with truncated use (i.e. converted to the correct type).
15533 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15534 (vect_iv_limit_for_full_masking): New. Factored out of
15535 vect_set_loop_condition_masked.
15536 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15537 (vect_iv_limit_for_full_masking): Declare.
15538
15539 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15540
15541 PR target/88834
15542 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15543 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15544 (get_alias_ptr_type_for_ptr_address): Likewise.
15545 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15546 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15547 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15548 allow_reg_index_p.
15549
15550 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15551
15552 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15553
15554 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15555
15556 * common/config/pru/pru-common.c: New file.
15557 * config.gcc: Add PRU target.
15558 * config/pru/alu-zext.md: New file.
15559 * config/pru/constraints.md: New file.
15560 * config/pru/predicates.md: New file.
15561 * config/pru/pru-opts.h: New file.
15562 * config/pru/pru-passes.c: New file.
15563 * config/pru/pru-pragma.c: New file.
15564 * config/pru/pru-protos.h: New file.
15565 * config/pru/pru.c: New file.
15566 * config/pru/pru.h: New file.
15567 * config/pru/pru.md: New file.
15568 * config/pru/pru.opt: New file.
15569 * config/pru/t-pru: New file.
15570 * doc/extend.texi: Document PRU pragmas.
15571 * doc/invoke.texi: Document PRU-specific options.
15572 * doc/md.texi: Document PRU asm constraints.
15573
15574 2019-06-12 Martin Sebor <msebor@redhat.com>
15575
15576 PR middle-end/90676
15577 * tree-pretty-print.c (dump_mem_ref): New function. Include
15578 MEM_REF type in output when different size than operand.
15579 (dump_generic_node): Move code to dump_mem_ref and call it.
15580
15581 2019-06-12 Martin Sebor <msebor@redhat.com>
15582
15583 PR tree-optimization/90662
15584 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15585 to arrays.
15586
15587 2019-06-12 Tom de Vries <tdevries@suse.de>
15588
15589 PR tree-optimization/90009
15590 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15591
15592 2019-06-12 Martin Liska <mliska@suse.cz>
15593
15594 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15595 the created map.
15596 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15597 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15598 Do not sanitize created maps.
15599
15600 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15601
15602 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15603 value_range::singleton_p.
15604 * tree-vrp.c (value_range_constant_singleton): Remove.
15605 * tree-vrp.h (value_range_constant_singleton): Remove.
15606 * vr-values.c (vr_values::singleton): Use
15607 value_range::singleton_p.
15608
15609 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15610
15611 PR target/90811
15612 * cfgexpand.c (align_local_variable): Add really_expand argument,
15613 don't SET_DECL_ALIGN if it is false.
15614 (add_stack_var): Add really_expand argument, pass it through to
15615 align_local_variable.
15616 (expand_one_stack_var_1): Pass true as really_expand to
15617 align_local_variable.
15618 (expand_one_ssa_partition): Pass true as really_expand to
15619 add_stack_var.
15620 (expand_one_var): Pass really_expand through to add_stack_var.
15621
15622 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15623
15624 * config/arm/iterators.md (VABAL): New int iterator.
15625 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15626 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15627 UNSPEC_VABAL_U values.
15628
15629 2019-06-12 Martin Liska <mliska@suse.cz>
15630
15631 * value-prof.c (stream_out_histogram_value): Only first value
15632 can't be negative.
15633
15634 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15635
15636 PR c/90760
15637 * symtab.c (symtab_node::set_section): Allow being called on aliases
15638 as long as they aren't analyzed yet.
15639
15640 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15641
15642 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15643 to `mips_set_text_contents_type' to indicate whether a
15644 non-debug insn follows.
15645
15646 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15647
15648 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15649 enabling -mpcrel by default.
15650 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15651 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15652 that the test against -mcpu=future is done first. Then test if
15653 -mprefixed-addr is on for -mpcrel.
15654 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15655
15656 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15657
15658 PR target/90811
15659 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15660 instead of and.u%d.
15661
15662 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15663
15664 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15665
15666 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15667
15668 PR c++/90449 - add -Winaccessible-base option.
15669 * doc/invoke.texi (Winaccessible-base): Document.
15670
15671 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15672
15673 PR tree-optimization/62041
15674 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15675
15676 2019-06-11 Jason Merrill <jason@redhat.com>
15677
15678 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15679 * tree.c (get_tree_code_name): Likewise.
15680 * print-tree.c (print_node): Only briefly print a node with an
15681 invalid code.
15682
15683 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15684
15685 PR bootstrap/90819
15686 * trans-mem.c (tm_memopt_compute_available): Add assertion
15687 that blocks is not empty. Formatting fix.
15688
15689 2019-06-11 Martin Liska <mliska@suse.cz>
15690
15691 PR c++/87847
15692 * hash-table.h: Extend create_gcc, add one parameter
15693 that is passed into hash_table::hash_table.
15694
15695 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15696
15697 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15698 New prototype.
15699 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15700 Emit clobber also for non-sse operations.
15701 (ix86_split_fp_absneg_operator): New function.
15702 * config/i386/i386.md (SSEMODEF): New mode iterator.
15703 (ssevecmodef): New mode attribute.
15704 (<code>tf2): Use absneg code iterator.
15705 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15706 Add three-operand AVX alternatives.
15707 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15708 Use absneg code iterator and X87MODEF mode iterator.
15709 (absneg fp_reg non-sse splitter): Call absneg code iterator
15710 and X87MODEF mode iterator.
15711 (absneg general_reg non-sse splitter): Use absneg code iterator
15712 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15713 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15714 code iterator. Add three-operand AVX alternative.
15715 (absneg sse_reg splitter): Use absneg code iterator
15716 and SSEMODEF mode iterator. Handle AVX operands.
15717 (absneg fp_reg splitter): Use absneg code iterator
15718 and MODEF mode iterator.
15719 (absneg general_reg splitter): Merge splitters using MODEF mode
15720 iterator. Use absneg code iterator. Call
15721 ix86_split_fp_absneg_operator.
15722 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15723 Do not enable for non-sse modes before reload.
15724 (CSGNMODE): Remove.
15725 (CSGNVMODE): Ditto.
15726 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15727 ssevecmodef mode attribute instaed of CSGNVMODE.
15728 (copysign<mode>3_const): Ditto.
15729 (copysign<mode>3_var): Ditto.
15730 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15731 Use absneg code iterator. Simplify code using std::swap.
15732 * config/i386/predicates.md (absneg_operator): Remove.
15733
15734 2019-06-10 Martin Sebor <msebor@redhat.com>
15735
15736 * gimple-fold.c (get_range_strlen): Update comment that didn't
15737 make it into r267503 or related commits.
15738
15739 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15740
15741 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15742 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15743
15744 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15745
15746 * tree.def (OMP_SCAN): New tree code.
15747 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15748 OMP_CLAUSE_EXCLUSIVE.
15749 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15750 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15751 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15752 OMP_CLAUSE_{IN,EX}CLUSIVE.
15753 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15754 * tree-nested.c (convert_nonlocal_reference_stmt,
15755 convert_local_reference_stmt, convert_gimple_call): Handle
15756 GIMPLE_OMP_SCAN.
15757 * tree-pretty-print.c (dump_omp_clause): Handle
15758 OMP_CLAUSE_{IN,EX}CLUSIVE.
15759 (dump_generic_node): Handle OMP_SCAN.
15760 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15761 * gimple.h (gomp_scan): New type.
15762 (is_a_helper <gomp_scan *>::test,
15763 is_a_helper <const gomp_scan *>::test): New templates.
15764 (gimple_build_omp_scan): Declare.
15765 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15766 gimple_omp_scan_set_clauses): New inline functions.
15767 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15768 * gimple.c (gimple_build_omp_scan): New function.
15769 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15770 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15771 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15772 GIMPLE_OMP_TASKGROUP.
15773 (dump_gimple_omp_scan): New function.
15774 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15775 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15776 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15777 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15778 (is_gimple_stmt): Handle OMP_SCAN.
15779 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15780 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15781 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15782 mentioned in nested #pragma omp scan. Handle
15783 OMP_CLAUSE_{IN,EX}CLUSIVE.
15784 (gimplify_expr): Handle OMP_SCAN.
15785 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15786 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15787 simd constructs.
15788 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15789 GIMPLE_OMP_SCAN.
15790
15791 2019-06-10 Martin Liska <mliska@suse.cz>
15792
15793 * ipa-cp.c (ignore_edge_p): New function.
15794 (build_toporder_info): Use it.
15795 * ipa-inline.c (ignore_edge_p): New function.
15796 (inline_small_functions): Use it.
15797 * ipa-pure-const.c (ignore_edge_for_nothrow):
15798 Verify opt_for_fn for caller and callee.
15799 (ignore_edge_for_pure_const): Likewise.
15800 * ipa-reference.c (ignore_edge_p): Extend to check
15801 for opt_for_fn.
15802 * ipa-utils.c (searchc): Refactor.
15803 * ipa-utils.h: Fix coding style.
15804
15805 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15806
15807 * config/arc/arc.c (arc_rtx_costs): Update costs.
15808
15809 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15810
15811 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15812 (arc_split_ior): Likewise.
15813 (arc_check_mov_const): Likewise.
15814 (arc_split_mov_const): Likewise.
15815 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15816 (arc_rtx_costs): Replace check Crr with Cax constraint.
15817 (prepare_move_operands): Cleanup, remove unused code.
15818 (arc_split_ior): New function.
15819 (arc_check_ior_const): Likewise.
15820 (arc_split_mov_const): Likewise.
15821 (arc_check_mov_const): Likewise.
15822 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15823 in define_insn_and_split pattern.
15824 (iorsi3): Likewise.
15825 (mulsi3_v2): Add new matching variant.
15826 (andsi3_i): Cleanup pattern.
15827 (rotrsi3_cnt1): Update pattern.
15828 (rotrsi3_cnt8): New pattern.
15829 (ashlsi2_cnt8): Likewise.
15830 (ashlsi2_cnt16): Likewise.
15831 * config/arc/constraints.md (C0p): Update constraint.
15832 (Crr): Remove it.
15833 (C0x): New pattern.
15834 (Cax): New pattern.
15835
15836 2019-06-10 Martin Liska <mliska@suse.cz>
15837
15838 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15839 Update coding style.
15840 (sem_item_optimizer::dump_cong_classes):
15841 Print how many items are in a non-singular class. Improve
15842 coding style.
15843
15844 2019-06-10 Martin Liska <mliska@suse.cz>
15845
15846 * value-prof.c (dump_histogram_value): Change dump format.
15847 (gimple_mod_subtract_transform): Remove legacy comment.
15848
15849 2019-06-10 Martin Liska <mliska@suse.cz>
15850
15851 * value-prof.c (dump_histogram_value): Print histogram values
15852 only if present.
15853
15854 2019-06-10 Martin Liska <mliska@suse.cz>
15855
15856 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15857 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15858 * ipa-profile.c (ipa_profile_generate_summary):
15859 Use get_most_common_single_value.
15860 * tree-profile.c (gimple_init_gcov_profiler):
15861 Instrument with __gcov_one_value_profiler_v2
15862 and __gcov_indirect_call_profiler_v4.
15863 * value-prof.c (dump_histogram_value):
15864 Print all values for HIST_TYPE_SINGLE_VALUE.
15865 (stream_out_histogram_value): Update assert for
15866 N values.
15867 (stream_in_histogram_value): Set number of
15868 counters for HIST_TYPE_SINGLE_VALUE.
15869 (get_most_common_single_value): New.
15870 (gimple_divmod_fixed_value_transform):
15871 Use get_most_common_single_value.
15872 (gimple_ic_transform): Likewise.
15873 (gimple_stringops_transform): Likewise.
15874 (gimple_find_values_to_profile): Set number
15875 of counters for HIST_TYPE_SINGLE_VALUE.
15876 * value-prof.h (get_most_common_single_value): New.
15877
15878 2019-06-10 Martin Liska <mliska@suse.cz>
15879
15880 * hash-map.h: Pass default value to hash_table ctor.
15881 * hash-table.h: Add default value to call of a ctor.
15882
15883 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15884
15885 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15886 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15887
15888 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15889
15890 PR target/90751
15891 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15892 Call pa_output_function_label.
15893 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15894 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15895 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15896 to declaration.
15897 (pa_linux_output_function_prologue): Declare.
15898 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15899 (pa_output_function_label): New.
15900 (pa_output_function_prologue): Revise to use pa_output_function_label.
15901 (pa_linux_output_function_prologue): New.
15902 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15903
15904 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15905
15906 * tree-vrp.h (value_range_base::intersect): New.
15907 (value_range::intersect_helper): Move from here...
15908 (value_range_base::intersect_helper): ...to here.
15909 * tree-vrp.c (value_range::intersect_helper): Rename to...
15910 (value_range_base::intersect_helper): ...this, and rewrite to
15911 return a value instead of modifying THIS in place.
15912 Also, move equivalence handling...
15913 (value_range::intersect): ...here, while calling intersect_helper.
15914 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15915 calling intersect.
15916 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15917 Same.
15918 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15919
15920 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15921
15922 * Makefile.in (genprogerr): Add condmd.
15923 (genprog): Remove it here.
15924
15925 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15926
15927 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15928
15929 2019-06-07 Richard Biener <rguenther@suse.de>
15930
15931 PR debug/90574
15932 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15933 that appear after user labels.
15934
15935 2019-06-07 Martin Liska <mliska@suse.cz>
15936
15937 * cselib.c (cselib_init): Disable hash table
15938 sanitization.
15939 * hash-set.h: Pass new default argument to m_table.
15940 * hash-table.c: Add global variable with hash table
15941 sanitization limit.
15942 * hash-table.h (Allocator>::hash_table): Add new argument
15943 to ctor.
15944 (hashtab_chk_error): New.
15945 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15946 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15947 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15948
15949 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15950
15951 * common.opt (flto-odr-type-merging): Ignore.
15952 * invoke.texi (-flto-odr-type-merging): Remove.
15953 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15954 (can_be_vtable_hashed_p): Remove.
15955 (hash_odr_vtable): Remove.
15956 (odr_vtable_hasher::hash): Remove.
15957 (types_same_for_odr): Remove.
15958 (types_odr_comparable): Remove.
15959 (odr_vtable_hasher::equal): Remove.
15960 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15961 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15962 (get_odr_type): Do not use vtable hash.
15963 (dump_odr_type): Remove commented out code.
15964 (build_type_inheritance_graph): Do not allocate vtable hash.
15965 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15966 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15967 (odr_type_p): Likewise.
15968 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15969 test.
15970
15971 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15972
15973 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15974 immediately after same_types_for_tbaa_p returns -1 and continue
15975 looking for possible exact match; if matching types are arrays
15976 watch for partial overlaps.
15977 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15978 (indirect_refs_may_alias_p): Do type based disambiguation first;
15979 update comment.
15980
15981 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15982
15983 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15984
15985 2019-06-07 Martin Liska <mliska@suse.cz>
15986
15987 * doc/invoke.texi: Remove param.
15988 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15989 Remove.
15990 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15991 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15992 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15993 * profile.c (instrument_values): Remove
15994 HIST_TYPE_INDIR_CALL_TOPN.
15995 * tree-profile.c (init_ic_make_global_vars):
15996 Always build __gcov_indirect_call only.
15997 (gimple_init_gcov_profiler): Remove usage
15998 of PARAM_INDIR_CALL_TOPN_PROFILE.
15999 (gimple_gen_ic_profiler): Likewise.
16000 * value-prof.c (dump_histogram_value): Likewise.
16001 (stream_in_histogram_value): Likewise.
16002 (gimple_indirect_call_to_profile): Likewise.
16003 (gimple_find_values_to_profile): Likewise.
16004 * value-prof.h (enum hist_type): Likewise.
16005
16006 2019-06-07 Martin Liska <mliska@suse.cz>
16007
16008 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16009 function.
16010
16011 2019-06-07 Martin Liska <mliska@suse.cz>
16012
16013 PR tree-optimization/78902
16014 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16015 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16016 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16017 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16018 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16019 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16020 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16021 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16022 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16023 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16024 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16025 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16026 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16027 New.
16028 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16029 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16030 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16031 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16032 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16033 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16034 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16035 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16036 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16037 warn_unused_result attribute.
16038 (BUILT_IN_STRDUP): Likewise.
16039 (BUILT_IN_STRNDUP): Likewise.
16040 (BUILT_IN_ALLOCA): Likewise.
16041 (BUILT_IN_CALLOC): Likewise.
16042 (BUILT_IN_MALLOC): Likewise.
16043 (BUILT_IN_REALLOC): Likewise.
16044
16045 2019-06-06 Jim Wilson <jimw@sifive.com>
16046
16047 PR target/89955
16048 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16049 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16050 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16051
16052 2019-06-06 Martin Sebor <msebor@redhat.com>
16053
16054 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16055 (handle_builtin_malloc): Remove trailing spaces.
16056 (handle_builtin_memset): Same.
16057 (handle_builtin_memcmp): Same.
16058 (compute_string_length): Same.
16059 (determine_min_objsize): Same.
16060 (handle_builtin_string_cmp): Same.
16061 (handle_char_store): Same. Break up excessively long line.
16062
16063 2019-06-06 Martin Jambor <mjambor@suse.cz>
16064
16065 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16066 check.
16067
16068 2019-06-06 Martin Jambor <mjambor@suse.cz>
16069
16070 * tree-sra.c (struct access): New field grp_same_access_path.
16071 (dump_access): Dump it.
16072 (build_reconstructed_reference): New function.
16073 (build_ref_for_model): Use it if possible.
16074 (path_comparable_for_same_access): New function.
16075 (same_access_path_p): Likewise.
16076 (sort_and_splice_var_accesses): Set the new flag.
16077 (analyze_access_subtree): Likewise.
16078 (propagate_subaccesses_across_link): Propagate zero value of the new
16079 flag down the access tree.
16080
16081 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16082
16083 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16084 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16085 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16086 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16087 Add gfx906.
16088
16089 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16090
16091 PR tree-optimization/90332
16092 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16093 Handle VALS containing two vectors.
16094 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16095 to...
16096 (@aarch64_combinez<mode>): ... This.
16097 (*aarch64_combinez_be<mode>): Rename to...
16098 (@aarch64_combinez_be<mode>): ... This.
16099 (vec_init<mode><Vhalf>): New define_expand.
16100 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16101
16102 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16103
16104 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16105 library functions only when not optimizing for size.
16106 (ashlsi3): Likewise.
16107 (ashrhi3): Likewise.
16108 (ashrsi3): Likewise.
16109 (lshrhi3): Likewise.
16110 (lshrsi3): Likewise.
16111
16112 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16113
16114 PR rtl-optimization/88751
16115 * ira.c (ira): Use the number of the actually referenced registers
16116 when calculating the threshold.
16117
16118 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16119
16120 * configure: Regenerate.
16121
16122 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16123
16124 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16125 register if it is in memory, so the shift can be emulated with a rotate
16126 instruction.
16127 (ashrhi3): Likewise.
16128 (lshrhi3): Likewise.
16129
16130 2019-06-06 Martin Liska <mliska@suse.cz>
16131
16132 PR tree-optimization/87954
16133 * match.pd: Simplify mult where both arguments are 0 or 1.
16134
16135 2019-06-06 Richard Biener <rguenther@suse.de>
16136
16137 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16138 put equivalences on UNDEFINED ranges.
16139 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16140 Make sure to drop defs of stmts added during simplification
16141 to VARYING.
16142
16143 2019-06-06 Richard Biener <rguenther@suse.de>
16144
16145 * tree-ssa-structalias.c: Include tree-cfg.h.
16146 (make_heapvar): Do not make heap vars artificial.
16147 (find_func_aliases_for_builtin_call): Handle stack allocation
16148 functions.
16149 (find_func_aliases): Delay processing of simple enough returns
16150 in non-IPA mode.
16151 (set_uids_in_ptset): Adjust.
16152 (find_what_var_points_to): Likewise.
16153 (solve_constraints): Do not dump points-to sets here.
16154 (compute_points_to_sets): Post-process return statements,
16155 amending the escaped solution. Dump points-to sets afterwards.
16156 (ipa_pta_execute): Dump points-to sets.
16157
16158 2019-06-06 Martin Liska <mliska@suse.cz>
16159
16160 PR web/87933
16161 * doc/install.texi: Fix HTML headers and
16162 titles for 'Installing GCC' pages.
16163
16164 2019-06-06 Martin Liska <mliska@suse.cz>
16165
16166 * ipa-icf-gimple.h (dump_message_1): Remove.
16167 (dump_message): Likewise.
16168 (return_false_with_message_1): Print also file.
16169 (return_false_with_msg): Likewise.
16170 (return_with_result): Likewise.
16171 (return_with_debug): Likewise.
16172 * ipa-icf.c (sem_function::equals_private): Remove call
16173 to dump_message.
16174
16175 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16176
16177 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16178 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16179 memory operand for it.
16180 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16181
16182 2019-06-05 Martin Sebor <msebor@redhat.com>
16183
16184 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16185 Adjust quoting and hyphenation.
16186 * convert.c (convert_to_real_1): Same.
16187 * gcc.c (driver_wrong_lang_callback): Same.
16188 (driver::handle_unrecognized_options): Same.
16189 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16190 * opts-common.c (cmdline_handle_error): Same.
16191 (read_cmdline_option): Same.
16192 * opts-global.c (complain_wrong_lang): Same.
16193 (print_ignored_options): Same.
16194 (handle_common_deferred_options): Same.
16195 * pretty-print.h: Same.
16196 * print-rtl.c (debug_bb_n_slim): Same.
16197 * sched-rgn.c (make_pass_sched_fusion): Same.
16198 * tree-cfg.c (verify_gimple_assign_unary): Same.
16199 (verify_gimple_label): Same.
16200 * tree-ssa-operands.c (verify_ssa_operands): Same.
16201 * varasm.c (do_assemble_alias): Same.
16202 (assemble_alias): Same.
16203
16204 2019-06-05 Richard Henderson <rth@twiddle.net>
16205
16206 * config/alpha/alpha.c (direct_return): Move down after
16207 struct machine_function definition; use saved frame_size;
16208 return bool.
16209 (struct machine_function): Add sa_mask, sa_size, frame_size.
16210 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16211 (alpha_compute_frame_layout): ... new function.
16212 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16213 (alpha_initial_elimination_offset): Use saved sa_size.
16214 (alpha_vms_initial_elimination_offset): Likewise.
16215 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16216 (alpha_expand_prologue): Use saved frame data. Merge integer
16217 and fp register save loops.
16218 (alpha_expand_epilogue): Likewise.
16219 (alpha_start_function): Use saved frame data.
16220 * config/alpha/alpha-protos.h (direct_return): Update.
16221 (alpha_sa_size): Remove.
16222
16223 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16224
16225 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16226 multiplication by a power-of-two value.
16227 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16228 and turn the modulo operation into a masking operation.
16229
16230 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16231
16232 PR debug/90733
16233 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16234 with VOIDmode inner operands.
16235
16236 2019-06-05 Richard Biener <rguenther@suse.de>
16237
16238 PR middle-end/90726
16239 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16240 turn an expression graph into a tree.
16241
16242 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16243
16244 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16245 member.
16246 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16247 treat it like explicit monotonic schedule modifier.
16248 (expand_omp_for): Initialize has_lastprivate_conditional.
16249 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16250 schedule modifier.
16251
16252 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16253 references, lookup in in hash map MEM_REF operand instead of the
16254 MEM_REF itself.
16255 (lower_omp_1): When looking for lastprivate conditional assignments,
16256 handle MEM_REFs with REFERENCE_TYPE operands.
16257
16258 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16259 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16260 and references a VLA. Handle references to non-VLAs if is_simd
16261 all privatization clauses like reductions.
16262 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16263 If omp_is_reference, use always omp simd arrays and set
16264 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16265 fails, emit reference initialization.
16266
16267 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16268
16269 PR target/89803
16270 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16271 _mm_mask_fpclass_sd_mask): New intrinsics.
16272 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16273 * config/i386/i386-builtin.def
16274 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16275 New builtins.
16276 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16277 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16278 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16279 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16280 case QI_FTYPE_V2SF_INT): Ditto.
16281 * config/i386/sse.md
16282 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16283 Extended to insnstructions with mask operands.
16284
16285 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16286
16287 * config/rs6000/constraints.md (define_register_constraint "wp"):
16288 Delete.
16289 (define_register_constraint "wq"): Delete.
16290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16291 (rs6000_init_hard_regno_mode_ok): Adjust.
16292 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16293 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16294 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16295 (define_mode_attr VSa): Delete.
16296 (define_mode_attr VSisa): New.
16297 (rest of file): Adjust.
16298 * doc/md.texi (Machine Constraints): Adjust.
16299
16300 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16301
16302 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16303 (define_attr "enabled"): Handle those new isa values.
16304
16305 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16306
16307 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16308 (define_mode_attr VSr5): Delete.
16309 (define_mode_attr VStype_sqrt): Delete.
16310 (define_mode_iterator VSX_SPDP): Delete.
16311 (define_mode_attr VS_spdp_res): Delete.
16312 (define_mode_attr VS_spdp_insn): Delete.
16313 (define_mode_attr VS_spdp_type): Delete.
16314 (*vsx_sqrt<mode>2): Adjust.
16315 (vsx_<VS_spdp_insn>): Delete, split to...
16316 (vsx_xscvdpsp): ... this. New. And...
16317 (vsx_xvcvspdp): ... this. New. And...
16318 (vsx_xvcvdpsp): ... this. New.
16319
16320 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16321
16322 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16323 and V2DF.
16324 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16325 (rest of file): Adjust.
16326
16327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16328
16329 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16330 (vsx_extract_<mode>_var): Ditto.
16331
16332 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16333
16334 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16335 with just "wa".
16336
16337 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16338
16339 * config/rs6000/constraints.md (define_register_constraint "ww"):
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_ww.
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/rs6000.md (SFDF, SFDF2): Adjust comments.
16352 (define_mode_attr sd): New.
16353 (define_mode_attr s): New.
16354 (define_mode_attr Ftrad): Delete.
16355 (define_mode_attr Fvsx): Delete.
16356 (define_mode_attr Fs): Delete.
16357 (rest of file): Use the new mode attributes.
16358 * config.rs6000/vsx.md: Use the new mode attributes.
16359
16360 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16361
16362 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16363 with just "wa".
16364
16365 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16366
16367 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16368 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16369 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16370
16371 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16372
16373 PR target/78263
16374 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16375 C++ with strict ANSI requirements.
16376
16377 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16378
16379 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16380 computations when step is 1.
16381
16382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16383
16384 * config/rs6000/constraints.md (define_register_constraint "wf"):
16385 Delete.
16386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16387 (rs6000_init_hard_regno_mode_ok): Adjust.
16388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16389 RS6000_CONSTRAINT_wf.
16390 * config/rs6000/rs6000.md: Adjust.
16391 * config/rs6000/vsx.md: Adjust.
16392 * doc/md.texi (Machine Constraints): Adjust.
16393
16394 2019-06-04 Andrew Pinski <apinski@marvell.com>
16395
16396 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16397 Fix ILP32 value.
16398
16399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16400
16401 * config/rs6000/constraints.md (define_register_constraint "wd"):
16402 Delete.
16403 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16404 (rs6000_init_hard_regno_mode_ok): Adjust.
16405 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16406 RS6000_CONSTRAINT_wd.
16407 * config/rs6000/rs6000.md: Adjust.
16408 * config/rs6000/vsx.md: Adjust.
16409 * doc/md.texi (Machine Constraints): Adjust.
16410
16411 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16412
16413 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16414 (rest of file): Adjust.
16415
16416 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16417
16418 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16419 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16420 (vsx_splat_<mode>_reg): Adjust.
16421
16422 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16423
16424 * config/rs6000/constraints.md (define_register_constraint "ws"):
16425 Delete.
16426 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16427 (rs6000_init_hard_regno_mode_ok): Adjust.
16428 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16429 RS6000_CONSTRAINT_ws.
16430 * config/rs6000/rs6000.md: Adjust.
16431 * config/rs6000/vsx.md: Adjust.
16432 * doc/md.texi (Machine Constraints): Adjust.
16433
16434 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16435
16436 * config/rs6000/constraints.md (define_register_constraint "wv"):
16437 Delete.
16438 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16439 (rs6000_init_hard_regno_mode_ok): Adjust.
16440 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16441 RS6000_CONSTRAINT_wv.
16442 * config/rs6000/rs6000.md: Adjust.
16443 * config/rs6000/vsx.md: Adjust.
16444 * doc/md.texi (Machine Constraints): Adjust.
16445
16446 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16447
16448 * config/rs6000/constraints.md (define_register_constraint "wi"):
16449 Delete.
16450 (define_register_constraint "wt"): Delete.
16451 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16452 (rs6000_init_hard_regno_mode_ok): Adjust.
16453 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16454 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16455 * config/rs6000/rs6000.md: Adjust.
16456 * config/rs6000/vsx.md: Adjust.
16457 * doc/md.texi (Machine Constraints): Adjust.
16458
16459 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16460
16461 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16462 const.
16463 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16464 default_elf_asm_output_external.
16465
16466 2019-06-04 Martin Liska <mliska@suse.cz>
16467
16468 * ipa-icf.c (INCLUDE_LIST): Remove.
16469 (sem_item_optimizer::execute): Remove call to init_wpa.
16470 * ipa-icf.h (init_wpa): Remove.
16471
16472 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16473
16474 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16475 conditional on combined for simd.
16476 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16477 member.
16478 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16479 constructs, don't remove lastprivate_conditional_map, but instead set
16480 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16481 to parent construct temporaries.
16482 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16483 like !ctx->lastprivate_conditional_map.
16484 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16485 use up->outer context instead of up.
16486 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16487 gimple_omp_for_combined_p.
16488 (expand_omp_for_static_nochunk): Likewise.
16489 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16490 probably moved over into expand_omp_for_generic rather than being copied
16491 there.
16492
16493 2019-06-04 Martin Liska <mliska@suse.cz>
16494
16495 * value-prof.c (dump_histogram_value): Fix typo.
16496 (gimple_mod_subtract_transform): Likewise.
16497
16498 2019-06-04 Richard Biener <rguenther@suse.de>
16499
16500 PR middle-end/90726
16501 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16502 (tree_contains_chrecs): Likewise.
16503 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16504 exponential behaivor from ...
16505 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16506 ... here.
16507 (expression_expensive_p): Avoid exponential behavior and compute
16508 expanded size, rejecting any expansion.
16509 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16510 (idx_contains_abnormal_ssa_name_p): Likewise.
16511 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16512 (contains_abnormal_ssa_name_p): Simplify and use
16513 walk_tree_without_duplicates.
16514
16515 2019-06-04 Richard Biener <rguenther@suse.de>
16516
16517 PR tree-optimization/90738
16518 Revert
16519 2019-06-03 Richard Biener <rguenther@suse.de>
16520
16521 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16522 full reference tree and record in ref->ref.
16523 (vn_reference_lookup_3): Pass in original ref to
16524 ao_ref_init_from_vn_reference.
16525 (vn_reference_lookup): Likewise.
16526 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16527 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16528 Handle non-decl bases in the original reference.
16529
16530 2019-06-04 Martin Liska <mliska@suse.cz>
16531
16532 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16533 number of references.
16534 (sem_item_optimizer::do_congruence_step):
16535 (sem_item_optimizer::worklist_push): Dump how references
16536 a class has.
16537 (sem_item_optimizer::worklist_pop): Use heap.
16538 (sem_item_optimizer::process_cong_reduction): Likewise.
16539 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16540
16541 2019-06-04 Martin Liska <mliska@suse.cz>
16542
16543 * ipa-icf.h (struct sem_usage_pair_hash): New.
16544 (sem_usage_pair_hash::hash): Likewise.
16545 (sem_usage_pair_hash::equal): Likewise.
16546 (struct sem_usage_hash): Likewise.
16547 * ipa-icf.c (sem_item::sem_item): Initialize
16548 referenced_by_count.
16549 (sem_item::add_reference): Register a reference
16550 in ref_map and not in target->usages.
16551 (sem_item::setup): Remove initialization of
16552 dead vectors.
16553 (sem_item::~sem_item): Remove usage of dead vectors.
16554 (sem_item::dump): Remove dump of references.
16555 (sem_item_optimizer::sem_item_optimizer): Initialize
16556 m_references.
16557 (sem_item_optimizer::read_section): Remove useless
16558 dump.
16559 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16560 (sem_item_optimizer::build_graph): Pass m_references
16561 to ::add_reference.
16562 (sem_item_optimizer::verify_classes): Remove usage of dead
16563 vectors.
16564 (sem_item_optimizer::traverse_congruence_split): Return true
16565 when a class is split.
16566 (sem_item_optimizer::do_congruence_step_for_index): Use
16567 hash_map for look up of (sem_item *, index). That brings
16568 significant speed up.
16569 (sem_item_optimizer::do_congruence_step): Return true
16570 when a split is done.
16571 (congruence_class::is_class_used): Use referenced_by_count.
16572
16573 2019-06-04 Alan Modra <amodra@gmail.com>
16574
16575 PR target/90689
16576 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16577 error.
16578
16579 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16580
16581 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16582 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16583 (rs6000_secondary_reload_simple_move): Adjust.
16584 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16585 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16586 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16587 comment.
16588 (power6x): Adjust.
16589 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16590 (floatunssi<mode>2_lfiwzx): Adjust.
16591 (fix_trunc<mode>si2_stfiwx): Adjust.
16592 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16593 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16594 (mfpgpr): Mark as deprecated.
16595 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16596 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16597 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16598
16599 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16600
16601 * config/rs6000/constraints.md (define_register_constraint "wg"):
16602 Delete.
16603 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16604 RS6000_CONSTRAINT_wg.
16605 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16606 (rs6000_init_hard_regno_mode_ok): Adjust.
16607 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16608 Delete "wg" alternatives.
16609 * doc/md.texi (Machine Constraints): Adjust.
16610
16611 2019-06-03 Alan Modra <amodra@gmail.com>
16612
16613 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16614 (get_uncond_jump_length): Assert length less than INT_MAX and
16615 non-negative.
16616
16617 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16618
16619 PR middle-end/64242
16620 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16621 block.
16622 (expand_builtin_nonlocal_goto): Likewise.
16623
16624 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16625
16626 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16627 (aarch64_asm_output_external): Declare.
16628 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16629 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16630 (aarch64_asm_output_alias): New.
16631 (aarch64_asm_output_external): New.
16632 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16633 (ASM_OUTPUT_EXTERNAL): Define.
16634
16635 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16636 * tree-vrp.h (value_range_base::nonzero_p): New.
16637 (value_range_base::set_nonnull): Rename to...
16638 (value_range_base::set_nonzero): ...this.
16639 (value_range_base::set_null): Rename to...
16640 (value_range_base::set_zero): ...this.
16641 (value_range::set_nonnull): Remove.
16642 (value_range::set_null): Remove.
16643 * tree-vrp.c (range_is_null): Remove.
16644 (range_is_nonnull): Remove.
16645 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16646 instead of range_is_*null.
16647 (extract_range_from_unary_expr): Same.
16648 (value_range_base::set_nonnull): Rename to...
16649 (value_range_base::set_nonzero): ...this.
16650 (value_range::set_nonnull): Remove.
16651 (value_range_base::set_null): Rename to...
16652 (value_range_base::set_zero): ...this.
16653 (value_range::set_null): Remove.
16654 (extract_range_from_binary_expr): Rename set_*null uses to
16655 set_*zero.
16656 (extract_range_from_unary_expr): Same.
16657 (union_helper): Same.
16658 * vr-values.c (get_value_range): Use set_*zero instead of
16659 set_*null.
16660 (vr_values::extract_range_from_binary_expr): Same.
16661 (vr_values::extract_range_basic): Same.
16662
16663 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16664
16665 PR driver/90684
16666 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16667
16668 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16669
16670 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16671 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16672 Rename to...
16673 (aarch64_<su>abd<mode>_3): ... This.
16674 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16675
16676 2019-06-03 Richard Biener <rguenther@suse.de>
16677
16678 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16679 full reference tree and record in ref->ref.
16680 (vn_reference_lookup_3): Pass in original ref to
16681 ao_ref_init_from_vn_reference.
16682 (vn_reference_lookup): Likewise.
16683 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16684 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16685 Handle non-decl bases in the original reference.
16686
16687 2019-06-03 Martin Liska <mliska@suse.cz>
16688
16689 * doc/generic.texi: Remove Java Trees.
16690
16691 2019-06-03 Martin Liska <mliska@suse.cz>
16692
16693 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16694 returns 0 when operands are equal.
16695
16696 2019-06-03 Richard Biener <rguenther@suse.de>
16697
16698 PR tree-optimization/90716
16699 * tree-loop-distribution.c (destroy_loop): Process blocks in
16700 correct order.
16701
16702 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16703
16704 PR target/88837
16705 * vector-builder.h (vector_builder::count_dups): New method.
16706 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16707 Declare prototype.
16708 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16709 (vec_init<mode><Vel>): New pattern.
16710 * config/aarch64/aarch64.c (emit_insr): New function.
16711 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16712 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16713 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16714 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16715
16716 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16717
16718 PR tree-optimization/90681
16719 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16720 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16721 special case for SLP, but fail on non-groupped loads.
16722
16723 2019-06-03 Martin Liska <mliska@suse.cz>
16724
16725 * cfg.c (debug): Use TDF_DETAILS for debug and
16726 print edge info only once.
16727
16728 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16729
16730 PR fortran/90539
16731 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16732
16733 2019-06-01 Martin Sebor <msebor@redhat.com>
16734
16735 PR middle-end/90694
16736 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16737
16738 2019-05-31 Jan Hubicka <jh@suse.cz>
16739
16740 * alias.c: Include ipa-utils.h.
16741 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16742 * ipa-devirt.c (prevailing_odr_type): New.
16743 * ipa-utils.h (previaling_odr_type): Declare.
16744
16745 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16746 Hongtao Liu <hongtao.liu@intel.com>
16747
16748 PR target/89355
16749 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16750 NOTE_INSN_DELETED_LABEL check.
16751
16752 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16753 Robert Suchanek <robert.suchanek@mips.com>
16754
16755 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16756 and 3rd operands of the fmadd/fmsub/maddv builtin.
16757
16758 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16759
16760 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16761 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16762 on OMP_SIMD if not nested inside of worksharing loop that also has
16763 lastprivate conditional clause for the same decl.
16764 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16765 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16766 on simd.
16767 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16768 on simd construct.
16769 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16770 on simd construct.
16771 (lower_lastprivate_clauses): Likewise.
16772 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16773 calling lower_rec_input_clauses.
16774 (lower_omp_for): Likewise.
16775 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16776 clause on simd construct.
16777 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16778 OMP_CLAUSE__CONDTEMP_ clause is present.
16779
16780 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16781 ivar and lvar.
16782
16783 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16784
16785 PR c/43673
16786 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16787 TEX_D32, TEX_D64 or TEX_D128.
16788
16789 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16790
16791 * match.pd (~(vec?cst1:cst2)): New transformation.
16792
16793 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16794
16795 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16796 ((size_t)(A /[ex] B) CMP C): New transformation.
16797
16798 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16799
16800 * doc/md.texi: Document define_insn_and_rewrite.
16801 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16802 * gensupport.c (queue_elem): Update comment.
16803 (replace_operands_with_dups): New function.
16804 (gen_rewrite_sequence): Likewise.
16805 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16806 * read-rtl.c (apply_subst_iterator): Likewise.
16807 (add_condition_to_rtx, named_rtx_p): Likewise.
16808 (rtx_reader::read_rtx_operand): Likewise.
16809 * config/aarch64/aarch64-sve.md
16810 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16811 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16812 define_insn_and_rewrite.
16813 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16814 Remove separate define_split.
16815
16816 2019-05-31 Jan Hubicka <jh@suse.cz>
16817
16818 * tree-ssa-alias.c (type_has_components_p): New function.
16819 (aliasing_component_refs_p): Use it.
16820
16821 2019-05-31 Martin Liska <mliska@suse.cz>
16822
16823 * gdbhooks.py: Add const_tree to TreePrinter.
16824
16825 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16826
16827 PR debug/86964
16828 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16829 * doc/invoke.texi (Debugging Options): Document new default of
16830 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16831
16832 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16833
16834 PR tree-optimization/90671
16835 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16836 template_block used to be empty on the first call, don't use
16837 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16838 seq with bb_seq and set it with set_bb_seq.
16839
16840 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16841
16842 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16843
16844 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16845 Michael Meissner <meissner@linux.ibm.com>
16846
16847 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16848 (prefixed_mem_operand): Likewise.
16849 (non_prefixed_mem_operand): Likewise.
16850 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16851 prototype.
16852 * config/rs6000/rs6000.c (print_operand_address): Handle
16853 PC-relative addresses.
16854 (mode_supports_prefixed_address_p): New function.
16855 (rs6000_prefixed_address): New function.
16856 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16857 (SYMBOL_REF_PCREL_P): Likewise.
16858
16859 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16860
16861 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16862 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16863 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16864 is nested inside of parallel region, add _condtemp_ clause to both.
16865 * tree-nested.c (convert_nonlocal_omp_clauses,
16866 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16867 assertion failure.
16868 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16869 member.
16870 * omp-general.c (omp_extract_for_data): Compute it.
16871 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16872 (lower_rec_input_clauses): Likewise.
16873 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16874 clause is already present, just add one further one after it.
16875 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16876 (lower_send_shared_vars): Clear _condtemp_ vars.
16877 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16878 or section or taskgroup.
16879 * omp-expand.c (determine_parallel_type): Disallow combining only if
16880 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16881 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16882 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16883 expand_omp_for_static_chunk, expand_omp_for): Use
16884 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16885 determine if a special set of API routines are needed and if condtemp
16886 needs to be initialized, while always initialize cond_var if
16887 fd->lastprivate_conditional is non-zero.
16888
16889 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16890 Michael Meissner <meissner@linux.ibm.com>
16891
16892 * config/rs6000/constraints.md (eI): New constraint.
16893 * config/rs6000/predicates.md (cint34_operand): New predicate.
16894 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16895 (SIGNED_34BIT_OFFSET_P): Likewise.
16896 * doc/md.texi (eI): Document constraint.
16897
16898 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16899
16900 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16901
16902 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16903 Michael Meissner <meissner@linux.ibm.com>
16904
16905 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16906 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16907 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16908 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16909 (OTHER_FUTURE_MASKS): Likewise.
16910 (POWERPC_MASKS): Likewise.
16911 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16912 specified without -mprefixed-addr or -mcpu=future. Error if
16913 -mprefixed-addr is specified without -mcpu=future.
16914 (rs6000_opt_masks): Add entry for prefixed-addr.
16915 * rs6000.opt (mprefixed-addr): New option.
16916
16917 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16918
16919 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16920 cfun->is_thunk check.
16921
16922 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16923
16924 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16925 to length.
16926
16927 2019-05-30 Martin Liska <mliska@suse.cz>
16928
16929 * gdbinit.in: Fix 'ptc' command. Add trt
16930 that prints TREE_TYPE($).
16931
16932 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16933 Alan Modra <amodra@gmail.com>
16934
16935 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16936 calls here...
16937 (rs6000_indirect_call_template_1): ...and here.
16938 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16939 plt16_ha, plt16_lo, mtctr indirect calls. Use
16940 rs6000_pltseq_enum.
16941 (rs6000_decl_ok_for_sibcall): New function.
16942 (rs6000_function_ok_for_sibcall): Refactor.
16943 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16944 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16945 when pcrel. Reorganize.
16946 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16947 * rs6000.h (rs6000_pltseq_enum): New enum.
16948 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16949 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16950 (*pltseq_plt16_ha): Likewise.
16951 (*pltseq_plt16_lo): Likewise.
16952 (*pltseq_mtctr): Likewise.
16953 (*pltseq_plt_pcrel): New insn.
16954 (*call_local_aix): Handle @notoc calls.
16955 (*call_value_local_aix): Likewise.
16956 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16957 (*call_value_nonlocal_aix): Likewise.
16958 (*call_indirect_pcrel): New insn.
16959 (*call_value_indirect_pcrel): Likewise.
16960
16961 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16962
16963 * config/i386/sse.md (*save_multiple<mode>): Rename from
16964 save_multiple<mode>.
16965 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16966 (*restore_multiple_and_return<mode>): Rename from
16967 restore_multiple_and_return<mode>.
16968 (*restore_multiple_leave_return<mode>): Rename from
16969 restore_multiple_leave_return<mode>.
16970
16971 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16972
16973 * config.gcc (rx-*-linux*): New target.
16974 * config/rx/elf.opt: New file.
16975 * config/rx/linux.h: Likewise.
16976 * config/rx/t-linux: Likewise.
16977 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16978 make it zero.
16979 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16980 (ASM_APP_OFF): Likewise.
16981 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16982 moved elsewhere.
16983
16984 2019-05-29 Jan Hubicka <jh@suse.cz>
16985
16986 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16987 variants are pointer equivalent.
16988
16989 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16990
16991 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16992 * config/aarch64/aarch64-sve2.md: New file.
16993 (<u>avg<mode>3_floor): New pattern.
16994 (<u>avg<mode>3_ceil): Likewise.
16995 (*<sur>h<addsub><mode>): Likewise.
16996 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16997 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16998
16999 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17000
17001 PR bootstrap/90543
17002 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17003 for var_opt_string printing. In cl_optimization_print_diff, print
17004 (null) instead of invoking undefined behavior if one of the
17005 var_opt_string pointers is NULL and use && instead of first || in the
17006 guarding condition. For var_target_other options, handle const char *
17007 target variables similarly to const char * optimize node variables.
17008
17009 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17010
17011 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17012 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17013 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17014 Add autib1716 and pacib1716 initialisation.
17015 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17016 for autib1716 and pacib1716.
17017 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17018 aarch64_post_cfi_startproc): Define.
17019 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17020 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17021 aarch64_handle_pac_ret_protection): Set default sign key to A.
17022 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17023 aarch64_expand_prologue): Add check for b-key.
17024 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17025 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17026 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17027 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17028 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17029 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17030 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17031 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17032 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17033 pauth_hint_num_a with pauth_hint_num.
17034 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17035 pauth_hint_num_a with pauth_hint_num.
17036 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17037 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17038 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17039 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17040 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17041 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17042 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17043 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17044 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17045 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17046 UNSPEC_AUTIA1716 respectively.
17047 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17048 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17049 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17050 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17051 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17052 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17053
17054 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17055
17056 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17057 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17058 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17059 explicit clause on combined parallel into implicit shared clause.
17060 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17061 and firstprivate if the decl has one too from combined parallel to
17062 the worksharing construct.
17063
17064 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17065 Michael Meissner <meissner@linux.ibm.com>
17066
17067 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17068
17069 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17070
17071 * rtl.h (LABEL_REF_P): New #define.
17072
17073 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17074
17075 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17076
17077 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17078
17079 * internal-fn.c: Marked mask_load_direct as vectorizable.
17080 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17081 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17082 combined even if masks different with allow_slp_p param.
17083 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17084 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17085 dissolve SLP-only vectorizable groups when SLP has been discarded.
17086 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17087 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17088 masks.
17089 (vect_build_slp_tree_1): Fixed comment typo.
17090 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17091 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17092 loads for SLP only.
17093 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17094 vectorizable.
17095 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17096
17097 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17098
17099 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17100 Remove obsolete use_thunk reference.
17101 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17102 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17103 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17104 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17105 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17106 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17107 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17108 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17109 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17110
17111 2019-05-28 Nathan Sidwell <nathan@acm.org>
17112
17113 * tree.h (IDENTIFIER_ANON_P): New.
17114 (anon_aggrname_format, anon_aggname_p): Don't declare.
17115 (make_anon_name): Declare.
17116 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17117 (hash_tree): Likewise.
17118 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17119 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17120 (anon_cnt, make_anon_name): New.
17121
17122 2019-05-28 Martin Liska <mliska@suse.cz>
17123
17124 PR other/90315
17125 * opts-global.c (decode_options): Print help for all
17126 help_option_arguments.
17127 * opts.c (print_help): Add new argument.
17128 (common_handle_option): Remember all values into
17129 help_option_arguments.
17130 * opts.h (print_help): Add new argument.
17131
17132 2019-05-28 Martin Liska <mliska@suse.cz>
17133
17134 PR ipa/90555
17135 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17136 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17137 (func_checker::compare_bb): Call compare_loops.
17138
17139 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17140
17141 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17142 on sections construct.
17143 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17144 construct.
17145 (lower_omp_sections): Handle lastprivate conditional.
17146 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17147 lastprivate_conditional_map.
17148 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17149
17150 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17151 critical, taskgroup and section regions when looking for a region
17152 with non-NULL lastprivate_conditional_map.
17153
17154 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17155
17156 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17157 (*ix86_gen_sub3): Ditto.
17158 (*ix86_gen_sub3_carry): Ditto.
17159 (*ix86_gen_one_cmpl2): Ditto.
17160 (*ix86_gen_andsp): Ditto.
17161 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17162 (gen_and2_insn): New static function.
17163 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17164 Use gen_add3_insn instead of ix86_gen_add3.
17165 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17166 instead of ix86_gen_add3.
17167 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17168 Use gen_sub3_insn instead of ix86_gen_sub3.
17169 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17170 instead of ix86_gen_add3.
17171 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17172 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17173 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17174 * config/i386/i386-options.c (ix86_option_override_internal):
17175 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17176 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17177
17178 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17179
17180 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17181 and DW_OP_GNU_const_index opcodes.
17182
17183 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17184
17185 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17186
17187 2019-05-27 Richard Biener <rguenther@suse.de>
17188
17189 PR tree-optimization/90637
17190 * tree-ssa-sink.c (statement_sink_location): Honor the
17191 computed sink location for single-uses.
17192
17193 2019-05-27 Richard Biener <rguenther@suse.de>
17194
17195 PR middle-end/90610
17196 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17197 a bit-insert.
17198
17199 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17200
17201 * config/i386/i386.md (@sub<mode>3_carry): Rename
17202 from sub<mode>3_carry.
17203 (@leave_<mode>): New expander.
17204 (*leave): Rename from leave.
17205 (*leave_rex64): Rename from leave_rex64.
17206 (@monitorx_<mode>): Rename from monitorx_<mode>.
17207 (@clzero_<mode>): Rename from clzero_<mode>.
17208 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17209 from sse3_monitor_<mode>.
17210 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17211 (*ix86_gen_leave): Ditto.
17212 (*ix86_gen_monitor): Ditto.
17213 (*ix86_gen_monitorx): Ditto.
17214 (*ix86_gen_clzero): Ditto.
17215 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17216 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17217 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17218 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17219 Use gen_sse3_monitor instead of ix86_gen_monitor.
17220 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17221 instead of ix86_gen_monitorx.
17222 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17223 instead of ix86_gen_clzero.
17224 * config/i386/i386-options.c (ix86_option_override_internal):
17225 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17226 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17227
17228 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17229
17230 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17231 Rename from tls_global_dynamic_64_<mode>.
17232 (@tls_local_dynamic_base_64_<mode>): Rename from
17233 tls_local_dynamic_base_64_<mode>.
17234 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17235 Remove indirect function.
17236 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17237 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17238 instead of ix86_gen_tls_global_dynamic_64.
17239 Use gen_tls_local_dynamic_base_64 instead of
17240 ix86_gen_tls_local_dynamic_base_64.
17241 * config/i386/i386-options.c (ix86_option_override_internal):
17242 Do not initialize ix86_gen_tls_global_dynamic_64 and
17243 ix86_gen_tls_local_dynamic_base_64.
17244
17245 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17246
17247 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17248 Rename from pro_epilogue_adjust_stack_<mode>_add.
17249 (@pro_epilogue_adjust_stack_sub_<mode>)
17250 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17251 (@allocate_stack_worker_probe_<mode>):
17252 Rename from allocate_stack_worker_probe_<mode>.
17253 (allocate_stack): Use gen_allocate_stack_worker_probe.
17254 (probe_stack): Use gen_probe_stack_1.
17255 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17256 (@adjust_stack_and_probe_<mode>): Rename from
17257 adjust_stack_and_probe<mode>.
17258 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17259 (stack_protect_set): Use gen_stack_protect_set_1.
17260 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17261 (stack_protect_test): Use gen_stack_protect_test_1.
17262 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17263 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17264 Remove indirect function.
17265 (*ix86_gen_adjust_stack_and_probe): Ditto.
17266 (*ix86_gen_probe_stack_range): Ditto.
17267 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17268 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17269 (ix86_adjust_stack_and_probe_stack_clash): Use
17270 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17271 (ix86_adjust_stack_and_probe): Ditto.
17272 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17273 of ix86_gen_probe_stack_range.
17274 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17275 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17276 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17277 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17278 CODE_FOR_stack_protect_test_{si,di}.
17279 * config/i386/i386-options.c (ix86_option_override_internal):
17280 Do not initialize ix86_gen_allocate_stack_worker,
17281 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17282
17283 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17284
17285 * doc/invoke.texi (Link Options): Many editorial changes around
17286 -flinker-output.
17287
17288 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17289
17290 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17291 pre-Solaris 11 referene and most Studio compiler details.
17292
17293 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17294
17295 PR target/90530
17296 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17297 DImode to SImode in floating-point registers on 64-bit target.
17298 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17299 register_operand in xmpyu patterns.
17300
17301 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17302
17303 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17304 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17305 OMP_CLAUSE__REDUCTEMP_.
17306 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17307 OMP_CLAUSE__CONDTEMP_.
17308 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17309 * tree-pretty-print.c (dump_omp_clause): Likewise.
17310 * tree-nested.c (convert_nonlocal_omp_clauses,
17311 convert_local_omp_clauses): Likewise.
17312 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17313 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17314 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17315 on OMP_FOR.
17316 (gimplify_omp_for): Warn and disable conditional modifier from
17317 lastprivate on loop iterators.
17318 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17319 member.
17320 * omp-general.c (omp_extract_for_data): Initialize it.
17321 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17322 member.
17323 (delete_omp_context): Delete it.
17324 (lower_lastprivate_conditional_clauses): New function.
17325 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17326 handle lastprivate conditional clauses.
17327 (lower_reduction_clauses): Add CLIST argument, emit it into
17328 the critical section if any.
17329 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17330 lower_reduction_clauses callers.
17331 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17332 to lower_lastprivate_clauses.
17333 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17334 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17335 clist into a critical section if not emitted there already by
17336 lower_reduction_clauses.
17337 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17338 callers.
17339 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17340 conditional variables.
17341 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17342 clause is present.
17343 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17344 expand_omp_for_static_chunk): Handle lastprivate conditional.
17345 (expand_omp_for): Handle fd.lastprivate_conditional like
17346 fd.have_reductemp.
17347
17348 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17349
17350 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17351 kernel does not exit cleanly.
17352 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17353
17354 2019-05-24 Jason Merrill <jason@redhat.com>
17355
17356 Revert:
17357 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17358
17359 2019-05-24 Richard Biener <rguenther@suse.de>
17360
17361 PR testsuite/90607
17362 * tree-loop-distribution.c (struct partition): Add location
17363 member.
17364 (partition_alloc): Initialize all fields.
17365 (generate_memset_builtin): Use the location recorded in the
17366 partition for the generated call.
17367 (generate_memcpy_builtin): Likewise.
17368 (classify_partition): Record the location of a single store
17369 as location for the partition.
17370
17371 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17372
17373 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17374 for lo-part.
17375
17376 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17377
17378 PR target/90588
17379 * common/config/aarch64/aarch64-common.c
17380 (aarch64_rewrite_selected_cpu): Change local temporary variable
17381 type from unsigned long to uint64_t.
17382 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17383 aarch64_get_extension_string_for_isa_flags): Change declaration to
17384 match new definition by replacing unsigned long with uint64_t.
17385
17386 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17387
17388 PR target/90568
17389 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17390 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17391 Handle stack_protect_test_<mode> codegen similarly to corresponding
17392 sub instruction.
17393
17394 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17395
17396 * config/i386/darwin.h: Reject -mfentry*.
17397 * doc/sourcebuild.texi: Document mfentry target support.
17398
17399 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17400
17401 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17402 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17403 false for PC-relative functions.
17404 (rs6000_output_function_prologue): Change called function name to
17405 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17406 name,1" for PC-relative functions.
17407 (rs6000_elf_declare_function_name): Change called function name to
17408 rs6000_global_entry_point_prologue_needed_p.
17409
17410 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17411
17412 PR target/90552
17413 * config/i386/i386.c (gen_rtx_cost):
17414 Use ix86_tune_cost instead of ix86_cost.
17415
17416 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17417 Michael Meissner <meissner@linux.ibm.com>
17418 Segher Boessenkool <segher@kernel.crashing.org>
17419
17420 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17421 OPTION_MASK_PCREL.
17422 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17423 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17424 (rs6000_fndecl_pcrel_p): Likewise.
17425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17426 error if -mpcrel is requested without -mcpu=future.
17427 (rs6000_opt_masks): Add entry for pcrel.
17428 (rs6000_fndecl_pcrel_p): New function.
17429 (rs6000_pcrel_p): Likewise.
17430 * config/rs6000/rs6000.opt (mpcrel): New option.
17431 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17432
17433 2019-05-23 Jan Hubicka <jh@suse.cz>
17434 Martin Liska <mliska@suse.cz>
17435
17436 PR tree-optimization/90576
17437 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17438 poly_int_tree_p.
17439 (aliasing_component_refs_p): Fix three way size compare conditional;
17440 give up earlier in case we can not decide on equivalence.
17441
17442 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17443 Michael Meissner <meissner@linux.ibm.com>
17444 Segher Boessenkool <segher@kernel.crashing.org>
17445
17446 * config.gcc: Add future cpu.
17447 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17448 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17449 #define.
17450 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17451 (RS6000_CPU): New instantiation for future cpu.
17452 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17453 PROCESSOR_FUTURE.
17454 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17455 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17456 * config/rs6000/rs6000-tables.opt: Regenerate.
17457 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17458 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17459 (rs6000_machine_from_flags): Handle future cpu.
17460 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17461 PROCESSOR_POWER9 for now.
17462 (rs6000_adjust_cost): Likewise.
17463 (rs6000_issue_rate): Likewise.
17464 (rs6000_register_move_cost): Likewise.
17465 (rs6000_opt_masks): Add entry for future.
17466 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17467 (MASK_FUTURE): New #define.
17468 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17469 * config/rs6000/rs6000.opt (mfuture): New target option.
17470 * doc/invoke.texi (mcpu): Add future cpu.
17471
17472 2019-05-23 Martin Liska <mliska@suse.cz>
17473
17474 PR c++/90587
17475 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17476 operation points to a temporary (pointed via tree_to_wide_ref)
17477 that is out of scope after the &.
17478
17479 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17480
17481 PR c++/90592
17482 * doc/extend.texi (Function Names): Add missing word.
17483
17484 2019-05-23 Richard Biener <rguenther@suse.de>
17485
17486 PR tree-optimization/88440
17487 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17488 at -O[2s]+.
17489 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17490 generated call.
17491 (generate_memcpy_builtin): Likewise.
17492 (distribute_loop): Pass in whether to only distribute patterns.
17493 (prepare_perfect_loop_nest): Also allow size optimization.
17494 (pass_loop_distribution::execute): When optimizing a loop
17495 nest for size allow pattern replacement.
17496
17497 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17498
17499 PR target/90568
17500 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17501 of xor.
17502
17503 2019-05-23 Martin Liska <mliska@suse.cz>
17504
17505 PR sanitizer/90570
17506 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17507 expression similarly to gimplify_decl_expr.
17508
17509 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17510
17511 * cse.c (cse_dump_path): s/dump_file/f.
17512
17513 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17514
17515 PR c++/90462
17516 * diagnostic-format-json.cc: Include "selftest.h".
17517 (json_from_expanded_location): Only add "file" key for non-NULL
17518 file strings.
17519 (json_from_location_range): Don't add "start" and "finish"
17520 children if they are UNKNOWN_LOCATION.
17521 (selftest::test_unknown_location): New selftest.
17522 (selftest::test_bad_endpoints): New selftest.
17523 (selftest::diagnostic_format_json_cc_tests): New function.
17524 * json.cc (json::object::get): New function.
17525 (selftest::test_object_get): New selftest.
17526 (selftest::json_cc_tests): Call it.
17527 * json.h (json::object::get): New decl.
17528 * selftest-run-tests.c (selftest::run_tests): Call
17529 selftest::diagnostic_format_json_cc_tests.
17530 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17531 decl.
17532
17533 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17534 Andrew Stubbs <amd@codesourcery.com>
17535
17536 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17537 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17538 (kernel): Rename to...
17539 (main_kernel): ... this.
17540 (load_image): Load _init_array and _fini_array kernels.
17541 (run): Add argument for kernel to run.
17542 (main): Run init_array_kernel before main_kernel, and
17543 fini_array_kernel after.
17544 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17545 amdgpu_hsa_kernel attribute on functions.
17546 (gcn_disable_constructors): Delete.
17547 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17548 * config/gcn/crt0.c (size_t): Define.
17549 (_init_array, _fini_array): New.
17550 (__preinit_array_start, __preinit_array_end,
17551 __init_array_start, __init_array_end,
17552 __fini_array_start, __fini_array_end): Declare weak references.
17553
17554 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17555
17556 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17557
17558 2019-05-22 Jason Merrill <jason@redhat.com>
17559
17560 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17561
17562 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17563
17564 PR target/88483
17565 * config/i386/i386-options.c (ix86_init_machine_status): Set
17566 stack_frame_required to true.
17567 * config/i386/i386.c (ix86_get_frame_size): New function.
17568 (ix86_frame_pointer_required): Replace get_frame_size with
17569 ix86_get_frame_size.
17570 (ix86_compute_frame_layout): Likewise.
17571 (ix86_find_max_used_stack_alignment): Changed to void. Set
17572 stack_frame_required.
17573 (ix86_finalize_stack_frame_flags): Always call
17574 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17575 ix86_get_frame_size.
17576 * config/i386/i386.h (machine_function): Add stack_frame_required.
17577
17578 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17579
17580 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17581
17582 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17583
17584 * common/config/aarch64/aarch64-common.c
17585 (struct aarch64_option_extension, struct processor_name_to_arch,
17586 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17587 aarch64_contains_opt,
17588 aarch64_get_extension_string_for_isa_flags): Change type of
17589 variables storing flags to uint64_t.
17590 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17591 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17592 * config/aarch64/aarch64.c (struct processor,
17593 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17594 aarch64_validate_march, aarch64_override_options,
17595 aarch64_option_print, aarch64_handle_attr_isa_flags,
17596 aarch64_declare_function_name, aarch64_start_file): Make flag
17597 variables uint64_t.
17598 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17599 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17600 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17601 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17602 * config/aarch64/driver-aarch64.c
17603 (struct aarch64_arch_extension, struct aarch64_core_data,
17604 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17605 flag variables uint64_t.
17606 * doc/invoke.texi: Add documentation for new arguments.
17607
17608 2019-05-22 Richard Biener <rguenther@suse.de>
17609
17610 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17611 rewrite ...
17612 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17613
17614 2019-05-22 Martin Liska <mliska@suse.cz>
17615
17616 PR lto/90500
17617 * doc/extend.texi: Document the change.
17618
17619 2019-05-22 Richard Biener <rguenther@suse.de>
17620
17621 PR tree-optimization/90450
17622 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17623 (mem_ref_hasher::equal): Check it.
17624 (mem_ref_alloc): Initialize it.
17625 (gather_mem_refs_stmt): Set it.
17626
17627 2019-05-22 Richard Biener <rguenther@suse.de>
17628
17629 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17630 Add ABS_EXPR.
17631 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17632 as ABSU_EXPR.
17633
17634 2019-05-22 Alan Modra <amodra@gmail.com>
17635
17636 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17637 (ASM_CPU_SPEC): Conditionally add -many.
17638 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17639 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17640 (rs6000_file_start): ..extracted from here, and modified to
17641 test all ISA bits.
17642 (rs6000_output_function_prologue): Emit .machine as necessary.
17643
17644 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17645
17646 PR middle-end/90553
17647 * ira-lives.c (process_bb_node_lives): Consider defs
17648 for a call insn to be die before the call, not after.
17649
17650 * function.c (assign_parm_setup_block): Raise alignment of
17651 stacked parameter only for STRICT_ALIGNMENT targets.
17652
17653 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17654
17655 * config/rs6000/constraints.md (define_register_constraint "wz"):
17656 Delete.
17657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17658 RS6000_CONSTRAINT_wz.
17659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17660 (rs6000_init_hard_regno_mode_ok): Adjust.
17661 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17662 * doc/md.texi (Machine Constraints): Adjust.
17663
17664 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17665
17666 * config/rs6000/constraints.md (define_register_constraint "wl"):
17667 Delete.
17668 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17669 RS6000_CONSTRAINT_wl.
17670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17671 (rs6000_init_hard_regno_mode_ok): Adjust.
17672 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17673 * doc/md.texi (Machine Constraints): Adjust.
17674
17675 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17676
17677 * config/rs6000/constraints.md (define_register_constraint "wm"):
17678 Delete.
17679 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17680 RS6000_CONSTRAINT_wm.
17681 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17682 (rs6000_init_hard_regno_mode_ok): Adjust.
17683 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17684 * doc/md.texi (Machine Constraints): Adjust.
17685
17686 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17687
17688 * config/rs6000/constraints.md (define_register_constraint "wk"):
17689 Delete.
17690 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17691 RS6000_CONSTRAINT_wk.
17692 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17693 (rs6000_init_hard_regno_mode_ok): Adjust.
17694 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17695 * doc/md.texi (Machine Constraints): Adjust.
17696
17697 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17698
17699 * config/rs6000/constraints.md (define_register_constraint "wj"):
17700 Delete.
17701 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17702 RS6000_CONSTRAINT_wj.
17703 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17704 (rs6000_init_hard_regno_mode_ok): Adjust.
17705 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17706 (VS_64dm): Delete.
17707 * config/rs6000/vsx.md: Ditto.
17708 * doc/md.texi (Machine Constraints): Adjust.
17709
17710 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17711
17712 * config/rs6000/constraints.md (define_register_constraint "wh"):
17713 Delete.
17714 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17715 RS6000_CONSTRAINT_wh.
17716 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17717 (rs6000_init_hard_regno_mode_ok): Adjust.
17718 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17719 * doc/md.texi (Machine Constraints): Adjust.
17720
17721 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17722
17723 PR target/90547
17724 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17725 Avoid calling gen_lowpart with CONST operand.
17726
17727 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17728
17729 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17730 field template_last_to_copy.
17731 (ssa_create_duplicates): Set it, and use it. Attempt to
17732 preserve more debug stmts.
17733
17734 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17735
17736 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17737 (signbit<mode>2): New expander
17738
17739 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17740
17741 PR bootstrap/87338
17742 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17743 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17744
17745 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17746
17747 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17748 %ebx and %ecx bafore calling cpuid with leaf 1 or
17749 non-constant leaf argument.
17750
17751 2019-05-21 Alan Modra <amodra@gmail.com>
17752
17753 PR target/90545
17754 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17755 power9 direct move cost.
17756
17757 2019-05-21 Richard Biener <rguenther@suse.de>
17758
17759 PR middle-end/90510
17760 * fold-const.c (fold_read_from_vector): New function.
17761 * fold-const.h (fold_read_from_vector): Declare.
17762 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17763 single-element insert permutations. Canonicalize selector
17764 further and fix issue with last commit.
17765
17766 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17767
17768 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17769 parameter with default value false to declaration.
17770 (split_edges_for_insertion): New inline function. Wrapper for
17771 split_critical_edges with for_edge_insertion_p = true.
17772 * tree-cfg.c (split_critical_edges): Don't split non-critical
17773 edges if for_edge_insertion_p is false. Fix whitespace.
17774 * tree-ssa-pre.c (pass_pre::execute): Call
17775 split_edges_for_insertion instead of split_critical_edges.
17776 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17777 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17778 (pass_data_sink_code): Update function name in the comment.
17779
17780 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17781
17782 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17783 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17784 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17785 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17786 positives.
17787
17788 2019-05-21 Martin Liska <mliska@suse.cz>
17789
17790 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17791 an extra newline.
17792 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17793 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17794 vec_lvsr.
17795 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17796 Quote a C type.
17797 (rs6000_function_arg): Likewise.
17798 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17799 (rs6000_expand_ternop_builtin): Use interval syntax.
17800 (get_element_number): Likewise.
17801 (altivec_expand_builtin): Likewise.
17802 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17803
17804 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17805
17806 PR c++/59813
17807 PR target/90418
17808 * function.h (struct function): Add calls_eh_return member.
17809 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17810 gimplifying __builtin_eh_return call.
17811 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17812 to cfun.
17813 (expand_call_inline): Or in src_cfun->calls_eh_return into
17814 dst_cfun->calls_eh_return.
17815 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17816 cfun->calls_eh_return.
17817 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17818 * lto-streamer-out.c (output_struct_function_base): Write
17819 calls_eh_return.
17820
17821 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17822
17823 PR rtl-optimization/43147
17824 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17825 IX86_BUILTIN_SHUFPD.
17826
17827 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17828
17829 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17830 (refs_may_alias_p_1): ... here; update stats.
17831 (refs_may_alias_p): Do not update stats here.
17832
17833 2019-05-20 Richard Biener <rguenther@suse.de>
17834
17835 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17836 doesn't produce pointers.
17837 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17838 the first operand points to.
17839
17840 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17841
17842 * tree-ssa-alias.c (compare_sizes): New function.
17843 (sompare_type_sizes): New function
17844 (aliasing_component_refs_p): Use it.
17845 (indirect_ref_may_alias_decl_p): Likewise.
17846
17847 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17848
17849 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17850
17851 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17852
17853 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17854 (LIBLSAN_EARLY_SPEC): Likewise.
17855 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17856
17857 2019-05-20 Martin Liska <mliska@suse.cz>
17858
17859 * config/i386/i386.c (ix86_libc_has_fast_function):
17860 Add ATTRIBUTE_UNUSED for the argument.
17861
17862 2019-05-20 Richard Biener <rguenther@suse.de>
17863
17864 * gimple-match-head.c: Include vec-perm-indices.h.
17865 * generic-match-head.c: Likewise.
17866 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17867 is included.
17868 * fold-const.c (fold_vec_perm): Export.
17869 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17870 (match.pd): ...here.
17871
17872 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17873
17874 * cfgloop.h (struct loop): Add simdlen member.
17875 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17876 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17877 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17878 as new argument to autovectorize_vector_sizes target hook. If
17879 loop->simdlen, pick up vector size where the vectorization factor
17880 is equal to loop->simd, and if there is none, fall back to the first
17881 successful one.
17882 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17883 caller.
17884 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17885 * omp-general.c (omp_max_vf): Likewise.
17886 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17887 * tree-vect-slp.c (vect_slp_bb): Likewise.
17888 * target.def (autovectorize_vector_sizes): Add ALL argument and
17889 document it.
17890 * doc/tm.texi: Adjust documentation.
17891 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17892 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17893 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17894 bool argument.
17895 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17896 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17897 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17898 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17899 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17900 preferred vector size is not 512-bit or 256-bit, just put those
17901 unpreferred ones last.
17902
17903 2019-05-20 Martin Liska <mliska@suse.cz>
17904
17905 * targhooks.c (default_libc_has_fast_function): New function.
17906 * targhooks.h (default_libc_has_fast_function): Likewise.
17907
17908 2019-05-20 Martin Liska <mliska@suse.cz>
17909
17910 PR middle-end/90263
17911 * builtins.c (expand_builtin_memory_copy_args): When having a
17912 target with fast mempcpy implementation do now use memcpy.
17913 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17914 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17915 * doc/tm.texi: Likewise.
17916 * doc/tm.texi.in: Likewise.
17917 * target.def:
17918 * expr.c (emit_block_move_hints): Add 2 new arguments.
17919 * expr.h (emit_block_move_hints): Bail out when libcall
17920 to memcpy would be used.
17921
17922 2019-05-20 Martin Liska <mliska@suse.cz>
17923
17924 * profile-count.c: Add vertical spacing in order
17925 to separate functions.
17926 * profile-count.h: Likewise.
17927
17928 2019-05-20 Martin Liska <mliska@suse.cz>
17929
17930 * profile-count.h: Do not use full qualified
17931 names if possible.
17932 * profile-count.c (profile_count::to_frequency): Likewise.
17933
17934 2019-05-20 Martin Liska <mliska@suse.cz>
17935
17936 * profile-count.h (enum profile_quality): Use capital letters
17937 for enum value names. Use the adjusted names.
17938 * profile-count.c: Use the adjusted names.
17939
17940 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17941
17942 * config/rs6000/constraints.md (define_register_constraint "wH"):
17943 Delete.
17944 (define_register_constraint "wI"): Delete.
17945 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17946 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17947 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17948 (rs6000_init_hard_regno_mode_ok): Adjust.
17949 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17950 resp. "d", or with "wa" as appropriate, all with "p8v".
17951 * config/rs6000/vsx.md: Ditto.
17952 * doc/md.texi (Machine Constraints): Adjust.
17953
17954 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17955
17956 * config/rs6000/constraints.md (define_register_constraint "wy"):
17957 Delete.
17958 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17959 RS6000_CONSTRAINT_wy.
17960 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17961 (rs6000_init_hard_regno_mode_ok): Adjust.
17962 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17963 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17964 (define_mode_attr Fisa): New.
17965 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17966 * doc/md.texi (Machine Constraints): Adjust.
17967
17968 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17969
17970 * config/rs6000/constraints.md (define_register_constraint "wu"):
17971 Delete.
17972 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17973 RS6000_CONSTRAINT_wu.
17974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17975 (rs6000_init_hard_regno_mode_ok): Adjust.
17976 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17977 both with "p8v".
17978 (define_mode_attr Fa): Delete.
17979 * config/rs6000/vsx.md: Ditto.
17980 * doc/md.texi (Machine Constraints): Adjust.
17981
17982 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17983
17984 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17985 Delete.
17986 (define_register_constraint "wK"): Delete.
17987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17988 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17990 (rs6000_init_hard_regno_mode_ok): Adjust.
17991 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17992 Replace "wK" constraint by "wH" with "p9v".
17993 * config/rs6000/vsx.md: Ditto.
17994 * doc/md.texi (Machine Constraints): Adjust.
17995
17996 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17997
17998 * config/rs6000/constraints.md (define_register_constraint "wb"):
17999 Delete.
18000 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18001 RS6000_CONSTRAINT_wb.
18002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18003 (rs6000_init_hard_regno_mode_ok): Adjust.
18004 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18005 * config/rs6000/vsx.md: Ditto.
18006 * doc/md.texi (Machine Constraints): Adjust.
18007
18008 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18009
18010 * config/rs6000/constraints.md (define_register_constraint "wo"):
18011 Delete.
18012 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18013 RS6000_CONSTRAINT_wo.
18014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18015 (rs6000_init_hard_regno_mode_ok): Adjust.
18016 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18017 * config/rs6000/altivec.md: Ditto.
18018 * doc/md.texi (Machine Constraints): Adjust.
18019
18020 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18021
18022 * config/darwin-c.c (darwin_register_objc_includes): Do not
18023 prepend the sysroot when building gnu-runtime header search
18024 paths.
18025
18026 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18027
18028 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18029 instead of direct output of the asm.
18030
18031 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18032
18033 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18034 argument to be type bool (was int before).
18035 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18036 at first use. Use type bool for some variables. Fix a theoretical
18037 eh_return bug for svr4.
18038
18039 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18040
18041 * config/rs6000/rs6000.md (isa): New attribute.
18042 (enabled): New attribute.
18043
18044 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18045
18046 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18047 assemble_start_function and assemble_end_function.
18048
18049 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18050
18051 PR middle-end/89433
18052 * omp-general.c (oacc_verify_routine_clauses): Change formal
18053 parameters. Add checking if already marked with an OpenACC
18054 'routine' directive. Adjust all users.
18055
18056 PR middle-end/89433
18057 * omp-general.c (oacc_build_routine_dims): Move some of its
18058 processing into...
18059 (oacc_verify_routine_clauses): ... this new function.
18060 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18061
18062 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18063
18064 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18065 formating of picbase labels to match other ports.
18066
18067 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18068
18069 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18070 in the generated code.
18071
18072 2019-05-16 Martin Sebor <msebor@redhat.com>
18073
18074 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18075 identifiers, keywords, operators, and types in diagnostics. Correct
18076 quoting, spelling, and sentence capitalization issues.
18077 (expand_builtin_atomic_is_lock_free): Same.
18078 (fold_builtin_next_arg): Same.
18079 * cfgexpand.c (expand_one_var): Same.
18080 (tree_conflicts_with_clobbers_p): Same.
18081 (expand_asm_stmt): Same.
18082 (verify_loop_structure): Same.
18083 * cgraphunit.c (process_function_and_variable_attributes): Same.
18084 * collect-utils.c (collect_execute): Same.
18085 * collect2.c (maybe_run_lto_and_relink): Same.
18086 (is_lto_object_file): Same.
18087 (scan_prog_file): Same.
18088 * convert.c (convert_to_real_1): Same.
18089 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18090 * except.c (verify_eh_tree): Same.
18091 * gcc.c (execute): Same.
18092 (eval_spec_function): Same.
18093 (run_attempt): Same.
18094 (driver::set_up_specs): Same.
18095 (compare_debug_auxbase_opt_spec_function): Same.
18096 * gcov-tool.c (unlink_gcda_file): Same.
18097 (do_merge): Same.
18098 (do_rewrite): Same.
18099 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18100 * gimplify.c (gimplify_asm_expr): Same.
18101 (gimplify_adjust_omp_clauses): Same.
18102 * hsa-gen.c (gen_hsa_addr_insns): Same.
18103 (gen_hsa_insns_for_load): Same.
18104 (gen_hsa_cmp_insn_from_gimple): Same.
18105 (gen_hsa_insns_for_operation_assignment): Same.
18106 (gen_get_level): Same.
18107 (gen_hsa_alloca): Same.
18108 (omp_simple_builtin::generate): Same.
18109 (gen_hsa_atomic_for_builtin): Same.
18110 (gen_hsa_insns_for_call): Same.
18111 * input.c (dump_location_info): Same.
18112 * ipa-devirt.c (compare_virtual_tables): Same.
18113 * ira.c (ira_setup_eliminable_regset): Same.
18114 * lra-assigns.c (lra_assign): Same.
18115 * lra-constraints.c (lra_constraints): Same.
18116 * lto-streamer-in.c (lto_input_mode_table): Same.
18117 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18118 (merge_and_complain): Same.
18119 (compile_offload_image): Same.
18120 (compile_images_for_offload_targets): Same.
18121 (debug_objcopy): Same.
18122 (run_gcc): Same.
18123 (main): Same.
18124 * opts.c (print_specific_help): Same.
18125 (parse_no_sanitize_attribute): Same.
18126 (print_help): Same.
18127 (handle_param): Same.
18128 * plugin.c (add_new_plugin): Same.
18129 (parse_plugin_arg_opt): Same.
18130 (try_init_one_plugin): Same.
18131 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18132 operators, and types in diagnostics. Correct quoting and spelling
18133 issues.
18134 * read-rtl-function.c (parse_edge_flag_token): Same.
18135 (function_reader::parse_enum_value): Same.
18136 * reg-stack.c (check_asm_stack_operands): Same.
18137 * regcprop.c (validate_value_data): Same.
18138 * sched-rgn.c (make_pass_sched_fusion): Same.
18139 * stmt.c (check_unique_operand_names): Same.
18140 * targhooks.c (default_target_option_pragma_parse): Same.
18141 * tlink.c (recompile_files): Same.
18142 * toplev.c (process_options): Same.
18143 (do_compile): Same.
18144 * trans-mem.c (diagnose_tm_1): Same.
18145 (ipa_tm_scan_irr_block): Same.
18146 (ipa_tm_diagnose_transaction): Same.
18147 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18148 format a tree code name in a diagnostic.
18149 (verify_types_in_gimple_min_lval): Same.
18150 (verify_types_in_gimple_reference): Same.
18151 (verify_gimple_call): Same.
18152 (verify_gimple_assign_unary): Same.
18153 (verify_gimple_assign_binary): Same.
18154 (verify_gimple_assign_ternary): Same.
18155 (verify_gimple_assign_single): Same.
18156 (verify_gimple_switch): Same.
18157 (verify_gimple_label): Same.
18158 (verify_gimple_phi): Same.
18159 (verify_gimple_in_seq): Same.
18160 (verify_eh_throw_stmt_node): Same.
18161 (collect_subblocks): Same.
18162 (gimple_verify_flow_info): Same.
18163 (do_warn_unused_result): Same.
18164 * tree-inline.c (expand_call_inline): Same.
18165 * tree-into-ssa.c (update_ssa): Same.
18166 * tree.c (tree_int_cst_elt_check_failed): Same.
18167 (tree_vec_elt_check_failed): Same.
18168 (omp_clause_operand_check_failed): Same.
18169 (verify_type_variant): Same.
18170 (verify_type): Same.
18171 * value-prof.c (verify_histograms): Same.
18172 * varasm.c (assemble_start_function): Same.
18173
18174 2019-05-16 Martin Sebor <msebor@redhat.com>
18175
18176 * config/i386/i386-expand.c (get_element_number): Quote keywords
18177 and other internal names in diagnostics. Adjust other diagnostic
18178 formatting issues noted by -Wformat-diag.
18179 * config/i386/i386-features.c
18180 (ix86_mangle_function_version_assembler_name): Same.
18181 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18182 * config/i386/i386.c (ix86_function_type_abi): Same.
18183 (ix86_function_ms_hook_prologue): Same.
18184 (classify_argument): Same.
18185 (ix86_expand_prologue): Same.
18186 (ix86_md_asm_adjust): Same.
18187 (ix86_memmodel_check): Same.
18188
18189 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18190
18191 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18192 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18193 and fpxx modes.
18194
18195 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18196
18197 PR target/90497
18198 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18199 intrinsics without SSE/SSE2/SSSE3.
18200 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18201 check.
18202 (*mmx_uavgv8qi3): Likewise.
18203
18204 2019-05-17 Richard Biener <rguenther@suse.de>
18205
18206 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18207 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18208
18209 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18210
18211 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18212 vec_sldw insn pattern.
18213
18214 2019-05-17 Richard Biener <rguenther@suse.de>
18215
18216 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18217
18218 2019-05-17 Martin Liska <mliska@suse.cz>
18219
18220 PR driver/90496
18221 * toplev.c (output_stack_usage): With LTO and sanitizer it
18222 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18223 has no file location.
18224
18225 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18226
18227 PR c++/90484
18228 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18229 sz0 is equal to sz1, instead return false in that case.
18230
18231 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18232 has non-constant expression, force sctx.lane and use two
18233 argument IFN_GOMP_SIMD_LANE instead of single argument.
18234 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18235 two argument IFN_GOMP_SIMD_LANE without lhs.
18236 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18237 member.
18238 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18239 Define.
18240 (LOOP_REQUIRES_VERSIONING): Or in
18241 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18242 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18243 simd_if_cond.
18244 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18245 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18246 from simd if clause if needed.
18247
18248 2019-05-16 Richard Biener <rguenther@suse.de>
18249
18250 * tree-affine.c (expr_to_aff_combination): New function split
18251 out from...
18252 (tree_to_aff_combination): ... here.
18253 (aff_combination_expand): Avoid building a GENERIC tree.
18254
18255 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18256
18257 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18258 assemble_start_function and assemble_end_function calls.
18259 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18260 assemble_start_function and assemble_end_function.
18261 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18262 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18263 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18264 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18265 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18266 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18267 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18268 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18269 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18270 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18271 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18272 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18273 Likewise.
18274 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18275 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18276 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18277 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18278 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18279 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18280 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18281 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18282 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18283 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18284 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18285 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18286 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18287 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18288 Likewise.
18289 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18290 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18291 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18292
18293 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18294
18295 * tree-ssa-alias.c (alias_stats): Add
18296 aliasing_component_refs_p_may_alias and
18297 aliasing_component_refs_p_no_alias.
18298 (dump_alias_stats): Print aliasing_component_refs_p stats.
18299 (aliasing_component_refs_p): Update stats.
18300
18301 2019-05-16 Martin Liska <mliska@suse.cz>
18302
18303 PR lto/90500
18304 * multiple_target.c (expand_target_clones): Do not allow
18305 target_clones being used with a symbol that is an alias.
18306
18307 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18308
18309 PR tree-optimization/90394
18310 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18311 positives rather than ICE for cases where (code2 == NE_EXPR
18312 && code1 == BIT_AND_EXPR).
18313
18314 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18315
18316 PR fortran/90329
18317 * tree-core.h (struct tree_decl_common): Document
18318 decl_nonshareable_flag for PARM_DECLs.
18319 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18320 * calls.c (expand_call): Don't try tail call if caller
18321 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18322 passed on the stack and callee needs to pass any arguments on the
18323 stack.
18324 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18325 else if instead of series of mutually exclusive ifs. Handle
18326 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18327 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18328
18329 * lto-streamer.h (LTO_major_version): Bump to 9.
18330
18331 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18332
18333 PR tree-optimization/90106
18334 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18335 new parameter as new internal function call, also move it to new
18336 basic block.
18337 (use_internal_fn): Pass internal function call to
18338 shrink_wrap_one_built_in_call_with_conds.
18339
18340 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18341
18342 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18343 max_vf to 1.
18344 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18345 safelen_int and set loop->dont_vectorize.
18346
18347 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18348
18349 PR target/89021
18350 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18351 SSE/SSE2/SSSE3.
18352 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18353 Likewise.
18354 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18355 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18356 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18357 is defined.
18358
18359 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18360
18361 PR target/89021
18362 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18363 define_insn_and_split to support SSE emulation.
18364 (*vec_extractv2sf_0): Likewise.
18365 (*vec_extractv2sf_1): Likewise.
18366 (*vec_extractv2si_0): Likewise.
18367 (*vec_extractv2si_1): Likewise.
18368 (*vec_extractv2si_zext_mem): Likewise.
18369 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18370 (vec_extractv2sf_1 splitter): Likewise.
18371 (vec_extractv2sfsf): Likewise.
18372 (vec_setv2si): Likewise.
18373 (vec_extractv2si_1 splitter): Likewise.
18374 (vec_extractv2sisi): Likewise.
18375 (vec_setv4hi): Likewise.
18376 (vec_extractv4hihi): Likewise.
18377 (vec_setv8qi): Likewise.
18378 (vec_extractv8qiqi): Likewise.
18379 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18380 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18381 (vec_extractv2sisi): Likewise.
18382 (vec_extractv4hihi): Likewise.
18383 (vec_extractv8qiqi): Likewise.
18384 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18385 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18386 (vec_initv2sisi): Likewise.
18387 (vec_initv4hihi): Likewise.
18388 (vec_initv8qiqi): Likewise.
18389 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18390 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18391 (vec_setv4hi): Likewise.
18392 (vec_setv8qi): Likewise.
18393
18394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18395
18396 PR target/89021
18397 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18398 TARGET_MMX_WITH_SSE.
18399 (MMXMODE:*mov<mode>_internal): Likewise.
18400 (MMXMODE:movmisalign<mode>): Likewise.
18401
18402 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18403
18404 PR target/89021
18405 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18406 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18407 (sse2_cvtpd2pi): Ditto.
18408 (sse2_cvttpd2pi): Ditto.
18409 (*vec_concatv2sf_sse4_1): Ditto.
18410 (*vec_concatv2sf_sse): Ditto.
18411 (*vec_concatv2si_sse4_1): Ditto.
18412 (*vec_concatv2si): Ditto.
18413 (*vec_concatv4si_0): Ditto.
18414 (*vec_concatv2di_0): Ditto.
18415
18416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18417
18418 PR target/89021
18419 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18420
18421 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18422
18423 PR target/89021
18424 * config/i386/sse.md (ssse3_palignrdi): Changed to
18425 define_insn_and_split to support SSE emulation.
18426
18427 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18428
18429 PR target/89021
18430 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18431
18432 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18433
18434 PR target/89021
18435 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18436 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18437 SSE emulation.
18438
18439 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18440
18441 PR target/89021
18442 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18443 or TARGET_MMX_WITH_SSE.
18444 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18445
18446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18447
18448 PR target/89021
18449 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18450
18451 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18452
18453 PR target/89021
18454 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18455 Changed to define_insn_and_split to support SSE emulation.
18456
18457 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18458
18459 PR target/89021
18460 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18461 Changed to define_insn_and_split to support SSE emulation.
18462
18463 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18464
18465 PR target/89021
18466 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18467 (*mmx_<emms>): This.
18468 (mmx_<emms>): New expander.
18469
18470 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18471
18472 PR target/89021
18473 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18474 support.
18475 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18476
18477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18478
18479 PR target/89021
18480 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18481
18482 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18483
18484 PR target/89021
18485 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18486
18487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18488
18489 PR target/89021
18490 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18491 TARGET_MMX_WITH_SSE.
18492 (*mmx_uavgv4hi3): Add SSE emulation.
18493
18494 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18495
18496 PR target/89021
18497 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18498 and TARGET_MMX_WITH_SSE.
18499 (*mmx_uavgv8qi3): Add SSE emulation.
18500
18501 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18502
18503 PR target/89021
18504 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18505 maskmovdqu for __MMX_WITH_SSE__.
18506
18507 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18508
18509 PR target/89021
18510 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18511 TARGET_MMX and TARGET_MMX_WITH_SSE.
18512 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18513
18514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18515
18516 PR target/89021
18517 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18518 define_insn_and_split to support SSE emulation.
18519
18520 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18521
18522 PR target/89021
18523 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18524 and TARGET_MMX_WITH_SSE.
18525 (mmx_<code>v8qi3): Likewise.
18526 (smaxmin:<code>v4hi3): New.
18527 (umaxmin:<code>v8qi3): Likewise.
18528 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18529 (umaxmin:*mmx_<code>v8qi3): Likewise.
18530
18531 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18532
18533 PR target/89021
18534 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18535 TARGET_MMX_WITH_SSE.
18536 (*mmx_pinsrw): Add SSE emulation.
18537
18538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18539
18540 PR target/89021
18541 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18542
18543 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18544
18545 PR target/89021
18546 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18547 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18548 SSE emulation.
18549
18550 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18551
18552 PR target/89021
18553 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18554 (sse_cvttps2pi): Likewise.
18555
18556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18557
18558 PR target/89021
18559 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18560 TARGET_MMX_WITH_SSE.
18561 (mmx_pshufw_1): Add SSE emulation.
18562 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18563 TARGET_MMX_WITH_SSE to support SSE emulation.
18564
18565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18566
18567 PR target/89021
18568 * config/i386/constraints.md (Yw): New constraint.
18569 * config/i386/mmx.md (*vec_dupv2si): Changed to
18570 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18571 support SSE emulation.
18572
18573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18574
18575 PR target/89021
18576 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18577 TARGET_MMX_WITH_SSE.
18578 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18579 support.
18580 (mmx_gt<mode>3): Likewise.
18581
18582 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18583
18584 PR target/89021
18585 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18586 TARGET_MMX_WITH_SSE. Add SSE support.
18587
18588 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18589
18590 PR target/89021
18591 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18592 TARGET_MMX_WITH_SSE.
18593 (any_logic:<code><mode>3): New.
18594 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18595 Add SSE support.
18596
18597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18598
18599 PR target/89021
18600 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18601 TARGET_MMX_WITH_SSE. Add SSE emulation.
18602 (mmx_<shift_insn><mode>3): Likewise.
18603 (ashr<mode>3): New.
18604 (<shift_insn><mode>3): Likewise.
18605
18606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18607
18608 PR target/89021
18609 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18610 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18611
18612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18613
18614 PR target/89021
18615 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18616 TARGET_MMX_WITH_SSE.
18617 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18618 SSE support.
18619
18620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18621
18622 PR target/89021
18623 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18624 TARGET_MMX_WITH_SSE.
18625 (mulv4hi3): New.
18626 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18627 support.
18628
18629 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18630
18631 PR target/89021
18632 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18633 (plusminus:mmx_<plusminus_insn><mode>3): Check
18634 TARGET_MMX_WITH_SSE.
18635 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18636 (<plusminus_insn><mode>3): New.
18637 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18638 (*mmx_<plusminus_insn><mode>3): Likewise.
18639
18640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18641
18642 PR target/89021
18643 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18644 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18645 prototype.
18646 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18647 define_insn_and_split to support SSE emulation.
18648 (mmx_punpcklbw): Likewise.
18649 (mmx_punpckhwd): Likewise.
18650 (mmx_punpcklwd): Likewise.
18651 (mmx_punpckhdq): Likewise.
18652 (mmx_punpckldq): Likewise.
18653
18654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18655 Uros Bizjak <ubizjak@gmail.com>
18656
18657 PR target/89021
18658 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18659 New function.
18660 (ix86_split_mmx_pack): Likewise.
18661 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18662 New prototype.
18663 (ix86_split_mmx_pack): Likewise.
18664 * config/i386/i386.md (mmx_isa): New.
18665 (enabled): Also check mmx_isa.
18666 * config/i386/mmx.md (any_s_truncate): New code iterator.
18667 (s_trunsuffix): New code attr.
18668 (mmx_packsswb): Removed.
18669 (mmx_packssdw): Likewise.
18670 (mmx_packuswb): Likewise.
18671 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18672 MMX packsswb/packuswb with SSE2.
18673 (mmx_packssdw): Likewise.
18674 * config/i386/predicates.md (register_mmxmem_operand): New.
18675
18676 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18677
18678 PR target/89021
18679 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18680 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18681 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18682 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18683 (ix86_vector_mode_supported_p): Likewise.
18684 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18685
18686 2019-05-15 Martin Liska <mliska@suse.cz>
18687
18688 PR middle-end/90478
18689 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18690 Check for overflow.
18691
18692 2019-05-15 Richard Biener <rguenther@suse.de>
18693
18694 * tree-into-ssa.c (pass_build_ssa::execute): Run
18695 update_address_taken before going into SSA.
18696
18697 2019-05-15 Richard Biener <rguenther@suse.de>
18698
18699 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18700 as __BIT_FIELD_REF with type with -gimple.
18701
18702 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18703
18704 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18705 semantically equivalent branches (left over after prior refactorings).
18706
18707 2019-05-15 Richard Biener <rguenther@suse.de>
18708
18709 PR tree-optimization/88828
18710 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18711 bogus check.
18712
18713 2019-05-14 Richard Biener <rguenther@suse.de>
18714
18715 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18716 as __VIEW_CONVERT with -gimple.
18717
18718 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18719
18720 PR target/82920
18721 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18722 Darwin.
18723
18724 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18725
18726 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18727 define_split to become a define_insn_and_split.
18728
18729 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18730
18731 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18732 arguments.
18733 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18734 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18735 (sibcall_epilogue): Adjust.
18736 (epilogue): Adjust.
18737
18738 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18739
18740 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18741 to unsupported ones.
18742 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18743 * config.host: Likewise.
18744 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18745 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18746 __svr4__]: Remove "brand" fallback.
18747 [!KSTAT_DATA_STRING]: Remove.
18748 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18749 to *-*-solaris2*.
18750 (comdat_group): Likewise.
18751 (set_have_as_tls): Likewise.
18752 (gcc_cv_target_dl_iterate_phdr): Likewise.
18753 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18754 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18755 * configure: Regenerate.
18756 * doc/install.texi: Simplify Solaris target triplets.
18757 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18758 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18759 Remove Solaris 10 references.
18760 Remove obsolete Solaris bug reference.
18761 (Specific, sparc-sun-solaris2.10): Remove.
18762
18763 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18764
18765 * config/i386/i386.md (any_div): New code iterator.
18766 (paired_mod): New code attribute.
18767 (sgnprefix): Handle DIV and UDIV RTXes.
18768 (u): Ditto.
18769 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18770 and udivmod<mode>4 patterns using any_div code iterator.
18771 (divmod splitters): Macroize splitters using any_div code iterator.
18772 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18773 (*udivmodsi4_pow2_zext_2): Ditto.
18774 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18775 and *udivmod<mode>4_noext patterns using any_div code iterator.
18776 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18777 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18778 patterns using any_div code iterator.
18779 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18780 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18781 patterns using any_div code iterator.
18782 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18783 udivmodhiqi3 patterns using any_extend code iterator.
18784
18785 2019-05-14 Richard Biener <rguenther@suse.de>
18786 H.J. Lu <hongjiu.lu@intel.com>
18787
18788 PR tree-optimization/88828
18789 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18790 permuting in a single non-constant element not extracted
18791 from a vector.
18792
18793 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18794
18795 * internal-fn.def (SIGNBIT): New.
18796 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18797 defined.
18798 (signbitv4sf2): Likewise.
18799
18800 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18801
18802 PR target/90357
18803 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18804 next insn when the SRC reg is dead.
18805
18806 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18807
18808 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18809 (alloc_cand_and_find_basis): Ditto.
18810 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18811 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18812 (create_add_imm_cand, slsr_process_cast): Ditto.
18813 (slsr_process_copy, replace_mult_candidate): Ditto.
18814 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18815 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18816 (pass_strength_reduction::execute): Init the first NULL element.
18817
18818 2019-05-13 Nathan Sidwell <nathan@acm.org>
18819
18820 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18821 (run_attempt): Reformat line break.
18822
18823 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18824
18825 PR target/90418
18826 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18827 data registers in sibcall epilogues.
18828 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18829
18830 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18831
18832 PR target/89221
18833 * configure.ac (--enable-frame-pointer):
18834 Disable by default for cygwin and mingw.
18835 * configure: Regenerate.
18836
18837 2019-05-13 Nathan Sidwell <nathan@acm.org>
18838
18839 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18840 piece of code.
18841 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18842 (gen_member_die): Move abstract origin check earlier. Only VARs
18843 can be static_inline_p. Simplify splicing control flow.
18844
18845 2019-05-13 Richard Biener <rguenther@suse.de>
18846
18847 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18848 VIEW_CONVERT_EXPR.
18849 (vect_build_slp_tree_1): Likewise.
18850
18851 2019-05-13 Richard Biener <rguenther@suse.de>
18852
18853 PR tree-optimization/90402
18854 * tree-if-conv.c (tree_if_conversion): Value number only
18855 the loop body by making the latch an exit of the region
18856 as well.
18857 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18858 processing PHIs.
18859 (do_rpo_vn): Deal with multiple edges into the entry block
18860 that are not backedges inside the region by skipping PHIs
18861 of the entry block.
18862
18863 2019-05-13 Richard Biener <rguenther@suse.de>
18864
18865 PR tree-optimization/90316
18866 * tree-ssa-pre.c (insert_aux): Fold into ...
18867 (insert): ... this function. Use a RPO walk to reduce the
18868 number of required iterations.
18869
18870 2019-05-13 Martin Liska <mliska@suse.cz>
18871
18872 PR tree-optimization/90416
18873 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18874 string instead of passing the second part as va_arg argument.
18875
18876 2019-05-13 Martin Liska <mliska@suse.cz>
18877
18878 PR gcov-profile/90380
18879 * gcov.c (handle_cycle): Do not support zero cycle count,
18880 it should not be possible.
18881 (path_contains_zero_cycle_arc): New function.
18882 (circuit): Ignore zero cycle arc counts.
18883
18884 2019-05-13 Martin Liska <mliska@suse.cz>
18885
18886 PR gcov-profile/90380
18887 * gcov.c (enum loop_type): Remove the enum and
18888 the operator.
18889 (handle_cycle): Assert that we should not reach
18890 a negative count.
18891 (circuit): Use loop_found instead of a tri-state loop_type.
18892 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18893 happen.
18894
18895 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18896
18897 PR target/82920
18898 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18899 (ix86_output_indirect_branch_via_reg): Use output mechanism
18900 accounting for __USER_LABEL_PREFIX__.
18901 (ix86_output_indirect_branch_via_push): Likewise.
18902 (ix86_output_function_return): Likewise.
18903 (ix86_output_indirect_function_return): Likewise.
18904
18905 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18906
18907 * doc/md.texi: Document use of code attributes in rtx patterns.
18908 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18909 * read-rtl.c (find_code): Split out search loops into...
18910 (maybe_find_code): ...this new function.
18911 (check_code_iterator): Make the error message more informative.
18912 (check_code_attribute): New function.
18913 (rtx_reader::rtx_alloc_for_name): Likewise.
18914 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18915 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18916 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18917 <max_opp> directly as an rtx code instead of via a match_operator.
18918 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18919 (<su>abd<mode>_3): Update accordingly.
18920
18921 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18922
18923 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18924 is given, print the state of the EH "save world" computation for
18925 Darwin.
18926
18927 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18928
18929 PR c++/59813
18930 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18931 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18932
18933 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18934
18935 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18936 Use pinsrd for TARGET_SSE4_1.
18937 * config/i386/sse.md (movdi_to_sse): Ditto.
18938
18939 2019-05-10 Richard Biener <rguenther@suse.de>
18940
18941 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18942 (do_rpo_vn): Initialize next_value_id.
18943
18944 2019-05-10 Martin Liska <mliska@suse.cz>
18945
18946 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18947 Fix plural form.
18948
18949 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18950
18951 PR tree-optimization/90385
18952 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18953 arguments of the exit phis.
18954
18955 PR c++/90383
18956 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18957 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18958 id->do_not_fold.
18959 (copy_tree_body_r): Likewise.
18960 (copy_fn): Set id.do_not_fold to true.
18961
18962 2019-05-10 Martin Liska <mliska@suse.cz>
18963
18964 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18965 Reapply changes from r269790.
18966
18967 2019-05-10 Martin Liska <mliska@suse.cz>
18968
18969 PR middle-end/90340
18970 * doc/invoke.texi: New params.
18971 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18972 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18973 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18974 Use it.
18975 * tree-switch-conversion.h (struct jump_table_cluster):
18976 Likewise.
18977
18978 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18979
18980 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18981
18982 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18983
18984 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18985
18986 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18987
18988 PR rtl-optimization/88879
18989 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18990
18991 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18992
18993 PR target/90405
18994 * config/arm/arm.c (callee_saved_reg_p): Move before
18995 thumb_find_work_register.
18996 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18997 thumb_find_work_register. Only call df_get_live_out once.
18998 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18999 (thumb_find_work_register): Use
19000 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19001 algorithms to locate a spare call clobbered reg.
19002
19003 2019-05-09 Martin Liska <mliska@suse.cz>
19004
19005 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19006 and MAX_EXPR in GIMPLE FE format.
19007
19008 2019-05-09 Martin Liska <mliska@suse.cz>
19009
19010 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19011 * gimple-pretty-print.c (dump_gimple_bb_header):
19012 Dump BB count.
19013 (pp_cfg_jump): Dump edge probability.
19014 * profile-count.c (profile_quality_as_string): Simplify
19015 with a static array.
19016 (parse_profile_quality): New function.
19017 (profile_count::dump): Simplify with a static array.
19018 (profile_count::from_gcov_type): Add new argument.
19019 * profile-count.h (parse_profile_quality): Likewise.
19020 * predict.h (set_hot_bb_threshold): New.
19021 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19022 New param.
19023 * predict.c (get_hot_bb_threshold): Set from the new param.
19024 (set_hot_bb_threshold): New.
19025
19026 2019-05-09 Richard Biener <rguenther@suse.de>
19027
19028 PR tree-optimization/90395
19029 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19030 rewrite vector stores that throw internally.
19031
19032 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19033
19034 * cif-code.def (CHKP): Remove.
19035
19036 PR target/89221
19037 * configure.ac (--enable-frame-pointer): Disable by default for
19038 GNU systems.
19039 * configure: Regenerate.
19040
19041 2019-05-09 Alan Modra <amodra@gmail.com>
19042
19043 PR target/89271
19044 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19045 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19046 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19047 cost for general <-> vsx when direct moves are available.
19048 Cost union classes at minimal cost for any reg in the class.
19049 Correct calculation for moves between vsx, float, and altivec.
19050 Don't return a low cost for moves between special regs. Don't
19051 use hard coded register numbers.
19052 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19053 (rs6000_ira_change_pseudo_allocno_class): New function.
19054 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19055 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19056 alternatives.
19057 (movsi_internal1): Don't disparage vector alternatives.
19058 (mov<mode>_internal): Likewise, excepting alternative that
19059 will be split.
19060 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19061 we <- b alternative.
19062
19063 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19064
19065 PR c++/59813
19066 PR tree-optimization/89060
19067 * tree-ssa-live.h (live_vars_map): New typedef.
19068 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19069 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19070 (struct compute_live_vars_data): New type.
19071 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19072 live_vars_at_stmt, destroy_live_vars): New functions.
19073 * tree-tailcall.c: Include tree-ssa-live.h.
19074 (live_vars, live_vars_vec): New global variables.
19075 (find_tail_calls): Perform variable life analysis before punting.
19076 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19077 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19078 member.
19079 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19080 Perform variable life analysis to select variables that really need
19081 clobbers added.
19082 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19083 instead set id->eh_landing_pad_dest and assert it is the same.
19084 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19085
19086 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19087 Richard Earnshaw <rearnsha@arm.com>
19088
19089 PR target/88167
19090 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19091 function.
19092 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19093 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19094 register if both the epilogue and prologue can use call-clobbered
19095 regs.
19096 (thumb1_unexpanded_epilogue): Use
19097 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19098 picking temporaries for restoring high regs to match that of the
19099 prologue where possible.
19100 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19101 the list of work registers. Detect if the return address is still live
19102 at the end of the prologue and avoid using it for a work register if so.
19103 If the return address is not live, add LR to the list of pushable regs
19104 after the first pass.
19105
19106 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19107
19108 PR tree-optimization/90078
19109 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19110 (INFTY): Increase the value for infinite cost.
19111 (struct comp_cost): Promote type of members to int64_t.
19112 (infinite_cost): Don't set complexity in initialization.
19113 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19114 overflows to infinite_cost.
19115 (adjust_setup_cost): Promote type of parameter and cost computation
19116 to int64_t.
19117 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19118 int64_t.
19119 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19120 cost computation to int64_t.
19121 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19122 int64_t's format specifier in dump.
19123
19124 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19125
19126 PR tree-optimization/90240
19127 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19128 with respect to scaling factor pre-computed for each basic block.
19129 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19130 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19131 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19132 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19133 live range for array of loop's basic blocks. Cleanup aux field of
19134 loop's basic blocks.
19135
19136 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19137
19138 PR tree-optimization/90356
19139 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19140
19141 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19142
19143 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19144 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19145 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19146 (ix86_handle_option): Handle -mavx512bf16.
19147 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19148 to extra_headers.
19149 * config/i386/avx512bf16vlintrin.h: New.
19150 * config/i386/avx512bf16intrin.h: New.
19151 * config/i386/cpuid.h (bit_AVX512BF16): New.
19152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19153 * config/i386/i386-builtin-types.def: Add new types.
19154 * config/i386/i386-builtin.def: Add new builtins.
19155 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19156 __AVX512BF16__.
19157 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19158 (ix86_option_override_internal): Handle BF16.
19159 (ix86_valid_target_attribute_inner_p): Ditto.
19160 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19161 * config/i386/i386-builtin.c (enum processor_features): Add
19162 F_AVX512BF16.
19163 (static const _isa_names_table isa_names_table): Ditto.
19164 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19165 (PTA_AVX512BF16): Ditto.
19166 * config/i386/i386.opt: Add -mavx512bf16.
19167 * config/i386/immintrin.h: Include avx512bf16intrin.h
19168 and avx512bf16vlintrin.h.
19169 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19170 avx512f_cvtneps2bf16_<mode><mask_name>,
19171 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19172 * config/i386/subst.md (mask_half): Add new subst.
19173 * doc/invoke.texi: Document -mavx512bf16.
19174
19175 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19176
19177 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19178 Delete declaration.
19179 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19180 (rs6000_debug_legitimize_reload_address): Delete.
19181 (rs6000_legitimize_reload_address_ptr): Delete.
19182 (rs6000_option_override_internal): Adjust.
19183 (mem_operand_gpr): Adjust comment.
19184 (legitimate_lo_sum_address_p): Ditto.
19185 (rs6000_legitimize_reload_address): Delete.
19186 (rs6000_debug_legitimize_reload_address): Delete.
19187 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19188
19189 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19190
19191 PR target/89765
19192 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19193 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19194 to compute vector element selector for both constant and variable
19195 operands.
19196
19197 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19198
19199 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19200 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19201 ashrdi3_cvt using SWI48 mode iterator.
19202
19203 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19204
19205 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19206 (aarch64_<su>abd<mode>_3): Likewise.
19207 (*aarch64_<su>abd<mode>_3): New define_insn.
19208 (<sur>sad<vsi2qi>): New define_expand.
19209 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19210 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19211 (build_vect_cond_expr): Likewise.
19212
19213 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19214
19215 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19216 clobbers outside of accessible_reg_set.
19217 * config/i386/i386.c (ix86_conditional_register_usage):
19218 Disable register sets by clearing corresponding bits in
19219 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19220 call_used_regs and don't clear corresponding reg_names array members.
19221
19222 2019-05-07 Richard Biener <rguenther@suse.de>
19223
19224 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19225 not specified still compute a comp_vectype for invariant
19226 compares.
19227
19228 2019-05-07 Richard Biener <rguenther@suse.de>
19229
19230 PR tree-optimization/90316
19231 * tree-ssa-pre.c (translate_vuse_through_block): When
19232 same_valid is NULL do not bother to search for a virtual
19233 PHI continuation.
19234 (phi_translate_1): When operands changed we cannot keep
19235 the same value-number so do not bother to ask whether
19236 that's possible from translate_vuse_through_block.
19237
19238 2019-05-07 Martin Liska <mliska@suse.cz>
19239
19240 * bitmap.c (bitmap_register): Come up with
19241 alloc_descriptor_max_uid and assign it for
19242 a new bitmap.
19243 (register_overhead): Use get_descriptor as
19244 a descriptor.
19245 (release_overhead): New.
19246 (bitmap_elem_to_freelist): Call it.
19247 (bitmap_elt_clear_from): Likewise.
19248 (bitmap_obstack_free): Likewise.
19249 (bitmap_move): Sensitively release memory.
19250 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19251 (bitmap_initialize): Initialize alloc_descriptor to zero.
19252 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19253
19254 2019-05-07 Richard Biener <rguenther@suse.de>
19255
19256 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19257 we build a SLP node. Remove max_size and limiting.
19258 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19259
19260 2019-05-07 Richard Biener <rguenther@suse.de>
19261
19262 PR tree-optimization/90316
19263 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19264 limit by reference.
19265 (walk_non_aliased_vuses): Take walking limit argument.
19266 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19267 walking if it is reached instead of just counting.
19268 (get_continuation_for_phi): Likewise.
19269 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19270 limiting to the callback.
19271 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19272 (vn_reference_lookup_3): Likewise.
19273 (vn_reference_lookup_pieces): Likewise.
19274 (vn_reference_lookup): Likewise.
19275 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19276 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19277 (avail_exprs_stack::lookup_avail_expr): Likewise.
19278
19279 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19280
19281 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19282 for comparaible types in the second direction even if first one
19283 hits incomparable type.
19284
19285 2019-05-07 Richard Biener <rguenther@suse.de>
19286
19287 PR lto/90369
19288 * lto-wrapper.c (debug_objcopy): Use the original filename
19289 including archive offset for the filename used for -save-temps.
19290
19291 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19292
19293 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19294 detection.
19295
19296 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19297 Hongtao Liu <hongtao.liu@intel.com>
19298
19299 PR target/89750
19300 PR target/86444
19301 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19302 Modified, original implementation isn't correct.
19303
19304 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19305
19306 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19307 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19308 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19309 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19310 (FRAME_POINTER_REGNUM): Change numbering.
19311 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19312 (alt_reg_names): Adjust.
19313 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19314 fixed.
19315 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19316 (DWARF_FRAME_REGISTERS): Delete.
19317 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19318 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19319 Adjust.
19320 (REG_ALLOC_ORDER): Adjust.
19321 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19322 (REG_CLASS_CONTENTS): Adjust.
19323 (RETURN_ADDR_RTX): Change comment.
19324 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19325 instead of 67.
19326 (REGISTER_NAMES): Adjust.
19327 (ADDITIONAL_REGISTER_NAMES): Adjust.
19328 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19329
19330 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19331
19332 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19333 Delete.
19334 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19335 (DWARF_FRAME_REGISTERS): Adjust.
19336 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19337 Adjust.
19338 (REG_ALLOC_ORDER): Adjust.
19339 (enum reg_class): Delete SPR_REGS.
19340 (REG_CLASS_NAMES): Delete SPR_REGS.
19341 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19342 (REGISTER_NAMES): Adjust.
19343 (ADDITIONAL_REGISTER_NAMES): Adjust.
19344 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19345 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19346 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19347 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19348 (htm_spr_regno): Delete.
19349 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19350 argument.
19351 (rs6000_dbx_register_number): Adjust.
19352
19353 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19354
19355 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19356
19357 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19358
19359 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19360 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19361
19362 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19363
19364 PR tree-optimization/88709
19365 PR tree-optimization/90271
19366 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19367 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19368 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19369 variable.
19370 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19371 of the store merging group is larger than
19372 PARAM_STORE_MERGING_MAX_SIZE parameter.
19373 (split_group): Add bzero_first argument. If set, always emit first
19374 the first store which must be = {} of the whole area and then for the
19375 rest of the stores consider all zero bytes as paddings.
19376 (imm_store_chain_info::output_merged_store): Check if first store
19377 is = {} of the whole area and if yes, determine which setting of
19378 bzero_first for split_group gives smaller number of stores. Adjust
19379 split_group callers.
19380 (lhs_valid_for_store_merging_p): Allow decls.
19381 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19382 no elts.
19383 (pass_store_merging::process_store): Likewise.
19384
19385 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19386
19387 PR target/89424
19388 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19389 handling of V1TImode.
19390
19391 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19392
19393 PR target/89221
19394 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19395 and enable_frame_pointer ...
19396 * configure.ac: ... here. Update help strings for
19397 --enable-frame-pointer.
19398 * configure: Regenerate.
19399 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19400 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19401 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19402 (USE_X86_64_FRAME_POINTER): Ditto.
19403
19404 2019-05-06 Martin Liska <mliska@suse.cz>
19405
19406 * config.gcc: Append to target_gtfiles and fix indentation.
19407
19408 2019-05-06 Richard Biener <rguenther@suse.de>
19409
19410 PR tree-optimization/90358
19411 * tree-vect-stmts.c (get_group_load_store_type): Properly
19412 detect unused upper half of load.
19413 (vectorizable_load): Likewise.
19414
19415 2019-05-06 Richard Biener <rguenther@suse.de>
19416
19417 PR tree-optimization/88828
19418 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19419 (simplify_vector_constructor): ...here. Handle constants in
19420 the constructor.
19421
19422 2019-05-06 Richard Biener <rguenther@suse.de>
19423
19424 PR tree-optimization/90328
19425 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19426 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19427 is valid in the loop nest before using it.
19428 (initialize_data_dependence_relation): Adjust.
19429 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19430 loop as loop-nest to dr_may_alias_p.
19431
19432 2019-05-06 Richard Biener <rguenther@suse.de>
19433
19434 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19435
19436 2019-05-06 Richard Biener <rguenther@suse.de>
19437
19438 PR tree-optimization/90316
19439 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19440 compute target on demand.
19441 (get_continuation_for_phi): Remove code walking stmts to
19442 get to a target virtual operand which could end up being
19443 quadratic.
19444
19445 2019-05-06 Martin Liska <mliska@suse.cz>
19446
19447 PR sanitizer/90312
19448 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19449 when -mabi is selected to a non-default version.
19450
19451 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19452 Martin Liska <mliska@suse.cz>
19453
19454 * Makefile.in: Add lto-dump.texi.
19455 * cgraph.h: Add new functions get_visibility_string and
19456 get_symtab_type_string.
19457 * doc/gcc.texi: Include lto-dump section.
19458 * doc/lto-dump.texi: New file.
19459 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19460 (parse_dump_option): Factor out this function.
19461 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19462 (parse_dump_option): Export the function.
19463 * symtab.c (symtab_node::get_visibility_string): New function.
19464 (symtab_node::get_symtab_type_string): Likewise.
19465
19466 2019-05-06 Martin Liska <mliska@suse.cz>
19467
19468 * config/i386/i386-builtins.c: New file.
19469 * config/i386/i386-builtins.h: New file.
19470 * config/i386/i386-expand.c: New file.
19471 * config/i386/i386-expand.h: New file.
19472 * config/i386/i386-features.c: New file.
19473 * config/i386/i386-features.h: New file.
19474 * config/i386/i386-options.c: New file.
19475 * config/i386/i386-options.h: New file.
19476 * config.gcc: Add new files into extra_objs and
19477 target_gtfiles.
19478 * config/i386/i386.c: Split content of the file
19479 into newly introduced files.
19480 * config/i386/i386.h: Declare common variables
19481 and macros.
19482 * config/i386/t-i386: Define dependencies for new files.
19483
19484 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19485
19486 PR target/89400
19487 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19488 Restrict 'all' variant to 32-bit configurations.
19489 (unaligned_loadhiu): Likewise.
19490 (unaligned_storehi): Likewise.
19491 (unaligned_storesi): Likewise.
19492 (unaligned_loadhis): Disable when compiling for thumb1.
19493
19494 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19495
19496 PR tree-optimization/90269
19497 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19498 Ignore clobbers.
19499
19500 2019-05-03 Martin Liska <mliska@suse.cz>
19501
19502 * hash-map.h: Add is_empty function.
19503 * hash-set.h: Likewise.
19504 * hash-table.h: Likewise.
19505 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19506 elements () == 0 (and similar usages).
19507 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19508 * gimplify.c (gimplify_bind_expr): Likewise.
19509 (gimplify_switch_expr): Likewise.
19510 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19511 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19512 * postreload-gcse.c (dump_hash_table): Likewise.
19513 (gcse_after_reload_main): Likewise.
19514 * predict.c (combine_predictions_for_bb): Likewise.
19515 * tree-parloops.c (reduction_phi): Likewise.
19516 (separate_decls_in_region): Likewise.
19517 (transform_to_exit_first_loop): Likewise.
19518 (gen_parallel_loop): Likewise.
19519 (gather_scalar_reductions): Likewise.
19520 (try_create_reduction_list): Likewise.
19521 * var-tracking.c (dump_vars): Likewise.
19522 (emit_notes_for_changes): Likewise.
19523 (vt_emit_notes): Likewise.
19524
19525 2019-05-03 Richard Biener <rguenther@suse.de>
19526
19527 PR tree-optimization/90316
19528 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19529 before running VN.
19530
19531 2019-05-03 Richard Biener <rguenther@suse.de>
19532
19533 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19534 peeling for gaps by loading only lower halves of vectors
19535 if possible.
19536 (vectorizable_load): Likewise.
19537
19538 2019-05-03 Richard Biener <rguenther@suse.de>
19539
19540 PR middle-end/89518
19541 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19542
19543 2019-05-03 Richard Biener <rguenther@suse.de>
19544
19545 PR middle-end/87314
19546 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19547 Handle STRING_CST vs DECL or STRING_CST.
19548
19549 2019-05-03 Richard Biener <rguenther@suse.de>
19550
19551 PR tree-optimization/88963
19552 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19553 vector loads feeding only BIT_FIELD_REFs to component
19554 loads. Rewrite stores fed by CONSTRUCTORs to component
19555 stores.
19556
19557 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19558
19559 * opts.h (finish_options): Remove lang_mask argument.
19560 (print_help, help_option_argument): Declare.
19561 * opts.c (print_help): Remove forward declaration, no longer static.
19562 (finish_options): Remove lang_mask argument, don't call print_help
19563 here.
19564 * opts-global.c (decode_options): Adjust finish_option caller, call
19565 print_help here.
19566
19567 PR tree-optimization/90303
19568 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19569 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19570
19571 2019-05-03 Richard Biener <rguenther@suse.de>
19572
19573 PR tree-optimization/89698
19574 * gimple-fold.c (canonicalize_constructor_val): Early out
19575 for constants, handle unfolded INTEGER_CSTs as they appear in
19576 C++ virtual table ctors.
19577
19578 2019-05-03 Richard Biener <rguenther@suse.de>
19579
19580 * passes.c (execute_function_todo): Remove dead code.
19581
19582 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19583
19584 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19585 the internal register number, for any "real" register.
19586
19587 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19588
19589 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19590 correct numbers for TFHAR, TFIAR, TEXASR.
19591
19592 2019-05-02 Richard Biener <rguenther@suse.de>
19593
19594 PR tree-optimization/89653
19595 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19596 update-address-taken before the pass.
19597 * passes.def (pass_tree_loop_init): Put comment before it.
19598
19599 2019-05-02 Richard Biener <rguenther@suse.de>
19600
19601 PR tree-optimization/89509
19602 * tree-ssa-structalias.c (compute_dependence_clique): Look
19603 at the first subvar when determining whether it is restrict.
19604
19605 2019-05-02 Richard Biener <rguenther@suse.de>
19606
19607 PR tree-optimization/90273
19608 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19609 useless debug stmts.
19610
19611 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19612
19613 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19614 ACLE branch.
19615 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19616 SVE ACLE branch.
19617 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19618 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19619 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19620 (vectorizable_reduction): Use the functions above to vectorize in a
19621 fully masked loop codes that don't have a conditional internal
19622 function.
19623
19624 2019-05-02 Martin Liska <mliska@suse.cz>
19625
19626 * cgraphclones.c: Call valid_attribute_p with 1 for
19627 target_clone.
19628 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19629 it's for target attribute.
19630 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19631 Add new boolean argument.
19632 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19633 Likewise.
19634 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19635 to ix86_valid_target_attribute_inner_p.
19636 (ix86_valid_target_attribute_p): Pass flags argument to
19637 ix86_valid_target_attribute_inner_p.
19638 (get_builtin_code_for_version): Use 0 as it's target attribute.
19639
19640 2019-05-02 Martin Liska <mliska@suse.cz>
19641
19642 * gcc.c (process_command): Add dummy file only
19643 if n_infiles == 0.
19644 * opts-global.c (decode_options): Pass lang_mask.
19645 * opts.c (print_help): New function.
19646 (finish_options): Print --help if help_option_argument
19647 is set.
19648 (common_handle_option): Factor out content of OPT__help_
19649 into print_help.
19650 * opts.h (finish_options): Add new argument.
19651
19652 2019-05-02 Martin Liska <mliska@suse.cz>
19653
19654 PR target/88809
19655 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19656 With -minline-all-stringops use inline expansion using 4B loop.
19657 * doc/invoke.texi: Document the change of
19658 -minline-all-stringops.
19659
19660 2019-05-01 Jeff Law <law@redhat.com>
19661
19662 PR tree-optimization/88797
19663 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19664 PHI feeds a conditional on the RHS of an assignment.
19665
19666 2019-04-30 Andrew Waterman <andrew@sifive.com>
19667 Jim Wilson <jimw@sifive.com>
19668
19669 * config/riscv/constraints.md (L): New.
19670 * config/riscv/predicates.md (lui_operand): New.
19671 (sfb_alu_operand): New.
19672 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19673 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19674 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19675 * config/riscv/risc.md (type): Add sfb_alu.
19676 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19677 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19678 (branch_zero<mode>): Delete.
19679 (mov<mode>cc): New.
19680 (mov<GPR:mode><X:mode>cc): Likewise.
19681 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19682
19683 2019-04-30 Nathan Sidwell <nathan@acm.org>
19684
19685 * tree.h (MARK_TS_EXP): New.
19686
19687 2019-04-30 Martin Liska <mliska@suse.cz>
19688
19689 * opts.c (enable_warning_as_error): Provide hints
19690 for unknown options.
19691
19692 2019-04-30 Martin Liska <mliska@suse.cz>
19693
19694 PR debug/90288
19695 * doc/invoke.texi: Add missing dash for gas-locview-support
19696 and gno-as-locview-support.
19697
19698 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19699
19700 PR target/89093
19701 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19702 whitespace at the start of target attribute string.
19703
19704 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19705
19706 PR target/86538
19707 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19708 Define __ARM_FEATURE_ATOMICS.
19709
19710 2019-04-30 Martin Liska <mliska@suse.cz>
19711
19712 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19713 into built_in_function enum. Remove code for endp == 2 and
19714 use BUILT_IN_* constants.
19715 (gimple_fold_builtin): Call the function with fcode.
19716
19717 2019-04-30 Martin Liska <mliska@suse.cz>
19718
19719 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19720 DECL_FUNCTION_CODE into ix86_builtins enum before
19721 the switch statement.
19722
19723 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19724
19725 PR tree-optimization/89475
19726 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19727 calls.
19728
19729 2019-04-30 Martin Liska <mliska@suse.cz>
19730
19731 PR translation/90274
19732 * opts.c (print_filtered_help): Wrap string in _(...).
19733
19734 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19735
19736 PR tree-optimization/90240
19737 Revert:
19738 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19739
19740 PR tree-optimization/90078
19741 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19742 checks for infinite_cost overflow.
19743
19744 2019-04-29 Jeff Law <law@redhat.com>
19745
19746 * passes.def: Move -Wrestrict pass after copy propagation.
19747
19748 2019-04-29 Maya Rashish <coypu@sdf.org>
19749
19750 * config.gcc (default_gnu_indirect_function): Default to yes
19751 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19752 sparc*-*-netbsd*, x86_64-*-netbsd*.
19753
19754 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19755
19756 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19757 where cond2 is NE_EXPR.
19758 (is_value_included_in): Update comment.
19759
19760 2019-04-29 Richard Biener <rguenther@suse.de>
19761
19762 PR tree-optimization/90278
19763 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19764 EH on comparison simplification.
19765
19766 2019-04-29 Jason Merrill <jason@redhat.com>
19767
19768 PR c++/82081 - tail call optimization breaks noexcept
19769 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19770 nothrow function to a might-throw function into a tail call.
19771
19772 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19773
19774 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19775 (DDR_INNER_LOOP): Likewise.
19776 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19777 (initialize_data_dependence_relation): Likewise.
19778 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19779
19780 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19781
19782 PR rtl-optimization/90257
19783 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19784 return value.
19785
19786 Revert the revert:
19787 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19788
19789 PR target/90178
19790 Revert:
19791 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19792
19793 Revert the revert:
19794 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19795
19796 Revert:
19797 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19798
19799 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19800
19801 2019-04-29 Richard Biener <rguenther@suse.de>
19802
19803 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19804 rhs issue a reset.
19805
19806 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19807
19808 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19809 varasm.h, and netbsd-protos.h.
19810
19811 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19812
19813 PR target/89261
19814 * config/i386/i386-protos.h (ix86_data_alignment): Change
19815 the second argument type to unsigned int.
19816 * config/i386/i386.c (ix86_data_alignment): Change "align"
19817 argument type to unsigned int.
19818
19819 2019-04-27 Martin Liska <mliska@suse.cz>
19820
19821 PR middle-end/90258
19822 * opt-suggestions.c (option_proposer::build_option_suggestions):
19823 When get_valid_option_values returns empty values, add the
19824 misspelling candidate.
19825
19826 2019-04-26 Jim Wilson <jimw@sifive.com>
19827
19828 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19829 parameter.
19830 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19831 Pass orig_mode to riscv_build_integer.
19832 (riscv_split_integer): Pass mode to riscv_move_integer.
19833 (riscv_legitimize_const_move): Likewise.
19834 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19835 promoted_mode. Replace force_reg call with code to load constant into
19836 promoted reg and then subreg it for the store.
19837 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19838 riscv_move_integer.
19839
19840 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19841
19842 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19843 corrupt codes.
19844
19845 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19846
19847 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19848 commentary about the encoding of precision.
19849
19850 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19851
19852 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19853 * config/i386/t-freebsd64: New file.
19854 * config.gcc: Add the t-freebsd64 for multilib support.
19855
19856 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19857
19858 * doc/extend.texi (vector_size): Add missing comma after @xref.
19859
19860 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19861
19862 * BASE-VER: Set to 10.0.0.
19863
19864 2019-04-25 Richard Biener <rguenther@suse.de>
19865
19866 PR middle-end/89765
19867 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19868 VIEW_CONVERT_EXPR into one operating on an rvalue.
19869
19870 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19871
19872 PR target/89929
19873 * config/i386/i386.c (feature_priority): Moved to file scope.
19874 (processor_features): Likewise.
19875 (processor_model): Likewise.
19876 (_arch_names_table): Likewise.
19877 (arch_names_table): Likewise.
19878 (_feature_list): Removed.
19879 (feature_list): Likewise.
19880 (_isa_names_table): Moved to file scope. Add priority.
19881 (isa_names_table): Likewise.
19882 (get_builtin_code_for_version): Replace feature_list with
19883 isa_names_table. Update error message for P_ZERO priority.
19884
19885 2019-04-25 Richard Biener <rguenther@suse.de>
19886
19887 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19888 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19889
19890 2019-04-24 Jeff Law <law@redhat.com>
19891
19892 PR tree-optimization/90037
19893 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19894 * passes.def: Replace all instance of phi-only cprop with the
19895 lattice propagator. Move propagation pass from after erroneous
19896 path isolation to before erroneous path isolation.
19897 * tree-ssa-phionlycprop.c: Remove.
19898
19899 2019-04-24 Richard Biener <rguenther@suse.de>
19900
19901 PR middle-end/90213
19902 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19903 by size and BITS_PER_UNIT on poly-wide-ints.
19904
19905 2019-04-25 Richard Biener <rguenther@suse.de>
19906
19907 PR middle-end/90194
19908 * match.pd: Add pattern to simplify view-conversion of an
19909 empty constructor.
19910
19911 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19912
19913 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19914 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19915 for Go on 32 bit AIX.
19916 * config/rs6000/aix72.h: Likewise.
19917
19918 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19919
19920 PR target/90193
19921 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19922 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19923
19924 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19925
19926 PR target/89952
19927 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19928 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19929 for restored hard frame pointer.
19930 (s390_sched_dependencies_evaluation): Implement new target hook.
19931 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19932
19933 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19934
19935 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19936 * config/arc/arc.c (arc_init): Cleanup warning message.
19937 (arc_override_options): Likewise.
19938
19939 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19940
19941 PR target/90187
19942 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19943 a register if both if_true and if_false are MEMs.
19944
19945 PR tree-optimization/90208
19946 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19947 after labels of new_bb, not before them.
19948
19949 PR tree-optimization/90211
19950 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19951 which are not SSA_NAMEs.
19952
19953 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19954
19955 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19956 AArch64.
19957 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19958
19959 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19960
19961 PR rtl-optimization/87979
19962 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19963 not equal zero.
19964
19965 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19966
19967 PR rtl-optimization/84032
19968 * modulo-sched.c (ps_insn_find_column): Change condition so that
19969 branch will always be the last insn in a row inside partial
19970 schedule.
19971
19972 2019-04-23 Richard Biener <rguenther@suse.de>
19973
19974 PR debug/90131
19975 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19976 dest_single_pred_p argument.
19977 (remove_forwarder_block): Adjust.
19978 (remove_forwarder_block_with_phi): Likewise.
19979
19980 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19981 Bernd Edlinger <bernd.edlinger@hotmail.de>
19982 Jakub Jelinek <jakub@redhat.com>
19983
19984 PR target/89093
19985 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19986 if used with general-regs-only.
19987 (arm_conditional_register_usage): Don't add non-general regs if
19988 general-regs-only.
19989 (arm_valid_target_attribute_rec): Handle general-regs-only.
19990 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19991 general-regs-only.
19992 (TARGET_HARD_FLOAT_SUB): Define.
19993 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19994 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19995 (TARGET_REALLY_IWMMXT2): Likewise.
19996 * config/arm/arm.opt: Add -mgeneral-regs-only.
19997 * doc/extend.texi: Document ARM general-regs-only target.
19998 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19999
20000 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20001
20002 PR tree-optimization/90078
20003 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20004 checks for infinite_cost overflow.
20005
20006 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20007
20008 PR tree-optimization/90021
20009 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20010 and check univariate against it.
20011 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20012 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20013
20014 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20015
20016 PR target/90178
20017 Revert:
20018 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20019
20020 Revert the revert:
20021 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20022
20023 Revert:
20024 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20025
20026 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20027
20028 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20029
20030 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20031 names using operand format, rather than hard-wired.
20032 (speculation_barrier): Likewise.
20033
20034 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20035
20036 PR tree-optimization/88055
20037 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20038 (gen_one_condition): Use it if !HONOR_NANS.
20039
20040 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20041
20042 PR middle-end/90139
20043 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20044 assign_temp instead of gen_reg_rtx.
20045
20046 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20047
20048 PR translation/90118
20049 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20050 Add missing space before %<.
20051
20052 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20053
20054 PR rtl-optimization/87871
20055 * ira-lives.c (make_object_dead): Don't add conflicts to
20056 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20057
20058 2019-04-18 Martin Sebor <msebor@redhat.com>
20059
20060 PR middle-end/89797
20061 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20062 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20063 assuming type size fits in SHWI.
20064
20065 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20066
20067 PR ipa/85051
20068 * ipa-inline.c (flatten_function): New parameter UPDATE.
20069 (ipa_inline, early_inliner): Use it.
20070
20071 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20072
20073 * fold-const.c (int_const_binop): Return early on failure.
20074
20075 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20076
20077 PR middle-end/85164
20078 * combine.c (force_int_to_mode): Cast the argument rather than
20079 the result of known_alignment.
20080 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20081
20082 2019-04-18 Richard Biener <rguenther@suse.de>
20083
20084 PR debug/90131
20085 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20086 out from ...
20087 (remove_forwarder_block): ... here.
20088 (remove_forwarder_block_with_phi): Also move debug stmts here.
20089
20090 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20091
20092 PR translation/79183
20093 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20094 inform where appropriate.
20095
20096 2019-04-18 Richard Biener <rguenther@suse.de>
20097
20098 * tree.c (get_qualified_type): Put found type variants at the
20099 head of the variant list.
20100
20101 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20102
20103 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20104
20105 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20106
20107 PR target/90125
20108 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20109 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20110 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20111 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20112 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20113
20114 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20115
20116 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20117 even for allocno's with no conflicts.
20118 (print_conflicts): Print an extra newline.
20119
20120 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20121
20122 * auto-inc-dec.c (attempt_change): Set the alignment of the
20123 temporary memory to that of the original.
20124
20125 2019-04-17 Joao Moreira <jmoreira@suse.de>
20126
20127 * targhooks.c (default_print_patchable_function_entry): Emit
20128 __patchable_function_entries section with writable flags to allow
20129 relocation resolution.
20130
20131 2019-04-17 Jonny Grant <jg@jguk.org>
20132
20133 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20134
20135 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20136
20137 PR middle-end/90095
20138 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20139 on lowpart SUBREGs.
20140
20141 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20142
20143 * config/arc/arc.c (arc_init): Format diagnostic string.
20144 (arc_override_options): Likewise.
20145 (check_if_valid_regno_const): Likewise.
20146 (arc_reorg): Likewise.
20147
20148 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20149
20150 PR target/17108
20151 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20152 name.
20153 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20154 name.
20155 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20156 (*movdi_update1): Use Pmode.
20157 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20158 (movdi_<mode>_update_stack): Rename to ...
20159 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20160 use Pmode.
20161 (*movsi_update1): Use Pmode.
20162 (*movsi_update2): Use Pmode.
20163 (movsi_update): Rename to ...
20164 (movsi_<mode>_update): ... this. Use Pmode.
20165 (movsi_update_stack): Fix condition.
20166 (*movhi_update1): Use Pmode. Fix argument to
20167 avoiding_indexed_address_p.
20168 (*movhi_update2): Ditto.
20169 (*movhi_update3): Ditto.
20170 (*movhi_update4): Ditto.
20171 (*movqi_update1): Ditto.
20172 (*movqi_update2): Ditto.
20173 (*movqi_update3): Ditto.
20174 (*movsf_update1, *movdf_update1): Merge, rename to...
20175 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20176 avoiding_indexed_address_p. Add "size" attribute.
20177 (*movsf_update2, *movdf_update2): Merge, rename to...
20178 (*mov<mode>_update2): This. Ditto.
20179 (*movsf_update3): Use Pmode. Fix argument to
20180 avoiding_indexed_address_p.
20181 (*movsf_update4): Ditto.
20182 (allocate_stack): Simplify condition. Adjust pattern names.
20183
20184 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20185
20186 PR target/89093
20187 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20188 whitespace at the start of target attribute string.
20189
20190 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20191
20192 PR target/84369
20193 * config/rs6000/power9.md: Add store forwarding bypass.
20194
20195 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20196
20197 PR debug/89528
20198 * valtrack.c (dead_debug_insert_temp): Reset debug references
20199 to the return value of a call being removed.
20200
20201 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20202
20203 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20204 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20205 implement target hook.
20206 (arc_memory_move_cost): New function.
20207 (TARGET_REGISTER_MOVE_COST): Define.
20208 (TARGET_MEMORY_MOVE_COST): Likewise.
20209 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20210 (MEMORY_MOVE_COST): Likewise.
20211
20212 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20213
20214 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20215 (sibcall_value_insn): Likewise.
20216 * config/arc/constraints.md (Rs5): Remove.
20217
20218 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20219
20220 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20221 for last two fake registers.
20222 (arc_conditional_register_usage): Make sure fake frame and arg
20223 pointer regs are in general regs class.
20224 (FRAME_POINTER_MASK): Remove.
20225 (RETURN_ADDR_MASK): Remove.
20226 (arc_must_save_register): Use hard frame regnum.
20227 (frame_restore_reg): Use hard_frame_pointer_rtx.
20228 (arc_save_callee_saves): Likewise.
20229 (arc_restore_callee_saves): Likewise.
20230 (arc_save_callee_enter): Likewise.
20231 (arc_restore_callee_leave): Likewise.
20232 (arc_save_callee_milli): Likewise.
20233 (arc_eh_return_address_location): Likewise.
20234 (arc_check_multi): Use hard frame regnum.
20235 (arc_can_eliminate): Likewise.
20236 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20237 for register allocator.
20238 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20239 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20240 (FRAME_POINTER_REGNUM): Change it to a fake register.
20241 (HARD_FRAME_POINTER_REGNUM): Defined.
20242 (ARG_POINTER_REGNUM): Change it to a new fake register.
20243 (ELIMINABLE_REGS): Update.
20244 (REGISTER_NAMES): Update names.
20245 * config/arc/arc.md (LP_START): Remove.
20246 (LP_END): Likewise.
20247 (shift_si3_loop): Update pattern.
20248
20249 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20250
20251 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20252 to avoid delay slot scheduling.
20253 (arc_must_save_register): Don't save SP.
20254 * config/arc/arc.md (stack_tie): Remove.
20255 (UNSPEC_ARC_STKTIE): Likewise.
20256
20257 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20258 Shiva Chen <shiva0217@gmail.com>
20259
20260 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20261 code gen with large shift amount.
20262
20263 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20264
20265 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20266 subreg.
20267
20268 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20269
20270 PR target/90096
20271 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20272 print -m64/-mx32/-m32 if it is true.
20273 (ix86_debug_options, ix86_function_specific_print): Pass true as
20274 ADD_ABI_P to ix86_target_string.
20275 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20276 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20277 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20278
20279 PR rtl-optimization/90082
20280 * dce.c (can_delete_call): New function.
20281 (deletable_insn_p, mark_insn): Use it.
20282
20283 PR tree-optimization/90090
20284 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20285 throw internally.
20286 (is_division_by_square): Likewise. Formatting fix.
20287
20288 2019-04-16 Richard Biener <rguenther@suse.de>
20289
20290 PR tree-optimization/56049
20291 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20292 equality check if alias-set zero will prevail.
20293
20294 2019-04-15 Jeff Law <law@redhat.com>
20295
20296 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20297 size and alignment as unsigned.
20298
20299 2019-04-15 Richard Biener <rguenther@suse.de>
20300
20301 PR debug/90074
20302 * tree-loop-distribution.c (destroy_loop): Preserve correct
20303 debug info.
20304
20305 2019-04-15 Richard Biener <rguenther@suse.de>
20306
20307 PR tree-optimization/90071
20308 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20309 abnormal operands from def stmts.
20310
20311 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20312
20313 PR rtl-optimization/89794
20314 * combine.c (count_auto_inc): New function.
20315 (try_combine): Count how many auto_inc expressions there were in the
20316 original instructions. Ensure we have the same number in the new
20317 instructions. Remove the code that tried to ensure auto_inc side
20318 effects on i1 and i0 are not lost.
20319
20320 2019-04-15 Richard Biener <rguenther@suse.de>
20321
20322 PR ipa/88936
20323 * tree.h (auto_var_p): Declare.
20324 * tree.c (auto_var_p): New function, split out from ...
20325 (auto_var_in_fn_p): ... here.
20326 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20327 member.
20328 (new_var_info): Initialize it.
20329 (set_uids_in_ptset): Also set the shadow variable uid if required.
20330 (ipa_pta_execute): Postprocess points-to solutions assigning
20331 shadow variable uids for locals that may reach their containing
20332 function recursively.
20333 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20334 assert but instead check whether the points-to solution is
20335 a singleton.
20336
20337 2019-04-15 Martin Jambor <mjambor@suse.cz>
20338
20339 PR ipa/pr89693
20340 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20341 the thunk chain.
20342
20343 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20344
20345 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20346
20347 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20348 Kito Cheng <kito.cheng@gmail.com>
20349 Shiva Chen <shiva0217@gmail.com>
20350
20351 * config/nds32/nds32-md-auxiliary.c
20352 (nds32_legitimize_pic_address): Use new PIC pattern.
20353 (nds32_legitimize_tls_address): Use new TLS pattern.
20354 (nds32_output_symrel): New.
20355 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20356 (nds32_alloc_relax_group_id): Ditto.
20357 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20358 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20359 relax_group_id.
20360 (nds32_group_tls_insn): Ditto.
20361 (nds32_group_float_insns): Ditto.
20362 * config/nds32/nds32.md (tls_le): New.
20363 (sym_got): Ditto.
20364
20365 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20366
20367 * configure: Add nds32 target for dwarf2 debug_line checking.
20368 * configure.ac: Regenerated.
20369
20370 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20371
20372 PR lto/89358
20373 * ipa-devirt.c (skip_in_fields_list_p): New.
20374 (odr_types_equivalent_p): Use it.
20375
20376 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20377
20378 PR target/89093
20379 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20380 instead of strncmp when checking for thumb and arm. Formatting fixes.
20381
20382 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20383
20384 * doc/install.texi: Document --with-target-system-zlib.
20385
20386 2019-04-12 Martin Sebor <msebor@redhat.com>
20387
20388 PR c/88383
20389 PR c/89288
20390 PR c/89798
20391 PR c/89797
20392 * targhooks.c (default_vector_alignment): Avoid assuming
20393 argument fits in SHWI.
20394 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20395 a shift expression.
20396 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20397
20398 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20399
20400 PR rtl-optimization/89965
20401 * dce.c: Include rtl-iter.h.
20402 (struct check_argument_load_data): New type.
20403 (check_argument_load): New function.
20404 (find_call_stack_args): Check for loads from stack slots still tracked
20405 in sp_bytes and punt if any is found.
20406
20407 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20408
20409 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20410
20411 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20412 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20413
20414 2019-04-12 Martin Liska <mliska@suse.cz>
20415
20416 PR middle-end/89970
20417 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20418 in error message.
20419 (separate_attrs): Handle multiple 'default's.
20420 (expand_target_clones): Rework error handling code.
20421
20422 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20423
20424 PR target/87532
20425 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20426 mode of vector rather than mode of destination for move instruction.
20427 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20428 Use QI inner mode with V16QI vector mode.
20429
20430 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20431
20432 PR target/52726
20433 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20434 "invalid %%t operand" in output_operand_lossage message.
20435
20436 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20437
20438 * config/s390/predicates.md (permute_pattern_operand): New
20439 predicate.
20440 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20441 operand for the permute pattern.
20442 ("*vec_perm<mode>"): New insn definition.
20443 ("bswap<mode>"): Generate the permute pattern operand in the
20444 expander and perform the operand reloads for pre arch13 level
20445 already.
20446 ("*bswap<mode>_emu"): Rename to ...
20447 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20448 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20449 Add the USE operand for the permute pattern.
20450 ("*vec_set_bswap_vec<mode>"): Likewise.
20451
20452 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20453
20454 PR c/89946
20455 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20456 and gcc_unreachable if it fails, just call tree_to_uhwi which
20457 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20458 Start warning message with a lower-case letter. Formatting fixes.
20459
20460 PR rtl-optimization/90026
20461 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20462 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20463 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20464 in cfglayout mode, use emit_barrier_after_bb.
20465
20466 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20467
20468 PR rtl-optimization/87763
20469 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20470 New Instruction.
20471
20472 2019-04-11 Tom de Vries <tdevries@suse.de>
20473
20474 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20475 max macro using statement expression.
20476
20477 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20478
20479 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20480 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20481 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20482 read_only_private_data_section using xcoff_private_rodata_section_name.
20483 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20484
20485 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20486
20487 PR target/90016
20488 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20489
20490 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20491
20492 PR rtl-optimization/89965
20493 * dce.c (sp_based_mem_offset): New function.
20494 (find_call_stack_args): Use sp_based_mem_offset.
20495
20496 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20497
20498 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20499
20500 2019-04-11 Richard Biener <rguenther@suse.de>
20501
20502 PR tree-optimization/90020
20503 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20504 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20505 * tree-ssa-pre.c (compute_avail): Use it to not put
20506 possibly trapping references after a call that might not
20507 return into EXP_GEN.
20508 * gcse.c (compute_hash_table_work): Do not elide
20509 marking a block containing a call if the call might not
20510 return.
20511
20512 2019-04-11 Richard Biener <rguenther@suse.de>
20513
20514 PR tree-optimization/90018
20515 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20516 Test both SLP and interleaving variants.
20517
20518 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20519
20520 * config/s390/8561.md: New file.
20521 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20522 Add arch13 cpu model.
20523 * config/s390/s390-opts.h (enum processor_type): Likewise.
20524 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20525 (s390_get_unit_mask): Likewise.
20526 (s390_is_fpd): Likewise.
20527 (s390_is_fxd): Likewise.
20528 * config/s390/s390.h (s390_tune_attr): Likewise.
20529 * config/s390/s390.md: Include arch13 pipeline description.
20530 * config/s390/s390.opt: Add arch13.
20531
20532 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20533
20534 PR rtl-optimization/87763
20535 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20536 New prototype.
20537 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20538 New function.
20539 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20540 New instruction.
20541 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20542 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20543 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20544 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20545
20546 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20547
20548 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20549 "Although" in -fipa-icf documentation.
20550
20551 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20552 of using multiple -g options.
20553
20554 2019-04-10 Martin Liska <mliska@suse.cz>
20555
20556 PR gcov-profile/89959
20557 * doc/gcov.texi: Make documentation of -x option
20558 more precise.
20559
20560 2019-04-10 Richard Biener <rguenther@suse.de>
20561
20562 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20563 member.
20564 (DR_GROUP_SAME_DR_STMT): Remove.
20565 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20566 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20567 replace with assert.
20568 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20569 (vect_record_grouped_load_vectors): Remove unreachable code.
20570
20571 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20572
20573 PR target/90016
20574 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20575 obsolete reference to N.
20576
20577 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20578
20579 PR middle-end/90025
20580 * expr.c (store_expr): Set properly size on the MEM passed to
20581 clear_storage.
20582
20583 PR c++/90010
20584 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20585 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20586 translation is needed, and when translation is needed, only append
20587 ... if the string length is hostsz or more bytes long. Avoid using
20588 strncpy or strcat.
20589
20590 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20591
20592 PR target/90024
20593 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20594 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20595 into three.
20596 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20597 differences directly.
20598 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20599
20600 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20601
20602 PR translation/90011
20603 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20604 from diagnostics.
20605 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20606 diagnostics.
20607 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20608 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20609 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20610 trailing space from -gsplit-dwarf diagnostics.
20611
20612 PR tree-optimization/89998
20613 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20614 instead of integer_type_node if possible, don't add ranges if return
20615 type is not compatible with int.
20616 * gimple-fold.c (gimple_fold_builtin_sprintf,
20617 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20618 integer_type_node.
20619
20620 2019-04-09 Martin Liska <mliska@suse.cz>
20621
20622 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20623 * doc/install.texi: Document the new config.
20624
20625 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20626
20627 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20628 use gimple_expr_type for load and store calls. Skip over the
20629 condition argument in a conditional internal function.
20630 Protect use of TREE_INT_CST_LOW.
20631
20632 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20633
20634 PR target/90015
20635 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20636 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20637 trailing period from it too.
20638
20639 2019-04-08 wu yuan <wuyuan5@huawei.com>
20640
20641 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20642 * config/aarch64/aarch64.md : Add "tsv110.md"
20643 * config/aarch64/tsv110.md: New file.
20644
20645 2019-04-08 Richard Biener <rguenther@suse.de>
20646
20647 PR tree-optimization/90006
20648 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20649 calls like lrint.
20650
20651 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20652
20653 PR target/83033
20654 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20655 construction.
20656 (fma_root_node): Likewise.
20657 (func_fma_steering): Likewise.
20658
20659 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20660
20661 PR rtl-optimization/89865
20662 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20663
20664 PR rtl-optimization/89865
20665 * config/i386/i386.md
20666 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20667 numbers not to clash with the additional operands[4].
20668 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20669 with extra register copy in the middle.
20670
20671 2019-04-08 Martin Liska <mliska@suse.cz>
20672
20673 PR gcov-profile/89961
20674 * doc/gcov.texi: Document data_file.
20675 * gcov.c (generate_results): Add data_info into JSON output.
20676
20677 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20678
20679 PR tree-optimization/89725
20680 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20681 loop's chrec as invariant symbol.
20682 * tree-chrec.h (chrec_contains_symbols): New parameter.
20683 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20684 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20685 function of loops not in DDR's loop_nest.
20686 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20687
20688 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20689
20690 PR target/89623
20691 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20692 Mask.
20693
20694 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20695
20696 PR target/89945
20697 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20698 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20699
20700 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20701
20702 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20703 targetm.fixed_condition_code_regs.
20704
20705 2019-04-05 Richard Biener <rguenther@suse.de>
20706
20707 PR debug/89892
20708 PR debug/89905
20709 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20710 debug bind stmts but reset them if they are not valid at the
20711 destination.
20712
20713 2019-04-05 Martin Liska <mliska@suse.cz>
20714
20715 PR translation/89936
20716 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20717 order to wrap keywords or arguments.
20718 * collect2.c (main): Likewise.
20719 (scan_prog_file): Likewise.
20720 (scan_libraries): Likewise.
20721 * common/config/riscv/riscv-common.c
20722 (riscv_subset_list::parsing_subset_version): Likewise.
20723 (riscv_subset_list::parse_std_ext): Likewise.
20724 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20725 Likewise.
20726 * config/arm/arm.c (arm_option_override): Likewise.
20727 * config/cris/cris.c (cris_print_operand): Likewise.
20728 * config/darwin-c.c (darwin_pragma_options): Likewise.
20729 (darwin_pragma_unused): Likewise.
20730 (darwin_pragma_ms_struct): Likewise.
20731 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20732 * config/i386/i386.c (print_reg): Likewise.
20733 (ix86_print_operand): Likewise.
20734 * config/i386/xm-djgpp.h: Likewise.
20735 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20736 * config/m32c/m32c.c (m32c_option_override): Likewise.
20737 * config/msp430/msp430.c (msp430_option_override): Likewise.
20738 * config/nds32/nds32.c (nds32_option_override): Likewise.
20739 * config/nvptx/mkoffload.c (main): Likewise.
20740 * config/rx/rx.c (rx_print_operand): Likewise.
20741 (valid_psw_flag): Likewise.
20742 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20743 (vms_pragma_nomember_alignment): Likewise.
20744 (vms_pragma_extern_model): Likewise.
20745 * lto-wrapper.c (compile_offload_image): Likewise.
20746 * omp-offload.c (oacc_parse_default_dims): Likewise.
20747 * symtab.c (symtab_node::verify_base): Likewise.
20748 * tlink.c (recompile_files): Likewise.
20749 (start_tweaking): Likewise.
20750 * tree-profile.c (parse_profile_filter): Likewise.
20751
20752 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20753
20754 PR tree-optimization/89956
20755 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20756 multiple negates of the same value.
20757
20758 2019-04-04 Martin Sebor <msebor@redhat.com>
20759
20760 PR middle-end/89957
20761 PR middle-end/89911
20762 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20763 have the same precision since the function crashes otherwise.
20764 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20765 has non-zero arguments.
20766
20767 2019-04-04 Martin Sebor <msebor@redhat.com>
20768
20769 PR middle-end/89934
20770 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20771 out if the number of arguments is less than expected.
20772
20773 2019-04-04 Jeff Law <law@redhat.com>
20774
20775 PR rtl-optimization/89399
20776 * ree.c (combine_set_extension): Use single_set rather than
20777 digging into PATTERN for items on the candidate list.
20778 (combine_reaching_defs): Likewise.
20779
20780 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20781
20782 PR rtl-optimization/46590
20783 * loop-invariant.c (find_defs): Move df_remove_problem and
20784 df_process_deferred_rescans to move_invariants.
20785 Move df_live_add_problem and df_live_set_all_dirty calls
20786 to move_invariants.
20787 (move_invariants): Likewise.
20788 (move_loop_invariants): Likewise, making the df_live calls
20789 conditional on -O. Remove the problem again if we added it
20790 locally.
20791
20792 2019-04-03 qing zhao <qing.zhao@oracle.com>
20793
20794 PR tree-optimization/89730
20795 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20796 -flive-patching=inline-only-static.
20797 (can_inline_edge_by_limits_p): Add the checking for
20798 -flive-patching=inline-only-static and grant always_inline
20799 even when -flive-patching=inline-only-static is specified.
20800
20801 2019-04-03 Jeff Law <law@redhat.com>
20802
20803 PR rtl-optimization/81025
20804 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20805
20806 2019-04-03 Richard Biener <rguenther@suse.de>
20807
20808 PR tree-optimization/84101
20809 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20810 regs.h for hard_regno_nregs.
20811 (cfun_returns): New helper.
20812 (vect_model_store_cost): When vectorizing a store to a decl
20813 we return and the function ABI returns in a multi-reg location
20814 account for the possible spilling that will happen.
20815
20816 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20817
20818 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20819 displacement addresses for vector mode operands.
20820
20821 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20822
20823 * config/arc/arc.c (GMASK_LEN): Define.
20824 (arc_restore_callee_saves): Restore first blink when
20825 !optimize_size.
20826
20827 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20828
20829 * doc/extend.texi: Add deprecated comment on sign-return-address
20830 function attribute and add mbranch-protection.
20831 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20832
20833 2019-04-03 Richard Biener <rguenther@suse.de>
20834
20835 PR lto/89896
20836 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20837 the all target phony.
20838
20839 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20840
20841 PR target/89902
20842 PR target/89903
20843 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20844 Return false for variable DImode shifts.
20845 (dimode_scalar_chain::compute_convert_gain): Do not handle
20846 register count operand in variable DImode shifts.
20847 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20848 count argument of a variable shift instruction to a vector register.
20849 (dimode_scalar_chain::convert_reg): Remove support to convert
20850 count argument of a variable shift instruction.
20851
20852 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20853
20854 PR rtl-optimization/84206
20855 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20856 iterating over loop headers.
20857
20858 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20859
20860 PR rtl-optimization/85876
20861 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20862 beyond the original fence.
20863
20864 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20865
20866 * config.gcc: Mark spu* targets as deprecated/obsolete.
20867
20868 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20869
20870 * config/s390/s390-builtin-types.def: New builtin function type
20871 definitions. Remove unused types.
20872 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20873 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20874 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20875 overloaded builtins.
20876 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20877 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20878 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20879 (vec_double, vec_signed, vec_unsigned): Define to use the new
20880 overloaded builtins.
20881 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20882 Remove expanders.
20883
20884 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20885
20886 * config/s390/s390-builtin-types.def: New builtin function type
20887 definitions.
20888 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20889 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20890 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20891 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20892 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20893 constant definitions.
20894 * config/s390/vecintrin.h (vec_search_string_cc)
20895 (vec_search_string_until_zero_cc): New builtin name definitions.
20896 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20897 expanders.
20898 ("vec_vstrs<mode>"): New insn definition.
20899
20900 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20901
20902 * config/s390/s390-builtin-types.def: Add new builtin function
20903 types.
20904 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20905 New overloaded builtins.
20906 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20907 s390_vsrd.
20908 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20909 (UNSPEC_VEC_SLDBYTE): ... this.
20910 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20911 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20912 definitions.
20913 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20914 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20915 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20916
20917 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20918
20919 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20920 New insn definition.
20921 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20922 * config/s390/vector.md (V_HW_HSD): ... here.
20923
20924 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20925
20926 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20927 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20928 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20929 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20930 New insn definitions.
20931
20932 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20933
20934 * config/s390/s390-builtin-types.def: Add new builtin function type.
20935 * config/s390/s390-builtins.def: Add overloaded builtin
20936 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20937 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20938 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20939 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20940 ("eltswap<mode>"): New expander.
20941 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20942 insn definitions.
20943
20944 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20945
20946 * config/s390/s390-builtin-types.def: Add new builtin function types.
20947 * config/s390/s390-builtins.def: Add overloaded builtin
20948 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20949 instructions.
20950 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20951 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20952 ("bswap<mode>"): New expander.
20953 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20954
20955 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20956
20957 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20958 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20959 vector builtin version number in __VEC__.
20960
20961 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20962
20963 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20964 iterators.
20965 (SFSI): New mode attribute.
20966 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20967 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20968 rename to ...
20969 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20970 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20971 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20972 ("floatsi<mode>2"): Add wcefb instruction.
20973
20974 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20975
20976 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20977 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20978 mode iterators.
20979 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20980 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20981 support 32 bit fp-int conversions. Rename to ...
20982 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20983 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20984 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20985 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20986 ... to these.
20987
20988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20989
20990 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20991 if-then-else constructs if we can use the select instruction.
20992 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20993
20994 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20995
20996 * config/s390/s390.md ("*popcountdi_arch13_cc")
20997 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20998 definition.
20999 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21000 Append _z196 to make it ...
21001 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21002 ("popcounthi2_z196"): ... this.
21003 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21004 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21005
21006 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21007
21008 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21009 certain compares for arch13 in order to make use of the condition
21010 code result produced by the new instructions.
21011 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21012 nxrk, and nxgrk instruction patterns.
21013 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21014 (inv_no): Add new code iterator together with some attributes.
21015 ("*andc_split_<mode>"): Disable splitter for arch13.
21016 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21017 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21018 ("*<ANDOR:bitops_name>c<GPR:mode>")
21019 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21020 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21021 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21022 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21023
21024 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21025
21026 * common/config/s390/s390-common.c (processor_flags_table): New
21027 entry for arch13.
21028 * config.gcc: Support arch13 with the --with-arch= configure flag.
21029 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21030 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21031 * config/s390/s390.c (s390_get_sched_attrmask)
21032 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21033 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21034 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21035 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21036 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21037 definitions.
21038 * config/s390/s390.opt: Support arch13 as processor type in
21039 command line options.
21040
21041 2019-04-02 Martin Liska <mliska@suse.cz>
21042
21043 PR translation/89912
21044 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21045 Fix param description of graphite-max-arrays-per-scop.
21046
21047 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21048
21049 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21050 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21051 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21052
21053 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21054
21055 PR rtl-optimization/85412
21056 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21057 sel_sched_region_1, not after.
21058
21059 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21060
21061 PR rtl-optimization/86928
21062 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21063 compute_live if necessary.
21064 (sel_redirect_edge_and_branch): Likewise.
21065
21066 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21067
21068 PR rtl-optimization/89865
21069 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21070 register if it is a part of small class.
21071
21072 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21073
21074 PR rtl-optimization/87273
21075 * sel-sched-ir.c (merge_fences): Remove assert.
21076
21077 2019-04-01 Richard Biener <rguenther@suse.de>
21078
21079 PR tree-optimization/46590
21080 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21081 (dom_walker::m_reachability): Add in place of...
21082 (dom_walker::m_skip_unreachable_blocks): ...this.
21083 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21084 Move complex initialization ...
21085 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21086 lazily and initialize edge flags on each invocation.
21087 (dom_walker::bb_reachable): Use m_reachability.
21088
21089 2019-04-01 Martin Liska <mliska@suse.cz>
21090
21091 PR driver/89861
21092 * opt-suggestions.c (option_proposer::build_option_suggestions):
21093 Add variant without any argument in order to provide better
21094 hints.
21095
21096 2019-04-01 Richard Biener <rguenther@suse.de>
21097
21098 PR c/71598
21099 * gimple.c: Include langhooks.h.
21100 (gimple_get_alias_set): Treat enumeral types as the underlying
21101 integer type.
21102
21103 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21104 Eric Botcazou <ebotcazou@adacore.com>
21105
21106 PR rtl-optimization/89862
21107 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21108 that operates on the full registers for WORD_REGISTER_OPERATIONS
21109 architectures.
21110
21111 2019-03-29 Jim Wilson <jimw@sifive.com>
21112
21113 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21114 Clear MASK_RVC and then set if C subset supported.
21115
21116 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21117
21118 PR c/89872
21119 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21120 non-addressable complit into its initializer if it is volatile.
21121
21122 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21123
21124 * opts-common.c (integral_argument): Set errno properly in one case.
21125
21126 2019-03-29 Martin Liska <mliska@suse.cz>
21127
21128 * doc/invoke.texi: Remove -Wchkp from documentation.
21129
21130 2019-03-29 Martin Liska <mliska@suse.cz>
21131
21132 * dbgcnt.c (print_limit_reach): New function.
21133 (dbg_cnt): Use it.
21134
21135 2019-03-29 Martin Liska <mliska@suse.cz>
21136
21137 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21138 (dbg_cnt_process_opt): Parse first tokens aas
21139 dbg_cnt_process_single_pair is also using strtok.
21140
21141 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR rtl-optimization/87485
21144 * function.c (expand_function_end): Move stack_protect_epilogue
21145 before loading of return value into hard register(s).
21146
21147 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21148
21149 PR middle-end/89621
21150 * tree-inline.h (struct copy_body_data): Add
21151 dont_remap_vla_if_no_change flag.
21152 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21153 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21154 and remap_type_2 returns false.
21155 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21156 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21157 only from where it is copied to nested contexts.
21158
21159 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21160
21161 PR target/89865
21162 * config/i386/i386.md (RMW operation with LEA peephole):
21163 Use LEAMODE mode attribute instead of SWI mode iterator for
21164 LEA pattern.
21165
21166 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21167
21168 PR target/89848
21169 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21170 Also process XEXP (src, 0) of a shift insn.
21171
21172 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21173
21174 PR middle-end/89725
21175 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21176 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21177
21178 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21179
21180 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21181 test.
21182 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21183 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21184 immediately after first one with df_analyze in between, but rather
21185 process all bbs, queueing ones that need second pass in a worklist,
21186 df_analyze, process queued debug insn changes and if second pass is
21187 needed, process bbs from worklist, df_analyze, process queued debug
21188 insns again.
21189
21190 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21191 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21192 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21193
21194 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21195
21196 PR c/79022
21197 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21198 definition.
21199
21200 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21201
21202 PR target/85667
21203 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21204 function for 32-bit MS_ABI.
21205 (function_value_ms_32): New function.
21206
21207 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21208
21209 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21210 (movdi): Call gen_movdi_symbol_save_scc.
21211 (gen_movdi_symbol_save_scc): New insn and split.
21212
21213 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21214
21215 PR rtl-optimization/89313
21216 * function.c (matching_constraint_num): New static function.
21217 (match_asm_constraints_1): Use it. Fixup white space and comment.
21218 Don't replace inputs with non-matching constraints which conflict
21219 with early clobber outputs.
21220
21221 2019-03-27 Jeff Law <law@redhat.com>
21222
21223 PR rtl-optimization/87761
21224 PR rtl-optimization/89826
21225 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21226 slightly later.
21227 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21228 note problem to get REG_DEAD/REG_UNUSED notes updated.
21229
21230 2019-03-27 Richard Biener <rguenther@suse.de>
21231
21232 PR tree-optimization/89463
21233 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21234 queue edges to remove.
21235 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21236 dead stmts. Delay edge removal until PHIs are removed to
21237 make debug-stmt creation not confused by seemingly degenerate
21238 PHIs.
21239
21240 2019-03-27 Alan Modra <amodra@gmail.com>
21241
21242 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21243 throughout file.
21244 * config/rs6000/darwin.h: Likewise.
21245 * config/rs6000/rs6000.c: Likewise.
21246
21247 2019-03-27 Alan Modra <amodra@gmail.com>
21248
21249 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21250 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21251
21252 2019-03-26 Andrew Waterman <andrew@sifive.com>
21253 Jim Wilson <jimw@sifive.com>
21254
21255 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21256 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21257 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21258 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21259 (generic_alu): Add auipc to type list.
21260 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21261 (riscv_microarchitecture): Declare.
21262 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21263 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21264 field.
21265 (riscv_microarchitecture): New.
21266 (sifive_7_tune_info): New.
21267 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21268 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21269 entries.
21270 (riscv_store_data_bypass_p): New.
21271 (riscv_option_override): Set riscv_microarchitecture from
21272 cpu->microarchitecture.
21273 * config/riscv/riscv.md: Include sifive-7.md.
21274 (type): Add auipc.
21275 (tune): New.
21276 (auipc<mode>): Change type to auipc.
21277 (restore_stack_nonlocal): New.
21278 * config/riscv/sifive-7.md: New.
21279 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21280
21281 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21282
21283 PR target/89827
21284 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21285 Also process XEXP (src, 0) of a shift insn.
21286
21287 2019-03-26 Richard Biener <rguenther@suse.de>
21288
21289 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21290 (copy_debug_stmt): Likewise.
21291 (expand_call_inline): Likewise.
21292 (copy_bb): Avoid redundant lookup & set of gimple_block.
21293 * gimple-low.c (lower_gimple_return): Likewise.
21294 (lower_builtin_setjmp): Likewise.
21295
21296 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21297
21298 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21299 is constant 0, turn into static const data member initialized to false.
21300 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21301 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21302
21303 2019-03-26 Jason Merrill <jason@redhat.com>
21304 Jakub Jelinek <jakub@redhat.com>
21305
21306 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21307 method.
21308 (mem_alloc_description::release_object_overhead): Fix comment typos.
21309 * hash-table.h (hash_table::~hash_table): Call
21310 release_instance_overhead only if m_entries is non-NULL, otherwise
21311 call unregister_descriptor.
21312
21313 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21314
21315 PR tree-optimization/81740
21316 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21317 In case of outer loop vectorization, check for backward dependence
21318 at the inner loop if outer loop dependence is reversed.
21319
21320 2019-03-26 Alan Modra <amodra@gmail.com>
21321
21322 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21323 rs6000_vector_mem init. Correct wI and wJ comment.
21324
21325 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21326
21327 PR rtl-optimization/88347
21328 PR rtl-optimization/88423
21329 * sched-deps.c (sched_analyze_insn): Take into account that for
21330 tablejumps the barrier appears after a label and a jump_table_data.
21331
21332 2019-03-25 Martin Sebor <msebor@redhat.com>
21333
21334 PR c/89812
21335 * c-common.c (check_user_alignment): Rename local. Correct maximum
21336 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21337 convert it to UHWI when it fits.
21338
21339 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21340
21341 PR debug/86964
21342 * dwarf2out.c (premark_used_variables): New function.
21343 (prune_unused_types_walk): Do not mark not premarked external
21344 variables.
21345 (prune_unused_types): Call premark_used_variables.
21346
21347 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21348
21349 PR rtl-optimization/89676
21350 * lra-constraints.c (curr_insn_transform): Do match reload for
21351 early clobbers when the match was successful only for different
21352 registers.
21353
21354 2019-03-25 Martin Sebor <msebor@redhat.com>
21355
21356 * doc/extend.texi (Common Type Attributes): Document vector_size.
21357 (Common Variable Attributes): Mention size constraint. Correct
21358 quoting and typos.
21359 (Vector Extensions): Use @dfn when defining bas type. Clarify
21360 base type and size constraints.
21361
21362 2019-03-25 Richard Biener <rguenther@suse.de>
21363
21364 PR tree-optimization/89789
21365 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21366 changes from non-undefined back to undefined.
21367
21368 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21369
21370 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21371 heap string and a gc string, but since this variable is unknown to
21372 ggc the gc string might get reused and corrupted. Fixed by always
21373 using a heap string.
21374
21375 2019-03-25 Richard Biener <rguenther@suse.de>
21376
21377 PR tree-optimization/89779
21378 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21379 to remove IV defs, delay actual removal.
21380 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21381 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21382 very end, properly also reset loop control IV information.
21383
21384 2019-03-25 Richard Biener <rguenther@suse.de>
21385
21386 PR tree-optimization/89802
21387 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21388 move EH data to folded stmt.
21389
21390 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21391
21392 * config/s390/s390-builtin-types.def: Remove few unused types and
21393 fix sort order for others.
21394
21395 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21396
21397 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21398 expected and found types with -mdebug during builtin matching.
21399
21400 2019-03-25 Richard Biener <rguenther@suse.de>
21401
21402 PR middle-end/89790
21403 * fold-const.c (operand_equal_p): Revert last change with
21404 updated comment.
21405
21406 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21407
21408 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21409 notes for the result of the __tls_get_addr calls.
21410 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21411
21412 2019-03-24 Jeff Law <law@redhat.com>
21413
21414 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21415
21416 PR rtl-optimization/87761
21417 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21418 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21419 as needed.
21420 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21421 rescans. Reprocess blocks as needed, calling df_analyze before
21422 reprocessing. Always call df_analyze before fixing up debug bind
21423 insns.
21424
21425 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21426
21427 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21428 big endian.
21429
21430 2019-03-22 Andrew Pinski <apinski@marvell.com>
21431
21432 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21433 attrribute for uxtw.
21434
21435 2019-03-26 Jeff Law <law@redhat.com>
21436
21437 PR rtl-optimization/87761
21438 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21439 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21440 (mips_split_move): Accept new INSN argument. Try to forward SRC
21441 into the next instruction.
21442 (mips_split_move_insn): Pass INSN through to mips_split_move.
21443
21444 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21445
21446 PR rtl-optimization/89676
21447 * lra-constraints.c (curr_insn_transform): Do match reload for
21448 early clobbers even if the match was successful.
21449
21450 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21451
21452 PR c++/87481
21453 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21454
21455 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21456
21457 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21458
21459 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21460
21461 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21462 <avx512>_fmsub_<mode>_mask3<round_name>,
21463 <avx512>_fnmadd_<mode>_mask3<round_name>,
21464 <avx512>_fnmsub_<mode>_mask3<round_name>,
21465 avx512f_vmfmadd_<mode>_mask3<round_name>,
21466 avx512f_vmfmsub_<mode>_mask3<round_name>,
21467 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21468 instead of register_operand and %v instead of v for match_operand 1.
21469 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21470 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21471 <round_nimm_predicate> instead of register_operand and %v instead of v
21472 for match_operand 1.
21473
21474 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21475 <avx512>_fmadd_<mode>_mask3<round_name>,
21476 <avx512>_fmsub_<mode>_mask<round_name>,
21477 <avx512>_fmsub_<mode>_mask3<round_name>,
21478 <avx512>_fnmadd_<mode>_mask<round_name>,
21479 <avx512>_fnmadd_<mode>_mask3<round_name>,
21480 <avx512>_fnmsub_<mode>_mask<round_name>,
21481 <avx512>_fnmsub_<mode>_mask3<round_name>,
21482 <avx512>_fmaddsub_<mode>_mask<round_name>,
21483 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21484 <avx512>_fmsubadd_<mode>_mask<round_name>,
21485 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21486 <round_nimm_predicate> instead of nonimmediate_operand.
21487 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21488 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21489 Use register_operand instead of <round_nimm_predicate> for the
21490 operand that needs to match output.
21491 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21492 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21493 Likewise. Formatting fixes.
21494
21495 PR target/89784
21496 * config/i386/i386.c (enum ix86_builtins): Remove
21497 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21498 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21499 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21500 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21501 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21502 __builtin_ia32_vfmsubss3_mask3): New builtins.
21503 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21504 avx512f_vmfmadd_<mode>_mask3<round_name>,
21505 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21506 *avx512f_vmfmsub_<mode>_mask<round_name>,
21507 avx512f_vmfmsub_<mode>_mask3<round_name>,
21508 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21509 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21510 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21511 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21512 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21513 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21514 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21515 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21516 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21517 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21518 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21519 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21520 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21521 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21522 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21523 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21524 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21525 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21526 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21527 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21528 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21529 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21530 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21531 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21532 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21533 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21534 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21535 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21536
21537 2019-03-21 Martin Sebor <msebor@redhat.com>
21538
21539 PR tree-optimization/89350
21540 * builtins.c (compute_objsize): Also ignore offsets whose upper
21541 bound is negative.
21542 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21543 (builtin_memref::builtin_memref): Initialize new member.
21544 Allow EXPR to be null.
21545 (builtin_memref::extend_offset_range): Replace local with a member.
21546 Avoid assuming pointer offsets are unsigned.
21547 (builtin_memref::set_base_and_offset): Determine base object
21548 before computing offset range.
21549 (builtin_access::builtin_access): Handle memset.
21550 (builtin_access::generic_overlap): Replace local with a member.
21551 (builtin_access::strcat_overlap): Same.
21552 (builtin_access::overlap): Same.
21553 (maybe_diag_overlap): Same.
21554 (maybe_diag_access_bounds): Same.
21555 (wrestrict_dom_walker::check_call): Handle memset.
21556 (check_bounds_or_overlap): Same.
21557
21558 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21559 Jakub Jelinek <jakub@redhat.com>
21560
21561 PR lto/89692
21562 * tree.c (fld_type_variant, fld_incomplete_type_of,
21563 fld_process_array_type): Call fld->pset.add and don't call
21564 add_tree_to_fld_list if it returns true.
21565 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21566 non-marked types from TYPE_NEXT_VARIANT list.
21567 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21568
21569 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21570
21571 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21572 to false, if true, don't alloc_entries during construction, but defer
21573 it to the first method that needs m_entries allocated.
21574 (hash_table::hash_table, hash_table::~hash_table,
21575 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21576 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21577 hash_table::clear_slot, hash_table::traverse_noresize,
21578 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21579 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21580 false.
21581 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21582 NO_INSERT instead of find_with_hash.
21583 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21584 hash_set::m_table): Add Lazy to template params of hash_table.
21585 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21586 * attribs.c (test_attribute_exclusions): Likewise.
21587 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21588 hash_set. Add tests for hash_set with Lazy = true.
21589
21590 2019-03-21 Richard Biener <rguenther@suse.de>
21591
21592 PR tree-optimization/89779
21593 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21594 checks with respect to released SSA names now having error_mark_node
21595 type.
21596 * fold-const.c (operand_equal_p): Likewise.
21597
21598 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21599
21600 PR target/89775
21601 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21602 available to ...
21603 (s390_optimize_register_info): Use global_not_special_regno_p to
21604 check for global regs.
21605
21606 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21607
21608 PR target/89752
21609 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21610 update this_alternative nor this_alternative_set.
21611
21612 2019-03-19 Jim Wilson <jimw@sifive.com>
21613
21614 PR target/89411
21615 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21616 align, size, offset. Use them to handle a BLKmode reference. Update
21617 comment.
21618 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21619
21620 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21621
21622 PR rtl-optimization/89768
21623 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21624 instead of GEN_INT.
21625 (unroll_loop_runtime_iterations): Likewise.
21626
21627 2019-03-19 Martin Sebor <msebor@redhat.com>
21628
21629 PR tree-optimization/89644
21630 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21631 rather than endptr as an indicator of nul-termination.
21632
21633 PR tree-optimization/89644
21634 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21635 arrays in determining sequence sizes in strncpy and stpncpy.
21636
21637 2019-03-19 Martin Liska <mliska@suse.cz>
21638
21639 PR middle-end/89737
21640 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21641 unlikely_edges if there's an edge that belongs to both these sets.
21642
21643 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21644
21645 PR target/89746
21646 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21647 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21648 go via a stack temporary.
21649
21650 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21651
21652 PR target/89378
21653 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21654 instead of gen_rtx_SUBREG.
21655 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21656
21657 2019-03-19 Richard Biener <rguenther@suse.de>
21658
21659 PR debug/88389
21660 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21661
21662 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21663
21664 PR lto/87809
21665 PR lto/89335
21666 * tree.c (free_lang_data_in_decl): Do not free context of C++
21667 destrutors.
21668
21669 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21670
21671 PR target/89506
21672 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21673 subs for the first alternative except when operands[3] is 1.
21674
21675 PR target/89752
21676 * gimplify.c (gimplify_asm_expr): For output argument with
21677 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21678 diagnose error.
21679
21680 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21681
21682 PR rtl-optimization/89753
21683 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21684 explicit unrolling factor even more robust.
21685
21686 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21687
21688 PR target/89726
21689 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21690 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21691 signed zeros, do another copysign after the compensation.
21692
21693 2019-03-18 Martin Sebor <msebor@redhat.com>
21694
21695 PR tree-optimization/89720
21696 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21697 more conservatively, the same as anti-range.
21698
21699 2019-03-18 Richard Biener <rguenther@suse.de>
21700
21701 PR middle-end/88945
21702 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21703 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21704 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21705 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21706
21707 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21708
21709 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21710 Extend queue to 1024 entries.
21711 Add "consumed" field.
21712 (gomp_print_output): Remove print_index parameter.
21713 Add final parameter.
21714 Change limit to unsigned.
21715 Use consumed field to implement circular buffer.
21716 Detect interrupted print in final pass.
21717 Flush output at the end.
21718 (run): Update gomp_print_output usage.
21719 (main): Initialize kernargs->output_data.consumed.
21720
21721 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21722
21723 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21724 calculation of the minimum number of scalar iterations for
21725 fully-predicated loops.
21726
21727 2019-03-18 Martin Jambor <mjambor@suse.cz>
21728
21729 PR tree-optimization/89546
21730 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21731 any propagation to its children took place.
21732
21733 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21734
21735 PR target/89627
21736 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21737 parameter, and make use of it.
21738 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21739
21740 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21741
21742 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21743 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21744 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21745 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21746 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21747 match what the ops is doing.
21748 (push_multi_fp_blink): Likewise.
21749 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21750 compiling for size and elf target.
21751 (arc_save_callee_enter): Adjust note to match what enter/leave
21752 operation does.
21753
21754 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21755
21756 * config/arc/arc.md (tst_movb): Fix constraint.
21757
21758 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21759
21760 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21761
21762 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21763
21764 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21765 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21766 reg_alloc_order references.
21767 (size_alloc_order): Define.
21768 (arc_adjust_reg_alloc_order): New function.
21769 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21770 order.
21771 (ADJUST_REG_ALLOC_ORDER): Define.
21772 (HONOR_REG_ALLOC_ORDER): Likewise.
21773
21774 2019-03-18 Richard Biener <rguenther@suse.de>
21775
21776 PR target/87561
21777 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21778 loads and stores a bit more.
21779
21780 2019-03-18 Richard Biener <rguenther@suse.de>
21781
21782 PR target/87561
21783 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21784 load pessimization to stores as well.
21785
21786 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21787
21788 PR middle-end/86979
21789 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21790 successor, use NULL as its av set.
21791
21792 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21793
21794 PR rtl-optimization/89721
21795 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21796
21797 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21798
21799 PR target/87532
21800 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21801 When handling vec_extract, use modular arithmetic to allow
21802 constant selectors greater than vector length.
21803 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21804 V1TImode vectors to have constant selector values greater than 0.
21805 Use modular arithmetic to compute vector index.
21806 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21807 index for in-memory vectors. Correct code generation for
21808 in-register vectors.
21809 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21810 compute index.
21811
21812 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21813
21814 PR c++/88534
21815 PR c++/88537
21816 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21817 VAR_DECL args.
21818
21819 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21820
21821 PR c++/89709
21822 * tree.c (inchash::add_expr): Strip any location wrappers.
21823 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21824 after hash verification.
21825
21826 PR debug/89704
21827 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21828 SIGN_EXTEND and ZERO_EXTEND.
21829
21830 2019-03-14 Jason Merrill <jason@redhat.com>
21831 Jakub Jelinek <jakub@redhat.com>
21832
21833 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21834 than if is_empty (*slot).
21835 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21836 existing elt and for elt removal.
21837 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21838 of already removed elt.
21839
21840 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21841
21842 PR target/89650
21843 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21844 REG_EH_REGION note.
21845
21846 2019-03-14 Martin Liska <mliska@suse.cz>
21847
21848 PR other/89712
21849 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21850
21851 2019-03-14 Richard Biener <rguenther@suse.de>
21852
21853 PR target/89711
21854 * config/i386/i386.c (make_resolver_func): Properly set
21855 DECL_CONTEXT on the RESULT_DECL.
21856 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21857
21858 2019-03-14 Richard Biener <rguenther@suse.de>
21859
21860 * gimple-pretty-print.c: Include cfgloop.h.
21861 (dump_gimple_phi): Adjust.
21862 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21863 (pp_cfg_jump): Adjust.
21864 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21865 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21866 (lower_phi_internal_fn): Remove.
21867 (verify_gimple_call): Remove IFN_PHI special-casing.
21868 (dump_function_to_file): Dump IL state.
21869 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21870 done to deal with PHI nodes being present in non-SSA state.
21871
21872 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21873
21874 PR ipa/89684
21875 * multiple_target.c (create_dispatcher_calls): Change
21876 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21877 In the node->iterate_referring loop, push *ref rather than ref, call
21878 ref->remove_reference () and always pass 0 to iterate_referring.
21879
21880 PR rtl-optimization/89679
21881 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21882 would contain a paradoxical SUBREG.
21883
21884 2019-03-14 Richard Biener <rguenther@suse.de>
21885
21886 PR tree-optimization/89710
21887 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21888 safe_dyn_cast.
21889
21890 2019-03-14 Martin Liska <mliska@suse.cz>
21891
21892 * coverage.c (coverage_begin_function): Stream also
21893 end_column.
21894 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21895 documentation about function declaration location.
21896 * gcov-dump.c (tag_function): Print whole range
21897 of function declaration.
21898 * gcov.c (struct function_info): Add end_column field.
21899 (function_info::function_info): Initialize it.
21900 (output_json_intermediate_file): Output {start,end}_column
21901 fields.
21902 (read_graph_file): Read end_column.
21903
21904 2019-03-14 Richard Biener <rguenther@suse.de>
21905
21906 PR middle-end/89698
21907 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21908 that the access types are similar.
21909
21910 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21911
21912 PR tree-optimization/89703
21913 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21914 aren't compatible also with builtin_decl_explicit. Check pure
21915 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21916 and BUILT_IN_STPNCPY{,_CHK}.
21917
21918 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21919
21920 PR target/89523
21921 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21922 addr32 prefix to VSIB address for X32.
21923 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21924 "%M2" to opcode.
21925 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21926 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21927 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21928 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21929 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21930 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21931 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21932 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21933 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21934 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21935 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21936 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21937 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21938 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21939 (*avx512f_scatterdi<mode>): Likewise.
21940
21941 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21942
21943 PR target/85860
21944 * lra-constraints.c (inherit_in_ebb): Update
21945 potential_reload_hard_regs along with live_hard_regs.
21946
21947 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21948
21949 PR debug/89498
21950 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21951 DWARF_OFFSET_SIZE.
21952 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21953
21954 2019-03-13 Martin Sebor <msebor@redhat.com>
21955
21956 PR tree-optimization/89662
21957 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21958 has a size.
21959
21960 2019-03-13 Richard Biener <rguenther@suse.de>
21961
21962 PR middle-end/89677
21963 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21964 throw FP expressions at tree-affine.
21965
21966 2019-03-14 Richard Biener <rguenther@suse.de>
21967
21968 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21969 dump negative integer constants using _Literal (type) -num.
21970
21971 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21972
21973 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21974 nonlocal_value member.
21975
21976 PR middle-end/88588
21977 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21978 (ipa_simd_modify_function_body): Handle PHIs.
21979
21980 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21981
21982 * config/s390/s390.c (s390_option_override_internal): Use more
21983 aggressive inlining parameters.
21984
21985 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21986
21987 * config/s390/3906.md: New file.
21988 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21989 (LONGRUNNING_THRESHOLD): Remove.
21990 (MAX_SCHED_MIX_SCORE): Decrease.
21991 (MAX_SCHED_MIX_DISTANCE): Decrease.
21992 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21993 (struct s390_sched_state): New struct to hold scheduling state.
21994 (S390_SCHED_STATE_NORMAL): Remove.
21995 (S390_SCHED_STATE_CRACKED): Remove.
21996 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21997 (s390_get_sched_attrmask): Use new attribute.
21998 (s390_get_unit_mask): Use new units.
21999 (s390_is_fpd): New function.
22000 (s390_is_fxd): New function.
22001 (s390_is_longrunning): New function.
22002 (s390_sched_score): Use new functions.
22003 (s390_sched_reorder): Likewise.
22004 (s390_sched_variable_issue): Rework and use new functions.
22005 (s390_sched_init): Use new functions.
22006 * config/s390/s390.h (s390_tune_attr): Add z14.
22007 * config/s390/s390.md: Add z14.
22008
22009 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22010
22011 * config/s390/2964.md: Update pipeline description.
22012 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22013 (LONGRUNNING_THRESHOLD): Remove.
22014 (LATENCY_FACTOR): Remove.
22015 (s390_get_unit_mask): Add unit.
22016 (s390_sched_score): Use fxd/fpd.
22017 (s390_sched_variable_issue): Use fxd/fpd.
22018
22019 2019-03-12 Martin Liska <mliska@suse.cz>
22020
22021 * config/i386/i386.c: Reword an error message.
22022
22023 2019-03-12 Martin Jambor <mjambor@suse.cz>
22024
22025 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22026 terminate with newline.
22027
22028 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22029
22030 PR target/52726
22031 * config/s390/s390.md (tabort): Use %wd instead of
22032 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22033 letters and periods.
22034 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22035 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22036 's with %< and %>.
22037
22038 PR middle-end/89663
22039 * builtins.c (expand_builtin_int_roundingfn,
22040 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22041 gcc_unreachable if validate_arglist fails.
22042
22043 2019-03-12 Richard Biener <rguenther@suse.de>
22044
22045 PR tree-optimization/89664
22046 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22047 free the occurance tree after the early out.
22048
22049 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22050
22051 PR middle-end/89655
22052 PR bootstrap/89656
22053 * vr-values.c (vr_values::update_value_range): If
22054 old_vr->varying_p (), don't update it, make new_vr also VARYING
22055 and return false.
22056
22057 2019-03-11 Martin Liska <mliska@suse.cz>
22058
22059 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22060 Fix double string quoting.
22061
22062 2019-03-11 Martin Liska <mliska@suse.cz>
22063
22064 * collect-utils.c (collect_wait): Wrap apostrophes
22065 in gcc internal format with %'.
22066 * collect2.c (main): Likewise.
22067 (scan_prog_file): Likewise.
22068 (scan_libraries): Likewise.
22069 * config/i386/i386.c (ix86_expand_call): Likewise.
22070 (ix86_handle_interrupt_attribute): Likewise.
22071 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22072 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22073 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22074 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22075 * symtab.c (symtab_node::verify_base): Likewise.
22076 * tree-cfg.c (verify_gimple_label): Likewise.
22077 * tree.c (verify_type_variant): Likewise.
22078
22079 2019-03-11 Martin Liska <mliska@suse.cz>
22080
22081 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22082 in a string format message and fix GNU coding style.
22083 (expand_builtin_set_thread_pointer): Likewise.
22084 * common/config/aarch64/aarch64-common.c
22085 (aarch64_rewrite_selected_cpu): Likewise.
22086 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22087 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22088 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22089 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22090 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22091 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22092 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22093 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22094 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22095 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22096 Likewise.
22097 * common/config/riscv/riscv-common.c
22098 (riscv_subset_list::parsing_subset_version): Likewise.
22099 (riscv_subset_list::parse_std_ext): Likewise.
22100 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22101 (riscv_subset_list::parse): Likewise.
22102 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22103 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22104 (aarch64_override_options_internal): Likewise.
22105 (aarch64_validate_mcpu): Likewise.
22106 (aarch64_validate_march): Likewise.
22107 (aarch64_validate_mtune): Likewise.
22108 (aarch64_override_options): Likewise.
22109 * config/alpha/alpha.c (alpha_option_override): Likewise.
22110 * config/arc/arc.c (arc_init): Likewise.
22111 (parse_mrgf_banked_regs_option): Likewise.
22112 (arc_override_options): Likewise.
22113 (arc_expand_builtin_aligned): Likewise.
22114 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22115 (arm_expand_builtin): Likewise.
22116 * config/arm/arm.c (arm_option_check_internal): Likewise.
22117 (arm_configure_build_target): Likewise.
22118 (arm_option_override): Likewise.
22119 (arm_options_perform_arch_sanity_checks): Likewise.
22120 (arm_handle_cmse_nonsecure_entry): Likewise.
22121 (arm_handle_cmse_nonsecure_call): Likewise.
22122 (arm_tls_referenced_p): Likewise.
22123 (thumb1_expand_prologue): Likewise.
22124 * config/avr/avr.c (avr_option_override): Likewise.
22125 * config/bfin/bfin.c (bfin_option_override): Likewise.
22126 * config/c6x/c6x.c (c6x_option_override): Likewise.
22127 * config/cr16/cr16.c (cr16_override_options): Likewise.
22128 * config/cris/cris.c (cris_option_override): Likewise.
22129 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22130 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22131 * config/darwin.c (darwin_override_options): Likewise.
22132 * config/frv/frv.c (frv_expand_builtin): Likewise.
22133 * config/h8300/h8300.c (h8300_option_override): Likewise.
22134 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22135 (ix86_option_override_internal): Likewise.
22136 (warn_once_call_ms2sysv_xlogues): Likewise.
22137 (ix86_expand_prologue): Likewise.
22138 (split_stack_prologue_scratch_regno): Likewise.
22139 (ix86_warn_parameter_passing_abi): Likewise.
22140 * config/ia64/ia64.c (fix_range): Likewise.
22141 * config/m68k/m68k.c (m68k_option_override): Likewise.
22142 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22143 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22144 (mips_set_compression_mode): Likewise.
22145 * config/mmix/mmix.c (mmix_option_override): Likewise.
22146 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22147 * config/msp430/msp430.c (msp430_option_override): Likewise.
22148 * config/nds32/nds32.c (nds32_option_override): Likewise.
22149 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22150 (nios2_option_override): Likewise.
22151 (nios2_expand_custom_builtin): Likewise.
22152 * config/nvptx/mkoffload.c (main): Likewise.
22153 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22154 * config/pa/pa.c (fix_range): Likewise.
22155 (pa_option_override): Likewise.
22156 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22157 (riscv_option_override): Likewise.
22158 * config/rl78/rl78.c (rl78_option_override): Likewise.
22159 * config/rs6000/aix61.h: Likewise.
22160 * config/rs6000/aix71.h: Likewise.
22161 * config/rs6000/aix72.h: Likewise.
22162 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22163 * config/rs6000/freebsd64.h: Likewise.
22164 * config/rs6000/linux64.h: Likewise.
22165 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22166 (rs6000_expand_zeroop_builtin): Likewise.
22167 (rs6000_expand_mtfsb_builtin): Likewise.
22168 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22169 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22170 (rs6000_invalid_builtin): Likewise.
22171 (rs6000_expand_split_stack_prologue): Likewise.
22172 * config/rs6000/rtems.h: Likewise.
22173 * config/rx/rx.c (valid_psw_flag): Likewise.
22174 (rx_expand_builtin): Likewise.
22175 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22176 * config/s390/s390.c (s390_expand_builtin): Likewise.
22177 (s390_function_profiler): Likewise.
22178 (s390_option_override_internal): Likewise.
22179 (s390_option_override): Likewise.
22180 * config/sh/sh.c (sh_option_override): Likewise.
22181 (sh_builtin_saveregs): Likewise.
22182 (sh_fix_range): Likewise.
22183 * config/sh/vxworks.h: Likewise.
22184 * config/sparc/sparc.c (sparc_option_override): Likewise.
22185 * config/spu/spu.c (spu_option_override): Likewise.
22186 (fix_range): Likewise.
22187 * config/visium/visium.c (visium_option_override): Likewise.
22188 (visium_handle_interrupt_attr): Likewise.
22189 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22190 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22191 (dbg_cnt_process_opt): Likewise.
22192 * dwarf2out.c (output_dwarf_version): Likewise.
22193 * except.c (expand_eh_return): Likewise.
22194 * gcc.c (defined): Likewise.
22195 (driver_handle_option): Likewise.
22196 (process_command): Likewise.
22197 (compare_files): Likewise.
22198 (driver::prepare_infiles): Likewise.
22199 (driver::do_spec_on_infiles): Likewise.
22200 (driver::maybe_run_linker): Likewise.
22201 * omp-offload.c (oacc_parse_default_dims): Likewise.
22202 * opts-global.c (handle_common_deferred_options): Likewise.
22203 * opts.c (parse_sanitizer_options): Likewise.
22204 (common_handle_option): Likewise.
22205 (enable_warning_as_error): Likewise.
22206 * passes.c (enable_disable_pass): Likewise.
22207 * plugin.c (parse_plugin_arg_opt): Likewise.
22208 (default_plugin_dir_name): Likewise.
22209 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22210 (default_pch_valid_p): Likewise.
22211 * toplev.c (init_asm_output): Likewise.
22212 (process_options): Likewise.
22213 (toplev::run_self_tests): Likewise.
22214 * tree-cfg.c (verify_gimple_call): Likewise.
22215 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22216 (tree_inlinable_function_p): Likewise.
22217 * var-tracking.c (vt_find_locations): Likewise.
22218
22219 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22220
22221 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22222 only on the else branch.
22223
22224 2019-03-11 Martin Liska <mliska@suse.cz>
22225
22226 * gcov.c (output_intermediate_json_line): Print function
22227 name of each line.
22228 (output_json_intermediate_file): Add new argument.
22229 * doc/gcov.texi: Document the change.
22230
22231 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22232
22233 PR rtl-optimization/89588
22234 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22235 explicit unrolling factor more robust.
22236
22237 2019-03-11 Richard Biener <rguenther@suse.de>
22238
22239 PR tree-optimization/89649
22240 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22241 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22242 on the prolog and epilog loops.
22243 (vect_loop_versioning): Return copy of loop.
22244 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22245 on the non-vectorized version of the loop.
22246
22247 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22248
22249 PR target/68924
22250 * config/i386/sse.md (*vec_extractv2di_0_sse):
22251 Add (=r,x) alternative and corresponding splitter.
22252
22253 2019-03-10 Martin Jambor <mjambor@suse.cz>
22254
22255 PR tree-optimization/85762
22256 PR tree-optimization/87008
22257 PR tree-optimization/85459
22258 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22259 it points to if there is a type changing MEM_REF. Adjust all callers.
22260 (build_accesses_from_assign): Disable total scalarization if
22261 contains_vce_or_bfcref_p returns true through the new parameter, for
22262 both rhs and lhs.
22263
22264 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22265
22266 PR c/88568
22267 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22268 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22269
22270 PR target/79645
22271 * common.opt (fdiagnostics-show-labels,
22272 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22273 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22274 gas-locview-support, ginline-points, ginternal-reset-location-views):
22275 Terminate description text with a dot.
22276 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22277 * config/mcore/mcore.opt (m210, m340): Likewise.
22278 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22279 mnops=): Start description text with a capital letter.
22280 * config/arc/arc.opt (msize-level=): Likewise.
22281 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22282 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22283 mnewlib): Likewise.
22284 * config/ft32/ft32.opt (msim): Likewise.
22285 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22286 (mnodiv, mnopm): Terminate description text with a dot.
22287 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22288 a colon.
22289 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22290 Likewise.
22291 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22292 text.
22293
22294 PR rtl-optimization/89634
22295 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22296 are modified in BB_END (e->src) instruction.
22297
22298 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22299
22300 PR target/79926
22301 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22302 messages more amenable to translation, and improve wording.
22303
22304 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22305
22306 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22307 ud- and du-chains between phases.
22308
22309 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22310
22311 PR debug/89631
22312 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22313 instead of POLY_INT_CST.
22314
22315 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22316
22317 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22318 requirement.
22319
22320 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22321
22322 PR target/68924
22323 PR target/78782
22324 PR target/87558
22325 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22326 (_mm_storeu_si64): Ditto.
22327
22328 2019-03-08 Martin Liska <mliska@suse.cz>
22329
22330 PR target/86952
22331 * config/i386/i386.c (ix86_option_override_internal): Disable
22332 jump tables when retpolines are used.
22333
22334 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22335
22336 PR go/63560
22337 * ipa-split.c (execute_split_functions): Do not split
22338 'noinline' or 'section' function.
22339
22340 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22341
22342 PR target/79846
22343 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22344 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22345 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22346
22347 PR ipa/80000
22348 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22349 from diagnostics. Formatting fixes.
22350
22351 PR target/85665
22352 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22353 warn_odr diagnostics.
22354
22355 PR other/80058
22356 * lra-constraints.c (process_alt_operands): Avoid one space before
22357 " at the end of line and another after " on another line in a string
22358 literal.
22359 * attribs.c (handle_dll_attribute): Likewise.
22360 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22361
22362 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22363 warning_at or inform messages in G_() if there is no ?:.
22364
22365 PR tree-optimization/89550
22366 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22367 returned true. Formatting fixes.
22368 (expand_builtin_strnlen): Formatting fixes.
22369 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22370 if warning_at returned true.
22371 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22372
22373 2019-03-08 Richard Biener <rguenther@suse.de>
22374
22375 PR middle-end/89578
22376 * cfgloop.h (struct loop): Add owned_clique field.
22377 * cfgloopmanip.c (copy_loop_info): Copy it.
22378 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22379 cliques.
22380 * tree-inline.c (copy_loops): Remap owned_clique.
22381 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22382 * lto-streamer-out.c (output_cfg): Likewise.
22383
22384 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22385
22386 PR target/80190
22387 * config/darwin.c: Include intl.h.
22388 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22389 composing the message out of two separate parts.
22390
22391 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22392
22393 PR target/80003
22394 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22395 doesn't start with a capital letter and doesn't end with a dot.
22396 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22397 with a capital letter.
22398 (ix86_mangle_function_version_assembler_name): Likewise.
22399 (ix86_generate_version_dispatcher_body): Likewise.
22400 (fold_builtin_cpu): Likewise.
22401 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22402 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22403 translators, wrap full type name in %qs.
22404
22405 PR translation/79999
22406 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22407 depend clause with source (or sink) modifier.
22408 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22409
22410 PR target/89602
22411 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22412 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22413 (avx512f_load<mode>_mask): New define_expand.
22414 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22415 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22416 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22417 __builtin_ia32_movess_mask): New builtins.
22418 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22419 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22420 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22421 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22422
22423 2019-03-07 Martin Jambor <mjambor@suse.cz>
22424
22425 PR lto/87525
22426 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22427 for extern inline functions.
22428
22429 2019-03-07 Martin Jambor <mjambor@suse.cz>
22430
22431 PR ipa/88235
22432 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22433 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22434 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22435 have multiple callees. At the end check if declarations match as
22436 opposed to cgraph_nodes.
22437
22438 2019-03-07 Martin Liska <mliska@suse.cz>
22439
22440 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22441 which is equivalent to searching for this in clones chain.
22442 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22443 names with a neighbour and special case first node in a chain.
22444
22445 2019-01-25 Jason Merrill <jason@redhat.com>
22446
22447 PR c++/80916 - spurious "static but not defined" warning.
22448 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22449 for an internal symbol with DECL_EXTERNAL.
22450
22451 2019-04-07 Richard Biener <rguenther@suse.de>
22452
22453 PR middle-end/89618
22454 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22455 * tree-inline.c (copy_loops): Simplify.
22456
22457 2019-03-07 Martin Liska <mliska@suse.cz>
22458
22459 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22460
22461 2019-03-07 Richard Biener <rguenther@suse.de>
22462
22463 PR tree-optimization/89595
22464 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22465 stmt iterator as reference, take boolean output parameter to
22466 indicate whether the stmt was removed and thus the iterator
22467 already advanced.
22468 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22469 stmts created by folding.
22470
22471 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22472
22473 PR c++/89585
22474 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22475 at toplevel.
22476
22477 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22478
22479 PR rtl-optimization/88845
22480 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22481 LRA.
22482 * lra.c (remove_scratches_1): New function.
22483 (remove_scratches): Use it.
22484 (lra_emit_move): Likewise.
22485
22486 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22487
22488 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22489 unaligned_access variable.
22490 * config/arc/arc.c (arc_override_options): Set unaligned access
22491 default on for HS CPUs.
22492 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22493
22494 2019-03-06 Martin Liska <mliska@suse.cz>
22495
22496 PR gcov-profile/89577
22497 * doc/gcov.texi: Prefer to use --coverage.
22498 * doc/sourcebuild.texi: Likewise.
22499
22500 2019-03-02 Jason Merrill <jason@redhat.com>
22501
22502 PR c++/86485 - -Wmaybe-unused with empty class ?:
22503 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22504
22505 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22506
22507 PR target/89587
22508 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22509 if_multiarch.
22510
22511 PR middle-end/89590
22512 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22513 exactly one argument.
22514
22515 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22516 Richard Sandiford <richard.sandiford@arm.com>
22517
22518 PR tree-optimization/89570
22519 * match.pd (vec_cond into cond_op simplification): Don't use
22520 get_conditional_internal_fn, use as_internal_fn (cond_op).
22521
22522 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22523
22524 PR target/89222
22525 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22526 to decide when to split off a non-zero offset from a symbol.
22527 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22528 in function symbols.
22529
22530 2019-03-05 Richard Biener <rguenther@suse.de>
22531
22532 PR tree-optimization/89594
22533 * tree-if-conv.c (pass_if_conversion::execute): Handle
22534 case where .LOOP_VECTORIZED_FUNCTION was removed.
22535
22536 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22537
22538 PR bootstrap/89560
22539 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22540 instead alloca it only when needed with the needed size.
22541
22542 PR tree-optimization/89570
22543 * match.pd (vec_cond into cond_op simplification): Guard with
22544 vectorized_internal_fn_supported_p test and #if GIMPLE.
22545
22546 PR tree-optimization/89566
22547 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22548 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22549 Punt if get_user_idx_format succeeds, but idx_format argument is
22550 not provided or doesn't have pointer type, or if idx_args is above
22551 number of provided arguments.
22552
22553 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22554
22555 PR tree-optimization/89437
22556 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22557
22558 2019-03-04 Richard Biener <rguenther@suse.de>
22559
22560 PR middle-end/89572
22561 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22562 safe_dyn_cast.
22563
22564 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22565
22566 PR tree-optimization/89487
22567 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22568 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22569 (distribute_loop): Don't do runtime alias check if there is non-
22570 addressable data reference.
22571 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22572 is a register variable.
22573
22574 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22575
22576 PR target/89506
22577 * config/arm/arm.md (cmpsi2_addneg): Use
22578 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22579 If operands[2] is 0 or INT_MIN, force use of subs.
22580 (*compare_scc splitter): Use gen_int_mode.
22581 (*negscc): Likewise.
22582 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22583
22584 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22585 Monk Chiang <sh.chiang04@gmail.com>
22586
22587 * common/config/riscv/riscv-common.c: Include sstream.
22588 (riscv_subset_list::to_string): New.
22589 (riscv_arch_str): Likewise.
22590 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22591 * config.in: Regen.
22592 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22593 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22594 (riscv_emit_attribute): New.
22595 (riscv_file_start): Emit attribute if needed.
22596 (riscv_option_override): Init riscv_emit_attribute_p.
22597 * config/riscv/riscv.opt (mriscv-attribute): New option.
22598 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22599 * configure: Regen.
22600 * doc/install.texi: Document --with-riscv-attribute.
22601 * doc/invoke.texi: Document -mriscv-attribute.
22602
22603 * common/config/riscv/riscv-common.c:
22604 Include config/riscv/riscv-protos.h.
22605 (INCLUDE_STRING): Defined.
22606 (RISCV_DONT_CARE_VERSION): Defined.
22607 (riscv_subset_t): Declare.
22608 (riscv_subset_t::riscv_subset_t): New.
22609 (riscv_subset_list): Declare.
22610 (riscv_subset_list::riscv_subset_list): New.
22611 (riscv_subset_list::~riscv_subset_list): Likewise.
22612 (riscv_subset_list::parsing_subset_version): Likewise.
22613 (riscv_subset_list::parse_std_ext): Likewise.
22614 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22615 (riscv_subset_list::add): Likewise.
22616 (riscv_subset_list::lookup): Likewise.
22617 (riscv_subset_list::xlen): Likewise.
22618 (riscv_subset_list::parse): Likewise.
22619 (riscv_supported_std_ext): Likewise.
22620 (current_subset_list): Likewise.
22621 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22622 parse.
22623
22624 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22625
22626 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22627 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22628 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22629
22630 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22631
22632 PR rtl-optimization/85899
22633 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22634 fallthru edges leading to the exit block.
22635
22636 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22637
22638 PR target/89517
22639 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22640 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22641
22642 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22643
22644 PR tree-optimization/89535
22645 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22646 for each operand. Calculate the fallback choice for mask operands
22647 and pass it to vect_get_vec_def_for_operand.
22648
22649 2019-03-01 Richard Biener <rguenther@suse.de>
22650
22651 PR middle-end/89541
22652 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22653 get virtual operands.
22654 (get_expr_operands): Handle CONST_DECL like other decls.
22655
22656 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22657
22658 PR middle-end/89503
22659 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22660 on DECL_P and EXPR_P.
22661
22662 2019-03-01 Richard Biener <rguenther@suse.de>
22663
22664 PR middle-end/89497
22665 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22666 argument, defaulted to zero.
22667 * passes.c (execute_function_todo): Pass down SSA update flags
22668 to cleanup_tree_cfg.
22669 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22670 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22671 form if requested.
22672 (cleanup_tree_cfg): Get and pass down SSA update flags.
22673
22674 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22675
22676 PR bootstrap/89539
22677 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22678 early_lto_debug argument.
22679
22680 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22681
22682 PR tree-optimization/89536
22683 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22684 only whether bit #0 of the value is 0 instead of the entire value.
22685
22686 2019-02-28 Marek Polacek <polacek@redhat.com>
22687
22688 PR c++/87068 - missing diagnostic with fallthrough statement.
22689 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22690 at the end of a seq, save its location to walk_stmt_info.
22691 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22692 a switch.
22693
22694 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22695
22696 PR lto/88585
22697 * tree.c (find_atomic_core_type): Move ahead in file.
22698 (check_base_type): Correctly compare alignments of atomic types.
22699
22700 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22701
22702 PR target/89455
22703 * config/i386/i386.c (get_builtin_code_for_version): Identify
22704 Westmere from PCLMUL, instead of AES.
22705
22706 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22707
22708 PR target/89434
22709 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22710 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22711 -UINTVAL (...).
22712
22713 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22714
22715 PR target/88530
22716 * config/aarch64/aarch64-option-extensions.def: Document it.
22717 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22718 if empty hwcaps.
22719
22720 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22721
22722 PR c/89520
22723 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22724 builtins if they don't have a single scalar floating point argument.
22725 Formatting fixes.
22726
22727 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22728
22729 PR rtl-optimization/89490
22730 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22731 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22732 block section is not mergeable.
22733
22734 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22735
22736 PR target/70341
22737 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22738 old define_insn to ...
22739 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22740 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22741 Rename old define_insn to ...
22742 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22743 (thumb2_casesi_internal_pic): New define_expand. Rename old
22744 define_insn to ...
22745 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22746 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22747 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22748
22749 2019-02-27 Richard Biener <rguenther@suse.de>
22750
22751 PR debug/88878
22752 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22753
22754 2019-02-27 Richard Biener <rguenther@suse.de>
22755
22756 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22757 building.
22758
22759 2019-02-27 Richard Biener <rguenther@suse.de>
22760
22761 PR debug/88878
22762 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22763 parameter, prefix section name with .gnu.debuglto_ if true.
22764 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22765 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22766
22767 2019-02-27 Richard Biener <rguenther@suse.de>
22768
22769 PR debug/89514
22770 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22771 rather than on use_debug_types, doing what output_die does.
22772 (value_format): Likewise.
22773
22774 2019-02-27 Martin Jambor <mjambor@suse.cz>
22775 Martin Sebor <msebor@redhat.com>
22776
22777 * doc/invoke.texi (Warning Options): Reword description of
22778 -Wno-absolute-value.
22779
22780 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22781
22782 PR tree-optimization/89280
22783 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22784 builtin_setjmp_setup_bb): New functions.
22785 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22786 When visiting __builtin_setjmp_setup block, queue in special
22787 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22788 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22789 from visited after the loop if they don't have any visited successor
22790 blocks.
22791
22792 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22793
22794 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22795 New function.
22796 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22797
22798 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22799
22800 PR c++/89507
22801 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22802 with types other than sizetype/ssizetype.
22803
22804 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22805
22806 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22807 (enum sparc_processor_type): ...this.
22808 (enum sparc_code_model_type): New enumeration type.
22809 (enum sparc_memory_model_type): Tweak comments.
22810 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22811 (mtune): Likewise.
22812 (mcmodel): Use sparc_code_model enumeration and variable.
22813 (sparc_code_model): New enumeration.
22814 (mdebug): Add Undocumented marker.
22815 * config/sparc/sparc.h (enum cmodel): Delete.
22816 (sparc_cmodel): Likewise.
22817 (TARGET_CM_MEDLOW): Adjust to above renaming.
22818 (TARGET_CM_MEDMID): Likewise.
22819 (TARGET_CM_MEDANY): Likewise.
22820 (TARGET_CM_EMBMEDANY): Likewise.
22821 * config/sparc/sparc.c (sparc_cmodel): Delete.
22822 (sparc_option_override): Remove string/value mapping support for the
22823 code model. Move code and memory model support to after the handling
22824 of target flags. Do private machine setup last.
22825 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22826 (sparc_legitimize_reload_address): Likewise.
22827 (sparc_output_mi_thunk): Likewise.
22828 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22829
22830 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22831
22832 PR tree-optimization/89500
22833 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22834 (handle_builtin_strlen): Remove noncst_bound variable. Always
22835 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22836 cst if the first cst bytes starting at x are known to be non-zero,
22837 even if the string is not zero terminated. Don't try to modify
22838 *si for strnlen. Update strlen_to_stridx only for strlen or if
22839 we can prove strnlen returns the same value as strlen would.
22840
22841 2019-02-26 Martin Liska <mliska@suse.cz>
22842
22843 * alloc-pool.h (struct pool_usage): Remove extra
22844 print_dash_line.
22845 * bitmap.h (struct bitmap_usage): Likewise.
22846 * ggc-common.c (struct ggc_usage): Likewise.
22847 * mem-stats.h (struct mem_usage): Likewise.
22848 (mem_alloc_description::dump): Print dash lines
22849 here and repeat header at the end of a table report.
22850 It's then more readable.
22851 * tree-phinodes.c (phinodes_print_statistics): Make
22852 horizontal alignment.
22853 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22854 * vec.c (struct vec_usage): Remove extra print_dash_line.
22855 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22856
22857 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22858
22859 * doc/extend.texi (__builtin_object_size):
22860 Use @pxref instead of @xref inside parenthesis.
22861 (__builtin_has_attribute): Add missing comma after @xref.
22862 (__builtin_object_size): Ditto.
22863 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22864
22865 2019-02-26 Jeff Law <law@redhat.com>
22866
22867 PR rtl-optimization/87761
22868 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22869 detect obviously dead insns and delete them.
22870
22871 2019-02-26 Richard Biener <rguenther@suse.de>
22872
22873 PR tree-optimization/89505
22874 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22875 to handle restrict pointed-to vars with multiple subvars
22876 correctly.
22877
22878 2019-02-26 Richard Biener <rguenther@suse.de>
22879
22880 PR tree-optimization/89489
22881 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22882
22883 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22884
22885 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22886 and move around comment.
22887 <BIT_AND_EXPR>: Likewise.
22888 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22889
22890 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22891
22892 PR target/89474
22893 * config/i386/i386.c (remove_partial_avx_dependency): Call
22894 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22895 after changing possibly many instructions to use that pseudo. Fix up
22896 insertion of v4sf_const0 setter at the start of bb.
22897
22898 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22899
22900 PR c/80409
22901 * doc/extend.texi (Variadic Pointer Args): New section.
22902
22903 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22904 Martin Sebor <msebor@gmail.com>
22905
22906 * common.opt (Wattribute-alias): Likewise.
22907 * doc/invoke.texi (Option Summary): List general form of
22908 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22909 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22910 Add cross-references.
22911 (-Wattribute-alias): Rewrite and correct default. Mention
22912 considered attributes (same as for -Wmissing-attributes).
22913
22914 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22915
22916 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22917 (_mm_cvtpd_ps): Likewise.
22918 (_mm_cvttpd_epi32): Likewise.
22919
22920 PR target/89338
22921 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22922 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22923
22924 PR target/89339
22925 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22926
22927 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22928
22929 PR target/88530
22930 * common/config/aarch64/aarch64-common.c
22931 (struct aarch64_option_extension): Add is_synthetic.
22932 (all_extensions): Use it.
22933 (TARGET_OPTION_INIT_STRUCT): Define hook.
22934 (struct gcc_targetm_common): Moved to end.
22935 (all_extensions_by_on): New.
22936 (opt_ext_cmp, typedef opt_ext): New.
22937 (aarch64_option_init_struct): New.
22938 (aarch64_contains_opt): New.
22939 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22940 * config/aarch64/aarch64-option-extensions.def
22941 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22942 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22943 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22944 Set is_synthetic to false.
22945 (crypto): Set is_synthetic to true.
22946 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22947 SYNTHETIC.
22948
22949 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22950
22951 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22952 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22953 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22954 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22955 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22956 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22957 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22958 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22959 Rename ...
22960 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22961 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22962 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22963 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22964 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22965 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22966 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22967 vfmlsl_laneq_high_f16): ... To this.
22968 * config/arm/neon.md: Update comments.
22969
22970 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22971
22972 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22973 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22974 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22975 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22976 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22977 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22978 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22979 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22980 Rename ...
22981 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22982 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22983 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22984 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22985 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22986 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22987 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22988 vfmlslq_laneq_high_f16): ... To this.
22989
22990 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22991
22992 PR rtl-optimization/86096
22993 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22994 comparing mw_order values.
22995
22996 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22997
22998 PR target/89434
22999 * config/arm/arm.md (*subsi3_carryin_const): Use
23000 arm_neg_immediate_operand predicate instead of
23001 arm_not_immediate_operand, "L" constraint instead of "K" and
23002 print it using %n2 instead of %B2.
23003 (*subsi3_carryin_const0): New define_insn.
23004 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23005 instead of arm_not_operand and "I" constraint instead of "K" and
23006 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23007 another match_operand and in the condition check that it is negation
23008 of operands[2].
23009 (*subsi3_carryin_compare_const0): New define_ins.
23010 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23011 *subsi3_carryin_const.
23012 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23013 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23014
23015 PR target/89438
23016 * config/arm.vfp.md (*negdf2_vfp): Use
23017 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23018 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23019
23020 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23021
23022 PR rtl-optimization/89445
23023 * simplify-rtx.c (simplify_ternary_operation): Don't use
23024 simplify_merge_mask on operands that may trap.
23025 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23026 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23027 second operand is CONST_VECTOR, check if any element could be zero.
23028 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23029 their operands can trap.
23030
23031 2019-02-23 Martin Sebor <msebor@redhat.com>
23032
23033 * gimple-ssa-sprintf.c (target_strtol): Rename...
23034 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23035 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23036 check for range error.
23037
23038 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23039
23040 PR driver/69471
23041 * opts-common.c (prune_options): Also prune joined switches
23042 with Negative and RejectNegative.
23043 * config/i386/i386.opt (march=): Add Negative(march=).
23044 (mtune=): Add Negative(mtune=).
23045 * doc/options.texi: Document Negative used together with Joined
23046 and RejectNegative.
23047
23048 2019-02-22 Martin Sebor <msebor@redhat.com>
23049
23050 * doc/extend.texi (Other Builtins): Add
23051 __builtin_is_constant_evaluated.
23052
23053 2019-02-22 Richard Biener <rguenther@suse.de>
23054
23055 PR tree-optimization/87609
23056 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23057
23058 2019-02-22 Jeff Law <law@redhat.com>
23059
23060 PR rtl-optimization/87761
23061 * config/mips/mips.md: Add new combiner pattern to recognize
23062 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23063
23064 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23065
23066 PR target/89324
23067 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23068 destination register in peepholes generating patterns for ADDS/SUBS.
23069 (add<mode>3_compare0,
23070 *addsi3_compare0_uxtw, add<mode>3_compareC,
23071 add<mode>3_compareV_imm, add<mode>3_compareV,
23072 *adds_<optab><ALLX:mode>_<GPI:mode>,
23073 *subs_<optab><ALLX:mode>_<GPI:mode>,
23074 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23075 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23076 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23077 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23078 sub<mode>3_compare1): Allow stack pointer for source register.
23079 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23080
23081 2019-02-22 Martin Sebor <msebor@redhat.com>
23082
23083 PR tree-optimization/88993
23084 PR tree-optimization/88853
23085 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23086 New helper.
23087 (sprintf_dom_walker::call_info::is_string_func): New helper.
23088 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23089 for formatted string functions.
23090 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23091
23092 2019-02-22 Martin Sebor <msebor@redhat.com>
23093
23094 PR c/89425
23095 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23096 unreachable subexpressions.
23097
23098 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23099 Hongtao Liu <hongtao.liu@intel.com>
23100 Sunil K Pandey <sunil.k.pandey@intel.com>
23101
23102 PR target/87007
23103 * config/i386/i386-passes.def: Add
23104 pass_remove_partial_avx_dependency.
23105 * config/i386/i386-protos.h
23106 (make_pass_remove_partial_avx_dependency): New.
23107 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23108 New function.
23109 (pass_data_remove_partial_avx_dependency): New.
23110 (pass_remove_partial_avx_dependency): Likewise.
23111 (make_pass_remove_partial_avx_dependency): Likewise.
23112 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23113 (*extendsfdf2): Add avx_partial_xmm_update.
23114 (truncdfsf2): Likewise.
23115 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23116 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23117
23118 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23119
23120 PR middle-end/85598
23121 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23122 analysis for pass.
23123
23124 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23125
23126 PR target/89444
23127 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23128 (PTA_SKYLAKE): Add PTA_AES.
23129 (PTA_GOLDMONT): Likewise.
23130
23131 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23132
23133 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23134 instruction if enabled.
23135 (aarch64_override_options): Remove reference to return address key.
23136
23137 2019-02-22 Richard Biener <rguenther@suse.de>
23138
23139 PR tree-optimization/89440
23140 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23141 not necessary assert.
23142
23143 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23144
23145 PR fortran/72741
23146 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23147 (oacc_replace_fn_attrib_attr): ... this new function.
23148 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23149 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23150
23151 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23152
23153 * config/arm/arm-cpus.in (ares): Rename to...
23154 (neoverse-n1): ... This. Add ares as alias.
23155 * config/arm/arm-tables.opt: Regenerate.
23156 * config/arm/arm-tune.md: Likewise.
23157 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23158
23159 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23160
23161 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23162 * config/aarch64/aarch64-tune.md: Regenerate.
23163 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23164
23165 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23166
23167 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23168 (neoversen1_tunings): ... This.
23169 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23170 (neoverse-n1): New CPU.
23171 * config/aarch64/aarch64-tune.md: Regenerate.
23172 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23173
23174 2019-02-22 Richard Biener <rguenther@suse.de>
23175
23176 PR middle-end/87609
23177 * cfghooks.h (dependence_hash): New typedef.
23178 (struct copy_bb_data): New type.
23179 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23180 (duplicate_block): Likewise.
23181 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23182 (copy_bbs): Create and pass down copy_bb_data.
23183 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23184 (rtl_duplicate_bb): Likewise.
23185 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23186 remap dependence info.
23187
23188 2019-02-22 Richard Biener <rguenther@suse.de>
23189
23190 PR tree-optimization/87609
23191 * tree-core.h (tree_base): Document special clique values.
23192 * tree-inline.c (remap_dependence_clique): Do not use the
23193 special clique value of one.
23194 (maybe_set_dependence_info): Use clique one.
23195 (clear_dependence_clique): New callback.
23196 (compute_dependence_clique): Clear clique one from all refs
23197 before assigning it (again).
23198
23199 2019-02-21 Martin Sebor <msebor@redhat.com>
23200
23201 * doc/extend.texi (__clear_cache): Correct signature.
23202
23203 2019-02-21 Ian Lance Taylor <iant@golang.org>
23204
23205 PR go/89170
23206 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23207 than output_constant_def.
23208 (add_constant_to_table): New static function.
23209 (output_constant_def): Call add_constant_to_table.
23210 (tree_output_constant_def): Likewise.
23211
23212 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23213
23214 PR c++/89285
23215 * builtins.c (fold_builtin_arith_overflow): If first two args are
23216 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23217 to ifn.
23218
23219 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23220
23221 PR target/87412
23222 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23223 error for -mindirect-branch/-mfunction-return with incompatible
23224 -fcf-protection.
23225
23226 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23227
23228 PR bootstrap/88714
23229 * constraints.md (q): Remove.
23230 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23231 instead of q.
23232
23233 2019-02-21 Martin Jambor <mjambor@suse.cz>
23234
23235 PR hsa/89302
23236 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23237 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23238 (omp_adjust_for_condition): ...here. Added necessary parameters.
23239 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23240 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23241 proper values to new parameters of omp_adjust_for_condition.
23242
23243 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23244
23245 PR middle-end/89412
23246 * expr.c (expand_assignment): If result is a MEM, use change_address
23247 instead of simplify_gen_subreg.
23248
23249 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23250 David Malcolm <dmalcolm@redhat.com>
23251
23252 PR middle-end/89091
23253 * fold-const.c (decode_field_reference): Return NULL_TREE if
23254 lang_hooks.types.type_for_size returns NULL. Check it before
23255 overwriting *exp_. Use return NULL_TREE instead of return 0.
23256
23257 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23258
23259 PR middle-end/88074
23260 PR middle-end/89415
23261 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23262 buggy mpc_norm.
23263
23264 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23265
23266 PR target/89397
23267 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23268 TARGET_SSE in addition to TARGET_SSE_MATH.
23269
23270 (ix86_excess_precision): Ditto.
23271 (ix86_float_exceptions_rounding_supported_p): Ditto.
23272 (use_rsqrt_p): Ditto.
23273 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23274
23275 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23276
23277 PR c/89410
23278 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23279 linenum_arith_t when determining if two adjacent line spans are
23280 close enough to merge.
23281 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23282 lines within each line_span.
23283
23284 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23285
23286 PR target/86487
23287 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23288 paradoxical SUBREGS.
23289
23290 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23291
23292 PR target/88100
23293 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23294 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23295 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23296 range checking it.
23297
23298 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23299
23300 * config/gcn/gcn.c (print_operand): Fix typo.
23301
23302 2019-02-19 Richard Biener <rguenther@suse.de>
23303
23304 PR middle-end/88074
23305 * toplev.c (do_compile): Initialize mpfr's exponent range
23306 based on available float modes.
23307
23308 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23309
23310 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23311 as long as the epilogue isn't completed.
23312
23313 2019-02-18 Martin Sebor <msebor@redhat.com>
23314
23315 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23316 __has_cpp_attribute, and __has_include.
23317
23318 2019-02-18 Martin Sebor <msebor@redhat.com>
23319
23320 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23321
23322 2019-02-18 Martin Sebor <msebor@redhat.com>
23323
23324 PR middle-end/89294
23325 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23326 expression.
23327 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23328
23329 2019-02-18 Richard Biener <rguenther@suse.de>
23330
23331 PR tree-optimization/89296
23332 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23333 of no-warning flag to cases that might emit the bogus warning.
23334
23335 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23336
23337 PR bootstrap/88714
23338 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23339 "q" constraint.
23340 * config/arm/vfp.md (*movdi_vfp): Likewise.
23341 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23342 "q" constraint for operands[0].
23343
23344 PR target/89369
23345 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23346 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23347 pattern in a temporary buffer.
23348 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23349 than 64-operands[2].
23350
23351 PR target/89361
23352 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23353 s390_indirect_branch_settings): Define unconditionally.
23354 (s390_set_current_function): Likewise, but guard the whole body except
23355 the s390_indirect_branch_settings call with
23356 #if S390_USE_TARGET_ATTRIBUTE.
23357 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23358
23359 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23360 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23361 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23362 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23363 HOST_WIDE_INT_1U instead of 1ULL.
23364 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23365 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23366 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23367 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23368 instead of 1UL.
23369 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23370 instead of 1ul.
23371
23372 2019-02-18 Martin Jambor <mjambor@suse.cz>
23373
23374 PR tree-optimization/89209
23375 * tree-sra.c (create_access_replacement): New optional parameter
23376 reg_tree. Use it as a type if non-NULL and access type is not of
23377 a register type.
23378 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23379 to create_access_replacement.
23380 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23381 Check lacc is non-NULL before attempting to re-create it on the RHS.
23382
23383 2019-02-18 Martin Liska <mliska@suse.cz>
23384
23385 PR ipa/89306
23386 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23387 by default.
23388 (symbol_table::free_edge): Recycle m_summary_id.
23389 * cgraph.h (get_summary_id): New.
23390 (symbol_table::release_symbol): Set m_summary_id to -1
23391 by default.
23392 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23393 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23394 function_summary to fast_function_summary.
23395 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23396 * ipa-pure-const.c (class funct_state_summary_t):
23397 Switch from function_summary to fast_function_summary.
23398 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23399 (class ipa_ref_opt_summary_t): Switch from function_summary
23400 to fast_function_summary.
23401 * symbol-summary.h (class function_summary_base): New class
23402 that is created from base of former function_summary.
23403 (function_summary_base::unregister_hooks): New.
23404 (class function_summary): Inherit from function_summary_base.
23405 (class call_summary_base): New class
23406 that is created from base of former call_summary.
23407 (class call_summary): Inherit from call_summary_base.
23408 (struct is_same): New.
23409 (class fast_function_summary): New summary class.
23410 (class fast_call_summary): New summary class.
23411 * vec.h (vec_safe_grow_cleared): New function.
23412
23413 2019-02-18 Martin Liska <mliska@suse.cz>
23414
23415 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23416 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23417 * doc/tm.texi: Document new target hook.
23418 * doc/tm.texi.in: Likewise.
23419 * target.def: Add new target macro.
23420 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23421 suffixes.
23422
23423 2019-02-17 Alan Modra <amodra@gmail.com>
23424
23425 PR target/89271
23426 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23427 output reg on add insn.
23428 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23429
23430 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23431
23432 PR target/89372
23433 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23434 (PMULHRSW): Likewise.
23435 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23436 TARGET_AVX2.
23437 (ssse3_pmulhrswv4hi3): New expander.
23438
23439 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23440
23441 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23442 MMX. Add isa attribute.
23443
23444 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23445
23446 PR rtl-optimization/66152
23447 * builtins.h (c_readstr): Declare.
23448 * builtins.c (c_readstr): Remove forward declaration. Add
23449 null_terminated_p argument, if false, read all bytes from the
23450 string instead of stopping after '\0'.
23451 * expr.c (string_cst_read_str): New function.
23452 (store_expr): Use string_cst_read_str instead of
23453 builtin_strncpy_read_str. Try to store by pieces the whole
23454 exp_len first, and only if that fails, split it up into
23455 store by pieces followed by clear_storage. Formatting fix.
23456
23457 * config/i386/i386.md (*movqi_internal): Remove static from
23458 buf variable. Use output_asm_insn (buf, operands); return "";
23459 instead of return buf;.
23460 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23461 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23462 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23463
23464 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23465
23466 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23467 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23468 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23469 (CC1_SPEC): Likewise.
23470 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23471
23472 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23473
23474 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23475 the base address on 64-bit strict-alignment platforms.
23476
23477 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23478
23479 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23480
23481 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23482
23483 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23484
23485 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23486
23487 PR rtl-optimization/88308
23488 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23489 on copied instruction.
23490
23491 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23492
23493 * final.c (insn_current_reference_address): Replace test on JUMP_P
23494 with test on jump_to_label_p.
23495 * config/visium/visium-passes.def: New file.
23496 * config/visium/t-visium (PASSES_EXTRA): Define.
23497 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23498 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23499 (TRAMPOLINE_ALIGNMENT): Define.
23500 * config/visium/visium.c (visium_option_override): Do not register
23501 the machine-specific reorg pass here.
23502 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23503 for the GR6.
23504 (output_branch): Adjust threshold for long branch instruction.
23505 * config/visium/visium.md (cpu): Move around.
23506 (length): Adjust for the GR6.
23507
23508 2019-02-15 Richard Biener <rguenther@suse.de>
23509 Jakub Jelinek <jakub@redhat.com>
23510
23511 PR tree-optimization/89278
23512 * tree-loop-distribution.c: Include tree-eh.h.
23513 (generate_memset_builtin, generate_memcpy_builtin): Call
23514 rewrite_to_non_trapping_overflow on builtin->size before passing it
23515 to force_gimple_operand_gsi.
23516
23517 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23518
23519 PR other/89342
23520 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23521 optimize_debug.
23522 * opth-gen.awk: Likewise.
23523
23524 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23525
23526 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23527 Enable MMX, SSE and SSE2 by default.
23528 * config/i386/i386.c (ix86_option_override_internal): Do not
23529 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23530
23531 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23532
23533 PR rtl-optimization/89354
23534 * combine.c (make_extraction): Punt if extraction_mode is narrower
23535 than len bits.
23536
23537 2019-02-14 Maya Rashish <coypu@sdf.org>
23538
23539 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23540 * config/netbsd-d.c: New file.
23541 * config/t-netbsd: Add netbsd-d.o
23542
23543 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23544
23545 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23546 affects_type_identity to true for aarch64_vector_pcs.
23547 (aarch64_comp_type_attributes): New function.
23548 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23549
23550 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23551
23552 PR target/88850
23553 * config/arm/iterators.md (ANY64): Add V4HF.
23554
23555 2019-02-14 Martin Liska <mliska@suse.cz>
23556
23557 PR rtl-optimization/89242
23558 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23559 process a transformation.
23560
23561 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23562
23563 PR tree-optimization/89314
23564 * fold-const.c (fold_binary_loc): Cast strlen argument to
23565 const char * before dereferencing it. Formatting fixes.
23566
23567 PR middle-end/89284
23568 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23569
23570 2019-02-13 Ian Lance Taylor <iant@golang.org>
23571
23572 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23573 and set current index for other optimizations.
23574
23575 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23576
23577 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23578 nonimmediate_operand as operand 2 predicate.
23579 (vec_set<VF2_512_256:mode>_0): Ditto.
23580 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23581 (*vec_concatv2si): Remove alternative 2.
23582 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23583 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23584 (vec_concatv2di): Split alternatives 4,5,6 to ...
23585 (*vec_concatv2di_0) ... new pattern.
23586
23587 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23588
23589 PR target/89190
23590 * config/arm/arm.c (ldm_stm_operation_p) Set
23591 addr_reg_in_reglist correctly for first register.
23592 (load_multiple_sequence): Remove dead base check.
23593 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23594
23595 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23596
23597 PR target/88847
23598 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23599 Expose as @aarch64_pred_mov.
23600 * config/aarch64/aarch64.c (aarch64_classify_address):
23601 Use expand_insn which legitimizes operands.
23602
23603 2019-02-13 Martin Liska <mliska@suse.cz>
23604
23605 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23606 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23607 and pointer_offset fields.
23608 (initialize_argument_information): Remove usage of dead
23609 fields.
23610 * cgraph.h (struct cgraph_thunk_info): Remove
23611 add_pointer_bounds_args.
23612 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23613 fields.
23614 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23615 fields.
23616 * config/i386/i386.c (ix86_function_arg_advance): Remove
23617 unrelated comment.
23618 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23619 (def_builtin): Remove usage of dead fields.
23620 (ix86_add_new_builtins): Likewise.
23621 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23622 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23623 (sem_function::init): Likewise.
23624 (sem_variable::merge): Likewise.
23625 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23626 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23627 * lto-cgraph.c (lto_output_node): Likewise.
23628 (lto_output_varpool_node): Likewise.
23629 (input_node): Likewise.
23630 (input_varpool_node): Likewise.
23631 * lto-streamer-out.c (lto_output): Likewise.
23632 * tree-inline.c (expand_call_inline): Remove usage of
23633 assign_stmts.
23634 * tree-inline.h (struct copy_body_data): Likewise.
23635 * varpool.c (varpool_node::dump): Likewise.
23636
23637 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23638
23639 PR middle-end/89303
23640 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23641 into pt->vars_contains_escaped_heap instead of setting
23642 pt->vars_contains_escaped_heap to it.
23643
23644 PR middle-end/89281
23645 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23646 INTVAL (size), compare it to GET_MODE_MASK instead of
23647 1 << GET_MODE_BITSIZE.
23648
23649 PR target/89290
23650 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23651 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23652 -mcmodel=large.
23653
23654 2019-02-13 Martin Liska <mliska@suse.cz>
23655
23656 PR lto/88858
23657 * cfgrtl.c (remove_barriers_from_footer): New function.
23658 (try_redirect_by_replacing_jump): Use it.
23659 (cfg_layout_redirect_edge_and_branch): Likewise.
23660
23661 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23662
23663 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23664 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23665 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23666 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23667 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23668 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23669 New BU_CRYPTO_2.
23670 * config/rs6000/rs6000.c (builtin_function_type)
23671 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23672 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23673 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23674 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23675 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23676
23677 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23678
23679 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23680 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23681
23682 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23683
23684 PR target/89229
23685 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23686 268678 and revision 268657.
23687 (*movti_internal): Likewise.
23688
23689 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23690
23691 PR target/89233
23692 * config/s390/s390.c (s390_decompose_address): Update comment.
23693 (s390_check_qrst_address): Reject invalid address forms after
23694 LRA.
23695
23696 2019-02-12 Martin Liska <mliska@suse.cz>
23697
23698 PR lto/88876
23699 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23700 we need default values of funct_state for a function that
23701 is not optimized.
23702
23703 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23704
23705 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23706 the object to pick the size of stores on strict-alignment platforms.
23707
23708 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23709 (*movdi_insn_sp32): Likewise.
23710 (*movdi_insn_sp64): Likewise.
23711
23712 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23713
23714 PR lto/88677
23715 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23716 types that needs constructiong.
23717 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23718
23719 2019-02-12 Richard Biener <rguenther@suse.de>
23720
23721 PR tree-optimization/89253
23722 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23723 duplicate the loop.
23724
23725 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23726
23727 PR lto/88147
23728 * input.c (selftest::test_line_offset_overflow): New selftest.
23729 (selftest::input_c_tests): Call it.
23730
23731 2019-02-11 Martin Sebor <msebor@redhat.com>
23732
23733 PR tree-optimization/88771
23734 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23735 when -Wstringop-overflow is set.
23736 (builtin_memref::builtin_memref): Adjust excessive upper bound
23737 only when lower bound is not excessive.
23738 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23739 -Wstringop-ovefflow.
23740 (maybe_diag_offset_bounds): Rename...
23741 (maybe_diag_access_bounds): ...to this.
23742 (check_bounds_or_overlap): Adjust for name change above.
23743
23744 2019-02-11 Martin Sebor <msebor@redhat.com>
23745
23746 PR c++/87996
23747 * builtins.c (max_object_size): Move from here...
23748 * builtins.h (max_object_size): ...and here...
23749 * tree.c (max_object_size): ...to here...
23750 * tree.h (max_object_size): ...and here.
23751
23752 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23753
23754 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23755 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23756 for correct semantics.
23757
23758 2019-02-11 Alan Modra <amodra@gmail.com>
23759
23760 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23761 -mlongcall and -mpltseq.
23762 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23763 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23764 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23765 * config/rs6000/sysv4.opt (mpltseq): New option.
23766 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23767 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23768 support is lacking. Don't allow -mpltseq with -mbss-plt.
23769 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23770 -mpltseq given for ELFv1.
23771 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23772 Only use UNSPEC_PLTSEQ for inline PLT calls.
23773 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23774 use UNSPEC_PLTSEQ for inline PLT calls.
23775 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23776 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23777 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23778 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23779 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23780 (pltseq_mtctr_<mode>): Likewise.
23781
23782 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23783
23784 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23785 Solaris ld.
23786 * configure: Regenerate.
23787
23788 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23789
23790 PR bootstrap/88714
23791 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23792 instead of r.
23793
23794 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23795
23796 * function.c (assign_parm_setup_block): Use the stored
23797 size, not the passed size, when allocating stack-space,
23798 also for a parameter with alignment larger than
23799 MAX_SUPPORTED_STACK_ALIGNMENT.
23800
23801 2019-02-11 Martin Liska <mliska@suse.cz>
23802
23803 PR ipa/89009
23804 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23805 * ipa-inline.c (inline_small_functions): Likewise.
23806 * ipa-pure-const.c (propagate_pure_const): Likewise.
23807 (propagate_nothrow): Likewise.
23808 * ipa-reference.c (propagate): Likewise.
23809 * ipa-utils.c (struct searchc_env): Remove unused field.
23810 (searchc): Always search across AVAIL_INTERPOSABLE.
23811 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23812 the only called IPA pure const can properly not propagate
23813 across interposable boundary.
23814 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23815
23816 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23817
23818 * config/nds32/nds32.md (call_internal, call_value_internal,
23819 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23820
23821 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23822
23823 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23824 typo.
23825
23826 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23827
23828 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23829 in comments
23830
23831 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23832
23833 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23834
23835 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23836
23837 PR tree-optimization/89268
23838 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23839 if preds is non-NULL.
23840
23841 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23842
23843 PR lto/89272
23844 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23845 polymorphic types.
23846
23847 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23848
23849 * config/nds32/nds32.md (trap): New pattern.
23850
23851 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23852
23853 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23854 dwarf span.
23855
23856 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23857
23858 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23859 to split POST_INC.
23860
23861 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23862
23863 * ipa-visibility.c (localize_node): Also do not localize
23864 LDPR_PREVAILING_DEF_IRONLY_EXP.
23865
23866 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23867
23868 PR lto/87957
23869 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23870 instead of type_with_linkage.
23871
23872 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23873
23874 PR ipa/88755
23875 * params.def (uninlined-function-insns, uninlined-function-time,
23876 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23877 bound so we don't get overflows.
23878
23879 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23880
23881 * config/rs6000/rs6000-string.c (expand_compare_loop,
23882 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23883 memcmp/strncmp.
23884
23885 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23886
23887 PR middle-end/89246
23888 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23889 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23890 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23891
23892 2019-02-09 Alan Modra <amodra@gmail.com>
23893
23894 PR target/88343
23895 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23896 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23897 setup.
23898
23899 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23900
23901 PR middle-end/88560
23902 * lra-constraints.c (process_alt_operands): Don't increase reject
23903 for memory when offset memory is required.
23904
23905 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23906
23907 * config/s390/vector.md: Implement vector copysign.
23908
23909 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23910
23911 * expr.c (expand_constructor): Correct indentations.
23912
23913 2019-02-08 Richard Biener <rguenther@suse.de>
23914
23915 PR tree-optimization/89247
23916 * tree-if-conv.c: Include tree-cfgcleanup.h.
23917 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23918 (tree_if_conversion): Pass through predicate vector.
23919 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23920 inline, see if any if-converted loops we refrece in
23921 LOOP_VECTORIZED calls vanished and fixup.
23922 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23923
23924 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23925
23926 * config/s390/constraints.md (jdd): New constraint.
23927
23928 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23929
23930 PR target/89229
23931 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23932 upper 16 vector registers without TARGET_AVX512VL.
23933 (*movti_internal): Likewise.
23934
23935 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23936
23937 PR rtl-optimization/89234
23938 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23939 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23940 (copy_reg_eh_region_note_backward): Likewise.
23941
23942 2019-02-08 Richard Biener <rguenther@suse.de>
23943
23944 PR middle-end/89223
23945 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23946 doesn't fit in HWI.
23947 (analyze_subscript_affine_affine): Handle failure from
23948 initialize_matrix_A.
23949
23950 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23951
23952 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23953 cfun everywhere.
23954
23955 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23956
23957 PR tree-optimization/86637
23958 PR tree-optimization/89235
23959 * tree-vect-loop.c (optimize_mask_stores): Add an
23960 auto_purge_vect_location sentinel to ensure that vect_location is
23961 purged on exit.
23962 * tree-vectorizer.c
23963 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23964 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23965 to ensure that vect_location is purged on exit.
23966 (pass_slp_vectorize::execute): Likewise, replacing the manual
23967 reset.
23968 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23969
23970 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23971
23972 * config/aarch64/iterators.md (max_opp): New code_attr.
23973 (USMAX): New code iterator.
23974 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23975 (aarch64_smax): Likewise.
23976 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23977 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23978 MINUS (MAX MIN).
23979
23980 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23981
23982 PR target/89229
23983 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23984 for TARGET_AVX512VL.
23985 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23986
23987 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23988
23989 * config/s390/s390-builtin-types.def: Add new types.
23990 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23991 (s390_vec_xlw4): Make the memory operand into a const pointer.
23992 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23993 float.
23994 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23995 a new vector type with the alignment of the scalar memory operand.
23996
23997 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23998 Jakub Jelinek <jakub@redhat.com>
23999
24000 PR bootstrap/88714
24001 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24002 arm_count_ldrdstrd_insns): New declarations.
24003 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24004 MINUS.
24005 (valid_operands_ldrd_strd): New function.
24006 (arm_count_ldrdstrd_insns): New function.
24007 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24008 sets instead of single DImode set and define new insns to match this.
24009
24010 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24011
24012 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24013 Make it a C initializer.
24014
24015 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24016
24017 PR/target 88850
24018 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24019
24020 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24021
24022 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24023 Use neon_dot<q> for type.
24024 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24025
24026 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24027
24028 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24029 Use neon_dot<q> for type.
24030 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24031 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24032
24033 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24034
24035 PR rtl-optimization/89225
24036 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24037 sizes check.
24038
24039 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24040
24041 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24042 after restoring registers saved to allocate the frame on Windows.
24043
24044 2019-02-06 Richard Biener <rguenther@suse.de>
24045
24046 PR tree-optimization/89182
24047 * graphite.h (cached_scalar_evolution_in_region): Declare.
24048 * graphite.c (struct seir_cache_key): New.
24049 (struct sese_scev_hash): Likewise.
24050 (seir_cache): New global.
24051 (cached_scalar_evolution_in_region): New function.
24052 (graphite_transform_loops): Allocate and release seir_cache.
24053 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24054 cached_scalar_evolution_in_region.
24055 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24056 Simplify.
24057 (scop_detection::graphite_can_represent_expr: Use
24058 cached_scalar_evolution_in_region.
24059 (scop_detection::stmt_simple_for_scop_p): Likewise.
24060 (find_params_in_bb): Likewise.
24061 (gather_bbs::before_dom_children): Likewise.
24062 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24063 (add_loop_constraints): Likewise.
24064
24065 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24066
24067 PR middle-end/89210
24068 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24069 operand to new_unary_operation only if both element types are integral
24070 and it isn't a widening conversion. Return NULL_TREE if
24071 new_unary_operation failed.
24072
24073 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24074
24075 PR target/88856
24076 * config/s390/s390.md: Remove load and test FP splitter.
24077
24078 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24079
24080 PR target/89112
24081 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24082 expand_compare_loop, expand_block_compare_gpr,
24083 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24084 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24085 #include "profile-count.h" and "predict.h" for types and functions
24086 needed to work with REG_BR_PROB notes.
24087
24088 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24089
24090 PR target/89112
24091 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24092 for the long branch case.
24093
24094 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24095
24096 PR target/89188
24097 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24098 can throw, non-call exceptions are enabled and we can't delete
24099 dead exceptions or alter cfg. Set must_clean if
24100 delete_insn_and_edges returns true, don't set it blindly for calls.
24101 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24102
24103 PR rtl-optimization/89195
24104 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24105 of the original MEM.
24106
24107 2019-02-05 Martin Liska <mliska@suse.cz>
24108
24109 PR gcov-profile/89000
24110 * gcov.c (function_summary): Remove argument.
24111 (file_summary): New function.
24112 (print_usage): Replace tabs with spaces.
24113 (generate_results): Use new function file_summary.
24114
24115 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24116
24117 PR target/89186
24118 * optabs.c (prepare_cmp_insn): Pass x and y to
24119 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24120
24121 2019-02-05 Richard Biener <rguenther@suse.de>
24122
24123 PR middle-end/89150
24124 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24125 (struct bitmap_element): Drop chain_prev so we properly recurse on
24126 the prev member, supporting tree views.
24127 (struct bitmap_head): GTY skip the obstack member.
24128
24129 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24130
24131 PR c/88698
24132 * doc/extend.texi (Vector Extensions): Add an example of using vector
24133 types together with x86 intrinsics.
24134
24135 2019-02-04 Alan Modra <amodra@gmail.com>
24136
24137 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24138 str[] size to 160, and comment.
24139
24140 2019-02-04 Alan Modra <amodra@gmail.com>
24141
24142 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24143 (rs6000_pltseq_template): Guard output of TLS markers with
24144 TARGET_TLS_MARKERS.
24145 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24146 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24147 to use inline PLT sequences.
24148 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24149 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24150 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24151
24152 2019-02-04 Martin Liska <mliska@suse.cz>
24153
24154 PR ipa/88985
24155 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24156 out when ipa_fn_summaries does not contain entry for callee.
24157
24158 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24159
24160 * config/sparc/sparc.h: Remove superfluous blank lines.
24161 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24162 (got_register_rtx): ...this.
24163 (sparc_got): Adjust to above renaming.
24164 (sparc_tls_got): Likewise.
24165 (sparc_delegitimize_address): Likewise.
24166 (sparc_output_mi_thunk): Likewise.
24167 (sparc_init_pic_reg): Likewise.
24168 (save_local_or_in_reg_p): Fix test on the GOT register.
24169 (USE_HIDDEN_LINKONCE): Move around.
24170 (get_pc_thunk_name): Likewise.
24171 (gen_load_pcrel_sym): Likewise.
24172 (load_got_register): Likewise.
24173
24174 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24175
24176 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24177 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24178
24179 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24180
24181 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24182 into consideration.
24183
24184 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24185
24186 * config.gcc (with_nds32_lib, glibc):
24187 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24188 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24189 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24190
24191 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24192
24193 PR target/89071
24194 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24195 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24196 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24197 (*rcpsf2_sse): Ditto.
24198 (*rsqrtsf2_sse): Ditto.
24199 (sse4_1_round<mode<2): Ditto.
24200
24201 2019-02-03 Richard Biener <rguenther@suse.de>
24202
24203 PR debug/87295
24204 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24205 orig.
24206
24207 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24208
24209 PR middle-end/87887
24210 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24211 Punt with warning on aggregate return or argument types. Ignore
24212 type/mode checking for uniform arguments.
24213
24214 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24215
24216 * combine.c (try_combine): Do not print "Can't combine" messages unless
24217 printing failed combination attempts.
24218
24219 2019-02-01 Martin Jambor <mjambor@suse.cz>
24220
24221 PR hsa/87863
24222 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24223 segment and global segment variables before making them static.
24224
24225 2019-02-01 Martin Jambor <mjambor@suse.cz>
24226
24227 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24228 missed optimization dump with dump_enabled_p.
24229
24230 2019-02-01 Richard Biener <rguenther@suse.de>
24231
24232 PR middle-end/88597
24233 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24234 the instantiate cache.
24235 (instantiate_scev_binary): Elide second operand procesing
24236 if equal to the first.
24237 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24238 (chrec_contains_undetermined): Likewise.
24239 (tree_contains_chrecs): Likewise.
24240
24241 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24242
24243 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24244
24245 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24246
24247 PR tree-optimization/89143
24248 * wide-int-range.h (wide_int_range_absu): Declare.
24249 * wide-int-range.cc (wide_int_range_absu): New function.
24250 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24251
24252 PR tree-optimization/88107
24253 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24254 instead of assertion that eh_region_outermost is non-NULL, if it
24255 is NULL, set *ALL to true and return NULL.
24256 (move_sese_region_to_fn): Adjust caller, if all is set, call
24257 duplicate_eh_regions with NULL region.
24258
24259 2019-02-01 Richard Biener <rguenth@suse.de>
24260
24261 PR rtl-optimization/88593
24262 * mode-switching.c (optimize_mode_switching): Free dominators before
24263 calling cleanup_cfg.
24264
24265 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24266
24267 PR tree-optimization/88932
24268 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24269
24270 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24271
24272 PR middle-end/89137
24273 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24274 bogus clang warning.
24275
24276 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24277
24278 PR target/89071
24279 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24280 alternative to avoid partial SSE register stall for TARGET_AVX.
24281 (truncdfsf2): Ditto.
24282 (sse4_1_round<mode>2): Ditto.
24283
24284 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24285
24286 PR tree-optimization/89008
24287 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24288 process anything of the form X * 0.
24289
24290 2019-01-31 Richard Biener <rguenther@suse.de>
24291
24292 PR tree-optimization/89135
24293 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24294 with abnormal preds.
24295
24296 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24297
24298 PR sanitizer/89124
24299 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24300 always_inline callees into no_sanitize_address callers.
24301
24302 2019-01-31 Richard Biener <rguenther@suse.de>
24303
24304 PR rtl-optimization/89115
24305 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24306
24307 2019-01-30 Martin Sebor <msebor@redhat.com>
24308
24309 PR other/89106
24310 * doc/extend.texi (cast to a union): Correct and expand.
24311
24312 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24313
24314 PR rtl-optimization/87246
24315 * lra-constraints.c (simplify_operand_subreg): Reload memory
24316 in subreg if the address became invalid.
24317
24318 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24319
24320 PR target/87064
24321 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24322 Disable for little-endian.
24323
24324 2019-01-30 Richard Biener <rguenther@suse.de>
24325
24326 PR rtl-optimization/89115
24327 * opts.c (default_options_optimization): Reduce
24328 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24329 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24330 to the default.
24331
24332 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24333
24334 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24335 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24336 type of vector element when vec_extract is implemented by direct
24337 move.
24338
24339 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24340
24341 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24342
24343 2019-01-30 Richard Biener <rguenther@suse.de>
24344
24345 PR tree-optimization/89111
24346 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24347 canonicalization to appropriately sized access types.
24348
24349 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24350
24351 PR c++/89105
24352 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24353 for arguments to functions that are TU-local and shouldn't be
24354 referenced by assembly.
24355
24356 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24357
24358 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24359 after '='.
24360
24361 2019-01-29 Martin Sebor <msebor@redhat.com>
24362
24363 PR c/88956
24364 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24365
24366 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24367
24368 PR c++/66676
24369 PR ipa/89104
24370 * omp-simd-clone.c (simd_clone_clauses_extract)
24371 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24372 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24373
24374 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24375
24376 * config.gcc: Force .init_array for ARC.
24377
24378 2019-01-29 Richard Biener <rguenther@suse.de>
24379
24380 PR debug/87295
24381 * dwarf2out.c (collect_skeleton_dies): New helper.
24382 (copy_decls_for_unworthy_types): Call it.
24383 (build_abbrev_table): Assert we do not try to replace
24384 DW_AT_signature refs with local refs.
24385
24386 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24387
24388 PR middle-end/89002
24389 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24390 for lastprivate/linear IV, push gimplify context around gimplify_assign
24391 and, if it needed any temporaries, pop it into a gimple bind around the
24392 sequence.
24393
24394 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24395
24396 * common.opt (-Wattribute-alias): Remove "no-" from name.
24397 Make -Wattribute-alias command line option and
24398 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24399
24400 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24401
24402 PR target/89073
24403 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24404 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24405 x86 ISA options.
24406 (bmi2): Add missing @opindex.
24407 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24408 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24409 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24410 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24411 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24412 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24413 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24414 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24415 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24416 xsavec, xsaveopt and xsaves options.
24417
24418 2019-01-28 Richard Biener <rguenther@suse.de>
24419
24420 PR debug/89076
24421 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24422 support removal.
24423
24424 2019-01-28 Richard Biener <rguenther@suse.de>
24425
24426 PR tree-optimization/88739
24427 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24428 BIT_FIELD_REFs only are applied to mode-precision operands
24429 when they are integral.
24430 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24431 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24432 BIT_FIELD_REFs of non-mode-precision integral operands.
24433
24434 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24435
24436 PR target/87214
24437 * config/i386/sse.md
24438 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24439 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24440 first constants in pairs are multiples of 2. Formatting fixes.
24441 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24442 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24443 first constants in each quadruple are multiples of 4. Formatting fixes.
24444
24445 2019-01-26 Martin Jambor <mjambor@suse.cz>
24446
24447 PR ipa/88933
24448 * tree-inline.c: Include tree-cfgcleanup.h.
24449 (delete_unreachable_blocks_update_callgraph): Move...
24450 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24451 ...here, make externally visible, make second argument bool, adjust
24452 all callers.
24453 * tree-cfgcleanup.c: Include cgraph.h.
24454 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24455 Declare.
24456 * ipa-prop.c: Include tree-cfgcleanup.h.
24457 (ipcp_transform_function): Call
24458 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24459
24460 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24461
24462 PR rtl-optimization/88846
24463 * ira.c (process_set_for_memref_referenced_p): New.
24464 (memref_referenced_p): Add new param. Use
24465 process_set_for_memref_referenced_p. Add new switch cases.
24466 (memref_used_between_p): Pass new arg to memref_referenced_p.
24467
24468 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24469
24470 PR target/88469
24471 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24472 argument ABI_BREAK. Set to true if the calculated alignment has
24473 changed in gcc-9. Check bit-fields for their base type alignment.
24474 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24475 (aarch64_function_arg_boundary): Likewise.
24476 (aarch64_gimplify_va_arg_expr): Likewise.
24477
24478 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24479
24480 PR middle-end/89037
24481 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24482 instead of accessing TREE_INT_CST_ELT directly.
24483
24484 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24485
24486 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24487 fenv_exceptions description.
24488
24489 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24490
24491 PR rtl-optimization/87763
24492 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24493 Allow SUBREG when matching CC_NZmode compare.
24494
24495 2019-01-25 Richard Biener <rguenther@suse.de>
24496
24497 PR tree-optimization/89049
24498 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24499 Look at the pattern stmt to determine if the stmt is vectorized.
24500
24501 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24502
24503 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24504 (pred_mov<mode>): Handle all-register forms using both a new
24505 alternative and a split.
24506
24507 2019-01-25 Richard Biener <rguenther@suse.de>
24508
24509 PR tree-optimization/86865
24510 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24511 Reject non-do-while loops.
24512
24513 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24514
24515 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24516 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24517 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24518 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24519 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24520 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24521 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24522 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24523 vlogical_operand, gpc_reg_operand, int_reg_operand,
24524 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24525 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24526 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24527 (save_world_operation, restore_world_operation, lmw_operation,
24528 stmw_operation): Use MEM_P and REG_P.
24529 (tie_operand): Use MEM_P.
24530 (vrsave_operation, crsave_operation): Use REG_P.
24531 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24532 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24533 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24534 (call_operand): Use HARD_REGISTER_P.
24535 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24536 Use CONST_INT_P.
24537 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24538 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24539 quad_aligned_load_p, replace_swapped_aligned_store,
24540 recombine_lvx_pattern, replace_swapped_aligned_load,
24541 recombine_stvx_pattern): Use MEM_P.
24542 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24543 Use MEM_P and SYMBOL_REF_P.
24544 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24545 (insn_is_swappable_p): Use REG_P and MEM_P.
24546 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24547 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24548 Use CONST_INT_P.
24549 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24550 Use CONST_DOUBLE_P.
24551 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24552 CONST_WIDE_INT_P.
24553 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24554 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24555 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24556 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24557 reg_or_subregno:
24558 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24559 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24560 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24561 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24562 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24563 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24564 rs6000_split_logical_di): Use CONST_INT_P.
24565 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24566 REG_P and SYMBOL_REF_P.
24567 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24568 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24569 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24570 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24571 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24572 (small_data_operand, print_operand_address): Use CONST_INT_P and
24573 SYMBOL_REF_P.
24574 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24575 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24576 Use HARD_REGISTER_NUM_P.
24577 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24578 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24579 SUBREG_P and SYMBOL_REF_P.
24580 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24581 and HARD_REGISTER_NUM_P.
24582 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24583 reg_or_subregno.
24584 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24585 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24586 MEM_P and REG_P.
24587 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24588 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24589 find_addr_reg): Use REG_P.
24590 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24591 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24592 (offsettable_ok_by_alignment, constant_pool_expr_p,
24593 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24594 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24595 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24596 rs6000_assemble_integer, create_TOC_reference,
24597 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24598 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24599 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24600 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24601 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24602 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24603 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24604 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24605 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24606 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24607 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24608 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24609 and cbranch<mode>4): Use CONST_INT_P.
24610 (multiple define_splits): Use REG_P and SUBREG_P.
24611 (define_expands call, call_value): Use MEM_P.
24612 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24613 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24614 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24615 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24616 and HARD_REGISTER_NUM_P.
24617 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24618
24619 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24620
24621 PR rtl-optimization/88948
24622 * rtl.h (prepare_copy_insn): New prototype.
24623 * gcse.c (prepare_copy_insn): New function, split out from
24624 process_insert_insn.
24625 (process_insert_insn): Use prepare_copy_insn.
24626 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24627 instead of gen_move_insn.
24628
24629 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24630
24631 PR debug/89006
24632 * config/i386/i386.c (ix86_pic_register_p): Return true for
24633 UNSPEC_SET_GOT too.
24634
24635 PR tree-optimization/88964
24636 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24637 punt if HONOR_SNANS (chrec).
24638
24639 PR middle-end/89015
24640 * tree-nested.c (convert_nonlocal_reference_stmt,
24641 convert_local_reference_stmt, convert_tramp_reference_stmt,
24642 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24643 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24644 or GIMPLE_OMP_TASK.
24645
24646 PR tree-optimization/89027
24647 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24648 for "omp simd array" variables.
24649
24650 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24651
24652 PR target/88469
24653 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24654 force the alignment of m_val.
24655
24656 2019-01-24 Richard Biener <rguenther@suse.de>
24657
24658 PR lto/87187
24659 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24660 When in "legacy" debug mode make sure to reset self-origins.
24661
24662 2019-01-24 Martin Liska <mliska@suse.cz>
24663
24664 PR gcov-profile/88994
24665 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24666 result will be always smaller or equal to the original.
24667 * gcov.c (mangle_name): Fix else branch where we should
24668 also copy to PTR and shift the pointer.
24669
24670 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24671
24672 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24673 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24674
24675 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24676
24677 * common/config/i386/i386-common.c
24678 (OPTION_MASK_ISA_ENQCMD_SET,
24679 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24680 (ix86_handle_option): Handle -menqcmd.
24681 * config.gcc (enqcmdintrin.h): New header file.
24682 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24683 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24684 -menqcmd.
24685 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24686 function type.
24687 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24688 __builtin_ia32_enqcmds): New builtins.
24689 * config/i386/i386-c.c (__ENQCMD__): New macro.
24690 * config/i386/i386-option.c (ix86_target_string): Add
24691 -menqcmd.
24692 (ix86_valid_target_attribute_inner_p): Likewise.
24693 * config/i386/i386-expand.c
24694 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24695 IX86_BUILTIN_ENQCMDS.
24696 * config/i386/i386.h (TARGET_ENQCMD): New.
24697 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24698 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24699 (movdir64b_<mode>): Parameterize to enable share expansion code
24700 with ENQCMD in function ix86_expand_builtin.
24701 * config/i386/i386.opt: Add -menqcmd.
24702 * config/i386/immintrin.h: Include enqcmdintrin.h.
24703 * config/i386/enqcmdintrin.h: New intrinsic file.
24704 * doc/invoke.texi: Add -menqcmd.
24705
24706 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24707 Steve Ellcey <sellcey@marvell.com>
24708
24709 PR target/85711
24710 * recog.c (address_operand): Return false on wrong mode for address.
24711 (constrain_operands): Check for mode with 'p' constraint.
24712
24713 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24714
24715 PR target/88998
24716 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24717 Disparage MMX alternative.
24718 (sse2_cvtpd2pi): Ditto.
24719 (sse2_cvttpd2pi): Ditto.
24720
24721 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24722
24723 PR driver/89014
24724 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24725 use-after-free of the result of
24726 aarch64_get_extension_string_for_isa_flags.
24727
24728 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24729
24730 PR c/44715
24731 * doc/extend.texi: Document break and continue behavior in
24732 statement expressions.
24733
24734 2019-01-23 Richard Biener <rguenther@suse.de>
24735
24736 PR tree-optimization/89008
24737 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24738 not leave another stray operand.
24739
24740 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24741
24742 * BASE-VER: Bump to 9.0.1.
24743
24744 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24745
24746 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24747 thunk that returns by reference, use the type of the return object
24748 of the thunk instead of that of the alias to build the dereference.
24749
24750 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24751
24752 * config/arc/atomic.md: Add operand to DMB instruction.
24753
24754 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24755
24756 PR tree-optimization/88964
24757 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24758 build_zero_cst instead of build_int_cst. Return false for loop
24759 invariants which honor signed zeros.
24760
24761 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24762
24763 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24764
24765 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24766
24767 PR target/88965
24768 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24769 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24770 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24771
24772 PR middle-end/88968
24773 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24774 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24775
24776 PR target/87064
24777 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24778 Disable for little endian.
24779
24780 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24781
24782 PR target/88469
24783 * config/arm/arm.c (arm_needs_double_word_align): Check
24784 DECL_BIT_FIELD_TYPE.
24785
24786 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24787 H.J. Lu <hongjiu.lu@intel.com>
24788
24789 PR target/88909
24790 * config/i386/i386-builtin.def: Add mask2 to all builtin
24791 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24792 SPECIAL_ARGS.
24793 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24794 (BDESC_FIRST): Likewise.
24795 (define_builtin): Add an argument for mask2. Updated to handle
24796 both ix86_isa_flags and ix86_isa_flags2.
24797 (define_builtin_const): Likewise.
24798 (define_builtin_pure): Likewise.
24799 (define_builtin2): Deleted.
24800 (define_builtin_const2): Likewise.
24801 (builtin_description): Add a member, mask2.
24802 (bdesc_*): Add mask2 to builtin initializations.
24803 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24804 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24805 support.
24806 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24807
24808 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24809
24810 PR target/88954
24811 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24812 noplt attribute.
24813
24814 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24815
24816 PR target/88469
24817 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24818 alignment is dominated by a bitfield with 64-bit aligned base type.
24819 (arm_function_arg): Emit a warning if the alignment has changed since
24820 earlier GCC releases.
24821 (arm_function_arg_boundary): Likewise.
24822 (arm_setup_incoming_varargs): Likewise.
24823
24824 2019-01-22 Richard Biener <rguenther@suse.de>
24825
24826 PR tree-optimization/88862
24827 * graphite-scop-detection.c
24828 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24829
24830 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24831
24832 * doc/extend.tex (AMD GCN Function Attributes): New section.
24833 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24834 * doc/invoke.texi (AMD GCN Options): New section.
24835 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24836
24837 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24838
24839 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24840 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24841
24842 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24843
24844 PR tree-optimization/88044
24845 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24846 is false in the first iteration, but !every_iteration, return false
24847 instead of true with niter->niter zero.
24848
24849 PR rtl-optimization/88904
24850 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24851 any nonequal registers before processing BB_END (b).
24852
24853 PR target/88905
24854 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24855 GET_MODE (op0).
24856 (expand_binop_directly, expand_doubleword_clz,
24857 expand_doubleword_popcount, expand_ctz, expand_ffs,
24858 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24859
24860 PR rtl-optimization/49429
24861 PR target/49454
24862 PR rtl-optimization/86334
24863 PR target/88906
24864 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24865 addressable from here...
24866 (emit_block_op_via_libcall): ... to here.
24867
24868 2019-01-22 Richard Biener <rguenther@suse.de>
24869
24870 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24871 auto_vec for cost vector to fix memleak.
24872 (vectorize_fold_left_reduction): Properly gather SLP defs.
24873 (vectorizable_comparison): Do not swap operands to properly
24874 gather SLP defs.
24875
24876 2019-01-22 Alan Modra <amodra@gmail.com>
24877
24878 PR target/88614
24879 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24880 stays a reg. Allow a const_int.
24881 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24882 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24883 (IS_NOMARK_TLSGETADDR): Define.
24884 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24885 (rs6000_output_tlsargs): New function.
24886 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24887 __tls_get_addr call takes an arg.
24888 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24889 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24890 delete split..
24891 (call_value_nonlocal_sysv): ..or here, delete split.
24892 (tls_gdld_nomark): Delete.
24893 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24894 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24895 (call_value_nonlocal_sysv): Likewise.
24896 (call_value_nonlocal_sysv_secure): Likewise.
24897 (call_value_nonlocal_aix): Likewise.
24898 (call_value_indirect_aix): Likewise.
24899 (call_value_indirect_elfv2): Likewise.
24900 (call_value_local32, call_value_local64): Disable for no-mark tls.
24901 (call_value_local_aix): Likewise.
24902
24903 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24904
24905 PR target/88938
24906 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24907 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24908
24909 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24910
24911 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24912 string contents as hash_map keys.
24913
24914 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24915
24916 PR c/88928
24917 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24918 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24919 instead of TYPE_ALIGN.
24920 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24921 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24922 pointer from TYPE_STUB_DECL.
24923
24924 2019-01-21 Richard Biener <rguenther@suse.de>
24925
24926 PR tree-optimization/88934
24927 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24928 at the possibly non-constant operand.
24929 (vect_get_constant_vectors): Adjust.
24930
24931 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24932
24933 PR target/71659
24934 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24935 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24936 instead of _X86INTRIN_H_INCLUDED.
24937 * onfig/i386/clwbintrin.h: Likewise.
24938 * config/i386/pkuintrin.h: Likewise.
24939 * config/i386/prfchwintrin.h: Likewise.
24940 * config/i386/rdseedintrin.h: Likewise.
24941 * config/i386/wbnoinvdintrin.h: Likewise.
24942 * config/i386/xsavecintrin.h: Likewise.
24943 * config/i386/xsavesintrin.h: Likewise.
24944 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24945 * config/i386/xsaveintrin.h: Likewise.
24946 * config/i386/xsaveoptintrin.h: Likewise.
24947 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24948 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24949 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24950 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24951 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24952 * config/i386/immintrin.h: Here.
24953
24954 2019-01-20 Martin Jambor <mjambor@suse.cz>
24955
24956 PR ipa/87615
24957 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24958 with aa_walk_budget.
24959 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24960 aa_walk_budget_p parameter.
24961 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24962 walk. Updated all callers.
24963 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24964 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24965 unmodified_parm.
24966 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24967 parameter info. Extract info from fbi. Pass fbi to recursive calls
24968 and to unmodified_parm.
24969 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24970 info, updated call to will_be_nonconstant_expr_predicate.
24971 (param_change_prob): New parameter fbi, limit AA walking.
24972 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24973 calls to various above functions.
24974 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24975 parameter. Use it to limit AA walking.
24976 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24977 fbi, limit AA walk.
24978 (detect_type_change): New parameter fbi, pass it on to
24979 detect_type_change_from_memory_writes.
24980 (detect_type_change_ssa): Likewise.
24981 (aa_overwalked): Removed.
24982 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24983 accordingly, adjust to the neew AA limiting scheme.
24984 (parm_ref_data_preserved_p): Likewise.
24985 (ipa_compute_jump_functions_for_edge): Adjust call to
24986 get_dynamic_type.
24987 (ipa_analyze_call_uses): Likewise.
24988 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24989 (ipa_analyze_node): Initialize aa_walk_budget.
24990 (ipcp_transform_function): Likewise.
24991 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24992 to get_dynamic_type.
24993
24994 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24995
24996 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24997 outside of #if CHECKING_P code.
24998
24999 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25000
25001 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25002 New function, split out from...
25003 (loop_versioning::analyze_stride): ...here.
25004 (loop_versioning::find_per_loop_multiplication): Use gassign.
25005 (loop_versioning::analyze_term_using_scevs): Return a success code.
25006 (loop_versioning::analyze_arbitrary_term): New function.
25007 (loop_versioning::analyze_address_fragment): Use
25008 analyze_arbitrary_term if all else fails.
25009
25010 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25011
25012 PR target/88892
25013 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25014 operands.
25015
25016 2019-01-18 Richard Biener <rguenther@suse.de>
25017
25018 PR tree-optimization/88903
25019 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25020 scalar stmts a SLP shift amount is composed of when detecting
25021 shifts by scalars.
25022
25023 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25024
25025 PR target/88799
25026 * config/arm/arm-cpus.in (mp): New feature.
25027 (sec): New feature.
25028 (fgroup ARMv7ve): Add mp and sec features.
25029 (arch armv7-a): Add options to allow mp and sec extensions.
25030 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25031 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25032 extenstions to the base architecture.
25033 (cpu cortex-a8): Add sec extension to the base architecture.
25034 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25035 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25036 variants down to the base v7-a varaint.
25037 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25038 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25039 of permitted extensions for -march=armv7-a and for
25040 -mcpu=generic-armv7-a.
25041
25042 2019-01-18 Martin Liska <mliska@suse.cz>
25043
25044 * params.def: Fix comment.
25045 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25046 name.
25047 (gimple_gen_ic_func_profiler): Likewise.
25048
25049 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25050
25051 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25052 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25053 and put in error checks for stack protector guard options.
25054 (aarch64_stack_protect_guard): New.
25055 (TARGET_STACK_PROTECT_GUARD): Define.
25056 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25057 (reg_stack_protect_address<mode>): New.
25058 (stack_protect_set): Adjust for SSP_GLOBAL.
25059 (stack_protect_test): Likewise.
25060 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25061 (-mstack-protector-guard): Likewise.
25062 (-mstack-protector-guard-offset): Likewise.
25063
25064 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25065
25066 PR tree-optimization/86214
25067 * tree-inline.h (struct copy_body_data): Add
25068 add_clobbers_to_eh_landing_pads member.
25069 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25070 (copy_edges_for_bb): Call it if EH edge destination is <
25071 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25072 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25073 if flag_stack_reuse != SR_NONE and clear it afterwards.
25074
25075 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25076
25077 PR target/85596
25078 * doc/install.texi (with-multilib-list): Document for aarch64.
25079
25080 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25081
25082 PR target/88734
25083 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25084 (("..."))) with ("...").
25085
25086 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25087
25088 * doc/extend.texi (Built-in Functions for Memory Model Aware
25089 Atomic Operations): Document atomic fetch and nand.
25090
25091 2019-01-18 Martin Liska <mliska@suse.cz>
25092 Richard Biener <rguenther@suse.de>
25093
25094 PR middle-end/88587
25095 * cgraph.h (create_version_clone_with_body): Add new argument
25096 with attributes.
25097 * cgraphclones.c (cgraph_node::create_version_clone): Add
25098 DECL_ATTRIBUTES to a newly created decl. And call
25099 valid_attribute_p so that proper cl_target_optimization_node
25100 is set for the newly created declaration.
25101 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25102 for declaration.
25103 (expand_target_clones): Do not call valid_attribute_p, it must
25104 be already done.
25105 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25106 vector types.
25107
25108 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25109
25110 PR target/88734
25111 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25112 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25113 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25114
25115 2019-01-17 Martin Sebor <msebor@redhat.com>
25116
25117 PR middle-end/88273
25118 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25119 Handle anti-ranges the same as no range at all.
25120
25121 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25122
25123 * config/aarch64/aarch64.c (cgraph.h): New include.
25124 (intl.h): New include.
25125 (supported_simd_type): New function.
25126 (currently_supported_simd_type): Ditto.
25127 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25128 (aarch64_simd_clone_adjust): Ditto.
25129 (aarch64_simd_clone_usable): Ditto.
25130 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25131 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25132 (TARGET_SIMD_CLONE_USABLE): Ditto.
25133 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25134 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25135 call.
25136
25137 2019-01-17 Martin Sebor <msebor@redhat.com>
25138
25139 PR tree-optimization/88800
25140 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25141 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25142 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25143 redundant argument. Add new argument and issue diagnostics under
25144 its control. Detect out-of-bounds access even with warnings
25145 disabled.
25146 (check_bounds_or_overlap): Change return type. Add argument.
25147 (wrestrict_dom_walker::check_call): Adjust.
25148 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25149 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25150 check_bounds_or_overlap's return value.
25151 (handle_builtin_stxncpy): Same.
25152 (handle_builtin_strcat): Same.
25153
25154 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25155 Kwok Cheung Yeung <kcy@codesourcery.com>
25156 Julian Brown <julian@codesourcery.com>
25157 Tom de Vries <tom@codesourcery.com>
25158
25159 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25160
25161 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25162
25163 * doc/sourcebuild.texi: Document dg-require-effective-target
25164 llvm_binutils and offload_gcn.
25165
25166 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25167 Kwok Cheung Yeung <kcy@codesourcery.com>
25168 Julian Brown <julian@codesourcery.com>
25169 Tom de Vries <tom@codesourcery.com>
25170
25171 * doc/sourcebuild.texi: Document dg-required-effective-target
25172 exceptions.
25173
25174 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25175 Kwok Cheung Yeung <kcy@codesourcery.com>
25176 Julian Brown <julian@codesourcery.com>
25177 Tom de Vries <tom@codesourcery.com>
25178 Jan Hubicka <hubicka@ucw.cz>
25179 Martin Jambor <mjambor@suse.cz>
25180
25181 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25182 * configure.ac: Check for dlopen.
25183 * configure: Regenerate.
25184
25185 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25186 Kwok Cheung Yeung <kcy@codesourcery.com>
25187 Julian Brown <julian@codesourcery.com>
25188 Tom de Vries <tom@codesourcery.com>
25189 Jan Hubicka <hubicka@ucw.cz>
25190 Martin Jambor <mjambor@suse.cz>
25191
25192 * common/config/gcn/gcn-common.c: New file.
25193 * config/gcn/driver-gcn.c: New file.
25194 * config/gcn/gcn-builtins.def: New file.
25195 * config/gcn/gcn-hsa.h: New file.
25196 * config/gcn/gcn-modes.def: New file.
25197 * config/gcn/gcn-opts.h: New file.
25198 * config/gcn/gcn-passes.def: New file.
25199 * config/gcn/gcn-protos.h: New file.
25200 * config/gcn/gcn-run.c: New file.
25201 * config/gcn/gcn-tree.c: New file.
25202 * config/gcn/gcn.c: New file.
25203 * config/gcn/gcn.h: New file.
25204 * config/gcn/gcn.opt: New file.
25205 * config/gcn/t-gcn-hsa: New file.
25206
25207 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25208 Kwok Cheung Yeung <kcy@codesourcery.com>
25209 Julian Brown <julian@codesourcery.com>
25210 Tom de Vries <tom@codesourcery.com>
25211 Jan Hubicka <hubicka@ucw.cz>
25212 Martin Jambor <mjambor@suse.cz>
25213
25214 * config/gcn/constraints.md: New file.
25215 * config/gcn/gcn-valu.md: New file.
25216 * config/gcn/gcn.md: New file.
25217 * config/gcn/predicates.md: New file.
25218
25219 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25220
25221 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25222 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25223 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25224 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25225
25226 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25227
25228 PR target/88851
25229 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25230 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25231 it and document registers.
25232
25233 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25234
25235 * config/aarch64/aarch64.c (ares_tunings): Define.
25236 * config/aarch64/aarch64-cores.def (ares): Use the above.
25237
25238 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25239
25240 PR target/88794
25241 Revert:
25242 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25243
25244 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25245 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25246 (_mm512_maskz_fixupimm_round_pd): Ditto.
25247 (_mm512_fixupimm_round_ps): Ditto.
25248 (_mm512_maskz_fixupimm_round_ps): Ditto.
25249 (_mm_fixupimm_round_sd): Ditto.
25250 (_mm_maskz_fixupimm_round_sd): Ditto.
25251 (_mm_fixupimm_round_ss): Ditto.
25252 (_mm_maskz_fixupimm_round_ss): Ditto.
25253 (_mm512_fixupimm_pd): Ditto.
25254 (_mm512_maskz_fixupimm_pd): Ditto.
25255 (_mm512_fixupimm_ps): Ditto.
25256 (_mm512_maskz_fixupimm_ps): Ditto.
25257 (_mm_fixupimm_sd): Ditto.
25258 (_mm_maskz_fixupimm_sd): Ditto.
25259 (_mm_fixupimm_ss): Ditto.
25260 (_mm_maskz_fixupimm_ss): Ditto.
25261 (_mm512_mask_fixupimm_round_pd): Update builtin.
25262 (_mm512_mask_fixupimm_round_ps): Ditto.
25263 (_mm_mask_fixupimm_round_sd): Ditto.
25264 (_mm_mask_fixupimm_round_ss): Ditto.
25265 (_mm512_mask_fixupimm_pd): Ditto.
25266 (_mm512_mask_fixupimm_ps): Ditto.
25267 (_mm_mask_fixupimm_sd): Ditto.
25268 (_mm_mask_fixupimm_ss): Ditto.
25269 * config/i386/avx512vlintrin.h:
25270 (_mm256_fixupimm_pd): Update parameters and builtin.
25271 (_mm256_maskz_fixupimm_pd): Ditto.
25272 (_mm256_fixupimm_ps): Ditto.
25273 (_mm256_maskz_fixupimm_ps): Ditto.
25274 (_mm_fixupimm_pd): Ditto.
25275 (_mm_maskz_fixupimm_pd): Ditto.
25276 (_mm_fixupimm_ps): Ditto.
25277 (_mm_maskz_fixupimm_ps): Ditto.
25278 (_mm256_mask_fixupimm_pd): Update builtin.
25279 (_mm256_mask_fixupimm_ps): Ditto.
25280 (_mm_mask_fixupimm_pd): Ditto.
25281 (_mm_mask_fixupimm_ps): Ditto.
25282 * config/i386/i386-builtin-types.def: Add new types and remove
25283 useless ones.
25284 * config/i386/i386-builtin.def: Update builtin definitions.
25285 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25286 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25287 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25288 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25289 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25290 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25291 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25292 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25293 * config/i386/subst.md:
25294 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25295 (round_saeonly_sd_mask_op4): Ditto.
25296 (round_saeonly_expand_operand5): Ditto.
25297 (round_saeonly_expand): Update.
25298
25299 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25300
25301 PR target/88794
25302 Revert:
25303 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25304
25305 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25306 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25307 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25308 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25309 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25310 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25311 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25312
25313 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25314
25315 PR target/88794
25316 Revert:
25317 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25318
25319 PR target/88489
25320 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25321 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25322 instead of UNSPEC_FIXUPIMM.
25323
25324 2019-01-17 Richard Biener <rguenther@suse.de>
25325
25326 PR lto/86736
25327 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25328 and friends for the LTO part of debug info.
25329
25330 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25331
25332 PR tree-optimization/86214
25333 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25334 if x == y.
25335
25336 PR rtl-optimization/88870
25337 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25338 throw if we can't alter the cfg or delete dead exceptions.
25339 (mark_insn): Don't call find_call_stack_args for such calls.
25340
25341 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25342
25343 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25344 prototypes for vec_st.
25345 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25346 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25347 mainly on signed/unsigned long long and double.
25348
25349 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25350
25351 PR target/88861
25352 * combine.c (delete_noop_moves): Convert to "bool" return,
25353 returning true if any edges are eliminated.
25354 (combine_instructions): Also return true if delete_noop_moves
25355 returns true.
25356
25357 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25358
25359 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25360 correct max nunits for endian swap.
25361 (aarch64_expand_fcmla_builtin): Correct subreg code.
25362 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25363 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25364 lane endianness.
25365
25366 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25367
25368 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25369 Handle split indirect COMPLEX_TYPE arguments.
25370
25371 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25372
25373 PR target/86891
25374 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25375 bit is set by add and compare.
25376 (CC_ADC): New CC_MODE.
25377 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25378 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25379 comparison. Add detection for CC_ADCmode.
25380 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25381 CC_ADCmode.
25382 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25383 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25384 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25385 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25386 to eliminate the need for zero-extending the operands.
25387 (add<mode>3_compareC_imm): Delete. Merge into ...
25388 (add<mode>3_compareC): ... this. Restructure the comparison to
25389 eliminate the need for zero-extending the operands.
25390 (add<mode>3_carryin): Use LTU for the overflow detection.
25391 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25392 Reexpress comparison for overflow.
25393 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25394 (add<mode>3_carryinC): Likewise.
25395 (add<mode>3_carryinV): Use LTU for carry between partials.
25396 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25397 handling of CC_Cmode and add CC_ADCmode.
25398 (aarch64_borrow_operation): Likewise.
25399
25400 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25401
25402 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25403 Remove patternmode.
25404 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25405 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25406 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25407 Remove endianness conversion.
25408
25409 2019-01-16 Martin Liska <mliska@suse.cz>
25410
25411 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25412 for GCC driver.
25413 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25414 a new argument.
25415 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25416 (path_prefix_reset): Move up in the source file.
25417 (find_fortran_preinclude_file): Make complex search for the
25418 fortran header files.
25419
25420 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25421
25422 * godump.c (go_output_typedef): When outputting a typedef, refer
25423 to the underlying type by its name and not its structure.
25424
25425 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25426
25427 PR c++/88795
25428 * tree.c (build_function_type): Assert that arg_types is not
25429 error_mark_node.
25430
25431 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25432
25433 PR inline-asm/52813
25434 * doc/extend.texi: Document that listing the stack pointer in the
25435 clobber list of an asm is a deprecated feature.
25436 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25437 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25438 warning instead of an error for clobbers of the stack pointer.
25439 Add a note explaining why.
25440
25441 2019-01-15 Richard Biener <rguenther@suse.de>
25442
25443 PR debug/88046
25444 * dwarf2out.c (gen_member_die): Do not generate inheritance
25445 DIEs late.
25446
25447 2019-01-15 Richard Biener <rguenther@suse.de>
25448
25449 PR tree-optimization/88855
25450 * tree-if-conv.c (combine_blocks): Collect
25451 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25452
25453 2019-01-15 Tom de Vries <tdevries@suse.de>
25454
25455 PR target/80547
25456 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25457 lhs == NULL_TREE for gang-level reduction.
25458
25459 2019-01-15 Richard Biener <rguenther@suse.de>
25460 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25461
25462 PR ipa/88788
25463 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25464 return true if SSA_NAME is already marked in visited bitmap.
25465 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25466
25467 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25468
25469 PR tree-optimization/88775
25470 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25471 equal == 0 equality pointer comparisons some more if compared in
25472 integral types and either one points to an automatic var and the
25473 other to a global, or we can prove at least one points to the middle
25474 or both point to start or both point to end.
25475
25476 2019-01-14 Andi Kleen <ak@linux.intel.com>
25477
25478 * Makefile.in: Lower autofdo sampling rate by 10x.
25479 * Makefile.tpl: Dito.
25480
25481 2019-01-14 Tom Honermann <tom@honermann.net>
25482
25483 * defaults.h: Define CHAR8_TYPE.
25484
25485 2019-01-14 Martin Sebor <msebor@redhat.com>
25486
25487 PR target/88638
25488 * doc/extend.texi (Darwin Format Checks): Clarify.
25489
25490 2019-01-14 Richard Biener <rguenther@suse.de>
25491
25492 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25493 whether we are in (simplify ...) or (match ...) context.
25494
25495 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25496
25497 PR rtl-optimization/88796
25498 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25499 * cfgexpand.c (stack_protect_prologue): Initialize
25500 crtl->stack_protect_guard_decl.
25501 * function.c (stack_protect_epilogue): Use it instead of calling
25502 targetm.stack_protect_guard again.
25503 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25504 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25505 crtl->stack_protect_guard_decl.
25506 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25507 on the returned MEM_EXPR.
25508
25509 2019-01-12 Tom de Vries <tdevries@suse.de>
25510
25511 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25512 vector length using -fopenacc-dim.
25513
25514 2019-01-12 Tom de Vries <tdevries@suse.de>
25515
25516 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25517 lengths into account.
25518
25519 2019-01-12 Svante Signell <svante.signell@gmail.com>
25520
25521 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25522 (TARGET_CAN_SPLIT_STACK): Define.
25523 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25524
25525 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25526
25527 * params.def (inline-unit-growth): Set to 40.
25528
25529 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25530
25531 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25532
25533 2019-01-12 Tom de Vries <tdevries@suse.de>
25534
25535 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25536 region calling vector-partitionable routine, set default_vector_length
25537 to WARP_SIZE.
25538
25539 2019-01-12 Tom de Vries <tdevries@suse.de>
25540
25541 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25542 variable default_vector_length.
25543
25544 2019-01-12 Tom de Vries <tdevries@suse.de>
25545
25546 PR middle-end/88703
25547 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25548 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25549 dimensions limits.
25550
25551 2019-01-12 Tom de Vries <tdevries@suse.de>
25552
25553 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25554 (nvptx_goacc_validate_dims): Add used parameter.
25555 * doc/tm.texi: Regenerate.
25556 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25557 argument to call to targetm.goacc.validate_dims.
25558 (default_goacc_validate_dims): Add used
25559 parameter.
25560 * target.def (validate_dims): Add used parameter in DEFHOOK.
25561 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25562
25563 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25564
25565 PR middle-end/85956
25566 PR lto/88733
25567 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25568 field.
25569 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25570 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25571 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25572 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25573
25574 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25575
25576 PR rtl-optimization/87305
25577 * lra-assigns.c
25578 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25579 for little endian pseudos used as paradoxical subreg.
25580
25581 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25582
25583 PR tree-optimization/88693
25584 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25585 for STRING_CSTs that don't contain any NUL characters in the first
25586 TREE_STRING_LENGTH bytes.
25587
25588 2019-01-11 Alan Modra <amodra@gmail.com>
25589
25590 PR 88777
25591 PR 88614
25592 * genattrtab.c (min_fn): Don't translate values.
25593 (min_attr_value): Return INT_MAX when the value can't be calculated.
25594 Return minimum among any values that can be calculated.
25595 (max_attr_value): Adjust.
25596
25597 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25598
25599 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25600
25601 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25602
25603 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25604 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25605 (aarch64_return_call_with_max_clobbers): New function.
25606 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25607 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25608 argument.
25609 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25610 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25611 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25612 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25613 * cselib.c (cselib_process_insn): Add argument to
25614 targetm.hard_regno_call_part_clobbered call.
25615 * ira-conflicts.c (ira_build_conflicts): Ditto.
25616 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25617 * lra-constraints.c (inherit_reload_reg): Ditto.
25618 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25619 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25620 argument. Call targetm.return_call_with_max_clobbers.
25621 Add argument to targetm.hard_regno_call_part_clobbered call.
25622 (calls_have_same_clobbers_p): New function.
25623 (process_bb_lives): Add call_insn and last_call_insn variables.
25624 Pass call_insn to check_pseudos_live_through_calls.
25625 Modify if stmt to check targetm.return_call_with_max_clobbers.
25626 Update setting of flush variable.
25627 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25628 to false.
25629 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25630 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25631 targetm.hard_regno_call_part_clobbered call.
25632 * reginfo.c (choose_hard_reg_mode): Ditto.
25633 * regrename.c (check_new_reg_p): Ditto.
25634 * reload.c (find_equiv_reg): Ditto.
25635 * reload1.c (emit_reload_insns): Ditto.
25636 * sched-deps.c (deps_analyze_insn): Ditto.
25637 * sel-sched.c (init_regs_for_mode): Ditto.
25638 (mark_unavailable_hard_regs): Ditto.
25639 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25640 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25641 (return_call_with_max_clobbers): New target function.
25642 * doc/tm.texi: Regenerate.
25643 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25644 * hooks.c (hook_bool_uint_mode_false): Change to
25645 hook_bool_insn_uint_mode_false.
25646 * hooks.h (hook_bool_uint_mode_false): Ditto.
25647
25648 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25649
25650 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25651 (aarch64_remove_extra_call_preserved_regs): New function.
25652 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25653 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25654 * doc/tm.texi: Regenerate.
25655 * final.c (get_call_reg_set_usage): Call new hook.
25656 * target.def (remove_extra_call_preserved_regs): New hook.
25657 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25658 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25659
25660 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25661
25662 PR bootstrap/88714
25663 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25664 inside of pass_combine_1 dump rather than pass_profile_1.
25665
25666 2019-01-11 Tom de Vries <tdevries@suse.de>
25667
25668 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25669 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25670 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25671 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25672 num_workers 16.
25673
25674 2019-01-11 Tom de Vries <tdevries@suse.de>
25675
25676 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25677
25678 2019-01-11 Jan Beulich <jbeulich@suse.com>
25679
25680 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25681 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25682 sse2_cvtsi2sd): Add {l}.
25683 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25684 syntax.
25685
25686 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25687
25688 PR target/88785
25689 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25690 define_expand.
25691 (*float<floatunssuffix>v2div2sf2): New define_insn.
25692 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25693 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25694 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25695 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25696 match_operands with "const0_operand" "C".
25697
25698 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25699
25700 * config/aarch64/aarch64-builtins.c
25701 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25702 (aarch64_init_simd_builtins): ...Here
25703
25704 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25705
25706 PR rtl-optimization/87305
25707 * lra-assigns.c
25708 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25709 allocation for big endian pseudos used as paradoxical subregs and
25710 spill them if it is wrong.
25711 * lra-constraints.c (lra_constraints): Add a comment.
25712
25713 2019-01-10 Richard Biener <rguenther@suse.de>
25714
25715 PR tree-optimization/88792
25716 * tree-ssa-pre.c (get_representative_for): Do not return a
25717 value-number here.
25718
25719 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25720
25721 PR middle-end/84877
25722 PR bootstrap/88450
25723 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25724 (assign_parm_setup_block): Do the argument slot realignment here
25725 instead.
25726
25727 2019-01-10 Stefan Agner <stefan@agner.ch>
25728
25729 PR target/88648
25730 * config/arm/arm.c (arm_option_override_internal): Force
25731 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25732
25733 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25734
25735 PR c/88568
25736 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25737 DECL_EXTERNAL.
25738
25739 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25740
25741 * config/arm/arm-builtins.c
25742 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25743 (MAC_LANE_PAIR_QUALIFIERS): New.
25744 (arm_expand_builtin_args): Use it.
25745 (arm_expand_builtin_1): Likewise.
25746 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25747 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25748 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25749 * config/arm/arm_neon.h:
25750 (vcadd_rot90_f16): New.
25751 (vcaddq_rot90_f16): New.
25752 (vcadd_rot270_f16): New.
25753 (vcaddq_rot270_f16): New.
25754 (vcmla_f16): New.
25755 (vcmlaq_f16): New.
25756 (vcmla_lane_f16): New.
25757 (vcmla_laneq_f16): New.
25758 (vcmlaq_lane_f16): New.
25759 (vcmlaq_laneq_f16): New.
25760 (vcmla_rot90_f16): New.
25761 (vcmlaq_rot90_f16): New.
25762 (vcmla_rot90_lane_f16): New.
25763 (vcmla_rot90_laneq_f16): New.
25764 (vcmlaq_rot90_lane_f16): New.
25765 (vcmlaq_rot90_laneq_f16): New.
25766 (vcmla_rot180_f16): New.
25767 (vcmlaq_rot180_f16): New.
25768 (vcmla_rot180_lane_f16): New.
25769 (vcmla_rot180_laneq_f16): New.
25770 (vcmlaq_rot180_lane_f16): New.
25771 (vcmlaq_rot180_laneq_f16): New.
25772 (vcmla_rot270_f16): New.
25773 (vcmlaq_rot270_f16): New.
25774 (vcmla_rot270_lane_f16): New.
25775 (vcmla_rot270_laneq_f16): New.
25776 (vcmlaq_rot270_lane_f16): New.
25777 (vcmlaq_rot270_laneq_f16): New.
25778 (vcadd_rot90_f32): New.
25779 (vcaddq_rot90_f32): New.
25780 (vcadd_rot270_f32): New.
25781 (vcaddq_rot270_f32): New.
25782 (vcmla_f32): New.
25783 (vcmlaq_f32): New.
25784 (vcmla_lane_f32): New.
25785 (vcmla_laneq_f32): New.
25786 (vcmlaq_lane_f32): New.
25787 (vcmlaq_laneq_f32): New.
25788 (vcmla_rot90_f32): New.
25789 (vcmlaq_rot90_f32): New.
25790 (vcmla_rot90_lane_f32): New.
25791 (vcmla_rot90_laneq_f32): New.
25792 (vcmlaq_rot90_lane_f32): New.
25793 (vcmlaq_rot90_laneq_f32): New.
25794 (vcmla_rot180_f32): New.
25795 (vcmlaq_rot180_f32): New.
25796 (vcmla_rot180_lane_f32): New.
25797 (vcmla_rot180_laneq_f32): New.
25798 (vcmlaq_rot180_lane_f32): New.
25799 (vcmlaq_rot180_laneq_f32): New.
25800 (vcmla_rot270_f32): New.
25801 (vcmlaq_rot270_f32): New.
25802 (vcmla_rot270_lane_f32): New.
25803 (vcmla_rot270_laneq_f32): New.
25804 (vcmlaq_rot270_lane_f32): New.
25805 (vcmlaq_rot270_laneq_f32): New.
25806 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25807 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25808 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25809 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25810 vcmlaq_lane270): New.
25811 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25812 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25813 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25814 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25815 (arm_option_reconfigure_globals): Use them.
25816 * config/arm/iterators.md (VDF, VQ_HSF): New.
25817 (VCADD, VCMLA): New.
25818 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25819 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25820 New.
25821 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25822 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25823
25824 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25825
25826 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25827 Add qualifier_lane_pair_index.
25828 (emit-rtl.h): Include.
25829 (TYPES_QUADOP_LANE_PAIR): New.
25830 (aarch64_simd_expand_args): Use it.
25831 (aarch64_simd_expand_builtin): Likewise.
25832 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25833 New.
25834 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25835 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25836 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25837 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25838 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25839 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25840 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25841 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25842 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25843 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25844 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25845 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25846 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25847 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25848 Add __ARM_FEATURE_COMPLEX.
25849 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25850 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25851 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25852 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25853 fcmlaq_lane270): New.
25854 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25855 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25856 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25857 * config/aarch64/arm_neon.h:
25858 (vcadd_rot90_f16): New.
25859 (vcaddq_rot90_f16): New.
25860 (vcadd_rot270_f16): New.
25861 (vcaddq_rot270_f16): New.
25862 (vcmla_f16): New.
25863 (vcmlaq_f16): New.
25864 (vcmla_lane_f16): New.
25865 (vcmla_laneq_f16): New.
25866 (vcmlaq_lane_f16): New.
25867 (vcmlaq_rot90_lane_f16): New.
25868 (vcmla_rot90_laneq_f16): New.
25869 (vcmla_rot90_lane_f16): New.
25870 (vcmlaq_rot90_f16): New.
25871 (vcmla_rot90_f16): New.
25872 (vcmlaq_laneq_f16): New.
25873 (vcmla_rot180_laneq_f16): New.
25874 (vcmla_rot180_lane_f16): New.
25875 (vcmlaq_rot180_f16): New.
25876 (vcmla_rot180_f16): New.
25877 (vcmlaq_rot90_laneq_f16): New.
25878 (vcmlaq_rot270_laneq_f16): New.
25879 (vcmlaq_rot270_lane_f16): New.
25880 (vcmla_rot270_laneq_f16): New.
25881 (vcmlaq_rot270_f16): New.
25882 (vcmla_rot270_f16): New.
25883 (vcmlaq_rot180_laneq_f16): New.
25884 (vcmlaq_rot180_lane_f16): New.
25885 (vcmla_rot270_lane_f16): New.
25886 (vcadd_rot90_f32): New.
25887 (vcaddq_rot90_f32): New.
25888 (vcaddq_rot90_f64): New.
25889 (vcadd_rot270_f32): New.
25890 (vcaddq_rot270_f32): New.
25891 (vcaddq_rot270_f64): New.
25892 (vcmla_f32): New.
25893 (vcmlaq_f32): New.
25894 (vcmlaq_f64): New.
25895 (vcmla_lane_f32): New.
25896 (vcmla_laneq_f32): New.
25897 (vcmlaq_lane_f32): New.
25898 (vcmlaq_laneq_f32): New.
25899 (vcmla_rot90_f32): New.
25900 (vcmlaq_rot90_f32): New.
25901 (vcmlaq_rot90_f64): New.
25902 (vcmla_rot90_lane_f32): New.
25903 (vcmla_rot90_laneq_f32): New.
25904 (vcmlaq_rot90_lane_f32): New.
25905 (vcmlaq_rot90_laneq_f32): New.
25906 (vcmla_rot180_f32): New.
25907 (vcmlaq_rot180_f32): New.
25908 (vcmlaq_rot180_f64): New.
25909 (vcmla_rot180_lane_f32): New.
25910 (vcmla_rot180_laneq_f32): New.
25911 (vcmlaq_rot180_lane_f32): New.
25912 (vcmlaq_rot180_laneq_f32): New.
25913 (vcmla_rot270_f32): New.
25914 (vcmlaq_rot270_f32): New.
25915 (vcmlaq_rot270_f64): New.
25916 (vcmla_rot270_lane_f32): New.
25917 (vcmla_rot270_laneq_f32): New.
25918 (vcmlaq_rot270_lane_f32): New.
25919 (vcmlaq_rot270_laneq_f32): New.
25920 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25921 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25922 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25923 (FCADD, FCMLA): New.
25924 (rot): New.
25925 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25926
25927 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25928
25929 PR other/16615
25930
25931 * config/pa/pa.c: Change "can not" to "cannot".
25932 * gimple-ssa-evrp-analyze.c: Likewise.
25933 * ipa-icf.c: Likewise.
25934 * ipa-polymorphic-call.c: Likewise.
25935 * ipa-pure-const.c: Likewise.
25936 * lra-constraints.c: Likewise.
25937 * lra-remat.c: Likewise.
25938 * reload1.c: Likewise.
25939 * reorg.c: Likewise.
25940 * tree-ssa-uninit.c: Likewise.
25941
25942 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25943
25944 PR other/16615
25945
25946 * Makefile.in: Mechanically replace "can not" with "cannot".
25947 * alias.c: Likewise.
25948 * builtins.c: Likewise.
25949 * calls.c: Likewise.
25950 * cgraph.c: Likewise.
25951 * cgraph.h: Likewise.
25952 * cgraphclones.c: Likewise.
25953 * cgraphunit.c: Likewise.
25954 * combine-stack-adj.c: Likewise.
25955 * combine.c: Likewise.
25956 * common/config/i386/i386-common.c: Likewise.
25957 * config/aarch64/aarch64.c: Likewise.
25958 * config/alpha/sync.md: Likewise.
25959 * config/arc/arc.c: Likewise.
25960 * config/arc/predicates.md: Likewise.
25961 * config/arm/arm-c.c: Likewise.
25962 * config/arm/arm.c: Likewise.
25963 * config/arm/arm.h: Likewise.
25964 * config/arm/arm.md: Likewise.
25965 * config/arm/cortex-r4f.md: Likewise.
25966 * config/csky/csky.c: Likewise.
25967 * config/csky/csky.h: Likewise.
25968 * config/darwin-f.c: Likewise.
25969 * config/epiphany/epiphany.md: Likewise.
25970 * config/i386/i386.c: Likewise.
25971 * config/i386/sol2.h: Likewise.
25972 * config/m68k/m68k.c: Likewise.
25973 * config/mcore/mcore.h: Likewise.
25974 * config/microblaze/microblaze.md: Likewise.
25975 * config/mips/20kc.md: Likewise.
25976 * config/mips/sb1.md: Likewise.
25977 * config/nds32/nds32.c: Likewise.
25978 * config/nds32/predicates.md: Likewise.
25979 * config/pa/pa.c: Likewise.
25980 * config/rs6000/e300c2c3.md: Likewise.
25981 * config/rs6000/rs6000.c: Likewise.
25982 * config/s390/s390.h: Likewise.
25983 * config/sh/sh.c: Likewise.
25984 * config/sh/sh.md: Likewise.
25985 * config/spu/vmx2spu.h: Likewise.
25986 * cprop.c: Likewise.
25987 * dbxout.c: Likewise.
25988 * df-scan.c: Likewise.
25989 * doc/cfg.texi: Likewise.
25990 * doc/extend.texi: Likewise.
25991 * doc/fragments.texi: Likewise.
25992 * doc/gty.texi: Likewise.
25993 * doc/invoke.texi: Likewise.
25994 * doc/lto.texi: Likewise.
25995 * doc/md.texi: Likewise.
25996 * doc/objc.texi: Likewise.
25997 * doc/rtl.texi: Likewise.
25998 * doc/tm.texi: Likewise.
25999 * dse.c: Likewise.
26000 * emit-rtl.c: Likewise.
26001 * emit-rtl.h: Likewise.
26002 * except.c: Likewise.
26003 * expmed.c: Likewise.
26004 * expr.c: Likewise.
26005 * fold-const.c: Likewise.
26006 * genautomata.c: Likewise.
26007 * gimple-fold.c: Likewise.
26008 * hard-reg-set.h: Likewise.
26009 * ifcvt.c: Likewise.
26010 * ipa-comdats.c: Likewise.
26011 * ipa-cp.c: Likewise.
26012 * ipa-devirt.c: Likewise.
26013 * ipa-fnsummary.c: Likewise.
26014 * ipa-icf.c: Likewise.
26015 * ipa-inline-transform.c: Likewise.
26016 * ipa-inline.c: Likewise.
26017 * ipa-polymorphic-call.c: Likewise.
26018 * ipa-profile.c: Likewise.
26019 * ipa-prop.c: Likewise.
26020 * ipa-pure-const.c: Likewise.
26021 * ipa-reference.c: Likewise.
26022 * ipa-split.c: Likewise.
26023 * ipa-visibility.c: Likewise.
26024 * ipa.c: Likewise.
26025 * ira-build.c: Likewise.
26026 * ira-color.c: Likewise.
26027 * ira-conflicts.c: Likewise.
26028 * ira-costs.c: Likewise.
26029 * ira-int.h: Likewise.
26030 * ira-lives.c: Likewise.
26031 * ira.c: Likewise.
26032 * ira.h: Likewise.
26033 * loop-invariant.c: Likewise.
26034 * loop-unroll.c: Likewise.
26035 * lower-subreg.c: Likewise.
26036 * lra-assigns.c: Likewise.
26037 * lra-constraints.c: Likewise.
26038 * lra-eliminations.c: Likewise.
26039 * lra-lives.c: Likewise.
26040 * lra-remat.c: Likewise.
26041 * lra-spills.c: Likewise.
26042 * lra.c: Likewise.
26043 * lto-cgraph.c: Likewise.
26044 * lto-streamer-out.c: Likewise.
26045 * postreload-gcse.c: Likewise.
26046 * predict.c: Likewise.
26047 * profile-count.h: Likewise.
26048 * profile.c: Likewise.
26049 * recog.c: Likewise.
26050 * ree.c: Likewise.
26051 * reload.c: Likewise.
26052 * reload1.c: Likewise.
26053 * reorg.c: Likewise.
26054 * resource.c: Likewise.
26055 * rtl.def: Likewise.
26056 * rtl.h: Likewise.
26057 * rtlanal.c: Likewise.
26058 * sched-deps.c: Likewise.
26059 * sched-ebb.c: Likewise.
26060 * sched-rgn.c: Likewise.
26061 * sel-sched-ir.c: Likewise.
26062 * sel-sched.c: Likewise.
26063 * shrink-wrap.c: Likewise.
26064 * simplify-rtx.c: Likewise.
26065 * symtab.c: Likewise.
26066 * target.def: Likewise.
26067 * toplev.c: Likewise.
26068 * tree-call-cdce.c: Likewise.
26069 * tree-cfg.c: Likewise.
26070 * tree-complex.c: Likewise.
26071 * tree-core.h: Likewise.
26072 * tree-eh.c: Likewise.
26073 * tree-inline.c: Likewise.
26074 * tree-loop-distribution.c: Likewise.
26075 * tree-nrv.c: Likewise.
26076 * tree-profile.c: Likewise.
26077 * tree-sra.c: Likewise.
26078 * tree-ssa-alias.c: Likewise.
26079 * tree-ssa-dce.c: Likewise.
26080 * tree-ssa-dom.c: Likewise.
26081 * tree-ssa-forwprop.c: Likewise.
26082 * tree-ssa-loop-im.c: Likewise.
26083 * tree-ssa-loop-ivcanon.c: Likewise.
26084 * tree-ssa-loop-ivopts.c: Likewise.
26085 * tree-ssa-loop-niter.c: Likewise.
26086 * tree-ssa-phionlycprop.c: Likewise.
26087 * tree-ssa-phiopt.c: Likewise.
26088 * tree-ssa-propagate.c: Likewise.
26089 * tree-ssa-threadedge.c: Likewise.
26090 * tree-ssa-threadupdate.c: Likewise.
26091 * tree-ssa-uninit.c: Likewise.
26092 * tree-ssanames.c: Likewise.
26093 * tree-streamer-out.c: Likewise.
26094 * tree.c: Likewise.
26095 * tree.h: Likewise.
26096 * vr-values.c: Likewise.
26097
26098 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26099
26100 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26101 (ix86_split_xorsign): Ditto.
26102 * config/i386/i386.c (ix86_expand_xorsign): New function.
26103 (ix86_split_xorsign): Ditto.
26104 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26105 (xorsign<mode>3): New expander.
26106 (xorsign<mode>3_1): New insn_and_split pattern.
26107 * config/i386/sse.md (xorsign<mode>3): New expander.
26108
26109 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26110
26111 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26112 (*tablejump_sp64): Likewise.
26113 (*tablejump<P:mode>): ...this.
26114 (*call_address_sp32): Merge into...
26115 (*call_address_sp64): Likewise.
26116 (*call_address<P:mode>): ...this.
26117 (*call_symbolic_sp32): Merge into...
26118 (*call_symbolic_sp64): Likewise.
26119 (*call_symbolic<P:mode>): ...this.
26120 (call_value): Remove constraint and add predicate.
26121 (*call_value_address_sp32): Merge into...
26122 (*call_value_address_sp64): Likewise.
26123 (*call_value_address<P:mode>): ...this.
26124 (*call_value_symbolic_sp32): Merge into...
26125 (*call_value_symbolic_sp64): Likewise.
26126 (*call_value_symbolic<P:mode>): ...this.
26127 (*sibcall_symbolic_sp32): Merge into...
26128 (*sibcall_symbolic_sp64): Likewise.
26129 (*sibcall_symbolic<P:mode>): ...this.
26130 (sibcall_value): Remove constraint and add predicate.
26131 (*sibcall_value_symbolic_sp32): Merge into...
26132 (*sibcall_value_symbolic_sp64): Likewise.
26133 (*sibcall_value_symbolic<P:mode>): ...this.
26134 (window_save): Minor tweak.
26135 (*branch_sp32): Merge into...
26136 (*branch_sp64): Likewise.
26137 (*branch<P:mode>): ...this.
26138
26139 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26140 James Clarke <jrtc27@jrtc27.com>
26141
26142 PR target/84010
26143 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26144 consistently in TLS address generation and adjust code to the renaming
26145 of patterns. Mark calls to __tls_get_addr as const.
26146 * config/sparc/sparc.md (tgd_hi22): Turn into...
26147 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26148 (tgd_lo10): Turn into...
26149 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26150 (tgd_add32): Merge into...
26151 (tgd_add64): Likewise.
26152 (tgd_add<P:mode>): ...this and use Pmode throughout.
26153 (tldm_hi22): Turn into...
26154 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26155 (tldm_lo10): Turn into...
26156 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26157 (tldm_add32): Merge into...
26158 (tldm_add64): Likewise.
26159 (tldm_add<P:mode>): ...this and use Pmode throughout.
26160 (tldm_call32): Merge into...
26161 (tldm_call64): Likewise.
26162 (tldm_call<P:mode>): ...this and use Pmode throughout.
26163 (tldo_hix22): Turn into...
26164 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26165 (tldo_lox10): Turn into...
26166 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26167 (tldo_add32): Merge into...
26168 (tldo_add64): Likewise.
26169 (tldo_add<P:mode>): ...this and use Pmode throughout.
26170 (tie_hi22): Turn into...
26171 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26172 (tie_lo10): Turn into...
26173 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26174 (tie_ld64): Use DImode throughout.
26175 (tie_add32): Merge into...
26176 (tie_add64): Likewise.
26177 (tie_add<P:mode>): ...this and use Pmode throughout.
26178 (tle_hix22_sp32): Merge into...
26179 (tle_hix22_sp64): Likewise.
26180 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26181 (tle_lox22_sp32): Merge into...
26182 (tle_lox22_sp64): Likewise.
26183 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26184 (*tldo_ldub_sp32): Merge into...
26185 (*tldo_ldub_sp64): Likewise.
26186 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26187 (*tldo_ldub1_sp32): Merge into...
26188 (*tldo_ldub1_sp64): Likewise.
26189 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26190 (*tldo_ldub2_sp32): Merge into...
26191 (*tldo_ldub2_sp64): Likewise.
26192 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26193 (*tldo_ldsb1_sp32): Merge into...
26194 (*tldo_ldsb1_sp64): Likewise.
26195 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26196 (*tldo_ldsb2_sp32): Merge into...
26197 (*tldo_ldsb2_sp64): Likewise.
26198 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26199 (*tldo_ldub3_sp64): Use DImode throughout.
26200 (*tldo_ldsb3_sp64): Likewise.
26201 (*tldo_lduh_sp32): Merge into...
26202 (*tldo_lduh_sp64): Likewise.
26203 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26204 (*tldo_lduh1_sp32): Merge into...
26205 (*tldo_lduh1_sp64): Likewise.
26206 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26207 (*tldo_ldsh1_sp32): Merge into...
26208 (*tldo_ldsh1_sp64): Likewise.
26209 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26210 (*tldo_lduh2_sp64): Use DImode throughout.
26211 (*tldo_ldsh2_sp64): Likewise.
26212 (*tldo_lduw_sp32): Merge into...
26213 (*tldo_lduw_sp64): Likewise.
26214 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26215 (*tldo_lduw1_sp64): Use DImode throughout.
26216 (*tldo_ldsw1_sp64): Likewise.
26217 (*tldo_ldx_sp64): Likewise.
26218 (*tldo_stb_sp32): Merge into...
26219 (*tldo_stb_sp64): Likewise.
26220 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26221 (*tldo_sth_sp32): Merge into...
26222 (*tldo_sth_sp64): Likewise.
26223 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26224 (*tldo_stw_sp32): Merge into...
26225 (*tldo_stw_sp64): Likewise.
26226 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26227 (*tldo_stx_sp64): Use DImode throughout.
26228
26229 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26230
26231 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26232 check configure option to set BTI and Return Address Signing.
26233 * configure.ac: Add --enable-standard-branch-protection and
26234 --disable-standard-branch-protection.
26235 * configure: Regenerated.
26236 * doc/install.texi: Document the same.
26237
26238 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26239 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26240
26241 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26242 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26243 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26244 if bti is enabled.
26245 * config/aarch64/aarch64-bti-insert.c: New file.
26246 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26247 pass.
26248 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26249 new bti pass.
26250 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26251 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26252 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26253 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26254
26255 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26256
26257 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26258 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26259 Disable bti for -mbranch-protection=none.
26260 (aarch64_handle_standard_branch_protection): Enable bti for
26261 -mbranch-protection=standard.
26262 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26263 -mbranch-protection.
26264 (aarch64_bti_enabled): Check if bti is enabled.
26265 * config/aarch64/aarch64.opt: Declare target variable.
26266 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26267
26268 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26269
26270 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26271 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26272 (aarch64_expand_epilogue): Likewise.
26273 (aarch64_output_mi_thunk): Likewise.
26274 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26275 TAILCALL_ADDR_REGS to x16 and x17.
26276 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26277
26278 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26279
26280 * config/aarch64/aarch64-option-extensions.def: Define
26281 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26282 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26283 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26284 (AARCH64_FL_PREDRES): New.
26285 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26286 AARCH64_FL_PREDRES by default.
26287 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26288
26289 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26290
26291 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26292 ARMv8.5-A.
26293 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26294 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26295 * doc/invoke.texi: Document ARMv8.5-A.
26296
26297 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26298
26299 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26300 (xorsign<mode>3): Likewise.
26301
26302 2019-01-09 Jelinek <jakub@redhat.com>
26303
26304 PR middle-end/88758
26305 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26306 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26307
26308 PR rtl-optimization/88331
26309 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26310 not currently_expanding_to_rtl.
26311
26312 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26313
26314 * doc/invoke.texi (-Os): Remove trailing spaces.
26315 (-finline-functions): Remove reference to -O2.
26316
26317 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26318
26319 PR rtl-optimization/79593
26320 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26321
26322 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26323 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26324
26325 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26326
26327 PR bootstrap/88721
26328 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26329 to -1 on entry.
26330
26331 PR debug/88723
26332 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26333 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26334
26335 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26336
26337 PR target/88717
26338 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26339 ix86_avx_u128_mode_entry.
26340
26341 2019-01-08 Martin Liska <mliska@suse.cz>
26342
26343 PR tree-optimization/88753
26344 * tree-switch-conversion.c (switch_conversion::build_one_array):
26345 Come up with local variable constructor. Convert first to
26346 type of constructor values.
26347
26348 2019-01-08 Richard Biener <rguenther@suse.de>
26349
26350 PR tree-optimization/86554
26351 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26352 rpo_avail): Move earlier.
26353 (visit_nary_op): When value-numbering to expressions
26354 with different overflow behavior make sure there's an
26355 available expression on the path.
26356
26357 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26358
26359 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26360 aarch64_parse_branch_protection,
26361 struct aarch64_branch_protect_type,
26362 aarch64_handle_no_branch_protection,
26363 aarch64_handle_standard_branch_protection,
26364 aarch64_validate_mbranch_protection,
26365 aarch64_handle_pac_ret_protection,
26366 aarch64_handle_attr_branch_protection,
26367 accepted_branch_protection_string,
26368 aarch64_pac_ret_subtypes,
26369 aarch64_branch_protect_types,
26370 aarch64_handle_pac_ret_leaf): Define.
26371 (aarch64_override_options_after_change_1, aarch64_override_options):
26372 Add check for accepted_branch_protection_string.
26373 (aarch64_option_save): Save accepted_branch_protection_string.
26374 (aarch64_option_restore): Save accepted_branch_protection_string.
26375 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26376 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26377 msign-return-address.
26378 * doc/invoke.texi: Add mbranch-protection.
26379
26380 2019-01-08 Alan Modra <amodra@gmail.com>
26381
26382 PR target/88614
26383 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26384 Delete "unknownp" parameter. Adjust callers. Handle
26385 CONST_INT, PLUS, MINUS, and MULT.
26386 (attr_value_aligned): Renamed from or_attr_value.
26387 (min_attr_value): Return INT_MIN for unhandled rtl case..
26388 (min_fn): ..and translate to INT_MAX here.
26389 (write_length_unit_log): Modify to cope without "unknown".
26390 (write_attr_value): Handle IF_THEN_ELSE.
26391
26392 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26393
26394 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26395 optimization for masked stores.
26396
26397 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26398
26399 PR middle-end/88567
26400 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26401 output vector directly to duplicate_and_interleave instead of
26402 going through a temporary. Postpone insertion of ctor_seq to
26403 the end of the loop.
26404
26405 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26406
26407 PR target/86891
26408 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26409 unsigned_p. Handle signed and unsigned overflow correction as
26410 required.
26411 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26412 prototype.
26413 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26414 for operand 2.
26415 (add<mode>3_compareV_imm): Make this callable for expanding.
26416 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26417 aarch64_plus_operand for operand 2.
26418 (subv<GPI:mode>_insn): New insn pattern.
26419 (subv<GPI:mode>_imm): Likewise.
26420 (negv<GPI:mode>3): New expand pattern.
26421 (negv<GPI:mode>_insn): New insn pattern.
26422 (negv<GPI:mode>_cmp_only): Likewise.
26423 (cmpv<GPI:mode>_insn): Likewise.
26424 (subvti4): Use register_operand for operand 1. Update call to
26425 aarch64_expand_subvti.
26426 (usubvti4): Likewise.
26427 (negvti3): New expand pattern.
26428 (negdi_carryout): New insn pattern.
26429 (negvdi_carryinV): New insn pattern.
26430 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26431 version the named version.
26432 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26433 operands.
26434 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26435 patterns.
26436 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26437 patterns.
26438 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26439 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26440 (sub<mode>3_carryinCV): Delete.
26441 (sub<GPI:mode>3_carryinV): New expand pattern.
26442 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26443
26444 2019-01-07 Richard Biener <rguenther@suse.de>
26445
26446 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26447 of tree_operand_hash.
26448
26449 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26450
26451 PR tree-optimization/88598
26452 * tree.h (single_nonzero_element): Declare.
26453 * tree.c (single_nonzero_element): New function.
26454 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26455 if I is the only nonzero element of CST.
26456
26457 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26458
26459 PR tree-optimization/88598
26460 * tree.h (initializer_each_zero_or_onep): Declare.
26461 * tree.c (initializer_each_zero_or_onep): New function.
26462 (signed_or_unsigned_type_for): Handle float types too.
26463 (unsigned_type_for, signed_type_for): Update comments accordingly.
26464 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26465 x & { 0 or -1, 0 or -1, ... }.
26466
26467 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26468
26469 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26470 with x86_64-pc-linux-gnu.
26471
26472 2019-01-07 Tom de Vries <tdevries@suse.de>
26473
26474 PR target/85486
26475 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26476 function.
26477 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26478 routines.
26479
26480 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26481
26482 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26483 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26484 TARGET_AVX512F as condition.
26485
26486 PR debug/88723
26487 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26488 const_not_ok_for_debug_p target hook.
26489 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26490 on UNSPEC and subexpressions thereof if all subexpressions of the
26491 UNSPEC are CONSTANT_P.
26492
26493 PR tree-optimization/88676
26494 * tree-ssa-phiopt.c (two_value_replacement): New function.
26495 (tree_ssa_phiopt_worker): Call it.
26496
26497 PR sanitizer/88619
26498 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26499 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26500
26501 PR c++/85052
26502 * tree-vect-generic.c: Include insn-config.h and recog.h.
26503 (expand_vector_piecewise): Add defaulted ret_type argument,
26504 if non-NULL, use that in preference to type for the result type.
26505 (expand_vector_parallel): Formatting fix.
26506 (do_vec_conversion, do_vec_narrowing_conversion,
26507 expand_vector_conversion): New functions.
26508 (expand_vector_operations_1): Call expand_vector_conversion
26509 for VEC_CONVERT ifn calls.
26510 * internal-fn.def (VEC_CONVERT): New internal function.
26511 * internal-fn.c (expand_VEC_CONVERT): New function.
26512 * fold-const-call.c (fold_const_vec_convert): New function.
26513 (fold_const_call): Use it for CFN_VEC_CONVERT.
26514 * doc/extend.texi (__builtin_convertvector): Document.
26515
26516 2019-01-07 Tom de Vries <tdevries@suse.de>
26517
26518 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26519 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26520 vector_red_partition, vector_red_sym): New global variables.
26521 (nvptx_option_override): Initialize vector_red_sym.
26522 (nvptx_declare_function_name): Restore red_partition register.
26523 (nvptx_file_end): Emit code to declare the vector reduction variables.
26524 (nvptx_output_red_partition): New function.
26525 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26526 large vector reductions.
26527 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26528 (nvptx_init_builtins): Add VECTOR_ADDR.
26529 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26530 Handle nvptx_expand_shared_addr.
26531 (nvptx_get_shared_red_addr): Add vector argument and handle large
26532 vectors.
26533 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26534 large vectors.
26535 (nvptx_goacc_reduction_init): Likewise.
26536 (nvptx_goacc_reduction_fini): Likewise.
26537 (nvptx_goacc_reduction_teardown): Likewise.
26538 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26539 init,fini,teardown}.
26540 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26541 (nvptx_set_current_function): Init vector_red_partition.
26542 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26543 (nvptx_red_partition): New insn.
26544 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26545
26546 2019-01-07 Tom de Vries <tdevries@suse.de>
26547
26548 PR target/85381
26549 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26550 empty loops.
26551
26552 2019-01-07 Tom de Vries <tdevries@suse.de>
26553
26554 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26555 (nvptx_option_override): Init oacc_bcast_partition.
26556 (nvptx_init_oacc_workers): New function.
26557 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26558 (nvptx_needs_shared_bcast): New function.
26559 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26560 to propagate state.
26561 (nvptx_shared_propagate): Initialize vector bcast partition and
26562 synchronization state.
26563 (nvptx_single): Generalize to enable vectors to use shared-memory
26564 to propagate state.
26565 (nvptx_process_pars): Likewise.
26566 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26567 * config/nvptx/nvptx.h (struct machine_function): Add
26568 bcast_partition and sync_bar members.
26569
26570 2019-01-07 Tom de Vries <tdevries@suse.de>
26571
26572 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26573 (nvptx_apply_dim_limits): New function.
26574 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26575 PTX_WARP_SIZE.
26576
26577 2019-01-07 Tom de Vries <tdevries@suse.de>
26578
26579 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26580 as late as possible.
26581
26582 2019-01-07 Tom de Vries <tdevries@suse.de>
26583
26584 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26585 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26586 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26587 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26588 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26589
26590 2019-01-07 Tom de Vries <tdevries@suse.de>
26591
26592 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26593
26594 2019-01-07 Tom de Vries <tdevries@suse.de>
26595
26596 * omp-offload.c (oacc_get_min_dim): New function.
26597 * omp-offload.h (oacc_get_min_dim): Declare.
26598
26599 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26600
26601 PR target/88521
26602 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26603 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26604
26605 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26606
26607 PR tree-opt/86020
26608 Revert:
26609 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26610
26611 * ipa-inline.c (edge_badness): Use inlined_time instead of
26612 inline_summaries->get.
26613
26614 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26615
26616 * opts.c (enable_fdo_optimizations): Enable
26617 version-loops-for-strides, loop-interchange, unrol-and-jam
26618 and tree-loop-distribution.
26619 * invoke.texi: Document newly enabled options.
26620
26621 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26622
26623 * doc/invoke.texi (max-inline-insns-small): New parameters.
26624 * ipa-inline.c (want_early_inline_function_p): simplify.
26625 (want_inline_small_function_p): Fix pasto from previous patch;
26626 use max-inline-insns-small bound.
26627 * params.def (max-inline-insns-small): New param.
26628 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26629 variables correctly.
26630
26631 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26632
26633 * doc/invoke.texi: Document max-inline-insns-size,
26634 uninlined-function-insns, uninlined-function-time,
26635 uninlined-thunk-insns and uninlined-thunk-time.
26636 * params.def: Add max-inline-insns-size,
26637 uninlined-function-insns, uninlined-function-time,
26638 uninlined-thunk-insns and uninlined-thunk-time.
26639 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26640 new parameters.
26641 * ipa-inline.c (can_inline_edge_by_limits_p,
26642 want_inline_small_function_p): Use new parameters.
26643
26644 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26645
26646 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26647
26648 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26649
26650 PR middle-end/82564
26651 PR target/88620
26652 * expr.c (expand_assignment): For calls returning VLA structures
26653 if to_rtx is not a MEM, force it into a stack temporary.
26654
26655 PR debug/88635
26656 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26657 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26658 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26659 subexpressions of both operands.
26660 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26661 subrtxes are CONSTANT_P.
26662 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26663 2018-11-09 changes.
26664
26665 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26666
26667 * params.def (hot-bb-count-ws-permille): Set to 990.
26668
26669 2019-01-04 Martin Sebor <msebor@redhat.com>
26670
26671 PR c/88546
26672 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26673 leaf.
26674
26675 2019-01-04 Martin Sebor <msebor@redhat.com>
26676
26677 PR c/88363
26678 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26679
26680 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26681
26682 * gdbinit.in: Turn off pagination for the skip commands, restore
26683 it to previous state afterwards.
26684
26685 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26686
26687 PR target/88594
26688 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26689 of GET_MODE (opN) as modes of the libcall arguments.
26690
26691 2019-01-04 Jan Beulich <jbeulich@suse.com>
26692
26693 * config/i386/sse.md
26694 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26695 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26696 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26697 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26698 avx512f_vmcmp<mode>3<round_saeonly_name>,
26699 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26700 avx512f_maskcmp<mode>3,
26701 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26702 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26703 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26704 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26705 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26706 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26707 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26708 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26709 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26710 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26711 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26712 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26713 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26714 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26715 avx512cd_maskb_vec_dup<mode>,
26716 avx512cd_maskw_vec_dup<mode>,
26717 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26718 avx512dq_vmfpclass<mode>,
26719 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26720 instead of =Yk.
26721
26722 2019-01-03 Martin Sebor <msebor@redhat.com>
26723
26724 PR tree-optimization/88659
26725 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26726
26727 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26728
26729 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26730 unaligned vsx and avoid lxvd2x/stxvd2x.
26731 (gen_lvx_v4si_move): New function.
26732
26733 2019-01-03 Tom de Vries <tdevries@suse.de>
26734
26735 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26736 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26737 function.
26738 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26739
26740 2019-01-03 Tom de Vries <tdevries@suse.de>
26741
26742 * config/nvptx/nvptx.c (struct offload_attrs): New.
26743 (populate_offload_attrs): New function. Factor mask extraction out of
26744 nvptx_reorg. Add extraction of dimensions.
26745 (nvptx_reorg): Use populate_offload_attrs.
26746
26747 2019-01-03 Tom de Vries <tdevries@suse.de>
26748
26749 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26750 cases for oacc_min_dims_p and routine_p. Add asserts for
26751 oacc_default_dims_p and offload_region_p.
26752
26753 2019-01-03 Tom de Vries <tdevries@suse.de>
26754
26755 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26756 factored out of ...
26757 (nvptx_goacc_validate_dims): ... here.
26758
26759 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26760
26761 PR tree-optimization/85574
26762 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26763 structure.
26764 (struct ssa_equip_hash_traits): Declare.
26765 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26766
26767 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26768
26769 PR debug/88644
26770 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26771 change it to qualified_type.
26772
26773 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26774
26775 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26776 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26777
26778 2019-01-02 Martin Sebor <msebor@redhat.com>
26779 Jeff Law <law@redhat.com>
26780
26781 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26782 (get_range_strlen_tree): Update appropriately.
26783 (get_range_strlen)
26784 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26785
26786 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26787 rather than set_range_info.
26788 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26789 maybe_set_strlen_range. Handle potentially boundary crossing
26790 cases more conservatively.
26791 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26792 Call set_strlen_range.
26793 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26794
26795 PR middle-end/88663
26796 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26797 need the flexp argument.
26798 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26799 from calls to get_range_strlen. Update comments. Just update
26800 VAL for an unterminated const char array and let the reset of the
26801 code handle it normally. No longer try to set *flexp. Adjust
26802 return value.
26803 (get_range_strlen): Update for the new get_range_strlen API.
26804 (get_maxval_strlen): Similarly.
26805 (gimple_fold_builtin_strlen): Handle update meaning of return value
26806 from get_range_strlen.
26807 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26808 get_range_strlen API.
26809
26810 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26811
26812 PR lto/88130
26813 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26814 false at WPA time when body was removed.
26815
26816 2019-01-02 Martin Liska <mliska@suse.cz>
26817
26818 PR tree-optimization/88650
26819 * predict.c (set_even_probabilities): Calculate probability
26820 remainer only when really used.
26821
26822 2019-01-02 Richard Biener <rguenther@suse.de>
26823
26824 PR middle-end/88651
26825 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26826 widest_ints when mangling max_stmt_execution results.
26827
26828 2019-01-02 Richard Biener <rguenther@suse.de>
26829
26830 PR tree-optimization/88621
26831 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26832 bitfields when canoncalizing.
26833
26834 2019-01-02 Richard Biener <rguenther@suse.de>
26835
26836 PR target/87545
26837 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26838 cost of cheap SSE instruction.
26839
26840 2019-01-02 Richard Biener <rguenther@suse.de>
26841
26842 PR ipa/85574
26843 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26844 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26845 function.
26846 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26847 set after UIDs before splitting them.
26848
26849 2019-01-01 Martin Sebor <msebor@redhat.com>
26850 Jeff Law <law@redhat.com>
26851
26852 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26853 length is optimistic. If it is, then arrange to compute the
26854 conservative length as well.
26855
26856 * gimple-fold.h (get_range_strlen): Update prototype.
26857 * builtins.c (check_access): Update call to get_range_strlen to use
26858 c_strlen_data pointer. Change various variable accesses to instead
26859 pull data from the c_strlen_data structure.
26860 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26861 * calls.c (maybe_warn_nonstring_arg): Likewise.
26862 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26863 minimum length if maximum lengh is unknown.
26864 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26865 that used c_strlen, it's no longer needed. Restructure slightly.
26866 (format_string): Set unlikely range appropriately.
26867 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26868 formatting issues.
26869 (get_range_strlen): Accept c_strlen_data pointer for external
26870 call sites as well. Pass through to call to internal get_range_strlen.
26871 Adjust minlen, maxlen and maxbound as needed.
26872 (get_maxval_strlen): Update comments.
26873 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26874 to use c_strlen_data pointer. Change variable accesses to instead
26875 use c_strlen_data data members.
26876
26877 * gimple-fold.c (get_range_strlen): Update prototype.
26878 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26879 local variables. Use pdata to return information to caller.
26880 Update calls to get_range_strlen. Update pdata->maxbound.
26881 (get_range_strlen -- static version): Similarly.
26882 (get_range_strlen -- extern version): Update for internal
26883 get_range_strlen API change. Convert to external data format.
26884 (get_maxval_strlen): Similarly.
26885
26886 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26887
26888 * coverage.c (get_coverage_counts): Use current_function_decl.
26889 * profile.c (read_thunk_profile): New function.
26890 (branch_prob): Add THUNK parameter.
26891 * tree-profile.c (tree_profiling): Handle thunks.
26892 * value-prof.c (init_node_map): Handle thunks.
26893 * value-prof.h (branch_prob): Upate prototype.
26894 (read_thunk_profile): Declare.
26895
26896 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26897
26898 Update copyright years.
26899
26900 * gcc.c (process_command): Update copyright notice dates.
26901 * gcov-dump.c (print_version): Ditto.
26902 * gcov.c (print_version): Ditto.
26903 * gcov-tool.c (print_version): Ditto.
26904 * gengtype.c (create_file): Ditto.
26905 * doc/cpp.texi: Bump @copying's copyright year.
26906 * doc/cppinternals.texi: Ditto.
26907 * doc/gcc.texi: Ditto.
26908 * doc/gccint.texi: Ditto.
26909 * doc/gcov.texi: Ditto.
26910 * doc/install.texi: Ditto.
26911 * doc/invoke.texi: Ditto.
26912 \f
26913 Copyright (C) 2019 Free Software Foundation, Inc.
26914
26915 Copying and distribution of this file, with or without modification,
26916 are permitted in any medium without royalty provided the copyright
26917 notice and this notice are preserved.