]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
In PR70010, a function is marked with target(no-vsx) to disable VSX code
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
2 Jiufu Guo <guojiufu@linux.ibm.com>
3
4 PR target/70010
5 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6 the callee explicitly disables some isa_flags the caller is using.
7
8 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9
10 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
11
12 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
13
14 * genmodes.c (mode_data::order): New field.
15 (blank_mode): Update accordingly.
16 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
17 (make_vector_modes): Likewise.
18 (VECTOR_MODES): Update use accordingly.
19 (cmp_modes): Sort by the new order field ahead of sorting by size.
20 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
21 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
22 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
23 (aarch64_classify_vector_mode): Handle the new partial modes.
24 (aarch64_vl_bytes): New function.
25 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
26 when counting the number of registers in an SVE mode.
27 (aarch64_class_max_nregs): Likewise.
28 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
29 in registers yet.
30 (aarch64_classify_address): Treat partial vectors analogously
31 to full vectors.
32 (aarch64_print_address_internal): Consolidate the printing of
33 MUL VL addresses, using aarch64_vl_bytes as the number of
34 bytes represented by "VL".
35 (aarch64_vector_mode_supported_p): Reject partial vector modes.
36
37 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
38
39 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
40 rather than known_lt when choosing frame layouts.
41
42 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
43
44 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
45 that all the adjustments add up to the full frame size.
46 Use crtl->outgoing_args_size directly as the final adjustment
47 where appropriate.
48
49 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
50
51 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
52 "frame" reference instead of always referring directly to
53 "cfun->machine->frame".
54
55 2019-10-16 Richard Biener <rguenther@suse.de>
56
57 PR tree-optimization/92119
58 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
59 against missing bswap lhs.
60
61 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
62
63 PR middle-end/92033
64 * poly-int.h (constant_lower_bound_with_limit): New function.
65 (constant_upper_bound_with_limit): Likewise.
66 * doc/poly-int.texi: Document them.
67 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
68 into the worst-case INTEGER_CST bounds.
69
70 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
71
72 PR ipa/91088
73 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
74 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
75 * ipa-predicat.h (struct expr_eval_op): New struct.
76 (expr_eval_ops): New typedef.
77 (struct condition): Add type and param_ops fields, remove size field.
78 (add_condition): Replace size parameter with type parameter, add
79 param_ops parameter.
80 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
81 (predicate::add_clause): Add comparisons on type and param_ops.
82 (dump_condition): Add debug dump for param_ops.
83 (remap_after_inlining): Adjust call arguments to add_condition.
84 (add_condition): Replace size parameter with type parameter, add
85 param_ops parameter. Unshare constant value used in conditions.
86 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
87 parameter expressions using param_ops.
88 (decompose_param_expr): New function.
89 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
90 to replace call to unmodified_parm_or_parm_agg_item.
91 (set_switch_stmt_execution_predicate): Likewise.
92 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
93 with type.
94 (inline_read_section): Read param_ops from summary stream.
95 (ipa_fn_summary_write): Write param_ops to summary stream.
96
97 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
98
99 PR rtl-optimization/92107
100 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
101 expression written.
102
103 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
104
105 * config/darwin.c: Update description of fix and continue.
106
107 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
108
109 * config/darwin.c (darwin_binds_local_p): Update to call
110 default_binds_local_p_3 () directly. amend comments.
111
112 2019-10-15 Richard Biener <rguenther@suse.de>
113
114 * lto-streamer-out.c (lto_variably_modified_type_p): New.
115 (tree_is_indexable): Use it.
116 * tree-streamer-out.c (pack_ts_type_common_value_fields):
117 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
118 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
119
120 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
121
122 * config/msp430/msp430.md (zero_extendqipsi2): New.
123 (zero_extendqisi2): Optimize case where src register and base dst
124 register are the same.
125 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
126 (zero_extendpsisi2): Optimize r->m case.
127 Add unnamed insn patterns to catch insns combine searches for when
128 optimizing pointer manipulation.
129
130 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
131
132 * config/msp430/msp430.md: Group zero_extend* insns together.
133
134 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
135
136 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
137 constraint.
138 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
139 POST_INC.
140 (msp430_subreg): Likewise.
141 (msp430_split_addsi): Likewise.
142 (msp430_print_operand_addr): Likewise.
143 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
144 (USE_STORE_POST_INCREMENT): Define.
145 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
146 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
147 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
148 (msp430_general_dst_operand): New.
149 (msp430_general_dst_nonv_operand): New.
150 (msp430_nonsubreg_operand): Remove.
151 (msp430_nonsubreg_dst_operand): New.
152 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
153 of defunct msp430_nonsubreg_operand.
154 (msp430_nonsubregnonpostinc_or_imm_operand): New.
155
156 2019-10-15 Richard Biener <rguenther@suse.de>
157
158 PR tree-optimization/91929
159 * tree-ssa-pre.c (pre_expr_d::loc): New member.
160 (get_or_alloc_expr_for_name): Initialize it.
161 (get_or_alloc_expr_for_constant): Likewise.
162 (phi_translate_1): Copy it.
163 (create_expression_by_pieces): Use the original location
164 of the expression for the inserted stmt.
165 (compute_avail): Record the location of the stmt for the
166 expressions created.
167
168 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
169
170 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
171 before using tree_to_uhwi.
172
173 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
174
175 * config/s390/s390.md: Run %a0:DI splitters only after reload.
176
177 2019-10-15 Richard Biener <rguenther@suse.de>
178
179 PR tree-optimization/92094
180 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
181 do not adjust the reduction definition def type.
182 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
183 defines the latch argument of the PHI.
184
185 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
186
187 PR target/92035
188 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
189 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
190 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
191 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
192 _mm_maskz_roundscale_round_sd): New intrinsics.
193 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
194 __builtin_ia32_rndscales?_mask_round builtins instead of
195 __builtin_ia32_rndscales?_round.
196 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
197 __builtin_ia32_rndscalesd_round): Remove.
198 (__builtin_ia32_rndscaless_mask_round,
199 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
200 * config/i386/sse.md
201 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
202 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
203 ... this, adjust and add subst atrributes to make it maskable.
204
205 2019-10-15 Richard Biener <rguenther@suse.de>
206
207 PR middle-end/92046
208 * common.opt (fallow-store-data-races): New.
209 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
210 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
211 * doc/invoke.texi (fallow-store-data-races): Document.
212 (--param allow-store-data-races): Remove docs.
213 * opts.c (default_options_table): Enable -fallow-store-data-races
214 at -Ofast.
215 (default_options_optimization): Do not enable --param
216 allow-store-data-races at -Ofast.
217 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
218 instead of PARAM_ALLOW_STORE_DATA_RACES.
219 * tree-ssa-loop-im.c (execute_sm): Likewise.
220
221 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
222
223 PR tree-optimization/92085
224 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
225 instead of calling it unconditionally after
226 delete_dead_or_redundant_assignment and fix indentation.
227
228 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
229
230 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
231 TARGET_VFP_DOUBLE.
232 (*fmsub<SDF:mode>4): Likewise.
233 *fnmsub<SDF:mode>4): Likewise.
234 (*fnmadd<SDF:mode>4): Likewise.
235
236 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
237
238 * doc/tree-ssa.texi: Update renamed macro name.
239
240 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
241
242 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
243 vector constants.
244
245 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
246
247 * config/darwin.c: Use unsigned ints for the picbase label
248 counters, initialise the vars explicitly.
249 (update_pic_label_number_if_needed): Move a variable declaration
250 to where it's needed.
251 (machopic_output_function_base_name): Use a more strict checking
252 assert, and and unsigned int for the picbase label counter.
253 (machopic_get_function_picbase): Likewise.
254
255 2019-10-14 Richard Biener <rguenther@suse.de>
256
257 PR middle-end/92046
258 * dse.c (scan_insn): Use param max_active_local_stores.
259 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
260 based on optimization level.
261 * loop-invariant.c (move_loop_invariants): Adjust
262 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
263 * opts.c (default_options_optimization): Do not adjust
264 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
265 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
266
267 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
268
269 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
270
271 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
272
273 * config/arm/arm.c (arm_option_override): Don't override sched
274 pressure algorithm.
275
276 2019-10-14 Richard Biener <rguenther@suse.de>
277
278 PR tree-optimization/92069
279 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
280 cycles do not set vect_nested_cycle on the latch definition.
281
282 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
283
284 * function-abi.h (expr_callee_abi): Declare.
285 * function-abi.cc (expr_callee_abi): New function.
286
287 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
288
289 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
290 into [1,MAX].
291 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
292 non-zero being represented as [1,MAX].
293
294 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
295
296 * tree-sra.c (dump_access): Add missing braces.
297
298 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
299
300 * config/darwin.c (machopic_indirection_name): Rework the
301 function to emit linker-visible symbols only for indirections
302 in the data section. Clean up the code and update comments.
303
304 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
305
306 * config/darwin.c (machopic_indirect_data_reference): Remove
307 redundant code.
308
309 2019-10-13 Nathan Sidwell <nathan@acm.org>
310
311 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
312
313 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314
315 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
316 c99_runtime.
317
318 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
319
320 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
321 so non-virutal are before virutals.
322 (output_function): Avoid body modifications.
323
324 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
325
326 * config/pa/pa.c (pa_output_call): Load descriptor address to register
327 %r22. Load function address before global pointer.
328 (pa_attr_length_indirect_call): Adjust length of inline versions of
329 $$dyncall.
330 (pa_output_indirect_call): Remove fast inline version of $$dyncall
331 before normal cases. Update inline $$dyncall sequences to preserve
332 function descriptor address in register %r22.
333 (TRAMPOLINE_CODE_SIZE): Adjust.
334 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
335 register %r22 contains trampoline address.
336 (pa_trampoline_init): Adjust offsets.
337 (pa_trampoline_adjust_address): Likewise.
338 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
339
340 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
341
342 PR target/67183
343 * config/darwin.c (machopic_indirection): New field to flag
344 non-lazy-symbol-pointers in the data section.
345 (machopic_indirection_name): Compute if an indirection should
346 appear in the data section.
347 (machopic_output_data_section_indirection): New callback split
348 from machopic_output_indirection.
349 (machopic_output_stub_indirection): Likewise.
350 (machopic_output_indirection): Retain the code for non-lazy
351 symbol pointers in their regular section.
352 (machopic_finish): Use the new callbacks to order the indirection
353 output.
354
355 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
356
357 * config/darwin-protos.h (machopic_finish): Delete.
358 * config/darwin.c (machopic_finish): Make static.
359
360 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
361
362 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
363 sections when building kernel extension code.
364
365 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
366
367 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
368 later standard."
369
370 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
371
372 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
373 from warning.
374
375 2019-10-12 Jakub Jelinek <jakub@redhat.com>
376
377 PR middle-end/92063
378 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
379 <case VEC_COND_EXPR>: Return false with *handled = false.
380 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
381 recursing on the first operand.
382 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
383 instead of tree_could_trap_p.
384 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
385
386 2019-10-11 Jim Wilson <jimw@sifive.com>
387
388 PR rtl-optimization/91860
389 * combine.c (subst): If new_rtx is a constant, also check for
390 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
391
392 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
393
394 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
395 INTVAL when calling store_bit_field.
396
397 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
398
399 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
400 size.
401
402 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
403
404 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
405 vectorizable_live_operation.
406 (vectorizable_live_operation): Adjust parameters.
407 * tree-vect-stmts.c (vect_init_vector,
408 vect_gen_widened_results_half): Fix typo in function comment.
409 (can_vectorize_live_stmts): Adjust function comment.
410 Adjust parameters. Adjust call to vectorizable_live_operation.
411 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
412 (vect_transform_stmt): Adjust function comment. Adjust call to
413 can_vectorize_live_stmts.
414 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
415
416 2019-10-11 Richard Biener <rguenther@suse.de>
417
418 PR tree-optimization/90883
419 PR tree-optimization/91091
420 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
421 alias-sets both for recording VN table entries and continuing
422 walking after translating through copies. Handle same-sized
423 reads from SSA names by returning the plain SSA name.
424 (eliminate_dom_walker::eliminate_stmt): Properly handle
425 non-size precision stores in redundant store elimination.
426
427 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
428
429 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
430 (ggc_collect): Dump later to not interfere with release_page dump.
431 (ggc_trim): New function.
432 * ggc-none.c (ggc_trim): New.
433 * ggc.h (ggc_trim): Declare.
434
435 2019-10-11 Richard Biener <rguenther@suse.de>
436
437 PR tree-optimization/92066
438 PR tree-optimization/92046
439 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
440 Fix bogus cost model check.
441
442 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
443
444 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
445 (LANG_HOOKS_DECLS): Add it.
446 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
447 update comment for omp_is_optional_argument.
448 * omp-general.c (omp_is_allocatable_or_ptr): New.
449 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
450 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
451 Fortran's optional arguments and allocatable/pointer scalars
452 with use_device_addr.
453
454 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
455
456 PR target/77918
457 * config/s390/2827.md: Add new opcodes.
458 * config/s390/2964.md: Likewise.
459 * config/s390/3906.md: Likewise.
460 * config/s390/8561.md: Likewise.
461 * config/s390/s390-builtins.def (s390_vfchesb): Use
462 the new vec_cmpgev4sf_quiet_nocc.
463 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
464 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
465 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
466 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
467 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
468 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
469 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
470 * config/s390/s390-modes.def (CCSFPS): New mode.
471 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
472 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
473 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
474 (s390_expand_vec_compare): Use non-signaling patterns where
475 necessary.
476 (s390_reverse_condition): Support CCSFPS.
477 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
478 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
479 (asm_fcmp_op): Likewise.
480 (*smaxv2df3_vx): Use pattern for quiet comparison.
481 (*sminv2df3_vx): Likewise.
482 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
483 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
484 (vec_cmpgt<mode>_quiet_nocc): Likewise.
485 (vec_cmplt<mode>_quiet_nocc): New expander.
486 (vec_cmpge<mode>_quiet_nocc): New pattern.
487 (vec_cmple<mode>_quiet_nocc): New expander.
488 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
489 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
490 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
491 (*vec_cmpge<mode>_signaling_nocc): Likewise.
492 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
493 (vec_cmpungt<mode>): New expander.
494 (vec_cmpunge<mode>): Likewise.
495 (vec_cmpuneq<mode>): Use quiet patterns.
496 (vec_cmpltgt<mode>): Allow only on z14+.
497 (vec_cmpordered<mode>): Use quiet patterns.
498 (vec_cmpunordered<mode>): Likewise.
499 (VEC_CMP_EXPAND): Add ungt and unge.
500
501 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
502
503 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
504 parameter.
505 * lto-streamer-out.c: Include tree-dfa.h.
506 (output_cfg): Do not use cfun.
507 (lto_prepare_function_for_streaming): New.
508 (output_function): Do not push cfun; do not initialize loop optimizer.
509 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
510 * passes.c (ipa_write_summaries): Use it.
511 (ipa_write_optimization_summaries): Do not modify bodies.
512 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
513 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
514 * tree-ssa-dse.c (pass_dse::execute): Update use of
515 renumber_gimple_stmt_uids.
516 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
517
518 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
519
520 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
521 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
522
523 2019-10-10 Joseph Myers <joseph@codesourcery.com>
524
525 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
526 macros.
527 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
528 Also define DFP macros for these conditions.
529 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
530 DEC128_SUBNORMAL_MIN): Do not define.
531 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
532 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
533
534 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
535 Sandra Loosemore <sandra@codesourcery.com>
536
537 PR middle-end/26241
538 * doc/lto.texi (IPA): Reference to the IPA passes.
539 * doc/passes.texi (Pass manager): Add node IPA passes and
540 description for each IPA pass.
541
542 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
543
544 * ipa-reference.c: Do not include splay-tree.h
545 (reference_vars_to_consider): Turn to hash map.
546 (get_static_name, ipa_init, analyze_function, propagate,
547 stream_out_bitmap, ipa_reference_write_optimization_summary,
548 ipa_reference_write_optimization_summary): Update.
549
550 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
551
552 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
553
554 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
555
556 * config/darwin.c: Lookup Objective C metadata and force indirection
557 for IVAR refs.
558
559 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
560
561 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
562 addresses.
563 (mem_operand_gpr): Add check for prefixed addresses.
564 (mem_operand_ds_form): Add check for prefixed addresses.
565 (rs6000_legitimate_offset_address_p): If we support prefixed
566 addresses, check for a 34-bit offset instead of 16-bit.
567 (rs6000_legitimate_address_p): Add check for prefixed addresses.
568 Do not allow load/store with update if the address is prefixed.
569 (rs6000_mode_dependent_address): If we support prefixed
570 addresses, check for a 34-bit offset instead of 16-bit.
571
572 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
573
574 PR target/77918
575 * config/s390/vector.md (vcond_comparison_operator): New
576 predicate.
577 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
578
579 2019-10-10 David Malcolm <dmalcolm@redhat.com>
580
581 PR 87488
582 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
583 -D.
584 * configure.ac (--with-documentation-root-url): New option.
585 * configure: Regenerate.
586 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
587 option URL, add it as a new string field of the diagnostic option.
588 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
589 (print_option_information): If get_option_url is non-NULL, call
590 it, and if the result is non-NULL, potentially emit an escape
591 sequence to markup the option text with the resulting URL.
592 * diagnostic.h (diagnostic_context::get_option_url): New callback.
593 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
594 example of JSON output.
595 * opts-diagnostic.h (get_option_url): New decl.
596 * opts.c (get_option_url): New function.
597 * toplev.c (general_init): Initialize the get_option_url callback.
598
599 2019-10-10 David Malcolm <dmalcolm@redhat.com>
600
601 PR 87488
602 * common.opt (fdiagnostics-urls=): New option.
603 (diagnostic-url.h): Add SourceInclude.
604 (diagnostic_url_rule): New enum.
605 * diagnostic-color.c: Include "diagnostic-url.h".
606 (diagnostic_urls_enabled_p): New function.
607 * diagnostic-url.h: New file.
608 * diagnostic.c: Include "diagnostic-url.h".
609 (diagnostic_urls_init): New function.
610 * diagnostic.h (diagnostic_urls_init): New decl.
611 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
612 -fdiagnostics-urls to the list.
613 (-fdiagnostics-urls): New option.
614 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
615 (driver::global_initializations): Call diagnostic_urls_init.
616 * opts-global.c (init_options_once): Likewise.
617 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
618 * pretty-print.c (pretty_printer::pretty_printer): Initialize
619 show_urls.
620 (pp_begin_url): New function.
621 (pp_end_url): New function.
622 (selftest::test_urls): New selftest.
623 (selftest::pretty_print_c_tests): Call it.
624 * pretty-print.h (pretty_printer::show_urls): New field.
625 (pp_begin_url): New decl.
626 (pp_end_url): New decl.
627
628 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
629
630 PR target/92022
631 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
632
633 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
634
635 PR target/88630
636 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
637 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
638 also for TARGET_FPU_SH4_300.
639 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
640 TARGET_SH4_300.
641 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
642 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
643 (*negsf2_i): Split into ...
644 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
645 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
646 (**abssf2_i): Split into ...
647 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
648 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
649 (*negdf2_i): Split into ...
650 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
651 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
652 (**abssf2_i): Split into ...
653 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
654
655 2019-10-10 Richard Biener <rguenther@suse.de>
656
657 PR middle-end/92046
658 * opts.c (finish_options): Do not influence global --params
659 from options that are adjustable per function.
660 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
661 Apply --param adjustment based on active cost-model.
662 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
663 further store-sinking when vectorization or if-conversion
664 are not enabled.
665
666 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
667
668 PR middle-end/92037
669 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
670 rather than ggc_alloc_cleared to alloc symbol table.
671 * toplev.c (general_init): Likewise.
672 * cgraph.h (symbol_table): Explicitly construct every field.
673
674 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
675
676 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
677 (PF_Z15): ... this.
678 * config.gcc: Add z15 as option for --with-arch and --with-tune
679 configure switches.
680 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
681 error reporting for unsupported builtins.
682 * config/s390/s390-opts.h (enum processor_type): Rename
683 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
684 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
685 * config/s390/driver-native.c (s390_host_detect_local_cpu):
686 Likewise.
687 * config/s390/s390-builtins.def: Likewise.
688 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
689 (s390_expand_builtin): Add missing check for unsupported builtins.
690 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
691 (s390_rtx_costs): Likewise.
692 (s390_get_sched_attrmask): Rename arch13 to z15.
693 (s390_get_unit_mask): Likewise.
694 (s390_is_fpd): Likewise.
695 (s390_is_fxd): Likewise.
696 * config/s390/s390.h (enum processor_flags): Likewise.
697 * config/s390/s390.md: Likewise.
698 * config/s390/vector.md: Likewise.
699 * config/s390/vx-builtins.md: Likewise.
700 * config/s390/s390.opt: Add z15 to processor_type value.
701
702 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
703
704 PR target/91035
705 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
706 prototype.
707 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
708 ("split_stack_data", "split_stack_call")
709 ("split_stack_call_<mode>", "split_stack_cond_call")
710 ("split_stack_cond_call_<mode>"): Remove.
711 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
712 insn definition.
713 * config/s390/s390.c (s390_output_split_stack_data): New function.
714 (s390_expand_split_stack_prologue): Use the merged expander.
715
716 2019-10-09 Martin Sebor <msebor@redhat.com>
717
718 PR tree-optimization/90879
719 * builtins.c (check_access): Avoid using maxbound when null.
720 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
721 * doc/invoke.texi (-Wstring-compare): Document new warning option.
722 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
723 conditional.
724 (get_range_strlen): Overwrite initial maxbound when non-null.
725 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
726 changes.
727 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
728 (used_only_for_zero_equality): New function.
729 (handle_builtin_memcmp): Call it.
730 (determine_min_objsize): Return an integer instead of tree.
731 (get_len_or_size, strxcmp_eqz_result): New functions.
732 (maybe_warn_pointless_strcmp): New function.
733 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
734 between a longer string and a smaller array.
735 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
736
737 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
738
739 * config/darwin.c (darwin_override_options): Make the check for
740 Objective-C ABI version more specific for 64bit code.
741
742 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
743
744 * config/darwin.c (machopic_indirect_data_reference): Set flag to
745 indicate that the new symbol is an indirection.
746 (machopic_indirect_call_target): Likewise.
747 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
748 (MACHO_SYMBOL_INDIRECTION_P): New.
749 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
750
751 2019-10-08 Jason Merrill <jason@redhat.com>
752
753 * doc/invoke.texi: Document -fconcepts-ts.
754
755 2019-10-09 Richard Biener <rguenther@suse.de>
756
757 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
758 allow stmts other than GIMPLE_ASSIGN in nested cycles.
759
760 2019-10-08 Richard Biener <rguenther@suse.de>
761
762 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
763 (_stmt_vec_info::force_single_cycle): Likewise.
764 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
765 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
766 * tree-vect-loop.c (vectorizable_reduction): Set
767 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
768 (vect_transform_reduction): Use them to remove redundant code.
769 (vect_transform_cycle_phi): Likewise.
770
771 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
772
773 PR tree-optimization/90836
774 * gcc/match.pd (popcount): New pattern.
775
776 2019-10-08 Martin Sebor <msebor@redhat.com>
777
778 PR middle-end/92026
779 PR middle-end/92014
780 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
781 again once nbytes has been set. Set the access size when not yet set.
782
783 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
784
785 * config/darwin.c (machopic_select_section): Remove dead code for
786 old Objective-C section selection method, replace with unreachable.
787
788 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
789
790 * config/darwin.c (machopic_indirect_data_reference): Check for
791 required indirections before making direct access to defined
792 values.
793 (machopic_output_indirection): Place the indirected pointes for
794 required indirections into the non-lazy symbol pointers section.
795 (darwin_encode_section_info):
796 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
797 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
798
799 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
800
801 PR target/91994
802 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
803 instead of ALL_SSE_REG to check if function call preserves some
804 256-bit SSE registers.
805
806 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
807
808 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
809 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
810 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
811
812 2019-10-08 Richard Biener <rguenther@suse.de>
813
814 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
815 (_stmt_vec_info::is_reduc_info): Add.
816 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
817 (vectorizable_condition): Remove.
818 (vectorizable_shift): Likewise.
819 (vectorizable_reduction): Adjust.
820 (info_for_reduction): New.
821 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
822 (vect_analyze_scalar_cycles_1): ... here.
823 (vect_analyze_loop_operations): Adjust.
824 (needs_fold_left_reduction_p): Simplify for single caller.
825 (vect_is_simple_reduction): Likewise. Remove stmt restriction
826 for nested cycles not part of double reductions.
827 (vect_model_reduction_cost): Pass in the reduction type.
828 (info_for_reduction): New function.
829 (vect_create_epilog_for_reduction): Use it, access reduction
830 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
831 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
832 (vectorize_fold_left_reduction): Remove pointless assert.
833 (vectorizable_reduction): Analyze the full reduction when
834 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
835 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
836 stmt code-generation to vectorizable_* in most cases. Verify
837 code-generation only for cases handled by
838 vect_transform_reductuon.
839 (vect_transform_reduction): Use info_for_reduction to get at
840 reduction meta. Simplify.
841 (vect_transform_cycle_phi): Likewise.
842 (vectorizable_live_operation): Likewise.
843 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
844 at the PHI node for STMT_VINFO_REDUC_TYPE.
845 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
846 longer necessary code.
847 * tree-vect-stmts.c (vectorizable_shift): Make static again.
848 (vectorizable_condition): Likewise. Get at reduction related
849 info via info_for_reduction.
850 (vect_analyze_stmt): Adjust.
851 (vect_transform_stmt): Likewise.
852 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
853 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
854
855 2019-10-08 Joseph Myers <joseph@codesourcery.com>
856
857 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
858 -fno-fp-int-builtin-inexact default for C2X.
859
860 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
861 Richard Biener <rguenther@suse.de>
862
863 PR tree-optimization/91532
864 * tree-if-conv.c: Include tree-ssa-dse.h.
865 (ifcvt_local_dce): Change param from bb to loop,
866 and call dse_classify_store.
867 (tree_if_conversion): Pass loop instead of loop->header as arg
868 to ifcvt_local_dce.
869 * tree-ssa-dse.c: Include tree-ssa-dse.h.
870 (delete_dead_or_redundant_assignment): Remove static qualifier from
871 declaration, and add prototype in tree-ssa-dse.h.
872 (dse_store_status): Move to tree-ssa-dse.h.
873 (dse_classify_store): Remove static qualifier and add new tree param
874 stop_at_vuse, and add prototype in tree-ssa-dse.h.
875 * tree-ssa-dse.h: New header.
876
877 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
878
879 * config/darwin.c (machopic_output_indirection): Don't put
880 hidden symbol indirections into the .data section, use the
881 non-lazy symbol pointers section as normal.
882 (darwin_encode_section_info): Record if a symbol is hidden.
883 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
884 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
885
886 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
887
888 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
889 predicates instead of accessing bits directly.
890 (machopic_indirect_call_target): Likewise.
891 (machopic_output_indirection): Likewise.
892 (darwin_encode_section_info): Improve description. Use renamed
893 symbol flags. Use predicate macros for variables and functions.
894 * config/darwin.h:
895 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
896 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
897 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
898 (MACHO_SYMBOL_VARIABLE_P): New.
899 (MACHO_SYMBOL_DEFINED_P):New.
900 (MACHO_SYMBOL_STATIC_P): New.
901 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
902 (SYMBOL_FLAG_SUBT_DEP): New.
903 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
904
905 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
906
907 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
908 (msp430_expand_epilogue): Likewise.
909 * config/msp430/predicates.md: Likewise.
910 * config/msp430/msp430.md: Likewise.
911 Replace blocks of 8 spaces with tabs.
912
913 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
914
915 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
916 * config/msp430/msp430.c (msp430_split_addsi): New.
917 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
918 a block of C code for splitting addsi.
919
920 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
921
922 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
923 ix86_expand_rounddf_32): Reorder functions.
924 * config/i386/i386-protos.h: Update.
925
926 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
927
928 * config.in: Regenerate.
929 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
930 Add new "Yx" constraint.
931 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
932 function.
933 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
934 prototype.
935 * config/msp430/msp430.c (msp430_option_override): Allow the lower
936 code/data region to be selected in the small memory model.
937 (msp430_section_attr): Don't warn if the "section" and "lower"
938 attributes are used together.
939 (msp430_handle_generic_attribute): Likewise.
940 (msp430_var_in_low_mem): New function.
941 (TARGET_ENCODE_SECTION_INFO): Define.
942 (msp430_encode_section_info): New function.
943 (gen_prefix): Return early in the small memory model.
944 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
945 ".lower" prefix if -m{code,data}-region=lower have been passed.
946 (msp430_output_aligned_decl_common): Emit common symbols when
947 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
948 set.
949 (TARGET_ASM_FILE_END): Define.
950 (msp430_file_end): New function.
951 (msp430_do_not_relax_short_jumps): Allow relaxation when
952 function will be in the lower region.
953 (msp430_op_not_in_high_mem): New function.
954 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
955 the 'X' operand selector.
956 Clarify comment for 'x' operand selector.
957 * config/msp430/msp430.h (LINK_SPEC): Propagate
958 -m{code,data}-region to the linker via spec function
959 msp430_propagate_region_opt.
960 (msp430_propagate_region_opt): New prototype.
961 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
962 (SYMBOL_FLAG_LOW_MEM): Define.
963 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
964 selector.
965 (zero_extendqihi2): Fix operand number used by "%X" selector.
966 (zero_extendqisi2): Likewise.
967 (zero_extendhisi2): Likewise.
968 (movqi): Use "Yx" constraint in place of "%X" operand selector.
969 (movhi): Likewise.
970 (addqi3): Likewise.
971 (addhi3): Likewise.
972 (addsi3): Likewise.
973 (addhi3_cy): Likewise.
974 (addchi4_cy): Likewise.
975 (subqi3): Likewise.
976 (subhi3): Likewise.
977 (subsi3): Likewise.
978 (bic<mode>3): Likewise.
979 (and<mode>3): Likewise.
980 (ior<mode>3): Likewise.
981 (xor<mode>3): Likewise.
982 (slli_1): Add missing "%X" operand selector.
983 (slll_1): Likewise.
984 (slll_2): Likewise.
985 (srai_1): Likewise.
986 (sral_1): Likewise.
987 (sral_2): Likewise.
988 (srli_1): Likewise.
989 (srll_1): Likewise.
990 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
991 selector.
992 (cbranchhi4_real): Likewise.
993 (cbranchqi4_reversed): Likewise.
994 (cbranchhi4_reversed): Likewise.
995 (*bitbranch<mode>4): Likewise.
996 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
997 * config/msp430/msp430.opt (mcode-region=): Set default to
998 MSP430_REGION_LOWER. Improve docstring.
999 (mdata-region=): Likewise.
1000 (muse-lower-region-prefix): New option.
1001 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1002 mdata-region=none multilib.
1003 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1004 mdata-region=none multilib.
1005 MULTILIB_EXCEPTIONS: Remove.
1006 MULTILIB_REQUIRED: Define.
1007 * configure: Regenerate.
1008 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1009 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1010 * doc/extend.texi: Clarify comment for {upper,lower,either}
1011 function attributes.
1012 Add separate description for "lower" variable attribute.
1013
1014 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1015
1016 PR target/77918
1017 * optabs-tree.c (vcond_icode_p): New function.
1018 (vcond_eq_icode_p): Likewise.
1019 (expand_vec_cond_expr_p): Use vcond_icode_p and
1020 vcond_eq_icode_p.
1021 * optabs.c (can_vcond_compare_p): New function.
1022 * optabs.h (can_vcond_compare_p): Likewise.
1023
1024 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1025
1026 PR target/77918
1027 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1028 caller passes a non-trapping condition.
1029 (is_gimple_condexpr): Allow trapping conditions.
1030 (is_gimple_condexpr_1): New helper function.
1031 (is_gimple_condexpr_for_cond): New function, acts like old
1032 is_gimple_condexpr.
1033 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1034 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1035 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1036 * gimplify.c (gimplify_cond_expr): Use
1037 is_gimple_condexpr_for_cond.
1038 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1039 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1040 VEC_COND_EXPR.
1041 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1042 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1043 is_gimple_condexpr_for_cond, remove pointless tmp check
1044 (forward_propagate_into_cond): Remove pointless tmp check.
1045
1046 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1047
1048 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1049 match that of other gsi_next_* functions. Adjust the comment.
1050 (gsi_start_nonvirtual_phis): New function.
1051 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1052 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1053
1054 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1055
1056 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1057 setjmp situation here. Fix a verb's ending: "the exact variables or
1058 elements for which there are warnings depends" -> "... depend".
1059
1060 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1061
1062 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1063
1064 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1065
1066 * ipa-prop.c (ipa_vr::nonzero_p): New.
1067 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1068 non-zero range.
1069 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1070 * tree-vrp.c (range_has_numeric_bounds_p): New.
1071 (range_int_cst_p): Use range_has_numeric_bounds_p.
1072 (get_range_op_handler): New.
1073 (supported_types_p): New.
1074 (defined_ranges_p): New.
1075 (drop_undefines_to_varying): New.
1076 (range_fold_binary_symbolics_p): New.
1077 (range_fold_unary_symbolics_p): New.
1078 (range_fold_unary_expr): Extract out into above functions.
1079 (range_fold_binary_expr): Same.
1080 (value_range_base::normalize_addresses): New.
1081 (value_range_base::normalize_symbolics): Normalize addresses.
1082 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1083
1084 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1085
1086 * tree-vrp.c (value_range_base::singleton_p): Use
1087 value_range_base::num_pairs instead of vrp_val_is* to check
1088 if a range has one sub-range.
1089
1090 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1091
1092 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1093 DEF is not a true earlyclobber but is tied to a specific input
1094 operand, and so is effectively earlyclobber wrt inputs that have
1095 different values.
1096 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1097
1098 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1099
1100 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1101 (pod_mode): Mark operators likewise.
1102 (scalar_int_mode): Mark non-default constructors and
1103 operators with CONSTEXPR.
1104 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1105 (fixed_size_mode): Likewise.
1106
1107 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1108
1109 PR target/91994
1110 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1111 and wrap the unspec_volatile in a parallel.
1112 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1113 the unspec_volatile.
1114 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1115 unspec_volatile to be wrapped in a parallel.
1116 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1117 (ix86_add_reg_usage_to_vzerouppers): New functions.
1118 (rest_of_handle_insert_vzeroupper): Use them to add register
1119 usage information to the vzeroupper instructions.
1120
1121 2019-10-07 Richard Biener <rguenther@suse.de>
1122
1123 PR tree-optimization/91975
1124 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1125 handle invariants.
1126
1127 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1128
1129 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1130 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1131
1132 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1133
1134 * config/darwin.c (darwin_override_options): Adjust objective-c
1135 ABI version error messages to avoid punctuation and contracted
1136 negations.
1137
1138 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1139
1140 * ipa-inline.c: Fix type; compute size rather than self_size
1141 for size of caller function.
1142
1143 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1144
1145 PR target/59888
1146 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1147 choose const_data section for constants with relocations.
1148 (machopic_select_section): Pass relocation flag to
1149 darwin_rodata_section ().
1150
1151 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1152
1153 PR tree-optimization/91734
1154 * generic-match-head.c: Include fold-const-call.h.
1155 * match.pd (sqrt(x) cmp c): Check the boundary value and
1156 in case inexact computation of c*c affects comparison of the boundary,
1157 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1158 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1159 for -frounding-math. For c2, try the next smaller or larger floating
1160 point constant depending on comparison code and if it has the same
1161 sqrt as c2, use it instead of c2.
1162
1163 2019-10-04 Martin Sebor <msebor@redhat.com>
1164
1165 PR middle-end/91977
1166 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1167 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1168 uninitialized objects.
1169
1170 2019-10-04 Martin Sebor <msebor@redhat.com>
1171
1172 * builtins.c (compute_objsize): Add an argument.
1173 * tree-object-size.c (addr_object_size): Same.
1174 (compute_builtin_object_size): Same.
1175 * tree-object-size.h (compute_builtin_object): Same.
1176
1177 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1178
1179 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1180
1181 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1182
1183 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1184
1185 2019-10-04 Martin Jambor <mjambor@suse.cz>
1186
1187 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1188 fntype when switching to calling memcpy instead of memset.
1189
1190 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1191
1192 * hash-table.h (hash_table::empty_slow): Don't assign
1193 size_t values to int variables.
1194
1195 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1196
1197 * expr.c (convert_mode_scalar): Remove shadowing local var.
1198 (emit_block_move): Rename local vars.
1199 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1200 (emit_push_insn): Rename local vars.
1201 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1202 shadowing local vars.
1203 (store_constructor): Remove shadowing local vars. Rename local var.
1204 (store_field, expand_cond_expr_using_cmove,
1205 expand_expr_real_2): Remove shadowing local vars.
1206 (expand_expr_real_1,
1207 do_store_flag): Remove shadowing local vars. Rename local vars.
1208
1209 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1210
1211 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1212
1213 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1214
1215 * genmatch.c (commutate): Rename local var.
1216 (lower_cond): Reuse local var.
1217 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1218 dt_operand::gen, dt_operand::gen_gimple_expr,
1219 dt_simplify::gen): Add a param. Rename generated vars.
1220 (decision_tree::insert_operand,
1221 (capture_info::walk_match, capture_info::walk_result,
1222 capture_info::walk_c_expr): Rename local vars.
1223 (expr::gen_transform): Rename generated vars.
1224 Use snprintf. Rename local vars.
1225 (capture::gen_transform, dt_operand::get_name,
1226 dt_operand::gen_opname): Rename generated vars.
1227 (write_predicate): Adjust call to gen_kids.
1228 (parser::get_internal_capture_id): Rename generated vars.
1229 (parser::parse_expr): Rename local vars.
1230 (parser::parse_if): Remove local var.
1231 (parser::parse_pattern, add_operator): Rename local vars.
1232
1233 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1234
1235 * builtins.def (DEF_C2X_BUILTIN): New macro.
1236 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1237 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1238 (strndup): Use DEF_C2X_BUILTIN.
1239 * coretypes.h (enum function_class): Add function_c2x_misc.
1240
1241 2019-10-04 Maya Rashish <coypu@sdf.org>
1242
1243 * ira-color.c (update_costs_from_allocno): Call
1244 ira_init_register_move_cost_if_necessary.
1245
1246 2019-10-04 Jeff Law <law@redhat.com>
1247
1248 * config/h8300/h8300.md (cpymemsi): Disable.
1249 (movmd, movmd_internal_<mode>, movstr, movsd):
1250 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1251 (movmd splitter, movsd splitter): Likewise.
1252
1253 * range-op.cc (range_tests): Avoid two tests when ints and
1254 shorts are the same size.
1255
1256 2019-10-04 Richard Biener <rguenther@suse.de>
1257
1258 PR lto/91968
1259 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1260 BLOCK_VARS.
1261
1262 2019-10-04 Richard Biener <rguenther@suse.de>
1263
1264 PR tree-optimization/91982
1265 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1266 against EXTRACT_LAST_REDUCTION.
1267 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1268
1269 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1270
1271 * range-op.o (value_range_from_overflowed_bounds): Rename from
1272 adjust_overflow_bound.
1273 (value_range_with_overflow): Rename from
1274 create_range_with_overflow.
1275 (create_possibly_reversed_range): Adjusted for above renames.
1276 (operator_*::wi_fold): Same.
1277 (cross_product_operator::wi_cross_productor): Same.
1278
1279 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1280
1281 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1282 -Wshadow=compatible-local): Fix description.
1283 Add an example where -Wshadow=compatible-local does not
1284 warn.
1285
1286 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1287
1288 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1289
1290 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1291 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1292
1293 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1294
1295 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1296 can_move_by_pieces issue.
1297
1298 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1299
1300 PR target/87243
1301 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1302 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1303 is available and the user has not set one on the command line.
1304
1305 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1306
1307 PR target/91769
1308 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1309 instead of REGNO equality check on addr.reg.
1310
1311 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1312
1313 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1314 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1315 * doc/invoke.texi (inline-heuristics-hint-percent,
1316 inline-heuristics-hint-percent-O2): Document.
1317 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1318 hint attribute.
1319 (can_inline_edge_by_limits_p): Use it.
1320
1321 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1322
1323 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1324 to print CONST_DOUBLEs.
1325
1326 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1327
1328 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1329 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1330 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1331
1332 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1333
1334 * Makefile.in (OBJS): Add range.o and range-op.o.
1335 Remove wide-int-range.o.
1336 * function-tests.c (test_ranges): New.
1337 (function_tests_c_tests): Call test_ranges.
1338 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1339 range_fold_unary_expr instead of extract_range_from_unary_expr.
1340 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1341 * range-op.cc: New file.
1342 * range-op.h: New file.
1343 * range.cc: New file.
1344 * range.h: New file.
1345 * selftest.h (range_tests): New prototype.
1346 * ssa.h: Include range.h.
1347 * tree-vrp.c (value_range_base::value_range_base): New
1348 constructors.
1349 (value_range_base::singleton_p): Do not call
1350 ranges_from_anti_range until sure we will need to.
1351 (value_range_base::type): Rename gcc_assert to
1352 gcc_checking_assert.
1353 (vrp_val_is_max): New argument.
1354 (vrp_val_is_min): Same.
1355 (wide_int_range_set_zero_nonzero_bits): Move from
1356 wide-int-range.cc.
1357 (extract_range_into_wide_ints): Remove.
1358 (extract_range_from_multiplicative_op): Remove.
1359 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1360 from extract_range_from_binary_expr.
1361 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1362 from extract_range_from_binary_expr.
1363 (extract_range_from_binary_expr): Remove.
1364 (normalize_for_range_ops): New.
1365 (range_fold_binary_expr): New.
1366 (range_fold_unary_expr): New.
1367 (value_range_base::num_pairs): New.
1368 (value_range_base::lower_bound): New.
1369 (value_range_base::upper_bound): New.
1370 (value_range_base::upper_bound): New.
1371 (value_range_base::contains_p): New.
1372 (value_range_base::invert): New.
1373 (value_range_base::union_): New.
1374 (value_range_base::intersect): New.
1375 (range_compatible_p): New.
1376 (value_range_base::operator==): New.
1377 (determine_value_range_1): Call range_fold_*expr instead of
1378 extract_range_from_*expr.
1379 * tree-vrp.h (class value_range_base): Add new constructors.
1380 Add methods for union_, intersect, operator==, contains_p,
1381 num_pairs, lower_bound, upper_bound, invert.
1382 (vrp_val_is_min): Add handle_pointers argument.
1383 (vrp_val_is_max): Same.
1384 (extract_range_from_unary_expr): Remove.
1385 (extract_range_from_binary_expr): Remove.
1386 (range_fold_unary_expr): New.
1387 (range_fold_binary_expr): New.
1388 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1389 range_fold_binary_expr instead of extract_range_from_binary_expr.
1390 (vr_values::extract_range_basic): Same.
1391 (vr_values::extract_range_from_unary_expr): Call
1392 range_fold_unary_expr instead of extract_range_from_unary_expr.
1393 * wide-int-range.cc: Remove.
1394 * wide-int-range.h: Remove.
1395
1396 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1397
1398 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1399 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1400 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1401 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1402 macro.
1403
1404 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1405
1406 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1407 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1408 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1409 * glimits.h: Likewise.
1410
1411 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1412
1413 PR rtl-optimization/91976
1414 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1415 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1416 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1417
1418 2019-10-02 Martin Sebor <msebor@redhat.com>
1419
1420 PR tree-optimization/80936
1421 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1422
1423 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1424
1425 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1426 instead of reg_class_contents[ALL_REGS].
1427
1428 2019-09-30 Jason Merrill <jason@redhat.com>
1429
1430 Add some hash_map_safe_* functions like vec_safe_*.
1431 * hash-map.h (default_hash_map_size): New variable.
1432 (create_ggc): Use it as default argument.
1433 (hash_map_maybe_create, hash_map_safe_get)
1434 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1435
1436 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1437
1438 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1439 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1440 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1441 (can_inline_edge_by_limits_p): Use it.
1442 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1443 (want_inline_small_function_p): Use O2 bounds.
1444 (edge_badness): LIkewise.
1445 * opts.c (default_options): Add OPT_finline_functions.
1446 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1447 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1448 New parameters.
1449 * doc/invoke.texi (-finline-functions): Update documentation.
1450 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1451 inline-min-speedup-O2): Document.
1452 (early-inlining-insns-O2): Simplify docs.
1453
1454 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1455
1456 PR rtl-optimization/87047
1457 * ifcvt.c (average_cost): New static function. Use it...
1458 (noce_process_if_block): ... here.
1459
1460 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1461
1462 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1463 * config/rs6000/rs6000-string.c (expand_block_move): Add
1464 might_overlap parm.
1465 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1466 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1467
1468 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1469
1470 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1471 (expand_builtin_memcpy): Use might_overlap parm.
1472 (expand_builtin_mempcpy_args): Use might_overlap parm.
1473 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1474 (expand_builtin_memory_copy_args): Add might_overlap parm.
1475 * expr.c (emit_block_move_via_cpymem): Rename to
1476 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1477 or movmem optab as appropriate.
1478 (emit_block_move_hints): Add might_overlap parm, do the right
1479 thing for might_overlap==true.
1480 * expr.h (emit_block_move_hints): Update prototype.
1481
1482 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1483
1484 * tree-eh.h (unsplit_eh_edges): Declare.
1485 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1486 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1487 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1488 (struct store_immediate_info): Add lp_nr field.
1489 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1490 initialize lp_nr with it.
1491 (struct merged_store_group): Add lp_nr and only_constants fields.
1492 (merged_store_group::merged_store_group): Initialize them.
1493 (merged_store_group::can_be_merged_into): Deal with them.
1494 (pass_store_merging): Rename terminate_and_release_chain into
1495 terminate_and_process_chain.
1496 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1497 renaming and remove useless assertions.
1498 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1499 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1500 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1501 instead of always recomputing it and compare lp_nr.
1502 (imm_store_chain_info::output_merged_store): If the group is in an
1503 active EH region, register new stores if they can throw. Moreover,
1504 if the insertion has created new basic blocks, adjust the PHI nodes
1505 of the post landing pad.
1506 (imm_store_chain_info::output_merged_stores): If the original stores
1507 are in an active EH region, deregister them.
1508 (lhs_valid_for_store_merging_p): Prettify.
1509 (adjust_bit_pos): New function extracted from...
1510 (mem_valid_for_store_merging): ...here. Use it for the base address
1511 and also for the offset if it is the addition of a constant.
1512 (lp_nr_for_store): New function.
1513 (pass_store_merging::process_store): Change return type to bool.
1514 Call lp_nr_for_store to initialize the store info. Propagate the
1515 return status of various called functions to the return value.
1516 (store_valid_for_store_merging_p): New predicate.
1517 (enum basic_block_status): New enumeration.
1518 (get_status_for_store_merging): New function.
1519 (pass_store_merging::execute): If the function can throw and catch
1520 non-call exceptions, unsplit the EH edges on entry and clean up the
1521 CFG on exit if something changed. Call get_status_for_store_merging
1522 for every basic block and keep the chains open across basic blocks
1523 when possible. Terminate and process open chains at the end, if any.
1524
1525 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1526
1527 * reginfo.c (globalize_reg): Fix shadowed variable in
1528 function_abis walk.
1529
1530 2019-10-02 Martin Jambor <mjambor@suse.cz>
1531
1532 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1533 do not compute some stuff when set.
1534 (cgraph_node::create_edge): Likewise.
1535 (cgraph_node::create_indirect_edge): Renamed last parameter to
1536 coning_p and flipped its meaning, don't even calculate
1537 inline_failed when set.
1538 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1539 (symbol_table::::create_edge): Likewise.
1540 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1541 the default value.
1542 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1543 call graph edge creating functions.
1544
1545 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1546
1547 PR c++/91222
1548 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1549 namespace types.
1550
1551 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1552
1553 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1554
1555 2019-10-02 Richard Biener <rguenther@suse.de>
1556
1557 * tree-vectorizer.h (vect_transform_reduction): Declare.
1558 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1559 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1560 stmt transform to ...
1561 (vect_transform_reduction): ... this.
1562
1563 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1564
1565 * omp-low.c (lower_omp_target): Dereference optional argument
1566 to work with the right pointer.
1567
1568 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1569
1570 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1571 false.
1572 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1573 * langhooks.h (omp_is_optional_argument): New hook.
1574 * omp-general.c (omp_is_optional_argument): New.
1575 * omp-general.h (omp_is_optional_argument): New declaration.
1576 * omp-low.c (lower_omp_target): Create temporary for received value
1577 and take the address for new_var if the original variable was a
1578 DECL_BY_REFERENCE. Use size of referenced object when a
1579 pass-by-reference optional argument used as argument to firstprivate.
1580
1581 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR tree-optimization/91940
1584 * tree-vect-patterns.c: Include tree-vector-builder.h and
1585 vec-perm-indices.h.
1586 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1587 unpromoting the argument back to uint16_t, or by converting into a
1588 rotate, or into shifts plus ior.
1589
1590 2019-10-02 Richard Biener <rguenther@suse.de>
1591
1592 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1593 New.
1594 (vect_transform_cycle_phi): Declare.
1595 * tree-vect-stmts.c (vect_transform_stmt): Call
1596 vect_transform_cycle_phi.
1597 * tree-vect-loop.c (vectorizable_reduction): Split out
1598 PHI transformation stage to ...
1599 (vect_transform_cycle_phi): ... here.
1600
1601 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1602
1603 PR middle-end/91957
1604 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1605 eliminable registers.
1606 (make_hard_regno_live): Likewise, and don't make them live.
1607
1608 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1609
1610 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1611 Call pp_emit_prefix.
1612 (layout::print_source_line): Likewise.
1613 (layout::start_annotation_line): Likewise.
1614 (diagnostic_show_locus): Remove call to temporarily clear the
1615 prefix.
1616 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1617 interaction of pp_set_prefix with rulers and fix-it hints.
1618 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1619 prefix when calling diagnostic_show_locus, rather than destroying
1620 it afterwards.
1621 (print_parseable_fixits): Temporarily clear prefix.
1622 * pretty-print.c (pp_format): Save and restore line_length, rather
1623 than assuming it is zero.
1624 (pp_output_formatted_text): Remove assertion that line_length is
1625 zero.
1626
1627 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1628
1629 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1630 Rename to ...
1631 (nonoverlapping_refs_since_match_p): ... this; handle also
1632 ARRAY_REFs.
1633 (alias_stats): Update stats.
1634 (dump_alias_stats): Likewise.
1635 (cheap_array_ref_low_bound): New function.
1636 (aliasing_matching_component_refs_p): Add partial_overlap
1637 argument;
1638 pass it to nonoverlapping_refs_since_match_p.
1639 (aliasing_component_refs_walk): Update call of
1640 aliasing_matching_component_refs_p
1641 (nonoverlapping_array_refs_p): New function.
1642 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1643 indirect_refs_may_alias_p): Update calls of
1644 nonoverlapping_refs_since_match_p.
1645
1646 2019-10-01 Maya Rashish <coypu@sdf.org>
1647
1648 PR target/85401
1649 * ira-color.c (allocno_copy_cost_saving): Call
1650 ira_init_register_move_cost_if_necessary.
1651
1652 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1653
1654 * Makefile.in (gnat_install_lib): New variable.
1655 * configure.ac: Substitute it.
1656 * configure: Regenerate.
1657
1658 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1659
1660 PR lto/91222
1661 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1662 is matched with non-C++ type
1663
1664 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1665
1666 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1667 after local CSE.
1668
1669 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1670
1671 * doc/invoke.texi (early-inlining-insns-O2): Document.
1672 (early-inlining-insns): Update.
1673 * params.def (early-inlining-insns-O2): New bound.
1674 (early-inlining-insns): Update docs.
1675 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1676
1677 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1678
1679 PR target/88562
1680 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1681 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1682 a memory access insn.
1683
1684 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1685
1686 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1687 vpmsumd.
1688
1689 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1690
1691 PR target/77918
1692 * config/s390/s390.c (s390_expand_vec_compare): Use
1693 gen_vec_cmpordered and gen_vec_cmpunordered.
1694 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1695 vec_unordered): Delete.
1696 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1697 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1698 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1699 (vec_cmp<code>): Generic dispatcher.
1700
1701 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1702
1703 PR target/77918
1704 * config/s390/vector.md (V_HW): Add V1TI in order to make
1705 vcond$a$b generate vcondv1tiv1tf.
1706
1707 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1708
1709 PR rtl-optimization/91948
1710 * ira-build.c (ira_create_allocno): Initialize
1711 ALLOCNO_CROSSED_CALLS_ABIS.
1712 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1713 than regno to ira_need_caller_save_p.
1714
1715 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1716
1717 * config/i386/i386-options.c
1718 (ix86_recompute_optlev_based_flags): New, moved out of...
1719 (ix86_option_override_internal): ... this. Call it.
1720 (ix86_override_options_after_change): Call it here too.
1721
1722 PR debug/91507
1723 * dwarf2out.c (override_type_for_decl_p): New.
1724 (gen_variable_die): Use it.
1725
1726 2019-10-01 Richard Biener <rguenther@suse.de>
1727
1728 * tree-vect-loop.c (vectorizable_reduction): Move variables
1729 to where they are used.
1730
1731 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1732
1733 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1734 (build_def_use): Use PC instead of CC0 in a comment.
1735
1736 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1737
1738 * rtl.def (CLOBBER_HIGH): Delete.
1739 * doc/rtl.texi (clobber_high): Remove documentation.
1740 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1741 (reg_is_clobbered_by_clobber_high): Delete.
1742 (gen_hard_reg_clobber_high): Likewise.
1743 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1744 * cfgexpand.c (expand_gimple_stmt): Likewise.
1745 * combine-stack-adj.c (single_set_for_csa): Likewise.
1746 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1747 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1748 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1749 * cse.c (invalidate_reg): Remove clobber_high parameter.
1750 (invalidate): Update call accordingly.
1751 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1752 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1753 (count_reg_usage, insn_live_p): Likewise.
1754 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1755 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1756 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1757 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1758 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1759 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1760 (mark_nonreg_stores_2): Likewise.
1761 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1762 (df_get_call_refs): Likewise.
1763 * dwarf2out.c (mem_loc_descriptor): Likewise.
1764 * emit-rtl.c (verify_rtx_sharing): Likewise.
1765 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1766 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1767 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1768 * genemit.c (gen_exp, gen_insn): Likewise.
1769 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1770 * haifa-sched.c (haifa_classify_rtx): Likewise.
1771 * ira-build.c (create_insn_allocnos): Likewise.
1772 * ira-costs.c (scan_one_insn): Likewise.
1773 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1774 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1775 * jump.c (mark_jump_label_1): Likewise.
1776 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1777 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1778 handling.
1779 (mark_not_eliminable): Likewise.
1780 * lra-lives.c (process_bb_lives): Likewise.
1781 * lra.c (new_insn_reg): Remove clobber_high parameter.
1782 (collect_non_operand_hard_regs): Likewise. Update call to new
1783 insn_reg. Remove CLOBBER_HIGH handling.
1784 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1785 to collect_non_operand_hard_regs.
1786 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1787 Update call to new_insn_reg.
1788 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1789 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1790 (move2add_note_store): Likewise.
1791 * print-rtl.c (print_pattern): Likewise.
1792 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1793 (if_test_bypass_p): Likewise.
1794 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1795 * reginfo.c (reg_scan_mark_refs): Likewise.
1796 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1797 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1798 (forget_old_reloads_1): Likewise.
1799 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1800 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1801 (dbr_schedule): Likewise.
1802 * resource.c (update_live_status, mark_referenced_resources)
1803 (mark_set_resources): Likewise.
1804 * rtl.c (copy_rtx): Likewise.
1805 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1806 (note_pattern_stores): Likewise.
1807 (reg_is_clobbered_by_clobber_high): Delete.
1808 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1809 CLOBBER_HIGH handling.
1810
1811 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1812
1813 PR target/91452
1814 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1815 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1816 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1817 Handle ARM_PCS_TLSDESC.
1818 (aarch64_tlsdesc_abi_id): New function.
1819 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1820 rtx instead of a list of clobbers and clobber_highs.
1821 (tlsdesc_small_<mode>): Update accordingly.
1822
1823 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1824
1825 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1826 extra callee_abi argument.
1827 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1828 Insert a CALLEE_ABI unspec into the call pattern as the second
1829 element in the PARALLEL.
1830 (aarch64_simd_call_p): Delete.
1831 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1832 the new CALLEE_ABI element of the PARALLEL.
1833 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1834 from the function type, if given.
1835 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1836 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1837 when passed the function_arg_info end marker.
1838 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1839 final argument of gen_sibcall.
1840 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1841 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1842 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1843 pattern.
1844 (call_value): Likewise operand 3.
1845 (sibcall): Likewise operand 2. Place the unspec before rather than
1846 after the return.
1847 (sibcall_value): Likewise operand 3.
1848 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1849 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1850 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1851 constraint strings.
1852 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1853
1854 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1855
1856 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1857 choose_hard_reg_mode.
1858 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1859
1860 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1861
1862 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1863 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1864 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1865
1866 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1867
1868 * diagnostic-show-locus.c (line_label::line_label): Initialize
1869 m_has_vbar.
1870 (line_label::comparator): Reverse the sort order by m_state_idx,
1871 so that when the list is walked backwards the labels appear in
1872 order of insertion into the rich_location.
1873 (line_label::m_has_vbar): New field.
1874 (layout::print_any_labels): When dealing with multiple labels at
1875 the same line and column, only print vertical bars for the one
1876 with the highest label_line.
1877 (selftest::test_one_liner_labels): Update test for multiple labels
1878 to expect the labels to be in the order of insertion into the
1879 rich_location. Add a test for many such labels, where the column
1880 numbers are out-of-order relative to the insertion order.
1881
1882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1883
1884 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1885 (ix86_frame::expensive_count): Likewise.
1886 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1887 of use_fast_prologue_epilogue robust against incidental changes
1888 in function size.
1889
1890 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1891
1892 PR target/77918
1893 * config/s390/vector.md (vec_unordered<mode>): Call
1894 gen_vec_ordered<mode>.
1895
1896 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1897
1898 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1899 New pattern for ASRD.
1900 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1901 * internal-fn.def (IFN_DIV_POW2): New internal function.
1902 * optabs.def (sdiv_pow2_optab): New optab.
1903 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1904 Modify pattern to support new operation.
1905 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1906 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1907 Document new target selector.
1908
1909 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1910
1911 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1912 to test whether we're compiling a vector PCS function and to test
1913 whether the function needs to save a particular register.
1914 Remove the vector PCS handling of df_set_regs_ever_live.
1915 (aarch64_components_for_bb): Use crtl->abi to test whether
1916 the function needs to save a particular register.
1917 (aarch64_process_components): Use crtl->abi to test whether
1918 we're compiling a vector PCS function.
1919 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1920 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1921
1922 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1923
1924 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1925 Delete.
1926 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1927 whether the block calls a function that clobbers more registers
1928 than the current function is allowed to.
1929 (aarch64_use_simple_return_insn_p): Delete.
1930 * config/aarch64/aarch64.md (simple_return): Remove condition.
1931
1932 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1933
1934 * function-abi.h (function_abi_aggregator): New class.
1935 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1936 function.
1937 * ira.c (update_equiv_regs_prescan): New function. Call
1938 set_paradoxical_subreg here rather than...
1939 (update_equiv_regs): ...here.
1940 (ira): Call update_equiv_regs_prescan.
1941
1942 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1943
1944 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1945 IN_TARGET_CODE.
1946 (call_used_or_fixed_regs): Likewise.
1947 (call_used_or_fixed_reg_p): Likewise.
1948 * reginfo.c (regs_invalidated_by_call): New macro.
1949
1950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 * shrink-wrap.c: Include function-abi.h.
1953 (requires_stack_frame_p): Use crtl->abi to test whether the
1954 current function can use a register without saving it first.
1955
1956 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1957
1958 * sel-sched-ir.h (_def::crosses_call): Replace with...
1959 (_def::crossed_call_abis): ..this new field.
1960 (def_list_add): Take a mask of ABIs instead of a crosses_call
1961 boolean.
1962 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1963 of _def accordingly.
1964 * sel-sched.c: Include function-abi.h.
1965 (hard_regs_data::regs_for_call_clobbered): Delete.
1966 (reg_rename::crosses_call): Replace with...
1967 (reg_rename::crossed_call_abis): ...this new field.
1968 (fur_static_params::crosses_call): Replace with...
1969 (fur_static_params::crossed_call_abis): ...this new field.
1970 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1971 (init_hard_regs_data): Use crtl->abi to test which registers the
1972 current function would need to save before it uses them.
1973 (mark_unavailable_hard_regs): Update handling of call-clobbered
1974 registers, using call_clobbers_in_region to find out which registers
1975 might be call-clobbered (but without taking -fipa-ra into account
1976 for now). Remove separate handling of partially call-clobbered
1977 registers.
1978 (verify_target_availability): Use crossed_call_abis instead of
1979 crosses_call.
1980 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1981 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1982
1983 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1984
1985 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1986 function to test whether a register is fully or partly clobbered.
1987
1988 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * rtlanal.c: Include function-abi.h.
1991 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1992 function and clobbers_reg_p to test whether the register
1993 is call-clobbered.
1994 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1995 to get the ABI of the called function and full_reg_clobbers to
1996 get the set of fully call-clobbered registers. Warn about the
1997 pitfalls of using this mode.
1998
1999 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2000
2001 * reload.c: Include function-abi.h.
2002 (find_equiv_reg): Use clobbers_reg_p to test whether either
2003 of the equivalent registers is clobbered by a call.
2004 * reload1.c: Include function-abi.h.
2005 (reg_reloaded_call_part_clobbered): Delete.
2006 (reload): Use crtl->abi to test which registers would need
2007 saving in the prologue before use.
2008 (find_reg): Likewise.
2009 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2010 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2011 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2012
2013 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * regrename.h (du_head::call_clobber_mask): New field.
2016 (du_head::need_caller_save_reg): Replace with...
2017 (du_head::call_abis): ...this new field.
2018 * regrename.c: Include function-abi.h.
2019 (call_clobbered_in_chain_p): New function.
2020 (check_new_reg_p): Use crtl->abi when deciding whether a register
2021 is free for use after RA. Use call_clobbered_in_chain_p to test
2022 whether a candidate register would be clobbered by a call.
2023 (find_rename_reg): Don't add call-clobber conflicts here.
2024 (rename_chains): Check call_abis instead of need_caller_save_reg.
2025 (merge_chains): Update for changes to du_head.
2026 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2027 target. Record the ABI identifier in call_abis and the set of
2028 fully or partially clobbered registers in call_clobber_mask.
2029 Add fully-clobbered registers to hard_conflicts here rather
2030 than in find_rename_reg.
2031 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2032 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2033 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2034 function-abi.h.
2035 * config/c6x/c6x.c: Likewise.
2036
2037 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2038
2039 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2040 mode of the register when deciding whether it is no longer
2041 available after a call.
2042
2043 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2044
2045 * recog.c: Include function-abi.h.
2046 (peep2_find_free_register): Use crtl->abi when deciding whether
2047 a register is free for use after RA.
2048
2049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2050
2051 * postreload-gcse.c: Include regs.h and function-abi.h.
2052 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2053 call insn target. Conservatively assume that partially-clobbered
2054 registers are altered.
2055
2056 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2057
2058 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2059 when deciding whether a register is free for use after RA.
2060 (reload_combine): Remove unnecessary use of fixed_reg_set.
2061 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2062 call insn target. Use reg_mode when testing whether a register
2063 is no longer available.
2064
2065 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2066
2067 * target.def (return_call_with_max_clobbers): Delete.
2068 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2069 * doc/tm.texi: Regenerate.
2070 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2071 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2072 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2073 (lra_reg::call_insn): Delete.
2074 * lra.c: Include function-abi.h.
2075 (initialize_lra_reg_info_element): Don't initialize the fields above.
2076 (lra): Use crtl->abi to test whether the current function needs to
2077 save a register in the prologue. Remove special pre-inheritance
2078 lra_create_live_ranges pass for flag_ipa_ra.
2079 * lra-assigns.c: Include function-abi.h
2080 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2081 function needs to save a register in the prologue.
2082 (lra_assign): Assert that registers aren't allocated to a
2083 conflicting register, rather than checking only for overlaps
2084 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2085 and for registers that are not live across a call.
2086 * lra-constraints.c (last_call_for_abi): New variable.
2087 (full_and_partial_call_clobbers): Likewise.
2088 (setup_next_usage_insn): Remove the register from
2089 full_and_partial_call_clobbers.
2090 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2091 whether the register needs a caller save.
2092 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2093 of call_used_or_fixed_regs.
2094 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2095 full_and_partial_call_clobbers.
2096 * lra-lives.c (check_pseudos_live_through_calls): Replace
2097 last_call_used_reg_set and call_insn arguments with an abi argument.
2098 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2099 as the set of conflicting registers.
2100 (calls_have_same_clobbers_p): Delete.
2101 (process_bb_lives): Track the ABI of the last call instead of an
2102 insn/HARD_REG_SET pair. Update calls to
2103 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2104 the set of registers that could be clobbered by an EH edge.
2105 Include partially-clobbered as well as fully-clobbered registers.
2106 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2107 * lra-remat.c: Include function-abi.h.
2108 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2109 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2110 registers and bitmap_view to combine them into dead_regs.
2111 (call_used_input_regno_present_p): Take a function_abi argument
2112 and use it to test whether a register is call-clobbered.
2113 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2114 call insn target. Update tje call to call_used_input_regno_present_p.
2115 (do_remat): Likewise.
2116 (lra_remat): Remove the initialization of call_used_regs_arr_len
2117 and call_used_regs_arr.
2118
2119 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2120
2121 * loop-iv.c: Include regs.h and function-abi.h.
2122 (simplify_using_initial_values): Use insn_callee_abi to get the
2123 ABI of the call insn target. Conservatively assume that
2124 partially-clobbered registers are altered.
2125
2126 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2127
2128 * function-abi.h (call_clobbers_in_region): Declare.
2129 (call_clobbered_in_region_p): New function.
2130 * function-abi.cc (call_clobbers_in_region): Likewise.
2131 * ira-int.h: Include function-abi.h.
2132 (ira_allocno::crossed_calls_abis): New field.
2133 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2134 (ira_need_caller_save_regs): New function.
2135 (ira_need_caller_save_p): Likewise.
2136 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2137 of call_used_or_fixed_regs.
2138 (do_reload): Use crtl->abi to test whether the current function
2139 needs to save a register in the prologue. Count registers that
2140 need to be saved rather than registers that don't.
2141 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2142 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2143 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2144 (propagate_some_info_from_allocno): Likewise.
2145 (copy_info_to_removed_store_destinations): Likewise.
2146 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2147 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2148 (ira_build): Use ira_need_caller_save_regs instead of
2149 call_used_or_fixed_regs.
2150 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2151 whether the current function would need to save a register
2152 before using it.
2153 (calculate_spill_cost): Likewise.
2154 (allocno_reload_assign): Use ira_need_caller_save_regs and
2155 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2156 * ira-conflicts.c (ira_build_conflicts): Use
2157 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2158 as the set of call-clobbered registers. Remove the
2159 call_used_or_fixed_regs mask from the calculation of
2160 temp_hard_reg_set and mask its use instead. Remove special
2161 handling of partially-clobbered registers.
2162 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2163 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2164 calculate the set of conflicting registers for calls that
2165 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2166 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2167 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2168 Use eh_edge_abi to calculate the set of registers that could
2169 be clobbered by an EH edge. Include partially-clobbered as
2170 well as fully-clobbered registers.
2171
2172 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2173
2174 * haifa-sched.c: Include function-abi.h.
2175 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2176 the function would need to save a register before using it.
2177
2178 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2179
2180 * gcse.c: Include function-abi.h.
2181 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2182 the call insn target. Invalidate partially call-clobbered
2183 registers as well as fully call-clobbered ones.
2184
2185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2186
2187 * function.c (aggregate_value_p): Work out which ABI the
2188 function is using before testing which registers are at least
2189 partly preserved by a call.
2190
2191 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2192
2193 * early-remat.c: Include regs.h and function-abi.h.
2194 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2195 registers here.
2196 (early_remat::restrict_remat_for_unavail_regs): New function.
2197 (early_remat::restrict_remat_for_call): Likewise.
2198 (early_remat::process_block): Before calling emit_remat_insns
2199 for a previous call in the block, invalidate any candidates
2200 that would clobber call-preserved registers.
2201 (early_remat::emit_remat_insns_for_block): Likewise for the
2202 final call in a block. Do the same thing for live-in registers
2203 when calling emit_remat_insns at the head of a block.
2204
2205 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2206
2207 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2208 whether the current function needs to save at least part of a
2209 register before using it.
2210 (df_get_exit_block_use_set): Likewise for epilogue restores.
2211
2212 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2213
2214 * df-problems.c: Include regs.h and function-abi.h.
2215 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2216 sparse_invalidated_by_eh and dense_invalidated_by_call to
2217 dense_invalidated_by_eh.
2218 (df_print_bb_index): Update accordingly.
2219 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2220 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2221 that are clobbered by an EH edge. Clobber partially-clobbered
2222 registers as well as fully-clobbered ones.
2223 (df_md_confluence_n): Likewise.
2224 (df_rd_local_compute): Likewise. Update for changes to
2225 df_rd_problem_data.
2226 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2227 of registers that are clobbered by an EH edge. Includde partially-
2228 clobbered registers as well as fully-clobbered ones.
2229
2230 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2231
2232 * cselib.c (cselib_process_insn): If we know what mode a
2233 register was set in, check whether it is clobbered in that
2234 mode by a call. Only fall back to reg_raw_mode if that fails.
2235
2236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2237
2238 * cse.c: Include regs.h and function-abi.h.
2239 (invalidate_for_call): Take the call insn as an argument.
2240 Use insn_callee_abi to get the ABI of the call and invalidate
2241 partially clobbered registers as well as fully clobbered ones.
2242 (cse_insn): Update call accordingly.
2243
2244 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2245
2246 * combine.c: Include function-abi.h.
2247 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2248 of the target of call insns. Invalidate partially-clobbered
2249 registers as well as fully-clobbered ones.
2250
2251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2252
2253 * cfgloopanal.c: Include regs.h and function-abi.h.
2254 (init_set_costs): Use default_function_abi to test whether
2255 a general register is call-clobbered.
2256
2257 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2258
2259 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2260 instead of the call-clobbered sets.
2261
2262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2263
2264 * caller-save.c (setup_save_areas): Remove redundant |s of
2265 fixed_reg_set.
2266 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2267 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2268 value is useful.
2269
2270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2271
2272 * rtl.h (predefined_function_abi): Declare.
2273 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2274 instead of a boolean call_save flag.
2275 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2276 accordingly.
2277 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2278 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2279 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2280 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2281 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2282 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2283 * reginfo.c (init_reg_modes_target): Likewise.
2284 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2285 instead of a boolean call_save flag.
2286 * targhooks.c: Include function-abi.h.
2287 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2288 using eh_edge_abi to choose the mode.
2289
2290 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2291
2292 * target.def (hard_regno_call_part_clobbered): Take an ABI
2293 identifier instead of an rtx_insn.
2294 * doc/tm.texi: Regenerate.
2295 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2296 (hook_bool_uint_uint_mode_false): New function.
2297 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2298 (hook_bool_uint_uint_mode_false): New function.
2299 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2300 Take an ABI identifier instead of an rtx_insn.
2301 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2302 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2303 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2304 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2305 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2306 Likewise.
2307 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2308 * cselib.c: Include function-abi.h.
2309 (cselib_process_insn): Update call to
2310 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2311 to get the appropriate ABI identifier.
2312 * function-abi.cc (predefined_function_abi::initialize): Update call
2313 to targetm.hard_regno_call_part_clobbered.
2314 * ira-conflicts.c (ira_build_conflicts): Likewise.
2315 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2316 * lra-constraints.c: Include function-abi.h.
2317 (need_for_call_save_p): Update call to
2318 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2319 to get the appropriate ABI identifier.
2320 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2321 * regcprop.c (copyprop_hardreg_forward_1): Update call
2322 to targetm.hard_regno_call_part_clobbered.
2323 * reginfo.c (choose_hard_reg_mode): Likewise.
2324 * regrename.c (check_new_reg_p): Likewise.
2325 * reload.c (find_equiv_reg): Likewise.
2326 * reload1.c (emit_reload_insns): Likewise.
2327 * sched-deps.c: Include function-abi.h.
2328 (deps_analyze_insn): Update call to
2329 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2330 to get the appropriate ABI identifier.
2331 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2332 call to targetm.hard_regno_call_part_clobbered.
2333 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2334
2335 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2336
2337 * config/i386/i386.c: Include function-abi.h.
2338 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2339 if they preserve some 256-bit or 512-bit SSE registers.
2340
2341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2342
2343 * target.def (insn_callee_abi): New hook.
2344 (remove_extra_call_preserved_regs): Delete.
2345 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2346 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2347 * doc/tm.texi: Regenerate.
2348 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2349 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2350 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2351 insn argument.
2352 (aarch64_remove_extra_call_preserved_regs): Delete.
2353 (aarch64_insn_callee_abi): New function.
2354 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2355 (TARGET_INSN_CALLEE_ABI): New macro.
2356 * rtl.h (get_call_fndecl): Declare.
2357 (cgraph_rtl_info): Fix formatting. Tweak comment for
2358 function_used_regs. Remove function_used_regs_valid.
2359 * rtlanal.c (get_call_fndecl): Moved from final.c
2360 * function-abi.h (insn_callee_abi): Declare.
2361 (target_function_abi_info): Mention insn_callee_abi.
2362 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2363 way to get_call_reg_set_usage did.
2364 (insn_callee_abi): New function.
2365 * regs.h (get_call_reg_set_usage): Delete.
2366 * final.c: Include function-abi.h.
2367 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2368 function_used_regs before the main loop rather than afterwards.
2369 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2370 if function_used_regs ends up not being useful.
2371 (get_call_fndecl): Move to rtlanal.c
2372 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2373 * caller-save.c: Include function-abi.h.
2374 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2375 instead of get_call_reg_set_usage.
2376 * cfgcleanup.c: Include function-abi.h.
2377 (old_insns_match_p): Use insn_callee_abi instead of
2378 get_call_reg_set_usage.
2379 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2380 a tree.
2381 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2382 function_used_regs.
2383 * df-scan.c: Include function-abi.h.
2384 (df_get_call_refs): Use insn_callee_abi instead of
2385 get_call_reg_set_usage.
2386 * ira-lives.c: Include function-abi.h.
2387 (process_bb_node_lives): Use insn_callee_abi instead of
2388 get_call_reg_set_usage.
2389 * lra-lives.c: Include function-abi.h.
2390 (process_bb_lives): Use insn_callee_abi instead of
2391 get_call_reg_set_usage.
2392 * postreload.c: Include function-abi.h.
2393 (reload_combine): Use insn_callee_abi instead of
2394 get_call_reg_set_usage.
2395 * regcprop.c: Include function-abi.h.
2396 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2397 get_call_reg_set_usage.
2398 * resource.c: Include function-abi.h.
2399 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2400 instead of get_call_reg_set_usage.
2401 * var-tracking.c: Include function-abi.h.
2402 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2403 get_call_reg_set_usage.
2404
2405 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2406
2407 * target.def (fntype_abi): New target hook.
2408 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2409 * doc/tm.texi: Regenerate.
2410 * target.h (predefined_function_abi): Declare.
2411 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2412 if defined.
2413 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2414 * config/aarch64/aarch64.c: Include function-abi.h.
2415 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2416 (TARGET_FNTYPE_ABI): Define.
2417
2418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2419
2420 * Makefile.in (OBJS): Add function-abi.o.
2421 (GTFILES): Add function-abi.h.
2422 * function-abi.cc: New file.
2423 * function-abi.h: Likewise.
2424 * emit-rtl.h (rtl_data::abi): New field.
2425 * function.c: Include function-abi.h.
2426 (prepare_function_start): Initialize crtl->abi.
2427 * read-rtl-function.c: Include regs.h and function-abi.h.
2428 (read_rtl_function_body): Initialize crtl->abi.
2429 (read_rtl_function_body_from_file_range): Likewise.
2430 * reginfo.c: Include function-abi.h.
2431 (init_reg_sets_1): Initialize default_function_abi.
2432 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2433 when making a register global.
2434 * target-globals.h (this_target_function_abi_info): Declare.
2435 (target_globals::function_abi_info): New field.
2436 (restore_target_globals): Copy it.
2437 * target-globals.c: Include function-abi.h.
2438 (default_target_globals): Initialize the function_abi_info field.
2439 (target_globals): Allocate it.
2440 (save_target_globals): Free it.
2441
2442 2019-09-30 Nick Clifton <nickc@redhat.com>
2443
2444 PR target/85978
2445 * config/frv/frv.c (frv_register_move_cost): Add break statements
2446 to avoid falling through to the wrong cases. Tidy code.
2447
2448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2449
2450 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2451 For multi-registers modes, test how big each register part is.
2452
2453 2019-09-30 Nick Clifton <nickc@redhat.com>
2454
2455 PR target/59205
2456 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2457 (TARGET_ASM_SELECT_SECTION): Remove definition.
2458 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2459
2460 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2461
2462 * emit-rtl.c (init_raw_REG): New function.
2463 (gen_raw_REG): Use init_raw_REG.
2464 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2465 macros.
2466 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2467 * rtl.h (rtx_init): New function.
2468 (rtx_alloca): New function.
2469 (init_raw_REG): New function.
2470 (alloca_raw_REG): New macro.
2471
2472 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2473
2474 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2475 (pcrel_local_address): Replace pcrel_address predicate, use the
2476 new function address_to_insn_form.
2477 (pcrel_external_address): Replace with new implementation using
2478 address_to_insn_form..
2479 (prefixed_mem_operand): Delete predicate which is now unused.
2480 (pcrel_external_mem_operand): Delete predicate which is now
2481 unused.
2482 * config/rs6000/rs6000-protos.h (enum insn_form): New
2483 enumeration.
2484 (enum non_prefixed_form): New enumeration.
2485 (address_to_insn_form): New declaration.
2486 (prefixed_load_p): New declaration.
2487 (prefixed_store_p): New declaration.
2488 (prefixed_paddi_p): New declaration.
2489 (rs6000_asm_output_opcode): New declaration.
2490 (rs6000_final_prescan_insn): Move declaration and update calling
2491 signature.
2492 (address_is_prefixed): New helper inline function.
2493 * config/rs6000/rs6000.c(print_operand_address): Check for either
2494 PC-relative local symbols or PC-relative external symbols.
2495 (rs6000_emit_move): Support loading PC-relative addresses.
2496 (mode_supports_prefixed_address_p): Delete, no longer used.
2497 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2498 (address_to_insn_form): New function to decode an address format.
2499 (reg_to_non_prefixed): New function to identify what the
2500 non-prefixed memory instruction format is for a register.
2501 (prefixed_load_p): New function to identify prefixed loads.
2502 (prefixed_store_p): New function to identify prefixed stores.
2503 (prefixed_paddi_p): New function to identify prefixed load
2504 immediates.
2505 (next_insn_prefixed_p): New static state variable.
2506 (rs6000_final_prescan_insn): New function to determine if an insn
2507 uses a prefixed instruction.
2508 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2509 prefixed instruction.
2510 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2511 (ASM_OUTPUT_OPCODE): New target hook.
2512 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2513 prefixed instructions.
2514 (prefixed_length): New insn attribute for the size of prefixed
2515 instructions.
2516 (non_prefixed_length): New insn attribute for the size of
2517 non-prefixed instructions.
2518 (pcrel_local_addr): New insn to load up a local PC-relative
2519 address.
2520 (pcrel_extern_addr): New insn to load up an external PC-relative
2521 address.
2522 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2523 GPR and loading a 128-bit floating point type to a GPR.
2524
2525 2019-09-30 Richard Biener <rguenther@suse.de>
2526
2527 * gimple.c (gimple_get_lhs): For PHIs return the result.
2528 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2529 SLP instance as argument.
2530 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2531 double-reduction PHIs with vectorizable_lc_phi.
2532 (vect_analyze_loop_operations): Adjust.
2533 (vect_create_epilog_for_reduction): Remove all code not dealing
2534 with reduction LC PHI or epilogue generation.
2535 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2536 for live stmts of reductions.
2537 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2538 do not handle defs that are not vect_internal_def.
2539 (can_vectorize_live_stmts): Adjust.
2540 (vect_analyze_stmt): When the vectorized stmt defined a value
2541 used on backedges adjust the backedge uses of vectorized PHIs.
2542
2543 2019-09-30 Martin Jambor <mjambor@suse.cz>
2544
2545 PR ipa/91853
2546 * tree-inline.c (force_value_to_type): New function.
2547 (setup_one_parameter): Use force_value_to_type to convert type.
2548 * tree-inline.c (force_value_to_type): Declare.
2549 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2550 with register type mismatches.
2551
2552 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2553
2554 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2555 32-bit PowerPC.
2556 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2557 * config/rs6000/t-freebsd64: Make use of the above define and build
2558 the 32-bit libraries with secure-plt.
2559
2560 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2561
2562 PR target/91931
2563 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2564 gen_int_mode instead of GEN_INT.
2565
2566 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2567
2568 * config/darwin.c (gen_macho_low): Amend to include the mode
2569 argument.
2570 (machopic_indirect_data_reference): Amend gen_macho_low call
2571 to include mode argument
2572 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2573 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2574 the macho_high expander and two define_insn entries.
2575
2576 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2577
2578 PR bootstrap/90543
2579 * optc-save-gen.awk: Fix up printing string option differences.
2580
2581 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2582
2583 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2584 vec_perm cost to 1 for non-Power7 VSX architectures.
2585
2586 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2587
2588 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2589 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2590 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2591
2592 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2593
2594 * config/darwin.c (gen_macho_high): Amend to include the mode
2595 argument.
2596 (machopic_indirect_data_reference): Amend gen_macho_high call
2597 to include mode argument.
2598 (machopic_legitimize_pic_address): Likewise.
2599 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2600 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2601 the macho_high expander and two define_insn entries.
2602
2603 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2604
2605 PR target/86805
2606 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2607
2608 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2609
2610 PR target/80672
2611 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2612 std::string::compare instead of std::string::find.
2613
2614 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2615
2616 * configure: Regenerate.
2617
2618 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2619
2620 PR middle-end/91920
2621 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2622 variables as shared.
2623
2624 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2625
2626 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2627 replaces the expander and two define_insn entries.
2628 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2629 call.
2630 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2631
2632 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2633
2634 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2635 (fibonacci_heap::nodes): Likewise.
2636 (fibonacci_heap::min_key): Likewise.
2637 (fibonacci_heap::min): Likewise.
2638
2639 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2640
2641 * cgraph.c (cgraph_node::get_fun): Make const.
2642 * cgraph.h (cgraph_node::get_fun): Likewise.
2643
2644 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2645
2646 PR target/91919
2647 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2648 of SImode MULT.
2649
2650 2019-09-27 Richard Biener <rguenther@suse.de>
2651
2652 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2653 (STMT_VINFO_REDUC_FN): Likewise.
2654 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2655 STMT_VINFO_REDUC_FN.
2656 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2657 for condition reductions.
2658 (vect_create_epilog_for_reduction): Compute all required state
2659 from the stmt to be vectorized.
2660 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2661 invocation and remove then dead code. For single def-use chains
2662 record only a single vector stmt.
2663
2664 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2665
2666 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2667 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2668 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2669 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2670 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2671 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2672 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2673 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2674 (aarch64_general_builtin_rsqrt): Declare.
2675 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2676 New function.
2677 (aarch64_mangle_builtin_type): Rename to...
2678 (aarch64_general_mangle_builtin_type): ...this.
2679 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2680 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2681 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2682 aarch64_general_add_builtin instead of add_builtin_function.
2683 (aarch64_init_builtins): Rename to...
2684 (aarch64_general_init_builtins): ...this. Use
2685 aarch64_general_add_builtin instead of add_builtin_function.
2686 (aarch64_builtin_decl): Rename to...
2687 (aarch64_general_builtin_decl): ...this and remove the unused
2688 arguments.
2689 (aarch64_expand_builtin): Rename to...
2690 (aarch64_general_expand_builtin): ...this and remove the unused
2691 arguments.
2692 (aarch64_builtin_rsqrt): Rename to...
2693 (aarch64_general_builtin_rsqrt): ...this.
2694 (aarch64_fold_builtin): Rename to...
2695 (aarch64_general_fold_builtin): ...this. Take the function subcode
2696 and return type as arguments. Remove the "ignored" argument.
2697 (aarch64_gimple_fold_builtin): Rename to...
2698 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2699 subcode and gcall as arguments, and return the new function call.
2700 * config/aarch64/aarch64.c (aarch64_init_builtins)
2701 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2702 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2703 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2704 instead of aarch64_builtin_rsqrt.
2705 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2706 instead of aarch64_mangle_builtin_type.
2707
2708 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2709
2710 * target.def (check_builtin_call): New target hook.
2711 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2712 * doc/tm.texi: Regenerate.
2713
2714 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2715
2716 PR tree-optimization/91909
2717 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2718 reduc_index parameter. When handling COND_REDUCTION, make sure
2719 that the reduction phi operand is in the correct arm of the
2720 VEC_COND_EXPR.
2721 (vectorizable_reduction): Pass reduc_index to the above.
2722
2723 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2724
2725 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2726 New combine pattern.
2727
2728 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2729
2730 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2731 loop instruction into new basic block before the loop when basic
2732 block that precedes the loop is empty.
2733
2734 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2735
2736 * function.c (gimplify_parameters): Use build_clobber function.
2737 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2738 * tree-inline.c (expand_call_inline): Likewise.
2739 * tree-sra.c (clobber_subtree): Likewise.
2740 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2741 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2742 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2743 lower_omp_target): Likewise.
2744 * omp-expand.c (expand_omp_for_generic): Likewise.
2745 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2746
2747 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2748
2749 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2750 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2751 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2752 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2753 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2754 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2755 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2756 LD_ELEMREV_V16QI): Use the PURE attribute.
2757
2758 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2759
2760 * config/rs6000/darwin.md: Replace the expanders for
2761 load_macho_picbase and reload_macho_picbase with use of '@'
2762 and <mode> in their respective define_insns.
2763 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2764 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2765 Pmode to gen_load_macho_picbase.
2766 * config/rs6000/rs6000.md: Likewise.
2767
2768 2019-09-25 Richard Biener <rguenther@suse.de>
2769
2770 PR tree-optimization/91896
2771 * tree-vect-loop.c (vectorizable_reduction): The single
2772 def-use cycle optimization cannot apply when there's more
2773 than one pattern stmt involved.
2774
2775 2019-09-26 Richard Biener <rguenther@suse.de>
2776
2777 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2778 loop-closed PHIs that are vect_internal_def.
2779 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2780 Simplify.
2781 (vectorizable_lc_phi): New.
2782 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2783 (vect_transform_stmt): Likewise.
2784 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2785 (vectorizable_lc_phi): Declare.
2786
2787 2019-09-26 Richard Biener <rguenther@suse.de>
2788
2789 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2790 vectorizable_reduction for vect_double_reduction_def.
2791 (vect_transform_loop): Likewise.
2792 (vect_create_epilog_for_reduction): Move double-reduction
2793 PHI creation and preheader argument setting of PHIs ...
2794 (vectorizable_reduction): ... here. Also process
2795 vect_double_reduction_def PHIs, creating the vectorized
2796 PHI nodes, remembering the scalar adjustment computed for
2797 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2798 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2799 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2800 Initialize STMT_VINFO_REDUC_CODE.
2801 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2802 (_stmt_vec_info::reduc_code): Likewise.
2803 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2804 (STMT_VINFO_REDUC_CODE): Likewise.
2805
2806 2019-09-26 Matt Turner <mattst88@gmail.com>
2807
2808 PR driver/69471
2809 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2810 (mtune=): Add Negative(mtune=).
2811 (mcpu=): Add Negative(mcpu=).
2812 * config/arm/arm.opt: Likewise.
2813
2814 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2815
2816 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2817 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2818 Define.
2819 * config/arm/arm_acle.h: Define builtins for the above.
2820 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2821 (simd32_op): Handle the above.
2822 * config/arm/unspecs.md: Define unspecs for the above.
2823
2824 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2825
2826 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2827 (arm_<sup>xtb16): Likewise.
2828 (arm_usada8): Likewise.
2829 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2830 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2831 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2832 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2833 __sxtb16, __uxtab16, __uxtb16): Define.
2834 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2835 * config/arm/unspecs.md: Define unspecs for the above.
2836 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2837 (USXTB16): Likewise.
2838 (simd32_op): New int_attribute.
2839 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2840 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2841
2842 2019-09-26 Martin Jambor <mjambor@suse.cz>
2843
2844 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2845 internal_error.
2846
2847 2019-09-26 Martin Jambor <mjambor@suse.cz>
2848
2849 * ipa-sra.c (process_scan_results): Fix continue condition.
2850
2851 2019-09-26 Martin Liska <mliska@suse.cz>
2852
2853 PR tree-optimization/91885
2854 * tree-vectorizer.c (try_vectorize_loop_1): Add
2855 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2856
2857 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2858
2859 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2860 aarch64_plus_immediate rather than aarch64_uimm12_shift
2861 to test for valid PLUS immediates.
2862
2863 2019-09-25 Martin Jambor <mjambor@suse.cz>
2864
2865 * tree-sra.c (no_accesses_p): Remove.
2866 (no_accesses_representant): Likewise.
2867
2868 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2869
2870 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2871 consistenly.
2872 (vaba_s16): Likewise.
2873 (vaba_s32): Likewise.
2874 (vaba_u8): Likewise.
2875 (vaba_u16): Likewise.
2876 (vaba_u32): Likewise.
2877 (vabal_high_s8): Likewise.
2878 (vabal_high_s16): Likewise.
2879 (vabal_high_s32): Likewise.
2880 (vabal_high_u8): Likewise.
2881 (vabal_high_u16): Likewise.
2882 (vabal_high_u32): Likewise.
2883 (vabal_s8): Likewise.
2884 (vabal_s16): Likewise.
2885 (vabal_s32): Likewise.
2886 (vabal_u8): Likewise.
2887 (vabal_u16): Likewise.
2888 (vabal_u32): Likewise.
2889 (vabaq_s8): Likewise.
2890 (vabaq_s16): Likewise.
2891 (vabaq_s32): Likewise.
2892 (vabaq_u8): Likewise.
2893 (vabaq_u16): Likewise.
2894 (vabaq_u32): Likewise.
2895 (vabd_s8): Likewise.
2896 (vabd_s16): Likewise.
2897 (vabd_s32): Likewise.
2898 (vabd_u8): Likewise.
2899 (vabd_u16): Likewise.
2900 (vabd_u32): Likewise.
2901 (vabdl_high_s8): Likewise.
2902 (vabdl_high_s16): Likewise.
2903 (vabdl_high_s32): Likewise.
2904 (vabdl_high_u8): Likewise.
2905 (vabdl_high_u16): Likewise.
2906 (vabdl_high_u32): Likewise.
2907 (vabdl_s8): Likewise.
2908 (vabdl_s16): Likewise.
2909 (vabdl_s32): Likewise.
2910 (vabdl_u8): Likewise.
2911 (vabdl_u16): Likewise.
2912 (vabdl_u32): Likewise.
2913 (vabdq_s8): Likewise.
2914 (vabdq_s16): Likewise.
2915 (vabdq_s32): Likewise.
2916 (vabdq_u8): Likewise.
2917 (vabdq_u16): Likewise.
2918 (vabdq_u32): Likewise.
2919 (vaddlv_s8): Likewise.
2920 (vaddlv_s16): Likewise.
2921 (vaddlv_u8): Likewise.
2922 (vaddlv_u16): Likewise.
2923 (vaddlvq_s8): Likewise.
2924 (vaddlvq_s16): Likewise.
2925 (vaddlvq_s32): Likewise.
2926 (vaddlvq_u8): Likewise.
2927 (vaddlvq_u16): Likewise.
2928 (vaddlvq_u32): Likewise.
2929 (vcvtx_f32_f64): Likewise.
2930 (vcvtx_high_f32_f64): Likewise.
2931 (vcvtxd_f32_f64): Likewise.
2932 (vmla_n_f32): Likewise.
2933 (vmla_n_s16): Likewise.
2934 (vmla_n_s32): Likewise.
2935 (vmla_n_u16): Likewise.
2936 (vmla_n_u32): Likewise.
2937 (vmla_s8): Likewise.
2938 (vmla_s16): Likewise.
2939 (vmla_s32): Likewise.
2940 (vmla_u8): Likewise.
2941 (vmla_u16): Likewise.
2942 (vmla_u32): Likewise.
2943 (vmlal_high_n_s16): Likewise.
2944 (vmlal_high_n_s32): Likewise.
2945 (vmlal_high_n_u16): Likewise.
2946 (vmlal_high_n_u32): Likewise.
2947 (vmlal_high_s8): Likewise.
2948 (vmlal_high_s16): Likewise.
2949 (vmlal_high_s32): Likewise.
2950 (vmlal_high_u8): Likewise.
2951 (vmlal_high_u16): Likewise.
2952 (vmlal_high_u32): Likewise.
2953 (vmlal_n_s16): Likewise.
2954 (vmlal_n_s32): Likewise.
2955 (vmlal_n_u16): Likewise.
2956 (vmlal_n_u32): Likewise.
2957 (vmlal_s8): Likewise.
2958 (vmlal_s16): Likewise.
2959 (vmlal_s32): Likewise.
2960 (vmlal_u8): Likewise.
2961 (vmlal_u16): Likewise.
2962 (vmlal_u32): Likewise.
2963 (vmlaq_n_f32): Likewise.
2964 (vmlaq_n_s16): Likewise.
2965 (vmlaq_n_s32): Likewise.
2966 (vmlaq_n_u16): Likewise.
2967 (vmlaq_n_u32): Likewise.
2968 (vmlaq_s8): Likewise.
2969 (vmlaq_s16): Likewise.
2970 (vmlaq_s32): Likewise.
2971 (vmlaq_u8): Likewise.
2972 (vmlaq_u16): Likewise.
2973 (vmlaq_u32): Likewise.
2974 (vmls_n_f32): Likewise.
2975 (vmls_n_s16): Likewise.
2976 (vmls_n_s32): Likewise.
2977 (vmls_n_u16): Likewise.
2978 (vmls_n_u32): Likewise.
2979 (vmls_s8): Likewise.
2980 (vmls_s16): Likewise.
2981 (vmls_s32): Likewise.
2982 (vmls_u8): Likewise.
2983 (vmls_u16): Likewise.
2984 (vmls_u32): Likewise.
2985 (vmlsl_high_n_s16): Likewise.
2986 (vmlsl_high_n_s32): Likewise.
2987 (vmlsl_high_n_u16): Likewise.
2988 (vmlsl_high_n_u32): Likewise.
2989 (vmlsl_high_s8): Likewise.
2990 (vmlsl_high_s16): Likewise.
2991 (vmlsl_high_s32): Likewise.
2992 (vmlsl_high_u8): Likewise.
2993 (vmlsl_high_u16): Likewise.
2994 (vmlsl_high_u32): Likewise.
2995 (vmlsl_n_s16): Likewise.
2996 (vmlsl_n_s32): Likewise.
2997 (vmlsl_n_u16): Likewise.
2998 (vmlsl_n_u32): Likewise.
2999 (vmlsl_s8): Likewise.
3000 (vmlsl_s16): Likewise.
3001 (vmlsl_s32): Likewise.
3002 (vmlsl_u8): Likewise.
3003 (vmlsl_u16): Likewise.
3004 (vmlsl_u32): Likewise.
3005 (vmlsq_n_f32): Likewise.
3006 (vmlsq_n_s16): Likewise.
3007 (vmlsq_n_s32): Likewise.
3008 (vmlsq_n_u16): Likewise.
3009 (vmlsq_n_u32): Likewise.
3010 (vmlsq_s8): Likewise.
3011 (vmlsq_s16): Likewise.
3012 (vmlsq_s32): Likewise.
3013 (vmlsq_u8): Likewise.
3014 (vmlsq_u16): Likewise.
3015 (vmlsq_u32): Likewise.
3016 (vmovl_high_s8): Likewise.
3017 (vmovl_high_s16): Likewise.
3018 (vmovl_high_s32): Likewise.
3019 (vmovl_high_u8): Likewise.
3020 (vmovl_high_u16): Likewise.
3021 (vmovl_high_u32): Likewise.
3022 (vmovl_s8): Likewise.
3023 (vmovl_s16): Likewise.
3024 (vmovl_s32): Likewise.
3025 (vmovl_u8): Likewise.
3026 (vmovl_u16): Likewise.
3027 (vmovl_u32): Likewise.
3028 (vmovn_high_s16): Likewise.
3029 (vmovn_high_s32): Likewise.
3030 (vmovn_high_s64): Likewise.
3031 (vmovn_high_u16): Likewise.
3032 (vmovn_high_u32): Likewise.
3033 (vmovn_high_u64): Likewise.
3034 (vmovn_s16): Likewise.
3035 (vmovn_s32): Likewise.
3036 (vmovn_s64): Likewise.
3037 (vmovn_u16): Likewise.
3038 (vmovn_u32): Likewise.
3039 (vmovn_u64): Likewise.
3040 (vmull_high_n_s16): Likewise.
3041 (vmull_high_n_s32): Likewise.
3042 (vmull_high_n_u16): Likewise.
3043 (vmull_high_n_u32): Likewise.
3044 (vmull_high_p8): Likewise.
3045 (vmull_high_s8): Likewise.
3046 (vmull_high_s16): Likewise.
3047 (vmull_high_s32): Likewise.
3048 (vmull_high_u8): Likewise.
3049 (vmull_high_u16): Likewise.
3050 (vmull_high_u32): Likewise.
3051 (vmull_n_s16): Likewise.
3052 (vmull_n_s32): Likewise.
3053 (vmull_n_u16): Likewise.
3054 (vmull_n_u32): Likewise.
3055 (vmull_p8): Likewise.
3056 (vmull_s8): Likewise.
3057 (vmull_s16): Likewise.
3058 (vmull_s32): Likewise.
3059 (vmull_u8): Likewise.
3060 (vmull_u16): Likewise.
3061 (vmull_u32): Likewise.
3062 (vpadal_s8): Likewise.
3063 (vpadal_s16): Likewise.
3064 (vpadal_s32): Likewise.
3065 (vpadal_u8): Likewise.
3066 (vpadal_u16): Likewise.
3067 (vpadal_u32): Likewise.
3068 (vpadalq_s8): Likewise.
3069 (vpadalq_s16): Likewise.
3070 (vpadalq_s32): Likewise.
3071 (vpadalq_u8): Likewise.
3072 (vpadalq_u16): Likewise.
3073 (vpadalq_u32): Likewise.
3074 (vpaddl_s8): Likewise.
3075 (vpaddl_s16): Likewise.
3076 (vpaddl_s32): Likewise.
3077 (vpaddl_u8): Likewise.
3078 (vpaddl_u16): Likewise.
3079 (vpaddl_u32): Likewise.
3080 (vpaddlq_s8): Likewise.
3081 (vpaddlq_s16): Likewise.
3082 (vpaddlq_s32): Likewise.
3083 (vpaddlq_u8): Likewise.
3084 (vpaddlq_u16): Likewise.
3085 (vpaddlq_u32): Likewise.
3086 (vpaddq_s8): Likewise.
3087 (vpaddq_s16): Likewise.
3088 (vpaddq_s32): Likewise.
3089 (vpaddq_s64): Likewise.
3090 (vpaddq_u8): Likewise.
3091 (vpaddq_u16): Likewise.
3092 (vpaddq_u32): Likewise.
3093 (vpaddq_u64): Likewise.
3094 (vqdmulh_n_s16): Likewise.
3095 (vqdmulh_n_s32): Likewise.
3096 (vqdmulhq_n_s16): Likewise.
3097 (vqdmulhq_n_s32): Likewise.
3098 (vqmovn_high_s16): Likewise.
3099 (vqmovn_high_s32): Likewise.
3100 (vqmovn_high_s64): Likewise.
3101 (vqmovn_high_u16): Likewise.
3102 (vqmovn_high_u32): Likewise.
3103 (vqmovn_high_u64): Likewise.
3104 (vqmovun_high_s16): Likewise.
3105 (vqmovun_high_s32): Likewise.
3106 (vqmovun_high_s64): Likewise.
3107 (vqrdmulh_n_s16): Likewise.
3108 (vqrdmulh_n_s32): Likewise.
3109 (vqrdmulhq_n_s16): Likewise.
3110 (vqrdmulhq_n_s32): Likewise.
3111 (vrsqrte_u32): Likewise.
3112 (vrsqrteq_u32): Likewise.
3113 (vtst_p8): Likewise.
3114 (vtst_p16): Likewise.
3115 (vtst_p64): Likewise.
3116 (vtstq_p8): Likewise.
3117 (vtstq_p16): Likewise.
3118 (vtstq_p64): Likewise.
3119 (vaddlv_s32): Likewise.
3120 (vaddlv_u32): Likewise.
3121 (vqtbl1_p8): Likewise.
3122 (vqtbl1_s8): Likewise.
3123 (vqtbl1_u8): Likewise.
3124 (vqtbl1q_p8): Likewise.
3125 (vqtbl1q_s8): Likewise.
3126 (vqtbl1q_u8): Likewise.
3127 (vqtbx1_s8): Likewise.
3128 (vqtbx1_u8): Likewise.
3129 (vqtbx1_p8): Likewise.
3130 (vqtbx1q_s8): Likewise.
3131 (vqtbx1q_u8): Likewise.
3132 (vqtbx1q_p8): Likewise.
3133 (vtbl1_s8): Likewise.
3134 (vtbl1_u8): Likewise.
3135 (vtbl1_p8): Likewise.
3136 (vtbl2_s8): Likewise.
3137 (vtbl2_u8): Likewise.
3138 (vtbl2_p8): Likewise.
3139 (vtbl3_s8): Likewise.
3140 (vtbl3_u8): Likewise.
3141 (vtbl3_p8): Likewise.
3142 (vtbl4_s8): Likewise.
3143 (vtbl4_u8): Likewise.
3144 (vtbl4_p8): Likewise.
3145 (vtbx2_s8): Likewise.
3146 (vtbx2_u8): Likewise.
3147 (vtbx2_p8): Likewise.
3148 (vld1_f32): Likewise.
3149 (vld1_f64): Likewise.
3150 (vld1_p8): Likewise.
3151 (vld1_p16): Likewise.
3152 (vld1_p64): Likewise.
3153 (vld1_s8): Likewise.
3154 (vld1_s16): Likewise.
3155 (vld1_s32): Likewise.
3156 (vld1_s64): Likewise.
3157 (vld1_u8): Likewise.
3158 (vld1_u16): Likewise.
3159 (vld1_u32): Likewise.
3160 (vld1_u64): Likewise.
3161 (vld1q_f32): Likewise.
3162 (vld1q_f64): Likewise.
3163 (vld1q_p8): Likewise.
3164 (vld1q_p16): Likewise.
3165 (vld1q_p64): Likewise.
3166 (vld1q_s8): Likewise.
3167 (vld1q_s16): Likewise.
3168 (vld1q_s32): Likewise.
3169 (vld1q_s64): Likewise.
3170 (vld1q_u8): Likewise.
3171 (vld1q_u16): Likewise.
3172 (vld1q_u32): Likewise.
3173 (vld1q_u64): Likewise.
3174 (vpmax_s8): Likewise.
3175 (vpmax_s16): Likewise.
3176 (vpmax_s32): Likewise.
3177 (vpmax_u8): Likewise.
3178 (vpmax_u16): Likewise.
3179 (vpmax_u32): Likewise.
3180 (vpmaxq_s8): Likewise.
3181 (vpmaxq_s16): Likewise.
3182 (vpmaxq_s32): Likewise.
3183 (vpmaxq_u8): Likewise.
3184 (vpmaxq_u16): Likewise.
3185 (vpmaxq_u32): Likewise.
3186 (vpmax_f32): Likewise.
3187 (vpmaxq_f32): Likewise.
3188 (vpmaxq_f64): Likewise.
3189 (vpmaxqd_f64): Likewise.
3190 (vpmaxs_f32): Likewise.
3191 (vpmaxnm_f32): Likewise.
3192 (vpmaxnmq_f32): Likewise.
3193 (vpmaxnmq_f64): Likewise.
3194 (vpmaxnmqd_f64): Likewise.
3195 (vpmaxnms_f32): Likewise.
3196 (vpmin_s8): Likewise.
3197 (vpmin_s16): Likewise.
3198 (vpmin_s32): Likewise.
3199 (vpmin_u8): Likewise.
3200 (vpmin_u16): Likewise.
3201 (vpmin_u32): Likewise.
3202 (vpminq_s8): Likewise.
3203 (vpminq_s16): Likewise.
3204 (vpminq_s32): Likewise.
3205 (vpminq_u8): Likewise.
3206 (vpminq_u16): Likewise.
3207 (vpminq_u32): Likewise.
3208 (vpmin_f32): Likewise.
3209 (vpminq_f32): Likewise.
3210 (vpminq_f64): Likewise.
3211 (vpminqd_f64): Likewise.
3212 (vpmins_f32): Likewise.
3213 (vpminnm_f32): Likewise.
3214 (vpminnmq_f32): Likewise.
3215 (vpminnmq_f64): Likewise.
3216 (vpminnmqd_f64): Likewise.
3217 (vpminnms_f32): Likewise.
3218 (vmla_f32): Likewise.
3219 (vmlaq_f32): Likewise.
3220 (vmlaq_f64): Likewise.
3221 (vmls_f32): Likewise.
3222 (vmlsq_f32): Likewise.
3223 (vmlsq_f64): Likewise.
3224 (vqtbl2_s8): Likewise.
3225 (vqtbl2_u8): Likewise.
3226 (vqtbl2_p8): Likewise.
3227 (vqtbl2q_s8): Likewise.
3228 (vqtbl2q_u8): Likewise.
3229 (vqtbl2q_p8): Likewise.
3230 (vqtbl3_s8): Likewise.
3231 (vqtbl3_u8): Likewise.
3232 (vqtbl3_p8): Likewise.
3233 (vqtbl3q_s8): Likewise.
3234 (vqtbl3q_u8): Likewise.
3235 (vqtbl3q_p8): Likewise.
3236 (vqtbl4_s8): Likewise.
3237 (vqtbl4_u8): Likewise.
3238 (vqtbl4_p8): Likewise.
3239 (vqtbl4q_s8): Likewise.
3240 (vqtbl4q_u8): Likewise.
3241 (vqtbl4q_p8): Likewise.
3242 (vqtbx2_s8): Likewise.
3243 (vqtbx2_u8): Likewise.
3244 (vqtbx2_p8): Likewise.
3245 (vqtbx2q_s8): Likewise.
3246 (vqtbx2q_u8): Likewise.
3247 (vqtbx2q_p8): Likewise.
3248 (vqtbx3_s8): Likewise.
3249 (vqtbx3_u8): Likewise.
3250 (vqtbx3_p8): Likewise.
3251 (vqtbx3q_s8): Likewise.
3252 (vqtbx3q_u8): Likewise.
3253 (vqtbx3q_p8): Likewise.
3254 (vqtbx4_s8): Likewise.
3255 (vqtbx4_u8): Likewise.
3256 (vqtbx4_p8): Likewise.
3257 (vqtbx4q_s8): Likewise.
3258 (vqtbx4q_u8): Likewise.
3259 (vqtbx4q_p8): Likewise.
3260 (vrev16_p8): Likewise.
3261 (vrev16_s8): Likewise.
3262 (vrev16_u8): Likewise.
3263 (vrev16q_p8): Likewise.
3264 (vrev16q_s8): Likewise.
3265 (vrev16q_u8): Likewise.
3266 (vrev32_p8): Likewise.
3267 (vrev32_p16): Likewise.
3268 (vrev32_s8): Likewise.
3269 (vrev32_s16): Likewise.
3270 (vrev32_u8): Likewise.
3271 (vrev32_u16): Likewise.
3272 (vrev32q_p8): Likewise.
3273 (vrev32q_p16): Likewise.
3274 (vrev32q_s8): Likewise.
3275 (vrev32q_s16): Likewise.
3276 (vrev32q_u8): Likewise.
3277 (vrev32q_u16): Likewise.
3278 (vrev64_f32): Likewise.
3279 (vrev64_p8): Likewise.
3280 (vrev64_p16): Likewise.
3281 (vrev64_s8): Likewise.
3282 (vrev64_s16): Likewise.
3283 (vrev64_s32): Likewise.
3284 (vrev64_u8): Likewise.
3285 (vrev64_u16): Likewise.
3286 (vrev64_u32): Likewise.
3287 (vrev64q_f32): Likewise.
3288 (vrev64q_p8): Likewise.
3289 (vrev64q_p16): Likewise.
3290 (vrev64q_s8): Likewise.
3291 (vrev64q_s16): Likewise.
3292 (vrev64q_s32): Likewise.
3293 (vrev64q_u8): Likewise.
3294 (vrev64q_u16): Likewise.
3295 (vrev64q_u32): Likewise.
3296 (vsha1cq_u32): Likewise.
3297 (vsha1mq_u32): Likewise.
3298 (vsha1pq_u32): Likewise.
3299 (vsha1h_u32): Likewise.
3300 (vsha1su0q_u32): Likewise.
3301 (vsha1su1q_u32): Likewise.
3302 (vsha256hq_u32): Likewise.
3303 (vsha256h2q_u32): Likewise.
3304 (vsha256su0q_u32): Likewise.
3305 (vsha256su1q_u32): Likewise.
3306 (vmull_p64): Likewise.
3307 (vmull_high_p64): Likewise.
3308 (vsqrt_f32): Likewise.
3309 (vsqrtq_f32): Likewise.
3310 (vsqrt_f64): Likewise.
3311 (vsqrtq_f64): Likewise.
3312 (vst1_f32): Likewise.
3313 (vst1_f64): Likewise.
3314 (vst1_p8): Likewise.
3315 (vst1_p16): Likewise.
3316 (vst1_p64): Likewise.
3317 (vst1_s8): Likewise.
3318 (vst1_s16): Likewise.
3319 (vst1_s32): Likewise.
3320 (vst1_s64): Likewise.
3321 (vst1_u8): Likewise.
3322 (vst1_u16): Likewise.
3323 (vst1_u32): Likewise.
3324 (vst1_u64): Likewise.
3325 (vst1q_f32): Likewise.
3326 (vst1q_f64): Likewise.
3327 (vst1q_p8): Likewise.
3328 (vst1q_p16): Likewise.
3329 (vst1q_p64): Likewise.
3330 (vst1q_s8): Likewise.
3331 (vst1q_s16): Likewise.
3332 (vst1q_s32): Likewise.
3333 (vst1q_s64): Likewise.
3334 (vst1q_u8): Likewise.
3335 (vst1q_u16): Likewise.
3336 (vst1q_u32): Likewise.
3337 (vst1q_u64): Likewise.
3338 (vst1_s64_x2): Likewise.
3339 (vst1_u64_x2): Likewise.
3340 (vst1_f64_x2): Likewise.
3341 (vst1_s8_x2): Likewise.
3342 (vst1_p8_x2): Likewise.
3343 (vst1_s16_x2): Likewise.
3344 (vst1_p16_x2): Likewise.
3345 (vst1_s32_x2): Likewise.
3346 (vst1_u8_x2): Likewise.
3347 (vst1_u16_x2): Likewise.
3348 (vst1_u32_x2): Likewise.
3349 (vst1_f16_x2): Likewise.
3350 (vst1_f32_x2): Likewise.
3351 (vst1_p64_x2): Likewise.
3352 (vst1q_s8_x2): Likewise.
3353 (vst1q_p8_x2): Likewise.
3354 (vst1q_s16_x2): Likewise.
3355 (vst1q_p16_x2): Likewise.
3356 (vst1q_s32_x2): Likewise.
3357 (vst1q_s64_x2): Likewise.
3358 (vst1q_u8_x2): Likewise.
3359 (vst1q_u16_x2): Likewise.
3360 (vst1q_u32_x2): Likewise.
3361 (vst1q_u64_x2): Likewise.
3362 (vst1q_f16_x2): Likewise.
3363 (vst1q_f32_x2): Likewise.
3364 (vst1q_f64_x2): Likewise.
3365 (vst1q_p64_x2): Likewise.
3366 (vst1_s64_x3): Likewise.
3367 (vst1_u64_x3): Likewise.
3368 (vst1_f64_x3): Likewise.
3369 (vst1_s8_x3): Likewise.
3370 (vst1_p8_x3): Likewise.
3371 (vst1_s16_x3): Likewise.
3372 (vst1_p16_x3): Likewise.
3373 (vst1_s32_x3): Likewise.
3374 (vst1_u8_x3): Likewise.
3375 (vst1_u16_x3): Likewise.
3376 (vst1_u32_x3): Likewise.
3377 (vst1_f16_x3): Likewise.
3378 (vst1_f32_x3): Likewise.
3379 (vst1_p64_x3): Likewise.
3380 (vst1q_s8_x3): Likewise.
3381 (vst1q_p8_x3): Likewise.
3382 (vst1q_s16_x3): Likewise.
3383 (vst1q_p16_x3): Likewise.
3384 (vst1q_s32_x3): Likewise.
3385 (vst1q_s64_x3): Likewise.
3386 (vst1q_u8_x3): Likewise.
3387 (vst1q_u16_x3): Likewise.
3388 (vst1q_u32_x3): Likewise.
3389 (vst1q_u64_x3): Likewise.
3390 (vst1q_f16_x3): Likewise.
3391 (vst1q_f32_x3): Likewise.
3392 (vst1q_f64_x3): Likewise.
3393 (vst1q_p64_x3): Likewise.
3394 (vst2_s64): Likewise.
3395 (vst2_u64): Likewise.
3396 (vst2_f64): Likewise.
3397 (vst2_s8): Likewise.
3398 (vst2_p8): Likewise.
3399 (vst2_s16): Likewise.
3400 (vst2_p16): Likewise.
3401 (vst2_s32): Likewise.
3402 (vst2_u8): Likewise.
3403 (vst2_u16): Likewise.
3404 (vst2_u32): Likewise.
3405 (vst2_f16): Likewise.
3406 (vst2_f32): Likewise.
3407 (vst2_p64): Likewise.
3408 (vst2q_s8): Likewise.
3409 (vst2q_p8): Likewise.
3410 (vst2q_s16): Likewise.
3411 (vst2q_p16): Likewise.
3412 (vst2q_s32): Likewise.
3413 (vst2q_s64): Likewise.
3414 (vst2q_u8): Likewise.
3415 (vst2q_u16): Likewise.
3416 (vst2q_u32): Likewise.
3417 (vst2q_u64): Likewise.
3418 (vst2q_f16): Likewise.
3419 (vst2q_f32): Likewise.
3420 (vst2q_f64): Likewise.
3421 (vst2q_p64): Likewise.
3422 (vst3_s64): Likewise.
3423 (vst3_u64): Likewise.
3424 (vst3_f64): Likewise.
3425 (vst3_s8): Likewise.
3426 (vst3_p8): Likewise.
3427 (vst3_s16): Likewise.
3428 (vst3_p16): Likewise.
3429 (vst3_s32): Likewise.
3430 (vst3_u8): Likewise.
3431 (vst3_u16): Likewise.
3432 (vst3_u32): Likewise.
3433 (vst3_f16): Likewise.
3434 (vst3_f32): Likewise.
3435 (vst3_p64): Likewise.
3436 (vst3q_s8): Likewise.
3437 (vst3q_p8): Likewise.
3438 (vst3q_s16): Likewise.
3439 (vst3q_p16): Likewise.
3440 (vst3q_s32): Likewise.
3441 (vst3q_s64): Likewise.
3442 (vst3q_u8): Likewise.
3443 (vst3q_u16): Likewise.
3444 (vst3q_u32): Likewise.
3445 (vst3q_u64): Likewise.
3446 (vst3q_f16): Likewise.
3447 (vst3q_f32): Likewise.
3448 (vst3q_f64): Likewise.
3449 (vst3q_p64): Likewise.
3450 (vst4_s64): Likewise.
3451 (vst4_u64): Likewise.
3452 (vst4_f64): Likewise.
3453 (vst4_s8): Likewise.
3454 (vst4_p8): Likewise.
3455 (vst4_s16): Likewise.
3456 (vst4_p16): Likewise.
3457 (vst4_s32): Likewise.
3458 (vst4_u8): Likewise.
3459 (vst4_u16): Likewise.
3460 (vst4_u32): Likewise.
3461 (vst4_f16): Likewise.
3462 (vst4_f32): Likewise.
3463 (vst4_p64): Likewise.
3464 (vst4q_s8): Likewise.
3465 (vst4q_p8): Likewise.
3466 (vst4q_s16): Likewise.
3467 (vst4q_p16): Likewise.
3468 (vst4q_s32): Likewise.
3469 (vst4q_s64): Likewise.
3470 (vst4q_u8): Likewise.
3471 (vst4q_u16): Likewise.
3472 (vst4q_u32): Likewise.
3473 (vst4q_u64): Likewise.
3474 (vst4q_f16): Likewise.
3475 (vst4q_f32): Likewise.
3476 (vst4q_f64): Likewise.
3477 (vst4q_p64): Likewise.
3478 (vtbx4_s8): Likewise.
3479 (vtbx4_u8): Likewise.
3480 (vtbx4_p8): Likewise.
3481 (vtrn_f32): Likewise.
3482 (vtrn_p8): Likewise.
3483 (vtrn_p16): Likewise.
3484 (vtrn_s8): Likewise.
3485 (vtrn_s16): Likewise.
3486 (vtrn_s32): Likewise.
3487 (vtrn_u8): Likewise.
3488 (vtrn_u16): Likewise.
3489 (vtrn_u32): Likewise.
3490 (vtrnq_f32): Likewise.
3491 (vtrnq_p8): Likewise.
3492 (vtrnq_p16): Likewise.
3493 (vtrnq_s8): Likewise.
3494 (vtrnq_s16): Likewise.
3495 (vtrnq_s32): Likewise.
3496 (vtrnq_u8): Likewise.
3497 (vtrnq_u16): Likewise.
3498 (vtrnq_u32): Likewise.
3499 (vrsqrte_f16): Likewise.
3500 (vrsqrteq_f16): Likewise.
3501 (vsqrt_f16): Likewise.
3502 (vsqrtq_f16): Likewise.
3503 (vabd_f16): Likewise.
3504 (vabdq_f16): Likewise.
3505 (vpadd_f16): Likewise.
3506 (vpaddq_f16): Likewise.
3507 (vpmax_f16): Likewise.
3508 (vpmaxq_f16): Likewise.
3509 (vpmaxnm_f16): Likewise.
3510 (vpmaxnmq_f16): Likewise.
3511 (vpmin_f16): Likewise.
3512 (vpminq_f16): Likewise.
3513 (vpminnm_f16): Likewise.
3514 (vpminnmq_f16): Likewise.
3515 (vrsqrts_f16): Likewise.
3516 (vrsqrtsq_f16): Likewise.
3517
3518 2019-09-25 Richard Biener <rguenther@suse.de>
3519
3520 PR tree-optimization/91896
3521 * tree-vect-loop.c (vectorizable_reduction): The single
3522 def-use cycle optimization cannot apply when there's more
3523 than one pattern stmt involved.
3524
3525 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3526
3527 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3528 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3529 (reload_macho_picbase_<mode>): Likewise.
3530
3531 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3532
3533 * config/rs6000/rs6000.md: Move darwin.md include until
3534 after the definition of the mode iterators.
3535
3536 2019-09-23 Martin Sebor <msebor@redhat.com>
3537
3538 PR tree-optimization/91570
3539 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3540 non-constant minlen, maxlen and maxbound.
3541
3542 2019-09-24 Richard Biener <rguenther@suse.de>
3543
3544 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3545 Rename to...
3546 (_stmt_vec_info::cond_reduc_code): ... this.
3547 (_stmt_vec_info::induc_cond_initial_val): Add.
3548 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3549 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3550 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3551 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3552 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3553 the reduction code.
3554 (vect_create_epilog_for_reduction): Drop special
3555 induction condition reduction params, pass in reduction code
3556 and simplify.
3557 (vectorizable_reduction): Perform condition reduction kind
3558 selection only at analysis time. Adjust passing on state.
3559
3560 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3561
3562 * config/aarch64/aarch64.md (mov<mode>): Don't call
3563 aarch64_split_dimode_const_store on volatile MEM.
3564
3565 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3566
3567 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3568 Update hwcap string for fp16fml.
3569
3570 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3571
3572 PR middle-end/91866
3573 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3574 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3575
3576 2019-09-24 Martin Liska <mliska@suse.cz>
3577
3578 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3579 instead of if-elseif-elseif-...
3580 * gimple-expr.c (extract_ops_from_tree): Likewise.
3581 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3582 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3583
3584 2019-09-24 Martin Jambor <mjambor@suse.cz>
3585
3586 PR ipa/91831
3587 * ipa-param-manipulation.c (carry_over_param): Make a method of
3588 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3589 in case of a context mismatch.
3590 (ipa_param_body_adjustments::common_initialization): Adjust call to
3591 carry_over_param.
3592 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3593 private method carry_over_param.
3594
3595 2019-09-24 Martin Jambor <mjambor@suse.cz>
3596
3597 PR ipa/91832
3598 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3599
3600 2019-09-24 Richard Biener <rguenther@suse.de>
3601
3602 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3603 base.
3604
3605 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3606
3607 * config/arm/t-arm (arm-builtins.o): Add dependency on
3608 arm_acle_builtins.def.
3609
3610 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3611
3612 PR target/91823
3613 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3614 canonical CONST_INTs. Use gen_rtvec.
3615
3616 2019-09-23 Richard Biener <rguenther@suse.de>
3617
3618 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3619 avoid adjusting by + 0 or * 1.
3620 (vect_create_epilog_for_reduction): Get reduction code only
3621 when necessary. Deal with adjustment_def only when necessary.
3622
3623 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3624
3625 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3626 memmodel index.
3627
3628 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3629
3630 PR ipa/91835
3631 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3632 "ipa-sra".
3633
3634 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3635
3636 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3637 code. Merge code blocks with common conditionals. Use declared
3638 macro instead of a magic number for PIC level.
3639
3640 2019-09-21 Martin Sebor <msebor@redhat.com>
3641
3642 PR middle-end/91830
3643 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3644 Simplify computation of the offset of the referenced subobject.
3645
3646 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3647
3648 * config/darwin.c (machopic_legitimize_pic_address): Check
3649 for lra not reload.
3650
3651 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3652
3653 * ira-conflicts.c (can_use_same_reg_p): New function.
3654 (process_reg_shuffles): Take an insn parameter. Ignore cases
3655 in which input operand op_num could seemingly never be allocated
3656 to the same register as the destination.
3657 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3658
3659 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3660
3661 * simplify-rtx.c (neg_const_int): Replace with...
3662 (neg_poly_int_rtx): ...this new function.
3663 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3664 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3665 (simplify_plus_minus): Likewise for constant terms here.
3666
3667 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3668
3669 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3670 HOST_WIDE_PRINT_UNSIGNED.
3671
3672 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3673
3674 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3675 character.
3676
3677 2019-09-20 Maya Rashish <coypu@sdf.org>
3678
3679 PR target/86811
3680 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3681 Define to speculation_safe_value_not_needed.
3682
3683 2019-09-20 Richard Biener <rguenther@suse.de>
3684 Uros Bizjak <ubizjak@gmail.com>
3685
3686 PR target/91814
3687 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3688 previous change.
3689 (general_scalar_chain::convert_op): Force not suitable memory
3690 operands to a register.
3691
3692 2019-09-20 Richard Biener <rguenther@suse.de>
3693
3694 PR tree-optimization/91821
3695 * tree-vect-loop.c (check_reduction_path): Check we can compute
3696 reduc_idx.
3697 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3698 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3699 operands in canonical order.
3700 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3701 STMT_VINFO_REDUC_IDX.
3702 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3703 (STMT_VINFO_REDUC_IDX): Likewise.
3704
3705 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3706
3707 PR target/91269
3708 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3709
3710 2019-09-20 Richard Biener <rguenther@suse.de>
3711
3712 PR tree-optimization/91822
3713 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3714 parameter.
3715 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3716 for reduc_index in nested cycles, adjust vectorizable_condition
3717 calls.
3718 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3719 parameter.
3720 (vect_analyze_stmt): Adjust.
3721 (vect_transform_stmt): Likewise.
3722
3723 2019-09-20 Richard Biener <rguenther@suse.de>
3724
3725 PR target/91767
3726 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3727 Ensure there's a sequence point between allocating the new register
3728 and passing a reference to a reg via regno_reg_rtx.
3729
3730 2019-09-20 Martin Jambor <mjambor@suse.cz>
3731
3732 * coretypes.h (cgraph_edge): Declare.
3733 * ipa-param-manipulation.c: Rewrite.
3734 * ipa-param-manipulation.h: Likewise.
3735 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3736 (OBJS): Added ipa-sra.o.
3737 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3738 and ref_p, added fields param_adjustments and performed_splits.
3739 (struct cgraph_clone_info): Remove ags_to_skip and
3740 combined_args_to_skip, new field param_adjustments.
3741 (cgraph_node::create_clone): Changed parameters to use
3742 ipa_param_adjustments.
3743 (cgraph_node::create_virtual_clone): Likewise.
3744 (cgraph_node::create_virtual_clone_with_body): Likewise.
3745 (tree_function_versioning): Likewise.
3746 (cgraph_build_function_type_skip_args): Removed.
3747 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3748 using ipa_param_adjustments.
3749 (clone_of_p): Likewise.
3750 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3751 (build_function_decl_skip_args): Likewise.
3752 (duplicate_thunk_for_node): Adjust parameters using
3753 ipa_param_body_adjustments, copy param_adjustments instead of
3754 args_to_skip.
3755 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3756 (cgraph_node::create_virtual_clone): Likewise.
3757 (cgraph_node::create_version_clone_with_body): Likewise.
3758 (cgraph_materialize_clone): Likewise.
3759 (symbol_table::materialize_all_clones): Likewise.
3760 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3761 ipa_replace_map check.
3762 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3763 (initialize_node_lattices): Make aware that some parameters might have
3764 already been removed.
3765 (want_remove_some_param_p): New function.
3766 (create_specialized_node): Convert to using ipa_param_adjustments and
3767 deal with possibly pre-existing adjustments.
3768 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3769 (output_node_opt_summary): Do not stream removed fields. Stream
3770 parameter adjustments instead of argumetns to skip.
3771 (input_node_opt_summary): Likewise.
3772 (input_node_opt_summary): Likewise.
3773 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3774 * lto-streamer.h (lto_section_type): Likewise.
3775 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3776 param_body_adjs.
3777 (copy_decl_to_var): Declare.
3778 * tree-inline.c (update_clone_info): Do not remap old_tree.
3779 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3780 statements, walk all extra generated statements and remap their
3781 operands.
3782 (redirect_all_calls): Add killed SSA names to a hash set.
3783 (remap_ssa_name): Do not remap killed SSA names.
3784 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3785 half of functionality moved to ipa_param_body_adjustments.
3786 (copy_decl_to_var): Make exported.
3787 (copy_body): Destroy killed_new_ssa_names hash set.
3788 (expand_call_inline): Remap performed splits.
3789 (update_clone_info): Likewise.
3790 (tree_function_versioning): Simplify tree_map processing. Updated to
3791 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3792 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3793 for the new interface.
3794 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3795 (simd_clone_compute_base_data_type): Likewise.
3796 (simd_clone_init_simd_arrays): Adjust for the new interface.
3797 (simd_clone_adjust_argument_types): Likewise.
3798 (struct modify_stmt_info): Likewise.
3799 (ipa_simd_modify_stmt_ops): Likewise.
3800 (ipa_simd_modify_function_body): Likewise.
3801 (simd_clone_adjust): Likewise.
3802 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3803 (type_internals_preclude_sra_p): Make public.
3804 * tree-sra.h: New file.
3805 * ipa-inline-transform.c (save_inline_function_body): Update to
3806 refelct new tree_function_versioning signature.
3807 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3808 ipa_param_adjustments to get current parameter indices.
3809 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3810 (ipcp_update_bits): Likewise.
3811 (ipcp_update_vr): Likewise.
3812 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3813 * ipa-sra.c: New file.
3814 * multiple_target.c (create_target_clone): Update to reflet new type
3815 of create_version_clone_with_body.
3816 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3817 tree_function_versioning.
3818 (modify_function): Update to reflect new type of
3819 tree_function_versioning.
3820 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3821 * passes.def: Remove old IPA-SRA and add new one.
3822 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3823 (make_pass_ipa_sra): Declare.
3824 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3825 ipa_sra_retvalues.
3826 * doc/invoke.texi (ipa-sra-max-replacements): New.
3827
3828 2019-09-19 Martin Sebor <msebor@redhat.com>
3829
3830 PR middle-end/91631
3831 * builtins.c (component_size): Correct trailing array computation,
3832 rename to component_ref_size and move...
3833 (compute_objsize): Adjust.
3834 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3835 (builtin_access::strict): Do not consider memmove.
3836 (builtin_access::write_off): New function.
3837 (builtin_memref::builtin_memref): Initialize refsize.
3838 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3839 refsize.
3840 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3841 Handle refsize.
3842 (builtin_access::builtin_access): Initialize dstoff to destination
3843 refeence offset here instead of in maybe_diag_overlap. Adjust
3844 referencess even to unrelated objects. Adjust sizrange of bounded
3845 string functions to reflect bound. For strcat, adjust destination
3846 sizrange by that of source.
3847 (builtin_access::strcat_overlap): Adjust offsets and sizes
3848 to reflect the increase in destination sizrange above.
3849 (builtin_access::overlap): Do not set dstoff here but instead
3850 in builtin_access::builtin_access.
3851 (check_bounds_or_overlap): Use builtin_access::write_off.
3852 (maybe_diag_access_bounds): Add argument. Add informational notes.
3853 (dump_builtin_memref, dump_builtin_access): New functions.
3854 * tree.c (component_ref_size): ...to here.
3855 * tree.h (component_ref_size): Declare.
3856 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3857 nul in the size of the source string.
3858
3859 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3860
3861 PR c/67224
3862 * doc/cpp.texi: Document support for extended characters in
3863 identifiers.
3864 * doc/cppopts.texi: Likewise.
3865
3866 2019-09-19 Richard Biener <rguenther@suse.de>
3867
3868 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3869 (check_reduction_path): New overload having the path as result.
3870 (vect_is_simple_reduction): From the detected reduction
3871 path build a SLP reduction chain if possible.
3872
3873 2019-09-19 Richard Biener <rguenther@suse.de>
3874
3875 PR target/91814
3876 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3877 Force operand to a register if it isn't nonimmediate_operand.
3878
3879 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3880
3881 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3882 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3883 (logical_op): Remove code attribute.
3884 (logical_OP): Likewise.
3885
3886 2019-09-19 Martin Liska <mliska@suse.cz>
3887
3888 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3889 Use proper casting.
3890
3891 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3892
3893 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3894 registers with %R.
3895
3896 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3897 for NE comparison of TImode values.
3898 (aarch64_emit_load_exclusive): Add support for TImode.
3899 (aarch64_emit_store_exclusive): Likewise.
3900 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3901 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3902 Change iterator from ALLI to ALLI_TI.
3903 (@atomic_compare_and_swap<JUST_TI>): New.
3904 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3905 (aarch64_load_exclusive_pair): New.
3906 (aarch64_store_exclusive_pair): New.
3907 * config/aarch64/iterators.md (JUST_TI): New.
3908
3909 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3910 strong_zero_p for aarch64_track_speculation; unify some code paths;
3911 use aarch64_gen_compare_reg instead of open-coding.
3912
3913 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3914 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3915 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3916 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3917 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3918 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3919 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3920 (atomic_<atomic_op><ALLI>): Likewise.
3921 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3922 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3923 * doc/invoke.texi: Document -moutline-atomics.
3924
3925 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3926
3927 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3928 trivial predicate for condition branch.
3929 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3930 for switch case.
3931 (compute_bb_predicates): Update predicate based on post-dominating
3932 relationship.
3933 (analyze_function_body): Calculate post-dominating information.
3934
3935 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3936
3937 * tree-vectorizer.h (vectorizable_condition): Take an int
3938 reduction index instead of a boolean flag.
3939 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3940 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3941 reductions if the reduction accumulator is the "then" rather
3942 than the "else" value.
3943 (vect_analyze_stmt): Update call accordingly.
3944 (vect_transform_stmt): Likewise.
3945 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3946 asserting that the index is > 0.
3947
3948 2019-09-19 Martin Liska <mliska@suse.cz>
3949
3950 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3951 (sort_congruence_classes_by_decl_uid): Likewise.
3952 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3953 easier sorting.
3954 (sem_item_optimizer::merge_classes): Likewise.
3955
3956 2019-09-19 Richard Biener <rguenther@suse.de>
3957
3958 PR tree-optimization/91812
3959 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3960 volatile loads.
3961
3962 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3963
3964 * defaults.h (TARGET_UNIT): New macro.
3965 (target_unit): New type.
3966 * rtl.h (native_encode_rtx, native_decode_rtx)
3967 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3968 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3969 * rtlanal.c (subreg_lsb_1): Delete.
3970 (subreg_size_lsb): New function.
3971 * simplify-rtx.c: Include rtx-vector-builder.h
3972 (simplify_immed_subreg): Delete.
3973 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3974 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3975 functions.
3976 (simplify_subreg): Use them.
3977 (test_vector_subregs_modes, test_vector_subregs_repeating)
3978 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3979 (test_vector_subregs): New functions.
3980 (test_vector_ops): Call test_vector_subregs for integer vector
3981 modes with at least 2 elements.
3982
3983 2019-09-19 Richard Biener <rguenther@suse.de>
3984
3985 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3986 LOOP_VINFO_OPERANDS_SWAPPED.
3987 (parloops_is_simple_reduction): Likewise.
3988 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3989 initialize operands_swapped.
3990 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3991 (vect_is_slp_reduction): Do not swap operands.
3992 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3993 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3994
3995 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3996
3997 PR target/87007
3998 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3999 Add avx_partial_xmm_update.
4000
4001 2019-09-18 Jim Wilson <jimw@sifive.com>
4002
4003 PR target/91683
4004 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4005 (riscv_move_integer): Likewise.
4006 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4007 riscv_move_integer arg.
4008 (riscv_legitimize_move): Likewise.
4009 (riscv_force_temporary): New parameter in_splitter. Don't call
4010 force_reg if true.
4011 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4012 arg.
4013 (riscv_add_offset): Likewise.
4014 (riscv_split_symbol): New parameter in_splitter. Pass to
4015 riscv_force_temporary.
4016 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4017 arg.
4018 (riscv_move_integer): New parameter in_splitter. New local
4019 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4020 in_splitter TRUE.
4021 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4022 riscv_split_symbol, and riscv_force_temporary args.
4023 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4024 riscv_move_integer arg.
4025 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4026
4027 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4028
4029 PR target/90878
4030 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4031 hard register store cost to 6.
4032
4033 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4034
4035 PR target/91446
4036 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4037 pseudo register store cost from 3 to 6 to make it the same as
4038 QImode and HImode.
4039
4040 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4041
4042 PR target/91738
4043 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4044 (one_cmpldi2): Likewise.
4045 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4046 of the constant parts is simple.
4047 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4048 (logical_op): Add new code attribute.
4049 (logical_OP): Likewise.
4050 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4051 (arm_iordi_operand): Add predicate.
4052 (arm_xordi_operand): Add predicate.
4053
4054 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4055
4056 * config/arm/arm.md (maddsidi4): Remove expander.
4057 (mulsidi3adddi): Remove pattern.
4058 (mulsidi3adddi_v6): Likewise.
4059 (mulsidi3_nov6): Likewise.
4060 (mulsidi3_v6): Likewise.
4061 (umulsidi3): Remove expander.
4062 (umulsidi3_nov6): Remove pattern.
4063 (umulsidi3_v6): Likewise.
4064 (umulsidi3adddi): Likewise.
4065 (umulsidi3adddi_v6): Likewise.
4066 (<Us>mulsidi3): Add combined expander.
4067 (<Us>maddsidi4): Likewise.
4068 (<US>mull): Add combined umull and smull pattern.
4069 (<US>mlal): Likewise.
4070 * config/arm/iterators.md (Us): Add new iterator.
4071
4072 2019-09-18 Richard Biener <rguenther@suse.de>
4073
4074 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4075 swapping.
4076 (vectorize_fold_left_reduction): Remove assert.
4077 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4078 operand in position 2. Remove assert.
4079
4080 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4081
4082 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4083 (smulsi3_highpart_nov6): Remove pattern.
4084 (smulsi3_highpart_v6): Likewise.
4085 (umulsi3_highpart): Likewise.
4086 (umulsi3_highpart_nov6): Likewise.
4087 (umulsi3_highpart_v6): Likewise.
4088 (<US>mull_high): Add new combined multiply pattern.
4089
4090 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4091
4092 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4093 (arm_mulsi3_v6): Likewise.
4094 (mulsi3addsi_v6): Likewise.
4095 (mulsi3subsi): Likewise.
4096 (mul): Add new multiply pattern.
4097 (mla): Likewise.
4098 (mls): Likewise.
4099
4100 2019-09-18 Richard Biener <rguenther@suse.de>
4101
4102 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4103 (parloops_valid_reduction_input_p): Copy from
4104 valid_reduction_input_p.
4105 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4106 (parloops_needs_fold_left_reduction_p): Copy from
4107 needs_fold_left_reduction_p.
4108 (parloops_is_simple_reduction): Copy from
4109 vect_is_simple_reduction.
4110 (parloops_force_simple_reduction): Copy from
4111 vect_force_simple_reduction.
4112 (gather_scalar_reductions): Adjust.
4113 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4114 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4115
4116 2019-09-18 Richard Biener <rguenther@suse.de>
4117
4118 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4119 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4120 static.
4121 (vect_create_epilog_for_reduction): Remove dead code.
4122
4123 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4124
4125 * varasm.c (assemble_real): Generate canonical const_ints.
4126
4127 2019-09-18 Richard Biener <rguenther@suse.de>
4128
4129 PR lto/91763
4130 * lto-streamer-in.c (input_eh_regions): Move EH init to
4131 lto_materialize_function.
4132 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4133 Likewise.
4134
4135 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4136
4137 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4138 are INTEGER_CSTs.
4139
4140 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4141
4142 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4143 of checking specifically for INTEGER_CST.
4144
4145 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4146
4147 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4148 sizes instead of uhwi sizes.
4149
4150 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4151
4152 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4153 (add_const_value_attribute): Handle CONST_POLY_INT.
4154
4155 2019-09-18 Martin Liska <mliska@suse.cz>
4156
4157 * dbgcnt.def (store_merging): New counter.
4158 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4159 Use it in store merging.
4160
4161 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4162
4163 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4164 function.
4165 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4166 * config/arm/arm.c (arm_sched_variable_issue): New function.
4167 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4168
4169 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4170
4171 * config/arm/types.md (no_reservation): New reservation.
4172 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4173 no_insn here.
4174 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4175 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4176 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4177 * config/arm/arm1020e.md (1020alu_op): Likewise.
4178 * config/arm/arm1026ejs.md (alu_op): Likewise.
4179 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4180 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4181 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4182 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4183 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4184 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4185 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4186 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4187 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4188 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4189 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4190 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4191 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4192 * config/arm/fa526.md (526_alu_op): Likewise.
4193 * config/arm/fa606te.md (606te_alu_op): Likewise.
4194 * config/arm/fa626te.md (626te_alu_op): Likewise.
4195 * config/arm/fa726te.md (726te_alu_op): Likewise.
4196 * config/arm/xgene1.md (xgene1_nop): Likewise.
4197
4198 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4199
4200 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4201 "no_insn" to "branch".
4202
4203 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4204
4205 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4206
4207 2019-09-17 Richard Biener <rguenther@suse.de>
4208
4209 PR debug/91772
4210 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4211 was missing generate locations only once.
4212
4213 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4214
4215 PR ipa/91089
4216 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4217 option.
4218 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4219 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4220 for switch default case using range analysis information.
4221
4222 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4223
4224 PR target/91749
4225 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4226 mode attributed is supported by FDPIC.
4227
4228 2019-09-17 Richard Biener <rguenther@suse.de>
4229
4230 PR tree-optimization/91790
4231 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4232 use the correct DR for setting up realignment.
4233
4234 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4235
4236 PR target/91719
4237 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4238 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4239 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4240 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4241
4242 2019-09-16 Jason Merrill <jason@redhat.com>
4243
4244 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4245
4246 2019-09-16 Martin Liska <mliska@suse.cz>
4247
4248 * gimple-fold.c (or_comparisons_1): Remove rules moved
4249 to ...
4250 * match.pd: ... here.
4251
4252 2019-09-16 Martin Liska <mliska@suse.cz>
4253
4254 * gimple-fold.c (or_comparisons_1): Remove rules
4255 moved to ...
4256 * match.pd: ... here.
4257
4258 2019-09-16 Martin Liska <mliska@suse.cz>
4259
4260 * genmatch.c (dt_node::append_simplify): Do not print
4261 warning when we have duplicate patterns belonging
4262 to a same simplify rule.
4263 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4264 (maybe_fold_comparisons_from_match_pd): Handle
4265 tcc_comparison as a results.
4266 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4267
4268 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4269 Qi Feng <ffengqi@linux.ibm.com>
4270
4271 PR middle-end/88784
4272 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4273 (x > y && x == XXX_MIN): Optimize into 'false'.
4274 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4275 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4276 (x < y && x == XXX_MAX): Optimize into 'false'.
4277 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4278 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4279 (x <= y || x != XXX_MIN): Optimize into 'true'.
4280 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4281 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4282 (x >= y || x != XXX_MAX): Optimize into 'true'.
4283 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4284
4285 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4286 Martin Liska <mliska@suse.cz>
4287
4288 * gimple-fold.c (and_comparisons_1): Add type as first
4289 argument.
4290 (and_var_with_comparison): Likewise.
4291 (and_var_with_comparison_1): Likewise.
4292 (or_comparisons_1): Likewise.
4293 (or_var_with_comparison): Likewise.
4294 (or_var_with_comparison_1): Likewise.
4295 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4296 (maybe_fold_or_comparisons): Likewise.
4297 (maybe_fold_comparisons_from_match_pd): New.
4298 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4299 (maybe_fold_or_comparisons): Likewise.
4300 * gimple.c (gimple_size): Make it public and add num_ops argument.
4301 (gimple_init): New function.
4302 (gimple_alloc): Call gimple_init.
4303 * gimple.h (gimple_size): New.
4304 (gimple_init): Likewise.
4305 * tree-if-conv.c (fold_or_predicates): Pass type.
4306 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4307 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4308 (optimize_vec_cond_expr): Likewise.
4309 (ovce_extract_ops): Return type of conditional expression.
4310 * tree-ssanames.c (init_ssa_name_imm_use): New.
4311 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4312 * tree-ssanames.h (init_ssa_name_imm_use): New.
4313
4314 2019-09-16 Richard Biener <rguenther@suse.de>
4315
4316 PR tree-optimization/91756
4317 PR tree-optimization/87132
4318 * tree-ssa-alias.h (enum translate_flags): New.
4319 (get_continuation_for_phi): Use it instead of simple bool flag.
4320 (walk_non_aliased_vuses): Likewise.
4321 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4322 (get_continuation_for_phi): When looking across backedges only
4323 disallow valueization.
4324 (walk_non_aliased_vuses): Adjust.
4325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4326 if requested.
4327
4328 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4329
4330 PR middle-end/80791
4331 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4332 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4333 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4334 * target.def (have_count_reg_decr_p): New hook.
4335 (doloop_cost_for_generic): Likewise.
4336 (doloop_cost_for_address): Likewise.
4337 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4338 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4339 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4340 * doc/tm.texi: Regenerate.
4341 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4342 addend.
4343 (record_group): Init doloop_p.
4344 (add_candidate_1): Add optional argument doloop, change the handlings
4345 accordingly.
4346 (add_candidate): Likewise.
4347 (generic_predict_doloop_p): Update attribute.
4348 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4349 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4350 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4351 MIN_EXPR.
4352 (get_computation_cost): Update for doloop IV cand extra cost.
4353 (determine_group_iv_cost_cond): Update for doloop IV cand.
4354 (determine_iv_cost): Likewise.
4355 (ivopts_estimate_reg_pressure): Likewise.
4356 (may_eliminate_iv): Update handlings for doloop IV cand.
4357 (add_iv_candidate_for_doloop): New function.
4358 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4359 (iv_ca_set_no_cp): Update for doloop IV cand.
4360 (iv_ca_set_cp): Likewise.
4361 (iv_ca_dump): Dump register cost.
4362 (find_doloop_use): New function.
4363 (analyze_and_mark_doloop_use): Likewise.
4364 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4365
4366 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4367
4368 PR middle-end/91708
4369 * cse.c (cse_insn): Do not replace anything with a
4370 MEM.
4371
4372 2019-09-13 Ian Lance Taylor <iant@golang.org>
4373
4374 * doc/invoke.texi (Optimize Options): Fix typo.
4375
4376 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4377
4378 PR tree-optimization/89386
4379 * config/i386/sse.md (smulhrs<mode>3): New expander.
4380 (smulhrsv4hi3): Ditto.
4381
4382 2019-09-12 Richard Biener <rguenther@suse.de>
4383
4384 PR tree-optimization/91750
4385 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4386 in the type of the evolution.
4387
4388 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4389
4390 PR tree-optimization/89386
4391 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4392 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4393 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4394 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4395 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4396 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4397 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4398 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4399 (su, r): Handle the unspecs above.
4400 (bt): New int attribute.
4401 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4402 * internal-fn.c (first_commutative_argument): Commutativity info for
4403 above.
4404 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4405 (umulhrs_optab): New optabs.
4406 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4407 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4408 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4409 function.
4410 (vect_vect_recog_func_ptrs): Add it.
4411
4412 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4413
4414 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4415 code.
4416
4417 2019-09-11 Nathan Sidwell <nathan@acm.org>
4418
4419 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4420 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4421
4422 2019-09-11 Richard Biener <rguenther@suse.de>
4423
4424 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4425 * lto-wrapper.c (merge_and_complain): Pick up -g.
4426 (append_compiler_options): Likewise.
4427 (run_gcc): Re-instantiate handling -g0 at link-time.
4428 * doc/invoke.texi (flto): Document debug info generation.
4429
4430 2019-09-11 Richard Biener <rguenther@suse.de>
4431
4432 PR tree-optimization/90387
4433 * vr-values.c (vr_values::extract_range_basic): After inlining
4434 simplify non-constant __builtin_constant_p to false.
4435
4436 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4437
4438 PR rtl-optimization/89795
4439 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4440 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4441
4442 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR tree-optimization/91723
4445 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4446 instead of pointer equality when checking if argument vectypes are
4447 the same.
4448
4449 PR middle-end/91725
4450 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4451 of get_nonzero_bits, only call it for integral types.
4452
4453 2019-09-11 Richard Biener <rguenther@suse.de>
4454
4455 Revert
4456 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4457
4458 * match.pd: Add flag_unsafe_math_optimizations check
4459 before deciding on the widest type in a binary math operation.
4460
4461 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4462
4463 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4464 and CALL_REALLY_USED_REGISTERS must be defined, and that
4465 CALL_REALLY_USED_REGISTERS is preferred.
4466 * doc/tm.texi: Regenerate.
4467 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4468 (call_really_used_regs): Likewise.
4469 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4470 CALL_REALLY_USED_REGISTERS are defined.
4471 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4472 initial value if defined.
4473 (initial_call_really_used_regs): Delete.
4474 (saved_call_really_used_regs): Likewise.
4475 (CALL_REALLY_USED_REGNO_P): Likewise.
4476 (init_reg_sets): Remove handling of call_really_used_regs.
4477 (save_register_info, restore_register_info, globalize_reg): Likewise.
4478 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4479 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4480 outside operand_reg_set.
4481 (fix_register): Don't change call_used_regs if
4482 CALL_REALLY_USED_REGISTERS is defined.
4483 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4484 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4485 instead of call_really_used_regs.
4486 (csky_conditional_register_usage): Remove the old handling of
4487 call_used_regs and change the handling of call_really_used_regs
4488 to use call_used_regs instead.
4489 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4490 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4491 making a register fixed.
4492 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4493 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4494 instead of call_really_used_regs.
4495 (m32r_conditional_register_usage): Don't set call_used_regs when
4496 making a register fixed.
4497 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4498 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4499 instead of call_really_used_regs.
4500 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4501 (mips_cfun_call_saved_reg_p): Likewise.
4502 (mips_swap_registers): Remove the old handling of call_used_regs
4503 and change the handling of call_really_used_regs to use call_used_regs
4504 instead.
4505 (mips_conditional_register_usage): Likewise.
4506 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4507 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4508 instead of call_really_used_regs.
4509 (mn10300_get_live_callee_saved_regs): Likewise.
4510 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4511 (mn10300_conditional_register_usage): Don't set call_used_regs when
4512 making a register fixed.
4513 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4514 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4515 Remove the old handling of call_used_regs and change the handling
4516 of call_really_used_regs to use call_used_regs instead.
4517 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4518 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4519 instead of call_really_used_regs.
4520 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4521 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4522 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4523 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4524 (s390_conditional_register_usage): Remove the old handling of
4525 call_used_regs and change the handling of call_really_used_regs
4526 to use call_used_regs instead.
4527 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4528 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4529 (sh_fix_range, reg_unused_after): Likewise.
4530 (sh_conditional_register_usage): Remove the old handling of
4531 call_used_regs and change the handling of call_really_used_regs
4532 to use call_used_regs instead.
4533 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4534 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4535 call_used_regs when making a register fixed.
4536 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4537 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4538 call_used_regs when making a register fixed.
4539 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4540 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4541 set call_used_regs when making a register fixed.
4542 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4543 * config/visium/visium.c (visium_conditional_register_usage): Remove
4544 the old handling of call_used_regs and change the handling of
4545 call_really_used_regs to use call_used_regs instead.
4546
4547 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4548
4549 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4550 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4551 * reginfo.c (call_used_regs): New macro.
4552
4553 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4554
4555 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4556 fixed_regs test.
4557 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4558 (bpf_expand_epilogue): Likewise.
4559 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4560 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4561 (ft32_expand_epilogue): Likewise.
4562 * config/i386/i386.c (ix86_save_reg): Likewise.
4563 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4564 (moxie_expand_epilogue): Likewise.
4565 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4566 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4567 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4568
4569 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4570
4571 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4572 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4573 instead of testing call_used_regs directly.
4574 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4575 (aarch64_components_for_bb): Likewise.
4576 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4577 * config/arc/arc.c (arc_must_save_register): Likewise.
4578 (arc_epilogue_uses): Likewise.
4579 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4580 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4581 (arm_compute_save_reg0_reg12_mask): Likewise.
4582 (arm_compute_save_core_reg_mask): Likewise.
4583 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4584 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4585 (cmse_nonsecure_entry_clear_before_return): Likewise.
4586 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4587 (arm_expand_epilogue): Likewise.
4588 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4589 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4590 (_reg_unused_after): Likewise.
4591 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4592 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4593 (add_to_reg, hwloop_optimize): Likewise.
4594 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4595 (bpf_expand_epilogue): Likewise.
4596 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4597 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4598 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4599 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4600 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4601 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4602 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4603 * config/frv/frv.c (frv_stack_info): Likewise.
4604 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4605 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4606 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4607 (move_callee_saved_registers): Likewise.
4608 * config/h8300/h8300.c (byte_reg): Likewise.
4609 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4610 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4611 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4612 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4613 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4614 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4615 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4616 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4617 * config/m32c/m32c.c (need_to_save): Likewise.
4618 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4619 * config/mcore/mcore.c (calc_live_regs): Likewise.
4620 * config/microblaze/microblaze.c (microblaze_must_save_register):
4621 Likewise.
4622 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4623 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4624 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4625 (mmix_expand_epilogue): Likewise.
4626 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4627 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4628 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4629 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4630 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4631 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4632 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4633 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4634 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4635 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4636 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4637 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4638 * config/rl78/rl78.c (need_to_save): Likewise.
4639 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4640 (rs6000_stack_info, generate_set_vrsave): Likewise.
4641 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4642 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4643 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4644 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4645 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4646 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4647 (save_local_or_in_reg_p): Likewise.
4648 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4649 (xstormy16_epilogue_uses): Likewise.
4650 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4651 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4652 * config/v850/v850.c (compute_register_save_size): Likewise.
4653 * config/vax/vax.c (vax_expand_prologue): Likewise.
4654 * config/visium/visium.c (visium_save_reg_p): Likewise.
4655 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4656 * cselib.c (cselib_process_insn): Likewise.
4657 * df-scan.c (df_get_entry_block_def_set): Likewise.
4658 * function.c (aggregate_value_p): Likewise.
4659 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4660 * ira-lives.c (process_bb_node_lives): Likewise.
4661 * ira.c (do_reload): Likewise.
4662 * lra-lives.c (process_bb_lives): Likewise.
4663 * lra-remat.c (lra_remat): Likewise.
4664 * lra.c (lra): Likewise.
4665 * postreload.c (reload_combine_recognize_pattern): Likewise.
4666 (reload_cse_move2add): Likewise.
4667 * recog.c (peep2_find_free_register): Likewise.
4668 * regrename.c (check_new_reg_p): Likewise.
4669 * reload.c (find_equiv_reg): Likewise.
4670 * reload1.c (reload, find_reg): Likewise.
4671 * sel-sched.c (init_hard_regs_data): Likewise.
4672
4673 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4674
4675 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4676 regs_invalidated_by_call & ~fixed_reg_set instead of
4677 call_used_or_fixed_regs & ~fixed_reg_set.
4678 * config/sh/sh.c (output_stack_adjust): Likewise.
4679
4680 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4681
4682 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4683 (call_used_reg_set): Delete.
4684 (call_used_or_fixed_regs): New macro.
4685 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4686 of call_used_reg_set.
4687 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4688 instead of call_used_regs.
4689 (save_call_clobbered_regs): Likewise.
4690 * cfgcleanup.c (old_insns_match_p): Likewise.
4691 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4692 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4693 Likewise.
4694 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4695 * config/sh/sh.c (output_stack_adjust): Likewise.
4696 * final.c (collect_fn_hard_reg_usage): Likewise.
4697 * ira-build.c (ira_build): Likewise.
4698 * ira-color.c (calculate_saved_nregs): Likewise.
4699 (allocno_reload_assign, calculate_spill_cost): Likewise.
4700 * ira-conflicts.c (ira_build_conflicts): Likewise.
4701 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4702 * ira-lives.c (process_bb_node_lives): Likewise.
4703 * ira.c (setup_reg_renumber): Likewise.
4704 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4705 * lra-constraints.c (need_for_call_save_p): Likewise.
4706 (need_for_split_p, inherit_in_ebb): Likewise.
4707 * lra-lives.c (process_bb_lives): Likewise.
4708 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4709 * postreload.c (reload_combine): Likewise.
4710 * regrename.c (find_rename_reg): Likewise.
4711 * reload1.c (reload_as_needed): Likewise.
4712 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4713 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4714 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4715
4716 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4717
4718 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4719 (no_caller_save_reg_set): Delete.
4720 * caller-save.c (init_caller_save): Don't initialize it.
4721 * ira-conflicts.c (ira_build_conflicts): Calculate
4722 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4723
4724 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4725
4726 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4727 (target_hard_regs::x_savable_regs): New field.
4728 (call_fixed_reg_set): Delete.
4729 (savable_regs): New macro,
4730 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4731 (init_reg_sets_1): Likewise. Initialize savable_regs.
4732 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4733 for all registers. Set savable_regs instead of call_fixed_reg_set.
4734 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4735 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4736 * config/sh/sh.c (output_stack_adjust): Likewise.
4737
4738 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4739
4740 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4741 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4742 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4743
4744 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4745
4746 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4747 * rtlanal.c (get_call_rtx_from): Likewise.
4748 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4749 than the pattern to get_call_rtx_from.
4750 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4751 an rtx_insn * instead of an rtx.
4752 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4753
4754 2019-09-10 Martin Liska <mliska@suse.cz>
4755
4756 * common.opt: Use newly added WarnRemoved.
4757 * config/aarch64/aarch64.opt: Likewise.
4758 * config/arm/arm.opt: Likewise.
4759 * config/i386/i386.opt: Likewise.
4760 * config/ia64/ia64.opt: Likewise.
4761 * config/rs6000/rs6000.opt: Likewise.
4762 * doc/options.texi: Document WarnRemoved properly.
4763 * dwarf2out.c (gen_producer_string): Handle renamed
4764 OPT_SPECIAL_warn_removed.
4765 * lto-opts.c (lto_write_options): Likewise.
4766 * lto-wrapper.c (merge_and_complain): Likewise.
4767 * opts-common.c (decode_cmdline_option): Likewise.
4768 (prune_options): Likewise.
4769 (read_cmdline_option): Likewise.
4770 (control_warning_option): Likewise.
4771 * opts.c (print_filtered_help): Likewise.
4772 * optc-gen.awk: Parse for WarnRemoved and make usage
4773 of Deprecated an error.
4774 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4775
4776 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4777
4778 * doc/install.texi: Fix syntax for html generation.
4779
4780 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4781
4782 PR middle-end/91680
4783 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4784 the shift type to type.
4785
4786 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4787
4788 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4789 FDPIC mode.
4790 (stack_protect_combined_test_insn): Likewise.
4791
4792 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4793 Mickaël Guêné <mickael.guene@st.com>
4794
4795 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4796 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4797 (load_tp_soft_fdpic): New pattern.
4798 (load_tp_soft): Disable in FDPIC mode.
4799
4800 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4801 Mickaël Guêné <mickael.guene@st.com>
4802
4803 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4804 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4805 (arm_call_tls_get_addr): Add FDPIC support.
4806 (legitimize_tls_address): Likewise.
4807 (arm_emit_tls_decoration): Likewise.
4808
4809 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4810 Mickaël Guêné <mickael.guene@st.com>
4811
4812 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4813 support.
4814 (arm_trampoline_init): Likewise.
4815 (arm_trampoline_adjust_address): Likewise.
4816 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4817
4818 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4819 Mickaël Guêné <mickael.guene@st.com>
4820
4821 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4822 (legitimize_pic_address): Enforce binding rules on function
4823 pointers in FDPIC mode.
4824 (arm_assemble_integer): Likewise.
4825
4826 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4827 Mickaël Guêné <mickael.guene@st.com>
4828
4829 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4830 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4831 FDPIC.
4832
4833 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4834 Mickaël Guêné <mickael.guene@st.com>
4835
4836 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4837 field.
4838
4839 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4840 Mickaël Guêné <mickael.guene@st.com>
4841
4842 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4843 in FDPIC mode.
4844 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4845 new function.
4846 * config/arm/arm.c (arm_option_override): Define pic register to
4847 FDPIC_REGNUM.
4848 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4849 have no decl or go through PLT.
4850 (calculate_pic_address_constant): New function.
4851 (legitimize_pic_address): Call calculate_pic_address_constant.
4852 (arm_load_pic_register): Handle TARGET_FDPIC.
4853 (arm_is_segment_info_known): New function.
4854 (arm_pic_static_addr): Add support for FDPIC.
4855 (arm_load_function_descriptor): New function.
4856 (arm_emit_call_insn): Add support for FDPIC.
4857 (arm_assemble_integer): Add support for FDPIC.
4858 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4859 Define. (FDPIC_REGNUM): New define.
4860 * config/arm/arm.md (call): Add support for FDPIC.
4861 (call_value): Likewise.
4862 (restore_pic_register_after_call): New pattern.
4863 (untyped_call): Disable if FDPIC.
4864 (untyped_return): Likewise.
4865 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4866
4867 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4868 Mickaël Guêné <mickael.guene@st.com>
4869
4870 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4871 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4872 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4873 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4874 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4875 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4876 * config/arm/uclinuxfdpiceabi.h: New file.
4877
4878 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4879
4880 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4881
4882 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4883 Mickaël Guêné <mickael.guene@st.com>
4884
4885 * config/arm/arm.opt: Add -mfdpic option.
4886 * doc/invoke.texi: Add documentation for -mfdpic.
4887
4888 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4889
4890 * expmed.c (extract_bit_field): Update function comment
4891 regarding alt_rtl.
4892 * expr.c (expand_expr_real): Update function comment
4893 regarding alt_rtl.
4894 (expand_misaligned_mem_ref): New helper function.
4895 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4896 Remove duplicate assignment to "base" at case MEM_REF.
4897 Remove a shadowed variable "unsignedp" at case VCE.
4898
4899 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4900
4901 * regset.h (regs_invalidated_by_call_regset): Delete.
4902 (fixed_reg_set_regset): Likewise.
4903 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4904 (fixed_reg_set_regset, persistent_obstack): Likewise.
4905 (init_reg_sets_1, globalize_reg): Update accordingly.
4906 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4907 instead of a bitmap.
4908 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4909 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4910 instead of regs_invalidated_by_call_regset.
4911 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4912 * df-scan.c (df_scan_start_dump): Likewise.
4913 * dse.c (copy_fixed_regs): Likewise.
4914 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4915
4916 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4917
4918 * array-traits.h: New file.
4919 * coretypes.h (array_traits, bitmap_view): New types.
4920 * bitmap.h: Include "array-traits.h"
4921 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4922 (base_bitmap_view, bitmap_view): New classes.
4923 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4924 * hard-reg-set.h: Include array-traits.h.
4925 (array_traits<HARD_REG_SET>): New struct.
4926 * regset.h (IOR_REG_SET_HRS): New macro.
4927 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4928 rather than iterating over each hard register.
4929 * sched-deps.c (sched_analyze_insn): Likewise.
4930 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4931
4932 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4933
4934 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4935 instead of a HARD_REG_SET *.
4936 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4937 (ira_build): Update call accordingly.
4938 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4939
4940 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4941
4942 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4943 (HARD_REG_SET::operator!=): Likewise.
4944 (hard_reg_set_equal_p): Delete.
4945 * cfgcleanup.c (old_insns_match_p): Use == instead of
4946 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4947 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4948 (add_allocno_hard_regs_to_forest): Likewise.
4949 (setup_allocno_available_regs_num): Likewise.
4950 * ira.c (setup_pressure_classes): Likewise.
4951 (setup_allocno_and_important_classes): Likewise.
4952 (setup_reg_class_relations): Likewise.
4953 * lra-lives.c (process_bb_lives): Likewise.
4954 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4955
4956 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4957
4958 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4959 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4960 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4961 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4962 Likewise.
4963 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4964 * ira.c (setup_reg_renumber): Likewise.
4965 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4966 * regrename.c (regrename_find_superclass): Likewise.
4967 * reload1.c (find_reg): Likewise.
4968
4969 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4970
4971 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4972 * caller-save.c (setup_save_areas): Use "&~" instead of
4973 AND_COMPL_HARD_REG_SET.
4974 (save_call_clobbered_regs): Likewise.
4975 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4976 Likewise.
4977 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4978 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4979 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4980 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4981 (mips_conditional_register_usage): Likewise.
4982 * config/sh/sh.c (output_stack_adjust): Likewise.
4983 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4984 (setup_profitable_hard_regs): Likewise.
4985 (get_conflict_and_start_profitable_regs): Likewise.
4986 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4987 (ira_build_conflicts): Likewise.
4988 * ira-costs.c (restrict_cost_classes): Likewise.
4989 (setup_regno_cost_classes_by_aclass): Likewise.
4990 * ira-lives.c (process_bb_node_lives): Likewise.
4991 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4992 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4993 (setup_allocno_and_important_classes, setup_class_translate_array)
4994 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4995 Likewise.
4996 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4997 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4998 (process_alt_operands, inherit_in_ebb): Likewise.
4999 * lra-eliminations.c (update_reg_eliminate): Likewise.
5000 * lra-lives.c (process_bb_lives): Likewise.
5001 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5002 * resource.c (find_dead_or_set_registers): Likewise.
5003 (mark_target_live_regs): Likewise.
5004 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5005 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5006 (implicit_clobber_conflict_p): Likewise.
5007 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5008 (try_shrink_wrapping): Likewise.
5009
5010 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5011
5012 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5013 (HARD_REG_SET::operator|=): Likewise.
5014 (IOR_HARD_REG_SET): Delete.
5015 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5016 IOR_HARD_REG_SET.
5017 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5018 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5019 * final.c (collect_fn_hard_reg_usage): Likewise.
5020 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5021 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5022 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5023 (propagate_some_info_from_allocno): Likewise.
5024 (copy_info_to_removed_store_destinations): Likewise.
5025 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5026 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5027 (fast_allocation): Likewise.
5028 * ira-conflicts.c (ira_build_conflicts): Likewise.
5029 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5030 (process_bb_node_lives): Likewise.
5031 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5032 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5033 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5034 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5035 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5036 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5037 (process_bb_lives): Likewise.
5038 * lra-spills.c (assign_spill_hard_regs): Likewise.
5039 * postreload.c (reload_combine): Likewise.
5040 * reginfo.c (init_reg_sets_1): Likewise.
5041 * regrename.c (merge_overlapping_regs, find_rename_reg)
5042 (merge_chains): Likewise.
5043 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5044 (find_reload_regs, finish_spills, choose_reload_regs_init)
5045 (emit_reload_insns): Likewise.
5046 * reorg.c (redundant_insn): Likewise.
5047 * resource.c (find_dead_or_set_registers, mark_set_resources)
5048 (mark_target_live_regs): Likewise.
5049 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5050 * sched-deps.c (sched_analyze_insn): Likewise.
5051 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5052 (find_best_reg_for_expr): Likewise.
5053 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5054
5055 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5056
5057 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5058 (HARD_REG_SET::operator&): Likewise.
5059 (AND_HARD_REG_SET): Delete.
5060 * caller-save.c (setup_save_areas): Use "&" instead of
5061 AND_HARD_REG_SET.
5062 (save_call_clobbered_regs): Likewise.
5063 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5064 * config/m32c/m32c.c (reduce_class): Likewise.
5065 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5066 * final.c (get_call_reg_set_usage): Likewise.
5067 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5068 (setup_left_conflict_sizes_p): Likewise.
5069 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5070 (ira_build_conflicts): Likewise.
5071 * ira-costs.c (restrict_cost_classes): Likewise.
5072 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5073 (setup_reg_class_relations): Likewise.
5074 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5075 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5076 * resource.c (find_dead_or_set_registers): Likewise.
5077 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5078
5079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5080
5081 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5082 (COMPL_HARD_REG_SET): Delete.
5083 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5084 of COMPL_HARD_REG_SET.
5085 (try_rename_operands): Likewise.
5086 * config/sh/sh.c (push_regs): Likewise.
5087 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5088 * lra-constraints.c (contains_reg_p): Likewise.
5089 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5090
5091 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5092
5093 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5094 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5095 of COPY_HARD_REG_SET.
5096 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5097 (epiphany_conditional_register_usage): Likewise.
5098 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5099 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5100 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5101 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5102 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5103 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5104 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5105 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5106 * config/sh/sh.c (output_stack_adjust): Likewise.
5107 * final.c (collect_fn_hard_reg_usage): Likewise.
5108 (get_call_reg_set_usage): Likewise.
5109 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5110 (ira_flattening): Likewise.
5111 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5112 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5113 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5114 (ira_reassign_pseudos): Likewise.
5115 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5116 (ira_build_conflicts): Likewise.
5117 * ira-costs.c (restrict_cost_classes): Likewise.
5118 (setup_regno_cost_classes_by_aclass): Likewise.
5119 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5120 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5121 (setup_stack_reg_pressure_class, setup_pressure_classes)
5122 (setup_allocno_and_important_classes, setup_class_translate_array)
5123 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5124 (ira_setup_eliminable_regset): Likewise.
5125 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5126 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5127 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5128 (process_alt_operands, inherit_in_ebb): Likewise.
5129 * lra-lives.c (process_bb_lives): Likewise.
5130 * lra-spills.c (assign_spill_hard_regs): Likewise.
5131 * lra.c (lra): Likewise.
5132 * mode-switching.c (new_seginfo): Likewise.
5133 * postreload.c (reload_combine): Likewise.
5134 * reg-stack.c (straighten_stack): Likewise.
5135 * reginfo.c (save_register_info, restore_register_info): Likewise.
5136 (init_reg_sets_1, record_subregs_of_mode): Likewise
5137 * regrename.c (create_new_chain, rename_chains): Likewise.
5138 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5139 (find_reload_regs): Likewise.
5140 * resource.c (find_dead_or_set_registers): Likewise.
5141 (mark_target_live_regs): Likewise.
5142 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5143
5144 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5145
5146 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5147 (note_pattern_stores): Declare.
5148 (note_stores): Take an rtx_insn *.
5149 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5150 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5151 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5152 (note_stores): Take an rtx_insn * as argument and process
5153 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5154 (note_pattern_stores): ...this.
5155 (find_first_parameter_load): Pass the insn rather than
5156 its pattern to note_stores.
5157 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5158 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5159 (insert_one_insn): Likewise.
5160 * combine.c (combine_instructions): Likewise.
5161 (likely_spilled_retval_p): Likewise.
5162 (try_combine): Use note_pattern_stores instead of note_stores.
5163 (record_dead_and_set_regs): Pass the insn rather than its pattern
5164 to note_stores.
5165 (reg_dead_at_p): Likewise.
5166 * config/bfin/bfin.c (workaround_speculation): Likewise.
5167 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5168 rather than an rtx.
5169 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5170 instead of note_stores.
5171 (frv_optimize_membar_local): Pass the insn rather than its pattern
5172 to note_stores.
5173 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5174 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5175 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5176 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5177 (mips_reorg_process_insns): Likewise.
5178 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5179 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5180 rather than rtxes.
5181 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5182 its pattern to note_stores.
5183 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5184 of note_stores.
5185 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5186 the insn to note_stores.
5187 (prescan_insns_for_dce): Update call accordingly.
5188 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5189 to note_stores.
5190 * df-problems.c (can_move_insns_across): Likewise.
5191 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5192 * function.c (assign_parm_setup_reg): Likewise.
5193 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5194 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5195 (single_set_gcse): Likewise.
5196 * ira.c (validate_equiv_mem): Likewise.
5197 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5198 for no_equiv.
5199 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5200 pattern to note_stores.
5201 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5202 * loop-iv.c (simplify_using_initial_values): Likewise.
5203 * mode-switching.c (optimize_mode_switching): Likewise.
5204 * optabs.c (emit_libcall_block_1): Likewise.
5205 (expand_atomic_compare_and_swap): Likewise.
5206 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5207 (record_opr_changes): Likewise. Remove explicit handling of
5208 CALL_INSN_FUNCTION_USAGE.
5209 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5210 * regcprop.c (kill_clobbered_values): Likewise.
5211 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5212 to note_stores.
5213 * regrename.c (build_def_use): Likewise.
5214 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5215 for mark_not_eliminable.
5216 (reload_as_needed): Pass the insn rather than its pattern
5217 to note_stores.
5218 (emit_output_reload_insns): Likewise.
5219 * resource.c (mark_target_live_regs): Likewise.
5220 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5221 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5222 instead of note_stores.
5223 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5224 its pattern to note_stores.
5225 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5226 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5227
5228 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5229
5230 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5231 than a #define. Use a structure rather than an array as the
5232 fallback definition. Remove special cases for low array sizes.
5233 (const_hard_reg_set): New typedef.
5234 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5235 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5236 (hard_reg_set_empty_p): Likewise.
5237 (SET_HARD_REG_BIT): Use a function rather than a macro to
5238 handle the case in which HARD_REG_SET is a structure.
5239 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5240 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5241 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5242 (IOR_COMPL_HARD_REG_SET): Likewise.
5243 (hard_reg_set_iterator::pset): Constify the pointer target.
5244 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5245 of a "const HARD_REG_SET". Update the handling of non-integer
5246 HARD_REG_SETs.
5247 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5248 * reload.h: Likewise.
5249 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5250 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5251 of a "const HARD_REG_SET".
5252 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5253 (range_in_hard_reg_set_p): Likewise.
5254 * ira-costs.c (restrict_cost_classes): Likewise.
5255 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5256 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5257 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5258 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5259 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5260 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5261 take an unsigned int and open-code the HARD_REG_SET operations.
5262
5263 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5264
5265 * Makefile.in (OBJS): Remove bt-load.o.
5266 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5267 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5268 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5269 document that the option no longer does anything.
5270 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5271 * target.def (branch_target_register_class): Delete.
5272 (branch_target_register_callee_saved): Likewise.
5273 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5274 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5275 * doc/tm.texi: Regenerate.
5276 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5277 (make_pass_branch_target_load_optimize2): Likewise.
5278 * passes.def (pass_branch_target_load_optimize1): Likewise.
5279 (pass_branch_target_load_optimize2): Likewise.
5280 * targhooks.h (default_branch_target_register_class): Likewise.
5281 * targhooks.c (default_branch_target_register_class): Likewise.
5282 * opt-suggestions.c (test_completion_valid_options): Remove
5283 -fbtr-bb-exclusive from the list of test options.
5284 * bt-load.c: Remove.
5285
5286 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5287
5288 * match.pd: Add flag_unsafe_math_optimizations check
5289 before deciding on the widest type in a binary math operation.
5290
5291 2019-09-09 Martin Liska <mliska@suse.cz>
5292
5293 * config/i386/i386.opt: Update comment of removed
5294 options that are preserved only for backward
5295 compatibility.
5296
5297 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5298
5299 PR target/87853
5300 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5301 instead of __v16qs.
5302
5303 PR target/91704
5304 * config/i386/avxintrin.h (__v32qs): New typedef.
5305 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5306 instead of __v32qi.
5307
5308 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5309
5310 * doc/invoke.texi (Option Summary): Cover eBPF.
5311 (eBPF Options): New section.
5312 * doc/extend.texi (BPF Built-in Functions): Likewise.
5313 (BPF Kernel Helpers): Likewise.
5314
5315 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5316
5317 * config.gcc: Support for bpf-*-* targets.
5318 * common/config/bpf/bpf-common.c: New file.
5319 * config/bpf/t-bpf: Likewise.
5320 * config/bpf/predicates.md: Likewise.
5321 * config/bpf/constraints.md: Likewise.
5322 * config/bpf/bpf.opt: Likewise.
5323 * config/bpf/bpf.md: Likewise.
5324 * config/bpf/bpf.h: Likewise.
5325 * config/bpf/bpf.c: Likewise.
5326 * config/bpf/bpf-protos.h: Likewise.
5327 * config/bpf/bpf-opts.h: Likewise.
5328 * config/bpf/bpf-helpers.h: Likewise.
5329 * config/bpf/bpf-helpers.def: Likewise.
5330
5331 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5332
5333 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5334 indirect_calls.
5335
5336 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5337
5338 * opt-functions.awk (integer_range_info): Make sure values are in
5339 numeric context before operating with them.
5340
5341 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5342
5343 * genemit.c (gen_split): Print the filename and line number where the
5344 splitter (or peephole2) was defined, to the dump file.
5345
5346 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5347
5348 PR tree-optimization/91665
5349 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5350 incompatible with the type of PHI result.
5351
5352 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5353
5354 PR target/91684
5355 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5356 gen_unaligned_storedi for 4-byte aligned addresses.
5357
5358 2019-09-06 Jim Wilson <jimw@sifive.com>
5359
5360 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5361 change.
5362
5363 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5364
5365 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5366
5367 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5368
5369 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5370 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5371
5372 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5373
5374 PR target/91654
5375 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5376 cost of SSE->integer and integer->SSE moves from 2 to 6.
5377 (core_cost): Ditto.
5378
5379 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5380
5381 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5382 before testing TYPE_TRANSPARENT_AGGR.
5383 * calls.c (initialize_argument_information, load_register_parameters):
5384 Likewise.
5385
5386 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5387
5388 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5389 high regs.
5390 (cmp_ior): Likewise.
5391
5392 2019-09-06 Martin Liska <mliska@suse.cz>
5393
5394 * doc/match-and-simplify.texi: Separate tuples with ;.
5395
5396 2019-09-06 Martin Liska <mliska@suse.cz>
5397
5398 PR c++/91125
5399 * Makefile.in: Remove tlink.o.
5400 * collect2.c (do_link): New function isolated
5401 from do_tlink.
5402 (main): Use.
5403 * collect2.h (do_tlink): Remove declaration of do_tlink.
5404 * doc/extend.texi: Remove documentation of -frepo.
5405 * doc/invoke.texi: Likewise.
5406 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5407 * tlink.c: Remove.
5408
5409 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5410 Jim Wilson <jimw@sifive.com>
5411
5412 PR target/91635
5413 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5414 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5415 paradoxical_subreg_p (operands[0]).
5416 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5417 use as intermediate value.
5418
5419 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5420
5421 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5422 (sync_compare_and_swap<mode>_insn): Likewise.
5423
5424 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5425
5426 PR middle-end/91615
5427 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5428 without movmisalign optab.
5429
5430 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5431
5432 PR middle-end/91001
5433 PR middle-end/91105
5434 PR middle-end/91106
5435 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5436 types, use type of their first field instead of type of
5437 args[i].tree_value.
5438
5439 2019-09-05 Richard Biener <rguenther@suse.de>
5440
5441 PR rtl-optimization/91656
5442 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5443 of early out.
5444
5445 2019-09-05 Richard Biener <rguenther@suse.de>
5446
5447 PR middle-end/90501
5448 * tree-inline.c (declare_return_variable): Mark the return
5449 slot as addressable after building an address of it.
5450
5451 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5452
5453 * doc/install.texi: Update and clarify requirements to build GNAT.
5454
5455 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5456
5457 PR middle-end/91577
5458 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5459 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5460 call to be in memory.
5461 (pass_expand::execute): Call discover_nonconstant_array_refs before
5462 setting currently_expanding_to_rtl.
5463
5464 2019-09-04 Caroline Tice <cmtice@google.com>
5465
5466 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5467 specified together.
5468
5469 2019-09-04 Marek Polacek <polacek@redhat.com>
5470
5471 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5472
5473 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5474
5475 PR target/32413
5476 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5477 for QI and HImode moves between SSE and general registers.
5478
5479 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5480
5481 PR c/78736
5482 * doc/invoke.texi: Document -Wenum-conversion.
5483
5484 2019-09-04 Richard Biener <rguenther@suse.de>
5485
5486 PR rtl-optimization/36262
5487 * postreload-gcse.c: Include intl.h and gcse.h.
5488 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5489 to avoid linear list walk.
5490 (record_last_mem_set_info): Gate off if not computing transparentness.
5491 (get_bb_avail_insn): If transparentness isn't computed give up
5492 early.
5493 (gcse_after_reload_main): Skip compute_transp and extended PRE
5494 if gcse_or_cprop_is_too_expensive says so.
5495
5496 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5497
5498 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5499 noinit section.
5500 (msp430_select_section): Handle decls with the "noinit" attribute with
5501 default_elf_select_section.
5502 Handle SECCAT_RODATA_MERGE_* section types with
5503 default_elf_select_section.
5504 Add comments about handling of unsupported section types.
5505 (msp430_section_type_flags): Remove handling of the noinit section.
5506
5507 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5508
5509 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5510 conflicting msp430-specific attributes.
5511 (msp430_section_attr): Likewise.
5512 Add warnings about conflicts with generic "noinit" and "section"
5513 attributes.
5514 Fix grammar in -mlarge error message.
5515 (msp430_data_attr): Rename to msp430_persist_attr.
5516 Add warnings about conflicts with generic "noinit" and "section"
5517 attributes.
5518 Add warning for when variable is not initialized.
5519 Chain conditionals which prevent the attribute being added.
5520 (ATTR_EXCL): New helper.
5521 (attr_reent_exclusions): New exclusion table.
5522 (attr_naked_exclusions): Likewise.
5523 (attr_crit_exclusions): Likewise.
5524 (attr_lower_exclusions): Likewise.
5525 (attr_upper_exclusions): Likewise.
5526 (attr_either_exclusions): Likewise.
5527 (attr_persist_exclusions): Likewise.
5528 (msp430_attribute_table): Update with exclusion rules.
5529 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5530 has a section.
5531
5532 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5533
5534 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5535 (msp430_handle_generic_attribute): New function.
5536 * doc/tm.texi: Regenerate.
5537 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5538 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5539 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5540 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5541
5542 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5543
5544 PR tree-optimization/91504
5545 * match.pd: Add ((~a & b) ^a) --> (a | b).
5546
5547 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR target/91604
5550 * config/i386/i386-expand.c (split_double_mode): If there is more than
5551 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5552 already split matching MEM operand instead of calling adjust_address
5553 again.
5554
5555 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5556
5557 * config.gcc: Obsolete spu target. Remove references to spu.
5558 * configure.ac: Remove references to spu.
5559 * configure: Regenerate.
5560 * config/spu/: Remove directory.
5561 * common/config/spu/: Remove directory.
5562
5563 * doc/extend.texi: Remove references to spu.
5564 * doc/invoke.texi: Likewise.
5565 * doc/md.texi: Likewise.
5566 * doc/sourcebuild.texi: Likewise.
5567
5568 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5569
5570 PR middle-end/91603
5571 PR middle-end/91612
5572 PR middle-end/91613
5573 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5574 and SSA_NAME referring to CONSTANT_P correctly.
5575
5576 2019-09-03 Richard Biener <rguenther@suse.de>
5577
5578 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5579 (vn_nary_op_insert): Likewise.
5580 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5581 (vn_nary_op_lookup): Likewise.
5582 (vn_nary_op_insert): Likewise.
5583
5584 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5585
5586 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5587 (*op0, 1) instead of XEXP (*op1, 0).
5588
5589 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5590
5591 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5592 (aarch64_fjcvtzs): New define_insn.
5593 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5594 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5595 Add AARCH64_JSCVT.
5596 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5597 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5598 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5599 __ARM_FEATURE_JCVT where appropriate.
5600 * config/aarch64/arm_acle.h (__jcvt): Define.
5601
5602 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5603
5604 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5605 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5606 (aarch64_<frintnzs_op><mode>): New define_insn.
5607 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5608 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5609 __ARM_FEATURE_FRINT when appropriate.
5610 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5611 frint32x, frint64z, frint64x.
5612 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5613 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5614 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5615 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5616 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5617 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5618 * config/aarch64/iterators.md (VSFDF): Define.
5619 (FRINTNZX): Likewise.
5620 (frintnzs_op): Likewise.
5621
5622 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5623
5624 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5625 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5626 Cortex-A34.
5627 * config/aarch64/aarch64-tune.md: Regenerated.
5628 * doc/invoke.texi: Document the new processors.
5629
5630 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5631
5632 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5633 string.
5634 (ssbs): Likewise.
5635 (sve2): Likewise.
5636 (sve2-sm4): Likewise.
5637 (sveaes): Likewise.
5638 (svesha3): Likewise.
5639 (svebitperm): Likewise.
5640
5641 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5642 Richard Biener <rguenther@suse.de>
5643
5644 PR tree-optimization/91597
5645 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5646 BIT_AND_EXPR optimization for pointers, even if both operand
5647 ranges don't include NULL, the result can be NULL.
5648
5649 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5650
5651 PR middle-end/91605
5652 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5653 (non_mem_decl_p): ...this.
5654 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5655 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5656 unconditionally as before.
5657
5658 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5659
5660 PR target/91323
5661 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5662 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5663 * tree.def (LTGT_EXPR): Likewise.
5664 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5665
5666 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5667
5668 PR go/91617
5669 * fold-const.c (range_check_type): For enumeral and boolean
5670 type, pass 1 to type_for_size langhook instead of
5671 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5672 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5673 (build_range_check): Don't call unsigned_type_for for pointer types.
5674 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5675 range_check_type result.
5676
5677 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5678
5679 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5680 (replace_ref): Do not replace a chain of only two candidates which are
5681 valid memory references.
5682
5683 2019-09-02 Martin Liska <mliska@suse.cz>
5684
5685 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5686 Bail out when we'll end up with the same number of clusters as
5687 at the beginning.
5688 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5689 (jump_table_cluster::can_be_handled): Remove the guard
5690 as it's already handled in ::is_enabled. Allocate output
5691 after early bail out.
5692
5693 2019-09-02 Martin Liska <mliska@suse.cz>
5694
5695 PR gcov-profile/91601
5696 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5697 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5698 also negative edges.
5699 (circuit): Handle also negative edges as they can happen
5700 in some situations.
5701
5702 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5703
5704 PR target/91472
5705 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5706 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5707 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5708
5709 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5710
5711 PR middle-end/91623
5712 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5713 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5714 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5715 zero vector.
5716
5717 PR lto/91572
5718 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5719 GIMPLE_ASM TREE_LIST operands.
5720
5721 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5722
5723 * doc/generic.texi (Unary and Binary Expressions): Mark up
5724 an instance of TYPE_MIN.
5725
5726 2019-08-31 Stafford Horne <shorne@gmail.com>
5727
5728 * config/or1k/constraints.md (t): New constraint.
5729 * config/or1k/or1k.h (GOT_REGS): New register class.
5730 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5731
5732 2019-08-30 Jim Wilson <jimw@sifive.com>
5733
5734 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5735 and -fpic and -mplt then disable -msave-restore and warn.
5736
5737 2019-08-30 Martin Sebor <msebor@redhat.com>
5738
5739 PR middle-end/91599
5740 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5741 the statement doesn't have one.
5742 * gimple-pretty-print.c (percent_G_format): Same.
5743
5744 PR middle-end/91584
5745 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5746 before using them to validate MEM_REF offset.
5747
5748 2019-08-30 Marek Polacek <polacek@redhat.com>
5749
5750 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5751
5752 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5753
5754 * config/arm/arm.md (unaligned_loaddi,
5755 unaligned_storedi): New unspec insn patterns.
5756 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5757 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5758 and unaligned_storedi for 4-byte aligned memory.
5759 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5760 4-byte aligned memory.
5761
5762 2019-08-30 Martin Jambor <mjambor@suse.cz>
5763
5764 tree-optimization/91579
5765 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5766 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5767 appropriate.
5768 (arg_needs_copy_p): Removed.
5769 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5770 arg_needs_copy_p.
5771 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5772
5773 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5774
5775 * config/i386/i386-features.c
5776 (general_scalar_chain::compute_convert_gain):
5777 Correct cost for double-word shifts.
5778 (general_scalar_to_vector_candidate_p): Reject count operands
5779 greater or equal to mode bitsize.
5780
5781 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5782
5783 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5784 for moves between SSE and non-general registers and between
5785 mask and non-general registers.
5786 (ix86_register_move_cost): Remove stalled comment.
5787
5788 2019-08-29 Richard Biener <rguenther@suse.de>
5789
5790 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5791 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5792
5793 2019-08-29 Richard Biener <rguenther@suse.de>
5794
5795 PR bootstrap/91580
5796 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5797 Do not emit scalar copies for debug-insns, instead replace
5798 their uses with the reg copy used in the chain or reset them
5799 if there is a reaching definition outside of the chain as well.
5800
5801 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5802
5803 PR target/91560
5804 * config/i386/i386-expand.c (expand_vec_perm_movs,
5805 expand_vec_perm_blend, expand_vec_perm_vpermil,
5806 expand_vec_perm_pshufb, expand_vec_perm_1,
5807 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5808 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5809 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5810 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5811 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5812 comments - replace ix86_expand_vec_perm_builtin_1 with
5813 ix86_expand_vec_perm_const_1.
5814 (expand_vec_perm2_vperm2f128_vblend): New function.
5815 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5816 expand_vec_perm2_vperm2f128_vblend as last resort.
5817 (canonicalize_perm): Formatting fix.
5818
5819 PR tree-optimization/91351
5820 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5821 unsigned_type_for.
5822 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5823 range_check_type returns NULL.
5824 * tree-switch-conversion.c (switch_conversion::build_one_array):
5825 Use range_check_type instead of unsigned_type_for, don't perform
5826 linear opt if it returns NULL.
5827 (bit_test_cluster::find_bit_tests): Formatting fix.
5828 (bit_test_cluster::emit): Use range_check_type instead of
5829 unsigned_type_for.
5830 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5831 returns NULL.
5832
5833 2019-08-29 Richard Biener <rguenther@suse.de>
5834
5835 PR tree-optimization/91568
5836 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5837 (vect_update_max_nunits): Add overload for poly_uint64.
5838 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5839 (vect_build_slp_tree): Record max_nunits into the subtree
5840 and merge it upwards.
5841 (vect_print_slp_tree): Print max_nunits.
5842
5843 2019-08-28 Marek Polacek <polacek@redhat.com>
5844
5845 Implement P1152R4: Deprecating some uses of volatile.
5846 PR c++/91361
5847 * doc/invoke.texi: Document -Wvolatile.
5848
5849 2019-08-28 Marek Polacek <polacek@redhat.com>
5850
5851 PR c++/91360 - Implement C++20 P1143R2: constinit.
5852 * doc/invoke.texi: Document -Wc++20-compat.
5853
5854 2019-08-28 Martin Sebor <msebor@redhat.com>
5855
5856 PR tree-optimization/91457
5857 * builtins.c (component_size): New function.
5858 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5859 * builtins.h (compute_objsize): Add argument.
5860 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5861 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5862 (vrp_prop::check_mem_ref): Same.
5863 (vrp_prop::search_for_addr_array): Set no-warning bit.
5864 (check_array_bounds): Same.
5865
5866 2019-08-28 Martin Sebor <msebor@redhat.com>
5867
5868 PR driver/80545
5869 * opts-common.c (option_enabled): Correct checking for language
5870 options.
5871
5872 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5873
5874 * config/i386/i386.c (ix86_register_move_cost): Do not
5875 limit the cost of moves to/from XMM register to minimum 8.
5876
5877 2019-08-28 Martin Jambor <mjambor@suse.cz>
5878
5879 PR ipa/91468
5880 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5881 checking assert a normal assert to test it really is redundant.
5882 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5883 redundant test.
5884 (update_jump_functions_after_inlining): Removed combining unary
5885 arithmetic operations with an ancestor jump function.
5886 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5887 instead of t.
5888
5889 2019-08-28 Richard Biener <rguenther@suse.de>
5890
5891 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5892 add the MD problem.
5893
5894 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5895 Richard Biener <rguenther@suse.de>
5896
5897 * expr.c (expand_assignment): Handle misaligned DECLs.
5898 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5899 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5900 too.
5901 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5902 * varasm.c (build_constant_desc): Align constants of misaligned types.
5903 * config/arm/predicates.md (aligned_operand): New predicate.
5904 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5905 aligned_operand to check restrictions on memory addresses.
5906 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5907 * config/arm/vec-common.md (mov<VALL>): Likewise.
5908
5909 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5910
5911 PR libgomp/91530
5912 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5913 V_128 iterator instead of VI_128.
5914
5915 2019-08-28 Martin Liska <mliska@suse.cz>
5916
5917 PR tree-optimization/90970
5918 * builtins.c (check_access): Remove assignment to maxread
5919 as it hasn't been used since when it was introduced in r255755.
5920
5921 2019-08-27 Martin Sebor <msebor@redhat.com>
5922
5923 PR tree-optimization/91567
5924 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5925 of unknown strings.
5926 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5927 to PTRDIFF_MAX - 2.
5928
5929 2019-08-27 Jeff Law <law@redhat.com>
5930
5931 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5932 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5933
5934 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5935
5936 PR target/91528
5937 * config/i386/i386-features.c (convert_scalars_to_vector):
5938 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5939 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5940 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5941 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5942
5943 2019-08-27 Richard Biener <rguenther@suse.de>
5944
5945 * config/i386/i386-features.h
5946 (general_scalar_chain::~general_scalar_chain): Add.
5947 (general_scalar_chain::insns_conv): New bitmap.
5948 (general_scalar_chain::n_sse_to_integer): New.
5949 (general_scalar_chain::n_integer_to_sse): Likewise.
5950 (general_scalar_chain::make_vector_copies): Adjust signature.
5951 * config/i386/i386-features.c
5952 (general_scalar_chain::general_scalar_chain): Outline,
5953 initialize new members.
5954 (general_scalar_chain::~general_scalar_chain): New.
5955 (general_scalar_chain::mark_dual_mode_def): Record insns
5956 we need to insert conversions at and count them.
5957 (general_scalar_chain::compute_convert_gain): Account
5958 for conversion instructions at chain boundary.
5959 (general_scalar_chain::make_vector_copies): Generate a single
5960 copy for a def by a specific insn.
5961 (general_scalar_chain::convert_registers): First populate
5962 defs_map, then make copies at out-of chain insns.
5963
5964 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5965
5966 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5967 comment.
5968 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5969
5970 2019-08-27 Martin Liska <mliska@suse.cz>
5971
5972 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5973 loop.
5974 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5975 Enclose in anonymous namespace.
5976 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5977 hard_register initialization in braces.
5978 * tree-vrp.h (value_range_base::supports_type_p): Return false
5979 for function with boolean return type.
5980
5981 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5982
5983 * config/i386/i386.c (emit_i387_cw_initialization)
5984 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5985
5986 2019-08-26 Martin Sebor <msebor@redhat.com>
5987
5988 PR c++/83431
5989 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5990 (sprintf_dom_walker): Remove class.
5991 (get_int_range): Make argument const.
5992 (directive::fmtfunc, directive::set_precision): Same.
5993 (format_none): Same.
5994 (build_intmax_type_nodes): Same.
5995 (adjust_range_for_overflow): Same.
5996 (format_floating): Same.
5997 (format_character): Same.
5998 (format_string): Same.
5999 (format_plain): Same.
6000 (get_int_range): Cast away constness.
6001 (format_integer): Same.
6002 (get_string_length): Call get_range_strlen_dynamic. Handle
6003 null lendata.maxbound.
6004 (should_warn_p): Adjust argument scope qualifier.
6005 (maybe_warn): Same.
6006 (format_directive): Same.
6007 (parse_directive): Same.
6008 (is_call_safe): Same.
6009 (try_substitute_return_value): Same.
6010 (sprintf_dom_walker::handle_printf_call): Rename...
6011 (handle_printf_call): ...to this. Initialize target to host charmap
6012 here instead of in pass_sprintf_length::execute.
6013 (struct call_info): Make global.
6014 (sprintf_dom_walker::compute_format_length): Make global.
6015 (sprintf_dom_walker::handle_gimple_call): Same.
6016 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6017 * print-rtl.c (print_pattern): Reduce the number of spaces to
6018 avoid -Wformat-truncation.
6019 * tree-pass.h (make_pass_warn_printf): New function.
6020 * tree-ssa-strlen.c (strlen_optimize): New variable.
6021 (get_string_length): Add comments.
6022 (get_range_strlen_dynamic): New function.
6023 (check_and_optimize_call): New function.
6024 (handle_integral_assign): New function.
6025 (strlen_check_and_optimize_stmt): Factor code out into
6026 strlen_check_and_optimize_call and handle_integral_assign.
6027 (strlen_dom_walker::evrp): New member.
6028 (strlen_dom_walker::before_dom_children): Use evrp member.
6029 (strlen_dom_walker::after_dom_children): Use evrp member.
6030 (printf_strlen_execute): New function.
6031 (pass_strlen::gate): Update to handle printf calls.
6032 (dump_strlen_info): New function.
6033 (pass_data_warn_printf): New variable.
6034 (pass_warn_printf): New class.
6035 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6036 (handle_printf_call): Same.
6037 * tree-vrp.c (value_range_base::type): Adjust assertion.
6038 * vr-values.c (vr_values::update_value_range): Use type of the first
6039 argument rather than the second.
6040
6041 2019-08-26 Richard Biener <rguenther@suse.de>
6042
6043 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6044 Remove.
6045 (convert_scalars_to_vector): Do not call it.
6046
6047 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6048 Uros Bizjak <ubizjak@gmail.com>
6049
6050 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6051 CASE_MATHFN_FLOATN for roundeven.
6052 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6053 I387_ROUNDEVEN.
6054 (ix86_mode_needed): Likewise.
6055 (ix86_mode_after): Likewise.
6056 (ix86_mode_entry): Likewise.
6057 (ix86_mode_exit): Likewise.
6058 (ix86_emit_mode_set): Likewise.
6059 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6060 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6061 (ix86_entity): Add I387_ROUNDEVEN.
6062 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6063 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6064 (define_int_iterator): Likewise.
6065 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6066 (define_constant): Define ROUND_ROUNDEVEN mode.
6067 (define_attr): Add roundeven mode for i387_cw.
6068 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6069 * internal-fn.def (ROUNDEVEN): New builtin function.
6070 * optabs.def (roundeven_optab): New optab.
6071
6072 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6073
6074 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6075 for ROUNDEVEN.
6076 * builtins.def: Added function definitions for roundeven function
6077 variants.
6078 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6079 function call. Adjust condition for floor, ceil, trunc and round.
6080 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6081 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6082 (integer_valued_real_call_p): Added case for roundeven function.
6083 * real.c (is_even): New function. Returns true if real number is even,
6084 otherwise returns false.
6085 (is_halfway_below): New function. Returns true if real number is
6086 halfway between two integers, else return false.
6087 (real_roundeven): New function. Round real number to nearest integer,
6088 rounding halfway cases towards even.
6089 * real.h (real_value): Added descriptive comments. Added function
6090 declaration for roundeven function.
6091 * doc/extend.texi (Other Builtins): List roundeven variants among
6092 functions which can be handled as builtins.
6093
6094 2019-08-26 Richard Biener <rguenther@suse.de>
6095
6096 PR target/91522
6097 PR target/91527
6098 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6099 New member.
6100 (general_scalar_chain::replace_with_subreg): Remove.
6101 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6102 (general_scalar_chain::convert_reg): Adjust signature.
6103 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6104 iterate over all defs of a reg.
6105 (general_scalar_chain::replace_with_subreg): Remove.
6106 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6107 (general_scalar_chain::make_vector_copies): Populate defs_map,
6108 place copy only after defs that are used as vectors in the chain.
6109 (general_scalar_chain::convert_reg): Emit a copy for a specific
6110 def in a specific instruction.
6111 (general_scalar_chain::convert_op): All reg uses are converted here.
6112 (general_scalar_chain::convert_insn): Emit copies for scalar
6113 uses of defs here. Replace uses with the copies we created.
6114 Replace and convert the def. Adjust REG_DEAD notes, remove
6115 REG_EQUIV/EQUAL notes.
6116 (general_scalar_chain::convert_registers): Only handle copies
6117 into the chain here.
6118
6119 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6120
6121 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6122
6123 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6124
6125 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6126 Add nop_convert case.
6127 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6128 Fold all statements if requested.
6129 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6130 Allow to fold all statements.
6131 * tree-vrp.c (class vrp_folder):
6132 Let substitute_and_fold_engine fold all statements.
6133
6134 2019-08-26 Richard Biener <rguenther@suse.de>
6135
6136 PR tree-optimization/91526
6137 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6138 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6139 TODO_update_address_taken.
6140
6141 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6142
6143 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6144 __STDC_HOSTED__.
6145
6146 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6147
6148 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6149 machine mode for unspec_volatile operand.
6150
6151 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6152
6153 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6154 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6155 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6156 (prefer_neon_for_64bits): Remove.
6157 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6158 (tune_params): Remove PREF_NEON_64_FALSE uses.
6159 (arm_option_override): Remove prefer_neon selection code.
6160 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6161 * gcc/config/arm/arm-protos.h (tune_params): Remove
6162 prefer_neon_for_64bits.
6163 (prefer_neon_for_64bits): Remove.
6164
6165 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6166
6167 PR pch/61250
6168 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6169 and issue any diagnostics needed before collecting the pre-PCH
6170 state.
6171
6172 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6173
6174 PR middle-end/91283
6175 * common.opt (fexcess-precision=): Add Optimization flag. Use
6176 flag_excess_precision variable instead of
6177 flag_excess_precision_cmdline.
6178 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6179 member.
6180 (flag_excess_precision): Don't define.
6181 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6182 flag_excess_precision_cmdline. Remove comment.
6183 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6184 and x_flag_excess_precision instead of
6185 frontend_set_flag_excess_precision_cmdline and
6186 x_flag_excess_precision_cmdline.
6187 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6188 x_flag_excess_precision_cmdline.
6189 * toplev.c (init_excess_precision): Remove.
6190 (lang_dependent_init_target): Don't call it.
6191
6192 2019-08-23 Martin Liska <mliska@suse.cz>
6193
6194 * lto-wrapper.c (run_gcc): When setting jobserver
6195 set also parallel to 1. This was done so before r273908.
6196
6197 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6198
6199 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6200 (cortex-a76ae): Likewise.
6201 (cortex-a77): Likewise
6202 * config/arm/arm-tables.opt: Regenerate.
6203 * config/arm/arm-tune.md: Likewise.
6204 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6205 cortex-a77 CPU options.
6206
6207 2019-08-23 Martin Liska <mliska@suse.cz>
6208
6209 * profile.c (instrument_values): Do not set
6210 0 as last argument.
6211 * tree-profile.c (gimple_gen_interval_profiler): Remove
6212 last argument.
6213 (gimple_gen_pow2_profiler): Likewise.
6214 (gimple_gen_topn_values_profiler): Likewise.
6215 (gimple_gen_ic_profiler): Likewise.
6216 (gimple_gen_time_profiler): Likewise.
6217 (gimple_gen_average_profiler): Likewise.
6218 (gimple_gen_ior_profiler): Likewise.
6219 * value-prof.c (dump_histogram_value): Use default
6220 in switch statement instead of HIST_TYPE_MAX.
6221 (stream_in_histogram_value): Likewise.
6222 (gimple_duplicate_stmt_histograms): Do not
6223 use NULL for implicitly set arguments.
6224 (gimple_divmod_values_to_profile): Do not use
6225 reserve+quick_push.
6226 (gimple_indirect_call_to_profile): Likewise.
6227 (gimple_find_values_to_profile): Use implicit
6228 function call arguments.
6229 * value-prof.h (gimple_alloc_histogram_value):
6230 Set default values.
6231 (gimple_gen_interval_profiler): Remove last argument.
6232 (gimple_gen_pow2_profiler): Likewise.
6233 (gimple_gen_topn_values_profiler): Likewise.
6234 (gimple_gen_ic_profiler): Likewise.
6235 (gimple_gen_time_profiler): Likewise.
6236 (gimple_gen_average_profiler): Likewise.
6237 (gimple_gen_ior_profiler): Likewise.
6238
6239 2019-08-22 Martin Sebor <msebor@redhat.com>
6240
6241 PR middle-end/91490
6242 * builtins.c (c_strlen): Rename argument and introduce new local.
6243 Set no-warning bit on original argument.
6244 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6245 Fold empty and zero constructors into empty strings.
6246 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6247 for missing initializers.
6248 * tree.c (build_string_literal): Handle optional argument.
6249 * tree.h (build_string_literal): Add defaulted argument.
6250 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6251 no-warning bit on original expression.
6252
6253 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6254
6255 PR target/91481
6256 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6257 and UNSPEC_DARN_RAW.
6258 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6259 UNSPECV_DARN_RAW.
6260 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6261 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6262 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6263
6264 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6265
6266 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6267 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6268 * config/rs6000/rs6000.md (unspec): ... here.
6269 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6270 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6271 cmpeqb, *cmpeqb_internal): Delete, move to...
6272 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6273 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6274 cmpeqb, *cmpeqb_internal): ... here.
6275
6276 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6277
6278 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6279 intrinsics if __ARM_FP.
6280 Use __ARM_FEATURE_CRC32 ifdef guard.
6281
6282 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6283
6284 * config/arm/arm.md (neon_for_64bits): Remove.
6285 (avoid_neon_for_64bits): Remove.
6286 (arm_adddi3): Always split early.
6287 (arm_subdi3): Always split early.
6288 (negdi2): Remove Neon expansion.
6289 (split zero_extend): Split before reload.
6290 (split sign_extend): Split before reload.
6291
6292 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6293
6294 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6295 (qhs_extenddi_cstr): Likewise.
6296 * config/arm/arm.md (ashldi3): Always expand early.
6297 (ashlsi3): Likewise.
6298 (ashrsi3): Likewise.
6299 (zero_extend<mode>di2): Remove Neon variants.
6300 (extend<mode>di2): Likewise.
6301 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6302 (signed_shift_di3_neon): Likewise.
6303 (unsigned_shift_di3_neon): Likewise.
6304 (ashrdi3_neon_imm_noclobber): Likewise.
6305 (lshrdi3_neon_imm_noclobber): Likewise.
6306 (<shift>di3_neon): Likewise.
6307 (split extend): Remove DI extend split patterns.
6308
6309 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6310
6311 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6312 (split not): Add DImode not splitter.
6313 (anddi3): Remove pattern.
6314 (anddi3_insn): Likewise.
6315 (anddi_zesidi_di): Likewise.
6316 (anddi_sesdi_di): Likewise.
6317 (anddi_notdi_di): Likewise.
6318 (anddi_notzesidi_di): Likewise.
6319 (anddi_notsesidi_di): Likewise.
6320 (iordi3): Likewise.
6321 (iordi3_insn): Likewise.
6322 (iordi_zesidi_di): Likewise.
6323 (iordi_sesidi_di): Likewise.
6324 (xordi3): Likewise.
6325 (xordi3_insn): Likewise.
6326 (xordi_sesidi_di): Likewise.
6327 (xordi_zesidi_di): Likewise.
6328 (one_cmpldi2): Likewise.
6329 (one_cmpldi2_insn): Likewise.
6330 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6331 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6332 alternative.
6333 (iwmmxt_xordi3): Likewise.
6334 (iwmmxt_anddi3): Likewise.
6335 * config/arm/neon.md (orndi3_neon): Remove pattern.
6336 (anddi_notdi_di): Likewise.
6337 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6338 (arm_iordi_operand_neon): Likewise.
6339 (arm_xordi_operand_neon): Likewise.
6340 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6341 (iordi_notzesidi_di): Likewise.
6342 (iordi_notdi_zesidi): Likewise.
6343 (iordi_notsesidi_di): Likewise.
6344
6345 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6346
6347 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6348 insn.
6349 (iorsi3_compare0_scratch): Likewise.
6350
6351 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6352
6353 * config/aarch64/aarch64-simd-builtins.def:
6354 (ld1x4): New.
6355 (st1x4): Likewise.
6356 * config/aarch64/aarch64-simd.md:
6357 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6358 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6359 (aarch64_ld1_x4_<mode>): Likewise.
6360 (aarch64_st1_x4_<mode>): Likewise.
6361 * config/aarch64/arm_neon.h:
6362 (vld1_s8_x4): New function.
6363 (vld1q_s8_x4): Likewise.
6364 (vld1_s16_x4): Likewise.
6365 (vld1q_s16_x4): Likewise.
6366 (vld1_s32_x4): Likewise.
6367 (vld1q_s32_x4): Likewise.
6368 (vld1_u8_x4): Likewise.
6369 (vld1q_u8_x4): Likewise.
6370 (vld1_u16_x4): Likewise.
6371 (vld1q_u16_x4): Likewise.
6372 (vld1_u32_x4): Likewise.
6373 (vld1q_u32_x4): Likewise.
6374 (vld1_f16_x4): Likewise.
6375 (vld1q_f16_x4): Likewise.
6376 (vld1_f32_x4): Likewise.
6377 (vld1q_f32_x4): Likewise.
6378 (vld1_p8_x4): Likewise.
6379 (vld1q_p8_x4): Likewise.
6380 (vld1_p16_x4): Likewise.
6381 (vld1q_p16_x4): Likewise.
6382 (vld1_s64_x4): Likewise.
6383 (vld1_u64_x4): Likewise.
6384 (vld1_p64_x4): Likewise.
6385 (vld1q_s64_x4): Likewise.
6386 (vld1q_u64_x4): Likewise.
6387 (vld1q_p64_x4): Likewise.
6388 (vld1_f64_x4): Likewise.
6389 (vld1q_f64_x4): Likewise.
6390 (vst1_s8_x4): Likewise.
6391 (vst1q_s8_x4): Likewise.
6392 (vst1_s16_x4): Likewise.
6393 (vst1q_s16_x4): Likewise.
6394 (vst1_s32_x4): Likewise.
6395 (vst1q_s32_x4): Likewise.
6396 (vst1_u8_x4): Likewise.
6397 (vst1q_u8_x4): Likewise.
6398 (vst1_u16_x4): Likewise.
6399 (vst1q_u16_x4): Likewise.
6400 (vst1_u32_x4): Likewise.
6401 (vst1q_u32_x4): Likewise.
6402 (vst1_f16_x4): Likewise.
6403 (vst1q_f16_x4): Likewise.
6404 (vst1_f32_x4): Likewise.
6405 (vst1q_f32_x4): Likewise.
6406 (vst1_p8_x4): Likewise.
6407 (vst1q_p8_x4): Likewise.
6408 (vst1_p16_x4): Likewise.
6409 (vst1q_p16_x4): Likewise.
6410 (vst1_s64_x4): Likewise.
6411 (vst1_u64_x4): Likewise.
6412 (vst1_p64_x4): Likewise.
6413 (vst1q_s64_x4): Likewise.
6414 (vst1q_u64_x4): Likewise.
6415 (vst1q_p64_x4): Likewise.
6416 (vst1_f64_x4): Likewise.
6417 (vst1q_f64_x4): Likewise.
6418
6419 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6420
6421 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6422
6423 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6424 Richard Sandiford <richard.sandiford@arm.com>
6425
6426 PR target/88839
6427 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6428 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6429
6430 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6431
6432 PR target/90724
6433 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6434 in reg if it fails aarch64_plus_operand predicate.
6435
6436 2019-08-21 Richard Biener <rguenther@suse.de>
6437
6438 PR tree-optimization/91482
6439 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6440 BUILT_IN_ASSUME_ALIGNED calls.
6441
6442 2019-08-21 Richard Biener <rguenther@suse.de>
6443
6444 PR target/91498
6445 PR target/91503
6446 * config/i386/i386-features.c
6447 (general_scalar_chain::make_vector_copies): Copy stack temporary
6448 rtx when using it multiple times.
6449 (general_scalar_chain::convert_reg): Likewise.
6450
6451 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6452
6453 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6454
6455 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6456
6457 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6458 catch more redundant zero initialization cases.
6459 (dse_dom_walker::dse_optimize_stmt): Likewise.
6460
6461 2019-08-20 Richard Biener <rguenther@suse.de>
6462
6463 PR lto/91307
6464 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6465 by collect2 when targetm.have_ctors_dtors which avoids dragging
6466 in temporary filenames from LTO input objects.
6467
6468 2019-08-20 Richard Biener <rguenther@suse.de>
6469
6470 PR tree-optimization/37242
6471 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6472 to (T)a + (T)b if we know that a + b does not overflow.
6473
6474 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6475
6476 PR rtl-optimization/91347
6477 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6478 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6479
6480 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6481
6482 * calls.h (function_arg_info): Add a pass_by_reference field,
6483 defaulting to false.
6484 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6485 when applying pass-by-reference semantics.
6486 (initialize_argument_information): Likewise.
6487 (emit_library_call_value_1): Likewise.
6488 * function.c (assign_parm_data_one): Remove passed_pointer field.
6489 (assign_parm_find_data_types): Don't set it.
6490 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6491 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6492 arg.pass_by_reference instead of passed_pointer.
6493
6494 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6495
6496 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6497 into a single function_arg_info, updating its fields when we
6498 apply pass-by-reference and promotion semantics. Use the
6499 function_arg_info to track the mode rather than keeping it in
6500 a separate local variable.
6501 (initialize_argument_information): Likewise. Base the final
6502 arg_to_skip on this new function_arg_info rather than creating
6503 a new one from scratch.
6504
6505 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6506
6507 * function.c (assign_parm_data_one): Replace passed_type,
6508 promoted_mode and named_arg with a function_arg_info field.
6509 (assign_parm_find_data_types): Remove local variables and
6510 assign directly to "data". Make data->passed_mode shadow
6511 data->arg.mode until promotion, then assign the promoted
6512 mode to data->arg.mode.
6513 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6514 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6515 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6516 (assign_parm_setup_block, assign_parm_setup_reg)
6517 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6518 arg.mode instead of promoted_mode, arg.type instead of passed_type
6519 and arg.named instead of named_arg. Use data->arg for
6520 function_arg_info structures that had the field values passed_type,
6521 promoted_mode and named_arg. Base other function_arg_infos on
6522 data->arg, changing the necessary properties.
6523
6524 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6525
6526 * calls.h (apply_pass_by_reference_rules): Declare.
6527 * calls.c (apply_pass_by_reference_rules): New function.
6528 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6529 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6530 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6531 * function.c (assign_parm_find_data_types): Likewise.
6532 * var-tracking.c (prepare_call_arguments): Likewise.
6533
6534 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6535
6536 * target.def (must_pass_in_stack): Take a function_arg_info instead
6537 of a mode and a type.
6538 * doc/tm.texi: Regenerate.
6539 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6540 instead of a mode and a type.
6541 (must_pass_in_stack_var_size_or_pad): Likewise.
6542 * calls.c (must_pass_in_stack_var_size): Likewise.
6543 (must_pass_in_stack_var_size_or_pad): Likewise.
6544 (initialize_argument_information): Update call to
6545 targetm.calls.must_pass_in_stack.
6546 (must_pass_va_arg_on_stack): Likewise.
6547 * function.c (assign_parm_find_entry_rtl): Likewise.
6548 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6549 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6550 (alpha_function_arg_advance): Likewise.
6551 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6552 (cr16_function_arg_advance): Likewise.
6553 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6554 (cris_arg_partial_bytes): Likewise.
6555 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6556 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6557 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6558 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6559 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6560 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6561 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6562 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6563 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6564 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6565 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6566 instead of a mode and a type.
6567 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6568 (fr30_num_arg_regs): Likewise.
6569 (fr30_setup_incoming_varargs): Update calls accordingly.
6570 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6571 (fr30_function_arg_advance): Likewise.
6572 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6573 instead of a mode and a type.
6574 * config/gcn/gcn.c (num_arg_regs): Likewise.
6575 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6576 num_arg_regs and targetm.calls.must_pass_in_stack.
6577 (gcn_arg_partial_bytes): Likewise.
6578 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6579 function_arg_info instead of a mode and a type.
6580 (classify_argument): Update call accordingly.
6581 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6582 function_arg_info instead of a mode and a type.
6583 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6584 Likewise.
6585 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6586 (rs6000_parm_needs_stack): Update call accordingly.
6587 (setup_incoming_varargs): Likewise.
6588
6589 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6590
6591 * target.def (callee_copies): Take a function_arg_info instead
6592 of a mode, type and named flag.
6593 * doc/tm.texi: Regenerate.
6594 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6595 instead of a mode, type and named flag.
6596 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6597 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6598 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6599 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6600 instead of a mode, type and named flag.
6601 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6602 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6603 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6604 * calls.h (reference_callee_copied): Take a function_arg_info
6605 instead of a mode, type and named flag.
6606 * calls.c (reference_callee_copied): Likewise.
6607 (initialize_argument_information): Update call accordingly.
6608 (emit_library_call_value_1): Likewise.
6609 * function.c (gimplify_parameters): Likewise.
6610 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6611 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6612 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6613 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6614 (TARGET_CALLEE_COPIES): Define to
6615 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6616 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6617 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6618 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6619 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6620 instead of a mode, type and named flag.
6621 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6622 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6623 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6624 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6625 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6626 (TARGET_CALLEE_COPIES): Define to
6627 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6628 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6629 instead of a mode, type and named flag.
6630 * config/sh/sh.c (sh_callee_copies): Likewise.
6631 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6632 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6633 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6634
6635 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6636
6637 * target.def (function_arg_advance): Take a function_arg_info instead
6638 of a mode, type and named flag.
6639 * doc/tm.texi: Regenerate.
6640 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6641 instead of a mode, type and named flag.
6642 * targhooks.c (default_function_arg_advance): Likewise.
6643 * calls.c (initialize_argument_information): Update call to
6644 targetm.calls.function_arg_advance.
6645 (emit_library_call_value_1): Likewise.
6646 * dse.c (get_call_args): Likewise.
6647 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6648 * function.c (assign_parms, gimplify_parameters): Likewise.
6649 * var-tracking.c (prepare_call_arguments): Likewise.
6650 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6651 function_arg_info instead of a mode, type and named flag.
6652 (aarch64_setup_incoming_varargs): Update call accordingly.
6653 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6654 function_arg_info instead of a mode, type and named flag.
6655 (alpha_setup_incoming_varargs): Update call accordingly.
6656 * config/arc/arc.c (arc_function_arg_advance): Take a
6657 function_arg_info instead of a mode, type and named flag.
6658 (arc_setup_incoming_varargs): Update call accordingly.
6659 * config/arm/arm.c (arm_function_arg_advance): Take a
6660 function_arg_info instead of a mode, type and named flag.
6661 (cmse_func_args_or_return_in_stack): Update call accordingly.
6662 (arm_function_ok_for_sibcall): Likewise.
6663 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6664 * config/avr/avr.c (avr_function_arg_advance): Take a
6665 function_arg_info instead of a mode, type and named flag.
6666 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6667 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6668 (c6x_call_saved_register_used): Update call accordingly.
6669 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6670 function_arg_info instead of a mode, type and named flag.
6671 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6672 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6673 (csky_setup_incoming_varargs): Update call accordingly.
6674 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6675 function_arg_info instead of a mode, type and named flag.
6676 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6677 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6678 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6679 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6680 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6681 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6682 (ix86_setup_incoming_varargs): Update call accordingly.
6683 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6684 function_arg_info instead of a mode, type and named flag.
6685 (ia64_setup_incoming_varargs): Update call accordingly.
6686 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6687 function_arg_info instead of a mode, type and named flag.
6688 (iq2000_expand_prologue): Update call accordingly.
6689 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6690 function_arg_info instead of a mode, type and named flag.
6691 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6692 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6693 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6694 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6695 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6696 Likewise.
6697 (microblaze_expand_prologue): Update call accordingly.
6698 * config/mips/mips.c (mips_function_arg_advance): Take a
6699 function_arg_info instead of a mode, type and named flag.
6700 (mips_setup_incoming_varargs): Update call accordingly.
6701 (mips_output_args_xfer): Likewise.
6702 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6703 function_arg_info instead of a mode, type and named flag.
6704 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6705 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6706 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6707 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6708 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6709 (nios2_setup_incoming_varargs): Update call accordingly.
6710 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6711 function_arg_info instead of a mode, type and named flag.
6712 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6713 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6714 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6715 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6716 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6717 (riscv_setup_incoming_varargs): Update call accordingly.
6718 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6719 function_arg_info instead of a mode, type and named flag.
6720 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6721 Likewise.
6722 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6723 (rs6000_parm_needs_stack): Update call accordingly.
6724 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6725 instead of a mode, type and named flag.
6726 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6727 (s390_call_saved_register_used): Update call accordingly.
6728 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6729 instead of a mode, type and named flag.
6730 (sh_output_mi_thunk): Update call accordingly.
6731 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6732 function_arg_info instead of a mode, type and named flag.
6733 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6734 (spu_setup_incoming_varargs): Update call accordingly.
6735 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6736 function_arg_info instead of a mode, type and named flag.
6737 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6738 (tilegx_setup_incoming_varargs): Update call accordingly.
6739 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6740 function_arg_info instead of a mode, type and named flag.
6741 (tilegx_setup_incoming_varargs): Update call accordingly.
6742 * config/v850/v850.c (v850_function_arg_advance): Take a
6743 function_arg_info instead of a mode, type and named flag.
6744 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6745 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6746 (visium_setup_incoming_varargs): Update call accordingly.
6747 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6748 function_arg_info instead of a mode, type and named flag.
6749
6750 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6751
6752 * target.def (function_arg, function_incoming_arg): Take a
6753 function_arg_info instead of a mode, tree and named flag.
6754 * doc/tm.texi: Regenerate.
6755 * targhooks.h (default_function_arg): Take a function_arg_info
6756 instead of a mode, tree and named flag.
6757 (default_function_incoming_arg): Likewise.
6758 * targhooks.c (default_function_arg): Likewise.
6759 (default_function_incoming_arg): Likewise.
6760 * calls.h (function_arg_info::end_marker_p): New function.
6761 (function_arg_info::end_marker): Likewise.
6762 * calls.c (prepare_call_address, initialize_argument_information)
6763 (expand_call, emit_library_call_value_1): Update calls to
6764 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6765 * dse.c: Include calls.h.
6766 (get_call_args): Update call to targetm.calls.function_arg.
6767 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6768 * var-tracking.c (prepare_call_arguments): Likewise.
6769 * function.c (assign_parm_find_entry_rtl): Update call to
6770 targetm.calls.function_incoming_arg.
6771 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6772 function_arg_info instead of a mode, tree and named flag.
6773 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6774 * config/arc/arc.c (arc_function_arg): Likewise.
6775 * config/arm/arm.c (arm_function_arg): Likewise.
6776 (cmse_func_args_or_return_in_stack): Update call accordingly.
6777 (arm_function_ok_for_sibcall): Likewise.
6778 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6779 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6780 instead of a mode, tree and named flag.
6781 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6782 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6783 (c6x_call_saved_register_used): Update call accordingly.
6784 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6785 instead of a mode, tree and named flag.
6786 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6787 (cris_function_arg_1): Likewise.
6788 * config/csky/csky.c (csky_function_arg): Likewise.
6789 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6790 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6791 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6792 (frv_function_arg_1): Likewise.
6793 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6794 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6795 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6796 * config/i386/i386.c (ix86_function_arg): Likewise.
6797 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6798 (ia64_function_arg_1): Likewise.
6799 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6800 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6801 accordingly.
6802 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6803 instead of a mode, tree and named flag.
6804 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6805 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6806 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6807 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6808 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6809 (microblaze_expand_prologue): Update call accordingly.
6810 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6811 instead of a mode, tree and named flag.
6812 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6813 (mmix_function_arg_1): Likewise.
6814 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6815 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6816 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6817 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6818 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6819 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6820 (nvptx_function_incoming_arg): Likewise.
6821 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6822 * config/pa/pa.c (pa_function_arg): Likewise.
6823 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6824 * config/pru/pru.c (pru_function_arg): Likewise.
6825 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6826 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6827 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6828 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6829 (rs6000_parm_needs_stack): Update call accordingly.
6830 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6831 instead of a mode, tree and named flag.
6832 * config/s390/s390.c (s390_function_arg): Likewise.
6833 (s390_call_saved_register_used): Update call accordingly.
6834 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6835 instead of a mode, tree and named flag.
6836 (sh_output_mi_thunk): Update call accordingly.
6837 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6838 (sparc_function_incoming_arg): Take a function_arg_info instead of
6839 a mode, tree and named flag.
6840 * config/spu/spu.c (spu_function_arg): Likewise.
6841 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6842 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6843 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6844 * config/v850/v850.c (v850_function_arg): Likewise.
6845 * config/vax/vax.c (vax_function_arg): Likewise.
6846 * config/visium/visium.c (visium_function_arg): Likewise.
6847 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6848 (xtensa_function_incoming_arg): Likewise.
6849
6850 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6851
6852 * target.def (setup_incoming_varargs): Take a function_arg_info
6853 instead of a mode and tree.
6854 * doc/tm.texi: Regenerate.
6855 * targhooks.h (default_setup_incoming_varargs): Take a
6856 function_arg_info instead of a mode and tree.
6857 * targhooks.c (default_setup_incoming_varargs): Likewise.
6858 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6859 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6860 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6861 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6862 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6863 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6864 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6865 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6866 Likewise.
6867 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6868 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6869 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6870 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6871 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6872 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6873 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6874 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6875 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6876 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6877 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6878 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6879 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6880 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6881 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6882 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6883 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6884 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6885 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6886 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6887 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6888 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6889 * function.c (assign_parms_setup_varargs): Update call to
6890 targetm.calls.setup_incoming_varargs.
6891
6892 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6893
6894 * target.def (pass_by_reference): Take a function_arg_info instead
6895 of a mode, type and named flag.
6896 * doc/tm.texi: Regenerate.
6897 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6898 accordingly.
6899 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6900 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6901 function_arg_info instead of a mode, type and named flag.
6902 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6903 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6904 mode, type and named flag.
6905 * calls.c (pass_by_reference): Likewise.
6906 (pass_va_arg_by_reference): Update call accordingly.
6907 (initialize_argument_information): Likewise.
6908 (emit_library_call_value_1): Likewise.
6909 * function.c (assign_parm_find_data_types): Likewise.
6910 * var-tracking.c (prepare_call_arguments): Likewise.
6911 * stor-layout.c: Include calls.h.
6912 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6913 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6914 function_arg_info instead of a mode, type and named flag.
6915 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6916 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6917 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6918 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6919 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6920 (c6x_call_saved_register_used): Update call to pass_by_reference.
6921 * config/cris/cris.c (cris_pass_by_reference): Take a
6922 function_arg_info instead of a mode, type and named flag.
6923 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6924 function_arg_info instead of a mode, type and named flag.
6925 (epiphany_arg_partial_bytes): Update call accordingly.
6926 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6927 function_arg_info instead of a mode, type and named flag.
6928 (ft32_arg_partial_bytes): Update call accordingly.
6929 * config/i386/i386.c (ix86_pass_by_reference): Take a
6930 function_arg_info instead of a mode, type and named flag.
6931 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6932 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6933 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6934 (m32r_return_in_memory): Update call accordingly.
6935 * config/mips/mips.c (mips_pass_by_reference): Take a
6936 function_arg_info instead of a mode, type and named flag.
6937 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6938 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6939 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6940 (moxie_arg_partial_bytes): Update call accordingly.
6941 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6942 function_arg_info instead of a mode, type and named flag.
6943 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6944 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6945 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6946 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6947 (riscv_return_in_memory): Update call accordingly.
6948 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6949 function_arg_info instead of a mode, type and named flag.
6950 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6951 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6952 * config/s390/s390.c (s390_pass_by_reference): Take a
6953 function_arg_info instead of a mode, type and named flag.
6954 (s390_call_saved_register_used): Update call accordingly.
6955 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6956 instead of a mode, type and named flag.
6957 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6958 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6959 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6960 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6961 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6962 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6963
6964 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6965
6966 * target.def (arg_partial_bytes): Take a function_arg_info instead
6967 of a mode, type and named flag.
6968 * doc/tm.texi: Regenerate.
6969 * target.h (function_arg_info): Declare.
6970 * calls.h (function_arg_info): New class.
6971 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6972 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6973 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6974 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6975 * calls.c (initialize_argument_information): Update call to
6976 targetm.calls.partial_bytes.
6977 (emit_library_call_value_1): Likewise.
6978 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6979 * function.c (assign_parm_find_entry_rtl): Likewise.
6980 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6981 function_arg_info instead of a mode, type and named flag.
6982 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6983 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6984 (cmse_func_args_or_return_in_stack): Update accordingly.
6985 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6986 function_arg_info instead of a mode, type and named flag.
6987 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6988 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6989 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6990 * config/fr30/fr30.c: Include calls.h.
6991 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6992 type and named flag.
6993 * config/frv/frv.c: Include calls.h.
6994 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6995 type and named flag.
6996 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6997 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6998 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6999 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7000 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7001 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7002 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7003 Likewise.
7004 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7005 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7006 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7007 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7008 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7009 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7010 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7011 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7012 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7013 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7014 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7015 (rs6000_parm_needs_stack): Update call accordingly.
7016 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7017 function_arg_info instead of a mode, type and named flag.
7018 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7019 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7020
7021 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7022
7023 * calls.h (must_pass_va_arg_in_stack): Declare.
7024 * calls.c (must_pass_va_arg_in_stack): New function.
7025 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7026 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7027 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7028 Likewise.
7029 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7030
7031 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7032
7033 * calls.h (pass_va_arg_by_reference): Declare.
7034 * calls.c (pass_va_arg_by_reference): New function.
7035 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7036 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7037 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7038 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7039 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7040 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7041 (mips_gimplify_va_arg_expr): Likewise.
7042 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7043 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7044 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7045 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7046 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7047 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7048 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7049 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7050 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7051 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7052 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7053
7054 2019-08-20 Richard Biener <rguenther@suse.de>
7055
7056 PR target/91498
7057 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7058 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7059 (convert_scalars_to_vector): Add timode_p parameter and use it
7060 to guard TImode-only operation.
7061 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7062 (pass_stv::execute): Pass down timode_p.
7063
7064 2019-08-20 Lili Cui <lili.cui@intel.com>
7065
7066 * common/config/i386/i386-common.c
7067 (processor_names): Add tigerlake and cooperlake.
7068 (processor_alias_table): Add tigerlake and cooperlake.
7069 * config.gcc: Add -march=tigerlake and cooperlake.
7070 * config/i386/driver-i386.c
7071 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7072 Add "has_avx" to classify processor.
7073 * config/i386/i386-builtins.c (processor_model) :
7074 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7075 (arch_names_table): Add tigerlake and cooperlake.
7076 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7077 and PROCESSOR_COOPERLAKE.
7078 * config/i386/i386-c.c
7079 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7080 * config/i386/i386-options.c
7081 (m_TIGERLAKE) : Define.
7082 (m_COOPERLAKE) : Ditto.
7083 (m_CORE_AVX512): Ditto.
7084 (processor_cost_table): Add cascadelake.
7085 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7086 * config/i386/i386.h
7087 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7088 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7089 (PTA_MOVDIRI): Ditto.
7090 (PTA_MOVDIR64B): Ditto.
7091 (PTA_COOPERLAKE) : Ditto.
7092 (PTA_TIGERLAKE) : Ditto.
7093 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7094 * doc/extend.texi: Add tigerlake and cooperlake.
7095 * doc/invoke.texi: Add tigerlake and cooperlake.
7096
7097 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7098
7099 * doc/install.texi (Specific, alpha): Remove note to use
7100 binutils 2.11.2 or later.
7101
7102 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7103
7104 PR middle-end/89544
7105 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7106 when possible.
7107
7108 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7109
7110 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7111 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7112 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7113 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7114 * config/aarch64/constraints.md (Dt): New constraint
7115 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7116
7117 2019-08-19 Richard Biener <rguenther@suse.de>
7118
7119 PR tree-optimization/91403
7120 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7121 cases we can handle with tail-recursion...
7122 (follow_ssa_edge_expr): ... here. Do so.
7123
7124 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7125
7126 PR target/91441
7127 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7128 implemented for -fsanitize=kernel-address, and merge check logic
7129 with -fsanitize=address.
7130
7131 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7132
7133 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7134 for cpu and machine. Factor 64/32b builtins.
7135
7136 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7137
7138 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7139 gone, point to sourceforge.net.
7140
7141 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7142
7143 * doc/ux.texi (User Experience Guidelines): Update reference.
7144
7145 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7146
7147 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7148 not LGPL".
7149
7150 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7151
7152 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7153 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7154
7155 2019-08-16 Martin Sebor <msebor@redhat.com>
7156
7157 * tree.def (TYPE_SIZE): Clarify.
7158 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7159
7160 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7161
7162 PR tree-optimization/91109
7163 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7164 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7165 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7166
7167 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7168
7169 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7170 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7171 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7172 (uavg<mode>3_ceil): New expander.
7173 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7174 mode iterator when creating CONST1_RTX.
7175 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7176 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7177 mode iterator for const1_operand predicate.
7178
7179 2019-08-16 Richard Biener <rguenther@suse.de>
7180
7181 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7182 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7183 follow_ssa_edge.
7184 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7185 (analyze_evolution_in_loop): Likewise.
7186 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7187 (follow_ssa_edge_expr): ... here. Refactor code.
7188
7189 2019-08-16 Richard Biener <rguenther@suse.de>
7190
7191 PR target/91469
7192 * config/i386/i386-features.c
7193 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7194
7195 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7196
7197 PR other/91255
7198 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7199 only if subst_name matches curr_attr string.
7200
7201 2019-08-16 Richard Biener <rguenther@suse.de>
7202
7203 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7204 stmt at gsi_p, instead replace it with a NOP removed later.
7205 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7206 that became dead because of that.
7207
7208 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7209
7210 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7211 for which we can't represent a range.
7212 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7213 set_varying.
7214 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7215 Set VR_UNDEFINED if type is not supported.
7216 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7217 * tree-vrp.c (value_range_base::check): Assert that a varying has
7218 min/max set.
7219 (value_range_base::equal_p): Early bail for undefines.
7220 (value_range_base::set_varying): Accept a type.
7221 (value_range::set_varying): Same.
7222 (value_range_base::type): VARYING can have a type, while UNDEFINE
7223 is typeless.
7224 (value_range_base::dump): Print type for VARYING nodes.
7225 (value_range_base::set): Add type to VARYING.
7226 (extract_range_from_multiplicative_op): Pass type to set_varying.
7227 (extract_range_from_binary_expr): Same.
7228 (value_range_base::intersect_helper): Same.
7229 (value_range_base::union_helper): Same.
7230 (value_range_base::normalize_symbolics): Same.
7231 (determine_value_range_1): Same.
7232 * tree-vrp.h (class value_range_base): Add type to set_varying.
7233 Add prototype for dump(void).
7234 Add prototype for supports_type_p.
7235 (class value_range): Add type to set_varying.
7236 Add prototype for dump(void).
7237 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7238 set_varying.
7239 (vr_values::get_lattice_entry): Set varying even if propagation
7240 finished.
7241 Pass type to set_varying.
7242 (vr_values::get_value_range): Remove vr_const_varying.
7243 Reallocate the lattice if needed.
7244 (vr_values::update_value_range): Pass type to set_varying.
7245 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7246 (vr_values::extract_range_from_binary_expr): Same.
7247 (vr_values::extract_range_from_unary_expr): Same.
7248 (vr_values::extract_range_from_cond_expr): Same.
7249 (vr_values::check_for_binary_op_overflow): Same.
7250 (vr_values::extract_range_basic): Same.
7251 (vr_values::extract_range_from_assignment): Same.
7252 (vr_values::vr_values): Increase size of num_vr_values.
7253 (vr_values::extract_range_from_phi_node): Pass type to
7254 set_varying.
7255
7256 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7257
7258 PR target/90878
7259 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7260 for costs of hard register moves.
7261 (ix86_register_move_cost): Likewise.
7262 * config/i386/i386.h (processor_costs): Move costs of hard
7263 register moves to hard_register. Add int_load, int_store,
7264 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7265 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7266 for costs of RTL expressions.
7267 * config/i386/x86-tune-costs.h: Move costs of hard register
7268 moves to hard_register. Duplicate int_load, int_store,
7269 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7270 sse_load, sse_store for costs of RTL expressions.
7271
7272 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7273
7274 * target.def (setup_incoming_vararg_bounds): Remove.
7275 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7276 * doc/tm.texi: Regenerate.
7277 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7278 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7279 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7280 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7281
7282 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7283
7284 MSP430: Fix lines over 80 characters long in
7285 config/msp430/*.{c,h} files
7286
7287 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7288 specifier in string.
7289 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7290 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7291 redundant old comment.
7292 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7293 Split line more than 80 characters long.
7294 * config/msp430/msp430.c (msp430_option_override): Likewise.
7295 (msp430_return_in_memory): Likewise.
7296 (msp430_gimplify_va_arg_expr): Likewise.
7297 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7298 (msp430_legitimate_constant): Likewise.
7299 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7300 (msp430_attr): Likewise.
7301 (msp430_data_attr): Likewise.
7302 (msp430_start_function): Likewise.
7303 (gen_prefix): Likewise.
7304 (msp430_init_sections): Likewise.
7305 (msp430_select_section): Likewise.
7306 (msp430_function_section): Likewise.
7307 (msp430_unique_section): Likewise.
7308 (msp430_output_aligned_decl_common): Likewise.
7309 (msp430_do_not_relax_short_jumps): Likewise.
7310 (msp430_init_builtins): Likewise.
7311 (msp430_expand_delay_cycles): Likewise.
7312 (msp430_expand_prologue): Likewise.
7313 (msp430_expand_epilogue): Likewise.
7314 (msp430_expand_helper): Likewise.
7315 (msp430_split_movsi): Likewise.
7316 (msp430_print_operand): Likewise.
7317 (msp430_return_addr_rtx): Likewise.
7318 (msp430x_extendhisi): Likewise.
7319 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7320 (ASM_SPEC): Likewise.
7321 Remove very obvious comments.
7322 (LIB_SPEC): Split line more than 80 characters long.
7323 (EH_RETURN_HANDLER_RTX): Likewise.
7324 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7325
7326 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7327
7328 MSP430: Fix whitespace errors and incorrect indentation in
7329 config/msp430/*.{c,h} files
7330
7331 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7332 (msp430_select_hwmult_lib): Likewise.
7333 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7334 (msp430_extract_mcu_data): Likewise.
7335 (struct t_msp430_mcu_data): Likewise.
7336 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7337 before left square bracket.
7338 (msp430_option_override): Fix indentation.
7339 (msp430_hard_regno_nregs_with_padding): Likewise.
7340 (msp430_initial_elimination_offset): Likewise.
7341 (msp430_special_register_convention_p): Remove whitespace before left
7342 square bracket and after exclamation mark.
7343 (msp430_evaluate_arg): Likewise.
7344 (msp430_callee_copies): Fix indentation.
7345 (msp430_gimplify_va_arg_expr): Likewise.
7346 (msp430_function_arg_advance): Remove whitespace before left square
7347 bracket.
7348 (reg_ok_for_addr): Likewise.
7349 (msp430_preserve_reg_p): Likewise.
7350 (msp430_compute_frame_info): Likewise.
7351 (msp430_asm_output_addr_const_extra): Add space between function name
7352 and open parenthesis.
7353 (has_section_name): Fix indentation.
7354 (msp430_attr): Remove trailing whitespace.
7355 (msp430_section_attr): Likewise.
7356 (msp430_data_attr): Likewise.
7357 (struct msp430_attribute_table): Fix comment and whitespace.
7358 (msp430_start_function): Remove whitespace before left square bracket.
7359 Add space between function name and open parenthesis.
7360 (msp430_select_section): Remove trailing whitespace.
7361 (msp430_section_type_flags): Remove trailing whitespace.
7362 (msp430_unique_section): Remove space before closing parenthesis.
7363 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7364 (msp430_builtins): Remove whitespace before left square bracket.
7365 (msp430_init_builtins): Fix indentation.
7366 (msp430_expand_prologue): Remove whitespace before left square bracket.
7367 Remove space before closing parenthesis.
7368 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7369 (msp430_split_movsi): Remove space before closing parenthesis.
7370 (helper_function_name_mappings): Fix indentation.
7371 (msp430_use_f5_series_hwmult): Fix whitespace.
7372 (use_32bit_hwmult): Likewise.
7373 (msp430_no_hwmult): Likewise.
7374 (msp430_output_labelref): Remove whitespace before left square bracket.
7375 (msp430_print_operand_raw): Likewise.
7376 (msp430_print_operand_addr): Likewise.
7377 (msp430_print_operand): Add two spaces after '.' in comment.
7378 Fix trailing whitespace.
7379 (msp430x_extendhisi): Fix indentation.
7380 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7381 tab.
7382 (PC_REGNUM): Likewise.
7383 (STACK_POINTER_REGNUM): Likewise.
7384 (CC_REGNUM): Likewise.
7385
7386 2019-08-15 Richard Biener <rguenther@suse.de>
7387
7388 PR target/91454
7389 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7390 helper.
7391 (general_scalar_chain::make_vector_copies): Use it.
7392
7393 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7394
7395 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7396
7397 2019-08-15 Martin Liska <mliska@suse.cz>
7398
7399 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7400 operators with no arguments.
7401 (eliminate_unnecessary_stmts): Likewise here.
7402
7403 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7404
7405 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7406 <case COMPARE>: Revert 2019-08-14 change.
7407 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7408 for (TARGET_64BIT || mode != DImode).
7409
7410 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7411
7412 * tree-vrp.c (value_range_base::set): Merge in code from
7413 value_range_base::set_and_canonicalize.
7414 Enforce canonicalization at set time.
7415 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7416 (value_range_base::set_undefined): Inline call to set().
7417 (value_range_base::set_varying): Same.
7418 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7419 (vrp_val_max): New argument handle_pointers.
7420 (vrp_val_min): Same.
7421 (ranges_from_anti_range): Same.
7422 (extract_range_into_wide_ints): Use tree argument instead of sign
7423 and precision.
7424 (extract_range_from_multiplicative_op): Take in tree type instead
7425 of precision and sign. Adapt function for canonicalized ranges.
7426 (extract_range_from_binary_expr): Pass type to
7427 extract_range_from_multiplicative_op.
7428 Adapt for canonicalized ranges.
7429 (extract_range_from_unary_expr): Same.
7430 (value_range_base::intersect_helper): Adjust for canonicalized
7431 ranges.
7432 (value_range_base::union_helper): Same.
7433 (value_range_base::normalize_symbolics): New.
7434 * tree-vrp.h (class value_range_base): Remove
7435 set_and_canonicalize.
7436 New prototype for normalize_symbolics.
7437 (class value_range): Remove set_and_canonicalize.
7438 (vrp_val_min): Adjust prototype.
7439 (vrp_val_max): Same.
7440 * vr-values.c
7441 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7442 instead of set_and_canonicalize.
7443
7444 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7445
7446 PR middle-end/91444
7447 * tree-vect-stmts.c (vectorizable_call): Check that the function
7448 is a BUILT_IN_MD function before passing it to
7449 targetm.vectorize.builtin_md_vectorized_function.
7450
7451 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7452
7453 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7454 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7455 (aarch64_select_early_remat_modes): Use it.
7456
7457 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7458
7459 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7460 16 for SVE predicates even if they are fixed-length.
7461
7462 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7463
7464 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7465 operand order match the MOV /Z alias.
7466
7467 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7468
7469 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7470 the vector pattern as an aarch64_svpattern argument. Update the
7471 overloaded caller accordingly.
7472 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7473 (aarch64_output_sve_vector_inc_dec): Likewise.
7474
7475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7476
7477 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7478 multiplication case, try to compute VG * (lowest set bit) directly
7479 rather than always basing the multiplication on VG. Use
7480 expand_mult for the multiplication if we can.
7481
7482 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7483
7484 * config/aarch64/aarch64-protos.h
7485 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7486 (aarch64_sve_inc_dec_immediate_p): Rename to...
7487 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7488 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7489 (aarch64_output_sve_scalar_inc_dec): Declare.
7490 (aarch64_output_sve_inc_dec_immediate): Rename to...
7491 (aarch64_output_sve_vector_inc_dec): ...this.
7492 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7493 (aarch64_output_sve_scalar_inc_dec): New functions.
7494 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7495 arguments. Only handle true ADDVL and ADDPL instructions;
7496 don't emit an INC or DEC.
7497 (aarch64_sve_inc_dec_immediate_p): Rename to...
7498 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7499 (aarch64_output_sve_inc_dec_immediate): Rename to...
7500 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7501 aarch64_sve_vector_inc_dec_immediate_p.
7502 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7503 (aarch64_sve_plus_immediate): New predicates.
7504 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7505 rather than aarch64_sve_addvl_addpl_immediate.
7506 (aarch64_sve_inc_dec_immediate): Rename to...
7507 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7508 aarch64_sve_vector_inc_dec_immediate_p.
7509 (aarch64_sve_add_operand): Update accordingly.
7510 * config/aarch64/constraints.md (Uai): New constraint.
7511 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7512 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7513 operand into a register if it satisfies aarch64_sve_plus_immediate.
7514 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7515 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7516 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7517 aarch64_output_sve_vector_inc_dec instead of
7518 aarch64_output_sve_inc_dec_immediate.
7519
7520 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7521
7522 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7523 (UNSPEC_REVW): New constants.
7524 (elem_bits): New mode attribute.
7525 (SVE_INT_UNARY): New int iterator.
7526 (optab): Handle UNSPEC_REV[BHW].
7527 (sve_int_op): New int attribute.
7528 (min_elem_bits): Handle VNx16QI and the predicate modes.
7529 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7530 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7531 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7532 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7533 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7534 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7535 unspecs based on the total width of the reversed data.
7536 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7537 reinterpret followed by a subreg on big-endian targets.
7538
7539 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7540 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7541
7542 * config/aarch64/aarch64-sve.md
7543 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7544 alternatives in which one of the inputs is in the same register
7545 as the output.
7546
7547 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7548
7549 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7550 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7551
7552 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7553
7554 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7555 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7556
7557 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7558 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7559
7560 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7561 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7562 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7563
7564 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7565 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7566
7567 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7568 Add an alternative that uses reversed shifts.
7569
7570 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7571
7572 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7573 struct.
7574
7575 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7576
7577 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7578 a commutativity marker.
7579
7580 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7581 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7582
7583 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7584 (aarch64_prepare_sve_cond_int_fma): Declare.
7585 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7586 (aarch64_prepare_sve_int_fma): New functions.
7587 (aarch64_prepare_sve_cond_int_fma): Likewise.
7588 * config/aarch64/aarch64-sve.md
7589 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7590 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7591 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7592 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7593 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7594 (*madd<mode>): Rename to...
7595 (*fma<mode>4): ...this.
7596 (*msub<mode>): Rename to...
7597 (*fnma<mode>4): ...this.
7598
7599 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7600 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7601
7602 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7603 Print 2.0 naturally.
7604 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7605 * config/aarch64/predicates.md
7606 (aarch64_sve_float_negated_arith_immediate): New predicate,
7607 renamed from aarch64_sve_float_arith_with_sub_immediate.
7608 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7609 positive and negative constants.
7610 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7611 or an aarch64_sve_float_arith_with_sub_immediate.
7612 * config/aarch64/constraints.md (vsN): Use
7613 aarch64_sve_float_negated_arith_immediate.
7614 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7615 iterator.
7616 (sve_pred_fp_rhs2_immediate): New int attribute.
7617 * config/aarch64/aarch64-sve.md
7618 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7619 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7620 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7621 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7622 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7623 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7624
7625 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7626 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7627
7628 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7629 (*aarch64_cond_abd<SVE_F:mode>_3)
7630 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7631
7632 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7633 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7634
7635 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7636 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7637
7638 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7639 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7640
7641 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7642 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7643 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7644 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7645 optabs.
7646 * optabs.h (create_convert_operand_from): Expand comment.
7647 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7648 when mapping scalar rtxes to vector operands.
7649 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7650 ashiftrt and lshiftrt.
7651 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7652 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7653 (*cond_<optab><mode>_any_const): New patterns.
7654
7655 2019-08-15 Martin Liska <mliska@suse.cz>
7656
7657 PR ipa/91438
7658 * cgraph.c (cgraph_node::remove): When setting
7659 n->origin = NULL for all nested functions, reset
7660 also next_nested.
7661
7662 2019-08-15 Martin Liska <mliska@suse.cz>
7663
7664 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7665 and next_nested.
7666
7667 2019-08-15 Martin Liska <mliska@suse.cz>
7668
7669 PR ipa/91404
7670 * passes.c (order): Remove.
7671 (uid_hash_t): Likewise).
7672 (remove_cgraph_node_from_order): Remove from set
7673 of pointers (cgraph_node *).
7674 (insert_cgraph_node_to_order): New.
7675 (duplicate_cgraph_node_to_order): New.
7676 (do_per_function_toporder): Register all 3 cgraph hooks.
7677 Skip removed_nodes now as we know about all of them.
7678
7679 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7680
7681 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7682 <case E_V8QImode>: Use vector_set path for
7683 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7684 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7685 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7686
7687 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7688
7689 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7690
7691 2019-08-14 Martin Sebor <msebor@redhat.com>
7692
7693 PR tree-optimization/91294
7694 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7695 source length as exact.
7696
7697 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7698
7699 * doc/extend.texi: Add "noinit" attribute documentation.
7700 * doc/sourcebuild.texi: Add noinit effective target documentation.
7701 * varasm.c (default_section_type_flags): Add support for "noinit"
7702 section.
7703 (default_elf_select_section): Add support for "noinit" attribute.
7704 * config/msp430/msp430.c (msp430_attribute_table): Remove
7705 "noinit" entry.
7706
7707 2019-08-14 Richard Biener <rguenther@suse.de>
7708 Uroš Bizjak <ubizjak@gmail.com>
7709
7710 PR target/91154
7711 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7712 mode arguments.
7713 (scalar_chain::smode): New member.
7714 (scalar_chain::vmode): Likewise.
7715 (dimode_scalar_chain): Rename to...
7716 (general_scalar_chain): ... this.
7717 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7718 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7719 base with TImode and V1TImode.
7720 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7721 (general_scalar_chain::vector_const_cost): Adjust for SImode
7722 chains.
7723 (general_scalar_chain::compute_convert_gain): Likewise. Add
7724 {S,U}{MIN,MAX} support.
7725 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7726 (general_scalar_chain::make_vector_copies): Likewise. Handle
7727 non-DImode chains appropriately.
7728 (general_scalar_chain::convert_reg): Likewise.
7729 (general_scalar_chain::convert_op): Likewise.
7730 (general_scalar_chain::convert_insn): Likewise. Add
7731 fatal_insn_not_found if the result is not recognized.
7732 (convertible_comparison_p): Pass in the scalar mode and use that.
7733 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7734 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7735 (scalar_to_vector_candidate_p): Remove by inlining into single
7736 caller.
7737 (general_remove_non_convertible_regs): Rename from
7738 dimode_remove_non_convertible_regs.
7739 (remove_non_convertible_regs): Remove by inlining into single caller.
7740 (convert_scalars_to_vector): Handle SImode and DImode chains
7741 in addition to TImode chains.
7742 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7743 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7744 (*<maxmin>di3_doubleword): Likewise.
7745
7746 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7747 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7748
7749 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7750 (*cond_bic<mode>_any): New patterns.
7751
7752 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7753
7754 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7755 take the equivalent mask, as well as a bit count.
7756 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7757 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7758 (aarch64_sve_pred_and_operand): New predicates.
7759 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7760 code attribute.
7761 * config/aarch64/aarch64-sve.md
7762 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7763 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7764
7765 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7766
7767 * config/aarch64/aarch64-sve.md
7768 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7769 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7770 New patterns.
7771
7772 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7773 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7774
7775 * config/aarch64/aarch64-sve.md
7776 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7777 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7778
7779 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7780 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7781
7782 * config/aarch64/aarch64-sve.md
7783 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7784 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7785
7786 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7787
7788 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7789 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7790 New pattern.
7791
7792 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7793 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7794
7795 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7796
7797 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7798 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7799
7800 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7801 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7802 (aarch64_print_operand): Add support for %I.
7803 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7804 Bitcast floating-point constants to the corresponding integer constant.
7805 (aarch64_float_const_representable_p): Handle vectors as well
7806 as scalars.
7807 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7808 for the new vcond_mask_<mode><vpred> expander.
7809 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7810 test aarch64_float_const_representable_p.
7811 (aarch64_sve_reg_or_dup_imm): New predicate.
7812 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7813 gen_vcond_mask_<mode><vpred> instead of
7814 gen_aarch64_sve_dup<mode>_const.
7815 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7816 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7817 for operands 1 and 2 respectively. Force operand 2 into a
7818 register if operand 1 is a register. Fold old define_insn...
7819 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7820 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7821 floating-point constants that can be moved as integers. Add
7822 alternatives for MOV /M and FMOV /M.
7823 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7824 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7825 1 and 2 respectively.
7826 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7827 as scalars.
7828 (vss): New constraint.
7829
7830 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7831
7832 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7833 (aarch64_sve_float_maxmin_operand): New predicates.
7834 * config/aarch64/constraints.md (vsB): New constraint.
7835 (vsM): Fix typo.
7836 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7837 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7838 UNSPEC_COND_FMINNM.
7839 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7840 Use aarch64_sve_float_maxmin_operand for operand 2.
7841 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7842 Add alternatives for the constant forms.
7843
7844 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7845
7846 * config/aarch64/constraints.md (vsb): New constraint.
7847 (vsm): Generalize description.
7848 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7849 iterator.
7850 (sve_imm_con): Handle smax, smin, umax and umin.
7851 (sve_imm_prefix): New code attribute.
7852 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7853 (aarch64_sve_vsb_operand): New predicates.
7854 (aarch64_sve_mul_immediate): Rename to...
7855 (aarch64_sve_vsm_immediate): ...this.
7856 (aarch64_sve_mul_operand): Rename to...
7857 (aarch64_sve_vsm_operand): ...this.
7858 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7859 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7860 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7861 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7862 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7863 add movprfx support for the immediate alternatives.
7864 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7865 of the above.
7866 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7867 for operand 3.
7868
7869 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7870
7871 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7872 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7873 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7874
7875 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7876
7877 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7878 (optab, sve_int_op): Handle them.
7879 * config/aarch64/aarch64-sve.md: Expand comment.
7880
7881 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7882
7883 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7884 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7885 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7886
7887 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7888
7889 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7890 (aarch64_expand_sve_const_pred_trn): New functions.
7891 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7892 use the above functions when the parameter is true.
7893 (aarch64_expand_sve_const_pred): Update call accordingly.
7894 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7895 Rename to...
7896 (@aarch64_sve_<perm_insn><mode>): ...this.
7897
7898 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7899
7900 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7901 Declare.
7902 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7903 (aarch64_sve_emit_int_cmp): New functions.
7904 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7905 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7906 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7907 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7908 (UNSPEC_PRED_Z): New unspec.
7909 (set_clobber_cc_nzc): Delete.
7910 * config/aarch64/aarch64-sve.md: Add a block comment about
7911 UNSPEC_PRED_Z.
7912 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7913 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7914 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7915 UNSPEC_MERGE_PTRUE.
7916 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7917 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7918 check for compatible predicates.
7919 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7920 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7921 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7922 comparisons above.
7923
7924 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7925
7926 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7927 * config/aarch64/aarch64-sve.md: Add a section describing it.
7928 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7929 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7930 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7931 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7932 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7933 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7934 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7935 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7936 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7937 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7938 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7939 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7940 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7941 (aarch64_evpc_rev_local): Update accordingly.
7942
7943 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7944
7945 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7946 iterators.
7947 (SVE_BHSI, SVE_SDI): Tweak comment.
7948 (SVE_HSDI): Likewise. Fix definition.
7949 (SVE_SDF): New mode iterator.
7950 (elem_bits): New mode attribute.
7951 (SVE_COND_FCVT): New int iterator.
7952 * config/aarch64/aarch64-sve.md
7953 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7954 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7955 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7956 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7957 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7958 ...these new patterns.
7959 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7960 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7961 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7962 Merge into...
7963 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7964 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7965 ...these new patterns.
7966 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7967 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7968 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7969 ...this new pattern.
7970 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7971 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7972 ...this new pattern.
7973 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7974
7975 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7976
7977 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7978 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7979 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7980 unspecs.
7981 (optab, su): Handle them.
7982 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7983 * config/aarch64/aarch64-sve.md
7984 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7985 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7986 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7987 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7988 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7989 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7990 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7991 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7992 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7993 FIXUORS.
7994 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7995 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7996 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7997 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7998 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7999 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8000 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8001 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8002 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8003 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8004 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8005 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8006 of UNSPEC_FLOAT_CONVERT.
8007 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8008 aarch64_sve_extend<mode><Vwide>2.
8009
8010 2019-08-14 Richard Biener <rguenther@suse.de>
8011
8012 PR target/91154
8013 * config/i386/i386-features.c
8014 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8015 individual instruction gain. Fix reg-reg copy GRP cost. Use
8016 ix86_cost->sse_op for vector instruction costs.
8017
8018 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8019
8020 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8021 (cmp_op): Handle it.
8022 (SVE_COND_FP_CMP): Rename to...
8023 (SVE_COND_FP_CMP_I0): ...this.
8024 (SVE_FP_CMP): Remove.
8025 * config/aarch64/aarch64-sve.md
8026 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8027 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8028 using unspecs to represent the comparison.
8029 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8030 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8031 accordingly.
8032 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8033 (aarch64_unspec_cond_code): Move after integer code. Handle
8034 UNORDERED.
8035 (aarch64_emit_sve_predicated_cond): Replace with...
8036 (aarch64_emit_sve_fp_cond): ...this new function.
8037 (aarch64_emit_sve_or_conds): Replace with...
8038 (aarch64_emit_sve_or_fp_conds): ...this new function.
8039 (aarch64_emit_sve_inverted_cond): Replace with...
8040 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8041 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8042
8043 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8044
8045 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8046 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8047 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8048 SVE_HSD instead of SVE_SD.
8049
8050 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8051 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8052
8053 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8054 iterator.
8055 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8056 attributes.
8057 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8058 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8059 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8060 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8061 (*div<SVE_F:mode>3): Generalize to...
8062 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8063
8064 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8065 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8066
8067 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8068 constants.
8069 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8070 predicate.
8071 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8072 Declare.
8073 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8074 function.
8075 * config/aarch64/aarch64-sve.md: Add a block comment about the
8076 handling of predicated FP operations.
8077 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8078 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8079 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8080 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8081 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8082 operand.
8083 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8084 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8085 operand.
8086 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8087 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8088 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8089 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8090 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8091 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8092 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8093 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8094 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8095 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8096 strictness operands. Use aarch64_sve_pred_dominates_p to check
8097 whether the predicate on the conditional operation is suitable
8098 for merging. Split patterns into the canonical equal-predicate form.
8099 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8100 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8101
8102 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8103 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8104
8105 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8106 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8107 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8108 rtx codes.
8109 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8110 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8111 unspecs.
8112
8113 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8114 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8115
8116 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8117 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8118 actually has, rather than relying on REG_EQUAL notes.
8119 Make the insn operand order match the SVE operand order.
8120 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8121 the SVE operand order.
8122
8123 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8124
8125 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8126 (aarch64_emit_set_immediate): Likewise.
8127 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8128 (aarch64_pfalse_reg): Likewise.
8129 (aarch64_convert_sve_data_to_pred): New function.
8130 (aarch64_sve_move_pred_via_while): Take an optional target register
8131 and the required register mode.
8132 (aarch64_expand_sve_const_pred_1): New function.
8133 (aarch64_expand_sve_const_pred): Likewise.
8134 (aarch64_expand_mov_immediate): Build an all-true predicate
8135 if the significant bits of the immediate are all true. Use
8136 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8137 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8138 before register allocation.
8139 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8140 a VNx16BI PTRUE when splitting the memory alternative.
8141 (vec_duplicate<mode>): Update accordingly.
8142 (*pred_cmp<cmp_op><mode>): Rename to...
8143 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8144
8145 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8146
8147 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8148 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8149 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8150 (UNSPEC_PTEST): New unspec.
8151 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8152 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8153 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8154 * config/aarch64/aarch64-sve.md: Add a new section describing the
8155 handling of UNSPEC_PTEST.
8156 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8157 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8158 (ptest_ptrue<mode>): Replace with...
8159 (aarch64_ptest<mode>): ...this new pattern.
8160 (cbranch<mode>4): Update after above changes.
8161 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8162 UNSPEC_PTEST_PTRUE.
8163 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8164 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8165 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8166
8167 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8168
8169 PR lto/91287
8170 * builtins.c (builtin_with_linkage_p): New function.
8171 * builtins.h (builtin_with_linkage_p): New function.
8172 * symtab.c (write_symbol): Remove redundant assert.
8173 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8174 Remove FIXME and use builtin_with_linkage_p.
8175
8176 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8177
8178 PR middle-end/91421
8179 * tree-core.h (function_decl::function_code): Change type to
8180 unsigned int.
8181 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8182 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8183 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8184 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8185 is BUILT_IN_NORMAL.
8186 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8187 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8188 (fndecl_built_in_p): Change the type of the "name" argument to
8189 unsigned int.
8190 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8191 after check for DECL_BUILT_IN_CLASS.
8192 * cgraphclones.c (build_function_decl_skip_args): Use
8193 set_decl_built_in_function.
8194 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8195 * ipa-split.c (split_function): Likewise.
8196 * langhooks.c (add_builtin_function_common): Likewise.
8197 * omp-simd-clone.c (simd_clone_create): Likewise.
8198 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8199 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8200 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8201 DECL_FUNCTION_CODE.
8202 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8203 instead of DECL_FUNCTION_CODE.
8204 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8205 instead of DECL_FUNCTION_CODE.
8206 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8207 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8208 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8209 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8210 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8211 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8212 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8213 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8214 (alpha_gimple_fold_builtin): Likewise.
8215 * config/arc/arc.c (arc_expand_builtin): Likewise.
8216 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8217 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8218 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8219 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8220 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8221 * config/frv/frv.c (frv_expand_builtin): Likewise.
8222 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8223 (gcn_expand_builtin): Likewise.
8224 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8225 (fold_builtin_cpu): Likewise.
8226 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8227 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8228 (ix86_gimple_fold_builtin): Likewise.
8229 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8230 (ia64_expand_builtin): Likewise.
8231 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8232 * config/mips/mips.c (mips_expand_builtin): Likewise.
8233 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8234 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8235 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8236 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8237 * config/pa/pa.c (pa_expand_builtin): Likewise.
8238 * config/pru/pru.c (pru_expand_builtin): Likewise.
8239 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8241 Likewise.
8242 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8243 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8244 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8245 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8246 (rs6000_builtin_reciprocal): Likewise.
8247 * config/rx/rx.c (rx_expand_builtin): Likewise.
8248 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8249 * config/s390/s390.c (s390_expand_builtin): Likewise.
8250 * config/sh/sh.c (sh_expand_builtin): Likewise.
8251 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8252 (sparc_fold_builtin): Likewise.
8253 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8254 * config/spu/spu.c (spu_expand_builtin): Likewise.
8255 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8256 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8257 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8258 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8259 (xtensa_expand_builtin): Likewise.
8260
8261 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8262
8263 PR middle-end/91421
8264 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8265 before the DECL_FUNCTION_CODE.
8266 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8267 to check for a BUILT_IN_ALLOCA call.
8268 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8269 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8270 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8271 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8272 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8273 for BUILT_IN_NORMAL functions.
8274 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8275 test for BUILT_IN_TM_ABORT.
8276 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8277 to check for a BUILT_IN_STACK_RESTORE call.
8278 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8279 * tree-ssa-threadedge.c
8280 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8281 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8282 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8283 test for a BUILT_IN_NORMAL call instead of a negative test for
8284 an internal function call.
8285
8286 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8287
8288 * tree.h (build_vector_a_then_b): Declare.
8289 * tree.c (build_vector_a_then_b): New function.
8290 * fold-const-call.c (fold_while_ult): Likewise.
8291 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8292 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8293 (aarch64_svpattern): New enum.
8294 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8295 constants through aarch64_expand_mov_immediate.
8296 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8297 than general_operand as the predicate for operand 1.
8298 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8299 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8300 insn_type.
8301 (simd_immediate_info::simd_immediate_info): New overload that
8302 takes a scalar_int_mode and an svpattern.
8303 (simd_immediate_info::u): Add a "pattern" field.
8304 (svpattern_token): New function.
8305 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8306 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8307 (aarch64_sve_move_pred_via_while): New functions.
8308 (aarch64_expand_mov_immediate): Try using
8309 aarch64_sve_move_pred_via_while for predicates that contain N ones
8310 followed by M zeros but that do not correspond to a VLnnn pattern.
8311 (aarch64_sve_pred_valid_immediate): New function.
8312 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8313 with PTRUE and PFALSE.
8314 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8315 forms.
8316
8317 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8318
8319 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8320 flag.
8321 (darwin_override_options): Likewise.
8322 * config/darwin.h: Likewise.
8323 * config/darwin.opt: Likewise.
8324 * config/i386/i386.c (output_pic_addr_const): Likewise.
8325 * config/rs6000/darwin.h: Likewise.
8326 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8327 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8328 ... this TARGET_MACHO_SYMBOL_STUBS.
8329 (FUNCTION_PROFILER):Likewise.
8330 * config/i386/i386.h: Likewise.
8331
8332 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8333
8334 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8335 <case E_V2SImode>: Use vec_extr path for
8336 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8337 <case E_V8QImode>: Ditto.
8338 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8339 Use SWI48 mode iterator. Use %k to output operand 0.
8340 (*mmx_pextrw): New insn pattern.
8341 (*mmx_pextrb): Ditto.
8342 (*mmx_pextrb_zext): Ditto.
8343
8344 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8345
8346 * target.def (libc_has_function, libc_has_fast_function): Improve
8347 documentation strings.
8348 * doc/tm.texi: Regenerate.
8349
8350 2019-08-13 Caroline Tice <cmtice@google.com>
8351
8352 PR other/91396
8353 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8354 vtv_end.o or vtv_end_preinit.o files if !static.
8355
8356 2019-08-13 Olivier Hainque <hainque@adacore.com>
8357
8358 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8359
8360 2019-08-13 Olivier Hainque <hainque@adacore.com>
8361
8362 * rtlanal.c (tablejump_casesi_pattern): New function, to
8363 determine if a tablejump insn is a casesi dispatcher. Extracted
8364 from patch_jump_insn.
8365 * rtl.h (tablejump_casesi_pattern): Declare.
8366 * cfgrtl.c (patch_jump_insn): Use it.
8367 * dwarf2cfi.c (create_trace_edges): Use it.
8368
8369 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8370
8371 PR target/81800
8372 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8373 operand is larger than a long int.
8374
8375 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8376
8377 * machmode.h (opt_mode::else_mode): New function.
8378 (opt_mode::else_blk): Use it.
8379 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8380 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8381 (aarch64_gen_stepped_int_parallel): Likewise.
8382 (aarch64_stepped_int_parallel_p): Likewise.
8383 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8384 argument.
8385 * config/aarch64/aarch64.c
8386 (aarch64_expand_sve_widened_duplicate): Delete.
8387 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8388 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8389 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8390 argument. Use early returns in the !CONST_INT_P handling.
8391 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8392 than handling some inline.
8393 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8394 from...
8395 (aarch64_simd_container_mode): ...here.
8396 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8397 (aarch64_sve_ld1rq_operand_p): New functions.
8398 * config/aarch64/predicates.md (descending_int_parallel)
8399 (aarch64_sve_ld1rq_operand): New predicates.
8400 * config/aarch64/constraints.md (UtQ): New constraint.
8401 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8402 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8403 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8404 (@aarch64_sve_reinterpret<mode>): New expander.
8405 (*aarch64_sve_reinterpret<mode>): New pattern.
8406 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8407 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8408 (*sve_ld1rq<Vesize>): Replace with...
8409 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8410
8411 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8412
8413 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8414 16:12.
8415
8416 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8417
8418 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8419 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8420 (msp430_check_path_for_devices): New.
8421 (parse_devices_csv_1): New.
8422 (parse_devices_csv): New.
8423 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8424 MCU data in devices.csv before using the hard-coded data.
8425 Warn if devices.csv isn't found and the MCU wasn't found in the
8426 hard-coded data either.
8427 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8428 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8429 Search for devices.csv on -I and -L paths.
8430 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8431 msp430_set_driver_var.
8432 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8433 -mdevices-csv-loc=.
8434 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8435 searched for devices.csv.
8436 (mwarn-devices-csv): Document option.
8437
8438 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8439
8440 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8441 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8442 Use a single Dn alternative instead of separate Dz and Dm
8443 alternatives. Use aarch64_output_sve_move_immediate.
8444 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8445 function.
8446 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8447 for predicates too.
8448 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8449 (aarch64_output_ptrue): Delete.
8450
8451 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8452
8453 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8454 INDEX.
8455 (simd_immediate_info::value, simd_immediate_info::step)
8456 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8457 with...
8458 (simd_immediate_info::u): ...this new union.
8459 (simd_immediate_info::simd_immediate_info): Update accordingly.
8460 (aarch64_output_simd_mov_immediate): Likewise.
8461 (aarch64_output_sve_mov_immediate): Likewise.
8462
8463 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8464
8465 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8466 extra_gcc_objs.
8467 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8468 (msp430_select_cpu): New spec function.
8469 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8470 MCU data.
8471 * config/msp430/msp430-devices.c: New file.
8472 * config/msp430/msp430-devices.h: New file.
8473 * config/msp430/msp430.c: Remove msp430_mcu_data.
8474 (msp430_option_override): Use msp430_extract_mcu_data to extract
8475 MCU data.
8476 (msp430_use_f5_series_hwmult): Likewise.
8477 (use_32bit_hwmult): Likewise.
8478 (msp430_no_hwmult): Likewise.
8479 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8480 assembler.
8481 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8482 and -mcpu option.
8483 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8484 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8485 Remove hard-coded MCU multilib data.
8486
8487 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8488
8489 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8490 based on the mode instead of testing properties of it.
8491
8492 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8493
8494 * doc/md.texi: Document the x and y constraints for AArch64.
8495 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8496 (FP_LO8_REGS): New reg_class.
8497 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8498 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8499 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8500 * config/aarch64/predicates.md (aarch64_simd_register): Use
8501 FP_REGNUM_P instead of checking the classes manually.
8502 * config/aarch64/constraints.md (y): New constraint.
8503
8504 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8505
8506 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8507 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8508 * config/aarch64/aarch64-simd.md
8509 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8510 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8511 from the asm template.
8512 * config/aarch64/aarch64-sve.md
8513 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8514 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8515 from the asm template.
8516 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8517 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8518 from the asm template.
8519 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8520
8521 2019-08-13 Martin Liska <mliska@suse.cz>
8522
8523 * value-prof.c (gimple_ic_transform): Add new line.
8524 Print details with MSG_NOTE.
8525
8526 2019-08-13 Martin Liska <mliska@suse.cz>
8527
8528 * doc/invoke.texi: Document automatic detection of jobserver.
8529 * lto-wrapper.c (run_gcc): Detect jobserver always.
8530
8531 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8532
8533 * config/i386/i386-expand.c (ix86_expand_vector_set)
8534 <case E_V2SImode>: Use vec_merge path for
8535 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8536 <case E_V8QImode>: Ditto.
8537 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8538 (*mmx_pinsrb): Ditto.
8539
8540 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8541
8542 PR target/83250
8543 PR target/91340
8544 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8545 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8546 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8547 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8548 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8549
8550 2019-08-12 Richard Biener <rguenther@suse.de>
8551
8552 PR lto/91375
8553 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8554 flag_devirtualize.
8555
8556 2019-08-12 Richard Biener <rguenther@suse.de>
8557
8558 PR driver/91130
8559 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8560 lang_mask option, always use CL_DRIVER.
8561 (get_options_from_collect_gcc_options): Adjust.
8562 (find_and_merge_options): Likewise.
8563 (run_gcc): Likewise.
8564
8565 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8566
8567 * ipa-predicate.c (add_condition): Restore inverted test.
8568
8569 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8570
8571 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8572 (enum omp_clause_device_type_kind): New enum.
8573 (struct tree_omp_clause): Add subcode.device_type_kind.
8574 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8575 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8576 for device_type clause.
8577 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8578 * tree-pretty-print.c (dump_omp_clause): Likewise.
8579
8580 PR target/91408
8581 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8582 vector_operand.
8583
8584 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8585
8586 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8587 handling spilled pseudos.
8588
8589 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8590
8591 PR target/91386
8592 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8593 to preserve the contents of the original insns.
8594
8595 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8596
8597 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8598 (addsi3_compare_op2): Likewise.
8599
8600 2019-08-09 Martin Liska <mliska@suse.cz>
8601
8602 * alias.c (alias_ptr_types_compatible_p): Strengten
8603 type comparison in LTO mode.
8604
8605 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8606
8607 PR middle-end/90313
8608 * tree-tailcall.c (find_tail_calls): Reject calls that might
8609 read from an escaped RESULT_DECL.
8610
8611 2019-08-09 Martin Liska <mliska@suse.cz>
8612
8613 * doc/invoke.texi: Document the option value.
8614 * lto-wrapper.c (run_gcc): Set auto_parallel
8615 only with -flto=auto.
8616
8617 2019-08-09 Martin Liska <mliska@suse.cz>
8618
8619 * opts.c (common_handle_option): Error for an invalid argument
8620 to -flto=.
8621
8622 2019-08-09 Martin Liska <mliska@suse.cz>
8623
8624 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8625 use dump_printf to report optimization.
8626 (sem_variable::merge): Likwise.
8627 (sem_item_optimizer::merge_classes): Use dump_printf to report
8628 ICF hits.
8629
8630 2019-08-09 Martin Liska <mliska@suse.cz>
8631
8632 * value-prof.c (gimple_divmod_fixed_value_transform):
8633 Use dump_printf_loc.
8634 (gimple_mod_pow2_value_transform): Likewise.
8635 (gimple_mod_subtract_transform): Likewise.
8636 (init_node_map): Likewise.
8637 (gimple_ic_transform): Likewise.
8638 (gimple_stringops_transform): Likewise.
8639
8640 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8641
8642 * doc/extend.texi: Add const qualifier to ld intrinsics.
8643
8644 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8645
8646 * config/rs6000/dfp.md (D64_D128): Rename to ...
8647 (DDTD): ... this, throughout.
8648 (dfp_suffix): Rename to ...
8649 (q): ... this, throughout.
8650
8651 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8652
8653 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8654 (dfp_suffix): Ditto.
8655 (adddd3, addtd3): Merge to ...
8656 (add<mode>3 for D64_D128): ... this.
8657 (subdd3, subtd3): Merge to ...
8658 (sub<mode>3 for D64_D128): ... this.
8659 (muldd3, multd3): Merge to ...
8660 (mul<mode>3 for D64_D128): ... this.
8661 (divdd3, divtd3): Merge to ...
8662 (div<mode>3 for D64_D128): ... this.
8663 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8664 (*cmp<mode>_internal1 for D64_D128): ... this.
8665 (ftruncdd2, ftrunctd2): Merge to ...
8666 (ftrunc<mode>2 for D64_D128): ... this.
8667 (fixdddi2, fixtddi2): Merge to ...
8668 (fix<mode>di2 for D64_D128): ... this.
8669
8670 2019-08-08 Jim Wilson <jimw@sifive.com>
8671
8672 PR target/91229
8673 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8674 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8675 Pass into recursive call.
8676 (riscv_flatten_aggregate_argument): New arg. Pass to
8677 riscv_flatten_aggregate_field.
8678 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8679 riscv_flatten_aggregate_argument twice, with false and true as last
8680 arg. Process result twice. Compare results and warn if different.
8681 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8682
8683 2019-08-08 Martin Liska <mliska@suse.cz>
8684
8685 PR bootstrap/91352
8686 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8687 * lto-wrapper.c (jobserver_active_p): Likewise.
8688
8689 2019-08-08 Martin Liska <mliska@suse.cz>
8690
8691 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8692 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8693 (create_version_clone_with_body): Likewise.
8694
8695 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8696
8697 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8698 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8699 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8700 GOVD_EXPLICIT flags.
8701 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8702 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8703 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8704 call install_var_field with mask 11 instead of 3.
8705 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8706 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8707
8708 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8709
8710 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8711 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8712
8713 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8714
8715 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8716 MOVPRFX alternatives. Make the GPR alternatives more expensive
8717 than the FPR ones.
8718
8719 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8720
8721 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8722 Disparage the GPR alternative relative to the FPR one.
8723 Fix handling of 8-bit and 16-bit FPR values.
8724
8725 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8726
8727 * config/aarch64/iterators.md (BITWISEV): Delete.
8728 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8729 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8730 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8731 UNSPEC_FMINNMV, UNSPEC_FMINV.
8732 (bit_reduc_op): Delete.
8733 (sve_int_op): New int attribute.
8734 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8735 UNSPEC_FMINNMV, UNSPEC_FMINV.
8736 * config/aarch64/aarch64-sve.md
8737 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8738 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8739 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8740 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8741 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8742 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8743 new patterns.
8744 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8745 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8746 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8747 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8748 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8749 new patterns.
8750
8751 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8752
8753 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8754 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8755 (fms<mode>4, *fms<mode>4): Replace with...
8756 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8757 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8758 Use unspecs instead of rtx codes.
8759 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8760 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8761
8762 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8763
8764 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8765 int iterator.
8766 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8767 * config/aarch64/aarch64-sve.md
8768 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8769 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8770 use a single unspec for the rhs.
8771 (*<su><maxmin><mode>3): Delete.
8772 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8773
8774 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8775
8776 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8777 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8778 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8779 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8780 (optab, sve_fp_op): Handle them.
8781 (SVE_FP_UNARY): Delete.
8782 (optab): Remove sqrt entry.
8783 (sve_fp_op): Remove neg, abs and sqrt entries.
8784 (SVE_COND_FP_UNARY): New int iterator.
8785 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8786 (*<frint_pattern><mode>2): Delete.
8787 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8788 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8789 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8790 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8791
8792 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8795
8796 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8797
8798 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8799 (UNSPEC_COND_FADD): ...this.
8800 (UNSPEC_COND_SUB): Rename to...
8801 (UNSPEC_COND_FSUB): ...this.
8802 (UNSPEC_COND_MUL): Rename to...
8803 (UNSPEC_COND_FMUL): ...this.
8804 (UNSPEC_COND_DIV): Rename to...
8805 (UNSPEC_COND_FDIV): ...this.
8806 (UNSPEC_COND_MAX): Rename to...
8807 (UNSPEC_COND_FMAXNM): ...this.
8808 (UNSPEC_COND_MIN): Rename to...
8809 (UNSPEC_COND_FMINNM): ...this.
8810 (UNSPEC_COND_LT): Rename to...
8811 (UNSPEC_COND_FCMLT): ...this.
8812 (UNSPEC_COND_LE): Rename to...
8813 (UNSPEC_COND_FCMLE): ...this.
8814 (UNSPEC_COND_EQ): Rename to...
8815 (UNSPEC_COND_FCMEQ): ...this.
8816 (UNSPEC_COND_NE): Rename to...
8817 (UNSPEC_COND_FCMNE): ...this.
8818 (UNSPEC_COND_GE): Rename to...
8819 (UNSPEC_COND_FCMGE): ...this.
8820 (UNSPEC_COND_GT): Rename to...
8821 (UNSPEC_COND_FCMGT): ...this.
8822 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8823 (sve_fp_op_rev): Update accordingly.
8824 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8825
8826 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8827
8828 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8829 banner comments.
8830 * config/aarch64/check-sve-md.awk: New file.
8831 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8832 (insn-conditions.md): Depend on it.
8833
8834 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8835
8836 PR target/91385
8837 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8838 (*negsi2_cmpz_zext): Ditto.
8839
8840 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8841
8842 * config/aarch64/iterators.md (commutative): Remove.
8843
8844 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8845
8846 PR driver/91130
8847 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8848 processing COLLECT_GCC_OPTIONS.
8849 (run_gcc): Likewise.
8850
8851 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8852
8853 PR tree-optimization/91109
8854 * lra-remat.c (update_scratch_ops): Remove assignment of the
8855 hard register.
8856
8857 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8858
8859 * data-streamer.h (streamer_write_poly_uint64): Declare.
8860 (streamer_read_poly_uint64): Likewise.
8861 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8862 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8863 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8864 (add_condition): Take a poly_int64 size.
8865 * ipa-predicate.c (add_condition): Likewise.
8866 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8867 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8868 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8869 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8870 condition::size as a poly_int64.
8871 (unmodified_parm_1): Take a poly_int64 size pointer.
8872 (unmodified_parm): Likewise.
8873 (unmodified_parm_or_parm_agg_item): Likewise.
8874 (set_cond_stmt_execution_predicate): Update accordingly.
8875 (set_switch_stmt_execution_predicate): Likewise.
8876 (will_be_nonconstant_expr_predicate): Likewise.
8877 (will_be_nonconstant_predicate): Likewise.
8878 (inline_read_section): Stream condition::size as a poly_int.
8879 (ipa_fn_summary_write): Likewise.
8880
8881 2019-08-07 Martin Liska <mliska@suse.cz>
8882
8883 * fold-const.c (twoval_comparison_p): Replace int
8884 with bool as a return type.
8885 (simple_operand_p): Likewise.
8886 (operand_equal_p): Replace int with bool as a return type.
8887 * fold-const.h (operand_equal_p): Likewise.
8888
8889 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8890
8891 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8892 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8893 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8894 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8895 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8896 * tree-pretty-print.c (dump_omp_clause): Likewise.
8897 * tree-nested.c (convert_nonlocal_omp_clauses,
8898 convert_local_omp_clauses): Likewise.
8899 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8900 Likewise.
8901 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8902 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8903 clause with array or reference to array types, no matter what type
8904 except for reference it has.
8905
8906 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8907
8908 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8909
8910 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8911
8912 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8913 (arch_canonicalize): Support rv32g and rv64g and fix error
8914 handling.
8915
8916 2019-08-06 Martin Liska <mliska@suse.cz>
8917
8918 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8919 and DECL_IS_OPERATOR_DELETE_P.
8920
8921 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8922
8923 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8924 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8925 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8926 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8927 (gimplify_omp_for): Don't do C++ random access iterator clause
8928 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8929 don't predetermine the artificial iterator in case of C++ random
8930 access iterators as lastprivate, but private. For OMP_LOOP, force
8931 bind expr around simd body and force for_pre_body before the
8932 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8933 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8934 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8935 diff var of C++ random access iterators. Handle
8936 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8937 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8938 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8939 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8940 * omp-low.c (lower_rec_input_clauses): For
8941 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8942 variables instead of default constructing them.
8943 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8944 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8945 is_taskloop_ctx check from the assert to the guarding condition.
8946
8947 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8948
8949 * config/riscv/multilib-generator: (canonical_order): New.
8950 (arch_canonicalize): Dito.
8951 Apply arch_canonicalize for alts.
8952
8953 2019-08-05 Martin Sebor <msebor@redhat.com>
8954
8955 * doc/extend.texi (Common Variable Attributes): Document alias
8956 attribute.
8957
8958 2019-08-05 Marek Polacek <polacek@redhat.com>
8959
8960 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8961 * doc/invoke.texi: Document -Wcomma-subscript.
8962
8963 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8964
8965 * tree-core.h (tree_function_decl): Make function_code an
8966 independent field. Group the remaining bitfields into bytes
8967 and move decl_type so that it contines to be at a byte boundary.
8968 Leave 12 bits for future expansion.
8969
8970 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8971
8972 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8973 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8974 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8975 IFN_MASK_STORE.
8976
8977 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8978
8979 * gimple.h (gimple_move_vops): Declare.
8980 * gimple.c (gimple_move_vops): New function
8981 * gimple-fold.c (replace_call_with_call_and_fold)
8982 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8983 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8984 (gimple_fold_call): Use it.
8985 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8986 * tree-call-cdce.c (use_internal_fn): Likewise.
8987 * tree-if-conv.c (predicate_load_or_store): Likewise.
8988 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8989 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8990 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8991 (update_call_from_tree): Likewise.
8992 * tree-vect-stmts.c (vectorizable_load): Likewise.
8993 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8994
8995 2019-08-05 Martin Liska <mliska@suse.cz>
8996
8997 PR c++/91334
8998 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8999 with not arguments.
9000 (eliminate_unnecessary_stmts): Likewise.
9001
9002 2019-08-05 Richard Biener <rguenther@suse.de>
9003
9004 PR middle-end/91169
9005 * fold-const.c (get_array_ctor_element_at_index): Create
9006 offset_ints according to the sign of the index type and treat
9007 that as signed if it is obviously so.
9008
9009 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9010
9011 PR target/91341
9012 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9013 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9014 _mm256_storeu2_m128i): New function.
9015
9016 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9017
9018 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9019 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9020
9021 2019-08-05 Alan Modra <amodra@gmail.com>
9022
9023 PR target/91349
9024 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9025 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9026
9027 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9028
9029 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9030 bug that was fixed in Tcl 8.6.1.
9031
9032 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9033
9034 * config/rs6000/future.md: New file.
9035 * config/rs6000/rs6000.md: Include future.md.
9036 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9037
9038 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9039
9040 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9041 check to use targetm.slow_unaligned_access instead.
9042
9043 * function.c (assign_param_data_one): Remove unused data members.
9044
9045 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9046
9047 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9048 build_distinct_type_copy.
9049 (simd_clone_adjust_argument_types): Ditto.
9050 (simd_clone_adjust): Call build_distinct_type_copy here.
9051 (expand_simd_clones): Ditto.
9052
9053 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9054
9055 PR target/91201
9056 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9057
9058 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9059
9060 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9061 from 'const void *'.
9062 (sort_locs_in_loop_postorder_cmp): Likewise.
9063
9064 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9065
9066 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9067 (hot-bb-count-ws-permille): Likewise.
9068 (hot-bb-frequency-fraction): Likewise.
9069 (unlikely-bb-count-fraction): Likewise.
9070 * params.def (hot-bb-count-fraction): Rework description.
9071 (hot-bb-count-ws-permille): Likewise.
9072 (hot-bb-frequency-fraction): Likewise.
9073 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9074 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9075
9076 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9077
9078 PR target/91323
9079 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9080 Return false.
9081
9082 2019-08-02 Richard Biener <rguenther@suse.de>
9083
9084 * vec.h (vec::sort): Add gcc_qsort_r support.
9085 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9086 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9087 to gcc_qsort_r style callback.
9088 (sort_locs_in_loop_postorder_cmp): Likewise.
9089 (analyze_memory_references): Use gcc_sort_r interfaces.
9090 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9091
9092 2019-08-02 Martin Liska <mliska@suse.cz>
9093
9094 PR lto/91313
9095 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9096 to detect working job server.
9097 (driver::detect_jobserver): Test whether jobserver
9098 is active from GCC driver. That will prevent situation where
9099 GCC is invoked from a LD plugin and the linker already uses
9100 file descriptors suggested by make. That leads to a wrong
9101 detection.
9102 * gcc.h (driver): Add detect_jobserver.
9103 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9104 not scanning for --jobserver-auth prefix.
9105
9106 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9107
9108 PR tree-optimization/91201
9109 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9110 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9111 extraction.
9112
9113 2019-08-01 Martin Sebor <msebor@redhat.com>
9114
9115 PR c++/90947
9116 * tree.c (type_initializer_zero_p): Define.
9117 * tree.h (type_initializer_zero_p): New function.
9118
9119 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9120
9121 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9122
9123 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9124
9125 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9126 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9127 * predict.c (maybe_hot_count_p): Likewise.
9128 (maybe_hot_bb_p): Tweak comment.
9129 (maybe_hot_edge_p): Likewise.
9130 (probably_never_executed): Likewise. Minor tweak.
9131 (probably_never_executed_bb_p): Likewise.
9132 (unlikely_executed_edge_p): Likewise.
9133 (probably_never_executed_edge_p): Likewise.
9134 (optimize_function_for_size_p): Likewise.
9135 (optimize_function_for_speed_p): Likewise.
9136 (function_optimization_type): Likewise.
9137 (optimize_bb_for_size_p): Likewise.
9138 (optimize_bb_for_speed_p): Likewise.
9139 (bb_optimization_type): Likewise.
9140 (optimize_edge_for_size_p): Likewise.
9141 (optimize_edge_for_speed_p): Likewise.
9142 (optimize_insn_for_size_p): Likewise.
9143 (optimize_insn_for_speed_p): Likewise.
9144 (optimize_loop_for_size_p): Likewise.
9145 (optimize_loop_for_speed_p): Likewise.
9146 (optimize_loop_nest_for_speed_p): Likewise.
9147 (optimize_loop_nest_for_size_p): Likewise.
9148 (predictable_edge_p): Likewise.
9149 (handle_missing_profiles): Minor tweak.
9150
9151 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9152
9153 * config/rs6000/predicates.md (pcrel_external_address): Update
9154 comment.
9155
9156 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9157
9158 PR target/85693
9159 * config/i386/mmx.md (usadv8qi): New expander.
9160
9161 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9162
9163 PR c++/90590
9164 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9165 with reserved names that are in a system header.
9166
9167 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9168
9169 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9170 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9171 (*vec_extractv2si_0_zext): Ditto.
9172 (*vec_extractv2si_1): Add (rm,x) alternative.
9173 (*vec_extractv2si_1_zext): New insn pattern.
9174 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9175 insn constraint.
9176
9177 2019-08-01 Richard Biener <rguenther@suse.de>
9178
9179 * domwalk.c (bb_postorder): Remove static variable.
9180 (cmp_bb_postorder): Adjust.
9181 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9182 (dom_walker::walk): Adjust.
9183
9184 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9185
9186 * sort.cc (sort_r_ctx): New struct.
9187 (reorder23): Make templated on context type.
9188 (reorder45): Ditto.
9189 (cmp1): Ditto. Adjust signature.
9190 (netsort): Ditto.
9191 (mergesort): Ditto.
9192 [CHECKING_P] (cmp2to3): New static function. Use it...
9193 (gcc_qsort) [CHECKING_P]: ...here.
9194 (gcc_sort_r): New function.
9195 * system.h (sort_r_cmp_fn): New function typedef.
9196 (qsort_chk): Adjust signature.
9197 (gcc_sort_r): Declare.
9198 * vec.c (qsort_chk_error): Adjust.
9199 (qsort_chk): Adjust.
9200
9201 2019-08-01 Richard Biener <rguenther@suse.de>
9202
9203 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9204 (compute_antic): Localize it here.
9205
9206 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9207
9208 * common/config/riscv/riscv-common.c: Check -march string ends
9209 with null.
9210
9211 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9212
9213 * ipa-devirt.c (type_warning_cmp): Make static.
9214 (decl_warning_cmp): Ditto.
9215
9216 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9217
9218 PR target/91050
9219 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9221 use of deleted rs6000_dejagnu_cpu_index variable.
9222 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9223 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9224 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9225 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9226 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9227 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9228
9229 2019-07-31 Richard Biener <rguenther@suse.de>
9230
9231 PR tree-optimization/91280
9232 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9233 Decompose MEM_REF manually for offset handling.
9234
9235 2019-07-31 Richard Biener <rguenther@suse.de>
9236
9237 PR tree-optimization/91293
9238 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9239 of reduction stmts.
9240
9241 2019-07-31 Matt Thomas <matt@3am-software.com>
9242 Nick Hudson <nick@nthcliff.demon.co.uk>
9243 Matthew Green <mrg@eterna.com.au>
9244 Maya Rashish <coypu@sdf.org>
9245
9246 * config.gcc (hppa*-*-netbsd*): New target.
9247 * config/pa/pa-netbsd.h: New file.
9248 * config/pa/pa32-netbsd.h: New file.
9249
9250 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9251
9252 PR tree-optimization/91201
9253 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9254
9255 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9256
9257 * config/gcn/gcn-valu.md
9258 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9259 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9260 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9261 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9262 struct ilist. Add nops for delayeduse insns.
9263 * config/gcn/gcn.md (delayeduse): New attribute.
9264 (*movbi): Remove s_waitcnt from stores.
9265 (*mov<mode>_insn): Likewise.
9266 (*movti_insn): Likewise. Add delayeduse attribute.
9267 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9268 (atomic_store<mode>): Remove or adjust s_waitcnt.
9269
9270 2019-07-31 Richard Biener <rguenther@suse.de>
9271
9272 * vr-values.h (vr_values::swap_vr_value): New.
9273 (vr_values::free_value_range): likewise.
9274 * vr-values.c (vr_values::swap_vr_value): Implement.
9275 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9276 Do not return a range or take a var.
9277 (evrp_range_analyzer::stack): Change back to recording a non-const
9278 value_range *.
9279 * gimple-ssa-evrp-analyze.c
9280 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9281 value-range.
9282 (evrp_range_analyzer::pop_to_marker): Adjust.
9283 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9284 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9285 no longer needed value-range.
9286
9287 2019-07-31 Martin Liska <mliska@suse.cz>
9288
9289 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9290 have size and (or) alignment as 2nd and later arguments.
9291 Mark all of them as necessary.
9292
9293 2019-07-31 Richard Biener <rguenther@suse.de>
9294
9295 PR tree-optimization/91178
9296 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9297 Use tail-recursion.
9298
9299 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9300
9301 PR tree-optimization/91201
9302 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9303 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9304 TARGET_AVX512F.
9305 (reduc_plus_scal_<mode>): Improve formatting by introducing
9306 a temporary.
9307
9308 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9309
9310 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9311 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9312 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9313 (aarch64_init_tme_builtins): New.
9314 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9315 (aarch64_expand_builtin_tme): New.
9316 (aarch64_expand_builtin): Handle TME builtins.
9317 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9318 __ARM_FEATURE_TME when enabled.
9319 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9320 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9321 (TARGET_TME): New.
9322 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9323 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9324 UNSPECV_TCANCEL.
9325 (tstart, ttest, tcommit, tcancel): New instructions.
9326 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9327 (__tcancel, __ttest): New.
9328 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9329 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9330 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9331 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9332 * config/arm/types.md: Add new tme type attr.
9333 * doc/invoke.texi: Document "tme".
9334
9335 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9336
9337 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9338 warn_unused_result attribute.
9339 (cmse_check_address_range): Add warn_unused_result attribute.
9340
9341 2019-07-31 Richard Biener <rguenther@suse.de>
9342
9343 PR tree-optimization/91257
9344 * tree-vrp.c (union_ranges): Unify equality and less tests
9345 by using compare_values. Re-order cheap tests first.
9346
9347 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9348
9349 PR middle-end/91301
9350 * gimplify.c (gimplify_omp_for): If for class iterator on
9351 distribute parallel for there is no data sharing clause
9352 on inner_for_stmt, look for private clause on combined
9353 parallel too and if found, move it to inner_for_stmt.
9354
9355 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9356
9357 * lra-int.h (lra_operand_data): Remove early_clobber field.
9358 (lra_insn_reg): Likewise.
9359 * lra.c (debug_operand_data): Update accordingly.
9360 (setup_operand_alternative): Likewise.
9361 (new_insn_reg): Likewise. Remove early_clobber parameter.
9362 (collect_non_operand_hard_regs): Update call accordingly.
9363 Don't assign to lra_insn_reg::early_clobber.
9364 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9365 and update calls to new_insn_reg.
9366 (lra_update_insn_regno_info): Update calls accordingly.
9367 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9368 alternative number as a parameter and test whether the operand
9369 is earlyclobbered in that particular alternative.
9370 (process_alt_operands): Update call accordingly. Use per-alternative
9371 checks for earyclobber here too.
9372 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9373 against zero for IRA_UNKNOWN_ALT.
9374
9375 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9376
9377 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9378
9379 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9380
9381 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9382 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9383
9384 2019-07-30 Martin Liska <mliska@suse.cz>
9385
9386 PR ipa/89330
9387 * cgraph.c (cgraph_edge::make_direct): Use
9388 edge->indirect_unknown_callee as edge->resolve_speculation can
9389 deallocate edge which is this pointer.
9390
9391 2019-07-30 Richard Biener <rguenther@suse.de>
9392
9393 PR tree-optimization/91257
9394 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9395
9396 2019-07-30 Martin Liska <mliska@suse.cz>
9397
9398 * doc/invoke.texi: Document new behavior.
9399 * lto-wrapper.c (cpuset_popcount): New function
9400 is a copy of libgomp/config/linux/proc.c.
9401 (init_num_threads): Likewise.
9402 (run_gcc): Automatically detect core count for -flto.
9403 (jobserver_active_p): New function.
9404
9405 2019-07-30 Richard Biener <rguenther@suse.de>
9406
9407 PR tree-optimization/91257
9408 * bitmap.h (bitmap_ior_into_and_free): Declare.
9409 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9410 whether to add the unliked element to the freelist.
9411 (bitmap_list_insert_element_after): Add defaulted param for
9412 an already allocated element.
9413 (bitmap_ior_into_and_free): New function.
9414 * tree-ssa-structalias.c (condense_visit): Reduce the
9415 ponts-to and edge bitmaps of the SCC members in a
9416 logarithmic fashion rather than all to one.
9417
9418 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9419
9420 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9421 parameter. When nonnull, make sure that the addition or subtraction
9422 has the same condition.
9423 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9424 for CFN_COND_MUL too.
9425
9426 2019-07-30 Richard Biener <rguenther@suse.de>
9427
9428 PR tree-optimization/91291
9429 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9430 constant values.
9431
9432 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9433
9434 PR middle-end/91216
9435 * omp-low.c (global_nonaddressable_vars): New variable.
9436 (use_pointer_for_field): For global decls, if they are non-addressable,
9437 remember it in the global_nonaddressable_vars bitmap, if they are
9438 addressable and in the global_nonaddressable_vars bitmap, ignore their
9439 TREE_ADDRESSABLE bit.
9440 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9441 vars in global_nonaddressable_vars bitmap.
9442 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9443
9444 PR target/91150
9445 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9446 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9447 comparison to unsigned HOST_WIDE_INT before shifting it left.
9448
9449 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9450
9451 * config/i386/i386.md (movstrict<mode>): Use register_operand
9452 predicate for operand 0. Add expander condition. Assert that
9453 operand 0 is a SUBREG RTX.
9454 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9455 Update operand constraints and insn condition.
9456 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9457 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9458 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9459 Update operand 0 constraints.
9460 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9461
9462 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9463
9464 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9465 when -m{code,data}-region are used without -mlarge.
9466 * config/msp430/msp430.c (msp430_option_override): Error when a
9467 non-default code or data region is used without -mlarge.
9468 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9469 attributes when they are used without -mlarge.
9470
9471 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9472
9473 PR target/70320
9474 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9475
9476 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9477
9478 PR middle-end/91242
9479 * wide-int.h (generic_wide_int::sext_elt): New function.
9480 * inchash.h (hash::add_wide_int): Use it instead of elt.
9481
9482 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9483
9484 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9485 CODE_FOR_arm_##.
9486 * config/arm/arm.md (<crc_variant>): Rename to...
9487 (arm_<crc_variant>): ... This.
9488 (<cdp>): Rename to...
9489 (arm_<cdp>): ... This.
9490 (<ldc>): Rename to...
9491 (arm_<ldc>): ... This.
9492 (<stc>): Rename to...
9493 (arm_<stc>): ... This.
9494 (<mcr>): Rename to...
9495 (arm_<mcr>): ... This.
9496 (<mrc>): Rename to...
9497 (arm_<mrc>): ... This.
9498 (<mcrr>): Rename to...
9499 (arm_<mcrr>): ... This.
9500 (<mrrc>): Rename to...
9501 (arm_<mrrc>): ... This.
9502
9503 2019-07-29 Richard Biener <rguenther@suse.de>
9504
9505 PR tree-optimization/91257
9506 * tree-ssa-sccvn.h (struct vn_avail): New.
9507 (struct vn_ssa_aux): Add avail member.
9508 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9509 member, add m_avail_freelist one.
9510 (rpo_elim::~rpo_elim): Remove.
9511 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9512 data structure.
9513 (rpo_elim::eliminate_push_avail): Likewise.
9514 (do_unwind): Likewise.
9515 (do_rpo_vn): Likewise.
9516
9517 2019-07-29 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/91257
9520 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9521 most cases, instead call compare_values which handles the
9522 symbolic ranges we handle specially.
9523 (compare_values_warnv): Do not call operand_less_p but open-code
9524 the effective fold calls. Avoid converting so much.
9525
9526 2019-07-29 Martin Liska <mliska@suse.cz>
9527
9528 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9529 remove LHS of operator new call. It's handled latter.
9530
9531 2019-07-29 Richard Biener <rguenther@suse.de>
9532
9533 PR tree-optimization/91267
9534 * vr-values.c (vr_values::update_value_range): Add early return
9535 for effectively VARYING lattice entry.
9536
9537 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9538
9539 PR debug/86638
9540 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9541 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9542 necessary if keep_all_vdefs_p is true.
9543 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9544 that keep_all_vdefs_p is false.
9545 (mark_all_reaching_defs_necessary): Likewise.
9546 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9547
9548 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9549
9550 * common.opt (Og): Change the initial value of flag_dse to 0.
9551 * opts.c (default_options_table): Move OPT_ftree_dse from
9552 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9553 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9554 entry before the OPT_ftree_sra entry.
9555 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9556 of flags disabled by Og.
9557
9558 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9559
9560 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9561 variables for -Og.
9562
9563 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9564
9565 * doc/sourcebuild.texi (check-function-bodies): Document.
9566
9567 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9568
9569 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9570 VEC_DUPLICATE of a fixed-length vector even if the result
9571 is variable-length. Likewise fold a duplicate of a
9572 variable-length vector if the variable-length vector is
9573 itself a duplicate of a fixed-length sequence.
9574 (test_vector_ops_duplicate): Test more cases.
9575
9576 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9577
9578 * vector-builder.h (vector_builder): Add a shape template parameter.
9579 (vector_builder::new_unary_operation): New function, generalizing
9580 the old tree_vector_builder function.
9581 (vector_builder::new_binary_operation): Likewise.
9582 (vector_builder::binary_encoded_nelts): Likewise.
9583 * int-vector-builder.h (int_vector_builder): Update template
9584 parameters to vector_builder.
9585 (int_vector_builder::shape_nelts): New function.
9586 * rtx-vector-builder.h (rtx_vector_builder): Update template
9587 parameters to vector_builder.
9588 (rtx_vector_builder::shape_nelts): New function.
9589 (rtx_vector_builder::nelts_of): Likewise.
9590 (rtx_vector_builder::npatterns_of): Likewise.
9591 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9592 * tree-vector-builder.h (tree_vector_builder): Update template
9593 parameters to vector_builder.
9594 (tree_vector_builder::shape_nelts): New function.
9595 (tree_vector_builder::nelts_of): Likewise.
9596 (tree_vector_builder::npatterns_of): Likewise.
9597 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9598 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9599 (tree_vector_builder::new_binary_operation): Delete.
9600 (tree_vector_builder::binary_encoded_nelts): Likewise.
9601 * simplify-rtx.c: Include rtx-vector-builder.h.
9602 (distributes_over_addition_p): New function.
9603 (simplify_const_unary_operation)
9604 (simplify_const_binary_operation): Generalize handling of vector
9605 constants to include variable-length vectors.
9606 (test_vector_ops_series): Add more tests.
9607
9608 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9609
9610 PR lto/91222
9611 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9612 than INDENTIFIER_POINTER.
9613
9614 2019-07-28 Martin Liska <mliska@suse.cz>
9615
9616 PR ipa/89330
9617 * cgraph.c (symbol_table::create_edge): Always allocate
9618 a cgraph_edge.
9619 (symbol_table::free_edge): Store summary_id to
9620 edge_released_summary_ids if != -1;
9621 * cgraph.h (NEXT_FREE_NODE): Remove.
9622 (SET_NEXT_FREE_NODE): Likewise.
9623 (NEXT_FREE_EDGE): Likewise.
9624 (symbol_table::release_symbol): Store summary_id to
9625 cgraph_released_summary_ids if != -1;
9626 (symbol_table::allocate_cgraph_symbol): Always allocate
9627 a cgraph_node.
9628
9629 2019-07-28 Alan Modra <amodra@gmail.com>
9630
9631 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9632 gen_sibcall.
9633
9634 2019-07-28 Alan Modra <amodra@gmail.com>
9635
9636 PR target/91135
9637 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9638 define.
9639 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9640 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9641 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9642
9643 2019-07-28 Alan Modra <amodra@gmail.com>
9644
9645 PR target/91050
9646 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9647 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9648 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9649 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9650 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9651 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9652 in asm_default spec.
9653 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9654 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9655
9656 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9657
9658 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9659
9660 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9661
9662 PR target/89517
9663 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9664 * config/aarch64/aarch64-option-extensions.def: Add new comments
9665 and restore easier to read options.
9666
9667 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9668
9669 * convert.c (convert_to_real_1): Move part of conversion code...
9670 * match.pd: ...To here.
9671
9672 2019-07-26 Martin Jambor <mjambor@suse.cz>
9673
9674 PR ipa/89330
9675 * ipa-inline-transform.c (check_speculations_1): New function.
9676 (push_all_edges_in_set_to_vec): Likewise.
9677 (check_speculations): Use check_speculations_1, new parameter
9678 new_edges.
9679 (inline_call): Pass new_edges to check_speculations.
9680 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9681 NULL.
9682 (speculation_useful_p): Early return true if edge is inlined, remove
9683 later checks for inline_failed.
9684
9685 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9686
9687 PR rtl-optimization/91223
9688 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9689 matching with INOUT operand.
9690
9691 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9692
9693 * stmt.c (expand_case): Try to narrow the index type if it's larger
9694 than a word. Tidy up.
9695
9696 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9697
9698 * cif-code.def (NEVER_CALL): New code.
9699 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9700 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9701
9702 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9703
9704 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9705 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9706
9707 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9708
9709 * ipa-devirt.c (add_type_duplicate): Fix return value.
9710
9711 2019-07-25 Richard Biener <rguenther@suse.de>
9712
9713 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9714 type parameter and use it instead of guessing expression
9715 type from the first operand.
9716 (extract_range_from_binary_expr): Pass expr_type down.
9717
9718 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9719
9720 * config/arm/arm.md (SATrev): Change to code attribute.
9721 (*satsi_<SAT:code>): Adjust for the above.
9722 (*satsi_<SAT:code>_shift): Likewise.
9723
9724 2019-07-25 Richard Biener <rguenther@suse.de>
9725
9726 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9727 Make value_range * temporary const.
9728 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9729 Likewise.
9730 (evrp_range_analyzer::record_ranges_from_): Likewise.
9731 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9732 deal with having recorded a const one.
9733 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9734 Return a const value_range *.
9735 (evrp_range_analyzer::pop_value_range): Likewise.
9736 (evrp_range_analyzer::stack): Record const value_range *s.
9737 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9738 Adjust.
9739 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9740 (format_integer): Likewise.
9741 (sprintf_dom_walker::handle_gimple_call): Likewise.
9742 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9743 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9744 (vrp_prop::get_value_range): Adjust.
9745 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9746 modifying the lattice in-place.
9747 (vrp_prop::visit_stmt): Likewise.
9748 * vr-values.c (vr_values::get_lattice_entry): New private method.
9749 (vr_values::get_value_range): Wrap it and return a const
9750 value_range *.
9751 (vr_values::set_def_to_varying): New.
9752 (vr_values::set_defs_to_varying): Use it.
9753 (vr_values::update_value_range): Likewise.
9754 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9755 (values::op_with_constant_singleton_va): Likewise.
9756 (vr_values::extract_range_for_var_from_co): Likewise.
9757 (vr_values::extract_range_from_ssa_name): Likewise.
9758 (vr_values::extract_range_from_cond_expr): Likewise.
9759 (vr_values::extract_range_basic): Likewise.
9760 (compare_ranges): Take const value_range *, adjust.
9761 (compare_range_with_value): Likewise.
9762 (vrp_valueize): Adjust.
9763 (vrp_valueize_1): Likewise.
9764 (vr_values::get_vr_for_comparison): Return a const value_range *.
9765 (vr_values::compare_name_with_value): Adjust.
9766 (vr_values::compare_names): Likewise.
9767 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9768 Likewise.
9769 (vr_values::vrp_evaluate_conditional): Likewise.
9770 (find_case_label_ranges): Take a const value_range *.
9771 (vr_values::vrp_visit_switch_stmt): Adjust.
9772 (vr_values::extract_range_from_phi_node): Likewise.
9773 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9774 (vr_values::simplify_abs_using_ranges): Likewise.
9775 (test_for_singularity): Take a const value_range *.
9776 (range_fits_type_p): Likewise.
9777 (vr_values::simplify_cond_using_ranges_1): Adjust.
9778 (vr_values::simplify_cond_using_ranges_2): Likewise.
9779 (vr_values::simplify_switch_using_ranges): Likewise.
9780 (vr_values::simplify_float_conversion_usi): Likewise.
9781 (vr_values::two_valued_val_range_p): Likewise.
9782 * vr-values.h (vr_values::get_value_range): Return a const
9783 value_range *.
9784 (vr_values::set_def_to_varying): New.
9785 (vr_values::get_lattice_entry): New private method.
9786 (vr_values::get_vr_for_comparison): Return a const value_range *.
9787
9788 2019-07-25 Martin Liska <mliska@suse.cz>
9789 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9790
9791 PR c++/23383
9792 * common.opt: Add -fallocation-dce
9793 * gimple.c (gimple_call_operator_delete_p): New.
9794 * gimple.h (gimple_call_operator_delete_p): Likewise.
9795 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9796 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9797 DECL_IS_OPERATOR_DELETE_P.
9798 (mark_all_reaching_defs_necessary_1): Likewise.
9799 (propagate_necessity): Likewise.
9800 (eliminate_unnecessary_stmts): Handle
9801 gimple_call_operator_delete_p.
9802 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9803 Add packing of OPERATOR_DELETE.
9804 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9805 Similarly here.
9806 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9807 (DECL_SET_IS_OPERATOR_DELETE): New.
9808 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9809
9810 2019-07-25 Martin Liska <mliska@suse.cz>
9811
9812 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9813 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9814 * coverage.c (coverage_begin_function): Likewise.
9815 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9816 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9817 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9818 (sem_item::hash_referenced_symbol_properties): Likewise.
9819 * lto-streamer-out.c (hash_tree): Likewise.
9820 * predict.c (expr_expected_value_1): Likewise.
9821 * tree-inline.c (expand_call_inline): Likewise.
9822 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9823 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9824 * tree-core.h (enum function_decl_type): New enum.
9825 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9826 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9827 (set_function_decl_type): Likewise.
9828 (DECL_IS_OPERATOR_NEW_P): New.
9829 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9830 (DECL_LAMBDA_FUNCTION): Likewise.
9831 (DECL_LAMBDA_FUNCTION_P): Likewise.
9832 (DECL_IS_OPERATOR_NEW): Remove.
9833 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9834
9835 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9836
9837 * ipa-profile.c (get_most_common_single_value): Use
9838 get_nth_most_common_value.
9839 * profile.c (sort_hist_value): New function.
9840 (compute_value_histograms): Call sort_hist_value to sort the
9841 values after loading from disk.
9842 * value-prof.c (get_most_common_single_value): Rename to ...
9843 get_nth_most_common_value. Add input params n, return
9844 the n_th value and count.
9845 (gimple_divmod_fixed_value_transform): Use
9846 get_nth_most_common_value.
9847 (gimple_ic_transform): Likewise.
9848 (gimple_stringops_transform): Likewise.
9849 * value-prof.h (get_most_common_single_value): Add input params
9850 n, default to 0.
9851
9852 2019-07-25 Richard Biener <rguenther@suse.de>
9853
9854 PR tree-optimization/91236
9855 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9856 size of CONSTRUCTOR write. Fix buffer size we pass to
9857 native_encode_expr.
9858
9859 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9860
9861 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9862 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9863 r273773.
9864
9865 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9866
9867 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9868 explicitly disabled with --disable-initfini-array.
9869
9870 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9871
9872 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9873 if-exists.
9874
9875 2019-07-24 Martin Sebor <msebor@redhat.com>
9876
9877 PR tree-optimization/91183
9878 PR tree-optimization/86688
9879 * builtins.c (compute_objsize): Handle MEM_REF.
9880 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9881 (get_min_string_length): Remove.
9882 (count_nonzero_bytes): New function.
9883 (handle_char_store): Rename...
9884 (handle_store): to this. Handle multibyte stores via integer types.
9885 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9886 function name.
9887
9888 2019-07-24 Martin Sebor <msebor@redhat.com>
9889
9890 PR driver/80545
9891 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9892 (diagnostic_report_diagnostic): Same.
9893 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9894 (diagnostic_context::lang_mask): New data member.
9895 * ipa-pure-const.c (suggest_attribute): Use
9896 lang_hooks.option_lang_mask ().
9897 * opts-common.c (option_enabled): Handle new argument.
9898 (get_option_state): Pass an additional argument.
9899 * opts.c (print_filtered_help): Print supported languages for
9900 unsupported options. Adjust printing of current state.
9901 * opts.h (option_enabled): Add argument.
9902 * toplev.c (print_switch_values): Use lang_mask.
9903 (general_init): Set global_dc->lang_mask.
9904
9905 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9906
9907 PR bootstrap/87030
9908 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9909
9910 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9911
9912 * cgraphunit.c (symbol_table::compile): Start and stop
9913 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9914 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9915
9916 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9917
9918 * gimplify.c (flag_instrument_functions_exclude_p): Include
9919 namespace/class information in the printable name.
9920 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9921 to tokens entered into the vector.
9922
9923 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9924
9925 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9926 (get_static_chain): Call it instead of build_simple_mem_ref.
9927 (get_frame_field): Likewise.
9928 (get_nonlocal_debug_decl): Likewise.
9929 (convert_nonlocal_reference_op): Likewise.
9930
9931 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9932
9933 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9934 declaration.
9935 (arc_compute_frame_size): Millicode is disabled when compiling
9936 ISR.
9937 (arc_return_address_register): Likewise.
9938 (arc_compute_function_type): Likewise.
9939 (arc_compute_frame_size): Likewise.
9940 (secondary_reload_info): Likewise.
9941 (arc_get_unalign): Likewise.
9942 (arc_can_use_return_insn): Declare.
9943 * config/arc/arc.c (AUX_LP_START): Define
9944 (AUX_LP_END): Likewise.
9945 (arc_frame_info): Update gmask member to 64-bit datum.
9946 (GMASK_LEN): Update.
9947 (arc_compute_function_type): Make it static, move it forward.
9948 (arc_must_save_register): Update, consider the extra regs.
9949 (arc_compute_millicode_save_restore_regs): Update to use the 64
9950 bit gmask.
9951 (arc_compute_frame_size): Likewise.
9952 (arc_enter_leave_p): Likewise.
9953 (arc_save_callee_saves): Likewise.
9954 (arc_restore_callee_saves): Likewise.
9955 (arc_save_callee_enter): Likewise.
9956 (arc_restore_callee_leave): Likewise.
9957 (arc_save_callee_milli): Likewise.
9958 (arc_restore_callee_milli): Likewise.
9959 (arc_expand_prologue): Add new interrupt handling.
9960 (arc_return_address_register): Make it static, move it forward.
9961 (arc_expand_epilogue): Add new interrupt handling.
9962 (arc_get_unalign): Delete.
9963 (arc_epilogue_uses): Make sure we do not remove the extra
9964 saved/restored registers when interrupt.
9965 (arc_can_use_return_insn): New function.
9966 (push_reg): Likewise.
9967 (pop_reg): Likewise.
9968 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9969 procedures.
9970 (arc_restore_callee_saves): Likewise, but restoring.
9971 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9972 (R33_REG): Likewise.
9973 (R34_REG): Likewise.
9974 (R35_REG): Likewise.
9975 (R36_REG): Likewise.
9976 (R37_REG): Likewise.
9977 (R38_REG): Likewise.
9978 (R39_REG): Likewise.
9979 (R45_REG): Likewise.
9980 (R46_REG): Likewise.
9981 (R47_REG): Likewise.
9982 (R48_REG): Likewise.
9983 (R49_REG): Likewise.
9984 (R50_REG): Likewise.
9985 (R51_REG): Likewise.
9986 (R52_REG): Likewise.
9987 (R53_REG): Likewise.
9988 (R54_REG): Likewise.
9989 (R55_REG): Likewise.
9990 (R56_REG): Likewise.
9991 (R58_REG): Likewise.
9992 (type): Add rtie attribute.
9993 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9994 (movsi_insn): Accept moves to lp_count.
9995 (rtie): Update pattern.
9996 (simple_return): Simplify it, don't use this pattern as a return
9997 from an interrupt.
9998 (arc600_rtie): New pattern.
9999 (p_return_i): Clean up.
10000 (return): Likewise.
10001 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10002 family CPUs.
10003 * config/arc/predicates.md (move_src_operand): Consider lp_count
10004 as a register.
10005
10006 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10007
10008 * config/s390/predicates.md (addv_const_operand): New predicate.
10009 * config/s390/s390-modes.def (CCO): New condition code mode.
10010 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10011 (s390_branch_condition_mask): Likewise.
10012 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10013 ("mulv<mode>4"): New expanders.
10014 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10015 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10016 pattern definitions.
10017
10018 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10019
10020 PR middle-end/91166
10021 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10022 (define_predicates): Add entry for uniform_vector_p.
10023 (vec_same_elem_p): New match pattern.
10024
10025 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10026
10027 PR bootstrap/87030
10028 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10029 * config/i386/darwin32-biarch.h .. to here.
10030 * config/i386/darwin64-biarch.h: Adjust comments.
10031 * config/rs6000/darwin32-biarch.h: Likewise.
10032 * config/rs6000/darwin64-biarch.h: Likewise.
10033 * config.gcc: Missed commit from r273746
10034 (*-*-darwin*): Don't include CPU t-darwin here.
10035 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10036 an error message if i686-darwin configuration is attempted for
10037 Darwin >= 18.
10038
10039 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10040
10041 PR bootstrap/87030
10042 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10043 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10044 an error message if i686-darwin configuration is attempted for
10045 Darwin >= 18.
10046 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10047 (powerpc-*-darwin*): Use biarch files where needed.
10048 (powerpc64-*-darwin*): Likewise.
10049 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10050 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10051 arch case.
10052 * config/i386/darwin32-biarch.h: New.
10053 * config/i386/darwin64.h: Rename.
10054 * config/i386/darwin64-biarch.h: To this.
10055 * config/i386/t-darwin: Rename.
10056 * config/i386/t-darwin32-biarch: To this.
10057 * config/i386/t-darwin64: Rename.
10058 * config/i386/t-darwin64-biarch: To this.
10059 * config/rs6000/darwin32-biarch.h: New.
10060 * config/rs6000/darwin64.h: Rename.
10061 * config/rs6000/darwin64-biarch.h: To this.
10062 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10063 arch case.
10064 * config/rs6000/t-darwin8: Rename.
10065 * config/rs6000/t-darwin32-biarch: To this.
10066 * config/rs6000/t-darwin64 Rename.
10067 * config/rs6000/t-darwin64-biarch: To this.
10068
10069 2019-07-23 Martin Sebor <msebor@redhat.com>
10070
10071 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10072
10073 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10074
10075 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10076 (rh): New alias for it.
10077
10078 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10079
10080 * gdbhooks.py: Pass replace=True to
10081 gdb.printing.register_pretty_printer.
10082
10083 2019-07-23 Richard Biener <rguenther@suse.de>
10084
10085 PR debug/91231
10086 * lto-streamer-in.c (input_function): Drop inline-entry markers
10087 that ended up with an unknown location block.
10088
10089 2019-07-23 Richard Biener <rguenther@suse.de>
10090
10091 PR tree-optimization/83518
10092 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10093 init from a constant even when partial defs are already recorded.
10094
10095 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10096
10097 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10098 * config/i386/znver1.md: Enable patterns for znver2 and add store
10099 variants which use extra AGU unit.
10100
10101 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10102
10103 * config/i386/i386-options.c (ix86_option_override_internal): Default
10104 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10105 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10106 for ZNVER2.
10107
10108 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10109
10110 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10111 (znver2_costs): Update 256 bit SSE costs and multiplication.
10112
10113 2019-07-23 Jan Beulich <jbeulich@suse.com>
10114
10115 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10116 Require only AVX512F.
10117 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10118 alternative expanding to vpternlog.
10119
10120 2019-07-23 Martin Liska <mliska@suse.cz>
10121
10122 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10123 to -flto in dwarf producer string.
10124
10125 2019-07-23 Richard Biener <rguenther@suse.de>
10126
10127 * tree-cfg.c (label_for_bb): Remove global var.
10128 (main_block_label): Take label_for_bb as argument.
10129 (cleanup_dead_labels_eh): Likewise, adjust.
10130 (cleanup_dead_labels): Adjust.
10131
10132 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10133
10134 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10135 Configurations): Add documentation for __builtin_mtfsf.
10136
10137 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10138
10139 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10140 * config/riscv/riscv.c (riscv_constant_alignment): Use
10141 riscv_align_data_type.
10142 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10143 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10144 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10145 * config/riscv/riscv.opt (malign-data): New.
10146 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10147
10148 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10149
10150 * cgraph.c (dump_graphviz): New function.
10151 * cgraph.h (dump_graphviz): New function.
10152 * symtab.c (dump_graphviz): New function.
10153
10154 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10155
10156 * config/aarch64/aarch64-simd.md
10157 (*aarch64_simd_sra<mode>): New.
10158 * config/aarch64/iterators.md
10159 (SHIFTRT): New iterator.
10160 (sra_op): New attribute.
10161
10162 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10163
10164 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10165 callee-saved regs R4->R10 in an interrupt function that calls another
10166 function.
10167
10168 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10169
10170 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10171 (_mm_blendv_epi8): New.
10172
10173 2019-07-22 Richard Biener <rguenther@suse.de>
10174
10175 PR tree-optimization/91221
10176 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10177 restrict partial-def handling of empty constructors and
10178 memset to refs with known offset.
10179
10180 2019-07-22 Jan Beulich <jbeulich@suse.com>
10181
10182 * config/i386/sse.md (ternlogsuffix): New.
10183 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10184 AVX512F is in use.
10185 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10186
10187 2019-07-22 Martin Liska <mliska@suse.cz>
10188
10189 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10190 comment.
10191 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10192
10193 2019-07-22 Martin Liska <mliska@suse.cz>
10194
10195 * lto-section-in.c (lto_get_section_data):
10196 Use new function get_compression.
10197 * lto-streamer-out.c (produce_lto_section): Use
10198 set_compression to encode compression algorithm.
10199 * lto-streamer.h (struct lto_section): Do not
10200 use bitfields in the format.
10201
10202 2019-07-22 Martin Liska <mliska@suse.cz>
10203
10204 PR driver/91172
10205 * opts-common.c (decode_cmdline_option): Decode
10206 argument of -Werror and check it for a wrong language.
10207 * opts-global.c (complain_wrong_lang): Remove such case.
10208
10209 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10210
10211 * config/arc/arc.c (prepare_move_operands): Always use an
10212 intermediate register when storing a TLS symbols.
10213
10214 2019-07-22 Stafford Horne <shorne@gmail.com>
10215
10216 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10217 force_reg.
10218
10219 2019-07-22 Stafford Horne <shorne@gmail.com>
10220
10221 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10222 and munordered-float validations.
10223 * config/or1k/constraints.md (d): New register constraint.
10224 * config/or1k/predicates.md (fp_comparison_operator): New.
10225 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10226 operands.
10227 (or1k_expand_compare): Normalize unordered comparisons.
10228 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10229 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10230 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10231 * config/or1k/or1k.md (type): Add fpu.
10232 (fpu): New instruction reservation.
10233 (F, f, fr, fi, FI, FOP, fop): New.
10234 (<fop><F:mode>3): New ALU instruction definition.
10235 (float<fi><F:mode>2): New conversion instruction definition.
10236 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10237 (fpcmpcc): New code iterator.
10238 (*sf_fp_insn): New instruction definition.
10239 (cstore<F:mode>4): New expand definition.
10240 (cbranch<F:mode>4): New expand definition.
10241 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10242 munordered-float): New options.
10243 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10244 munordered-float.
10245
10246 2019-07-22 Stafford Horne <shorne@gmail.com>
10247
10248 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10249 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10250 documenation to be more clear.
10251 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10252 more clear.
10253 * config/or1k/or1k.opt (mrori): New option.
10254 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10255 msfimm, mshftimm): Rewrite documentation to be more clear.
10256 * config/or1k/or1k.md (insn_support): Add ror and rori.
10257 (enabled): Add conditions for ror and rori.
10258 (rotrsi3): Replace condition for shftimm with ror and rori.
10259
10260 2019-07-22 Stafford Horne <shorne@gmail.com>
10261
10262 PR target/90363
10263 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10264 (extend<mode>si2): Update predicate.
10265 * config/or1k/predicates.md (volatile_mem_operand): New.
10266 (reg_or_mem_operand): New.
10267
10268 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10269
10270 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10271 * config/rs6000/rs6000-call.c: ... to here.
10272
10273 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10274
10275 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10276 memory.
10277
10278 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10279
10280 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10281
10282 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10283
10284 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10285
10286 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10287
10288 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10289 (any_memory_operand): New predicate.
10290 (reg_or_mem_operand): Use it.
10291
10292 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10293
10294 PR target/91204
10295 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10296
10297 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10298
10299 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10300 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10301
10302 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10303
10304 * tree.def (OMP_LOOP): New tree code.
10305 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10306 (enum omp_clause_bind_kind): New enum.
10307 (struct tree_omp_clause): Add subcode.bind_kind.
10308 * tree.h (OMP_LOOP_CHECK): Rename to ...
10309 (OMP_LOOPING_CHECK): ... this.
10310 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10311 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10312 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10313 (OMP_CLAUSE_BIND_KIND): Define.
10314 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10315 bind clause entries.
10316 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10317 * tree-pretty-print.c (dump_omp_clause): Likewise.
10318 (dump_generic_node): Handle OMP_LOOP.
10319 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10320 (in_omp_construct): New variable.
10321 (is_gimple_stmt): Handle OMP_LOOP.
10322 (gimplify_scan_omp_clauses): For lastprivate don't set
10323 check_non_private if code == OMP_LOOP. For reduction clause
10324 on OMP_LOOP combined with parallel or teams propagate as shared
10325 on the combined construct. Handle OMP_CLAUSE_BIND.
10326 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10327 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10328 for constructs from a loop construct to gimplify_scan_omp_clauses.
10329 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10330 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10331 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10332 to match the implicit ORT_TARGET construct around whole body.
10333 Temporarily clear in_omp_construct when processing body.
10334 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10335 etc. temporarily set in_omp_construct when processing body.
10336 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10337 * omp-low.c (struct omp_context): Add loop_p.
10338 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10339 in that the original var might be private.
10340 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10341 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10342 addition of loop construct.
10343 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10344
10345 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10346 lastprivate non-addressable iterator of a collapse(1) simd.
10347
10348 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10349
10350 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10351 as in rs6000.c.
10352
10353 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10354
10355 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10356 refer to default conditions. Warn for the 'y' spec which is ignored
10357 by current linkers.
10358
10359 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10360
10361 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10362 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10363 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10364 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10365 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10366 init_cumulative_args, rs6000_promote_function_mode,
10367 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10368 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10369 rs6000_function_arg_boundary, rs6000_parm_offset,
10370 rs6000_parm_start, rs6000_arg_size,
10371 rs6000_darwin64_record_arg_advance_flush,
10372 rs6000_darwin64_record_arg_advance_recurse,
10373 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10374 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10375 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10376 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10377 rs6000_finish_function_arg, rs6000_function_arg,
10378 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10379 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10380 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10381 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10382 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10383 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10384 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10385 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10386 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10387 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10388 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10389 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10390 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10391 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10392 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10393 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10394 get_element_number, altivec_expand_vec_set_builtin,
10395 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10396 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10397 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10398 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10399 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10400 rs6000_expand_builtin, rs6000_vector_type,
10401 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10402 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10403 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10404 to rs6000-call.c.
10405 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10406 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10407 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10408 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10409 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10410 init_cumulative_args, rs6000_promote_function_mode,
10411 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10412 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10413 rs6000_function_arg_boundary, rs6000_parm_offset,
10414 rs6000_parm_start, rs6000_arg_size,
10415 rs6000_darwin64_record_arg_advance_flush,
10416 rs6000_darwin64_record_arg_advance_recurse,
10417 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10418 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10419 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10420 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10421 rs6000_finish_function_arg, rs6000_function_arg,
10422 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10423 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10424 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10425 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10426 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10427 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10428 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10429 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10430 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10431 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10432 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10433 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10434 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10435 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10436 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10437 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10438 get_element_number, altivec_expand_vec_set_builtin,
10439 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10440 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10441 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10442 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10443 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10444 rs6000_expand_builtin, rs6000_vector_type,
10445 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10446 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10447 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10448 to here from rs6000.c.
10449 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10450 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10451 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10452 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10453 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10454 rs6000_return_in_memory, rs6000_return_in_msb,
10455 rs6000_pass_by_reference, setup_incoming_varargs,
10456 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10457 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10458 rs6000_function_arg_padding, rs6000_function_arg,
10459 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10460 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10461 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10462 rs6000_passes_long_double, rs6000_passes_vector,
10463 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10464 altivec_builtin_mask_for_load) Add declarations.
10465 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10466 * config/config.gcc: Add new source file rs6000-call.c to garbage
10467 collector and extra_objs.
10468
10469 2019-07-19 Jeff Law <law@redhat.com>
10470
10471 PR tree-optimization/86061
10472 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10473 strncpy. Drop some trivial dead code.
10474 (maybe_trim_memstar_call): Handle strncpy.
10475
10476 2019-07-19 Richard Biener <rguenther@suse.de>
10477
10478 PR tree-optimization/91211
10479 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10480 memset encoding size.
10481
10482 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10483
10484 PR target/91204
10485 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10486
10487 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10488
10489 PR ipa/91194
10490 * ipa-inline.c (recursive_inlining): Fix limits check.
10491
10492 2019-07-19 Richard Biener <rguenther@suse.de>
10493
10494 PR tree-optimization/91200
10495 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10496 no PHI nodes in middle-bb.
10497
10498 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10499
10500 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10501 to +sve-bitperm.
10502 * config/aarch64/aarch64-option-extensions.def: Likewise.
10503
10504 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10505
10506 PR middle-end/91190
10507 * function.c (insert_temp_slot_address): Store into the hash table
10508 a copy of address to avoid RTL sharing issues.
10509
10510 2019-07-19 Richard Biener <rguenther@suse.de>
10511
10512 PR tree-optimization/91207
10513 Revert
10514 2019-07-17 Richard Biener <rguenther@suse.de>
10515
10516 PR tree-optimization/91178
10517 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10518 loads with a gap larger than the vector size always use
10519 VMAT_STRIDED_SLP.
10520 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10521 avoid loading vectors that are only contained in the gap
10522 and thus are not needed.
10523
10524 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10525
10526 * config/i386/i386.md (*addqi_2_slp): Remove.
10527 (*<code>qi_2_slp): Ditto.
10528
10529 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10530
10531 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10532 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10533 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10534 Rename function from rs6000_prefixed_address.
10535 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10536 TARGET_HAS_TOC.
10537 (TARGET_TOC): Likewise.
10538 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10539 rs6000.h.
10540 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10541 TARGET_HAS_TOC.
10542 (TARGET_TOC): Likewise.
10543 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10544 rs6000.h.
10545 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10546 TARGET_HAS_TOC.
10547 (TARGET_TOC): Likewise.
10548 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10549 check to require -mcmodel=medium for pc-relative addressing.
10550 (create_TOC_reference): Add assertion for TARGET_TOC.
10551 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10552 TARGET_NO_TOC.
10553 (rs6000_emit_move): Likewise.
10554 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10555 to 'TOC_alias_set'.
10556 (get_TOC_alias_set): Likewise.
10557 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10558 TARGET_NO_TOC.
10559 (rs6000_can_eliminate): Likewise.
10560 (rs6000_prefixed_address_mode_p): Rename function from
10561 rs6000_prefixed_address.
10562 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10563 TARGET_HAS_TOC and not pc-relative.
10564 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10565 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10566 TARGET_HAS_TOC.
10567 (TARGET_TOC): Likewise.
10568 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10569 rs6000.h.
10570
10571 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10572
10573 PR target/91188
10574 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10575 for operand 0. Do not use (match_dup) to match operand 1 with
10576 operand 0. Add check in insn constraint that either input operand
10577 matches operand 0. Use SWI12 mode iterator to also handle
10578 HImode operands.
10579 (*and<mode>_1_slp): Ditto.
10580 (*<code>qi_1_slp): Ditto.
10581 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10582 Do not use (match_dup) to match operand 1 with operand 0. Add
10583 check in insn constraint that operand 1 matches operand 0.
10584 Use SWI12 mode iterator to also handle HImode operands.
10585 (*ashl<mode>3_1_slp): Ditto.
10586 (*<shift_insn><mode>3_1_slp): Ditto.
10587 (*<rotate_insn><mode>3_1_slp): Ditto.
10588
10589 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10590
10591 * config/arm/arm-builtins.c
10592 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10593 (arm_expand_unop_builtin): Likewise.
10594 * config/arm/crypto.md
10595 (crypto_sha1h): Convert from define_insn to define_expand.
10596 (crypto_<crypto_pattern>): Likewise.
10597 (crypto_sha1h_lb): New define_insn.
10598 (crypto_<crypto_pattern>_lb): Likewise.
10599
10600 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10601
10602 PR target/90317
10603 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10604 (vsha1cq_u32): Likewise.
10605 (vsha1pq_u32): Likewise.
10606 (vsha1mq_u32): Likewise.
10607 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10608 vec select.
10609 (crypto_sha1c): Correct vec select.
10610 (crypto_sha1m): Likewise.
10611 (crypto_sha1p): Likewise.
10612
10613 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10614
10615 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10616 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10617 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10618 (subdi_zesidi_zesidi): Likewise.
10619 (negdi2_compare, negdi2_insn): Likewise.
10620 (negdi_extensidi): Likewise.
10621 (negdi_zero_extendsidi): Likewise.
10622 (arm_cmpdi_insn): Likewise.
10623 (subsi3_carryin): Use arm_borrow_operation.
10624 (subsi3_carryin_const): Likewise.
10625 (subsi3_carryin_const0): Likewise.
10626 (subsi3_carryin_compare): Likewise.
10627 (subsi3_carryin_compare_const): Likewise.
10628 (subsi3_carryin_compare_const0): Likewise.
10629 (subsi3_carryin_shift): Likewise.
10630 (rsbsi3_carryin_shift): Likewise.
10631 (negsi2_carryin_compare): Likewise.
10632
10633 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10634
10635 PR tree-optimization/91137
10636 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10637 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10638 Init, use and fini the above new field.
10639 (determine_base_object_1): New function.
10640 (determine_base_object): Reimplement using walk_tree.
10641
10642 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10643
10644 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10645 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10646 CLEANUP_FORCE_FAST_DCE is set.
10647 * ifcvt.c (rest_of_handle_if_conversion): Pass
10648 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10649 if-conversion succeeded.
10650
10651 2019-07-18 Richard Biener <rguenther@suse.de>
10652
10653 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10654 branches to make code less indented.
10655
10656 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10657
10658 PR middle-end/81824
10659 * attribs.c (decls_mismatched_attributes): Simplify the logic
10660 that avoids duplicates and false positives.
10661
10662 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10663
10664 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10665 data into data section when generating PIC code.
10666 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10667 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10668 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10669 return 2 for SOM and 0 for other targets.
10670
10671 2019-07-17 Jeff Law <law@redhat.com>
10672
10673 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10674 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10675 avoid unexpected switch statement fallthru.
10676
10677 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10678
10679 * config/i386/i386.md (*add<dwi>3_doubleword):
10680 Remove redundant constraints.
10681 (*add<mode>_1): Ditto.
10682 (*addhi_1): Ditto.
10683 (*addqi_1): Ditto.
10684 (*addqi_1_slp): Ditto.
10685 (*add<mode>_2): Ditto.
10686 (*addv<mode>4): Ditto.
10687 (*sub<dwi>3_doubleword): Ditto.
10688 (*sub<mode>_1): Ditto.
10689 (*subqi_1_slp): Ditto.
10690 (*sub<mode>_2): Ditto.
10691 (*subv<mode>4): Ditto.
10692 (*sub<mode>_3): Ditto.
10693 (@add<mode>3_carry): Ditto.
10694 (@sub<mode>3_carry): Ditto.
10695 (*add<mode>3_cc_overflow_1): Ditto.
10696 (*add<mode>3_zext_cc_overflow_2): Ditto.
10697 (*anddi_1): Ditto.
10698 (*and<mode>_1): Ditto.
10699 (*andqi_1): Ditto.
10700 (*andqi_1_slp): Ditto.
10701 (*anddi_2): Ditto.
10702 (*andqi_2_maybe_si): Ditto.
10703 (*and<mode>_2): Ditto.
10704 (*andqi_2_slp): Ditto.
10705 (*<code><mode>_1): Ditto.
10706 (*<code>qi_1): Ditto.
10707 (*<code>qi_1_slp): Ditto.
10708 (*<code><mode>_2): Ditto.
10709 (*<code>qi_2_slp): Ditto.
10710
10711 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10712
10713 * alias.c (record_component_aliases): Do not simplify pointed-to
10714 types of ODR types.
10715
10716 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10717
10718 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10719 partial reg stall on alternative 2.
10720
10721 2019-07-17 Richard Biener <rguenther@suse.de>
10722
10723 PR tree-optimization/91178
10724 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10725 lower SSA names to avoid quadratic behavior in the common case.
10726 * tree-data-ref.c (split_constant_offset): Add limit argument
10727 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10728 (split_constant_offset_1): Add limit argument and use it to
10729 limit SSA def walking. Optimize the common plus/minus case.
10730
10731 2019-07-17 Richard Biener <rguenther@suse.de>
10732
10733 PR tree-optimization/91178
10734 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10735 loads with a gap larger than the vector size always use
10736 VMAT_STRIDED_SLP.
10737 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10738 avoid loading vectors that are only contained in the gap
10739 and thus are not needed.
10740
10741 2019-07-17 Richard Biener <rguenther@suse.de>
10742
10743 PR tree-optimization/91180
10744 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10745 computation for memset partial defs.
10746
10747 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10748
10749 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10750 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10751 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10752 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10753 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10754 * omp-grid.c (grid_process_grid_body,
10755 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10756 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10757 == GF_OMP_FOR_KIND_SIMD.
10758 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10759 check_omp_nesting_restrictions, scan_omp_1_stmt,
10760 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10761 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10762 omp_find_scan): Likewise.
10763 * omp-expand.c (expand_omp_for): Likewise.
10764 * omp-general.c (omp_extract_for_data): Likewise.
10765
10766 PR tree-optimization/91157
10767 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10768 a vector boolean with scalar mode.
10769 (expand_vector_condition): Handle first operand being a vector boolean
10770 with scalar mode.
10771 (expand_vector_operations_1): For comparisons, don't bail out early
10772 if the return type is vector boolean with scalar mode, but comparison
10773 operand type is not.
10774
10775 2019-07-17 Richard Biener <rguenther@suse.de>
10776
10777 PR tree-optimization/91181
10778 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10779 IFN_LOADs as calls.
10780
10781 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10782
10783 * config/i386/i386.md (*testdi_1): Match CCZmode for
10784 constants that might have the SImode sign bit set.
10785 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10786 Use correct constraints for pentium pairing.
10787 (*test<mode>_1): Ditto.
10788
10789 2019-07-16 Jeff Law <law@redhat.com>
10790
10791 PR rtl-optimization/91173
10792 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10793 SSA_NAME with a constant value, fold its value into the offset
10794 and clear the base before calling gen_addr_rtx.
10795
10796 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10797
10798 PR rtl-optimization/91164
10799 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10800 invalidate dominance info.
10801
10802 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10803
10804 * read-md.h (md_reader::record_potential_iterator_use): Add a
10805 file_location parameter.
10806 * read-rtl.c (attribute_use::loc): New field.
10807 (map_attr_string): Take a file_location parameter. Report cases
10808 in which attributes map to multiple distinct values.
10809 (apply_attribute_uses): Update call accordingly.
10810 (md_reader::handle_overloaded_name): Likewise.
10811 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10812 nonnull strings.
10813 (record_attribute_use): Take a file_location parameter.
10814 Initialize attribute_use::loc.
10815 (md_reader::record_potential_iterator_use): Take a file_location
10816 parameter. Update call to record_attribute_use.
10817 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10818 (rtx_reader::read_rtx_code): Likewise.
10819 (rtx_reader::read_rtx_operand): Likewise. Record a location
10820 for implicitly-expanded empty strings.
10821
10822 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10823
10824 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10825 Use file_location instead of separate fields.
10826 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10827 separate filename and line number.
10828 * read-md.c (ptr_loc): As above.
10829 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10830 (md_reader::fprint_md_ptr_loc): Likewise.
10831 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10832 instead of a separate filename and line number.
10833 (md_reader::read_string): Update call accordingly.
10834
10835 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10836
10837 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10838 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10839 leaving the choice between SFDF and P implicit.
10840 (*mov<mode>_update2): Likewise.
10841 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10842 rather than leaving the choice betweem IBM128 and GPR implicit.
10843 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10844 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10845 QHSI implicit.
10846 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10847 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10848 * config/rs6000/vsx.md
10849 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10850 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10851 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10852 and VSX_EXTRACT_I implicit.
10853
10854 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10855
10856 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10857 Explicitly use <MOVEP1:MODE> for the mode attribute.
10858
10859 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10860
10861 PR bootstrap/91176
10862 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10863
10864 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10865
10866 PR target/91050
10867 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10868 .machine directive.
10869
10870 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10871
10872 * config/i386/i386.md (@test<mode>_ccno_1):
10873 Rename from test<mode>_ccno_1.
10874 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10875 (*testqi_1_maybe_si): Remove modrm attribute.
10876 (*test<mode>_1): Ditto.
10877 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10878 gen_test_ccno_1 and gen_extend_insn.
10879
10880 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10881
10882 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10883 to 0.
10884
10885 2019-07-15 Richard Biener <rguenther@suse.de>
10886
10887 PR middle-end/91162
10888 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10889 node make sure to replace all uses with something valid.
10890
10891 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10892
10893 PR tree-optimization/88497
10894 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10895 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10896 function undistribute_bitref_for_vector.
10897 (undistribute_bitref_for_vector): New function.
10898 (cleanup_vinfo_map): Likewise.
10899 (sort_by_mach_mode): Likewise.
10900
10901 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10902
10903 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10904 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10905 and testdi_ccno_1 using SWI48 mode attribute.
10906 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10907 x86_64_szext_general_operand.
10908 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10909 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10910 instead of genera_operand mode attribute.
10911
10912 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10913
10914 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10915 fopen and fclose to their respective types.
10916 (DotFn.invoke): Ditto.
10917
10918 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10919
10920 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10921 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10922 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10923 (array_index_predicate): Remove.
10924 (analyze_function_body): Account cost for variable ofsetted array
10925 indexing.
10926 (estimate_node_size_and_time): Do not compute array index hint.
10927 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10928 (inline_read_section): Do not read array index hint.
10929 (ipa_fn_summary_write): Do not write array index hint.
10930 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10931 * ipa-cp.c (hint_time_bonus): Remove.
10932 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10933 (ipa_fnsummary): Remove array_index.
10934 * ipa-inline.c (want_inline_small_function_p): Do not use
10935 array_index.
10936 (edge_badness): Likewise.
10937 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10938
10939 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10940
10941 PR target/91148
10942 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10943 superfluous "builtin function" phrasing.
10944
10945 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10946
10947 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10948 Break out from ...
10949 (aliasing_component_refs_walk): Break out from ...
10950 (aliasing_component_refs_p): ... here.
10951
10952 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10953
10954 PR target/91148
10955 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10956 "builtin function" phrasing.
10957
10958 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10959
10960 PR target/90723
10961 * recog.h (temporary_volatile_ok): New class.
10962 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10963 volatile_ok temporarily to true using temporary_volatile_ok.
10964 * expr.c (emit_block_move_via_cpymem): Likewise.
10965 * optabs.c (maybe_legitimize_operand): Likewise.
10966
10967 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10968
10969 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10970 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10971 uses inside of order(concurrent) constructs.
10972 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10973 OMP_CLAUSE_ORDER is seen.
10974 * omp-low.c (struct omp_context): Add order_concurrent member.
10975 (scan_sharing_clauses): Set ctx->order_concurrent if
10976 OMP_CLAUSE_ORDER is seen.
10977 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10978 of simd order(concurrent). Diagnose constructs not allowed inside of
10979 for order(concurrent).
10980 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10981 complaining about static double setjmp (double); or class static
10982 methods or non-global namespace setjmps.
10983 (omp_runtime_api_call): New function.
10984 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10985 order(concurrent) loops.
10986
10987 2019-07-12 Martin Sebor <msebor@redhat.com>
10988
10989 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10990 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10991 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10992 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10993
10994 2019-07-12 Jan Hubicka <jh@suse.cz>
10995
10996 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10997 (indirect_refs_may_alias_p): ... here.
10998 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10999 mem refs in the access paths.
11000
11001 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11002
11003 PR tree-optimization/89430
11004 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11005 store elimination for local variable without address escape.
11006
11007 2019-07-12 Jeff Law <law@redhat.com>
11008
11009 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11010 for the ".far" section.
11011
11012 2019-07-12 Richard Biener <rguenther@suse.de>
11013
11014 PR tree-optimization/91145
11015 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11016 chain check.
11017
11018 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11019
11020 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11021 rather than this_state as the lowering context for the ELSE
11022 seq in a GIMPLE_EH_ELSE.
11023
11024 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11025
11026 * vector-builder.h (vector_builder::elt): Allow already-supplied
11027 elements to be read back before building is complete.
11028
11029 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11030
11031 PR rtl-optimization/91136
11032 * df-core.c (ACCESSING REFS): Fix typos in comment.
11033 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11034 the beginning of the block to the initial set of live registers.
11035
11036 2019-07-12 Richard Biener <rguenther@suse.de>
11037
11038 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11039 * fold-const.c (get_array_ctor_element_at_index): Add
11040 ctor_idx output parameter informing the caller where in
11041 the constructor the element was (not) found. Add early exit
11042 for when the ctor is sorted.
11043 * gimple-fold.c (fold_array_ctor_reference): Support constant
11044 folding across multiple array elements.
11045
11046 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11047
11048 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11049 doesn't have location, set the current location to the function's end.
11050
11051 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11052
11053 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11054 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11055 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11056 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11057 * config/aarch64/aarch64-simd.md
11058 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11059 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11060 * config/aarch64/aarch64-sve.md
11061 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11062 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11063
11064 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11065
11066 * doc/md.texi: Document that @ patterns can have different
11067 numbers of operands.
11068 * genemit.c (handle_overloaded_gen): Handle this case.
11069 * genopinit.c (handle_overloaded_gen): Likewise.
11070 * gensupport.c (replace_operands_with_dups): Iterate over
11071 the new rtx's format rather than the old one's.
11072
11073 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11074
11075 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11076 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11077 order clause entries.
11078 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11079 * tree-pretty-print.c (dump_omp_clause): Likewise.
11080 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11081 Likewise.
11082 * omp-low.c (scan_sharing_clauses): Likewise.
11083 * tree-nested.c (convert_nonlocal_omp_clauses,
11084 convert_local_omp_clauses): Likewise.
11085
11086 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11087
11088 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11089 fallthrough target of current basic block isn't the placed
11090 right next.
11091
11092 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11093
11094 PR target/90980
11095 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11096 (_mm512_storeu_epi64): Likewise.
11097 (_mm512_loadu_epi32): Likewise.
11098 (_mm512_storeu_epi32): Likewise.
11099 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11100 (_mm_storeu_epi64): Likewise.
11101 (_mm256_storeu_epi32): Likewise.
11102 (_mm_storeu_epi32): Likewise.
11103
11104 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11105
11106 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11107
11108 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11109
11110 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11111 Handle Modula-2.
11112
11113 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11114
11115 PR target/91124
11116 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11117 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11118 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11119 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11120 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11121 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11122 define_insns.
11123 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11124 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11125 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11126 define_insns.
11127 (sse2_cvttpd2dq<mask_name>): Change into ...
11128 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11129 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11130 (*sse2_cvtpd2dq<mask_name>): Change into ...
11131 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11132 Add "C" constraint to const0_operand.
11133 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11134 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11135 changes.
11136
11137 PR target/91124
11138 * config/i386/i386-builtin-types.def
11139 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11140 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11141 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11142 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11143 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11144 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11145 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11146 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11147 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11148 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11149 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11150 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11151 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11152 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11153 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11154 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11155 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11156 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11157 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11158 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11159 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11160 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11161 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11162 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11163 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11164 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11165 __builtin_ia32_vpdpbusd_v4si_maskz,
11166 __builtin_ia32_vpdpbusds_v16si_mask,
11167 __builtin_ia32_vpdpbusds_v16si_maskz,
11168 __builtin_ia32_vpdpbusds_v8si_mask,
11169 __builtin_ia32_vpdpbusds_v8si_maskz,
11170 __builtin_ia32_vpdpbusds_v4si_mask,
11171 __builtin_ia32_vpdpbusds_v4si_maskz,
11172 __builtin_ia32_vpdpwssd_v16si_mask,
11173 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11174 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11175 __builtin_ia32_vpdpwssd_v4si_maskz,
11176 __builtin_ia32_vpdpwssds_v16si_mask,
11177 __builtin_ia32_vpdpwssds_v16si_maskz,
11178 __builtin_ia32_vpdpwssds_v8si_mask,
11179 __builtin_ia32_vpdpwssds_v8si_maskz,
11180 __builtin_ia32_vpdpwssds_v4si_mask,
11181 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11182 suffixed types rather than *_INT.
11183 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11184 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11185 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11186 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11187 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11188 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11189
11190 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11191
11192 * tree-vrp.c (intersect_ranges): If we know the intersection is
11193 empty, there is no need to conservatively add anything else to
11194 the set.
11195
11196 2019-07-11 Richard Biener <rguenther@suse.de>
11197
11198 PR middle-end/91131
11199 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11200 when the object is volatile and we have not cleared it even though
11201 there are no nonzero elements.
11202
11203 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11204
11205 * config/rs6000/predicates.md (cint34_operand): Update
11206 SIGNED_34BIT_OFFSET_P call.
11207 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11208 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11209 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11210 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11211 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11212 argument.
11213 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11214 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11215 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11216 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11217 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11218
11219 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11220
11221 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11222 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11223 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11224 (DEF_MIN_OSX_VERSION): New.
11225
11226 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11227
11228 * fold-const.c (fold_relational_const): Fix folding of
11229 vector-to-scalar NE_EXPRs.
11230 (test_vector_folding): Add more tests.
11231
11232 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11233
11234 PR target/91060
11235 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11236 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11237 (vec_setv2di_internal): Reexpress as...
11238 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11239 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11240 rather than gen_neon_vset_lane<mode>.
11241
11242 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11243
11244 PR target/91102
11245 * lra-constraints.c (process_alt_operands): Don't match user
11246 defined regs only if they are early clobbers.
11247
11248 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11249
11250 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11251
11252 2019-07-10 Richard Biener <rguenther@suse.de>
11253
11254 PR tree-optimization/91126
11255 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11256 native encoding offset for BYTES_BIG_ENDIAN.
11257 (vn_reference_lookup_3): Likewise.
11258
11259 2019-07-10 Richard Biener <rguenther@suse.de>
11260
11261 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11262 LHS whenever possible.
11263
11264 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11265
11266 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11267 from ...; work also on duplicated types.
11268 (nonoverlapping_component_refs_since_match): ... here
11269 (ncr_type_uid): Break out from ...
11270 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11271 available.
11272 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11273 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11274
11275 2019-07-09 Martin Sebor <msebor@redhat.com>
11276
11277 PR tree-optimization/90989
11278 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11279 optimization to just single character stores.
11280
11281 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11282
11283 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11284 Swap operands only once.
11285
11286 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11287
11288 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11289 for both call instructions.
11290
11291 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11292
11293 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11294 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11295
11296 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11297
11298 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11299 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11300 function from rs6000-logue.c back to rs6000.c.
11301 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11302
11303 2019-07-09 Martin Sebor <msebor@redhat.com>
11304
11305 PR c++/61339
11306 * auto-profile.c: Change class-key of PODs to struct and others
11307 to class.
11308 * basic-block.h: Same.
11309 * bitmap.c (bitmap_alloc): Same.
11310 * bitmap.h: Same.
11311 * builtins.c (expand_builtin_prefetch): Same.
11312 (expand_builtin_interclass_mathfn): Same.
11313 (expand_builtin_strlen): Same.
11314 (expand_builtin_mempcpy_args): Same.
11315 (expand_cmpstr): Same.
11316 (expand_builtin___clear_cache): Same.
11317 (expand_ifn_atomic_bit_test_and): Same.
11318 (expand_builtin_thread_pointer): Same.
11319 (expand_builtin_set_thread_pointer): Same.
11320 * caller-save.c (setup_save_areas): Same.
11321 (replace_reg_with_saved_mem): Same.
11322 (insert_restore): Same.
11323 (insert_save): Same.
11324 (add_used_regs): Same.
11325 * cfg.c (get_bb_copy): Same.
11326 (set_loop_copy): Same.
11327 * cfg.h: Same.
11328 * cfganal.h: Same.
11329 * cfgexpand.c (alloc_stack_frame_space): Same.
11330 (add_stack_var): Same.
11331 (add_stack_var_conflict): Same.
11332 (add_scope_conflicts_1): Same.
11333 (update_alias_info_with_stack_vars): Same.
11334 (expand_used_vars): Same.
11335 * cfghooks.c (redirect_edge_and_branch_force): Same.
11336 (delete_basic_block): Same.
11337 (split_edge): Same.
11338 (make_forwarder_block): Same.
11339 (force_nonfallthru): Same.
11340 (duplicate_block): Same.
11341 (lv_flush_pending_stmts): Same.
11342 * cfghooks.h: Same.
11343 * cfgloop.c (flow_loops_cfg_dump): Same.
11344 (flow_loop_nested_p): Same.
11345 (superloop_at_depth): Same.
11346 (get_loop_latch_edges): Same.
11347 (flow_loop_dump): Same.
11348 (flow_loops_dump): Same.
11349 (flow_loops_free): Same.
11350 (flow_loop_nodes_find): Same.
11351 (establish_preds): Same.
11352 (flow_loop_tree_node_add): Same.
11353 (flow_loop_tree_node_remove): Same.
11354 (flow_loops_find): Same.
11355 (find_subloop_latch_edge_by_profile): Same.
11356 (find_subloop_latch_edge_by_ivs): Same.
11357 (mfb_redirect_edges_in_set): Same.
11358 (form_subloop): Same.
11359 (merge_latch_edges): Same.
11360 (disambiguate_multiple_latches): Same.
11361 (disambiguate_loops_with_multiple_latches): Same.
11362 (flow_bb_inside_loop_p): Same.
11363 (glb_enum_p): Same.
11364 (get_loop_body_with_size): Same.
11365 (get_loop_body): Same.
11366 (fill_sons_in_loop): Same.
11367 (get_loop_body_in_dom_order): Same.
11368 (get_loop_body_in_custom_order): Same.
11369 (release_recorded_exits): Same.
11370 (get_loop_exit_edges): Same.
11371 (num_loop_branches): Same.
11372 (remove_bb_from_loops): Same.
11373 (find_common_loop): Same.
11374 (delete_loop): Same.
11375 (cancel_loop): Same.
11376 (verify_loop_structure): Same.
11377 (loop_preheader_edge): Same.
11378 (loop_exit_edge_p): Same.
11379 (single_exit): Same.
11380 (loop_exits_to_bb_p): Same.
11381 (loop_exits_from_bb_p): Same.
11382 (get_loop_location): Same.
11383 (record_niter_bound): Same.
11384 (get_estimated_loop_iterations_int): Same.
11385 (max_stmt_executions_int): Same.
11386 (likely_max_stmt_executions_int): Same.
11387 (get_estimated_loop_iterations): Same.
11388 (get_max_loop_iterations): Same.
11389 (get_max_loop_iterations_int): Same.
11390 (get_likely_max_loop_iterations): Same.
11391 * cfgloop.h (simple_loop_desc): Same.
11392 (get_loop): Same.
11393 (loop_depth): Same.
11394 (loop_outer): Same.
11395 (loop_iterator::next): Same.
11396 (loop_outermost): Same.
11397 * cfgloopanal.c (mark_irreducible_loops): Same.
11398 (num_loop_insns): Same.
11399 (average_num_loop_insns): Same.
11400 (expected_loop_iterations_unbounded): Same.
11401 (expected_loop_iterations): Same.
11402 (mark_loop_exit_edges): Same.
11403 (single_likely_exit): Same.
11404 * cfgloopmanip.c (fix_bb_placement): Same.
11405 (fix_bb_placements): Same.
11406 (remove_path): Same.
11407 (place_new_loop): Same.
11408 (add_loop): Same.
11409 (scale_loop_frequencies): Same.
11410 (scale_loop_profile): Same.
11411 (create_empty_if_region_on_edge): Same.
11412 (create_empty_loop_on_edge): Same.
11413 (loopify): Same.
11414 (unloop): Same.
11415 (fix_loop_placements): Same.
11416 (copy_loop_info): Same.
11417 (duplicate_loop): Same.
11418 (duplicate_subloops): Same.
11419 (loop_redirect_edge): Same.
11420 (can_duplicate_loop_p): Same.
11421 (duplicate_loop_to_header_edge): Same.
11422 (mfb_keep_just): Same.
11423 (has_preds_from_loop): Same.
11424 (create_preheader): Same.
11425 (create_preheaders): Same.
11426 (lv_adjust_loop_entry_edge): Same.
11427 (loop_version): Same.
11428 * cfgloopmanip.h: Same.
11429 * cgraph.h: Same.
11430 * cgraphbuild.c: Same.
11431 * combine.c (make_extraction): Same.
11432 * config/i386/i386-features.c: Same.
11433 * config/i386/i386-features.h: Same.
11434 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11435 (ix86_emit_outlined_ms2sysv_restore): Same.
11436 (ix86_noce_conversion_profitable_p): Same.
11437 (ix86_init_cost): Same.
11438 (ix86_simd_clone_usable): Same.
11439 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11440 Wstruct-not-pod.
11441 * coretypes.h: Same.
11442 * data-streamer-in.c (string_for_index): Change class-key of PODs
11443 to struct and others to class.
11444 (streamer_read_indexed_string): Same.
11445 (streamer_read_string): Same.
11446 (bp_unpack_indexed_string): Same.
11447 (bp_unpack_string): Same.
11448 (streamer_read_uhwi): Same.
11449 (streamer_read_hwi): Same.
11450 (streamer_read_gcov_count): Same.
11451 (streamer_read_wide_int): Same.
11452 * data-streamer.h (streamer_write_bitpack): Same.
11453 (bp_unpack_value): Same.
11454 (streamer_write_char_stream): Same.
11455 (streamer_write_hwi_in_range): Same.
11456 (streamer_write_record_start): Same.
11457 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11458 (add_cross_iteration_register_deps): Same.
11459 (build_intra_loop_deps): Same.
11460 * df-core.c (df_analyze): Same.
11461 (loop_post_order_compute): Same.
11462 (loop_inverted_post_order_compute): Same.
11463 * df-problems.c (df_rd_alloc): Same.
11464 (df_rd_simulate_one_insn): Same.
11465 (df_rd_local_compute): Same.
11466 (df_rd_init_solution): Same.
11467 (df_rd_confluence_n): Same.
11468 (df_rd_transfer_function): Same.
11469 (df_rd_free): Same.
11470 (df_rd_dump_defs_set): Same.
11471 (df_rd_top_dump): Same.
11472 (df_lr_alloc): Same.
11473 (df_lr_reset): Same.
11474 (df_lr_local_compute): Same.
11475 (df_lr_init): Same.
11476 (df_lr_confluence_n): Same.
11477 (df_lr_free): Same.
11478 (df_lr_top_dump): Same.
11479 (df_lr_verify_transfer_functions): Same.
11480 (df_live_alloc): Same.
11481 (df_live_reset): Same.
11482 (df_live_init): Same.
11483 (df_live_confluence_n): Same.
11484 (df_live_finalize): Same.
11485 (df_live_free): Same.
11486 (df_live_top_dump): Same.
11487 (df_live_verify_transfer_functions): Same.
11488 (df_mir_alloc): Same.
11489 (df_mir_reset): Same.
11490 (df_mir_init): Same.
11491 (df_mir_confluence_n): Same.
11492 (df_mir_free): Same.
11493 (df_mir_top_dump): Same.
11494 (df_word_lr_alloc): Same.
11495 (df_word_lr_reset): Same.
11496 (df_word_lr_init): Same.
11497 (df_word_lr_confluence_n): Same.
11498 (df_word_lr_free): Same.
11499 (df_word_lr_top_dump): Same.
11500 (df_md_alloc): Same.
11501 (df_md_simulate_one_insn): Same.
11502 (df_md_reset): Same.
11503 (df_md_init): Same.
11504 (df_md_free): Same.
11505 (df_md_top_dump): Same.
11506 * df-scan.c (df_insn_delete): Same.
11507 (df_insn_rescan): Same.
11508 (df_notes_rescan): Same.
11509 (df_sort_and_compress_mws): Same.
11510 (df_install_mws): Same.
11511 (df_refs_add_to_chains): Same.
11512 (df_ref_create_structure): Same.
11513 (df_ref_record): Same.
11514 (df_def_record_1): Same.
11515 (df_find_hard_reg_defs): Same.
11516 (df_uses_record): Same.
11517 (df_get_conditional_uses): Same.
11518 (df_get_call_refs): Same.
11519 (df_recompute_luids): Same.
11520 (df_get_entry_block_def_set): Same.
11521 (df_entry_block_defs_collect): Same.
11522 (df_get_exit_block_use_set): Same.
11523 (df_exit_block_uses_collect): Same.
11524 (df_mws_verify): Same.
11525 (df_bb_verify): Same.
11526 * df.h (df_scan_get_bb_info): Same.
11527 * doc/tm.texi: Same.
11528 * dse.c (record_store): Same.
11529 * dumpfile.h: Same.
11530 * emit-rtl.c (const_fixed_hasher::equal): Same.
11531 (set_mem_attributes_minus_bitpos): Same.
11532 (change_address): Same.
11533 (adjust_address_1): Same.
11534 (offset_address): Same.
11535 * emit-rtl.h: Same.
11536 * except.c (dw2_build_landing_pads): Same.
11537 (sjlj_emit_dispatch_table): Same.
11538 * explow.c (allocate_dynamic_stack_space): Same.
11539 (emit_stack_probe): Same.
11540 (probe_stack_range): Same.
11541 * expmed.c (store_bit_field_using_insv): Same.
11542 (store_bit_field_1): Same.
11543 (store_integral_bit_field): Same.
11544 (extract_bit_field_using_extv): Same.
11545 (extract_bit_field_1): Same.
11546 (emit_cstore): Same.
11547 * expr.c (emit_block_move_via_cpymem): Same.
11548 (expand_cmpstrn_or_cmpmem): Same.
11549 (set_storage_via_setmem): Same.
11550 (emit_single_push_insn_1): Same.
11551 (expand_assignment): Same.
11552 (store_constructor): Same.
11553 (expand_expr_real_2): Same.
11554 (expand_expr_real_1): Same.
11555 (try_casesi): Same.
11556 * flags.h: Same.
11557 * function.c (try_fit_stack_local): Same.
11558 (assign_stack_local_1): Same.
11559 (assign_stack_local): Same.
11560 (cut_slot_from_list): Same.
11561 (insert_slot_to_list): Same.
11562 (max_slot_level): Same.
11563 (move_slot_to_level): Same.
11564 (temp_address_hasher::equal): Same.
11565 (remove_unused_temp_slot_addresses): Same.
11566 (assign_temp): Same.
11567 (combine_temp_slots): Same.
11568 (update_temp_slot_address): Same.
11569 (preserve_temp_slots): Same.
11570 * function.h: Same.
11571 * fwprop.c: Same.
11572 * gcc-rich-location.h: Same.
11573 * gcov.c: Same.
11574 * genattrtab.c (check_attr_test): Same.
11575 (check_attr_value): Same.
11576 (convert_set_attr_alternative): Same.
11577 (convert_set_attr): Same.
11578 (check_defs): Same.
11579 (copy_boolean): Same.
11580 (get_attr_value): Same.
11581 (expand_delays): Same.
11582 (make_length_attrs): Same.
11583 (min_fn): Same.
11584 (make_alternative_compare): Same.
11585 (simplify_test_exp): Same.
11586 (tests_attr_p): Same.
11587 (get_attr_order): Same.
11588 (clear_struct_flag): Same.
11589 (gen_attr): Same.
11590 (compares_alternatives_p): Same.
11591 (gen_insn): Same.
11592 (gen_delay): Same.
11593 (find_attrs_to_cache): Same.
11594 (write_test_expr): Same.
11595 (walk_attr_value): Same.
11596 (write_attr_get): Same.
11597 (eliminate_known_true): Same.
11598 (write_insn_cases): Same.
11599 (write_attr_case): Same.
11600 (write_attr_valueq): Same.
11601 (write_attr_value): Same.
11602 (write_dummy_eligible_delay): Same.
11603 (next_comma_elt): Same.
11604 (find_attr): Same.
11605 (make_internal_attr): Same.
11606 (copy_rtx_unchanging): Same.
11607 (gen_insn_reserv): Same.
11608 (check_tune_attr): Same.
11609 (make_automaton_attrs): Same.
11610 (handle_arg): Same.
11611 * genextract.c (gen_insn): Same.
11612 (VEC_char_to_string): Same.
11613 * genmatch.c (print_operand): Same.
11614 (lower): Same.
11615 (parser::parse_operation): Same.
11616 (parser::parse_capture): Same.
11617 (parser::parse_c_expr): Same.
11618 (parser::parse_simplify): Same.
11619 (main): Same.
11620 * genoutput.c (output_operand_data): Same.
11621 (output_get_insn_name): Same.
11622 (compare_operands): Same.
11623 (place_operands): Same.
11624 (process_template): Same.
11625 (validate_insn_alternatives): Same.
11626 (validate_insn_operands): Same.
11627 (gen_expand): Same.
11628 (note_constraint): Same.
11629 * genpreds.c (write_one_predicate_function): Same.
11630 (add_constraint): Same.
11631 (process_define_register_constraint): Same.
11632 (write_lookup_constraint_1): Same.
11633 (write_lookup_constraint_array): Same.
11634 (write_insn_constraint_len): Same.
11635 (write_reg_class_for_constraint_1): Same.
11636 (write_constraint_satisfied_p_array): Same.
11637 * genrecog.c (optimize_subroutine_group): Same.
11638 * gensupport.c (process_define_predicate): Same.
11639 (queue_pattern): Same.
11640 (remove_from_queue): Same.
11641 (process_rtx): Same.
11642 (is_predicable): Same.
11643 (change_subst_attribute): Same.
11644 (subst_pattern_match): Same.
11645 (alter_constraints): Same.
11646 (alter_attrs_for_insn): Same.
11647 (shift_output_template): Same.
11648 (alter_output_for_subst_insn): Same.
11649 (process_one_cond_exec): Same.
11650 (subst_dup): Same.
11651 (process_define_cond_exec): Same.
11652 (mnemonic_htab_callback): Same.
11653 (gen_mnemonic_attr): Same.
11654 (read_md_rtx): Same.
11655 * ggc-page.c: Same.
11656 * gimple-loop-interchange.cc (dump_reduction): Same.
11657 (dump_induction): Same.
11658 (loop_cand::~loop_cand): Same.
11659 (free_data_refs_with_aux): Same.
11660 (tree_loop_interchange::interchange_loops): Same.
11661 (tree_loop_interchange::map_inductions_to_loop): Same.
11662 (tree_loop_interchange::move_code_to_inner_loop): Same.
11663 (compute_access_stride): Same.
11664 (compute_access_strides): Same.
11665 (proper_loop_form_for_interchange): Same.
11666 (tree_loop_interchange_compute_ddrs): Same.
11667 (prune_datarefs_not_in_loop): Same.
11668 (prepare_data_references): Same.
11669 (pass_linterchange::execute): Same.
11670 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11671 (unroll_jam_possible_p): Same.
11672 (fuse_loops): Same.
11673 (adjust_unroll_factor): Same.
11674 (tree_loop_unroll_and_jam): Same.
11675 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11676 (loop_versioning::expensive_stmt_p): Same.
11677 (loop_versioning::version_for_unity): Same.
11678 (loop_versioning::dump_inner_likelihood): Same.
11679 (loop_versioning::find_per_loop_multiplication): Same.
11680 (loop_versioning::analyze_term_using_scevs): Same.
11681 (loop_versioning::record_address_fragment): Same.
11682 (loop_versioning::analyze_expr): Same.
11683 (loop_versioning::analyze_blocks): Same.
11684 (loop_versioning::prune_conditions): Same.
11685 (loop_versioning::merge_loop_info): Same.
11686 (loop_versioning::add_loop_to_queue): Same.
11687 (loop_versioning::decide_whether_loop_is_versionable): Same.
11688 (loop_versioning::make_versioning_decisions): Same.
11689 (loop_versioning::implement_versioning_decisions): Same.
11690 * gimple-ssa-evrp-analyze.c
11691 (evrp_range_analyzer::record_ranges_from_phis): Same.
11692 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11693 (count_multiple_uses): Same.
11694 (split_group): Same.
11695 (imm_store_chain_info::output_merged_store): Same.
11696 (pass_store_merging::process_store): Same.
11697 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11698 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11699 (is_max): Same.
11700 (alloca_call_type): Same.
11701 (pass_walloca::execute): Same.
11702 * gimple-streamer-in.c (input_phi): Same.
11703 (input_gimple_stmt): Same.
11704 * gimple-streamer.h: Same.
11705 * godump.c (go_force_record_alignment): Same.
11706 (go_format_type): Same.
11707 (go_output_type): Same.
11708 (go_output_fndecl): Same.
11709 (go_output_typedef): Same.
11710 (keyword_hash_init): Same.
11711 (find_dummy_types): Same.
11712 * graph.c (draw_cfg_nodes_no_loops): Same.
11713 (draw_cfg_nodes_for_loop): Same.
11714 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11715 * hsa-brig.c: Same.
11716 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11717 * hsa-dump.c (dump_hsa_cfun): Same.
11718 * hsa-gen.c (gen_function_def_parameters): Same.
11719 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11720 * input.c (dump_line_table_statistics): Same.
11721 (test_lexer): Same.
11722 * input.h: Same.
11723 * internal-fn.c (get_multi_vector_move): Same.
11724 (expand_load_lanes_optab_fn): Same.
11725 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11726 (expand_GOMP_SIMT_EXIT): Same.
11727 (expand_GOMP_SIMT_LAST_LANE): Same.
11728 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11729 (expand_GOMP_SIMT_VOTE_ANY): Same.
11730 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11731 (expand_GOMP_SIMT_XCHG_IDX): Same.
11732 (expand_addsub_overflow): Same.
11733 (expand_neg_overflow): Same.
11734 (expand_mul_overflow): Same.
11735 (expand_call_mem_ref): Same.
11736 (expand_mask_load_optab_fn): Same.
11737 (expand_scatter_store_optab_fn): Same.
11738 (expand_gather_load_optab_fn): Same.
11739 * ipa-cp.c (ipa_get_parm_lattices): Same.
11740 (print_all_lattices): Same.
11741 (ignore_edge_p): Same.
11742 (build_toporder_info): Same.
11743 (free_toporder_info): Same.
11744 (push_node_to_stack): Same.
11745 (ipcp_lattice<valtype>::set_contains_variable): Same.
11746 (set_agg_lats_to_bottom): Same.
11747 (ipcp_bits_lattice::meet_with): Same.
11748 (set_single_call_flag): Same.
11749 (initialize_node_lattices): Same.
11750 (ipa_get_jf_ancestor_result): Same.
11751 (ipcp_verify_propagated_values): Same.
11752 (propagate_scalar_across_jump_function): Same.
11753 (propagate_context_across_jump_function): Same.
11754 (propagate_bits_across_jump_function): Same.
11755 (ipa_vr_operation_and_type_effects): Same.
11756 (propagate_vr_across_jump_function): Same.
11757 (set_check_aggs_by_ref): Same.
11758 (set_chain_of_aglats_contains_variable): Same.
11759 (merge_aggregate_lattices): Same.
11760 (agg_pass_through_permissible_p): Same.
11761 (propagate_aggs_across_jump_function): Same.
11762 (call_passes_through_thunk_p): Same.
11763 (propagate_constants_across_call): Same.
11764 (devirtualization_time_bonus): Same.
11765 (good_cloning_opportunity_p): Same.
11766 (context_independent_aggregate_values): Same.
11767 (gather_context_independent_values): Same.
11768 (perform_estimation_of_a_value): Same.
11769 (estimate_local_effects): Same.
11770 (value_topo_info<valtype>::add_val): Same.
11771 (add_all_node_vals_to_toposort): Same.
11772 (value_topo_info<valtype>::propagate_effects): Same.
11773 (ipcp_propagate_stage): Same.
11774 (ipcp_discover_new_direct_edges): Same.
11775 (same_node_or_its_all_contexts_clone_p): Same.
11776 (cgraph_edge_brings_value_p): Same.
11777 (gather_edges_for_value): Same.
11778 (create_specialized_node): Same.
11779 (find_more_scalar_values_for_callers_subset): Same.
11780 (find_more_contexts_for_caller_subset): Same.
11781 (copy_plats_to_inter): Same.
11782 (intersect_aggregates_with_edge): Same.
11783 (find_aggregate_values_for_callers_subset): Same.
11784 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11785 (decide_about_value): Same.
11786 (decide_whether_version_node): Same.
11787 (spread_undeadness): Same.
11788 (identify_dead_nodes): Same.
11789 (ipcp_store_vr_results): Same.
11790 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11791 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11792 (redirect_to_unreachable): Same.
11793 (edge_set_predicate): Same.
11794 (evaluate_conditions_for_known_args): Same.
11795 (evaluate_properties_for_edge): Same.
11796 (ipa_fn_summary_t::duplicate): Same.
11797 (ipa_call_summary_t::duplicate): Same.
11798 (dump_ipa_call_summary): Same.
11799 (ipa_dump_fn_summary): Same.
11800 (eliminated_by_inlining_prob): Same.
11801 (set_cond_stmt_execution_predicate): Same.
11802 (set_switch_stmt_execution_predicate): Same.
11803 (compute_bb_predicates): Same.
11804 (will_be_nonconstant_expr_predicate): Same.
11805 (phi_result_unknown_predicate): Same.
11806 (analyze_function_body): Same.
11807 (compute_fn_summary): Same.
11808 (estimate_edge_devirt_benefit): Same.
11809 (estimate_edge_size_and_time): Same.
11810 (estimate_calls_size_and_time): Same.
11811 (estimate_node_size_and_time): Same.
11812 (remap_edge_change_prob): Same.
11813 (remap_edge_summaries): Same.
11814 (ipa_merge_fn_summary_after_inlining): Same.
11815 (ipa_fn_summary_generate): Same.
11816 (inline_read_section): Same.
11817 (ipa_fn_summary_read): Same.
11818 (ipa_fn_summary_write): Same.
11819 * ipa-fnsummary.h: Same.
11820 * ipa-hsa.c (ipa_hsa_read_section): Same.
11821 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11822 * ipa-icf.c (sem_function::param_used_p): Same.
11823 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11824 * ipa-inline.c (edge_badness): Same.
11825 (inline_small_functions): Same.
11826 * ipa-polymorphic-call.c
11827 (ipa_polymorphic_call_context::stream_out): Same.
11828 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11829 (predicate::remap_after_inlining): Same.
11830 (predicate::stream_out): Same.
11831 * ipa-predicate.h: Same.
11832 * ipa-profile.c (ipa_profile_read_summary): Same.
11833 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11834 (count_formal_params): Same.
11835 (ipa_dump_param): Same.
11836 (ipa_alloc_node_params): Same.
11837 (ipa_print_node_jump_functions_for_edge): Same.
11838 (ipa_print_node_jump_functions): Same.
11839 (ipa_load_from_parm_agg): Same.
11840 (get_ancestor_addr_info): Same.
11841 (ipa_compute_jump_functions_for_edge): Same.
11842 (ipa_analyze_virtual_call_uses): Same.
11843 (ipa_analyze_stmt_uses): Same.
11844 (ipa_analyze_params_uses_in_bb): Same.
11845 (update_jump_functions_after_inlining): Same.
11846 (try_decrement_rdesc_refcount): Same.
11847 (ipa_impossible_devirt_target): Same.
11848 (update_indirect_edges_after_inlining): Same.
11849 (combine_controlled_uses_counters): Same.
11850 (ipa_edge_args_sum_t::duplicate): Same.
11851 (ipa_write_jump_function): Same.
11852 (ipa_write_indirect_edge_info): Same.
11853 (ipa_write_node_info): Same.
11854 (ipa_read_edge_info): Same.
11855 (ipa_prop_read_section): Same.
11856 (read_replacements_section): Same.
11857 * ipa-prop.h (ipa_get_param_count): Same.
11858 (ipa_get_param): Same.
11859 (ipa_get_type): Same.
11860 (ipa_get_param_move_cost): Same.
11861 (ipa_set_param_used): Same.
11862 (ipa_get_controlled_uses): Same.
11863 (ipa_set_controlled_uses): Same.
11864 (ipa_get_cs_argument_count): Same.
11865 * ipa-pure-const.c (analyze_function): Same.
11866 (pure_const_read_summary): Same.
11867 * ipa-ref.h: Same.
11868 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11869 * ipa-split.c (test_nonssa_use): Same.
11870 (dump_split_point): Same.
11871 (dominated_by_forbidden): Same.
11872 (split_part_set_ssa_name_p): Same.
11873 (find_split_points): Same.
11874 * ira-build.c (finish_loop_tree_nodes): Same.
11875 (low_pressure_loop_node_p): Same.
11876 * ira-color.c (ira_reuse_stack_slot): Same.
11877 * ira-int.h: Same.
11878 * ira.c (setup_reg_equiv): Same.
11879 (print_insn_chain): Same.
11880 (ira): Same.
11881 * loop-doloop.c (doloop_condition_get): Same.
11882 (add_test): Same.
11883 (record_reg_sets): Same.
11884 (doloop_optimize): Same.
11885 * loop-init.c (loop_optimizer_init): Same.
11886 (fix_loop_structure): Same.
11887 * loop-invariant.c (merge_identical_invariants): Same.
11888 (compute_always_reached): Same.
11889 (find_exits): Same.
11890 (may_assign_reg_p): Same.
11891 (find_invariants_bb): Same.
11892 (find_invariants_body): Same.
11893 (replace_uses): Same.
11894 (can_move_invariant_reg): Same.
11895 (free_inv_motion_data): Same.
11896 (move_single_loop_invariants): Same.
11897 (change_pressure): Same.
11898 (mark_ref_regs): Same.
11899 (calculate_loop_reg_pressure): Same.
11900 * loop-iv.c (biv_entry_hasher::equal): Same.
11901 (iv_extend_to_rtx_code): Same.
11902 (check_iv_ref_table_size): Same.
11903 (clear_iv_info): Same.
11904 (latch_dominating_def): Same.
11905 (iv_get_reaching_def): Same.
11906 (iv_constant): Same.
11907 (iv_subreg): Same.
11908 (iv_extend): Same.
11909 (iv_neg): Same.
11910 (iv_add): Same.
11911 (iv_mult): Same.
11912 (get_biv_step): Same.
11913 (record_iv): Same.
11914 (analyzed_for_bivness_p): Same.
11915 (record_biv): Same.
11916 (iv_analyze_biv): Same.
11917 (iv_analyze_expr): Same.
11918 (iv_analyze_def): Same.
11919 (iv_analyze_op): Same.
11920 (iv_analyze): Same.
11921 (iv_analyze_result): Same.
11922 (biv_p): Same.
11923 (eliminate_implied_conditions): Same.
11924 (simplify_using_initial_values): Same.
11925 (shorten_into_mode): Same.
11926 (canonicalize_iv_subregs): Same.
11927 (determine_max_iter): Same.
11928 (check_simple_exit): Same.
11929 (find_simple_exit): Same.
11930 (get_simple_loop_desc): Same.
11931 * loop-unroll.c (report_unroll): Same.
11932 (decide_unrolling): Same.
11933 (unroll_loops): Same.
11934 (loop_exit_at_end_p): Same.
11935 (decide_unroll_constant_iterations): Same.
11936 (unroll_loop_constant_iterations): Same.
11937 (compare_and_jump_seq): Same.
11938 (unroll_loop_runtime_iterations): Same.
11939 (decide_unroll_stupid): Same.
11940 (unroll_loop_stupid): Same.
11941 (referenced_in_one_insn_in_loop_p): Same.
11942 (reset_debug_uses_in_loop): Same.
11943 (analyze_iv_to_split_insn): Same.
11944 * lra-eliminations.c (lra_debug_elim_table): Same.
11945 (setup_can_eliminate): Same.
11946 (form_sum): Same.
11947 (lra_get_elimination_hard_regno): Same.
11948 (lra_eliminate_regs_1): Same.
11949 (eliminate_regs_in_insn): Same.
11950 (update_reg_eliminate): Same.
11951 (init_elimination): Same.
11952 (lra_eliminate): Same.
11953 * lra-int.h: Same.
11954 * lra-lives.c (initiate_live_solver): Same.
11955 * lra-remat.c (create_remat_bb_data): Same.
11956 * lra-spills.c (lra_spill): Same.
11957 * lra.c (lra_set_insn_recog_data): Same.
11958 (lra_set_used_insn_alternative_by_uid): Same.
11959 (init_reg_info): Same.
11960 (expand_reg_info): Same.
11961 * lto-cgraph.c (output_symtab): Same.
11962 (read_identifier): Same.
11963 (get_alias_symbol): Same.
11964 (input_node): Same.
11965 (input_varpool_node): Same.
11966 (input_ref): Same.
11967 (input_edge): Same.
11968 (input_cgraph_1): Same.
11969 (input_refs): Same.
11970 (input_symtab): Same.
11971 (input_offload_tables): Same.
11972 (output_cgraph_opt_summary): Same.
11973 (input_edge_opt_summary): Same.
11974 (input_cgraph_opt_section): Same.
11975 * lto-section-in.c (lto_free_raw_section_data): Same.
11976 (lto_create_simple_input_block): Same.
11977 (lto_free_function_in_decl_state_for_node): Same.
11978 * lto-streamer-in.c (lto_tag_check_set): Same.
11979 (lto_location_cache::revert_location_cache): Same.
11980 (lto_location_cache::input_location): Same.
11981 (lto_input_location): Same.
11982 (stream_input_location_now): Same.
11983 (lto_input_tree_ref): Same.
11984 (lto_input_eh_catch_list): Same.
11985 (input_eh_region): Same.
11986 (lto_init_eh): Same.
11987 (make_new_block): Same.
11988 (input_cfg): Same.
11989 (fixup_call_stmt_edges): Same.
11990 (input_struct_function_base): Same.
11991 (input_function): Same.
11992 (lto_read_body_or_constructor): Same.
11993 (lto_read_tree_1): Same.
11994 (lto_read_tree): Same.
11995 (lto_input_scc): Same.
11996 (lto_input_tree_1): Same.
11997 (lto_input_toplevel_asms): Same.
11998 (lto_input_mode_table): Same.
11999 (lto_reader_init): Same.
12000 (lto_data_in_create): Same.
12001 * lto-streamer-out.c (output_cfg): Same.
12002 * lto-streamer.h: Same.
12003 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12004 (generate_prolog_epilog): Same.
12005 (mark_loop_unsched): Same.
12006 (dump_insn_location): Same.
12007 (loop_canon_p): Same.
12008 (sms_schedule): Same.
12009 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12010 (expand_omp_for_generic): Same.
12011 (expand_omp_for_static_nochunk): Same.
12012 (expand_omp_for_static_chunk): Same.
12013 (expand_omp_simd): Same.
12014 (expand_omp_taskloop_for_inner): Same.
12015 (expand_oacc_for): Same.
12016 (expand_omp_atomic_pipeline): Same.
12017 (mark_loops_in_oacc_kernels_region): Same.
12018 * omp-offload.c (oacc_xform_loop): Same.
12019 * omp-simd-clone.c (simd_clone_adjust): Same.
12020 * optabs-query.c (get_traditional_extraction_insn): Same.
12021 * optabs.c (expand_vector_broadcast): Same.
12022 (expand_binop_directly): Same.
12023 (expand_twoval_unop): Same.
12024 (expand_twoval_binop): Same.
12025 (expand_unop_direct): Same.
12026 (emit_indirect_jump): Same.
12027 (emit_conditional_move): Same.
12028 (emit_conditional_neg_or_complement): Same.
12029 (emit_conditional_add): Same.
12030 (vector_compare_rtx): Same.
12031 (expand_vec_perm_1): Same.
12032 (expand_vec_perm_const): Same.
12033 (expand_vec_cond_expr): Same.
12034 (expand_vec_series_expr): Same.
12035 (maybe_emit_atomic_exchange): Same.
12036 (maybe_emit_sync_lock_test_and_set): Same.
12037 (expand_atomic_compare_and_swap): Same.
12038 (expand_atomic_load): Same.
12039 (expand_atomic_store): Same.
12040 (maybe_emit_op): Same.
12041 (valid_multiword_target_p): Same.
12042 (create_integer_operand): Same.
12043 (maybe_legitimize_operand_same_code): Same.
12044 (maybe_legitimize_operand): Same.
12045 (create_convert_operand_from_type): Same.
12046 (can_reuse_operands_p): Same.
12047 (maybe_legitimize_operands): Same.
12048 (maybe_gen_insn): Same.
12049 (maybe_expand_insn): Same.
12050 (maybe_expand_jump_insn): Same.
12051 (expand_insn): Same.
12052 * optabs.h (create_expand_operand): Same.
12053 (create_fixed_operand): Same.
12054 (create_output_operand): Same.
12055 (create_input_operand): Same.
12056 (create_convert_operand_to): Same.
12057 (create_convert_operand_from): Same.
12058 * optinfo.h: Same.
12059 * poly-int.h: Same.
12060 * predict.c (optimize_insn_for_speed_p): Same.
12061 (optimize_loop_for_size_p): Same.
12062 (optimize_loop_for_speed_p): Same.
12063 (optimize_loop_nest_for_speed_p): Same.
12064 (get_base_value): Same.
12065 (predicted_by_loop_heuristics_p): Same.
12066 (predict_extra_loop_exits): Same.
12067 (predict_loops): Same.
12068 (predict_paths_for_bb): Same.
12069 (predict_paths_leading_to): Same.
12070 (propagate_freq): Same.
12071 (pass_profile::execute): Same.
12072 * predict.h: Same.
12073 * profile-count.c (profile_count::differs_from_p): Same.
12074 (profile_probability::differs_lot_from_p): Same.
12075 * profile-count.h: Same.
12076 * profile.c (branch_prob): Same.
12077 * regrename.c (free_chain_data): Same.
12078 (mark_conflict): Same.
12079 (create_new_chain): Same.
12080 (merge_overlapping_regs): Same.
12081 (init_rename_info): Same.
12082 (merge_chains): Same.
12083 (regrename_analyze): Same.
12084 (regrename_do_replace): Same.
12085 (scan_rtx_reg): Same.
12086 (record_out_operands): Same.
12087 (build_def_use): Same.
12088 * regrename.h: Same.
12089 * reload.h: Same.
12090 * reload1.c (init_reload): Same.
12091 (maybe_fix_stack_asms): Same.
12092 (copy_reloads): Same.
12093 (count_pseudo): Same.
12094 (count_spilled_pseudo): Same.
12095 (find_reg): Same.
12096 (find_reload_regs): Same.
12097 (select_reload_regs): Same.
12098 (spill_hard_reg): Same.
12099 (fixup_eh_region_note): Same.
12100 (set_reload_reg): Same.
12101 (allocate_reload_reg): Same.
12102 (compute_reload_subreg_offset): Same.
12103 (reload_adjust_reg_for_icode): Same.
12104 (emit_input_reload_insns): Same.
12105 (emit_output_reload_insns): Same.
12106 (do_input_reload): Same.
12107 (inherit_piecemeal_p): Same.
12108 * rtl.h: Same.
12109 * sanopt.c (maybe_get_dominating_check): Same.
12110 (maybe_optimize_ubsan_ptr_ifn): Same.
12111 (can_remove_asan_check): Same.
12112 (maybe_optimize_asan_check_ifn): Same.
12113 (sanopt_optimize_walker): Same.
12114 * sched-deps.c (add_dependence_list): Same.
12115 (chain_to_prev_insn): Same.
12116 (add_insn_mem_dependence): Same.
12117 (create_insn_reg_set): Same.
12118 (maybe_extend_reg_info_p): Same.
12119 (sched_analyze_reg): Same.
12120 (sched_analyze_1): Same.
12121 (get_implicit_reg_pending_clobbers): Same.
12122 (chain_to_prev_insn_p): Same.
12123 (deps_analyze_insn): Same.
12124 (deps_start_bb): Same.
12125 (sched_free_deps): Same.
12126 (init_deps): Same.
12127 (init_deps_reg_last): Same.
12128 (free_deps): Same.
12129 * sched-ebb.c: Same.
12130 * sched-int.h: Same.
12131 * sched-rgn.c (add_branch_dependences): Same.
12132 (concat_insn_mem_list): Same.
12133 (deps_join): Same.
12134 (sched_rgn_compute_dependencies): Same.
12135 * sel-sched-ir.c (reset_target_context): Same.
12136 (copy_deps_context): Same.
12137 (init_id_from_df): Same.
12138 (has_dependence_p): Same.
12139 (change_loops_latches): Same.
12140 (bb_top_order_comparator): Same.
12141 (make_region_from_loop_preheader): Same.
12142 (sel_init_pipelining): Same.
12143 (get_loop_nest_for_rgn): Same.
12144 (make_regions_from_the_rest): Same.
12145 (sel_is_loop_preheader_p): Same.
12146 * sel-sched-ir.h (inner_loop_header_p): Same.
12147 (get_all_loop_exits): Same.
12148 * selftest.h: Same.
12149 * sese.c (sese_build_liveouts): Same.
12150 (sese_insert_phis_for_liveouts): Same.
12151 * sese.h (defined_in_sese_p): Same.
12152 * sreal.c (sreal::stream_out): Same.
12153 * sreal.h: Same.
12154 * streamer-hooks.h: Same.
12155 * target-globals.c (save_target_globals): Same.
12156 * target-globals.h: Same.
12157 * target.def: Same.
12158 * target.h: Same.
12159 * targhooks.c (default_has_ifunc_p): Same.
12160 (default_empty_mask_is_expensive): Same.
12161 (default_init_cost): Same.
12162 * targhooks.h: Same.
12163 * toplev.c: Same.
12164 * tree-affine.c (aff_combination_mult): Same.
12165 (aff_combination_expand): Same.
12166 (aff_combination_constant_multiple_p): Same.
12167 * tree-affine.h: Same.
12168 * tree-cfg.c (build_gimple_cfg): Same.
12169 (replace_loop_annotate_in_block): Same.
12170 (replace_uses_by): Same.
12171 (remove_bb): Same.
12172 (dump_cfg_stats): Same.
12173 (gimple_duplicate_sese_region): Same.
12174 (gimple_duplicate_sese_tail): Same.
12175 (move_block_to_fn): Same.
12176 (replace_block_vars_by_duplicates): Same.
12177 (move_sese_region_to_fn): Same.
12178 (print_loops_bb): Same.
12179 (print_loop): Same.
12180 (print_loops): Same.
12181 (debug): Same.
12182 (debug_loops): Same.
12183 * tree-cfg.h: Same.
12184 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12185 (chrec_fold_multiply_poly_poly): Same.
12186 (chrec_evaluate): Same.
12187 (chrec_component_in_loop_num): Same.
12188 (reset_evolution_in_loop): Same.
12189 (is_multivariate_chrec): Same.
12190 (chrec_contains_symbols): Same.
12191 (nb_vars_in_chrec): Same.
12192 (chrec_convert_1): Same.
12193 (chrec_convert_aggressive): Same.
12194 * tree-chrec.h: Same.
12195 * tree-core.h: Same.
12196 * tree-data-ref.c (dump_data_dependence_relation): Same.
12197 (canonicalize_base_object_address): Same.
12198 (data_ref_compare_tree): Same.
12199 (prune_runtime_alias_test_list): Same.
12200 (get_segment_min_max): Same.
12201 (create_intersect_range_checks): Same.
12202 (conflict_fn_no_dependence): Same.
12203 (object_address_invariant_in_loop_p): Same.
12204 (analyze_ziv_subscript): Same.
12205 (analyze_siv_subscript_cst_affine): Same.
12206 (analyze_miv_subscript): Same.
12207 (analyze_overlapping_iterations): Same.
12208 (build_classic_dist_vector_1): Same.
12209 (add_other_self_distances): Same.
12210 (same_access_functions): Same.
12211 (build_classic_dir_vector): Same.
12212 (subscript_dependence_tester_1): Same.
12213 (subscript_dependence_tester): Same.
12214 (access_functions_are_affine_or_constant_p): Same.
12215 (get_references_in_stmt): Same.
12216 (loop_nest_has_data_refs): Same.
12217 (graphite_find_data_references_in_stmt): Same.
12218 (find_data_references_in_bb): Same.
12219 (get_base_for_alignment): Same.
12220 (find_loop_nest_1): Same.
12221 (find_loop_nest): Same.
12222 * tree-data-ref.h (dr_alignment): Same.
12223 (ddr_dependence_level): Same.
12224 * tree-if-conv.c (fold_build_cond_expr): Same.
12225 (add_to_predicate_list): Same.
12226 (add_to_dst_predicate_list): Same.
12227 (phi_convertible_by_degenerating_args): Same.
12228 (idx_within_array_bound): Same.
12229 (all_preds_critical_p): Same.
12230 (pred_blocks_visited_p): Same.
12231 (predicate_bbs): Same.
12232 (build_region): Same.
12233 (if_convertible_loop_p_1): Same.
12234 (is_cond_scalar_reduction): Same.
12235 (predicate_scalar_phi): Same.
12236 (remove_conditions_and_labels): Same.
12237 (combine_blocks): Same.
12238 (version_loop_for_if_conversion): Same.
12239 (versionable_outer_loop_p): Same.
12240 (ifcvt_local_dce): Same.
12241 (tree_if_conversion): Same.
12242 (pass_if_conversion::gate): Same.
12243 * tree-if-conv.h: Same.
12244 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12245 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12246 (free_rdg): Same.
12247 (stmt_has_scalar_dependences_outside_loop): Same.
12248 (copy_loop_before): Same.
12249 (create_bb_after_loop): Same.
12250 (const_with_all_bytes_same): Same.
12251 (generate_memset_builtin): Same.
12252 (generate_memcpy_builtin): Same.
12253 (destroy_loop): Same.
12254 (build_rdg_partition_for_vertex): Same.
12255 (compute_access_range): Same.
12256 (data_ref_segment_size): Same.
12257 (latch_dominated_by_data_ref): Same.
12258 (compute_alias_check_pairs): Same.
12259 (fuse_memset_builtins): Same.
12260 (finalize_partitions): Same.
12261 (find_seed_stmts_for_distribution): Same.
12262 (prepare_perfect_loop_nest): Same.
12263 * tree-parloops.c (lambda_transform_legal_p): Same.
12264 (loop_parallel_p): Same.
12265 (reduc_stmt_res): Same.
12266 (add_field_for_name): Same.
12267 (create_call_for_reduction_1): Same.
12268 (replace_uses_in_bb_by): Same.
12269 (transform_to_exit_first_loop_alt): Same.
12270 (try_transform_to_exit_first_loop_alt): Same.
12271 (transform_to_exit_first_loop): Same.
12272 (num_phis): Same.
12273 (gen_parallel_loop): Same.
12274 (gather_scalar_reductions): Same.
12275 (get_omp_data_i_param): Same.
12276 (try_create_reduction_list): Same.
12277 (oacc_entry_exit_single_gang): Same.
12278 (parallelize_loops): Same.
12279 * tree-pass.h: Same.
12280 * tree-predcom.c (determine_offset): Same.
12281 (last_always_executed_block): Same.
12282 (split_data_refs_to_components): Same.
12283 (suitable_component_p): Same.
12284 (valid_initializer_p): Same.
12285 (find_looparound_phi): Same.
12286 (insert_looparound_copy): Same.
12287 (add_looparound_copies): Same.
12288 (determine_roots_comp): Same.
12289 (predcom_tmp_var): Same.
12290 (initialize_root_vars): Same.
12291 (initialize_root_vars_store_elim_1): Same.
12292 (initialize_root_vars_store_elim_2): Same.
12293 (finalize_eliminated_stores): Same.
12294 (initialize_root_vars_lm): Same.
12295 (remove_stmt): Same.
12296 (determine_unroll_factor): Same.
12297 (execute_pred_commoning_cbck): Same.
12298 (base_names_in_chain_on): Same.
12299 (combine_chains): Same.
12300 (pcom_stmt_dominates_stmt_p): Same.
12301 (try_combine_chains): Same.
12302 (prepare_initializers_chain_store_elim): Same.
12303 (prepare_initializers_chain): Same.
12304 (prepare_initializers): Same.
12305 (prepare_finalizers_chain): Same.
12306 (prepare_finalizers): Same.
12307 (insert_init_seqs): Same.
12308 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12309 (compute_overall_effect_of_inner_loop): Same.
12310 (add_to_evolution_1): Same.
12311 (add_to_evolution): Same.
12312 (follow_ssa_edge_binary): Same.
12313 (follow_ssa_edge_expr): Same.
12314 (backedge_phi_arg_p): Same.
12315 (follow_ssa_edge_in_condition_phi_branch): Same.
12316 (follow_ssa_edge_in_condition_phi): Same.
12317 (follow_ssa_edge_inner_loop_phi): Same.
12318 (follow_ssa_edge): Same.
12319 (analyze_evolution_in_loop): Same.
12320 (analyze_initial_condition): Same.
12321 (interpret_loop_phi): Same.
12322 (interpret_condition_phi): Same.
12323 (interpret_rhs_expr): Same.
12324 (interpret_expr): Same.
12325 (interpret_gimple_assign): Same.
12326 (analyze_scalar_evolution_1): Same.
12327 (analyze_scalar_evolution): Same.
12328 (analyze_scalar_evolution_for_address_of): Same.
12329 (get_instantiated_value_entry): Same.
12330 (loop_closed_phi_def): Same.
12331 (instantiate_scev_name): Same.
12332 (instantiate_scev_poly): Same.
12333 (instantiate_scev_binary): Same.
12334 (instantiate_scev_convert): Same.
12335 (instantiate_scev_not): Same.
12336 (instantiate_scev_r): Same.
12337 (instantiate_scev): Same.
12338 (resolve_mixers): Same.
12339 (initialize_scalar_evolutions_analyzer): Same.
12340 (scev_reset_htab): Same.
12341 (scev_reset): Same.
12342 (derive_simple_iv_with_niters): Same.
12343 (simple_iv_with_niters): Same.
12344 (expression_expensive_p): Same.
12345 (final_value_replacement_loop): Same.
12346 * tree-scalar-evolution.h (block_before_loop): Same.
12347 * tree-ssa-address.h: Same.
12348 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12349 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12350 (record_edge_info): Same.
12351 * tree-ssa-live.c (var_map_base_fini): Same.
12352 (remove_unused_locals): Same.
12353 * tree-ssa-live.h: Same.
12354 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12355 (pass_ch_vect::execute): Same.
12356 (pass_ch::process_loop_p): Same.
12357 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12358 (movement_possibility): Same.
12359 (outermost_invariant_loop): Same.
12360 (stmt_cost): Same.
12361 (determine_max_movement): Same.
12362 (invariantness_dom_walker::before_dom_children): Same.
12363 (move_computations): Same.
12364 (may_move_till): Same.
12365 (force_move_till_op): Same.
12366 (force_move_till): Same.
12367 (memref_free): Same.
12368 (record_mem_ref_loc): Same.
12369 (set_ref_stored_in_loop): Same.
12370 (mark_ref_stored): Same.
12371 (sort_bbs_in_loop_postorder_cmp): Same.
12372 (sort_locs_in_loop_postorder_cmp): Same.
12373 (analyze_memory_references): Same.
12374 (mem_refs_may_alias_p): Same.
12375 (find_ref_loc_in_loop_cmp): Same.
12376 (rewrite_mem_ref_loc::operator): Same.
12377 (first_mem_ref_loc_1::operator): Same.
12378 (sm_set_flag_if_changed::operator): Same.
12379 (execute_sm_if_changed_flag_set): Same.
12380 (execute_sm): Same.
12381 (hoist_memory_references): Same.
12382 (ref_always_accessed::operator): Same.
12383 (refs_independent_p): Same.
12384 (record_dep_loop): Same.
12385 (ref_indep_loop_p_1): Same.
12386 (ref_indep_loop_p): Same.
12387 (can_sm_ref_p): Same.
12388 (find_refs_for_sm): Same.
12389 (loop_suitable_for_sm): Same.
12390 (store_motion_loop): Same.
12391 (store_motion): Same.
12392 (fill_always_executed_in): Same.
12393 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12394 (estimated_unrolled_size): Same.
12395 (loop_edge_to_cancel): Same.
12396 (remove_exits_and_undefined_stmts): Same.
12397 (remove_redundant_iv_tests): Same.
12398 (unloop_loops): Same.
12399 (estimated_peeled_sequence_size): Same.
12400 (try_peel_loop): Same.
12401 (canonicalize_loop_induction_variables): Same.
12402 (canonicalize_induction_variables): Same.
12403 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12404 (name_info): Same.
12405 (stmt_after_inc_pos): Same.
12406 (contains_abnormal_ssa_name_p): Same.
12407 (niter_for_exit): Same.
12408 (find_bivs): Same.
12409 (mark_bivs): Same.
12410 (find_givs_in_bb): Same.
12411 (find_induction_variables): Same.
12412 (find_interesting_uses_cond): Same.
12413 (outermost_invariant_loop_for_expr): Same.
12414 (idx_find_step): Same.
12415 (add_candidate_1): Same.
12416 (add_iv_candidate_derived_from_uses): Same.
12417 (alloc_use_cost_map): Same.
12418 (prepare_decl_rtl): Same.
12419 (generic_predict_doloop_p): Same.
12420 (computation_cost): Same.
12421 (determine_common_wider_type): Same.
12422 (get_computation_aff_1): Same.
12423 (get_use_type): Same.
12424 (determine_group_iv_cost_address): Same.
12425 (iv_period): Same.
12426 (difference_cannot_overflow_p): Same.
12427 (may_eliminate_iv): Same.
12428 (determine_set_costs): Same.
12429 (cheaper_cost_pair): Same.
12430 (compare_cost_pair): Same.
12431 (iv_ca_cand_for_group): Same.
12432 (iv_ca_recount_cost): Same.
12433 (iv_ca_set_remove_invs): Same.
12434 (iv_ca_set_no_cp): Same.
12435 (iv_ca_set_add_invs): Same.
12436 (iv_ca_set_cp): Same.
12437 (iv_ca_add_group): Same.
12438 (iv_ca_cost): Same.
12439 (iv_ca_compare_deps): Same.
12440 (iv_ca_delta_reverse): Same.
12441 (iv_ca_delta_commit): Same.
12442 (iv_ca_cand_used_p): Same.
12443 (iv_ca_delta_free): Same.
12444 (iv_ca_new): Same.
12445 (iv_ca_free): Same.
12446 (iv_ca_dump): Same.
12447 (iv_ca_extend): Same.
12448 (iv_ca_narrow): Same.
12449 (iv_ca_prune): Same.
12450 (cheaper_cost_with_cand): Same.
12451 (iv_ca_replace): Same.
12452 (try_add_cand_for): Same.
12453 (get_initial_solution): Same.
12454 (try_improve_iv_set): Same.
12455 (find_optimal_iv_set_1): Same.
12456 (create_new_iv): Same.
12457 (rewrite_use_compare): Same.
12458 (remove_unused_ivs): Same.
12459 (determine_scaling_factor): Same.
12460 * tree-ssa-loop-ivopts.h: Same.
12461 * tree-ssa-loop-manip.c (create_iv): Same.
12462 (compute_live_loop_exits): Same.
12463 (add_exit_phi): Same.
12464 (add_exit_phis): Same.
12465 (find_uses_to_rename_use): Same.
12466 (find_uses_to_rename_def): Same.
12467 (find_uses_to_rename_in_loop): Same.
12468 (rewrite_into_loop_closed_ssa): Same.
12469 (check_loop_closed_ssa_bb): Same.
12470 (split_loop_exit_edge): Same.
12471 (ip_end_pos): Same.
12472 (ip_normal_pos): Same.
12473 (copy_phi_node_args): Same.
12474 (gimple_duplicate_loop_to_header_edge): Same.
12475 (can_unroll_loop_p): Same.
12476 (determine_exit_conditions): Same.
12477 (scale_dominated_blocks_in_loop): Same.
12478 (niter_for_unrolled_loop): Same.
12479 (tree_transform_and_unroll_loop): Same.
12480 (rewrite_all_phi_nodes_with_iv): Same.
12481 * tree-ssa-loop-manip.h: Same.
12482 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12483 (number_of_iterations_ne): Same.
12484 (assert_no_overflow_lt): Same.
12485 (assert_loop_rolls_lt): Same.
12486 (number_of_iterations_lt): Same.
12487 (adjust_cond_for_loop_until_wrap): Same.
12488 (tree_simplify_using_condition): Same.
12489 (simplify_using_initial_conditions): Same.
12490 (simplify_using_outer_evolutions): Same.
12491 (loop_only_exit_p): Same.
12492 (ssa_defined_by_minus_one_stmt_p): Same.
12493 (number_of_iterations_popcount): Same.
12494 (number_of_iterations_exit): Same.
12495 (find_loop_niter): Same.
12496 (finite_loop_p): Same.
12497 (chain_of_csts_start): Same.
12498 (get_val_for): Same.
12499 (loop_niter_by_eval): Same.
12500 (derive_constant_upper_bound_ops): Same.
12501 (do_warn_aggressive_loop_optimizations): Same.
12502 (record_estimate): Same.
12503 (get_cst_init_from_scev): Same.
12504 (record_nonwrapping_iv): Same.
12505 (idx_infer_loop_bounds): Same.
12506 (infer_loop_bounds_from_ref): Same.
12507 (infer_loop_bounds_from_array): Same.
12508 (infer_loop_bounds_from_pointer_arith): Same.
12509 (infer_loop_bounds_from_signedness): Same.
12510 (bound_index): Same.
12511 (discover_iteration_bound_by_body_walk): Same.
12512 (maybe_lower_iteration_bound): Same.
12513 (estimate_numbers_of_iterations): Same.
12514 (estimated_loop_iterations): Same.
12515 (estimated_loop_iterations_int): Same.
12516 (max_loop_iterations): Same.
12517 (max_loop_iterations_int): Same.
12518 (likely_max_loop_iterations): Same.
12519 (likely_max_loop_iterations_int): Same.
12520 (estimated_stmt_executions_int): Same.
12521 (max_stmt_executions): Same.
12522 (likely_max_stmt_executions): Same.
12523 (estimated_stmt_executions): Same.
12524 (stmt_dominates_stmt_p): Same.
12525 (nowrap_type_p): Same.
12526 (loop_exits_before_overflow): Same.
12527 (scev_var_range_cant_overflow): Same.
12528 (scev_probably_wraps_p): Same.
12529 (free_numbers_of_iterations_estimates): Same.
12530 * tree-ssa-loop-niter.h: Same.
12531 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12532 (idx_analyze_ref): Same.
12533 (analyze_ref): Same.
12534 (gather_memory_references_ref): Same.
12535 (mark_nontemporal_store): Same.
12536 (emit_mfence_after_loop): Same.
12537 (may_use_storent_in_loop_p): Same.
12538 (mark_nontemporal_stores): Same.
12539 (should_unroll_loop_p): Same.
12540 (volume_of_dist_vector): Same.
12541 (add_subscript_strides): Same.
12542 (self_reuse_distance): Same.
12543 (insn_to_prefetch_ratio_too_small_p): Same.
12544 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12545 (patch_loop_exit): Same.
12546 (find_or_create_guard_phi): Same.
12547 (easy_exit_values): Same.
12548 (connect_loop_phis): Same.
12549 (connect_loops): Same.
12550 (compute_new_first_bound): Same.
12551 (split_loop): Same.
12552 (tree_ssa_split_loops): Same.
12553 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12554 (is_maybe_undefined): Same.
12555 (tree_may_unswitch_on): Same.
12556 (simplify_using_entry_checks): Same.
12557 (tree_unswitch_single_loop): Same.
12558 (tree_unswitch_loop): Same.
12559 (tree_unswitch_outer_loop): Same.
12560 (empty_bb_without_guard_p): Same.
12561 (used_outside_loop_p): Same.
12562 (get_vop_from_header): Same.
12563 (hoist_guard): Same.
12564 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12565 (get_lsm_tmp_name): Same.
12566 * tree-ssa-loop.h: Same.
12567 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12568 (build_and_add_sum): Same.
12569 (no_side_effect_bb): Same.
12570 (get_ops): Same.
12571 (linearize_expr): Same.
12572 (should_break_up_subtract): Same.
12573 (linearize_expr_tree): Same.
12574 * tree-ssa-scopedtables.c: Same.
12575 * tree-ssa-scopedtables.h: Same.
12576 * tree-ssa-structalias.c (condense_visit): Same.
12577 (label_visit): Same.
12578 (dump_pred_graph): Same.
12579 (perform_var_substitution): Same.
12580 (move_complex_constraints): Same.
12581 (remove_preds_and_fake_succs): Same.
12582 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12583 (determine_bb_domination_status): Same.
12584 (duplicate_thread_path): Same.
12585 (thread_through_all_blocks): Same.
12586 * tree-ssa-threadupdate.h: Same.
12587 * tree-streamer-in.c (streamer_read_string_cst): Same.
12588 (input_identifier): Same.
12589 (unpack_ts_type_common_value_fields): Same.
12590 (unpack_ts_block_value_fields): Same.
12591 (unpack_ts_translation_unit_decl_value_fields): Same.
12592 (unpack_ts_omp_clause_value_fields): Same.
12593 (streamer_read_tree_bitfields): Same.
12594 (streamer_alloc_tree): Same.
12595 (lto_input_ts_common_tree_pointers): Same.
12596 (lto_input_ts_vector_tree_pointers): Same.
12597 (lto_input_ts_poly_tree_pointers): Same.
12598 (lto_input_ts_complex_tree_pointers): Same.
12599 (lto_input_ts_decl_minimal_tree_pointers): Same.
12600 (lto_input_ts_decl_common_tree_pointers): Same.
12601 (lto_input_ts_decl_non_common_tree_pointers): Same.
12602 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12603 (lto_input_ts_field_decl_tree_pointers): Same.
12604 (lto_input_ts_function_decl_tree_pointers): Same.
12605 (lto_input_ts_type_common_tree_pointers): Same.
12606 (lto_input_ts_type_non_common_tree_pointers): Same.
12607 (lto_input_ts_list_tree_pointers): Same.
12608 (lto_input_ts_vec_tree_pointers): Same.
12609 (lto_input_ts_exp_tree_pointers): Same.
12610 (lto_input_ts_block_tree_pointers): Same.
12611 (lto_input_ts_binfo_tree_pointers): Same.
12612 (lto_input_ts_constructor_tree_pointers): Same.
12613 (lto_input_ts_omp_clause_tree_pointers): Same.
12614 (streamer_read_tree_body): Same.
12615 * tree-streamer.h: Same.
12616 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12617 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12618 (vect_analyze_possibly_independent_ddr): Same.
12619 (vect_analyze_data_ref_dependence): Same.
12620 (vect_compute_data_ref_alignment): Same.
12621 (vect_enhance_data_refs_alignment): Same.
12622 (vect_analyze_data_ref_access): Same.
12623 (vect_check_gather_scatter): Same.
12624 (vect_find_stmt_data_reference): Same.
12625 (vect_create_addr_base_for_vector_ref): Same.
12626 (vect_setup_realignment): Same.
12627 (vect_supportable_dr_alignment): Same.
12628 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12629 (adjust_phi_and_debug_stmts): Same.
12630 (vect_set_loop_mask): Same.
12631 (add_preheader_seq): Same.
12632 (vect_maybe_permute_loop_masks): Same.
12633 (vect_set_loop_masks_directly): Same.
12634 (vect_set_loop_condition_masked): Same.
12635 (vect_set_loop_condition_unmasked): Same.
12636 (slpeel_duplicate_current_defs_from_edges): Same.
12637 (slpeel_add_loop_guard): Same.
12638 (slpeel_can_duplicate_loop_p): Same.
12639 (create_lcssa_for_virtual_phi): Same.
12640 (iv_phi_p): Same.
12641 (vect_update_ivs_after_vectorizer): Same.
12642 (vect_gen_vector_loop_niters_mult_vf): Same.
12643 (slpeel_update_phi_nodes_for_loops): Same.
12644 (slpeel_update_phi_nodes_for_guard1): Same.
12645 (find_guard_arg): Same.
12646 (slpeel_update_phi_nodes_for_guard2): Same.
12647 (slpeel_update_phi_nodes_for_lcssa): Same.
12648 (vect_do_peeling): Same.
12649 (vect_create_cond_for_alias_checks): Same.
12650 (vect_loop_versioning): Same.
12651 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12652 (vect_inner_phi_in_double_reduction_p): Same.
12653 (vect_analyze_scalar_cycles_1): Same.
12654 (vect_fixup_scalar_cycles_with_patterns): Same.
12655 (vect_get_loop_niters): Same.
12656 (bb_in_loop_p): Same.
12657 (vect_get_max_nscalars_per_iter): Same.
12658 (vect_verify_full_masking): Same.
12659 (vect_compute_single_scalar_iteration_cost): Same.
12660 (vect_analyze_loop_form_1): Same.
12661 (vect_analyze_loop_form): Same.
12662 (vect_active_double_reduction_p): Same.
12663 (vect_analyze_loop_operations): Same.
12664 (neutral_op_for_slp_reduction): Same.
12665 (vect_is_simple_reduction): Same.
12666 (vect_model_reduction_cost): Same.
12667 (get_initial_def_for_reduction): Same.
12668 (get_initial_defs_for_reduction): Same.
12669 (vect_create_epilog_for_reduction): Same.
12670 (vectorize_fold_left_reduction): Same.
12671 (vectorizable_reduction): Same.
12672 (vectorizable_induction): Same.
12673 (vectorizable_live_operation): Same.
12674 (loop_niters_no_overflow): Same.
12675 (vect_get_loop_mask): Same.
12676 (vect_transform_loop_stmt): Same.
12677 (vect_transform_loop): Same.
12678 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12679 (vect_determine_precisions): Same.
12680 (vect_pattern_recog_1): Same.
12681 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12682 * tree-vect-stmts.c (stmt_vectype): Same.
12683 (process_use): Same.
12684 (vect_init_vector_1): Same.
12685 (vect_truncate_gather_scatter_offset): Same.
12686 (get_group_load_store_type): Same.
12687 (vect_build_gather_load_calls): Same.
12688 (vect_get_strided_load_store_ops): Same.
12689 (vectorizable_simd_clone_call): Same.
12690 (vectorizable_store): Same.
12691 (permute_vec_elements): Same.
12692 (vectorizable_load): Same.
12693 (vect_transform_stmt): Same.
12694 (supportable_widening_operation): Same.
12695 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12696 (vec_info::free_stmt_vec_info): Same.
12697 (vect_free_loop_info_assumptions): Same.
12698 (vect_loop_vectorized_call): Same.
12699 (set_uid_loop_bbs): Same.
12700 (vectorize_loops): Same.
12701 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12702 * tree.c (add_tree_to_fld_list): Same.
12703 (fld_type_variant_equal_p): Same.
12704 (fld_decl_context): Same.
12705 (fld_incomplete_type_of): Same.
12706 (free_lang_data_in_binfo): Same.
12707 (need_assembler_name_p): Same.
12708 (find_decls_types_r): Same.
12709 (get_eh_types_for_runtime): Same.
12710 (find_decls_types_in_eh_region): Same.
12711 (find_decls_types_in_node): Same.
12712 (assign_assembler_name_if_needed): Same.
12713 * value-prof.c (stream_out_histogram_value): Same.
12714 * value-prof.h: Same.
12715 * var-tracking.c (use_narrower_mode): Same.
12716 (prepare_call_arguments): Same.
12717 (vt_expand_loc_callback): Same.
12718 (resolve_expansions_pending_recursion): Same.
12719 (vt_expand_loc): Same.
12720 * varasm.c (const_hash_1): Same.
12721 (compare_constant): Same.
12722 (tree_output_constant_def): Same.
12723 (simplify_subtraction): Same.
12724 (get_pool_constant): Same.
12725 (output_constant_pool_2): Same.
12726 (output_constant_pool_1): Same.
12727 (mark_constants_in_pattern): Same.
12728 (mark_constant_pool): Same.
12729 (get_section_anchor): Same.
12730 * vr-values.c (compare_range_with_value): Same.
12731 (vr_values::extract_range_from_phi_node): Same.
12732 * vr-values.h: Same.
12733 * web.c (unionfind_union): Same.
12734 * wide-int.h: Same.
12735
12736 2019-07-09 Martin Sebor <msebor@redhat.com>
12737
12738 PR c++/61339
12739 * align.h: Change class-key from class to struct and vice versa
12740 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12741 * alloc-pool.h: Same.
12742 * asan.c (shadow_mem_size): Same.
12743 * auto-profile.c: Same.
12744 * basic-block.h: Same.
12745 * bitmap.h: Same.
12746 * cfgexpand.c (set_rtl): Same.
12747 (expand_one_stack_var_at): Same.
12748 * cfghooks.h: Same.
12749 * cfgloop.h: Same.
12750 * cgraph.h: Same.
12751 * config/i386/i386.h: Same.
12752 * df-problems.c (df_print_bb_index): Same.
12753 * df-scan.c: Same.
12754 * df.h (df_single_use): Same.
12755 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12756 (layout::annotation_line_showed_range_p): Same.
12757 (get_printed_columns): Same.
12758 (correction::ensure_terminated): Same.
12759 (line_corrections::~line_corrections): Same.
12760 * dojump.h: Same.
12761 * dse.c: Same.
12762 * dump-context.h: Same.
12763 * dumpfile.h: Same.
12764 * dwarf2out.c: Same.
12765 * edit-context.c: Same.
12766 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12767 * flags.h: Same.
12768 * function.c (assign_stack_local): Same.
12769 * function.h: Same.
12770 * gcc.c: Same.
12771 * gcov.c (block_info::block_info): Same.
12772 * genattrtab.c: Same.
12773 * genextract.c: Same.
12774 * genmatch.c (comparison_code_p): Same.
12775 (id_base::id_base): Same.
12776 (decision_tree::print): Same.
12777 * genoutput.c: Same.
12778 * genpreds.c (write_one_predicate_function): Same.
12779 * genrecog.c (validate_pattern): Same.
12780 (find_operand_positions): Same.
12781 (optimize_subroutine_group): Same.
12782 (merge_pattern_transition::merge_pattern_transition): Same.
12783 (merge_pattern_info::merge_pattern_info): Same.
12784 (merge_state_result::merge_state_result): Same.
12785 (merge_into_state): Same.
12786 * gensupport.c: Same.
12787 * gensupport.h: Same.
12788 * ggc-common.c (init_ggc_heuristics): Same.
12789 * ggc-tests.c (test_union): Same.
12790 * gimple-loop-interchange.cc (dump_induction): Same.
12791 * gimple-loop-versioning.cc: Same.
12792 * gimple-match.h (gimple_match_cond::any_else): Same.
12793 * gimple-ssa-backprop.c: Same.
12794 * gimple-ssa-sprintf.c: Same.
12795 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12796 Same.
12797 (store_immediate_info::store_immediate_info): Same.
12798 (merged_store_group::apply_stores): Same.
12799 (get_location_for_stmts): Same.
12800 * gimple-ssa-strength-reduction.c: Same.
12801 * gimple-ssa-warn-alloca.c: Same.
12802 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12803 * godump.c (go_type_decl): Same.
12804 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12805 * hash-map.h: Same.
12806 * hash-set-tests.c (test_set_of_strings): Same.
12807 * hsa-brig.c: Same.
12808 * hsa-common.h: Same.
12809 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12810 * input.c (assert_loceq): Same.
12811 * input.h: Same.
12812 * ipa-cp.c: Same.
12813 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12814 * ipa-fnsummary.h: Same.
12815 * ipa-inline.h: Same.
12816 * ipa-prop.h: Same.
12817 * ipa-split.c (visit_bb): Same.
12818 * ira-int.h (minmax_set_iter_next): Same.
12819 * loop-invariant.c: Same.
12820 * loop-iv.c: Same.
12821 * lra-eliminations.c: Same.
12822 * lra-int.h: Same.
12823 * lra-lives.c (mark_regno_dead): Same.
12824 * lra-remat.c: Same.
12825 * lra-spills.c: Same.
12826 * lto-streamer.h: Same.
12827 * mem-stats.h: Same.
12828 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12829 * omp-low.c (omp_clause_aligned_alignment): Same.
12830 * optabs-query.h (get_vcond_eq_icode): Same.
12831 * optabs.h: Same.
12832 * opts.c (wrap_help): Same.
12833 * poly-int.h: Same.
12834 * predict.c (predict_paths_leading_to_edge): Same.
12835 * pretty-print.h: Same.
12836 * profile-count.h: Same.
12837 * read-md.h: Same.
12838 * read-rtl-function.c: Same.
12839 * ree.c: Same.
12840 * reginfo.c: Same.
12841 * regrename.c: Same.
12842 * regrename.h: Same.
12843 * reload.h: Same.
12844 * rtl-iter.h: Same.
12845 * rtl.h (costs_add_n_insns): Same.
12846 * sanopt.c: Same.
12847 * sched-int.h: Same.
12848 * sel-sched-ir.h: Same.
12849 * selftest.h: Same.
12850 * sese.h (vec_find): Same.
12851 * stmt.c: Same.
12852 * target-globals.h: Same.
12853 * tree-affine.c (aff_combination_find_elt): Same.
12854 * tree-affine.h: Same.
12855 * tree-data-ref.h: Same.
12856 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12857 * tree-predcom.c: Same.
12858 * tree-scalar-evolution.c (find_var_scev_info): Same.
12859 * tree-ssa-alias.h: Same.
12860 * tree-ssa-ccp.c: Same.
12861 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12862 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12863 (rewrite_mem_refs): Same.
12864 (execute_sm_if_changed): Same.
12865 (hoist_memory_references): Same.
12866 * tree-ssa-loop-ivopts.c (operator<=): Same.
12867 * tree-ssa-loop.h: Same.
12868 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12869 * tree-ssa-structalias.c: Same.
12870 * tree-switch-conversion.h (cluster::cluster): Same.
12871 (simple_cluster::simple_cluster): Same.
12872 * tree-vect-patterns.c (type_conversion_p): Same.
12873 * tree-vectorizer.c (dump_stmt_cost): Same.
12874 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12875 * tree.c (protected_set_expr_location): Same.
12876 * tree.h (desired_pro_or_demotion_p): Same.
12877 (fndecl_built_in_p): Same.
12878 * unique-ptr-tests.cc: Same.
12879 * var-tracking.c (delete_variable_part): Same.
12880 * varasm.c (assemble_real): Same.
12881 (tree_output_constant_def): Same.
12882 * vec.c: Same.
12883 * wide-int-bitmask.h: Same.
12884 * wide-int.h (decompose): Same.
12885
12886 2019-07-09 Richard Biener <rguenther@suse.de>
12887
12888 PR tree-optimization/91114
12889 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12890 find a vector type isn't fatal.
12891
12892 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12893
12894 * config/aarch64/aarch64-simd.md
12895 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12896 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12897 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12898 (*aarch64_crypto_aese_fused,
12899 *aarch64_crypto_aesd_fused): Update to new definition.
12900 * config/aarch64/aarch64.c
12901 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12902
12903 2019-07-09 Richard Biener <rguenther@suse.de>
12904
12905 * gimple-match.h (gimple_match_op::resimplify): New.
12906 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12907 gimple_resimplify4, gimple_resimplify5): Remove.
12908 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12909 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12910 Make static.
12911 (gimple_match_op::resimplify): New.
12912 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12913 according to availability. Use gimple_match_op::resimplify.
12914
12915 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12916
12917 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12918
12919 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12920
12921 * config/arm/crypto.md:
12922 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12923 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12924 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12925 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12926 * config/arm/arm.c
12927 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12928 * config/arm/aarch-common-protos.h
12929 (aarch_crypto_can_dual_issue): Remove.
12930 * config/arm/aarch-common.c
12931 (aarch_crypto_can_dual_issue): Likewise.
12932 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12933 * config/arm/cortex-a53.md: Likewise.
12934 * config/arm/cortex-a57.md: Likewise.
12935 * config/arm/iterators.md:
12936 (CRYPTO_BINARY): Redefine.
12937 (CRYPTO_UNARY): Removed.
12938 (CRYPTO_AES, CRYPTO_AESMC): New.
12939
12940 2019-07-09 Richard Biener <rguenther@suse.de>
12941
12942 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12943 (vn_reference_lookup_3): If the main ref has no access path recorded
12944 but orig_ref has use it to do access-path based disambiguation.
12945 (vn_reference_lookup_pieces): Adjust.
12946 (vn_reference_lookup): Pass down original ref if we valueized.
12947
12948 2019-07-09 Martin Liska <mliska@suse.cz>
12949
12950 * doc/extend.texi: Document influence on loop
12951 optimizers.
12952
12953 2019-07-09 Martin Liska <mliska@suse.cz>
12954
12955 * lto-compress.c (lto_normalized_zstd_level): Do not use
12956 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12957 of libzstd. One can use 0 as a default compression level.
12958
12959 2019-07-09 Martin Liska <mliska@suse.cz>
12960
12961 * doc/invoke.texi: Add link from -fprofile-dir option.
12962 Use better wording for 'gcno filename'.
12963
12964 2019-07-08 Martin Sebor <msebor@redhat.com>
12965
12966 PR middle-end/71924
12967 PR middle-end/90549
12968 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12969 comment.
12970 (args_loc_t): New type.
12971 (args_loc_t, locmap_t): same.
12972 (diag_returned_locals): New function.
12973 (is_addr_local): Same.
12974 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12975 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12976 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12977
12978 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12979
12980 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12981 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12982 and casts in offset when different, both through gimple stmts
12983 and through trees. Rewritten using loops to minimize code duplication
12984 for each operand.
12985
12986 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12987
12988 * emit-rtl.c (set_insn_locations): New function moved from...
12989 * function.c (set_insn_locations): ...here.
12990 * ira-emit.c (emit_moves): Propagate location of the first instruction
12991 to the inserted move instructions.
12992 * reg-stack.c (compensate_edge): Set the location if the sequence is
12993 inserted on the edge.
12994 * rtl.h (set_insn_locations): Declare.
12995
12996 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12997
12998 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12999 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13000 .machine string.
13001
13002 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13003
13004 PR rtl-optimization/88233
13005 * common.opt (fsplit-wide-types-early): New option.
13006 * common/config/rs6000/rs6000-common.c
13007 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13008 OPT_LEVELS_ALL.
13009 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13010 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13011 flag_split_wide_types_early.
13012 (pass_data_lower_subreg3): New.
13013 (pass_lower_subreg3): New.
13014 (make_pass_lower_subreg3): New.
13015 * passes.def (pass_lower_subreg2): Move after the loop passes.
13016 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13017 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13018 the pass pipeline; its previous place is taken by ...
13019 (make_pass_lower_subreg3): ... this.
13020
13021 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13022
13023 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13024 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13025
13026 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13027
13028 * config/s390/constraints.md: Add new jsc constraint.
13029 * config/s390/predicates.md: New predicates.
13030 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13031 * config/s390/s390.c (s390_valid_shift_count): New function.
13032 (print_shift_count_operand): Use s390_valid_shift_count.
13033 (print_operand): Likewise.
13034 * config/s390/s390.md: Use new predicate.
13035 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13036 * config/s390/vector.md: Use new predicate.
13037
13038 2019-07-08 Andrew Waterman <andrew@sifive.com>
13039 Jim Wilson <jimw@sifive.com>
13040
13041 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13042 bitsize instead of BITS_PER_WORD.
13043
13044 2019-07-08 Martin Liska <mliska@suse.cz>
13045
13046 * collect2.c (defined): Revert to before r254460.
13047 (scan_prog_file): Revert to before r254460.
13048
13049 2019-07-08 Richard Biener <rguenther@suse.de>
13050
13051 PR tree-optimization/83518
13052 * tree-ssa-sccvn.c: Include splay-tree.h.
13053 (struct pd_range, struct pd_data): New.
13054 (struct vn_walk_cb_data): Add data to track partial definitions.
13055 (vn_walk_cb_data::~vn_walk_cb_data): New.
13056 (vn_walk_cb_data::push_partial_def): New.
13057 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13058 (vn_reference_lookup_2): When partial defs are registered give up.
13059 (vn_reference_lookup_3): Track partial defs for memset and
13060 constructor zeroing and for defs from constants.
13061
13062 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13063
13064 * doc/install.texi (bootstrap-Og): Document.
13065
13066 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13067
13068 * config/riscv/pic.md (*local_pic_load_s<mode>)
13069 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13070 referenced by <mode>, giving...
13071 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13072 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13073 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13074 use <X:MODE> for the mode attribute.
13075
13076 2019-07-07 Jeff Law <law@redhat.com>
13077
13078 PR tree-optimization/91090
13079 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13080 in handling of ranges to simplify switch statements.
13081
13082 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13083
13084 * config/darwin.c (darwin_override_options): Make a final check on PIC
13085 options.
13086
13087 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13088
13089 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13090 on for kernel code.
13091
13092 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 PR target/91068
13095 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13096 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13097 instead of matching them to "l" output operands.
13098
13099 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13100
13101 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13102 and check whether addr.reg is nonnull before using it.
13103
13104 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13105
13106 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13107 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13108 variable(s). For conditional lastprivate look through outer
13109 GIMPLE_OMP_SCAN context.
13110 (lower_omp_1): For conditional lastprivate look through outer
13111 GIMPLE_OMP_SCAN context.
13112
13113 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13114 member to combined_into_simd_safelen1.
13115 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13116 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13117 clauses if ctx->combined_into_simd_safelen1 put statements after the
13118 predicate conditionalized block rather than into it.
13119
13120 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13121
13122 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13123 operand 1.
13124 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13125 Make the choice of <mode> explicit, giving...
13126 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13127
13128 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13129
13130 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13131 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13132 of .md attributes.
13133 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13134 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13135 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13136 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13137 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13138 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13139 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13140 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13141 (*avx512f_scatterdi<mode>): Likewise.
13142 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13143
13144 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13145
13146 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13147 specify the mode iterator referenced by <mode>, giving...
13148 (*push1_h8300hs_<QHI:mode>): ...this.
13149
13150 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13151
13152 * config/gcn/gcn-valu.md
13153 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13154 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13155 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13156 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13157 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13158 but using the _exec comparison patterns.
13159 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13160 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13161 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13162 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13163 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13164 but using the _exec comparison patterns.
13165
13166 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13167
13168 * config/arm/sync.md
13169 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13170 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13171 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13172 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13173 <SIDI:cas_cmp_str>.
13174
13175 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13176
13177 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13178 (maybe_lookup_ctx): Add forward declaration.
13179 (omp_find_scan): Likewise. Walk into body of simd if composited
13180 with worksharing loop.
13181 (scan_omp_simd_scan): New function.
13182 (scan_omp_1_stmt): Call it.
13183 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13184 ctx->for_simd_scan_phase.
13185 (lower_rec_input_clauses): Do much less work for inscan reductions
13186 in ctx->for_simd_scan_phase is_simd regions.
13187 (lower_omp_scan): Set is_simd also on simd constructs composited
13188 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13189 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13190 emit their body after in simd constructs composited with worksharing
13191 loop.
13192 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13193
13194 * omp-low.c (omp_find_scan): Make static.
13195 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13196 the second loop, var2 represents the first partial sum and so needs
13197 to go before rprivb[ivar].
13198
13199 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13200
13201 * config/rs6000/rs6000-logue.c: Remove unused code.
13202
13203 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13204
13205 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13206
13207 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13208
13209 PR target/90712
13210 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13211 check with a frame laid out check.
13212
13213 2019-07-05 Richard Biener <rguenther@suse.de>
13214
13215 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13216 when comparing against a store with possibly the same value.
13217
13218 2019-07-05 Richard Biener <rguenther@suse.de>
13219
13220 PR tree-optimization/91091
13221 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13222 (walk_non_aliased_vuses): Likewise.
13223 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13224 (get_continuation_for_phi): New tbaa_p parameter and pass
13225 it down.
13226 (walk_non_aliased_vuses): Likewise.
13227 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13228 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13229 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13230 Likewise.
13231 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13232 (adjust_offsets_for_equal_base_address): New function.
13233 (vn_reference_lookup_3): Use it to catch more base equivalences.
13234 Handle and pass down tbaa_p flag.
13235 (vn_reference_lookup_pieces): Adjust.
13236 (vn_reference_lookup): Remove alias-set altering, instead pass
13237 down false as tbaa_p.
13238
13239 2019-07-05 Richard Biener <rguenther@suse.de>
13240
13241 PR tree-optimization/91091
13242 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13243 accesses can happen with -fno-strict-aliasing.
13244
13245 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13246
13247 * tree-ssa-alias.c (alias_stats): Add
13248 nonoverlapping_component_refs_since_match_p_must_overlap.
13249 (dump_alias_stats): Print it.
13250 (nonoverlapping_component_refs_since_match_p): Add early exit.
13251 (nonoverlapping_component_refs_p): Do not account early exit.
13252
13253 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13254
13255 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13256 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13257 (emit_eh_dispatch): Delete.
13258 (lower_catch): Emit the eh_dispatch manually and set the location of
13259 the first catch statement onto it.
13260 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13261 (lower_eh_dispatch): Propagate location.
13262 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13263 (eliminate_build): Likewise.
13264
13265 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13266
13267 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13268 phi nodes if possible.
13269 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13270 location info on the newly created statement.
13271 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13272 newly created increment if needed.
13273
13274 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13275
13276 PR middle-end/78884
13277 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13278 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13279 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13280 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13281 ctx->add_safelen1 is set.
13282
13283 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13284 GOMP_loop_start at the start of second worksharing loop in a scan.
13285 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13286 worksharing loop in a scan even if there are conditional lastprivates,
13287 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13288
13289 2019-07-04 Jan Hubicka <jh@suse.cz>
13290
13291 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13292 Fix check for match in the ref walk.
13293
13294 2019-07-04 Martin Liska <mliska@suse.cz>
13295
13296 * tree-ssa-loop-niter.c
13297 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13298 (estimate_numbers_of_iterations):
13299 Support __builtin_expect_with_probability for analysis
13300 of # of loop iterations.
13301
13302 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13303
13304 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13305 * except.c: Likewise.
13306 * expr.c (expand_expr_real_1): Reject it.
13307 * gimplify.c (gimplify_expr): Gimplify it, within
13308 TRY_FINALLY_EXPR.
13309 * tree-dump.c (dequeue_and_dump): Dump it.
13310 * tree-pretty-print.c (dump_generic_node): Likewise.
13311 * tree.c (block_may_fallthru): Handle it.
13312 * tree.def (EH_ELSE_EXPR): Introduce it.
13313 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13314 with GIMPLE_EH_ELSE as try/finally/else.
13315
13316 2019-07-04 Richard Biener <rguenther@suse.de>
13317
13318 PR ipa/91062
13319 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13320 parameter whether to disable GC collection.
13321 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13322 honor it.
13323 (execute_all_ipa_transforms): Likewise and pass it down.
13324 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13325 collection from applying IPA transforms.
13326 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13327 from applying IPA transforms.
13328
13329 2019-07-04 Richard Biener <rguenther@suse.de>
13330
13331 PR tree-optimization/90911
13332 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13333 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13334 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13335 scalar_loop_scaling.
13336 (vect_transform_loop): Scale scalar loop profile if needed.
13337 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13338 the loop copy from if-conversion adjust edge probabilities
13339 and scale the vectorized loop body profile, queue the scalar
13340 profile for updating after peeling.
13341
13342 2019-07-04 Jan Hubicka <jh@suse.cz>
13343
13344 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13345 parameters; return early for must-alias.
13346 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13347 outer types match, try nonoverlapping_component_refs
13348 if must-alias is not obvious.
13349 (indirect_refs_may_alias_p): Likewise.
13350 (refs_may_alias_p_2): Likewise.
13351
13352 2019-07-04 Richard Biener <rguenther@suse.de>
13353
13354 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13355 argument.
13356 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13357 globals into...
13358 (struct vn_walk_cb_data): New callback data struct.
13359 (vn_reference_lookup_2): Adjust.
13360 (vn_reference_lookup_3): Likewise.
13361 (vn_reference_lookup_pieces): Likewise.
13362 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13363 (visit_reference_op_load): Adjust.
13364
13365 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13366
13367 PR tree-optimization/91063
13368 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13369 stmt from stmts sequence before calling vect_init_vector_1.
13370 Formatting fix.
13371
13372 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13373
13374 PR target/88833
13375 * fwprop.c (reg_single_def_p): New function.
13376 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13377 (forward_propagate_into): New parameter reg_prop_only
13378 with default value false.
13379 Propagate def's src into loop only if SET_SRC and SET_DEST
13380 of def_set have single definitions.
13381 Likewise if reg_prop_only is set to true.
13382 (fwprop): New param fwprop_addr_p.
13383 Integrate fwprop_addr into fwprop.
13384 (fwprop_addr): Remove.
13385 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13386 to true.
13387 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13388 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13389 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13390
13391 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13392
13393 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13394 in worksharing loop scans.
13395
13396 PR tree-optimization/91074
13397 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13398 temporary.
13399
13400 PR rtl-optimization/90756
13401 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13402 for VECTOR_TYPE_P.
13403
13404 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13405
13406 * config/aarch64/aarch64.md: Remove redundant constraints from
13407 define_expand but keep some patterns untouched if they are
13408 specially selected by TARGET_SECONDARY_RELOAD hook.
13409 * config/aarch64/aarch64-sve.md: Likewise.
13410 * config/aarch64/atomics.md: Remove redundant constraints from
13411 define_expand.
13412 * config/aarch64/aarch64-simd.md: Likewise.
13413
13414 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13415
13416 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13417 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13418 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13419 clauses.
13420 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13421 DARWIN_NOPIE_SPEC.
13422
13423 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13424
13425 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13426 (STARTFILE_SPEC): Split crt3 into a separate spec.
13427 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13428 (DARWIN_CRT2_SPEC): New.
13429 (DARWIN_CRT3_SPEC): New.
13430 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13431 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13432 (DARWIN_CRT3_SPEC): New.
13433
13434 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13435
13436 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13437 Change the RTL attribute "length" from "4" to "*" to allow the
13438 length attribute to be adjusted automatically for prefixed load,
13439 store, and add immediate instructions.
13440 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13441 Likewise.
13442 (extendsi<mode>2, EXTSI iterator): Likewise.
13443 (movsi_internal1): Likewise.
13444 (movsi_from_sf): Likewise.
13445 (movdi_from_sf_zero_ext): Likewise.
13446 (mov<mode>_internal): Likewise.
13447 (movcc_internal1, QHI iterator): Likewise.
13448 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13449 (movsf_from_si): Likewise.
13450 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13451 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13452 (mov<mode>, FMOVE128 iterator): Likewise.
13453 (movdi_internal64): Likewise.
13454 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13455 Likewise.
13456 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13457 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13458 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13459 (vsx_splat_v4sf): Likewise.
13460
13461 2019-07-03 Mark Wielaard <mark@klomp.org>
13462
13463 PR debug/90981
13464 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13465 DW_AT_addr_base if there is actually a .debug_addr section with
13466 addresses.
13467 (output_addr_table): Add DWARF5 table header generation here after
13468 checking there are actually any addresses from...
13469 (dwarf2out_finish): ...here.
13470
13471 2019-07-03 Richard Biener <rguenther@suse.de>
13472
13473 PR middle-end/91069
13474 * match.pd (vec_perm -> bit_insert): Fix element read from
13475 first vector.
13476
13477 2019-07-03 Martin Liska <mliska@suse.cz>
13478
13479 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13480 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13481 condition.
13482 * generic-match-head.c: Include dbgcnt.h.
13483 * gimple-match-head.c: Likewise.
13484
13485 2019-07-03 Martin Liska <mliska@suse.cz>
13486
13487 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13488 (GCOV_COUNTER_V_TOPN): New.
13489 (GCOV_COUNTER_V_INDIR): Use _topn.
13490 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13491 (GCOV_TOPN_VALUES): New.
13492 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13493 (GCOV_TOPN_VALUES_COUNTERS): New.
13494 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13495 * tree-profile.c:
13496 (gimple_init_gcov_profiler): Rename variables from one_value
13497 to topn_values.
13498 (gimple_gen_one_value_profiler): Remove.
13499 (gimple_gen_topn_values_profiler): New function.
13500 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13501 names instead of SINGLE_VALUE.
13502 (stream_out_histogram_value): Likewise.
13503 (stream_in_histogram_value): Likewise.
13504 (get_most_common_single_value): Likewise.
13505 (gimple_divmod_fixed_value_transform): Likewise.
13506 (gimple_stringops_transform): Likewise.
13507 (gimple_divmod_values_to_profile): Likewise.
13508 (gimple_stringops_values_to_profile): Likewise.
13509 (gimple_find_values_to_profile): Likewise.
13510 * value-prof.h (enum hist_type): Rename to TOPN.
13511 (gimple_gen_one_value_profiler): Remove.
13512 (gimple_gen_topn_values_profiler): New.
13513
13514 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13515
13516 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13517 if it has the DW_AT_data_member_location attribute.
13518
13519 2019-07-03 Richard Biener <rguenther@suse.de>
13520
13521 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13522 dumping.
13523
13524 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13525
13526 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13527 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13528 (tlsdesc_small_sve_<mode>): Likewise.
13529
13530 2019-07-03 Martin Liska <mliska@suse.cz>
13531
13532 * Makefile.in: Define ZSTD_LIB.
13533 * common.opt: Adjust compression level
13534 to support also zstd levels.
13535 * config.in: Regenerate.
13536 * configure: Likewise.
13537 * configure.ac: Add --with-zstd and --with-zstd-include options
13538 and detect ZSTD.
13539 * doc/install.texi: Mention zstd dependency.
13540 * gcc.c: Print supported LTO compression algorithms.
13541 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13542 (lto_compression_zstd): Likewise.
13543 (lto_uncompression_zstd): Likewise.
13544 (lto_end_compression): Dispatch in between zlib and zstd.
13545 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13546 (lto_uncompression_zlib): Make it static.
13547 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13548 * lto-section-in.c (lto_get_section_data): Pass info
13549 about used compression.
13550 * lto-streamer-out.c: By default use zstd when possible.
13551 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13552 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13553
13554 2019-07-03 Martin Liska <mliska@suse.cz>
13555
13556 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13557 * lto-section-out.c (lto_destroy_simple_output_block): Never
13558 compress LTO_section_lto section.
13559 * lto-streamer-out.c (produce_asm): Do not set major_version
13560 and minor_version.
13561 (lto_output_toplevel_asms): Likewise.
13562 (produce_lto_section): New function.
13563 (lto_output): Call produce_lto_section.
13564 (lto_write_mode_table): Do not set major_version and
13565 minor_version.
13566 (produce_asm_for_decls): Likewise.
13567 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13568 type.
13569 (struct lto_header): Remove.
13570 (struct lto_section): New struct.
13571 (struct lto_simple_header): Do not inherit from lto_header.
13572 (struct lto_file_decl_data): Add lto_section_header field.
13573
13574 2019-07-03 Martin Liska <mliska@suse.cz>
13575
13576 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13577 dead assignemts.
13578 * reg-stack.c (check_asm_stack_operands): Likewise.
13579 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13580 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13581 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13582 force_expand_binop.
13583
13584 2019-07-03 Martin Liska <mliska@suse.cz>
13585
13586 PR tree-optimization/90892
13587 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13588 in string constants.
13589
13590 2019-07-03 Martin Liska <mliska@suse.cz>
13591
13592 PR middle-end/90899
13593 * multiple_target.c (create_dispatcher_calls): Add to comdat
13594 group only if set for ifunc.
13595
13596 2019-07-03 Martin Liska <mliska@suse.cz>
13597
13598 PR target/88056
13599 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13600 Define local_object_name in outer scope in order to handle
13601 use-after-scope issue.
13602
13603 2019-07-03 Martin Liska <mliska@suse.cz>
13604
13605 * common.opt: Add fprofile-note.
13606 * coverage.c (coverage_init): Append the option
13607 to bbg_file_name.
13608 * doc/invoke.texi: Document -fprofile-note.
13609
13610 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13611
13612 PR tree-optimization/91033
13613 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13614 vect_analyze_data_refs): Add bool * arguments.
13615 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13616 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13617 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13618 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13619 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13620 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13621 vect_analyze_data_refs caller.
13622
13623 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13624 clause.
13625 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13626 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13627 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13628 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13629 OMP_CLAUSE__SCANTEMP_ entry.
13630 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13631 * tree-pretty-print.c (dump_omp_clause): Likewise.
13632 * tree-nested.c (convert_nonlocal_omp_clauses,
13633 convert_local_omp_clauses): Likewise.
13634 * omp-general.h (struct omp_for_data): Add have_scantemp and
13635 have_nonctrl_scantemp members.
13636 * omp-general.c (omp_extract_for_data): Initialize them.
13637 * omp-low.c (struct omp_context): Add scan_exclusive member.
13638 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13639 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13640 ctx->scan_exclusive.
13641 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13642 of !ctx->scan_inclusive.
13643 (lower_rec_input_clauses): Simplify gimplification of dtors using
13644 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13645 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13646 loops. Don't add barrier for reduction_omp_orig_ref if
13647 ctx->scan_??xclusive.
13648 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13649 (lower_omp_scan): Use ctx->scan_exclusive instead
13650 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13651 reductions. Use new_vard != new_var instead of repeated
13652 omp_is_reference calls.
13653 (omp_find_scan, lower_omp_for_scan): New functions.
13654 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13655 inscan reductions.
13656 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13657 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13658 and fd->have_scantemp.
13659
13660 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13661 on worksharing loop propagate it as shared clause to containing
13662 combined parallel.
13663
13664 * omp-expand.c (expand_omp_for_static_nochunk,
13665 expand_omp_for_static_chunk): For nowait worksharing loop with
13666 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13667 at the end.
13668
13669 2019-07-02 qing zhao <qing.zhao@oracle.com>
13670
13671 PR preprocessor/90581
13672 * doc/cppopts.texi: Add document for -fmax-include-depth.
13673 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13674
13675 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13676
13677 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13678 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13679 (mmx_packssdw): Ditto.
13680 (mmx_punpckhbw): Ditto.
13681 (mmx_punpcklbw): Ditto.
13682 (mmx_punpckhwd): Ditto.
13683 (mmx_punpcklwd): Ditto.
13684 (mmx_punpckhdq): Ditto.
13685 (mmx_punpckldq): Ditto.
13686 (*vec_dupv4hi): Ditto.
13687 (*vec_dupv2si): Ditto.
13688 (mmx_pmovmskb): Ditto.
13689 * config/i386/sse.md (sse_cvtpi2ps): Use
13690 TARGET_SSE2 && SSE_REG_P in split condition.
13691 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13692 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13693 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13694 (ssse3_pshufbv8qi3): Ditto.
13695 (ssse3_palignrdi): Ditto.
13696
13697 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13698
13699 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13700 with inlined save and restore.
13701
13702 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13703
13704 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13705 to be inserted on single successor edge of the entry block. Then call
13706 commit_edge_insertions instead of inserting the instructions manually.
13707 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13708 RTL expansion and rebuild jump labels chain.
13709
13710 2019-07-02 Richard Biener <rguenther@suse.de>
13711
13712 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13713 TI_CHREC_KNOWN.
13714 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13715 Define here.
13716 * tree.c (build_common_tree_nodes): Initialize them.
13717 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13718 Make declarations comments.
13719 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13720 chrec_known): Remove definitions.
13721 (initialize_scalar_evolutions_analyzer): Remove.
13722 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13723 * tree-streamer.c (preload_common_nodes): Do not preload
13724 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13725
13726 2019-07-02 Jan Hubicka <jh@suse.cz>
13727
13728 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13729 sanity check.
13730
13731 2019-07-02 Jan Hubicka <jh@suse.cz>
13732
13733 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13734 to ..
13735 (nonoverlapping_component_refs_since_match_p): ... this one;
13736 handle also non-decl bases; return -1 if search gave up.
13737 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13738 nonoverlapping_component_refs_of_decl_p_no_alias to
13739 nonoverlapping_component_refs_since_match_p_may_alias,
13740 nonoverlapping_component_refs_since_match_p_no_alias.
13741 (dump_alias_stats): Update dumping.
13742 (aliasing_matching_component_refs_p): Break out from ...;
13743 dispatch to nonoverlapping_component_refs_for_decl_p
13744 and nonoverlapping_component_refs_since_match_p.
13745 (aliasing_component_refs_p): ... here; call
13746 nonoverlapping_component_refs_p in scenarios where we can not
13747 precisely determine base match.
13748 (decl_refs_may_alias_p): Use
13749 nonoverlapping_component_refs_since_match_p.
13750 (indirect_ref_may_alias_decl_p): Do not call
13751 nonoverlapping_component_refs_p.
13752 (indirect_refs_may_alias_p): Likewise.
13753
13754 2019-07-02 Jan Hubicka <jh@suse.cz>
13755
13756 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13757 to clobber of return value.
13758
13759 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13760
13761 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13762 for is_neon_type instructions that have not already been categorized.
13763
13764 2019-07-02 Richard Biener <rguenther@suse.de>
13765
13766 PR tree-optimization/58483
13767 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13768 for MEM_REF base hashing.
13769 (equal_mem_array_ref_p): Likewise for base comparison.
13770
13771 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13772
13773 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13774 parameterized name.
13775 (signbit<mode>2): Use that name. Simplify.
13776
13777 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13778
13779 PR middle-end/66726
13780 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13781 Tune heuristic from PR71016 to allow MIN / MAX.
13782
13783 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13784
13785 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13786 parameterized name.
13787 (abs<mode>2): Use that name. Simplify.
13788
13789 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13790
13791 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13792 parameterized name.
13793 (neg<mode>2): Use that name. Simplify.
13794
13795 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13796
13797 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13798 name.
13799 (abs<mode>2): Use that name. Simplify.
13800
13801 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13802
13803 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13804 name.
13805 (neg<mode>2): Use that name. Simplify.
13806
13807 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13808
13809 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13810 ("enabled" attribute): Handle sse_noavx isa attribute.
13811 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13812 Use TARGET_SSE && SSE_REGNO_P in split condition.
13813 (*vec_dupv2sf): Ditto.
13814
13815 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13816
13817 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13818 name.
13819 (floatsi<mode>2): Use that name. Simplify.
13820
13821 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13822
13823 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13824 parameterized name.
13825 (extenddf<mode>2_vsx): Make this a parameterized name.
13826 (extenddf<mode>2): Use those names. Simplify.
13827
13828 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13829
13830 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13831 name.
13832 (eh_return): Use that name. Simplify.
13833
13834 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13835
13836 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13837 (doloop_end): Use that name. Simplify.
13838
13839 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13840
13841 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13842 parameterized name.
13843 (indirect_jump): Use that name. Simplify.
13844
13845 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13846
13847 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13848 parameterized name.
13849 (abs<mode>2): Use that name. Simplify.
13850
13851 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13852
13853 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13854 parameterized name.
13855 (fix_trunc<mode>si2): Use that name. Simplify.
13856
13857 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13858
13859 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13860 (allocate_stack): Use that name. Simplify.
13861
13862 2019-07-01 Martin Sebor <msebor@redhat.com>
13863
13864 PR middle-end/90923
13865 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13866 (hash_map::get_or_insert): Same. Reformat comment.
13867 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13868 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13869 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13870 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13871 (hash_table::hash_table (const hash_table&)): Use copy ctor
13872 instead of assignment to copy elements.
13873
13874 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13875 John David Anglin <danglin@gcc.gnu.org>
13876
13877 PR target/90963
13878 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13879 using saved frame pointer.
13880
13881 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13882
13883 PR middle-end/64242
13884 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13885 Add frame clobber and schedule blockage.
13886
13887 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13888
13889 * doc/invoke.texi (Link Options): Further editorial changes to
13890 -flinker-output docs.
13891
13892 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13893
13894 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13895 Load both operands of a PLUS into registers separately.
13896
13897 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13898
13899 * config/s390/vector.md: Fix shift count operand printing.
13900
13901 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13902
13903 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13904
13905 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13906
13907 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13908 Use recog_data to test for an output operand.
13909
13910 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13911
13912 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13913 exclude any others that are disparaged or that are bound to need
13914 a reload or spill.
13915 (ira_get_dup_out_num): Expand comment.
13916
13917 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13918
13919 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13920 constraint string for each operand/alternative combo. Only handle
13921 '%' at the start of constraint strings, and look for it outside
13922 the main loop.
13923
13924 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13927 alternative_mask instead of HARD_REG_SET to represent a
13928 bitmask of alternatives.
13929 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13930 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13931
13932 2019-07-01 Martin Liska <mliska@suse.cz>
13933
13934 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13935 use () for a constructor call.
13936 (test_applying_fixits_line_out_of_range): Likewise.
13937 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13938 argument.
13939 (free_page): Likewise.
13940
13941 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13942
13943 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13944 parameter names to match usage (no functional change).
13945 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13946
13947 2019-07-01 Richard Biener <rguenther@suse.de>
13948
13949 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13950 pass parameter.
13951 (pass_fre::execute): Honor it.
13952 * passes.def: Adjust pass_fre invocations to allow iterating,
13953 add non-iterating pass_fre before late threading/dom.
13954
13955 2019-07-01 Richard Biener <rguenther@suse.de>
13956
13957 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13958 TARGET_MEM_REF handling to also handle address-taken ones.
13959
13960 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13961
13962 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13963 hardware attributes): Document avx512vp2intersect.
13964
13965 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13966
13967 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13968 (abs<mode>2): New expander.
13969 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13970 Use CODE_FOR_ssse3_absv8qi2.
13971 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13972 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13973
13974 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13975
13976 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13977 to sse, sse_noavx and avx. Update all uses.
13978
13979 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13980
13981 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13982 (*mmx_<plusminus_insn><mode>3): Ditto.
13983 (*mmx_mulv4hi3"): Ditto.
13984 (*mmx_smulv4hi3_highpart): Ditto.
13985 (*mmx_umulv4hi3_highpart): Ditto.
13986 (*mmx_pmaddwd): Ditto.
13987 (*sse2_umulv1siv1di3): Ditto.
13988 (*mmx_<code>v4hi3): Ditto.
13989 (*mmx_<code>v8qi3): Ditto.
13990 (mmx_ashr<mode>3): Ditto.
13991 ("mmx_<shift_insn><mode>3): Ditto.
13992 (*mmx_eq<mode>3): Ditto.
13993 (mmx_gt<mode>3): Ditto.
13994 (mmx_andnot<mode>3): Ditto.
13995 (*mmx_<code><mode>3): Ditto.
13996 (*mmx_pinsrw): Ditto.
13997 (*mmx_pextrw): Ditto.
13998 (mmx_pshufw_1): Ditto.
13999 (*mmx_uavgv8qi3): Ditto.
14000 (*mmx_uavgv4hi3): Ditto.
14001 ("mmx_psadbw): Ditto.
14002 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14003 (sse_cvttps2pi): Ditto.
14004 (ssse3_pmaddubsw): Ditto.
14005 (*ssse3_pmulhrswv4hi3): Ditto.
14006 (ssse3_psign<mode>3): Ditto.
14007
14008 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14009
14010 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14011 adjustment for bit-fields to all aggregate types.
14012
14013 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14014
14015 * config/rs6000/predicates.md (pcrel_address): Use
14016 SYMBOL_REF_LOCAL_P to determine if a label is local.
14017 (pcrel_external_address): New predicate.
14018 (non_prefixed_mem_operand): Delete, predicate not used.
14019 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14020 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14021 addressing.
14022 (SYMBOL_REF_PCREL_P): Likewise.
14023
14024 PR target/91009
14025 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14026 alternative.
14027 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14028 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14029 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14030
14031 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14032
14033 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14034 override on extra_headers.
14035
14036 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14037
14038 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14039 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14040 from warning.
14041 (darwin_driver_init): Likewise.
14042
14043 2019-06-28 Jan Beulich <jbeulich@suse.com>
14044
14045 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14046 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14047 Eliminate redundant alternative.
14048
14049 2019-06-28 Jan Beulich <jbeulich@suse.com>
14050
14051 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14052 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14053 Use vector_operand.
14054
14055 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14056
14057 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14058 having a lower cost regardless of the speed option.
14059
14060 2019-06-28 Jan Beulich <jbeulich@suse.com>
14061
14062 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14063 vector_operand plus, on both alternatives, "Bm" constraint.
14064
14065 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14066
14067 * config/arm/arm.md: Remove redundant constraints from
14068 define_expand but leave reload_inm and reload_outm patterns
14069 untouched since they need special constraints to work.
14070 * config/arm/arm-fixed.md: Remove redundant constraints from
14071 define_expand.
14072 * config/arm/iwmmxt.md: Likewise.
14073 * config/arm/neon.md: Likewise.
14074 * config/arm/sync.md: Likewise.
14075 * config/arm/thumb1.md: Likewise.
14076 * config/arm/vec-common.md: Likewise.
14077
14078 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14079
14080 * doc/install.texi: Document --disable-tm-clone-registry.
14081
14082 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14083
14084 PR c++/91024
14085 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14086 statements.
14087
14088 PR tree-optimization/91010
14089 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14090 return true. Otherwise, don't call operand_equal_p if offset1 or
14091 offset2 is NULL and just return false.
14092
14093 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14094
14095 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14096 user-specified float mode choice for kernel mode code.
14097
14098 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14099
14100 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14101 spec.
14102
14103 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14104
14105 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14106 use longcall for 64b code.
14107
14108 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14109
14110 * builtins.c (get_memory_rtx): Fix comment.
14111 * optabs.def (movmem_optab): Change to cpymem_optab.
14112 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14113 (emit_block_move_hints): Change movmem to cpymem.
14114 * defaults.h: Change movmem to cpymem.
14115 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14116 (default_use_by_pieces_infrastructure_p): Ditto.
14117 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14118 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14119 to cpymem.
14120 * config/aarch64/aarch64.h: Change movmem to cpymem.
14121 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14122 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14123 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14124 movmem to cpymem.
14125 * config/arc/arc-protos.h: Change movmem to cpymem.
14126 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14127 * config/arc/arc.h: Change movmem to cpymem in comment.
14128 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14129 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14130 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14131 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14132 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14133 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14134 * config/avr/avr-protos.h: Change movmem to cpymem.
14135 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14136 avr_out_movmem): Change movmem to cpymem.
14137 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14138 Change movmem to cpymem.
14139 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14140 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14141 Change movmem to cpymem.
14142 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14143 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14144 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14145 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14146 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14147 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14148 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14149 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14150 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14151 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14152 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14153 expand_small_cpymem_or_setmem,
14154 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14155 expand_set_or_cpymem_constant_prologue,
14156 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14157 * config/i386/i386-protos.h: Change movmem to cpymem.
14158 * config/i386/i386.h: Change movmem to cpymem in comment.
14159 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14160 (setmem<mode>): Change expansion function name.
14161 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14162 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14163 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14164 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14165 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14166 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14167 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14168 to cpymem.
14169 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14170 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14171 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14172 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14173 Change movmem to cpymem.
14174 * config/mips/mips.h: Change movmem to cpymem.
14175 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14176 * config/nds32/nds32-memory-manipulation.c
14177 (nds32_expand_movmemsi_loop_unknown_size,
14178 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14179 nds32_expand_movmemsi_unroll,
14180 nds32_expand_movmemsi): Change movmem to cpymem.
14181 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14182 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14183 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14184 (pa_adjust_insn_length): Change call to compute_movmem_length.
14185 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14186 movmemdi, movmemdi_prereload,
14187 movmemdi_postreload): Change movmem to cpymem.
14188 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14189 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14190 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14191 * config/riscv/riscv.h: Change movmem to cpymem.
14192 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14193 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14194 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14195 movmem to cpymem.
14196 * config/s390/s390-protos.h: Change movmem to cpymem.
14197 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14198 s390_expand_insv): Change movmem to cpymem.
14199 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14200 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14201 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14202 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14203 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14204 for nonexistent function.
14205 * config/vax/vax.h: Change movmem to cpymem in comment.
14206 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14207 * config/visium/visium.h: Change movmem to cpymem in comment.
14208 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14209 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14210 * doc/md.texi: Change movmem to cpymem and update description to match.
14211 * doc/rtl.texi: Change movmem to cpymem.
14212 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14213 * doc/tm.texi: Regenerate.
14214
14215 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14216
14217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14218 -fvariable-expansion-in-unroller by default.
14219 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14220 default for Power.
14221
14222 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14223
14224 Revert
14225 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14226 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14227
14228 * config.gcc(rs6000-*-*): Define target_gtfiles.
14229
14230 2019-06-27 Jan Hubicka <jh@suse.cz>
14231
14232 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14233 (add_type_duplicate): When odr hash is not allocated, to nothing.
14234 (odr_based_tbaa_p): New function.
14235 (set_type_canonical_for_odr_type): New function.
14236 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14237 set_type_canonical_for_odr_type): New.
14238 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14239 ODR based TBAA are not equivalent to non-ODR types.
14240
14241 2019-06-27 Martin Liska <mliska@suse.cz>
14242
14243 PR tree-optimization/90974
14244 PR rtl-optimization/90975
14245 PR rtl-optimization/90976
14246 PR target/91016
14247 PR tree-optimization/91017
14248 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14249 unused tmp.
14250 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14251 initial commit of IRA.
14252 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14253 of op0 and op1.
14254 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14255 Remove unused mode1.
14256 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14257 to new_stmt_info.
14258
14259 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14260
14261 PR target/90991
14262 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14263 instead of register_operand for operands[1], add m to its constraints
14264 if operands[2] uses "C" constraint. Ensure in condition that if
14265 operands[2] is not 0, then operands[1] is not a MEM. For last two
14266 alternatives, use unaligned loads instead of aligned if operands[1] is
14267 misaligned_operand.
14268
14269 2019-06-27 Martin Liska <mliska@suse.cz>
14270
14271 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14272 dead assignments.
14273 * bt-load.c (move_btr_def): Likewise.
14274 * builtins.c (expand_builtin_apply_args_1): Likewise.
14275 (expand_builtin_apply): Likewise.
14276 * cfgexpand.c (expand_asm_stmt): Likewise.
14277 (construct_init_block): Likewise.
14278 * cfghooks.c (verify_flow_info): Likewise.
14279 * cfgloopmanip.c (remove_path): Likewise.
14280 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14281 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14282 * combine.c (simplify_if_then_else): Likewise.
14283 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14284 (choose_basereg): Likewise.
14285 (ix86_expand_prologue): Likewise.
14286 (ix86_preferred_output_reload_class): Likewise.
14287 * cselib.c (cselib_record_sets): Likewise.
14288 * df-scan.c (df_scan_alloc): Likewise.
14289 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14290 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14291 * emit-rtl.c (try_split): Likewise.
14292 * graphite-scop-detection.c (assign_parameter_index_in_region):
14293 Likewise.
14294 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14295 * ira-color.c (setup_profitable_hard_regs): Likewise.
14296 * ira.c (rtx_moveable_p): Likewise.
14297 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14298 * read-rtl.c (read_subst_mapping): Likewise.
14299 * regrename.c (scan_rtx): Likewise.
14300 * reorg.c (fill_slots_from_thread): Likewise.
14301 * tree-inline.c (tree_function_versioning): Likewise.
14302 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14303 * tree-ssa-sink.c (statement_sink_location): Likewise.
14304 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14305 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14306 (vect_create_epilog_for_reduction): Likewise.
14307 * tree.c (build_nonstandard_integer_type): Likewise.
14308
14309 2019-06-27 Richard Biener <rguenther@suse.de>
14310
14311 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14312
14313 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14314
14315 PR tree-optimization/89772
14316 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14317 out-of-bound accesses checking.
14318
14319 2019-06-27 Martin Liska <mliska@suse.cz>
14320
14321 PR tree-optimization/91014
14322 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14323 when LHS is NULL_TREE.
14324
14325 2019-06-27 Martin Liska <mliska@suse.cz>
14326
14327 * symbol-summary.h (traverse): Pass
14328 argument a to the call of callback.
14329 (gt_ggc_mx): Mark arguments as unused.
14330 (gt_pch_nx): Likewise.
14331
14332 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14333
14334 PR target/62147
14335 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14336 finiteness.
14337
14338 2019-06-26 Jeff Law <law@redhat.com>
14339
14340 PR tree-optimization/90883
14341 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14342 (delete_dead_or_redundant_assignment): Likewise.
14343
14344 PR tree-optimization/90883
14345 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14346 * tree-ssa-dse.c: Update various comments to distinguish between
14347 dead and redundant stores.
14348 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14349 (dse_optimize_redundant_stores): New function.
14350 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14351 Distinguish between dead and redundant calls in dump output. All
14352 callers updated.
14353 (delete_dead_or_redundant_assignment): Similarly for assignments.
14354 (dse_optimize_stmt): Handle _CHK variants. For statements which
14355 store 0 into multiple memory locations, try to prove a subsequent
14356 store is redundant.
14357
14358 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14359
14360 PR target/89021
14361 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14362 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14363
14364 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14365
14366 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14367 (branch_islands): New extern.
14368 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14369 * config/rs6000/rs6000.c: .. here.
14370
14371 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14372
14373 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14374 (powerpc*-*-*) ... to here.
14375
14376 2019-06-26 Jeff Law <law@redhat.com>
14377
14378 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14379 memcpy, memmove and memset builtins.
14380 (maybe_trim_memstar_call): Likewise.
14381
14382 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14383
14384 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14385
14386 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14387
14388 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14389
14390 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14391
14392 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14393 declaration.
14394 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14395 "static".
14396 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14397 declaration.
14398
14399 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14400
14401 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14402
14403 2019-06-26 Richard Biener <rguenther@suse.de>
14404
14405 PR ipa/90982
14406 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14407
14408 2019-06-26 Richard Biener <rguenther@suse.de>
14409
14410 * lto-streamer.h (lto_bitmap_alloc): Remove.
14411 (lto_bitmap_free): Likewise.
14412 * lto-streamer.c (lto_bitmap_alloc): Remove.
14413 (lto_bitmap_free): Likewise.
14414 (lto_obstack): Likewise.
14415 (lto_obstack_initialized): Likewise.
14416 * lto-streamer-out.c (lto_output): Use own obstack for local
14417 bitmap, free it consistently.
14418
14419 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14420
14421 PR target/90991
14422 * config/i386/sse.md
14423 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14424 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14425 insns if operands[2] is misaligned_operand.
14426
14427 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14428
14429 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14430 TARGET_POWERPC64.
14431 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14432 to GPR.
14433
14434 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14435
14436 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14437
14438 2019-06-26 Martin Liska <mliska@suse.cz>
14439
14440 PR tree-optimization/90973
14441 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14442 epilogue_cost_vec instead of prologue_cost_vec for
14443 a epilogue cost.
14444
14445 2019-06-26 Martin Liska <mliska@suse.cz>
14446
14447 * bb-reorder.c (connect_better_edge_p): Add missing else
14448 statement in the middle of if-else statements.
14449
14450 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14451 H.J. Lu <hongjiu.lu@intel.com>
14452 Olga Makhotina <olga.makhotina@intel.com>
14453
14454 * common/config/i386/i386-common.c
14455 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14456 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14457 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14458 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14459 (ix86_handle_option): Handle -mavx512vp2intersect.
14460 * config/i386/avx512vp2intersectintrin.h: New.
14461 * config/i386/avx512vp2intersectvlintrin.h: New.
14462 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14463 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14464 AVX512VP2INTERSECT.
14465 * config/i386/i386-builtin-types.def: Add new types.
14466 * config/i386/i386-builtin.def: Add new builtins.
14467 * config/i386/i386-builtins.c: (enum processor_features): Add
14468 F_AVX512VP2INTERSECT.
14469 (static const _isa_names_table isa_names_table): Ditto.
14470 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14471 __AVX512VP2INTERSECT__.
14472 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14473 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14474 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14475 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14476 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14477 * config/i386/i386-options.c (ix86_target_string): Add
14478 -mavx512vp2intersect.
14479 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14480 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14481 P2HImode and P2QImode.
14482 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14483 number for P2QImode and P2HImode.
14484 (ix86_regmode_natural_size): New function.
14485 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14486 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14487 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14488 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14489 * config/i386/i386.opt: Add -mavx512vp2intersect.
14490 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14491 avx512vp2intersectvlintrin.h.
14492 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14493 (define_mode_iterator VI48_AVX512VP2VL): New.
14494 (avx512vp2intersect_2intersect<mode>,
14495 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14496 * config.gcc: Add avx512vp2intersectvlintrin.h and
14497 avx512vp2intersectintrin.h to extra_headers.
14498 * doc/invoke.texi: Document -mavx512vp2intersect.
14499
14500 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14501
14502 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14503
14504 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14505
14506 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14507 savres_routine_syms, savres_routine_name, morestack_ref,
14508 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14509 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14510 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14511 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14512 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14513 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14514 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14515 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14516 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14517 get_stack_clash_protection_probe_interval,
14518 get_stack_clash_protection_guard_size,
14519 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14520 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14521 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14522 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14523 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14524 gen_frame_mem_offset, rs6000_savres_routine_name,
14525 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14526 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14527 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14528 rs6000_global_entry_point_prologue_needed_p,
14529 rs6000_get_separate_components, rs6000_components_for_bb,
14530 rs6000_disqualify_components, rs6000_emit_prologue_components,
14531 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14532 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14533 rs6000_output_savres_externs, rs6000_output_function_prologue,
14534 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14535 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14536 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14537 rs6000_output_function_epilogue, gen_add3_const,
14538 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14539 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14540 to rs6000-logue.c.
14541 (machine_function): Moved to rs6000.h.
14542 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14543 rs6000-internal.h.
14544 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14545 savres_routine_syms, savres_routine_name, morestack_ref,
14546 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14547 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14548 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14549 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14550 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14551 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14552 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14553 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14554 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14555 get_stack_clash_protection_probe_interval,
14556 get_stack_clash_protection_guard_size,
14557 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14558 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14559 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14560 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14561 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14562 gen_frame_mem_offset, rs6000_savres_routine_name,
14563 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14564 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14565 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14566 rs6000_global_entry_point_prologue_needed_p,
14567 rs6000_get_separate_components, rs6000_components_for_bb,
14568 rs6000_disqualify_components, rs6000_emit_prologue_components,
14569 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14570 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14571 rs6000_output_savres_externs, rs6000_output_function_prologue,
14572 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14573 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14574 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14575 rs6000_output_function_epilogue, gen_add3_const,
14576 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14577 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14578 to here from rs6000.c.
14579 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14580 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14581 quad_address_offset_p) Moved to here from rs6000.c.
14582 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14583 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14584 collector.
14585
14586 2019-06-25 Martin Liska <mliska@suse.cz>
14587
14588 * hash-table.c (hashtab_chk_error): Move here from ...
14589 * hash-table.h (hashtab_chk_error): ... here.
14590
14591 2019-06-25 Martin Liska <mliska@suse.cz>
14592
14593 PR tree-optimization/90978
14594 * df-scan.c (df_update_entry_block_defs): Remove dead else
14595 branch.
14596 (df_update_exit_block_uses): Likewise.
14597
14598 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14599 Andrew Stubbs <ams@codesourcery.com>
14600
14601 * config.gcc (thread_file): Set to gcn for AMD GCN.
14602 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14603 (TARGET_EMUTLS_VAR_INIT): New hook.
14604
14605 2019-06-25 Martin Jambor <mjambor@suse.cz>
14606
14607 PR ipa/90939
14608 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14609
14610 2019-06-25 Richard Biener <rguenther@suse.de>
14611
14612 PR tree-optimization/90930
14613 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14614 into parallel form in the last pass instance.
14615
14616 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14617
14618 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14619 (arc_legitimize_pic_address): Simplify and cleanup the function.
14620 (SYMBOLIC_CONST): Remove.
14621 (prepare_pic_move): Likewise.
14622 (prepare_move_operands): Handle complex mov cases here.
14623 (arc_legitimize_address_0): Remove call to
14624 arc_legitimize_pic_address.
14625 (arc_legitimize_address): Remove call to
14626 arc_legitimize_tls_address.
14627 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14628 (movhi_insn): Likewise.
14629
14630 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14631
14632 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14633 PTRDIFF_TYPE.
14634 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14635 format of "__intN" types for UINTMAX_TYPE.
14636 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14637 format of "__intN" types for SIZETYPE.
14638 * tree.c (build_common_tree_nodes): Accept "__intN__"
14639 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14640 * doc/invoke.texi: Document that __intN__ disables pedantic
14641 warnings.
14642
14643 2019-06-25 Jan Hubicka <jh@suse.cz>
14644
14645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14646 base2_alias_set is non-zero before doing TBAA based disambiguation.
14647
14648 2019-06-25 Martin Liska <mliska@suse.cz>
14649
14650 PR tree-optimization/90973
14651 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14652 of prologue and epilogue.
14653
14654 2019-06-24 Jan Hubicka <jh@suse.cz>
14655
14656 * ipa-utils.h (type_with_linkage_p): Verify that type is
14657 CXX_ODR_P.
14658 (odr_type_p): Remove extra return.
14659 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14660 hash STRING_FLAG only for arrays and integers.
14661 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14662 Update analogously.
14663 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14664 Likewise.
14665 * print-tree.c (print_node): Print cxx-odr-p
14666 and string-flag.
14667 * tree.c (need_assembler_name_p): Also check that type
14668 is CXX_ODR_TYPE_P
14669 (verify_type_variant): Update verification of SRING_FLAG;
14670 also check CXX_ODR_P.
14671 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14672 (TYPE_STRING_FLAG): Use it.
14673 (TYPE_CXX_ODR_P): New macro.
14674 * dwarf2out.c (gen_array_type_die): First check that type
14675 is an array and then test string flag.
14676
14677 2019-06-24 Richard Biener <rguenther@suse.de>
14678
14679 PR tree-optimization/90972
14680 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14681 in common code, dealing with STRING_CST properly.
14682
14683 2019-06-24 Richard Biener <rguenther@suse.de>
14684
14685 PR tree-optimization/90930
14686 PR tree-optimization/90316
14687 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14688 decrement of limit.
14689
14690 2019-06-24 Martin Sebor <msebor@redhat.com>
14691
14692 * tree-pretty-print.h: Remove unnecessary punctuation characters
14693 from a diagnostic.
14694 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14695
14696 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14697
14698 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14699 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14700 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14701
14702 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14703
14704 * config/rs6000/darwin.h: Handle GCC target pragma.
14705
14706 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14707
14708 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14709
14710 2019-06-22 Jeff Law <law@redhat.com>
14711
14712 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14713
14714 2019-06-22 Jan Hubicka <jh@suse.cz>
14715
14716 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14717 give up on bitfields; continue searching for different refs
14718 appearing later.
14719
14720 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14721
14722 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14723 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14724 containing the offset as possible simd lane access. Look through
14725 widening conversion. Move the
14726 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14727
14728 2019-06-21 Richard Biener <rguenther@suse.de>
14729
14730 PR tree-optimization/90930
14731 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14732 flag on new stmts to avoid re-processing them.
14733
14734 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14735
14736 PR c++/90875 - added -Wswitch-outside-range option
14737 * doc/invoke.texi (Wswitch-outside-range): Document.
14738
14739 2019-06-21 Jeff Law <law@redhat.com>
14740
14741 PR tree-optimization/90949
14742 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14743 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14744
14745 2019-06-21 Richard Biener <rguenther@suse.de>
14746
14747 PR debug/90914
14748 * dwarf2out.c (prune_unused_types_walk): Always consider
14749 function-local extern declarations as used.
14750
14751 2019-06-21 Richard Biener <rguenther@suse.de>
14752
14753 PR tree-optimization/90913
14754 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14755 the scalar variant of if-conversion versioning.
14756
14757 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14758
14759 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14760 create another "omp scan inscan exclusive" array if
14761 !ctx->scan_inclusive.
14762 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14763 (lower_omp_scan): Likewise.
14764 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14765 2-bit bitfield for simd_lane_access_p member.
14766 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14767 aux == (void *)-4 as simd lane access.
14768 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14769 comment with permutations to show the canonical permutation order.
14770 (vectorizable_scan_store): Handle exclusive scan.
14771 (vectorizable_store): Call vectorizable_scan_store even for
14772 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14773
14774 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14775 "omp simd array" arrays with one byte elements.
14776
14777 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14778
14779 * config/alpha/alpha.md (@unaligned_store<mode>):
14780 Rename from unaligned_store<mode>.
14781 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14782 * config/alpha/sync.md (@load_locked_<mode>): Rename
14783 from load_locked_<mode>.
14784 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14785 (@atomic_compare_and_swap<mode>_1): Rename
14786 from atomic_compare_and_swap<mode>_1.
14787 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14788 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14789 Use gen_reload_in_aligned and gen_unaligned_store.
14790 (emit_load_locked): Remove.
14791 (emit_store_conditional): Ditto.
14792 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14793 (alpha_split_compare_and_swap): Ditto.
14794 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14795 (alpha_split_compare_and_swap_12): Use gen_load_locked
14796 and gen_store_conditional.
14797 (alpha_split_atomic_exchange): Ditto.
14798 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14799 (alpha_split_atomic_exchange_12): Use gen_load_locked
14800 and gen_store_conditional.
14801
14802 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14803
14804 * config/aarch64/aarch64-errata.h: New file.
14805 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14806 (CA53_ERR_843419_SPEC): Delete.
14807 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14808 * config/aarch64/aarch64-linux.h: Likewise.
14809 * config/aarch64/aarch64-netbsd.h: Likewise.
14810 * config/aarch64/aarch64-freebsd.h: Likewise.
14811
14812 2019-06-20 Marek Polacek <polacek@redhat.com>
14813
14814 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14815
14816 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14817
14818 * config/rs6000/rs6000.md (isa attribute): Add support for
14819 for a future processor.
14820
14821 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14822
14823 PR target/54855
14824 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14825 standard scalar operation pattern for V2DF.
14826 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14827 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14828 (*ieee_<ieee_maxmin><mode>3): Likewise.
14829 (vec_setv2df_0): Likewise.
14830
14831 2019-06-20 Jan Hubicka <jh@suse.cz>
14832
14833 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14834 parameter; it has no use in gimple memory model.
14835 (indirect_ref_may_alias_decl_p): Update.
14836
14837 2019-06-20 Martin Liska <mliska@suse.cz>
14838
14839 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14840 to 10.
14841
14842 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14843
14844 * tree-vect-stmts.c (enum scan_store_kind): New type.
14845 (scan_store_can_perm_p): Change last argument from int * to
14846 vec<enum scan_store_kind> *, record precisely which permutations
14847 need whole vector left shift or that plus VEC_COND_EXPR.
14848 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14849 and additional VEC_COND_EXPR only for those iterations that need it.
14850
14851 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14852
14853 * config.gcc: Fix ARM --with-fpu checking and error message.
14854
14855 2019-06-19 Marek Polacek <polacek@redhat.com>
14856
14857 PR c++/60364 - noreturn after first decl not diagnosed.
14858 * attribs.c (get_attribute_namespace): No longer static.
14859 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14860 attributes.
14861 (attr_noreturn_exclusions): Make it extern.
14862 * attribs.h (get_attribute_namespace): Declare.
14863 * tree-inline.c (function_attribute_inlinable_p): Use
14864 get_attribute_name.
14865
14866 2019-06-19 Martin Sebor <msebor@redhat.com>
14867
14868 PR tree-optimization/90626
14869 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14870
14871 PR tree-optimization/90626
14872 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14873 (handle_builtin_string_cmp): Call it.
14874
14875 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14876
14877 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14878 and DARWIN_NOPIE_SPEC.
14879 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14880 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14881 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14882 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14883 (DARWIN_EXPORT_DYNAMIC): Delete.
14884 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14885 and pie options processing to darwin.h.
14886 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14887
14888 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14889
14890 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14891 in computing the number of options to be moved.
14892
14893 2019-06-19 Maya Rashish <coypu@sdf.org>
14894
14895 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14896 (CLEAR_INSN_CACHE) Use it.
14897
14898 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14899
14900 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14901
14902 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14903
14904 PR middle-end/84521
14905 * builtins.c (expand_builtin_setjmp_setup): Save
14906 hard_frame_pointer_rtx.
14907 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14908 restore fp.
14909 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14910 non-local goto.
14911 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14912 elimination code.
14913 (remove_reg_equal_offset_note): Remove unused function.
14914 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14915 code.
14916 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14917 (arc_builtin_setjmp_frame_value): Remove function.
14918 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14919 (avr_builtin_setjmp_frame_value): Remove function.
14920 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14921 (ix86_builtin_setjmp_frame_value): Remove function.
14922 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14923 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14924 (sparc_builtin_setjmp_frame_value): Remove function.
14925 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14926 (vax_builtin_setjmp_frame_value): Remove function.
14927 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14928 pointer if has_nonlocal_label.
14929
14930 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14931
14932 * doc/md.texi: Document vec_shl_<mode> pattern.
14933 * optabs.def (vec_shl_optab): New optab.
14934 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14935 argument, if == vec_shl_optab, check for left whole vector shift
14936 pattern rather than right shift.
14937 (expand_vec_perm_const): Add vec_shl_optab support.
14938 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14939 in the comment.
14940 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14941 can be handled by vec_shl_optab.
14942 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14943 (check_scan_store): Use it.
14944 (vectorizable_scan_store): If target can't do normal permutations,
14945 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14946 after it.
14947 * config/i386/sse.md (vec_shl_<mode>): New expander.
14948
14949 * omp-low.c (lower_rec_input_clauses): Handle references properly
14950 in inscan clauses.
14951 (lower_omp_scan): Likewise.
14952
14953 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14954
14955 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14956 mem_mode is BLKmode.
14957
14958 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14959
14960 PR target/90922
14961 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14962 pointer adjustment for the case of no callee-saved registers and
14963 stack frame bigger than 128 bytes.
14964
14965 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14966
14967 PR middle-end/90862
14968 * omp-low.c (check_omp_nesting_restrictions): Handle
14969 GF_OMP_TARGET_KIND_OACC_DECLARE.
14970
14971 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14972
14973 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14974 (@add<mode>3_carry): Rename from add<mode>3_carry.
14975 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14976 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14977 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14978 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14979 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14980 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14981 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14982 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14983 (cmpstrnsi): Use gen_cmp_1.
14984 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14985 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14986 (@umonitor_<mode>): Rename from umonitor_<mode>.
14987 * config/i386/i386-expand.c (ix86_expand_copysign):
14988 Use gen_copysign3_const and gen_copysign3_var.
14989 (ix86_expand_xorsign): Use gen_xorsign3_1.
14990 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14991 gen_sub3_carry_ccgz and gen_cmp1.
14992 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14993 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14994 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14995 (ix86_split_lshr): Ditto.
14996 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14997
14998 2019-06-18 Jason Merrill <jason@redhat.com>
14999
15000 * tree.c (build_constructor): Add MEM_STAT_DECL.
15001
15002 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15003
15004 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15005 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15006 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15007 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15008 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15009 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15010 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15011 Use CC_NZC instead of CC.
15012 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15013 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15014 (aarch64_print_operand): Handle E_CC_NZCmode.
15015 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15016 of gen_set_clobber_cc.
15017
15018 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15019
15020 * config/aarch64/aarch64-sve.md: Tabify file.
15021
15022 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15023
15024 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15025 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15026 * config/aarch64/aarch64-sve.md: Use it.
15027
15028 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15029
15030 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15031 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15032 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15033 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15034 (aarch64_expand_sve_vec_cmp_int): Use it.
15035 (aarch64_expand_sve_vec_cmp_float): Likewise.
15036 * config/aarch64/aarch64-sve.md: Likewise throughout.
15037
15038 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15039 Kugan Vivekanandarajah <kuganv@linaro.org>
15040
15041 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15042 (*cond_<optab><mode>_z): Fold into...
15043 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15044 operand 4 can be tied to operand 0 (either inherently or via RA).
15045
15046 2019-06-18 Richard Biener <rguenther@suse.de>
15047
15048 PR debug/90900
15049 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15050 as if optimized away.
15051
15052 2019-06-18 Tom de Vries <tdevries@suse.de>
15053
15054 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15055 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15056 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15057 Rename to ...
15058 (define_insn "@set_softstack_<mode>"): ... this.
15059 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15060 (define_insn "@omp_simt_enter_<mode>"): ... this.
15061 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15062 (define_insn "@omp_simt_exit_<mode>"): ... this.
15063
15064 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15065
15066 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15067 vf parameter. Restore the previous iv step of nscalars_step,
15068 but give it iv_type rather than compare_type. Tweak code order
15069 to match the comments.
15070 (vect_set_loop_condition_masked): Update accordingly.
15071 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15072 for iv_precision. Tweak comment formatting.
15073
15074 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15075
15076 * config/darwin.c: Strip trailing whitespace.
15077
15078 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15079
15080 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15081 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15082
15083 2019-06-18 Martin Jambor <mjambor@suse.cz>
15084
15085 PR ipa/90889
15086 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15087 caller does not have flag_ipa_cp set.
15088
15089 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15090
15091 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15092 from "*fold_left_plus_<mode>", updated operands order.
15093 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15094 * internal-fn.c (mask_fold_left_direct): New define.
15095 (expand_mask_fold_left_optab_fn): Likewise.
15096 (direct_mask_fold_left_optab_supported_p): Likewise.
15097 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15098 * optabs.def (mask_fold_left_plus_optab): New optab.
15099 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15100 masked internal_fn for a reduction ifn.
15101 (vectorize_fold_left_reduction): Add support for masking reductions.
15102
15103 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15104
15105 PR middle-end/80791
15106 * target.def (predict_doloop_p): New hook.
15107 * targhooks.h (default_predict_doloop_p): New declaration.
15108 * targhooks.c (default_predict_doloop_p): New function.
15109 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15110 * doc/tm.texi: Regenerate.
15111 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15112 (TARGET_PREDICT_DOLOOP_P): New macro.
15113 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15114
15115 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15116
15117 * omp-low.c (struct omp_context): Add scan_inclusive field.
15118 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15119 if inclusive scan.
15120 (struct omplow_simd_context): Add lastlane member.
15121 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15122 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15123 1 or 2 argument.
15124 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15125 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15126 (lower_omp_scan): New function.
15127 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15128 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15129 check 3rd argument if present rather than 2nd.
15130 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15131 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15132 2-bit bitfield.
15133 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15134 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15135 than 2nd.
15136 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15137 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15138 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15139 init.
15140 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15141 IFN_GOMP_SIMD_LANE argument.
15142 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15143 encoded ->aux value.
15144 * tree-vect-stmts.c: Include attribs.h.
15145 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15146 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15147 functions.
15148 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15149 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15150
15151 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15152
15153 PR target/62055
15154 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15155 (*nabs<mode>2_1): Ditto.
15156 (nabs sse-reg splitter): New splitter.
15157 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15158
15159 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15160
15161 PR bootstrap/90873.
15162 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15163 TMR index check.
15164
15165 2019-06-17 Tom de Vries <tdevries@suse.de>
15166
15167 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15168 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15169 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15170 ...
15171 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15172 match_operand 0.
15173 (define_insn "omp_simt_enter_insn"): Rename to ...
15174 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15175 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15176 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15177 gen_omp_simt_enter_si.
15178 (define_expand "omp_simt_exit"): New.
15179 (define_insn "omp_simt_exit"): Rename to ...
15180 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15181 match_operand 0.
15182
15183 2019-06-17 Matthew Green <mrg@eterna.com.au>
15184 Maya Rashish <coypu@sdf.org>
15185
15186 * config.gcc (aarch64*-*-netbsd*): New target.
15187 * config/aarch64/aarch64-netbsd.h: New file.
15188 * config/aarch64/t-aarch64-netbsd: Likewise.
15189
15190 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15191
15192 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15193 the access path from base to first VIEW_CONVERT_EXPR or
15194 BIT_FIELD_REF.
15195
15196 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15197
15198 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15199 access path on BIT_FIELD_REFs.
15200
15201 2019-06-17 Martin Liska <mliska@suse.cz>
15202
15203 PR ipa/90874
15204 * ipa-utils.h (odr_type_p): Remove dead code.
15205
15206 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15207
15208 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15209 alternative Solaris 11.4 format.
15210 * configure: Regenerate.
15211
15212 2019-06-17 Tom de Vries <tdevries@suse.de>
15213
15214 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15215 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15216 match_operand 0.
15217 (define_insn "call_value_insn"): Rename to ...
15218 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15219 match_operand 0.
15220 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15221 DI.
15222
15223 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15224
15225 PR middle-end/64242
15226 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15227 frame clobbers and schedule block.
15228 (builtin_longjmp): Likewise.
15229
15230 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15231
15232 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15233 describe how to perform MSPABI compliant 64-bit shift.
15234 * config/msp430/msp430.md (ashldi3): New define_expand.
15235 (ashrdi3): New define_expand.
15236 (lshrdi3): New define_expand.
15237
15238 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15239
15240 * doc/sourcebuild.texi: Document new effective target keyword
15241 longlong64.
15242
15243 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15244
15245 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15246 indirect_refs_may_alias_p): Revert accidental commits.
15247
15248 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15249 at the end of structures.
15250
15251 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15252
15253 * config/darwin.c (machopic_indirect_call_target): Use renamed
15254 darwin_picsymbol_stubs to decide on output.
15255 (darwin_override_options): Handle darwin_picsymbol_stubs.
15256 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15257 (LD64_VERSION): Revise default.
15258 * config/darwin.opt: (mpic-symbol-stubs): New option.
15259 (darwin_picsymbol_stubs): New variable.
15260 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15261 rename to TARGET_MACHO_PICSYM_STUBS.
15262 * config/i386/i386.c (output_pic_addr_const): Likewise.
15263 * config/i386/i386.h Likewise.
15264 * config/rs6000/darwin.h: Likewise.
15265 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15266 darwin_picsymbol_stubs.
15267
15268 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15269
15270 * config/darwin.opt (prebind, noprebind, seglinkedit,
15271 noseglinkedit): Add RejectNegative.
15272
15273 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15274
15275 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15276 in my previous patch.
15277
15278 2019-06-16 Tom de Vries <tdevries@suse.de>
15279
15280 PR tree-optimization/89376
15281 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15282
15283 2019-06-15 Maya Rashish <coypu@sdf.org>
15284
15285 * doc/invoke.texi (Spec Files): Update location of the
15286 Fortran spec file.
15287
15288 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15289
15290 * doc/extend.texi (Common Function Attributes): Clarify
15291 no_sanitize. Fix grammar.
15292
15293 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15294
15295 * tree-ssa-alias.c (alias_stats): Add
15296 nonoverlapping_component_refs_p_may_alias,
15297 nonoverlapping_component_refs_p_no_alias,
15298 nonoverlapping_component_refs_of_decl_p_may_alias,
15299 nonoverlapping_component_refs_of_decl_p_no_alias.
15300 (dump_alias_stats): Dump them.
15301 (nonoverlapping_component_refs_of_decl_p): Add stats.
15302 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15303 ARRAY_REF.
15304
15305 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15306
15307 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15308 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15309 only.
15310 (*anddi3_doubleword): Split before reload. Merge with
15311 anddi->zext pre-reload splitter.
15312 (*andndi3_doubleword): Split before reload.
15313 (*<code>di3_doubleword): Ditto.
15314 (*one_cmpldi2_doubleword): Ditto.
15315
15316 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15317
15318 PR middle-end/90779
15319 * gimplify.c: Include omp-offload.h and context.h.
15320 (gimplify_bind_expr): Add "omp declare target" attributes
15321 to static block scope variables inside of target region or target
15322 functions.
15323
15324 2019-06-15 Tom de Vries <tdevries@suse.de>
15325
15326 PR tree-optimization/90009
15327 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15328 Return NULL if bb contains IFN_UNIQUE.
15329
15330 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15331
15332 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15333 (un): New define_mode_attr.
15334 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15335 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15336 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15337 merge into ...
15338 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15339
15340 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15341
15342 * config/darwin.opt: Add RejectNegative where needed, reorder
15343 and add minimal functional descriptions.
15344
15345 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15346
15347 PR rtl-optimization/90765
15348 * calls.c (update_stack_alignment_for_call): New function.
15349 (expand_call): Call update_stack_alignment_for_call when
15350 outgoing parameter is passed in the stack.
15351 (emit_library_call_value_1): Likewise.
15352 * function.c (locate_and_pad_parm): Don't update
15353 stack_alignment_needed and preferred_stack_boundary.
15354
15355 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15356
15357 PR target/90877
15358 * config/i386/i386-features.c
15359 (dimode_scalar_chain::compute_convert_gain): Replace
15360 mmxsse_to_integer with sse_to_integer.
15361 * config/i386/i386.c (ix86_register_move_cost): Verify that
15362 moves between MMX and non-MMX units require secondary memory.
15363 Correct costs of moves between SSE and integer units.
15364 * config/i386/i386.h (processor_costs): Rename cost of moving
15365 SSE register to integer to sse_to_integer. Rename cost of
15366
15367 2019-06-14 Matt Thomas <matt@3am-software.com>
15368 Matthew Green <mrg@eterna.com.au>
15369 Nick Hudson <skrll@netbsd.org>
15370 Maya Rashish <coypu@sdf.org>
15371 Richard Earnshaw <rearnsha@arm.com>
15372
15373 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15374 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15375 * config/arm/netbsd-eabi.h: New file.
15376 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15377 redefining.
15378 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15379 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15380 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15381 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15382
15383 2019-06-14 Richard Biener <rguenther@suse.de>
15384
15385 * tree-loop-distribution.c (classify_partition): Return
15386 whether a reduction appeared in all partitions and do not
15387 stop builtin detection because of this.
15388 (distribute_loop): Sort a non-builtin partition last if
15389 there's a reduction in all partitions and make sure the
15390 partition prevailing as last is not a builtin.
15391
15392 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15393
15394 PR ipa/90401
15395 * ipa-prop.c (add_to_agg_contents_list): New function.
15396 (clobber_by_agg_contents_list_p): Likewise.
15397 (extract_mem_content): Likewise.
15398 (get_place_in_agg_contents_list): Delete.
15399 (determine_known_aggregate_parts): Renamed from
15400 determine_locally_known_aggregate_parts. New parameter
15401 aa_walk_budget_p.
15402
15403 2019-06-13 Martin Sebor <msebor@redhat.com>
15404
15405 PR tree-optimization/90662
15406 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15407 to the same type.
15408
15409 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15410
15411 PR bootstrap/90873
15412 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15413 dbase is not TARGET_MEM_REF.
15414
15415 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15416
15417 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15418 Update all uses.
15419 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15420 Do not generate DImode extends for 32bit targets.
15421 (and->zext post-reload splitter): Use gen_extend_insn
15422 instead of indirect functions.
15423 (anddi->zext pre-reload splitter): New.
15424 (*zext<mode>_doubleword_and): Remove.
15425 (*zext<mode>_doubleword): Ditto.
15426 (*zextsi_doubleword): Dittto.
15427
15428 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15429
15430 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15431 Use gen_sub3_insn instead of indirect function.
15432 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15433 indirect function.
15434 (ix86_adjust_counter): Ditto.
15435
15436 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15437 Lijia He <helijia@linux.ibm.com>
15438
15439 PR tree-optimization/77820
15440 * tree-ssa-threadedge.c
15441 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15442 function.
15443 (thread_across_edge): Add call to
15444 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15445
15446 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15447
15448 * config/darwin-driver.c (validate_macosx_version_min): New.
15449 (darwin_default_min_version): Cleanup and validate supplied version.
15450 (darwin_driver_init): Likewise and push cleaned version into opts.
15451
15452 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15453
15454 PR tree-optimization/90869
15455 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15456 converts in MEM_REF referencing decl rather than view converts
15457 from decl type to MEM_REF type.
15458
15459 2019-06-13 Richard Biener <rguenther@suse.de>
15460
15461 PR tree-optimization/90856
15462 * tree-sra.c (build_ref_for_model): Only use
15463 build_reconstructed_reference when address-spaces are the same.
15464
15465 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15466
15467 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15468 wrap ei variable name in the declaration in ()s.
15469 (nvptx_single): Actually use mode_label variable. Formatting fix.
15470
15471 2019-06-13 Richard Biener <rguenther@suse.de>
15472
15473 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15474 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15475 also return the condition stmt.
15476 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15477 loop we can version and version that, reusing the loop version
15478 created by if-conversion instead of versioning again.
15479
15480 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15481
15482 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15483 may_contain_p.
15484 * tree-vrp (value_range_base::may_contain_p): Call into
15485 value_inside_range.
15486 (value_inside_range): Make private inside value_range_base class.
15487 Take min/max from *this.
15488 (range_includes_p): Remove.
15489 * tree-vrp.h (value_range_base): Add value_inside_range.
15490 (range_includes_p): Remove.
15491 (range_includes_zero_p): Call may_contain_p.
15492 * vr-values.c (compare_range_with_value): Same.
15493
15494 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15495
15496 * doc/extend.texi (ARC Function Attributes): Update info.
15497
15498 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15499
15500 PR tree-optimization/89713
15501 * doc/invoke.texi (-ffinite-loops): Document new option.
15502 * common.opt (-ffinite-loops): New option.
15503 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15504 IFN_GOACC_LOOP calls as necessary.
15505 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15506 is finite.
15507 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15508 IFN_GOACC_LOOP call is not used.
15509 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15510
15511 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15512
15513 PR target/88838
15514 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15515 compare_type is not with Pmode size, we will create an IV with
15516 Pmode size with truncated use (i.e. converted to the correct type).
15517 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15518 (vect_iv_limit_for_full_masking): New. Factored out of
15519 vect_set_loop_condition_masked.
15520 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15521 (vect_iv_limit_for_full_masking): Declare.
15522
15523 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15524
15525 PR target/88834
15526 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15527 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15528 (get_alias_ptr_type_for_ptr_address): Likewise.
15529 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15530 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15531 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15532 allow_reg_index_p.
15533
15534 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15535
15536 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15537
15538 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15539
15540 * common/config/pru/pru-common.c: New file.
15541 * config.gcc: Add PRU target.
15542 * config/pru/alu-zext.md: New file.
15543 * config/pru/constraints.md: New file.
15544 * config/pru/predicates.md: New file.
15545 * config/pru/pru-opts.h: New file.
15546 * config/pru/pru-passes.c: New file.
15547 * config/pru/pru-pragma.c: New file.
15548 * config/pru/pru-protos.h: New file.
15549 * config/pru/pru.c: New file.
15550 * config/pru/pru.h: New file.
15551 * config/pru/pru.md: New file.
15552 * config/pru/pru.opt: New file.
15553 * config/pru/t-pru: New file.
15554 * doc/extend.texi: Document PRU pragmas.
15555 * doc/invoke.texi: Document PRU-specific options.
15556 * doc/md.texi: Document PRU asm constraints.
15557
15558 2019-06-12 Martin Sebor <msebor@redhat.com>
15559
15560 PR middle-end/90676
15561 * tree-pretty-print.c (dump_mem_ref): New function. Include
15562 MEM_REF type in output when different size than operand.
15563 (dump_generic_node): Move code to dump_mem_ref and call it.
15564
15565 2019-06-12 Martin Sebor <msebor@redhat.com>
15566
15567 PR tree-optimization/90662
15568 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15569 to arrays.
15570
15571 2019-06-12 Tom de Vries <tdevries@suse.de>
15572
15573 PR tree-optimization/90009
15574 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15575
15576 2019-06-12 Martin Liska <mliska@suse.cz>
15577
15578 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15579 the created map.
15580 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15581 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15582 Do not sanitize created maps.
15583
15584 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15585
15586 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15587 value_range::singleton_p.
15588 * tree-vrp.c (value_range_constant_singleton): Remove.
15589 * tree-vrp.h (value_range_constant_singleton): Remove.
15590 * vr-values.c (vr_values::singleton): Use
15591 value_range::singleton_p.
15592
15593 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15594
15595 PR target/90811
15596 * cfgexpand.c (align_local_variable): Add really_expand argument,
15597 don't SET_DECL_ALIGN if it is false.
15598 (add_stack_var): Add really_expand argument, pass it through to
15599 align_local_variable.
15600 (expand_one_stack_var_1): Pass true as really_expand to
15601 align_local_variable.
15602 (expand_one_ssa_partition): Pass true as really_expand to
15603 add_stack_var.
15604 (expand_one_var): Pass really_expand through to add_stack_var.
15605
15606 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15607
15608 * config/arm/iterators.md (VABAL): New int iterator.
15609 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15610 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15611 UNSPEC_VABAL_U values.
15612
15613 2019-06-12 Martin Liska <mliska@suse.cz>
15614
15615 * value-prof.c (stream_out_histogram_value): Only first value
15616 can't be negative.
15617
15618 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15619
15620 PR c/90760
15621 * symtab.c (symtab_node::set_section): Allow being called on aliases
15622 as long as they aren't analyzed yet.
15623
15624 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15625
15626 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15627 to `mips_set_text_contents_type' to indicate whether a
15628 non-debug insn follows.
15629
15630 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15631
15632 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15633 enabling -mpcrel by default.
15634 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15635 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15636 that the test against -mcpu=future is done first. Then test if
15637 -mprefixed-addr is on for -mpcrel.
15638 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15639
15640 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15641
15642 PR target/90811
15643 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15644 instead of and.u%d.
15645
15646 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15647
15648 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15649
15650 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15651
15652 PR c++/90449 - add -Winaccessible-base option.
15653 * doc/invoke.texi (Winaccessible-base): Document.
15654
15655 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15656
15657 PR tree-optimization/62041
15658 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15659
15660 2019-06-11 Jason Merrill <jason@redhat.com>
15661
15662 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15663 * tree.c (get_tree_code_name): Likewise.
15664 * print-tree.c (print_node): Only briefly print a node with an
15665 invalid code.
15666
15667 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15668
15669 PR bootstrap/90819
15670 * trans-mem.c (tm_memopt_compute_available): Add assertion
15671 that blocks is not empty. Formatting fix.
15672
15673 2019-06-11 Martin Liska <mliska@suse.cz>
15674
15675 PR c++/87847
15676 * hash-table.h: Extend create_gcc, add one parameter
15677 that is passed into hash_table::hash_table.
15678
15679 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15680
15681 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15682 New prototype.
15683 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15684 Emit clobber also for non-sse operations.
15685 (ix86_split_fp_absneg_operator): New function.
15686 * config/i386/i386.md (SSEMODEF): New mode iterator.
15687 (ssevecmodef): New mode attribute.
15688 (<code>tf2): Use absneg code iterator.
15689 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15690 Add three-operand AVX alternatives.
15691 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15692 Use absneg code iterator and X87MODEF mode iterator.
15693 (absneg fp_reg non-sse splitter): Call absneg code iterator
15694 and X87MODEF mode iterator.
15695 (absneg general_reg non-sse splitter): Use absneg code iterator
15696 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15697 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15698 code iterator. Add three-operand AVX alternative.
15699 (absneg sse_reg splitter): Use absneg code iterator
15700 and SSEMODEF mode iterator. Handle AVX operands.
15701 (absneg fp_reg splitter): Use absneg code iterator
15702 and MODEF mode iterator.
15703 (absneg general_reg splitter): Merge splitters using MODEF mode
15704 iterator. Use absneg code iterator. Call
15705 ix86_split_fp_absneg_operator.
15706 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15707 Do not enable for non-sse modes before reload.
15708 (CSGNMODE): Remove.
15709 (CSGNVMODE): Ditto.
15710 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15711 ssevecmodef mode attribute instaed of CSGNVMODE.
15712 (copysign<mode>3_const): Ditto.
15713 (copysign<mode>3_var): Ditto.
15714 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15715 Use absneg code iterator. Simplify code using std::swap.
15716 * config/i386/predicates.md (absneg_operator): Remove.
15717
15718 2019-06-10 Martin Sebor <msebor@redhat.com>
15719
15720 * gimple-fold.c (get_range_strlen): Update comment that didn't
15721 make it into r267503 or related commits.
15722
15723 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15724
15725 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15726 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15727
15728 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15729
15730 * tree.def (OMP_SCAN): New tree code.
15731 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15732 OMP_CLAUSE_EXCLUSIVE.
15733 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15734 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15735 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15736 OMP_CLAUSE_{IN,EX}CLUSIVE.
15737 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15738 * tree-nested.c (convert_nonlocal_reference_stmt,
15739 convert_local_reference_stmt, convert_gimple_call): Handle
15740 GIMPLE_OMP_SCAN.
15741 * tree-pretty-print.c (dump_omp_clause): Handle
15742 OMP_CLAUSE_{IN,EX}CLUSIVE.
15743 (dump_generic_node): Handle OMP_SCAN.
15744 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15745 * gimple.h (gomp_scan): New type.
15746 (is_a_helper <gomp_scan *>::test,
15747 is_a_helper <const gomp_scan *>::test): New templates.
15748 (gimple_build_omp_scan): Declare.
15749 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15750 gimple_omp_scan_set_clauses): New inline functions.
15751 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15752 * gimple.c (gimple_build_omp_scan): New function.
15753 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15754 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15755 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15756 GIMPLE_OMP_TASKGROUP.
15757 (dump_gimple_omp_scan): New function.
15758 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15759 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15760 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15761 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15762 (is_gimple_stmt): Handle OMP_SCAN.
15763 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15764 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15765 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15766 mentioned in nested #pragma omp scan. Handle
15767 OMP_CLAUSE_{IN,EX}CLUSIVE.
15768 (gimplify_expr): Handle OMP_SCAN.
15769 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15770 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15771 simd constructs.
15772 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15773 GIMPLE_OMP_SCAN.
15774
15775 2019-06-10 Martin Liska <mliska@suse.cz>
15776
15777 * ipa-cp.c (ignore_edge_p): New function.
15778 (build_toporder_info): Use it.
15779 * ipa-inline.c (ignore_edge_p): New function.
15780 (inline_small_functions): Use it.
15781 * ipa-pure-const.c (ignore_edge_for_nothrow):
15782 Verify opt_for_fn for caller and callee.
15783 (ignore_edge_for_pure_const): Likewise.
15784 * ipa-reference.c (ignore_edge_p): Extend to check
15785 for opt_for_fn.
15786 * ipa-utils.c (searchc): Refactor.
15787 * ipa-utils.h: Fix coding style.
15788
15789 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15790
15791 * config/arc/arc.c (arc_rtx_costs): Update costs.
15792
15793 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15794
15795 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15796 (arc_split_ior): Likewise.
15797 (arc_check_mov_const): Likewise.
15798 (arc_split_mov_const): Likewise.
15799 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15800 (arc_rtx_costs): Replace check Crr with Cax constraint.
15801 (prepare_move_operands): Cleanup, remove unused code.
15802 (arc_split_ior): New function.
15803 (arc_check_ior_const): Likewise.
15804 (arc_split_mov_const): Likewise.
15805 (arc_check_mov_const): Likewise.
15806 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15807 in define_insn_and_split pattern.
15808 (iorsi3): Likewise.
15809 (mulsi3_v2): Add new matching variant.
15810 (andsi3_i): Cleanup pattern.
15811 (rotrsi3_cnt1): Update pattern.
15812 (rotrsi3_cnt8): New pattern.
15813 (ashlsi2_cnt8): Likewise.
15814 (ashlsi2_cnt16): Likewise.
15815 * config/arc/constraints.md (C0p): Update constraint.
15816 (Crr): Remove it.
15817 (C0x): New pattern.
15818 (Cax): New pattern.
15819
15820 2019-06-10 Martin Liska <mliska@suse.cz>
15821
15822 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15823 Update coding style.
15824 (sem_item_optimizer::dump_cong_classes):
15825 Print how many items are in a non-singular class. Improve
15826 coding style.
15827
15828 2019-06-10 Martin Liska <mliska@suse.cz>
15829
15830 * value-prof.c (dump_histogram_value): Change dump format.
15831 (gimple_mod_subtract_transform): Remove legacy comment.
15832
15833 2019-06-10 Martin Liska <mliska@suse.cz>
15834
15835 * value-prof.c (dump_histogram_value): Print histogram values
15836 only if present.
15837
15838 2019-06-10 Martin Liska <mliska@suse.cz>
15839
15840 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15841 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15842 * ipa-profile.c (ipa_profile_generate_summary):
15843 Use get_most_common_single_value.
15844 * tree-profile.c (gimple_init_gcov_profiler):
15845 Instrument with __gcov_one_value_profiler_v2
15846 and __gcov_indirect_call_profiler_v4.
15847 * value-prof.c (dump_histogram_value):
15848 Print all values for HIST_TYPE_SINGLE_VALUE.
15849 (stream_out_histogram_value): Update assert for
15850 N values.
15851 (stream_in_histogram_value): Set number of
15852 counters for HIST_TYPE_SINGLE_VALUE.
15853 (get_most_common_single_value): New.
15854 (gimple_divmod_fixed_value_transform):
15855 Use get_most_common_single_value.
15856 (gimple_ic_transform): Likewise.
15857 (gimple_stringops_transform): Likewise.
15858 (gimple_find_values_to_profile): Set number
15859 of counters for HIST_TYPE_SINGLE_VALUE.
15860 * value-prof.h (get_most_common_single_value): New.
15861
15862 2019-06-10 Martin Liska <mliska@suse.cz>
15863
15864 * hash-map.h: Pass default value to hash_table ctor.
15865 * hash-table.h: Add default value to call of a ctor.
15866
15867 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15868
15869 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15870 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15871
15872 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15873
15874 PR target/90751
15875 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15876 Call pa_output_function_label.
15877 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15878 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15879 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15880 to declaration.
15881 (pa_linux_output_function_prologue): Declare.
15882 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15883 (pa_output_function_label): New.
15884 (pa_output_function_prologue): Revise to use pa_output_function_label.
15885 (pa_linux_output_function_prologue): New.
15886 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15887
15888 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15889
15890 * tree-vrp.h (value_range_base::intersect): New.
15891 (value_range::intersect_helper): Move from here...
15892 (value_range_base::intersect_helper): ...to here.
15893 * tree-vrp.c (value_range::intersect_helper): Rename to...
15894 (value_range_base::intersect_helper): ...this, and rewrite to
15895 return a value instead of modifying THIS in place.
15896 Also, move equivalence handling...
15897 (value_range::intersect): ...here, while calling intersect_helper.
15898 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15899 calling intersect.
15900 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15901 Same.
15902 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15903
15904 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15905
15906 * Makefile.in (genprogerr): Add condmd.
15907 (genprog): Remove it here.
15908
15909 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15910
15911 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15912
15913 2019-06-07 Richard Biener <rguenther@suse.de>
15914
15915 PR debug/90574
15916 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15917 that appear after user labels.
15918
15919 2019-06-07 Martin Liska <mliska@suse.cz>
15920
15921 * cselib.c (cselib_init): Disable hash table
15922 sanitization.
15923 * hash-set.h: Pass new default argument to m_table.
15924 * hash-table.c: Add global variable with hash table
15925 sanitization limit.
15926 * hash-table.h (Allocator>::hash_table): Add new argument
15927 to ctor.
15928 (hashtab_chk_error): New.
15929 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15930 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15931 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15932
15933 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15934
15935 * common.opt (flto-odr-type-merging): Ignore.
15936 * invoke.texi (-flto-odr-type-merging): Remove.
15937 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15938 (can_be_vtable_hashed_p): Remove.
15939 (hash_odr_vtable): Remove.
15940 (odr_vtable_hasher::hash): Remove.
15941 (types_same_for_odr): Remove.
15942 (types_odr_comparable): Remove.
15943 (odr_vtable_hasher::equal): Remove.
15944 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15945 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15946 (get_odr_type): Do not use vtable hash.
15947 (dump_odr_type): Remove commented out code.
15948 (build_type_inheritance_graph): Do not allocate vtable hash.
15949 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15950 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15951 (odr_type_p): Likewise.
15952 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15953 test.
15954
15955 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15956
15957 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15958 immediately after same_types_for_tbaa_p returns -1 and continue
15959 looking for possible exact match; if matching types are arrays
15960 watch for partial overlaps.
15961 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15962 (indirect_refs_may_alias_p): Do type based disambiguation first;
15963 update comment.
15964
15965 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15966
15967 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15968
15969 2019-06-07 Martin Liska <mliska@suse.cz>
15970
15971 * doc/invoke.texi: Remove param.
15972 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15973 Remove.
15974 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15975 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15976 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15977 * profile.c (instrument_values): Remove
15978 HIST_TYPE_INDIR_CALL_TOPN.
15979 * tree-profile.c (init_ic_make_global_vars):
15980 Always build __gcov_indirect_call only.
15981 (gimple_init_gcov_profiler): Remove usage
15982 of PARAM_INDIR_CALL_TOPN_PROFILE.
15983 (gimple_gen_ic_profiler): Likewise.
15984 * value-prof.c (dump_histogram_value): Likewise.
15985 (stream_in_histogram_value): Likewise.
15986 (gimple_indirect_call_to_profile): Likewise.
15987 (gimple_find_values_to_profile): Likewise.
15988 * value-prof.h (enum hist_type): Likewise.
15989
15990 2019-06-07 Martin Liska <mliska@suse.cz>
15991
15992 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15993 function.
15994
15995 2019-06-07 Martin Liska <mliska@suse.cz>
15996
15997 PR tree-optimization/78902
15998 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15999 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16000 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16001 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16002 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16003 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16004 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16005 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16006 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16007 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16008 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16009 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16010 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16011 New.
16012 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16013 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16014 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16015 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16016 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16017 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16018 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16019 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16020 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16021 warn_unused_result attribute.
16022 (BUILT_IN_STRDUP): Likewise.
16023 (BUILT_IN_STRNDUP): Likewise.
16024 (BUILT_IN_ALLOCA): Likewise.
16025 (BUILT_IN_CALLOC): Likewise.
16026 (BUILT_IN_MALLOC): Likewise.
16027 (BUILT_IN_REALLOC): Likewise.
16028
16029 2019-06-06 Jim Wilson <jimw@sifive.com>
16030
16031 PR target/89955
16032 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16033 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16034 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16035
16036 2019-06-06 Martin Sebor <msebor@redhat.com>
16037
16038 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16039 (handle_builtin_malloc): Remove trailing spaces.
16040 (handle_builtin_memset): Same.
16041 (handle_builtin_memcmp): Same.
16042 (compute_string_length): Same.
16043 (determine_min_objsize): Same.
16044 (handle_builtin_string_cmp): Same.
16045 (handle_char_store): Same. Break up excessively long line.
16046
16047 2019-06-06 Martin Jambor <mjambor@suse.cz>
16048
16049 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16050 check.
16051
16052 2019-06-06 Martin Jambor <mjambor@suse.cz>
16053
16054 * tree-sra.c (struct access): New field grp_same_access_path.
16055 (dump_access): Dump it.
16056 (build_reconstructed_reference): New function.
16057 (build_ref_for_model): Use it if possible.
16058 (path_comparable_for_same_access): New function.
16059 (same_access_path_p): Likewise.
16060 (sort_and_splice_var_accesses): Set the new flag.
16061 (analyze_access_subtree): Likewise.
16062 (propagate_subaccesses_across_link): Propagate zero value of the new
16063 flag down the access tree.
16064
16065 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16066
16067 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16068 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16069 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16070 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16071 Add gfx906.
16072
16073 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16074
16075 PR tree-optimization/90332
16076 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16077 Handle VALS containing two vectors.
16078 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16079 to...
16080 (@aarch64_combinez<mode>): ... This.
16081 (*aarch64_combinez_be<mode>): Rename to...
16082 (@aarch64_combinez_be<mode>): ... This.
16083 (vec_init<mode><Vhalf>): New define_expand.
16084 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16085
16086 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16087
16088 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16089 library functions only when not optimizing for size.
16090 (ashlsi3): Likewise.
16091 (ashrhi3): Likewise.
16092 (ashrsi3): Likewise.
16093 (lshrhi3): Likewise.
16094 (lshrsi3): Likewise.
16095
16096 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16097
16098 PR rtl-optimization/88751
16099 * ira.c (ira): Use the number of the actually referenced registers
16100 when calculating the threshold.
16101
16102 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16103
16104 * configure: Regenerate.
16105
16106 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16107
16108 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16109 register if it is in memory, so the shift can be emulated with a rotate
16110 instruction.
16111 (ashrhi3): Likewise.
16112 (lshrhi3): Likewise.
16113
16114 2019-06-06 Martin Liska <mliska@suse.cz>
16115
16116 PR tree-optimization/87954
16117 * match.pd: Simplify mult where both arguments are 0 or 1.
16118
16119 2019-06-06 Richard Biener <rguenther@suse.de>
16120
16121 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16122 put equivalences on UNDEFINED ranges.
16123 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16124 Make sure to drop defs of stmts added during simplification
16125 to VARYING.
16126
16127 2019-06-06 Richard Biener <rguenther@suse.de>
16128
16129 * tree-ssa-structalias.c: Include tree-cfg.h.
16130 (make_heapvar): Do not make heap vars artificial.
16131 (find_func_aliases_for_builtin_call): Handle stack allocation
16132 functions.
16133 (find_func_aliases): Delay processing of simple enough returns
16134 in non-IPA mode.
16135 (set_uids_in_ptset): Adjust.
16136 (find_what_var_points_to): Likewise.
16137 (solve_constraints): Do not dump points-to sets here.
16138 (compute_points_to_sets): Post-process return statements,
16139 amending the escaped solution. Dump points-to sets afterwards.
16140 (ipa_pta_execute): Dump points-to sets.
16141
16142 2019-06-06 Martin Liska <mliska@suse.cz>
16143
16144 PR web/87933
16145 * doc/install.texi: Fix HTML headers and
16146 titles for 'Installing GCC' pages.
16147
16148 2019-06-06 Martin Liska <mliska@suse.cz>
16149
16150 * ipa-icf-gimple.h (dump_message_1): Remove.
16151 (dump_message): Likewise.
16152 (return_false_with_message_1): Print also file.
16153 (return_false_with_msg): Likewise.
16154 (return_with_result): Likewise.
16155 (return_with_debug): Likewise.
16156 * ipa-icf.c (sem_function::equals_private): Remove call
16157 to dump_message.
16158
16159 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16160
16161 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16162 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16163 memory operand for it.
16164 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16165
16166 2019-06-05 Martin Sebor <msebor@redhat.com>
16167
16168 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16169 Adjust quoting and hyphenation.
16170 * convert.c (convert_to_real_1): Same.
16171 * gcc.c (driver_wrong_lang_callback): Same.
16172 (driver::handle_unrecognized_options): Same.
16173 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16174 * opts-common.c (cmdline_handle_error): Same.
16175 (read_cmdline_option): Same.
16176 * opts-global.c (complain_wrong_lang): Same.
16177 (print_ignored_options): Same.
16178 (handle_common_deferred_options): Same.
16179 * pretty-print.h: Same.
16180 * print-rtl.c (debug_bb_n_slim): Same.
16181 * sched-rgn.c (make_pass_sched_fusion): Same.
16182 * tree-cfg.c (verify_gimple_assign_unary): Same.
16183 (verify_gimple_label): Same.
16184 * tree-ssa-operands.c (verify_ssa_operands): Same.
16185 * varasm.c (do_assemble_alias): Same.
16186 (assemble_alias): Same.
16187
16188 2019-06-05 Richard Henderson <rth@twiddle.net>
16189
16190 * config/alpha/alpha.c (direct_return): Move down after
16191 struct machine_function definition; use saved frame_size;
16192 return bool.
16193 (struct machine_function): Add sa_mask, sa_size, frame_size.
16194 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16195 (alpha_compute_frame_layout): ... new function.
16196 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16197 (alpha_initial_elimination_offset): Use saved sa_size.
16198 (alpha_vms_initial_elimination_offset): Likewise.
16199 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16200 (alpha_expand_prologue): Use saved frame data. Merge integer
16201 and fp register save loops.
16202 (alpha_expand_epilogue): Likewise.
16203 (alpha_start_function): Use saved frame data.
16204 * config/alpha/alpha-protos.h (direct_return): Update.
16205 (alpha_sa_size): Remove.
16206
16207 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16208
16209 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16210 multiplication by a power-of-two value.
16211 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16212 and turn the modulo operation into a masking operation.
16213
16214 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16215
16216 PR debug/90733
16217 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16218 with VOIDmode inner operands.
16219
16220 2019-06-05 Richard Biener <rguenther@suse.de>
16221
16222 PR middle-end/90726
16223 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16224 turn an expression graph into a tree.
16225
16226 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16227
16228 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16229 member.
16230 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16231 treat it like explicit monotonic schedule modifier.
16232 (expand_omp_for): Initialize has_lastprivate_conditional.
16233 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16234 schedule modifier.
16235
16236 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16237 references, lookup in in hash map MEM_REF operand instead of the
16238 MEM_REF itself.
16239 (lower_omp_1): When looking for lastprivate conditional assignments,
16240 handle MEM_REFs with REFERENCE_TYPE operands.
16241
16242 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16243 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16244 and references a VLA. Handle references to non-VLAs if is_simd
16245 all privatization clauses like reductions.
16246 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16247 If omp_is_reference, use always omp simd arrays and set
16248 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16249 fails, emit reference initialization.
16250
16251 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16252
16253 PR target/89803
16254 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16255 _mm_mask_fpclass_sd_mask): New intrinsics.
16256 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16257 * config/i386/i386-builtin.def
16258 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16259 New builtins.
16260 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16261 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16262 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16263 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16264 case QI_FTYPE_V2SF_INT): Ditto.
16265 * config/i386/sse.md
16266 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16267 Extended to insnstructions with mask operands.
16268
16269 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16270
16271 * config/rs6000/constraints.md (define_register_constraint "wp"):
16272 Delete.
16273 (define_register_constraint "wq"): Delete.
16274 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16275 (rs6000_init_hard_regno_mode_ok): Adjust.
16276 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16277 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16278 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16279 (define_mode_attr VSa): Delete.
16280 (define_mode_attr VSisa): New.
16281 (rest of file): Adjust.
16282 * doc/md.texi (Machine Constraints): Adjust.
16283
16284 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16285
16286 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16287 (define_attr "enabled"): Handle those new isa values.
16288
16289 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16290
16291 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16292 (define_mode_attr VSr5): Delete.
16293 (define_mode_attr VStype_sqrt): Delete.
16294 (define_mode_iterator VSX_SPDP): Delete.
16295 (define_mode_attr VS_spdp_res): Delete.
16296 (define_mode_attr VS_spdp_insn): Delete.
16297 (define_mode_attr VS_spdp_type): Delete.
16298 (*vsx_sqrt<mode>2): Adjust.
16299 (vsx_<VS_spdp_insn>): Delete, split to...
16300 (vsx_xscvdpsp): ... this. New. And...
16301 (vsx_xvcvspdp): ... this. New. And...
16302 (vsx_xvcvdpsp): ... this. New.
16303
16304 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16305
16306 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16307 and V2DF.
16308 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16309 (rest of file): Adjust.
16310
16311 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16312
16313 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16314 (vsx_extract_<mode>_var): Ditto.
16315
16316 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16317
16318 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16319 with just "wa".
16320
16321 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16322
16323 * config/rs6000/constraints.md (define_register_constraint "ww"):
16324 Delete.
16325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16326 (rs6000_init_hard_regno_mode_ok): Adjust.
16327 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16328 RS6000_CONSTRAINT_ww.
16329 * config/rs6000/rs6000.md: Adjust.
16330 * config/rs6000/vsx.md: Adjust.
16331 * doc/md.texi (Machine Constraints): Adjust.
16332
16333 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16334
16335 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16336 (define_mode_attr sd): New.
16337 (define_mode_attr s): New.
16338 (define_mode_attr Ftrad): Delete.
16339 (define_mode_attr Fvsx): Delete.
16340 (define_mode_attr Fs): Delete.
16341 (rest of file): Use the new mode attributes.
16342 * config.rs6000/vsx.md: Use the new mode attributes.
16343
16344 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16345
16346 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16347 with just "wa".
16348
16349 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16350
16351 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16352 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16353 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16354
16355 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16356
16357 PR target/78263
16358 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16359 C++ with strict ANSI requirements.
16360
16361 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16362
16363 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16364 computations when step is 1.
16365
16366 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16367
16368 * config/rs6000/constraints.md (define_register_constraint "wf"):
16369 Delete.
16370 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16371 (rs6000_init_hard_regno_mode_ok): Adjust.
16372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16373 RS6000_CONSTRAINT_wf.
16374 * config/rs6000/rs6000.md: Adjust.
16375 * config/rs6000/vsx.md: Adjust.
16376 * doc/md.texi (Machine Constraints): Adjust.
16377
16378 2019-06-04 Andrew Pinski <apinski@marvell.com>
16379
16380 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16381 Fix ILP32 value.
16382
16383 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16384
16385 * config/rs6000/constraints.md (define_register_constraint "wd"):
16386 Delete.
16387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16388 (rs6000_init_hard_regno_mode_ok): Adjust.
16389 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16390 RS6000_CONSTRAINT_wd.
16391 * config/rs6000/rs6000.md: Adjust.
16392 * config/rs6000/vsx.md: Adjust.
16393 * doc/md.texi (Machine Constraints): Adjust.
16394
16395 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16396
16397 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16398 (rest of file): Adjust.
16399
16400 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16401
16402 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16403 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16404 (vsx_splat_<mode>_reg): Adjust.
16405
16406 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16407
16408 * config/rs6000/constraints.md (define_register_constraint "ws"):
16409 Delete.
16410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16411 (rs6000_init_hard_regno_mode_ok): Adjust.
16412 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16413 RS6000_CONSTRAINT_ws.
16414 * config/rs6000/rs6000.md: Adjust.
16415 * config/rs6000/vsx.md: Adjust.
16416 * doc/md.texi (Machine Constraints): Adjust.
16417
16418 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16419
16420 * config/rs6000/constraints.md (define_register_constraint "wv"):
16421 Delete.
16422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16423 (rs6000_init_hard_regno_mode_ok): Adjust.
16424 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16425 RS6000_CONSTRAINT_wv.
16426 * config/rs6000/rs6000.md: Adjust.
16427 * config/rs6000/vsx.md: Adjust.
16428 * doc/md.texi (Machine Constraints): Adjust.
16429
16430 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16431
16432 * config/rs6000/constraints.md (define_register_constraint "wi"):
16433 Delete.
16434 (define_register_constraint "wt"): Delete.
16435 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16436 (rs6000_init_hard_regno_mode_ok): Adjust.
16437 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16438 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16439 * config/rs6000/rs6000.md: Adjust.
16440 * config/rs6000/vsx.md: Adjust.
16441 * doc/md.texi (Machine Constraints): Adjust.
16442
16443 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16444
16445 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16446 const.
16447 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16448 default_elf_asm_output_external.
16449
16450 2019-06-04 Martin Liska <mliska@suse.cz>
16451
16452 * ipa-icf.c (INCLUDE_LIST): Remove.
16453 (sem_item_optimizer::execute): Remove call to init_wpa.
16454 * ipa-icf.h (init_wpa): Remove.
16455
16456 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16457
16458 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16459 conditional on combined for simd.
16460 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16461 member.
16462 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16463 constructs, don't remove lastprivate_conditional_map, but instead set
16464 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16465 to parent construct temporaries.
16466 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16467 like !ctx->lastprivate_conditional_map.
16468 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16469 use up->outer context instead of up.
16470 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16471 gimple_omp_for_combined_p.
16472 (expand_omp_for_static_nochunk): Likewise.
16473 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16474 probably moved over into expand_omp_for_generic rather than being copied
16475 there.
16476
16477 2019-06-04 Martin Liska <mliska@suse.cz>
16478
16479 * value-prof.c (dump_histogram_value): Fix typo.
16480 (gimple_mod_subtract_transform): Likewise.
16481
16482 2019-06-04 Richard Biener <rguenther@suse.de>
16483
16484 PR middle-end/90726
16485 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16486 (tree_contains_chrecs): Likewise.
16487 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16488 exponential behaivor from ...
16489 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16490 ... here.
16491 (expression_expensive_p): Avoid exponential behavior and compute
16492 expanded size, rejecting any expansion.
16493 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16494 (idx_contains_abnormal_ssa_name_p): Likewise.
16495 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16496 (contains_abnormal_ssa_name_p): Simplify and use
16497 walk_tree_without_duplicates.
16498
16499 2019-06-04 Richard Biener <rguenther@suse.de>
16500
16501 PR tree-optimization/90738
16502 Revert
16503 2019-06-03 Richard Biener <rguenther@suse.de>
16504
16505 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16506 full reference tree and record in ref->ref.
16507 (vn_reference_lookup_3): Pass in original ref to
16508 ao_ref_init_from_vn_reference.
16509 (vn_reference_lookup): Likewise.
16510 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16511 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16512 Handle non-decl bases in the original reference.
16513
16514 2019-06-04 Martin Liska <mliska@suse.cz>
16515
16516 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16517 number of references.
16518 (sem_item_optimizer::do_congruence_step):
16519 (sem_item_optimizer::worklist_push): Dump how references
16520 a class has.
16521 (sem_item_optimizer::worklist_pop): Use heap.
16522 (sem_item_optimizer::process_cong_reduction): Likewise.
16523 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16524
16525 2019-06-04 Martin Liska <mliska@suse.cz>
16526
16527 * ipa-icf.h (struct sem_usage_pair_hash): New.
16528 (sem_usage_pair_hash::hash): Likewise.
16529 (sem_usage_pair_hash::equal): Likewise.
16530 (struct sem_usage_hash): Likewise.
16531 * ipa-icf.c (sem_item::sem_item): Initialize
16532 referenced_by_count.
16533 (sem_item::add_reference): Register a reference
16534 in ref_map and not in target->usages.
16535 (sem_item::setup): Remove initialization of
16536 dead vectors.
16537 (sem_item::~sem_item): Remove usage of dead vectors.
16538 (sem_item::dump): Remove dump of references.
16539 (sem_item_optimizer::sem_item_optimizer): Initialize
16540 m_references.
16541 (sem_item_optimizer::read_section): Remove useless
16542 dump.
16543 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16544 (sem_item_optimizer::build_graph): Pass m_references
16545 to ::add_reference.
16546 (sem_item_optimizer::verify_classes): Remove usage of dead
16547 vectors.
16548 (sem_item_optimizer::traverse_congruence_split): Return true
16549 when a class is split.
16550 (sem_item_optimizer::do_congruence_step_for_index): Use
16551 hash_map for look up of (sem_item *, index). That brings
16552 significant speed up.
16553 (sem_item_optimizer::do_congruence_step): Return true
16554 when a split is done.
16555 (congruence_class::is_class_used): Use referenced_by_count.
16556
16557 2019-06-04 Alan Modra <amodra@gmail.com>
16558
16559 PR target/90689
16560 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16561 error.
16562
16563 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16564
16565 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16566 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16567 (rs6000_secondary_reload_simple_move): Adjust.
16568 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16569 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16570 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16571 comment.
16572 (power6x): Adjust.
16573 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16574 (floatunssi<mode>2_lfiwzx): Adjust.
16575 (fix_trunc<mode>si2_stfiwx): Adjust.
16576 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16577 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16578 (mfpgpr): Mark as deprecated.
16579 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16580 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16581 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16582
16583 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16584
16585 * config/rs6000/constraints.md (define_register_constraint "wg"):
16586 Delete.
16587 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16588 RS6000_CONSTRAINT_wg.
16589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16590 (rs6000_init_hard_regno_mode_ok): Adjust.
16591 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16592 Delete "wg" alternatives.
16593 * doc/md.texi (Machine Constraints): Adjust.
16594
16595 2019-06-03 Alan Modra <amodra@gmail.com>
16596
16597 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16598 (get_uncond_jump_length): Assert length less than INT_MAX and
16599 non-negative.
16600
16601 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16602
16603 PR middle-end/64242
16604 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16605 block.
16606 (expand_builtin_nonlocal_goto): Likewise.
16607
16608 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16609
16610 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16611 (aarch64_asm_output_external): Declare.
16612 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16613 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16614 (aarch64_asm_output_alias): New.
16615 (aarch64_asm_output_external): New.
16616 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16617 (ASM_OUTPUT_EXTERNAL): Define.
16618
16619 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16620 * tree-vrp.h (value_range_base::nonzero_p): New.
16621 (value_range_base::set_nonnull): Rename to...
16622 (value_range_base::set_nonzero): ...this.
16623 (value_range_base::set_null): Rename to...
16624 (value_range_base::set_zero): ...this.
16625 (value_range::set_nonnull): Remove.
16626 (value_range::set_null): Remove.
16627 * tree-vrp.c (range_is_null): Remove.
16628 (range_is_nonnull): Remove.
16629 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16630 instead of range_is_*null.
16631 (extract_range_from_unary_expr): Same.
16632 (value_range_base::set_nonnull): Rename to...
16633 (value_range_base::set_nonzero): ...this.
16634 (value_range::set_nonnull): Remove.
16635 (value_range_base::set_null): Rename to...
16636 (value_range_base::set_zero): ...this.
16637 (value_range::set_null): Remove.
16638 (extract_range_from_binary_expr): Rename set_*null uses to
16639 set_*zero.
16640 (extract_range_from_unary_expr): Same.
16641 (union_helper): Same.
16642 * vr-values.c (get_value_range): Use set_*zero instead of
16643 set_*null.
16644 (vr_values::extract_range_from_binary_expr): Same.
16645 (vr_values::extract_range_basic): Same.
16646
16647 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16648
16649 PR driver/90684
16650 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16651
16652 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16653
16654 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16655 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16656 Rename to...
16657 (aarch64_<su>abd<mode>_3): ... This.
16658 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16659
16660 2019-06-03 Richard Biener <rguenther@suse.de>
16661
16662 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16663 full reference tree and record in ref->ref.
16664 (vn_reference_lookup_3): Pass in original ref to
16665 ao_ref_init_from_vn_reference.
16666 (vn_reference_lookup): Likewise.
16667 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16668 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16669 Handle non-decl bases in the original reference.
16670
16671 2019-06-03 Martin Liska <mliska@suse.cz>
16672
16673 * doc/generic.texi: Remove Java Trees.
16674
16675 2019-06-03 Martin Liska <mliska@suse.cz>
16676
16677 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16678 returns 0 when operands are equal.
16679
16680 2019-06-03 Richard Biener <rguenther@suse.de>
16681
16682 PR tree-optimization/90716
16683 * tree-loop-distribution.c (destroy_loop): Process blocks in
16684 correct order.
16685
16686 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16687
16688 PR target/88837
16689 * vector-builder.h (vector_builder::count_dups): New method.
16690 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16691 Declare prototype.
16692 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16693 (vec_init<mode><Vel>): New pattern.
16694 * config/aarch64/aarch64.c (emit_insr): New function.
16695 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16696 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16697 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16698 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16699
16700 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16701
16702 PR tree-optimization/90681
16703 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16704 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16705 special case for SLP, but fail on non-groupped loads.
16706
16707 2019-06-03 Martin Liska <mliska@suse.cz>
16708
16709 * cfg.c (debug): Use TDF_DETAILS for debug and
16710 print edge info only once.
16711
16712 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16713
16714 PR fortran/90539
16715 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16716
16717 2019-06-01 Martin Sebor <msebor@redhat.com>
16718
16719 PR middle-end/90694
16720 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16721
16722 2019-05-31 Jan Hubicka <jh@suse.cz>
16723
16724 * alias.c: Include ipa-utils.h.
16725 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16726 * ipa-devirt.c (prevailing_odr_type): New.
16727 * ipa-utils.h (previaling_odr_type): Declare.
16728
16729 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16730 Hongtao Liu <hongtao.liu@intel.com>
16731
16732 PR target/89355
16733 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16734 NOTE_INSN_DELETED_LABEL check.
16735
16736 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16737 Robert Suchanek <robert.suchanek@mips.com>
16738
16739 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16740 and 3rd operands of the fmadd/fmsub/maddv builtin.
16741
16742 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16743
16744 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16745 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16746 on OMP_SIMD if not nested inside of worksharing loop that also has
16747 lastprivate conditional clause for the same decl.
16748 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16749 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16750 on simd.
16751 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16752 on simd construct.
16753 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16754 on simd construct.
16755 (lower_lastprivate_clauses): Likewise.
16756 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16757 calling lower_rec_input_clauses.
16758 (lower_omp_for): Likewise.
16759 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16760 clause on simd construct.
16761 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16762 OMP_CLAUSE__CONDTEMP_ clause is present.
16763
16764 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16765 ivar and lvar.
16766
16767 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16768
16769 PR c/43673
16770 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16771 TEX_D32, TEX_D64 or TEX_D128.
16772
16773 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16774
16775 * match.pd (~(vec?cst1:cst2)): New transformation.
16776
16777 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16778
16779 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16780 ((size_t)(A /[ex] B) CMP C): New transformation.
16781
16782 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16783
16784 * doc/md.texi: Document define_insn_and_rewrite.
16785 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16786 * gensupport.c (queue_elem): Update comment.
16787 (replace_operands_with_dups): New function.
16788 (gen_rewrite_sequence): Likewise.
16789 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16790 * read-rtl.c (apply_subst_iterator): Likewise.
16791 (add_condition_to_rtx, named_rtx_p): Likewise.
16792 (rtx_reader::read_rtx_operand): Likewise.
16793 * config/aarch64/aarch64-sve.md
16794 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16795 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16796 define_insn_and_rewrite.
16797 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16798 Remove separate define_split.
16799
16800 2019-05-31 Jan Hubicka <jh@suse.cz>
16801
16802 * tree-ssa-alias.c (type_has_components_p): New function.
16803 (aliasing_component_refs_p): Use it.
16804
16805 2019-05-31 Martin Liska <mliska@suse.cz>
16806
16807 * gdbhooks.py: Add const_tree to TreePrinter.
16808
16809 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16810
16811 PR debug/86964
16812 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16813 * doc/invoke.texi (Debugging Options): Document new default of
16814 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16815
16816 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16817
16818 PR tree-optimization/90671
16819 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16820 template_block used to be empty on the first call, don't use
16821 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16822 seq with bb_seq and set it with set_bb_seq.
16823
16824 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16825
16826 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16827
16828 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16829 Michael Meissner <meissner@linux.ibm.com>
16830
16831 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16832 (prefixed_mem_operand): Likewise.
16833 (non_prefixed_mem_operand): Likewise.
16834 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16835 prototype.
16836 * config/rs6000/rs6000.c (print_operand_address): Handle
16837 PC-relative addresses.
16838 (mode_supports_prefixed_address_p): New function.
16839 (rs6000_prefixed_address): New function.
16840 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16841 (SYMBOL_REF_PCREL_P): Likewise.
16842
16843 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16844
16845 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16846 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16847 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16848 is nested inside of parallel region, add _condtemp_ clause to both.
16849 * tree-nested.c (convert_nonlocal_omp_clauses,
16850 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16851 assertion failure.
16852 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16853 member.
16854 * omp-general.c (omp_extract_for_data): Compute it.
16855 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16856 (lower_rec_input_clauses): Likewise.
16857 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16858 clause is already present, just add one further one after it.
16859 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16860 (lower_send_shared_vars): Clear _condtemp_ vars.
16861 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16862 or section or taskgroup.
16863 * omp-expand.c (determine_parallel_type): Disallow combining only if
16864 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16865 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16866 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16867 expand_omp_for_static_chunk, expand_omp_for): Use
16868 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16869 determine if a special set of API routines are needed and if condtemp
16870 needs to be initialized, while always initialize cond_var if
16871 fd->lastprivate_conditional is non-zero.
16872
16873 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16874 Michael Meissner <meissner@linux.ibm.com>
16875
16876 * config/rs6000/constraints.md (eI): New constraint.
16877 * config/rs6000/predicates.md (cint34_operand): New predicate.
16878 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16879 (SIGNED_34BIT_OFFSET_P): Likewise.
16880 * doc/md.texi (eI): Document constraint.
16881
16882 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16883
16884 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16885
16886 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16887 Michael Meissner <meissner@linux.ibm.com>
16888
16889 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16890 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16891 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16892 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16893 (OTHER_FUTURE_MASKS): Likewise.
16894 (POWERPC_MASKS): Likewise.
16895 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16896 specified without -mprefixed-addr or -mcpu=future. Error if
16897 -mprefixed-addr is specified without -mcpu=future.
16898 (rs6000_opt_masks): Add entry for prefixed-addr.
16899 * rs6000.opt (mprefixed-addr): New option.
16900
16901 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16902
16903 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16904 cfun->is_thunk check.
16905
16906 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16907
16908 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16909 to length.
16910
16911 2019-05-30 Martin Liska <mliska@suse.cz>
16912
16913 * gdbinit.in: Fix 'ptc' command. Add trt
16914 that prints TREE_TYPE($).
16915
16916 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16917 Alan Modra <amodra@gmail.com>
16918
16919 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16920 calls here...
16921 (rs6000_indirect_call_template_1): ...and here.
16922 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16923 plt16_ha, plt16_lo, mtctr indirect calls. Use
16924 rs6000_pltseq_enum.
16925 (rs6000_decl_ok_for_sibcall): New function.
16926 (rs6000_function_ok_for_sibcall): Refactor.
16927 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16928 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16929 when pcrel. Reorganize.
16930 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16931 * rs6000.h (rs6000_pltseq_enum): New enum.
16932 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16933 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16934 (*pltseq_plt16_ha): Likewise.
16935 (*pltseq_plt16_lo): Likewise.
16936 (*pltseq_mtctr): Likewise.
16937 (*pltseq_plt_pcrel): New insn.
16938 (*call_local_aix): Handle @notoc calls.
16939 (*call_value_local_aix): Likewise.
16940 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16941 (*call_value_nonlocal_aix): Likewise.
16942 (*call_indirect_pcrel): New insn.
16943 (*call_value_indirect_pcrel): Likewise.
16944
16945 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16946
16947 * config/i386/sse.md (*save_multiple<mode>): Rename from
16948 save_multiple<mode>.
16949 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16950 (*restore_multiple_and_return<mode>): Rename from
16951 restore_multiple_and_return<mode>.
16952 (*restore_multiple_leave_return<mode>): Rename from
16953 restore_multiple_leave_return<mode>.
16954
16955 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16956
16957 * config.gcc (rx-*-linux*): New target.
16958 * config/rx/elf.opt: New file.
16959 * config/rx/linux.h: Likewise.
16960 * config/rx/t-linux: Likewise.
16961 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16962 make it zero.
16963 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16964 (ASM_APP_OFF): Likewise.
16965 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16966 moved elsewhere.
16967
16968 2019-05-29 Jan Hubicka <jh@suse.cz>
16969
16970 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16971 variants are pointer equivalent.
16972
16973 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16974
16975 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16976 * config/aarch64/aarch64-sve2.md: New file.
16977 (<u>avg<mode>3_floor): New pattern.
16978 (<u>avg<mode>3_ceil): Likewise.
16979 (*<sur>h<addsub><mode>): Likewise.
16980 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16981 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16982
16983 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16984
16985 PR bootstrap/90543
16986 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16987 for var_opt_string printing. In cl_optimization_print_diff, print
16988 (null) instead of invoking undefined behavior if one of the
16989 var_opt_string pointers is NULL and use && instead of first || in the
16990 guarding condition. For var_target_other options, handle const char *
16991 target variables similarly to const char * optimize node variables.
16992
16993 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16994
16995 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16996 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16997 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16998 Add autib1716 and pacib1716 initialisation.
16999 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17000 for autib1716 and pacib1716.
17001 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17002 aarch64_post_cfi_startproc): Define.
17003 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17004 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17005 aarch64_handle_pac_ret_protection): Set default sign key to A.
17006 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17007 aarch64_expand_prologue): Add check for b-key.
17008 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17009 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17010 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17011 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17012 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17013 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17014 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17015 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17016 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17017 pauth_hint_num_a with pauth_hint_num.
17018 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17019 pauth_hint_num_a with pauth_hint_num.
17020 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17021 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17022 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17023 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17024 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17025 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17026 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17027 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17028 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17029 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17030 UNSPEC_AUTIA1716 respectively.
17031 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17032 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17033 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17034 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17035 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17036 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17037
17038 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17039
17040 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17041 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17042 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17043 explicit clause on combined parallel into implicit shared clause.
17044 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17045 and firstprivate if the decl has one too from combined parallel to
17046 the worksharing construct.
17047
17048 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17049 Michael Meissner <meissner@linux.ibm.com>
17050
17051 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17052
17053 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17054
17055 * rtl.h (LABEL_REF_P): New #define.
17056
17057 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17058
17059 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17060
17061 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17062
17063 * internal-fn.c: Marked mask_load_direct as vectorizable.
17064 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17065 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17066 combined even if masks different with allow_slp_p param.
17067 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17068 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17069 dissolve SLP-only vectorizable groups when SLP has been discarded.
17070 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17071 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17072 masks.
17073 (vect_build_slp_tree_1): Fixed comment typo.
17074 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17075 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17076 loads for SLP only.
17077 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17078 vectorizable.
17079 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17080
17081 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17082
17083 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17084 Remove obsolete use_thunk reference.
17085 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17086 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17087 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17088 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17089 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17090 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17091 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17092 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17093 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17094
17095 2019-05-28 Nathan Sidwell <nathan@acm.org>
17096
17097 * tree.h (IDENTIFIER_ANON_P): New.
17098 (anon_aggrname_format, anon_aggname_p): Don't declare.
17099 (make_anon_name): Declare.
17100 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17101 (hash_tree): Likewise.
17102 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17103 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17104 (anon_cnt, make_anon_name): New.
17105
17106 2019-05-28 Martin Liska <mliska@suse.cz>
17107
17108 PR other/90315
17109 * opts-global.c (decode_options): Print help for all
17110 help_option_arguments.
17111 * opts.c (print_help): Add new argument.
17112 (common_handle_option): Remember all values into
17113 help_option_arguments.
17114 * opts.h (print_help): Add new argument.
17115
17116 2019-05-28 Martin Liska <mliska@suse.cz>
17117
17118 PR ipa/90555
17119 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17120 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17121 (func_checker::compare_bb): Call compare_loops.
17122
17123 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17124
17125 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17126 on sections construct.
17127 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17128 construct.
17129 (lower_omp_sections): Handle lastprivate conditional.
17130 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17131 lastprivate_conditional_map.
17132 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17133
17134 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17135 critical, taskgroup and section regions when looking for a region
17136 with non-NULL lastprivate_conditional_map.
17137
17138 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17139
17140 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17141 (*ix86_gen_sub3): Ditto.
17142 (*ix86_gen_sub3_carry): Ditto.
17143 (*ix86_gen_one_cmpl2): Ditto.
17144 (*ix86_gen_andsp): Ditto.
17145 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17146 (gen_and2_insn): New static function.
17147 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17148 Use gen_add3_insn instead of ix86_gen_add3.
17149 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17150 instead of ix86_gen_add3.
17151 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17152 Use gen_sub3_insn instead of ix86_gen_sub3.
17153 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17154 instead of ix86_gen_add3.
17155 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17156 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17157 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17158 * config/i386/i386-options.c (ix86_option_override_internal):
17159 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17160 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17161
17162 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17163
17164 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17165 and DW_OP_GNU_const_index opcodes.
17166
17167 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17168
17169 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17170
17171 2019-05-27 Richard Biener <rguenther@suse.de>
17172
17173 PR tree-optimization/90637
17174 * tree-ssa-sink.c (statement_sink_location): Honor the
17175 computed sink location for single-uses.
17176
17177 2019-05-27 Richard Biener <rguenther@suse.de>
17178
17179 PR middle-end/90610
17180 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17181 a bit-insert.
17182
17183 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17184
17185 * config/i386/i386.md (@sub<mode>3_carry): Rename
17186 from sub<mode>3_carry.
17187 (@leave_<mode>): New expander.
17188 (*leave): Rename from leave.
17189 (*leave_rex64): Rename from leave_rex64.
17190 (@monitorx_<mode>): Rename from monitorx_<mode>.
17191 (@clzero_<mode>): Rename from clzero_<mode>.
17192 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17193 from sse3_monitor_<mode>.
17194 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17195 (*ix86_gen_leave): Ditto.
17196 (*ix86_gen_monitor): Ditto.
17197 (*ix86_gen_monitorx): Ditto.
17198 (*ix86_gen_clzero): Ditto.
17199 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17200 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17201 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17202 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17203 Use gen_sse3_monitor instead of ix86_gen_monitor.
17204 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17205 instead of ix86_gen_monitorx.
17206 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17207 instead of ix86_gen_clzero.
17208 * config/i386/i386-options.c (ix86_option_override_internal):
17209 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17210 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17211
17212 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17213
17214 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17215 Rename from tls_global_dynamic_64_<mode>.
17216 (@tls_local_dynamic_base_64_<mode>): Rename from
17217 tls_local_dynamic_base_64_<mode>.
17218 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17219 Remove indirect function.
17220 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17221 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17222 instead of ix86_gen_tls_global_dynamic_64.
17223 Use gen_tls_local_dynamic_base_64 instead of
17224 ix86_gen_tls_local_dynamic_base_64.
17225 * config/i386/i386-options.c (ix86_option_override_internal):
17226 Do not initialize ix86_gen_tls_global_dynamic_64 and
17227 ix86_gen_tls_local_dynamic_base_64.
17228
17229 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17230
17231 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17232 Rename from pro_epilogue_adjust_stack_<mode>_add.
17233 (@pro_epilogue_adjust_stack_sub_<mode>)
17234 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17235 (@allocate_stack_worker_probe_<mode>):
17236 Rename from allocate_stack_worker_probe_<mode>.
17237 (allocate_stack): Use gen_allocate_stack_worker_probe.
17238 (probe_stack): Use gen_probe_stack_1.
17239 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17240 (@adjust_stack_and_probe_<mode>): Rename from
17241 adjust_stack_and_probe<mode>.
17242 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17243 (stack_protect_set): Use gen_stack_protect_set_1.
17244 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17245 (stack_protect_test): Use gen_stack_protect_test_1.
17246 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17247 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17248 Remove indirect function.
17249 (*ix86_gen_adjust_stack_and_probe): Ditto.
17250 (*ix86_gen_probe_stack_range): Ditto.
17251 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17252 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17253 (ix86_adjust_stack_and_probe_stack_clash): Use
17254 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17255 (ix86_adjust_stack_and_probe): Ditto.
17256 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17257 of ix86_gen_probe_stack_range.
17258 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17259 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17260 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17261 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17262 CODE_FOR_stack_protect_test_{si,di}.
17263 * config/i386/i386-options.c (ix86_option_override_internal):
17264 Do not initialize ix86_gen_allocate_stack_worker,
17265 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17266
17267 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17268
17269 * doc/invoke.texi (Link Options): Many editorial changes around
17270 -flinker-output.
17271
17272 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17273
17274 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17275 pre-Solaris 11 referene and most Studio compiler details.
17276
17277 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17278
17279 PR target/90530
17280 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17281 DImode to SImode in floating-point registers on 64-bit target.
17282 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17283 register_operand in xmpyu patterns.
17284
17285 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17286
17287 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17288 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17289 OMP_CLAUSE__REDUCTEMP_.
17290 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17291 OMP_CLAUSE__CONDTEMP_.
17292 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17293 * tree-pretty-print.c (dump_omp_clause): Likewise.
17294 * tree-nested.c (convert_nonlocal_omp_clauses,
17295 convert_local_omp_clauses): Likewise.
17296 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17297 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17298 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17299 on OMP_FOR.
17300 (gimplify_omp_for): Warn and disable conditional modifier from
17301 lastprivate on loop iterators.
17302 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17303 member.
17304 * omp-general.c (omp_extract_for_data): Initialize it.
17305 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17306 member.
17307 (delete_omp_context): Delete it.
17308 (lower_lastprivate_conditional_clauses): New function.
17309 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17310 handle lastprivate conditional clauses.
17311 (lower_reduction_clauses): Add CLIST argument, emit it into
17312 the critical section if any.
17313 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17314 lower_reduction_clauses callers.
17315 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17316 to lower_lastprivate_clauses.
17317 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17318 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17319 clist into a critical section if not emitted there already by
17320 lower_reduction_clauses.
17321 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17322 callers.
17323 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17324 conditional variables.
17325 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17326 clause is present.
17327 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17328 expand_omp_for_static_chunk): Handle lastprivate conditional.
17329 (expand_omp_for): Handle fd.lastprivate_conditional like
17330 fd.have_reductemp.
17331
17332 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17333
17334 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17335 kernel does not exit cleanly.
17336 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17337
17338 2019-05-24 Jason Merrill <jason@redhat.com>
17339
17340 Revert:
17341 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17342
17343 2019-05-24 Richard Biener <rguenther@suse.de>
17344
17345 PR testsuite/90607
17346 * tree-loop-distribution.c (struct partition): Add location
17347 member.
17348 (partition_alloc): Initialize all fields.
17349 (generate_memset_builtin): Use the location recorded in the
17350 partition for the generated call.
17351 (generate_memcpy_builtin): Likewise.
17352 (classify_partition): Record the location of a single store
17353 as location for the partition.
17354
17355 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17356
17357 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17358 for lo-part.
17359
17360 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17361
17362 PR target/90588
17363 * common/config/aarch64/aarch64-common.c
17364 (aarch64_rewrite_selected_cpu): Change local temporary variable
17365 type from unsigned long to uint64_t.
17366 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17367 aarch64_get_extension_string_for_isa_flags): Change declaration to
17368 match new definition by replacing unsigned long with uint64_t.
17369
17370 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17371
17372 PR target/90568
17373 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17374 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17375 Handle stack_protect_test_<mode> codegen similarly to corresponding
17376 sub instruction.
17377
17378 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17379
17380 * config/i386/darwin.h: Reject -mfentry*.
17381 * doc/sourcebuild.texi: Document mfentry target support.
17382
17383 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17384
17385 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17386 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17387 false for PC-relative functions.
17388 (rs6000_output_function_prologue): Change called function name to
17389 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17390 name,1" for PC-relative functions.
17391 (rs6000_elf_declare_function_name): Change called function name to
17392 rs6000_global_entry_point_prologue_needed_p.
17393
17394 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17395
17396 PR target/90552
17397 * config/i386/i386.c (gen_rtx_cost):
17398 Use ix86_tune_cost instead of ix86_cost.
17399
17400 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17401 Michael Meissner <meissner@linux.ibm.com>
17402 Segher Boessenkool <segher@kernel.crashing.org>
17403
17404 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17405 OPTION_MASK_PCREL.
17406 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17407 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17408 (rs6000_fndecl_pcrel_p): Likewise.
17409 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17410 error if -mpcrel is requested without -mcpu=future.
17411 (rs6000_opt_masks): Add entry for pcrel.
17412 (rs6000_fndecl_pcrel_p): New function.
17413 (rs6000_pcrel_p): Likewise.
17414 * config/rs6000/rs6000.opt (mpcrel): New option.
17415 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17416
17417 2019-05-23 Jan Hubicka <jh@suse.cz>
17418 Martin Liska <mliska@suse.cz>
17419
17420 PR tree-optimization/90576
17421 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17422 poly_int_tree_p.
17423 (aliasing_component_refs_p): Fix three way size compare conditional;
17424 give up earlier in case we can not decide on equivalence.
17425
17426 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17427 Michael Meissner <meissner@linux.ibm.com>
17428 Segher Boessenkool <segher@kernel.crashing.org>
17429
17430 * config.gcc: Add future cpu.
17431 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17432 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17433 #define.
17434 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17435 (RS6000_CPU): New instantiation for future cpu.
17436 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17437 PROCESSOR_FUTURE.
17438 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17439 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17440 * config/rs6000/rs6000-tables.opt: Regenerate.
17441 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17442 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17443 (rs6000_machine_from_flags): Handle future cpu.
17444 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17445 PROCESSOR_POWER9 for now.
17446 (rs6000_adjust_cost): Likewise.
17447 (rs6000_issue_rate): Likewise.
17448 (rs6000_register_move_cost): Likewise.
17449 (rs6000_opt_masks): Add entry for future.
17450 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17451 (MASK_FUTURE): New #define.
17452 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17453 * config/rs6000/rs6000.opt (mfuture): New target option.
17454 * doc/invoke.texi (mcpu): Add future cpu.
17455
17456 2019-05-23 Martin Liska <mliska@suse.cz>
17457
17458 PR c++/90587
17459 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17460 operation points to a temporary (pointed via tree_to_wide_ref)
17461 that is out of scope after the &.
17462
17463 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17464
17465 PR c++/90592
17466 * doc/extend.texi (Function Names): Add missing word.
17467
17468 2019-05-23 Richard Biener <rguenther@suse.de>
17469
17470 PR tree-optimization/88440
17471 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17472 at -O[2s]+.
17473 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17474 generated call.
17475 (generate_memcpy_builtin): Likewise.
17476 (distribute_loop): Pass in whether to only distribute patterns.
17477 (prepare_perfect_loop_nest): Also allow size optimization.
17478 (pass_loop_distribution::execute): When optimizing a loop
17479 nest for size allow pattern replacement.
17480
17481 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17482
17483 PR target/90568
17484 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17485 of xor.
17486
17487 2019-05-23 Martin Liska <mliska@suse.cz>
17488
17489 PR sanitizer/90570
17490 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17491 expression similarly to gimplify_decl_expr.
17492
17493 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17494
17495 * cse.c (cse_dump_path): s/dump_file/f.
17496
17497 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17498
17499 PR c++/90462
17500 * diagnostic-format-json.cc: Include "selftest.h".
17501 (json_from_expanded_location): Only add "file" key for non-NULL
17502 file strings.
17503 (json_from_location_range): Don't add "start" and "finish"
17504 children if they are UNKNOWN_LOCATION.
17505 (selftest::test_unknown_location): New selftest.
17506 (selftest::test_bad_endpoints): New selftest.
17507 (selftest::diagnostic_format_json_cc_tests): New function.
17508 * json.cc (json::object::get): New function.
17509 (selftest::test_object_get): New selftest.
17510 (selftest::json_cc_tests): Call it.
17511 * json.h (json::object::get): New decl.
17512 * selftest-run-tests.c (selftest::run_tests): Call
17513 selftest::diagnostic_format_json_cc_tests.
17514 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17515 decl.
17516
17517 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17518 Andrew Stubbs <amd@codesourcery.com>
17519
17520 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17521 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17522 (kernel): Rename to...
17523 (main_kernel): ... this.
17524 (load_image): Load _init_array and _fini_array kernels.
17525 (run): Add argument for kernel to run.
17526 (main): Run init_array_kernel before main_kernel, and
17527 fini_array_kernel after.
17528 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17529 amdgpu_hsa_kernel attribute on functions.
17530 (gcn_disable_constructors): Delete.
17531 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17532 * config/gcn/crt0.c (size_t): Define.
17533 (_init_array, _fini_array): New.
17534 (__preinit_array_start, __preinit_array_end,
17535 __init_array_start, __init_array_end,
17536 __fini_array_start, __fini_array_end): Declare weak references.
17537
17538 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17539
17540 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17541
17542 2019-05-22 Jason Merrill <jason@redhat.com>
17543
17544 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17545
17546 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17547
17548 PR target/88483
17549 * config/i386/i386-options.c (ix86_init_machine_status): Set
17550 stack_frame_required to true.
17551 * config/i386/i386.c (ix86_get_frame_size): New function.
17552 (ix86_frame_pointer_required): Replace get_frame_size with
17553 ix86_get_frame_size.
17554 (ix86_compute_frame_layout): Likewise.
17555 (ix86_find_max_used_stack_alignment): Changed to void. Set
17556 stack_frame_required.
17557 (ix86_finalize_stack_frame_flags): Always call
17558 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17559 ix86_get_frame_size.
17560 * config/i386/i386.h (machine_function): Add stack_frame_required.
17561
17562 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17563
17564 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17565
17566 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17567
17568 * common/config/aarch64/aarch64-common.c
17569 (struct aarch64_option_extension, struct processor_name_to_arch,
17570 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17571 aarch64_contains_opt,
17572 aarch64_get_extension_string_for_isa_flags): Change type of
17573 variables storing flags to uint64_t.
17574 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17575 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17576 * config/aarch64/aarch64.c (struct processor,
17577 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17578 aarch64_validate_march, aarch64_override_options,
17579 aarch64_option_print, aarch64_handle_attr_isa_flags,
17580 aarch64_declare_function_name, aarch64_start_file): Make flag
17581 variables uint64_t.
17582 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17583 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17584 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17585 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17586 * config/aarch64/driver-aarch64.c
17587 (struct aarch64_arch_extension, struct aarch64_core_data,
17588 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17589 flag variables uint64_t.
17590 * doc/invoke.texi: Add documentation for new arguments.
17591
17592 2019-05-22 Richard Biener <rguenther@suse.de>
17593
17594 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17595 rewrite ...
17596 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17597
17598 2019-05-22 Martin Liska <mliska@suse.cz>
17599
17600 PR lto/90500
17601 * doc/extend.texi: Document the change.
17602
17603 2019-05-22 Richard Biener <rguenther@suse.de>
17604
17605 PR tree-optimization/90450
17606 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17607 (mem_ref_hasher::equal): Check it.
17608 (mem_ref_alloc): Initialize it.
17609 (gather_mem_refs_stmt): Set it.
17610
17611 2019-05-22 Richard Biener <rguenther@suse.de>
17612
17613 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17614 Add ABS_EXPR.
17615 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17616 as ABSU_EXPR.
17617
17618 2019-05-22 Alan Modra <amodra@gmail.com>
17619
17620 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17621 (ASM_CPU_SPEC): Conditionally add -many.
17622 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17623 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17624 (rs6000_file_start): ..extracted from here, and modified to
17625 test all ISA bits.
17626 (rs6000_output_function_prologue): Emit .machine as necessary.
17627
17628 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17629
17630 PR middle-end/90553
17631 * ira-lives.c (process_bb_node_lives): Consider defs
17632 for a call insn to be die before the call, not after.
17633
17634 * function.c (assign_parm_setup_block): Raise alignment of
17635 stacked parameter only for STRICT_ALIGNMENT targets.
17636
17637 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17638
17639 * config/rs6000/constraints.md (define_register_constraint "wz"):
17640 Delete.
17641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17642 RS6000_CONSTRAINT_wz.
17643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17644 (rs6000_init_hard_regno_mode_ok): Adjust.
17645 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17646 * doc/md.texi (Machine Constraints): Adjust.
17647
17648 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17649
17650 * config/rs6000/constraints.md (define_register_constraint "wl"):
17651 Delete.
17652 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17653 RS6000_CONSTRAINT_wl.
17654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17655 (rs6000_init_hard_regno_mode_ok): Adjust.
17656 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17657 * doc/md.texi (Machine Constraints): Adjust.
17658
17659 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17660
17661 * config/rs6000/constraints.md (define_register_constraint "wm"):
17662 Delete.
17663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17664 RS6000_CONSTRAINT_wm.
17665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17666 (rs6000_init_hard_regno_mode_ok): Adjust.
17667 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17668 * doc/md.texi (Machine Constraints): Adjust.
17669
17670 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17671
17672 * config/rs6000/constraints.md (define_register_constraint "wk"):
17673 Delete.
17674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17675 RS6000_CONSTRAINT_wk.
17676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17677 (rs6000_init_hard_regno_mode_ok): Adjust.
17678 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17679 * doc/md.texi (Machine Constraints): Adjust.
17680
17681 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17682
17683 * config/rs6000/constraints.md (define_register_constraint "wj"):
17684 Delete.
17685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17686 RS6000_CONSTRAINT_wj.
17687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17688 (rs6000_init_hard_regno_mode_ok): Adjust.
17689 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17690 (VS_64dm): Delete.
17691 * config/rs6000/vsx.md: Ditto.
17692 * doc/md.texi (Machine Constraints): Adjust.
17693
17694 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17695
17696 * config/rs6000/constraints.md (define_register_constraint "wh"):
17697 Delete.
17698 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17699 RS6000_CONSTRAINT_wh.
17700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17701 (rs6000_init_hard_regno_mode_ok): Adjust.
17702 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17703 * doc/md.texi (Machine Constraints): Adjust.
17704
17705 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17706
17707 PR target/90547
17708 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17709 Avoid calling gen_lowpart with CONST operand.
17710
17711 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17712
17713 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17714 field template_last_to_copy.
17715 (ssa_create_duplicates): Set it, and use it. Attempt to
17716 preserve more debug stmts.
17717
17718 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17719
17720 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17721 (signbit<mode>2): New expander
17722
17723 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17724
17725 PR bootstrap/87338
17726 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17727 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17728
17729 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17730
17731 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17732 %ebx and %ecx bafore calling cpuid with leaf 1 or
17733 non-constant leaf argument.
17734
17735 2019-05-21 Alan Modra <amodra@gmail.com>
17736
17737 PR target/90545
17738 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17739 power9 direct move cost.
17740
17741 2019-05-21 Richard Biener <rguenther@suse.de>
17742
17743 PR middle-end/90510
17744 * fold-const.c (fold_read_from_vector): New function.
17745 * fold-const.h (fold_read_from_vector): Declare.
17746 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17747 single-element insert permutations. Canonicalize selector
17748 further and fix issue with last commit.
17749
17750 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17751
17752 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17753 parameter with default value false to declaration.
17754 (split_edges_for_insertion): New inline function. Wrapper for
17755 split_critical_edges with for_edge_insertion_p = true.
17756 * tree-cfg.c (split_critical_edges): Don't split non-critical
17757 edges if for_edge_insertion_p is false. Fix whitespace.
17758 * tree-ssa-pre.c (pass_pre::execute): Call
17759 split_edges_for_insertion instead of split_critical_edges.
17760 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17761 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17762 (pass_data_sink_code): Update function name in the comment.
17763
17764 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17765
17766 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17767 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17768 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17769 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17770 positives.
17771
17772 2019-05-21 Martin Liska <mliska@suse.cz>
17773
17774 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17775 an extra newline.
17776 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17777 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17778 vec_lvsr.
17779 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17780 Quote a C type.
17781 (rs6000_function_arg): Likewise.
17782 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17783 (rs6000_expand_ternop_builtin): Use interval syntax.
17784 (get_element_number): Likewise.
17785 (altivec_expand_builtin): Likewise.
17786 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17787
17788 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17789
17790 PR c++/59813
17791 PR target/90418
17792 * function.h (struct function): Add calls_eh_return member.
17793 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17794 gimplifying __builtin_eh_return call.
17795 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17796 to cfun.
17797 (expand_call_inline): Or in src_cfun->calls_eh_return into
17798 dst_cfun->calls_eh_return.
17799 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17800 cfun->calls_eh_return.
17801 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17802 * lto-streamer-out.c (output_struct_function_base): Write
17803 calls_eh_return.
17804
17805 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17806
17807 PR rtl-optimization/43147
17808 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17809 IX86_BUILTIN_SHUFPD.
17810
17811 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17812
17813 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17814 (refs_may_alias_p_1): ... here; update stats.
17815 (refs_may_alias_p): Do not update stats here.
17816
17817 2019-05-20 Richard Biener <rguenther@suse.de>
17818
17819 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17820 doesn't produce pointers.
17821 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17822 the first operand points to.
17823
17824 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17825
17826 * tree-ssa-alias.c (compare_sizes): New function.
17827 (sompare_type_sizes): New function
17828 (aliasing_component_refs_p): Use it.
17829 (indirect_ref_may_alias_decl_p): Likewise.
17830
17831 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17832
17833 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17834
17835 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17836
17837 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17838 (LIBLSAN_EARLY_SPEC): Likewise.
17839 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17840
17841 2019-05-20 Martin Liska <mliska@suse.cz>
17842
17843 * config/i386/i386.c (ix86_libc_has_fast_function):
17844 Add ATTRIBUTE_UNUSED for the argument.
17845
17846 2019-05-20 Richard Biener <rguenther@suse.de>
17847
17848 * gimple-match-head.c: Include vec-perm-indices.h.
17849 * generic-match-head.c: Likewise.
17850 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17851 is included.
17852 * fold-const.c (fold_vec_perm): Export.
17853 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17854 (match.pd): ...here.
17855
17856 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17857
17858 * cfgloop.h (struct loop): Add simdlen member.
17859 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17860 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17861 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17862 as new argument to autovectorize_vector_sizes target hook. If
17863 loop->simdlen, pick up vector size where the vectorization factor
17864 is equal to loop->simd, and if there is none, fall back to the first
17865 successful one.
17866 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17867 caller.
17868 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17869 * omp-general.c (omp_max_vf): Likewise.
17870 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17871 * tree-vect-slp.c (vect_slp_bb): Likewise.
17872 * target.def (autovectorize_vector_sizes): Add ALL argument and
17873 document it.
17874 * doc/tm.texi: Adjust documentation.
17875 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17876 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17877 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17878 bool argument.
17879 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17880 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17881 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17882 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17883 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17884 preferred vector size is not 512-bit or 256-bit, just put those
17885 unpreferred ones last.
17886
17887 2019-05-20 Martin Liska <mliska@suse.cz>
17888
17889 * targhooks.c (default_libc_has_fast_function): New function.
17890 * targhooks.h (default_libc_has_fast_function): Likewise.
17891
17892 2019-05-20 Martin Liska <mliska@suse.cz>
17893
17894 PR middle-end/90263
17895 * builtins.c (expand_builtin_memory_copy_args): When having a
17896 target with fast mempcpy implementation do now use memcpy.
17897 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17898 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17899 * doc/tm.texi: Likewise.
17900 * doc/tm.texi.in: Likewise.
17901 * target.def:
17902 * expr.c (emit_block_move_hints): Add 2 new arguments.
17903 * expr.h (emit_block_move_hints): Bail out when libcall
17904 to memcpy would be used.
17905
17906 2019-05-20 Martin Liska <mliska@suse.cz>
17907
17908 * profile-count.c: Add vertical spacing in order
17909 to separate functions.
17910 * profile-count.h: Likewise.
17911
17912 2019-05-20 Martin Liska <mliska@suse.cz>
17913
17914 * profile-count.h: Do not use full qualified
17915 names if possible.
17916 * profile-count.c (profile_count::to_frequency): Likewise.
17917
17918 2019-05-20 Martin Liska <mliska@suse.cz>
17919
17920 * profile-count.h (enum profile_quality): Use capital letters
17921 for enum value names. Use the adjusted names.
17922 * profile-count.c: Use the adjusted names.
17923
17924 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17925
17926 * config/rs6000/constraints.md (define_register_constraint "wH"):
17927 Delete.
17928 (define_register_constraint "wI"): Delete.
17929 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17930 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17931 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17932 (rs6000_init_hard_regno_mode_ok): Adjust.
17933 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17934 resp. "d", or with "wa" as appropriate, all with "p8v".
17935 * config/rs6000/vsx.md: Ditto.
17936 * doc/md.texi (Machine Constraints): Adjust.
17937
17938 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17939
17940 * config/rs6000/constraints.md (define_register_constraint "wy"):
17941 Delete.
17942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17943 RS6000_CONSTRAINT_wy.
17944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17945 (rs6000_init_hard_regno_mode_ok): Adjust.
17946 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17947 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17948 (define_mode_attr Fisa): New.
17949 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17950 * doc/md.texi (Machine Constraints): Adjust.
17951
17952 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17953
17954 * config/rs6000/constraints.md (define_register_constraint "wu"):
17955 Delete.
17956 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17957 RS6000_CONSTRAINT_wu.
17958 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17959 (rs6000_init_hard_regno_mode_ok): Adjust.
17960 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17961 both with "p8v".
17962 (define_mode_attr Fa): Delete.
17963 * config/rs6000/vsx.md: Ditto.
17964 * doc/md.texi (Machine Constraints): Adjust.
17965
17966 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17967
17968 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17969 Delete.
17970 (define_register_constraint "wK"): Delete.
17971 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17972 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17973 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17974 (rs6000_init_hard_regno_mode_ok): Adjust.
17975 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17976 Replace "wK" constraint by "wH" with "p9v".
17977 * config/rs6000/vsx.md: Ditto.
17978 * doc/md.texi (Machine Constraints): Adjust.
17979
17980 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17981
17982 * config/rs6000/constraints.md (define_register_constraint "wb"):
17983 Delete.
17984 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17985 RS6000_CONSTRAINT_wb.
17986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17987 (rs6000_init_hard_regno_mode_ok): Adjust.
17988 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17989 * config/rs6000/vsx.md: Ditto.
17990 * doc/md.texi (Machine Constraints): Adjust.
17991
17992 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17993
17994 * config/rs6000/constraints.md (define_register_constraint "wo"):
17995 Delete.
17996 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17997 RS6000_CONSTRAINT_wo.
17998 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17999 (rs6000_init_hard_regno_mode_ok): Adjust.
18000 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18001 * config/rs6000/altivec.md: Ditto.
18002 * doc/md.texi (Machine Constraints): Adjust.
18003
18004 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18005
18006 * config/darwin-c.c (darwin_register_objc_includes): Do not
18007 prepend the sysroot when building gnu-runtime header search
18008 paths.
18009
18010 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18011
18012 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18013 instead of direct output of the asm.
18014
18015 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18016
18017 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18018 argument to be type bool (was int before).
18019 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18020 at first use. Use type bool for some variables. Fix a theoretical
18021 eh_return bug for svr4.
18022
18023 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18024
18025 * config/rs6000/rs6000.md (isa): New attribute.
18026 (enabled): New attribute.
18027
18028 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18029
18030 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18031 assemble_start_function and assemble_end_function.
18032
18033 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18034
18035 PR middle-end/89433
18036 * omp-general.c (oacc_verify_routine_clauses): Change formal
18037 parameters. Add checking if already marked with an OpenACC
18038 'routine' directive. Adjust all users.
18039
18040 PR middle-end/89433
18041 * omp-general.c (oacc_build_routine_dims): Move some of its
18042 processing into...
18043 (oacc_verify_routine_clauses): ... this new function.
18044 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18045
18046 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18047
18048 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18049 formating of picbase labels to match other ports.
18050
18051 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18052
18053 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18054 in the generated code.
18055
18056 2019-05-16 Martin Sebor <msebor@redhat.com>
18057
18058 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18059 identifiers, keywords, operators, and types in diagnostics. Correct
18060 quoting, spelling, and sentence capitalization issues.
18061 (expand_builtin_atomic_is_lock_free): Same.
18062 (fold_builtin_next_arg): Same.
18063 * cfgexpand.c (expand_one_var): Same.
18064 (tree_conflicts_with_clobbers_p): Same.
18065 (expand_asm_stmt): Same.
18066 (verify_loop_structure): Same.
18067 * cgraphunit.c (process_function_and_variable_attributes): Same.
18068 * collect-utils.c (collect_execute): Same.
18069 * collect2.c (maybe_run_lto_and_relink): Same.
18070 (is_lto_object_file): Same.
18071 (scan_prog_file): Same.
18072 * convert.c (convert_to_real_1): Same.
18073 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18074 * except.c (verify_eh_tree): Same.
18075 * gcc.c (execute): Same.
18076 (eval_spec_function): Same.
18077 (run_attempt): Same.
18078 (driver::set_up_specs): Same.
18079 (compare_debug_auxbase_opt_spec_function): Same.
18080 * gcov-tool.c (unlink_gcda_file): Same.
18081 (do_merge): Same.
18082 (do_rewrite): Same.
18083 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18084 * gimplify.c (gimplify_asm_expr): Same.
18085 (gimplify_adjust_omp_clauses): Same.
18086 * hsa-gen.c (gen_hsa_addr_insns): Same.
18087 (gen_hsa_insns_for_load): Same.
18088 (gen_hsa_cmp_insn_from_gimple): Same.
18089 (gen_hsa_insns_for_operation_assignment): Same.
18090 (gen_get_level): Same.
18091 (gen_hsa_alloca): Same.
18092 (omp_simple_builtin::generate): Same.
18093 (gen_hsa_atomic_for_builtin): Same.
18094 (gen_hsa_insns_for_call): Same.
18095 * input.c (dump_location_info): Same.
18096 * ipa-devirt.c (compare_virtual_tables): Same.
18097 * ira.c (ira_setup_eliminable_regset): Same.
18098 * lra-assigns.c (lra_assign): Same.
18099 * lra-constraints.c (lra_constraints): Same.
18100 * lto-streamer-in.c (lto_input_mode_table): Same.
18101 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18102 (merge_and_complain): Same.
18103 (compile_offload_image): Same.
18104 (compile_images_for_offload_targets): Same.
18105 (debug_objcopy): Same.
18106 (run_gcc): Same.
18107 (main): Same.
18108 * opts.c (print_specific_help): Same.
18109 (parse_no_sanitize_attribute): Same.
18110 (print_help): Same.
18111 (handle_param): Same.
18112 * plugin.c (add_new_plugin): Same.
18113 (parse_plugin_arg_opt): Same.
18114 (try_init_one_plugin): Same.
18115 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18116 operators, and types in diagnostics. Correct quoting and spelling
18117 issues.
18118 * read-rtl-function.c (parse_edge_flag_token): Same.
18119 (function_reader::parse_enum_value): Same.
18120 * reg-stack.c (check_asm_stack_operands): Same.
18121 * regcprop.c (validate_value_data): Same.
18122 * sched-rgn.c (make_pass_sched_fusion): Same.
18123 * stmt.c (check_unique_operand_names): Same.
18124 * targhooks.c (default_target_option_pragma_parse): Same.
18125 * tlink.c (recompile_files): Same.
18126 * toplev.c (process_options): Same.
18127 (do_compile): Same.
18128 * trans-mem.c (diagnose_tm_1): Same.
18129 (ipa_tm_scan_irr_block): Same.
18130 (ipa_tm_diagnose_transaction): Same.
18131 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18132 format a tree code name in a diagnostic.
18133 (verify_types_in_gimple_min_lval): Same.
18134 (verify_types_in_gimple_reference): Same.
18135 (verify_gimple_call): Same.
18136 (verify_gimple_assign_unary): Same.
18137 (verify_gimple_assign_binary): Same.
18138 (verify_gimple_assign_ternary): Same.
18139 (verify_gimple_assign_single): Same.
18140 (verify_gimple_switch): Same.
18141 (verify_gimple_label): Same.
18142 (verify_gimple_phi): Same.
18143 (verify_gimple_in_seq): Same.
18144 (verify_eh_throw_stmt_node): Same.
18145 (collect_subblocks): Same.
18146 (gimple_verify_flow_info): Same.
18147 (do_warn_unused_result): Same.
18148 * tree-inline.c (expand_call_inline): Same.
18149 * tree-into-ssa.c (update_ssa): Same.
18150 * tree.c (tree_int_cst_elt_check_failed): Same.
18151 (tree_vec_elt_check_failed): Same.
18152 (omp_clause_operand_check_failed): Same.
18153 (verify_type_variant): Same.
18154 (verify_type): Same.
18155 * value-prof.c (verify_histograms): Same.
18156 * varasm.c (assemble_start_function): Same.
18157
18158 2019-05-16 Martin Sebor <msebor@redhat.com>
18159
18160 * config/i386/i386-expand.c (get_element_number): Quote keywords
18161 and other internal names in diagnostics. Adjust other diagnostic
18162 formatting issues noted by -Wformat-diag.
18163 * config/i386/i386-features.c
18164 (ix86_mangle_function_version_assembler_name): Same.
18165 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18166 * config/i386/i386.c (ix86_function_type_abi): Same.
18167 (ix86_function_ms_hook_prologue): Same.
18168 (classify_argument): Same.
18169 (ix86_expand_prologue): Same.
18170 (ix86_md_asm_adjust): Same.
18171 (ix86_memmodel_check): Same.
18172
18173 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18174
18175 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18176 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18177 and fpxx modes.
18178
18179 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18180
18181 PR target/90497
18182 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18183 intrinsics without SSE/SSE2/SSSE3.
18184 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18185 check.
18186 (*mmx_uavgv8qi3): Likewise.
18187
18188 2019-05-17 Richard Biener <rguenther@suse.de>
18189
18190 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18191 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18192
18193 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18194
18195 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18196 vec_sldw insn pattern.
18197
18198 2019-05-17 Richard Biener <rguenther@suse.de>
18199
18200 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18201
18202 2019-05-17 Martin Liska <mliska@suse.cz>
18203
18204 PR driver/90496
18205 * toplev.c (output_stack_usage): With LTO and sanitizer it
18206 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18207 has no file location.
18208
18209 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18210
18211 PR c++/90484
18212 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18213 sz0 is equal to sz1, instead return false in that case.
18214
18215 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18216 has non-constant expression, force sctx.lane and use two
18217 argument IFN_GOMP_SIMD_LANE instead of single argument.
18218 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18219 two argument IFN_GOMP_SIMD_LANE without lhs.
18220 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18221 member.
18222 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18223 Define.
18224 (LOOP_REQUIRES_VERSIONING): Or in
18225 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18226 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18227 simd_if_cond.
18228 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18229 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18230 from simd if clause if needed.
18231
18232 2019-05-16 Richard Biener <rguenther@suse.de>
18233
18234 * tree-affine.c (expr_to_aff_combination): New function split
18235 out from...
18236 (tree_to_aff_combination): ... here.
18237 (aff_combination_expand): Avoid building a GENERIC tree.
18238
18239 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18240
18241 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18242 assemble_start_function and assemble_end_function calls.
18243 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18244 assemble_start_function and assemble_end_function.
18245 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18246 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18247 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18248 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18249 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18250 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18251 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18252 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18253 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18254 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18255 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18256 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18257 Likewise.
18258 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18259 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18260 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18261 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18262 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18263 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18264 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18265 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18266 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18267 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18268 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18269 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18270 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18271 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18272 Likewise.
18273 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18274 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18275 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18276
18277 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18278
18279 * tree-ssa-alias.c (alias_stats): Add
18280 aliasing_component_refs_p_may_alias and
18281 aliasing_component_refs_p_no_alias.
18282 (dump_alias_stats): Print aliasing_component_refs_p stats.
18283 (aliasing_component_refs_p): Update stats.
18284
18285 2019-05-16 Martin Liska <mliska@suse.cz>
18286
18287 PR lto/90500
18288 * multiple_target.c (expand_target_clones): Do not allow
18289 target_clones being used with a symbol that is an alias.
18290
18291 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18292
18293 PR tree-optimization/90394
18294 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18295 positives rather than ICE for cases where (code2 == NE_EXPR
18296 && code1 == BIT_AND_EXPR).
18297
18298 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18299
18300 PR fortran/90329
18301 * tree-core.h (struct tree_decl_common): Document
18302 decl_nonshareable_flag for PARM_DECLs.
18303 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18304 * calls.c (expand_call): Don't try tail call if caller
18305 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18306 passed on the stack and callee needs to pass any arguments on the
18307 stack.
18308 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18309 else if instead of series of mutually exclusive ifs. Handle
18310 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18311 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18312
18313 * lto-streamer.h (LTO_major_version): Bump to 9.
18314
18315 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18316
18317 PR tree-optimization/90106
18318 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18319 new parameter as new internal function call, also move it to new
18320 basic block.
18321 (use_internal_fn): Pass internal function call to
18322 shrink_wrap_one_built_in_call_with_conds.
18323
18324 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18325
18326 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18327 max_vf to 1.
18328 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18329 safelen_int and set loop->dont_vectorize.
18330
18331 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18332
18333 PR target/89021
18334 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18335 SSE/SSE2/SSSE3.
18336 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18337 Likewise.
18338 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18339 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18340 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18341 is defined.
18342
18343 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18344
18345 PR target/89021
18346 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18347 define_insn_and_split to support SSE emulation.
18348 (*vec_extractv2sf_0): Likewise.
18349 (*vec_extractv2sf_1): Likewise.
18350 (*vec_extractv2si_0): Likewise.
18351 (*vec_extractv2si_1): Likewise.
18352 (*vec_extractv2si_zext_mem): Likewise.
18353 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18354 (vec_extractv2sf_1 splitter): Likewise.
18355 (vec_extractv2sfsf): Likewise.
18356 (vec_setv2si): Likewise.
18357 (vec_extractv2si_1 splitter): Likewise.
18358 (vec_extractv2sisi): Likewise.
18359 (vec_setv4hi): Likewise.
18360 (vec_extractv4hihi): Likewise.
18361 (vec_setv8qi): Likewise.
18362 (vec_extractv8qiqi): Likewise.
18363 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18364 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18365 (vec_extractv2sisi): Likewise.
18366 (vec_extractv4hihi): Likewise.
18367 (vec_extractv8qiqi): Likewise.
18368 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18369 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18370 (vec_initv2sisi): Likewise.
18371 (vec_initv4hihi): Likewise.
18372 (vec_initv8qiqi): Likewise.
18373 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18374 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18375 (vec_setv4hi): Likewise.
18376 (vec_setv8qi): Likewise.
18377
18378 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18379
18380 PR target/89021
18381 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18382 TARGET_MMX_WITH_SSE.
18383 (MMXMODE:*mov<mode>_internal): Likewise.
18384 (MMXMODE:movmisalign<mode>): Likewise.
18385
18386 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18387
18388 PR target/89021
18389 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18390 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18391 (sse2_cvtpd2pi): Ditto.
18392 (sse2_cvttpd2pi): Ditto.
18393 (*vec_concatv2sf_sse4_1): Ditto.
18394 (*vec_concatv2sf_sse): Ditto.
18395 (*vec_concatv2si_sse4_1): Ditto.
18396 (*vec_concatv2si): Ditto.
18397 (*vec_concatv4si_0): Ditto.
18398 (*vec_concatv2di_0): Ditto.
18399
18400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18401
18402 PR target/89021
18403 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18404
18405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18406
18407 PR target/89021
18408 * config/i386/sse.md (ssse3_palignrdi): Changed to
18409 define_insn_and_split to support SSE emulation.
18410
18411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18412
18413 PR target/89021
18414 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18415
18416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18417
18418 PR target/89021
18419 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18420 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18421 SSE emulation.
18422
18423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18424
18425 PR target/89021
18426 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18427 or TARGET_MMX_WITH_SSE.
18428 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18429
18430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18431
18432 PR target/89021
18433 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18434
18435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18436
18437 PR target/89021
18438 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18439 Changed to define_insn_and_split to support SSE emulation.
18440
18441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18442
18443 PR target/89021
18444 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18445 Changed to define_insn_and_split to support SSE emulation.
18446
18447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18448
18449 PR target/89021
18450 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18451 (*mmx_<emms>): This.
18452 (mmx_<emms>): New expander.
18453
18454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18455
18456 PR target/89021
18457 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18458 support.
18459 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18460
18461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18462
18463 PR target/89021
18464 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18465
18466 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18467
18468 PR target/89021
18469 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18470
18471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18472
18473 PR target/89021
18474 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18475 TARGET_MMX_WITH_SSE.
18476 (*mmx_uavgv4hi3): Add SSE emulation.
18477
18478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18479
18480 PR target/89021
18481 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18482 and TARGET_MMX_WITH_SSE.
18483 (*mmx_uavgv8qi3): Add SSE emulation.
18484
18485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18486
18487 PR target/89021
18488 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18489 maskmovdqu for __MMX_WITH_SSE__.
18490
18491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18492
18493 PR target/89021
18494 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18495 TARGET_MMX and TARGET_MMX_WITH_SSE.
18496 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18497
18498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18499
18500 PR target/89021
18501 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18502 define_insn_and_split to support SSE emulation.
18503
18504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18505
18506 PR target/89021
18507 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18508 and TARGET_MMX_WITH_SSE.
18509 (mmx_<code>v8qi3): Likewise.
18510 (smaxmin:<code>v4hi3): New.
18511 (umaxmin:<code>v8qi3): Likewise.
18512 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18513 (umaxmin:*mmx_<code>v8qi3): Likewise.
18514
18515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18516
18517 PR target/89021
18518 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18519 TARGET_MMX_WITH_SSE.
18520 (*mmx_pinsrw): Add SSE emulation.
18521
18522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18523
18524 PR target/89021
18525 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18526
18527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18528
18529 PR target/89021
18530 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18531 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18532 SSE emulation.
18533
18534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18535
18536 PR target/89021
18537 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18538 (sse_cvttps2pi): Likewise.
18539
18540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18541
18542 PR target/89021
18543 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18544 TARGET_MMX_WITH_SSE.
18545 (mmx_pshufw_1): Add SSE emulation.
18546 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18547 TARGET_MMX_WITH_SSE to support SSE emulation.
18548
18549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18550
18551 PR target/89021
18552 * config/i386/constraints.md (Yw): New constraint.
18553 * config/i386/mmx.md (*vec_dupv2si): Changed to
18554 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18555 support SSE emulation.
18556
18557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18558
18559 PR target/89021
18560 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18561 TARGET_MMX_WITH_SSE.
18562 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18563 support.
18564 (mmx_gt<mode>3): Likewise.
18565
18566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18567
18568 PR target/89021
18569 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18570 TARGET_MMX_WITH_SSE. Add SSE support.
18571
18572 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 PR target/89021
18575 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18576 TARGET_MMX_WITH_SSE.
18577 (any_logic:<code><mode>3): New.
18578 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18579 Add SSE support.
18580
18581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18582
18583 PR target/89021
18584 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18585 TARGET_MMX_WITH_SSE. Add SSE emulation.
18586 (mmx_<shift_insn><mode>3): Likewise.
18587 (ashr<mode>3): New.
18588 (<shift_insn><mode>3): Likewise.
18589
18590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18591
18592 PR target/89021
18593 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18594 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18595
18596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18597
18598 PR target/89021
18599 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18600 TARGET_MMX_WITH_SSE.
18601 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18602 SSE support.
18603
18604 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18605
18606 PR target/89021
18607 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18608 TARGET_MMX_WITH_SSE.
18609 (mulv4hi3): New.
18610 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18611 support.
18612
18613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18614
18615 PR target/89021
18616 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18617 (plusminus:mmx_<plusminus_insn><mode>3): Check
18618 TARGET_MMX_WITH_SSE.
18619 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18620 (<plusminus_insn><mode>3): New.
18621 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18622 (*mmx_<plusminus_insn><mode>3): Likewise.
18623
18624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18625
18626 PR target/89021
18627 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18628 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18629 prototype.
18630 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18631 define_insn_and_split to support SSE emulation.
18632 (mmx_punpcklbw): Likewise.
18633 (mmx_punpckhwd): Likewise.
18634 (mmx_punpcklwd): Likewise.
18635 (mmx_punpckhdq): Likewise.
18636 (mmx_punpckldq): Likewise.
18637
18638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18639 Uros Bizjak <ubizjak@gmail.com>
18640
18641 PR target/89021
18642 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18643 New function.
18644 (ix86_split_mmx_pack): Likewise.
18645 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18646 New prototype.
18647 (ix86_split_mmx_pack): Likewise.
18648 * config/i386/i386.md (mmx_isa): New.
18649 (enabled): Also check mmx_isa.
18650 * config/i386/mmx.md (any_s_truncate): New code iterator.
18651 (s_trunsuffix): New code attr.
18652 (mmx_packsswb): Removed.
18653 (mmx_packssdw): Likewise.
18654 (mmx_packuswb): Likewise.
18655 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18656 MMX packsswb/packuswb with SSE2.
18657 (mmx_packssdw): Likewise.
18658 * config/i386/predicates.md (register_mmxmem_operand): New.
18659
18660 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18661
18662 PR target/89021
18663 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18664 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18665 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18666 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18667 (ix86_vector_mode_supported_p): Likewise.
18668 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18669
18670 2019-05-15 Martin Liska <mliska@suse.cz>
18671
18672 PR middle-end/90478
18673 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18674 Check for overflow.
18675
18676 2019-05-15 Richard Biener <rguenther@suse.de>
18677
18678 * tree-into-ssa.c (pass_build_ssa::execute): Run
18679 update_address_taken before going into SSA.
18680
18681 2019-05-15 Richard Biener <rguenther@suse.de>
18682
18683 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18684 as __BIT_FIELD_REF with type with -gimple.
18685
18686 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18687
18688 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18689 semantically equivalent branches (left over after prior refactorings).
18690
18691 2019-05-15 Richard Biener <rguenther@suse.de>
18692
18693 PR tree-optimization/88828
18694 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18695 bogus check.
18696
18697 2019-05-14 Richard Biener <rguenther@suse.de>
18698
18699 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18700 as __VIEW_CONVERT with -gimple.
18701
18702 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18703
18704 PR target/82920
18705 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18706 Darwin.
18707
18708 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18709
18710 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18711 define_split to become a define_insn_and_split.
18712
18713 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18714
18715 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18716 arguments.
18717 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18718 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18719 (sibcall_epilogue): Adjust.
18720 (epilogue): Adjust.
18721
18722 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18723
18724 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18725 to unsupported ones.
18726 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18727 * config.host: Likewise.
18728 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18729 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18730 __svr4__]: Remove "brand" fallback.
18731 [!KSTAT_DATA_STRING]: Remove.
18732 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18733 to *-*-solaris2*.
18734 (comdat_group): Likewise.
18735 (set_have_as_tls): Likewise.
18736 (gcc_cv_target_dl_iterate_phdr): Likewise.
18737 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18738 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18739 * configure: Regenerate.
18740 * doc/install.texi: Simplify Solaris target triplets.
18741 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18742 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18743 Remove Solaris 10 references.
18744 Remove obsolete Solaris bug reference.
18745 (Specific, sparc-sun-solaris2.10): Remove.
18746
18747 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18748
18749 * config/i386/i386.md (any_div): New code iterator.
18750 (paired_mod): New code attribute.
18751 (sgnprefix): Handle DIV and UDIV RTXes.
18752 (u): Ditto.
18753 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18754 and udivmod<mode>4 patterns using any_div code iterator.
18755 (divmod splitters): Macroize splitters using any_div code iterator.
18756 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18757 (*udivmodsi4_pow2_zext_2): Ditto.
18758 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18759 and *udivmod<mode>4_noext patterns using any_div code iterator.
18760 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18761 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18762 patterns using any_div code iterator.
18763 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18764 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18765 patterns using any_div code iterator.
18766 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18767 udivmodhiqi3 patterns using any_extend code iterator.
18768
18769 2019-05-14 Richard Biener <rguenther@suse.de>
18770 H.J. Lu <hongjiu.lu@intel.com>
18771
18772 PR tree-optimization/88828
18773 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18774 permuting in a single non-constant element not extracted
18775 from a vector.
18776
18777 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18778
18779 * internal-fn.def (SIGNBIT): New.
18780 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18781 defined.
18782 (signbitv4sf2): Likewise.
18783
18784 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18785
18786 PR target/90357
18787 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18788 next insn when the SRC reg is dead.
18789
18790 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18791
18792 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18793 (alloc_cand_and_find_basis): Ditto.
18794 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18795 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18796 (create_add_imm_cand, slsr_process_cast): Ditto.
18797 (slsr_process_copy, replace_mult_candidate): Ditto.
18798 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18799 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18800 (pass_strength_reduction::execute): Init the first NULL element.
18801
18802 2019-05-13 Nathan Sidwell <nathan@acm.org>
18803
18804 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18805 (run_attempt): Reformat line break.
18806
18807 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18808
18809 PR target/90418
18810 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18811 data registers in sibcall epilogues.
18812 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18813
18814 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18815
18816 PR target/89221
18817 * configure.ac (--enable-frame-pointer):
18818 Disable by default for cygwin and mingw.
18819 * configure: Regenerate.
18820
18821 2019-05-13 Nathan Sidwell <nathan@acm.org>
18822
18823 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18824 piece of code.
18825 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18826 (gen_member_die): Move abstract origin check earlier. Only VARs
18827 can be static_inline_p. Simplify splicing control flow.
18828
18829 2019-05-13 Richard Biener <rguenther@suse.de>
18830
18831 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18832 VIEW_CONVERT_EXPR.
18833 (vect_build_slp_tree_1): Likewise.
18834
18835 2019-05-13 Richard Biener <rguenther@suse.de>
18836
18837 PR tree-optimization/90402
18838 * tree-if-conv.c (tree_if_conversion): Value number only
18839 the loop body by making the latch an exit of the region
18840 as well.
18841 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18842 processing PHIs.
18843 (do_rpo_vn): Deal with multiple edges into the entry block
18844 that are not backedges inside the region by skipping PHIs
18845 of the entry block.
18846
18847 2019-05-13 Richard Biener <rguenther@suse.de>
18848
18849 PR tree-optimization/90316
18850 * tree-ssa-pre.c (insert_aux): Fold into ...
18851 (insert): ... this function. Use a RPO walk to reduce the
18852 number of required iterations.
18853
18854 2019-05-13 Martin Liska <mliska@suse.cz>
18855
18856 PR tree-optimization/90416
18857 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18858 string instead of passing the second part as va_arg argument.
18859
18860 2019-05-13 Martin Liska <mliska@suse.cz>
18861
18862 PR gcov-profile/90380
18863 * gcov.c (handle_cycle): Do not support zero cycle count,
18864 it should not be possible.
18865 (path_contains_zero_cycle_arc): New function.
18866 (circuit): Ignore zero cycle arc counts.
18867
18868 2019-05-13 Martin Liska <mliska@suse.cz>
18869
18870 PR gcov-profile/90380
18871 * gcov.c (enum loop_type): Remove the enum and
18872 the operator.
18873 (handle_cycle): Assert that we should not reach
18874 a negative count.
18875 (circuit): Use loop_found instead of a tri-state loop_type.
18876 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18877 happen.
18878
18879 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18880
18881 PR target/82920
18882 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18883 (ix86_output_indirect_branch_via_reg): Use output mechanism
18884 accounting for __USER_LABEL_PREFIX__.
18885 (ix86_output_indirect_branch_via_push): Likewise.
18886 (ix86_output_function_return): Likewise.
18887 (ix86_output_indirect_function_return): Likewise.
18888
18889 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18890
18891 * doc/md.texi: Document use of code attributes in rtx patterns.
18892 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18893 * read-rtl.c (find_code): Split out search loops into...
18894 (maybe_find_code): ...this new function.
18895 (check_code_iterator): Make the error message more informative.
18896 (check_code_attribute): New function.
18897 (rtx_reader::rtx_alloc_for_name): Likewise.
18898 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18899 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18900 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18901 <max_opp> directly as an rtx code instead of via a match_operator.
18902 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18903 (<su>abd<mode>_3): Update accordingly.
18904
18905 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18906
18907 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18908 is given, print the state of the EH "save world" computation for
18909 Darwin.
18910
18911 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18912
18913 PR c++/59813
18914 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18915 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18916
18917 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18918
18919 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18920 Use pinsrd for TARGET_SSE4_1.
18921 * config/i386/sse.md (movdi_to_sse): Ditto.
18922
18923 2019-05-10 Richard Biener <rguenther@suse.de>
18924
18925 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18926 (do_rpo_vn): Initialize next_value_id.
18927
18928 2019-05-10 Martin Liska <mliska@suse.cz>
18929
18930 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18931 Fix plural form.
18932
18933 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18934
18935 PR tree-optimization/90385
18936 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18937 arguments of the exit phis.
18938
18939 PR c++/90383
18940 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18941 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18942 id->do_not_fold.
18943 (copy_tree_body_r): Likewise.
18944 (copy_fn): Set id.do_not_fold to true.
18945
18946 2019-05-10 Martin Liska <mliska@suse.cz>
18947
18948 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18949 Reapply changes from r269790.
18950
18951 2019-05-10 Martin Liska <mliska@suse.cz>
18952
18953 PR middle-end/90340
18954 * doc/invoke.texi: New params.
18955 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18956 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18957 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18958 Use it.
18959 * tree-switch-conversion.h (struct jump_table_cluster):
18960 Likewise.
18961
18962 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18963
18964 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18965
18966 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18967
18968 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18969
18970 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18971
18972 PR rtl-optimization/88879
18973 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18974
18975 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18976
18977 PR target/90405
18978 * config/arm/arm.c (callee_saved_reg_p): Move before
18979 thumb_find_work_register.
18980 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18981 thumb_find_work_register. Only call df_get_live_out once.
18982 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18983 (thumb_find_work_register): Use
18984 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18985 algorithms to locate a spare call clobbered reg.
18986
18987 2019-05-09 Martin Liska <mliska@suse.cz>
18988
18989 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18990 and MAX_EXPR in GIMPLE FE format.
18991
18992 2019-05-09 Martin Liska <mliska@suse.cz>
18993
18994 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18995 * gimple-pretty-print.c (dump_gimple_bb_header):
18996 Dump BB count.
18997 (pp_cfg_jump): Dump edge probability.
18998 * profile-count.c (profile_quality_as_string): Simplify
18999 with a static array.
19000 (parse_profile_quality): New function.
19001 (profile_count::dump): Simplify with a static array.
19002 (profile_count::from_gcov_type): Add new argument.
19003 * profile-count.h (parse_profile_quality): Likewise.
19004 * predict.h (set_hot_bb_threshold): New.
19005 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19006 New param.
19007 * predict.c (get_hot_bb_threshold): Set from the new param.
19008 (set_hot_bb_threshold): New.
19009
19010 2019-05-09 Richard Biener <rguenther@suse.de>
19011
19012 PR tree-optimization/90395
19013 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19014 rewrite vector stores that throw internally.
19015
19016 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19017
19018 * cif-code.def (CHKP): Remove.
19019
19020 PR target/89221
19021 * configure.ac (--enable-frame-pointer): Disable by default for
19022 GNU systems.
19023 * configure: Regenerate.
19024
19025 2019-05-09 Alan Modra <amodra@gmail.com>
19026
19027 PR target/89271
19028 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19029 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19030 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19031 cost for general <-> vsx when direct moves are available.
19032 Cost union classes at minimal cost for any reg in the class.
19033 Correct calculation for moves between vsx, float, and altivec.
19034 Don't return a low cost for moves between special regs. Don't
19035 use hard coded register numbers.
19036 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19037 (rs6000_ira_change_pseudo_allocno_class): New function.
19038 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19039 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19040 alternatives.
19041 (movsi_internal1): Don't disparage vector alternatives.
19042 (mov<mode>_internal): Likewise, excepting alternative that
19043 will be split.
19044 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19045 we <- b alternative.
19046
19047 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19048
19049 PR c++/59813
19050 PR tree-optimization/89060
19051 * tree-ssa-live.h (live_vars_map): New typedef.
19052 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19053 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19054 (struct compute_live_vars_data): New type.
19055 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19056 live_vars_at_stmt, destroy_live_vars): New functions.
19057 * tree-tailcall.c: Include tree-ssa-live.h.
19058 (live_vars, live_vars_vec): New global variables.
19059 (find_tail_calls): Perform variable life analysis before punting.
19060 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19061 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19062 member.
19063 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19064 Perform variable life analysis to select variables that really need
19065 clobbers added.
19066 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19067 instead set id->eh_landing_pad_dest and assert it is the same.
19068 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19069
19070 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19071 Richard Earnshaw <rearnsha@arm.com>
19072
19073 PR target/88167
19074 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19075 function.
19076 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19077 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19078 register if both the epilogue and prologue can use call-clobbered
19079 regs.
19080 (thumb1_unexpanded_epilogue): Use
19081 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19082 picking temporaries for restoring high regs to match that of the
19083 prologue where possible.
19084 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19085 the list of work registers. Detect if the return address is still live
19086 at the end of the prologue and avoid using it for a work register if so.
19087 If the return address is not live, add LR to the list of pushable regs
19088 after the first pass.
19089
19090 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19091
19092 PR tree-optimization/90078
19093 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19094 (INFTY): Increase the value for infinite cost.
19095 (struct comp_cost): Promote type of members to int64_t.
19096 (infinite_cost): Don't set complexity in initialization.
19097 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19098 overflows to infinite_cost.
19099 (adjust_setup_cost): Promote type of parameter and cost computation
19100 to int64_t.
19101 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19102 int64_t.
19103 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19104 cost computation to int64_t.
19105 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19106 int64_t's format specifier in dump.
19107
19108 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19109
19110 PR tree-optimization/90240
19111 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19112 with respect to scaling factor pre-computed for each basic block.
19113 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19114 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19115 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19116 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19117 live range for array of loop's basic blocks. Cleanup aux field of
19118 loop's basic blocks.
19119
19120 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19121
19122 PR tree-optimization/90356
19123 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19124
19125 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19126
19127 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19128 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19129 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19130 (ix86_handle_option): Handle -mavx512bf16.
19131 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19132 to extra_headers.
19133 * config/i386/avx512bf16vlintrin.h: New.
19134 * config/i386/avx512bf16intrin.h: New.
19135 * config/i386/cpuid.h (bit_AVX512BF16): New.
19136 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19137 * config/i386/i386-builtin-types.def: Add new types.
19138 * config/i386/i386-builtin.def: Add new builtins.
19139 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19140 __AVX512BF16__.
19141 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19142 (ix86_option_override_internal): Handle BF16.
19143 (ix86_valid_target_attribute_inner_p): Ditto.
19144 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19145 * config/i386/i386-builtin.c (enum processor_features): Add
19146 F_AVX512BF16.
19147 (static const _isa_names_table isa_names_table): Ditto.
19148 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19149 (PTA_AVX512BF16): Ditto.
19150 * config/i386/i386.opt: Add -mavx512bf16.
19151 * config/i386/immintrin.h: Include avx512bf16intrin.h
19152 and avx512bf16vlintrin.h.
19153 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19154 avx512f_cvtneps2bf16_<mode><mask_name>,
19155 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19156 * config/i386/subst.md (mask_half): Add new subst.
19157 * doc/invoke.texi: Document -mavx512bf16.
19158
19159 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19160
19161 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19162 Delete declaration.
19163 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19164 (rs6000_debug_legitimize_reload_address): Delete.
19165 (rs6000_legitimize_reload_address_ptr): Delete.
19166 (rs6000_option_override_internal): Adjust.
19167 (mem_operand_gpr): Adjust comment.
19168 (legitimate_lo_sum_address_p): Ditto.
19169 (rs6000_legitimize_reload_address): Delete.
19170 (rs6000_debug_legitimize_reload_address): Delete.
19171 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19172
19173 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19174
19175 PR target/89765
19176 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19177 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19178 to compute vector element selector for both constant and variable
19179 operands.
19180
19181 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19182
19183 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19184 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19185 ashrdi3_cvt using SWI48 mode iterator.
19186
19187 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19188
19189 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19190 (aarch64_<su>abd<mode>_3): Likewise.
19191 (*aarch64_<su>abd<mode>_3): New define_insn.
19192 (<sur>sad<vsi2qi>): New define_expand.
19193 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19194 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19195 (build_vect_cond_expr): Likewise.
19196
19197 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19198
19199 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19200 clobbers outside of accessible_reg_set.
19201 * config/i386/i386.c (ix86_conditional_register_usage):
19202 Disable register sets by clearing corresponding bits in
19203 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19204 call_used_regs and don't clear corresponding reg_names array members.
19205
19206 2019-05-07 Richard Biener <rguenther@suse.de>
19207
19208 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19209 not specified still compute a comp_vectype for invariant
19210 compares.
19211
19212 2019-05-07 Richard Biener <rguenther@suse.de>
19213
19214 PR tree-optimization/90316
19215 * tree-ssa-pre.c (translate_vuse_through_block): When
19216 same_valid is NULL do not bother to search for a virtual
19217 PHI continuation.
19218 (phi_translate_1): When operands changed we cannot keep
19219 the same value-number so do not bother to ask whether
19220 that's possible from translate_vuse_through_block.
19221
19222 2019-05-07 Martin Liska <mliska@suse.cz>
19223
19224 * bitmap.c (bitmap_register): Come up with
19225 alloc_descriptor_max_uid and assign it for
19226 a new bitmap.
19227 (register_overhead): Use get_descriptor as
19228 a descriptor.
19229 (release_overhead): New.
19230 (bitmap_elem_to_freelist): Call it.
19231 (bitmap_elt_clear_from): Likewise.
19232 (bitmap_obstack_free): Likewise.
19233 (bitmap_move): Sensitively release memory.
19234 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19235 (bitmap_initialize): Initialize alloc_descriptor to zero.
19236 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19237
19238 2019-05-07 Richard Biener <rguenther@suse.de>
19239
19240 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19241 we build a SLP node. Remove max_size and limiting.
19242 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19243
19244 2019-05-07 Richard Biener <rguenther@suse.de>
19245
19246 PR tree-optimization/90316
19247 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19248 limit by reference.
19249 (walk_non_aliased_vuses): Take walking limit argument.
19250 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19251 walking if it is reached instead of just counting.
19252 (get_continuation_for_phi): Likewise.
19253 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19254 limiting to the callback.
19255 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19256 (vn_reference_lookup_3): Likewise.
19257 (vn_reference_lookup_pieces): Likewise.
19258 (vn_reference_lookup): Likewise.
19259 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19260 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19261 (avail_exprs_stack::lookup_avail_expr): Likewise.
19262
19263 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19264
19265 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19266 for comparaible types in the second direction even if first one
19267 hits incomparable type.
19268
19269 2019-05-07 Richard Biener <rguenther@suse.de>
19270
19271 PR lto/90369
19272 * lto-wrapper.c (debug_objcopy): Use the original filename
19273 including archive offset for the filename used for -save-temps.
19274
19275 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19276
19277 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19278 detection.
19279
19280 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19281 Hongtao Liu <hongtao.liu@intel.com>
19282
19283 PR target/89750
19284 PR target/86444
19285 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19286 Modified, original implementation isn't correct.
19287
19288 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19289
19290 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19291 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19292 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19293 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19294 (FRAME_POINTER_REGNUM): Change numbering.
19295 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19296 (alt_reg_names): Adjust.
19297 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19298 fixed.
19299 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19300 (DWARF_FRAME_REGISTERS): Delete.
19301 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19302 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19303 Adjust.
19304 (REG_ALLOC_ORDER): Adjust.
19305 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19306 (REG_CLASS_CONTENTS): Adjust.
19307 (RETURN_ADDR_RTX): Change comment.
19308 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19309 instead of 67.
19310 (REGISTER_NAMES): Adjust.
19311 (ADDITIONAL_REGISTER_NAMES): Adjust.
19312 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19313
19314 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19315
19316 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19317 Delete.
19318 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19319 (DWARF_FRAME_REGISTERS): Adjust.
19320 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19321 Adjust.
19322 (REG_ALLOC_ORDER): Adjust.
19323 (enum reg_class): Delete SPR_REGS.
19324 (REG_CLASS_NAMES): Delete SPR_REGS.
19325 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19326 (REGISTER_NAMES): Adjust.
19327 (ADDITIONAL_REGISTER_NAMES): Adjust.
19328 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19329 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19330 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19331 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19332 (htm_spr_regno): Delete.
19333 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19334 argument.
19335 (rs6000_dbx_register_number): Adjust.
19336
19337 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19338
19339 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19340
19341 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19342
19343 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19344 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19345
19346 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19347
19348 PR tree-optimization/88709
19349 PR tree-optimization/90271
19350 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19351 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19352 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19353 variable.
19354 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19355 of the store merging group is larger than
19356 PARAM_STORE_MERGING_MAX_SIZE parameter.
19357 (split_group): Add bzero_first argument. If set, always emit first
19358 the first store which must be = {} of the whole area and then for the
19359 rest of the stores consider all zero bytes as paddings.
19360 (imm_store_chain_info::output_merged_store): Check if first store
19361 is = {} of the whole area and if yes, determine which setting of
19362 bzero_first for split_group gives smaller number of stores. Adjust
19363 split_group callers.
19364 (lhs_valid_for_store_merging_p): Allow decls.
19365 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19366 no elts.
19367 (pass_store_merging::process_store): Likewise.
19368
19369 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19370
19371 PR target/89424
19372 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19373 handling of V1TImode.
19374
19375 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19376
19377 PR target/89221
19378 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19379 and enable_frame_pointer ...
19380 * configure.ac: ... here. Update help strings for
19381 --enable-frame-pointer.
19382 * configure: Regenerate.
19383 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19384 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19385 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19386 (USE_X86_64_FRAME_POINTER): Ditto.
19387
19388 2019-05-06 Martin Liska <mliska@suse.cz>
19389
19390 * config.gcc: Append to target_gtfiles and fix indentation.
19391
19392 2019-05-06 Richard Biener <rguenther@suse.de>
19393
19394 PR tree-optimization/90358
19395 * tree-vect-stmts.c (get_group_load_store_type): Properly
19396 detect unused upper half of load.
19397 (vectorizable_load): Likewise.
19398
19399 2019-05-06 Richard Biener <rguenther@suse.de>
19400
19401 PR tree-optimization/88828
19402 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19403 (simplify_vector_constructor): ...here. Handle constants in
19404 the constructor.
19405
19406 2019-05-06 Richard Biener <rguenther@suse.de>
19407
19408 PR tree-optimization/90328
19409 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19410 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19411 is valid in the loop nest before using it.
19412 (initialize_data_dependence_relation): Adjust.
19413 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19414 loop as loop-nest to dr_may_alias_p.
19415
19416 2019-05-06 Richard Biener <rguenther@suse.de>
19417
19418 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19419
19420 2019-05-06 Richard Biener <rguenther@suse.de>
19421
19422 PR tree-optimization/90316
19423 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19424 compute target on demand.
19425 (get_continuation_for_phi): Remove code walking stmts to
19426 get to a target virtual operand which could end up being
19427 quadratic.
19428
19429 2019-05-06 Martin Liska <mliska@suse.cz>
19430
19431 PR sanitizer/90312
19432 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19433 when -mabi is selected to a non-default version.
19434
19435 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19436 Martin Liska <mliska@suse.cz>
19437
19438 * Makefile.in: Add lto-dump.texi.
19439 * cgraph.h: Add new functions get_visibility_string and
19440 get_symtab_type_string.
19441 * doc/gcc.texi: Include lto-dump section.
19442 * doc/lto-dump.texi: New file.
19443 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19444 (parse_dump_option): Factor out this function.
19445 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19446 (parse_dump_option): Export the function.
19447 * symtab.c (symtab_node::get_visibility_string): New function.
19448 (symtab_node::get_symtab_type_string): Likewise.
19449
19450 2019-05-06 Martin Liska <mliska@suse.cz>
19451
19452 * config/i386/i386-builtins.c: New file.
19453 * config/i386/i386-builtins.h: New file.
19454 * config/i386/i386-expand.c: New file.
19455 * config/i386/i386-expand.h: New file.
19456 * config/i386/i386-features.c: New file.
19457 * config/i386/i386-features.h: New file.
19458 * config/i386/i386-options.c: New file.
19459 * config/i386/i386-options.h: New file.
19460 * config.gcc: Add new files into extra_objs and
19461 target_gtfiles.
19462 * config/i386/i386.c: Split content of the file
19463 into newly introduced files.
19464 * config/i386/i386.h: Declare common variables
19465 and macros.
19466 * config/i386/t-i386: Define dependencies for new files.
19467
19468 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19469
19470 PR target/89400
19471 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19472 Restrict 'all' variant to 32-bit configurations.
19473 (unaligned_loadhiu): Likewise.
19474 (unaligned_storehi): Likewise.
19475 (unaligned_storesi): Likewise.
19476 (unaligned_loadhis): Disable when compiling for thumb1.
19477
19478 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19479
19480 PR tree-optimization/90269
19481 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19482 Ignore clobbers.
19483
19484 2019-05-03 Martin Liska <mliska@suse.cz>
19485
19486 * hash-map.h: Add is_empty function.
19487 * hash-set.h: Likewise.
19488 * hash-table.h: Likewise.
19489 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19490 elements () == 0 (and similar usages).
19491 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19492 * gimplify.c (gimplify_bind_expr): Likewise.
19493 (gimplify_switch_expr): Likewise.
19494 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19495 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19496 * postreload-gcse.c (dump_hash_table): Likewise.
19497 (gcse_after_reload_main): Likewise.
19498 * predict.c (combine_predictions_for_bb): Likewise.
19499 * tree-parloops.c (reduction_phi): Likewise.
19500 (separate_decls_in_region): Likewise.
19501 (transform_to_exit_first_loop): Likewise.
19502 (gen_parallel_loop): Likewise.
19503 (gather_scalar_reductions): Likewise.
19504 (try_create_reduction_list): Likewise.
19505 * var-tracking.c (dump_vars): Likewise.
19506 (emit_notes_for_changes): Likewise.
19507 (vt_emit_notes): Likewise.
19508
19509 2019-05-03 Richard Biener <rguenther@suse.de>
19510
19511 PR tree-optimization/90316
19512 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19513 before running VN.
19514
19515 2019-05-03 Richard Biener <rguenther@suse.de>
19516
19517 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19518 peeling for gaps by loading only lower halves of vectors
19519 if possible.
19520 (vectorizable_load): Likewise.
19521
19522 2019-05-03 Richard Biener <rguenther@suse.de>
19523
19524 PR middle-end/89518
19525 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19526
19527 2019-05-03 Richard Biener <rguenther@suse.de>
19528
19529 PR middle-end/87314
19530 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19531 Handle STRING_CST vs DECL or STRING_CST.
19532
19533 2019-05-03 Richard Biener <rguenther@suse.de>
19534
19535 PR tree-optimization/88963
19536 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19537 vector loads feeding only BIT_FIELD_REFs to component
19538 loads. Rewrite stores fed by CONSTRUCTORs to component
19539 stores.
19540
19541 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19542
19543 * opts.h (finish_options): Remove lang_mask argument.
19544 (print_help, help_option_argument): Declare.
19545 * opts.c (print_help): Remove forward declaration, no longer static.
19546 (finish_options): Remove lang_mask argument, don't call print_help
19547 here.
19548 * opts-global.c (decode_options): Adjust finish_option caller, call
19549 print_help here.
19550
19551 PR tree-optimization/90303
19552 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19553 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19554
19555 2019-05-03 Richard Biener <rguenther@suse.de>
19556
19557 PR tree-optimization/89698
19558 * gimple-fold.c (canonicalize_constructor_val): Early out
19559 for constants, handle unfolded INTEGER_CSTs as they appear in
19560 C++ virtual table ctors.
19561
19562 2019-05-03 Richard Biener <rguenther@suse.de>
19563
19564 * passes.c (execute_function_todo): Remove dead code.
19565
19566 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19567
19568 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19569 the internal register number, for any "real" register.
19570
19571 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19572
19573 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19574 correct numbers for TFHAR, TFIAR, TEXASR.
19575
19576 2019-05-02 Richard Biener <rguenther@suse.de>
19577
19578 PR tree-optimization/89653
19579 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19580 update-address-taken before the pass.
19581 * passes.def (pass_tree_loop_init): Put comment before it.
19582
19583 2019-05-02 Richard Biener <rguenther@suse.de>
19584
19585 PR tree-optimization/89509
19586 * tree-ssa-structalias.c (compute_dependence_clique): Look
19587 at the first subvar when determining whether it is restrict.
19588
19589 2019-05-02 Richard Biener <rguenther@suse.de>
19590
19591 PR tree-optimization/90273
19592 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19593 useless debug stmts.
19594
19595 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19596
19597 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19598 ACLE branch.
19599 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19600 SVE ACLE branch.
19601 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19602 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19603 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19604 (vectorizable_reduction): Use the functions above to vectorize in a
19605 fully masked loop codes that don't have a conditional internal
19606 function.
19607
19608 2019-05-02 Martin Liska <mliska@suse.cz>
19609
19610 * cgraphclones.c: Call valid_attribute_p with 1 for
19611 target_clone.
19612 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19613 it's for target attribute.
19614 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19615 Add new boolean argument.
19616 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19617 Likewise.
19618 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19619 to ix86_valid_target_attribute_inner_p.
19620 (ix86_valid_target_attribute_p): Pass flags argument to
19621 ix86_valid_target_attribute_inner_p.
19622 (get_builtin_code_for_version): Use 0 as it's target attribute.
19623
19624 2019-05-02 Martin Liska <mliska@suse.cz>
19625
19626 * gcc.c (process_command): Add dummy file only
19627 if n_infiles == 0.
19628 * opts-global.c (decode_options): Pass lang_mask.
19629 * opts.c (print_help): New function.
19630 (finish_options): Print --help if help_option_argument
19631 is set.
19632 (common_handle_option): Factor out content of OPT__help_
19633 into print_help.
19634 * opts.h (finish_options): Add new argument.
19635
19636 2019-05-02 Martin Liska <mliska@suse.cz>
19637
19638 PR target/88809
19639 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19640 With -minline-all-stringops use inline expansion using 4B loop.
19641 * doc/invoke.texi: Document the change of
19642 -minline-all-stringops.
19643
19644 2019-05-01 Jeff Law <law@redhat.com>
19645
19646 PR tree-optimization/88797
19647 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19648 PHI feeds a conditional on the RHS of an assignment.
19649
19650 2019-04-30 Andrew Waterman <andrew@sifive.com>
19651 Jim Wilson <jimw@sifive.com>
19652
19653 * config/riscv/constraints.md (L): New.
19654 * config/riscv/predicates.md (lui_operand): New.
19655 (sfb_alu_operand): New.
19656 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19657 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19658 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19659 * config/riscv/risc.md (type): Add sfb_alu.
19660 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19661 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19662 (branch_zero<mode>): Delete.
19663 (mov<mode>cc): New.
19664 (mov<GPR:mode><X:mode>cc): Likewise.
19665 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19666
19667 2019-04-30 Nathan Sidwell <nathan@acm.org>
19668
19669 * tree.h (MARK_TS_EXP): New.
19670
19671 2019-04-30 Martin Liska <mliska@suse.cz>
19672
19673 * opts.c (enable_warning_as_error): Provide hints
19674 for unknown options.
19675
19676 2019-04-30 Martin Liska <mliska@suse.cz>
19677
19678 PR debug/90288
19679 * doc/invoke.texi: Add missing dash for gas-locview-support
19680 and gno-as-locview-support.
19681
19682 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19683
19684 PR target/89093
19685 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19686 whitespace at the start of target attribute string.
19687
19688 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19689
19690 PR target/86538
19691 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19692 Define __ARM_FEATURE_ATOMICS.
19693
19694 2019-04-30 Martin Liska <mliska@suse.cz>
19695
19696 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19697 into built_in_function enum. Remove code for endp == 2 and
19698 use BUILT_IN_* constants.
19699 (gimple_fold_builtin): Call the function with fcode.
19700
19701 2019-04-30 Martin Liska <mliska@suse.cz>
19702
19703 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19704 DECL_FUNCTION_CODE into ix86_builtins enum before
19705 the switch statement.
19706
19707 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19708
19709 PR tree-optimization/89475
19710 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19711 calls.
19712
19713 2019-04-30 Martin Liska <mliska@suse.cz>
19714
19715 PR translation/90274
19716 * opts.c (print_filtered_help): Wrap string in _(...).
19717
19718 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19719
19720 PR tree-optimization/90240
19721 Revert:
19722 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19723
19724 PR tree-optimization/90078
19725 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19726 checks for infinite_cost overflow.
19727
19728 2019-04-29 Jeff Law <law@redhat.com>
19729
19730 * passes.def: Move -Wrestrict pass after copy propagation.
19731
19732 2019-04-29 Maya Rashish <coypu@sdf.org>
19733
19734 * config.gcc (default_gnu_indirect_function): Default to yes
19735 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19736 sparc*-*-netbsd*, x86_64-*-netbsd*.
19737
19738 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19739
19740 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19741 where cond2 is NE_EXPR.
19742 (is_value_included_in): Update comment.
19743
19744 2019-04-29 Richard Biener <rguenther@suse.de>
19745
19746 PR tree-optimization/90278
19747 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19748 EH on comparison simplification.
19749
19750 2019-04-29 Jason Merrill <jason@redhat.com>
19751
19752 PR c++/82081 - tail call optimization breaks noexcept
19753 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19754 nothrow function to a might-throw function into a tail call.
19755
19756 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19757
19758 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19759 (DDR_INNER_LOOP): Likewise.
19760 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19761 (initialize_data_dependence_relation): Likewise.
19762 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19763
19764 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19765
19766 PR rtl-optimization/90257
19767 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19768 return value.
19769
19770 Revert the revert:
19771 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19772
19773 PR target/90178
19774 Revert:
19775 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19776
19777 Revert the revert:
19778 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19779
19780 Revert:
19781 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19782
19783 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19784
19785 2019-04-29 Richard Biener <rguenther@suse.de>
19786
19787 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19788 rhs issue a reset.
19789
19790 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19791
19792 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19793 varasm.h, and netbsd-protos.h.
19794
19795 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19796
19797 PR target/89261
19798 * config/i386/i386-protos.h (ix86_data_alignment): Change
19799 the second argument type to unsigned int.
19800 * config/i386/i386.c (ix86_data_alignment): Change "align"
19801 argument type to unsigned int.
19802
19803 2019-04-27 Martin Liska <mliska@suse.cz>
19804
19805 PR middle-end/90258
19806 * opt-suggestions.c (option_proposer::build_option_suggestions):
19807 When get_valid_option_values returns empty values, add the
19808 misspelling candidate.
19809
19810 2019-04-26 Jim Wilson <jimw@sifive.com>
19811
19812 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19813 parameter.
19814 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19815 Pass orig_mode to riscv_build_integer.
19816 (riscv_split_integer): Pass mode to riscv_move_integer.
19817 (riscv_legitimize_const_move): Likewise.
19818 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19819 promoted_mode. Replace force_reg call with code to load constant into
19820 promoted reg and then subreg it for the store.
19821 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19822 riscv_move_integer.
19823
19824 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19825
19826 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19827 corrupt codes.
19828
19829 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19830
19831 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19832 commentary about the encoding of precision.
19833
19834 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19835
19836 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19837 * config/i386/t-freebsd64: New file.
19838 * config.gcc: Add the t-freebsd64 for multilib support.
19839
19840 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19841
19842 * doc/extend.texi (vector_size): Add missing comma after @xref.
19843
19844 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19845
19846 * BASE-VER: Set to 10.0.0.
19847
19848 2019-04-25 Richard Biener <rguenther@suse.de>
19849
19850 PR middle-end/89765
19851 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19852 VIEW_CONVERT_EXPR into one operating on an rvalue.
19853
19854 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19855
19856 PR target/89929
19857 * config/i386/i386.c (feature_priority): Moved to file scope.
19858 (processor_features): Likewise.
19859 (processor_model): Likewise.
19860 (_arch_names_table): Likewise.
19861 (arch_names_table): Likewise.
19862 (_feature_list): Removed.
19863 (feature_list): Likewise.
19864 (_isa_names_table): Moved to file scope. Add priority.
19865 (isa_names_table): Likewise.
19866 (get_builtin_code_for_version): Replace feature_list with
19867 isa_names_table. Update error message for P_ZERO priority.
19868
19869 2019-04-25 Richard Biener <rguenther@suse.de>
19870
19871 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19872 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19873
19874 2019-04-24 Jeff Law <law@redhat.com>
19875
19876 PR tree-optimization/90037
19877 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19878 * passes.def: Replace all instance of phi-only cprop with the
19879 lattice propagator. Move propagation pass from after erroneous
19880 path isolation to before erroneous path isolation.
19881 * tree-ssa-phionlycprop.c: Remove.
19882
19883 2019-04-24 Richard Biener <rguenther@suse.de>
19884
19885 PR middle-end/90213
19886 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19887 by size and BITS_PER_UNIT on poly-wide-ints.
19888
19889 2019-04-25 Richard Biener <rguenther@suse.de>
19890
19891 PR middle-end/90194
19892 * match.pd: Add pattern to simplify view-conversion of an
19893 empty constructor.
19894
19895 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19896
19897 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19898 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19899 for Go on 32 bit AIX.
19900 * config/rs6000/aix72.h: Likewise.
19901
19902 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19903
19904 PR target/90193
19905 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19906 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19907
19908 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19909
19910 PR target/89952
19911 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19912 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19913 for restored hard frame pointer.
19914 (s390_sched_dependencies_evaluation): Implement new target hook.
19915 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19916
19917 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19918
19919 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19920 * config/arc/arc.c (arc_init): Cleanup warning message.
19921 (arc_override_options): Likewise.
19922
19923 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19924
19925 PR target/90187
19926 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19927 a register if both if_true and if_false are MEMs.
19928
19929 PR tree-optimization/90208
19930 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19931 after labels of new_bb, not before them.
19932
19933 PR tree-optimization/90211
19934 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19935 which are not SSA_NAMEs.
19936
19937 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19938
19939 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19940 AArch64.
19941 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19942
19943 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19944
19945 PR rtl-optimization/87979
19946 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19947 not equal zero.
19948
19949 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19950
19951 PR rtl-optimization/84032
19952 * modulo-sched.c (ps_insn_find_column): Change condition so that
19953 branch will always be the last insn in a row inside partial
19954 schedule.
19955
19956 2019-04-23 Richard Biener <rguenther@suse.de>
19957
19958 PR debug/90131
19959 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19960 dest_single_pred_p argument.
19961 (remove_forwarder_block): Adjust.
19962 (remove_forwarder_block_with_phi): Likewise.
19963
19964 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19965 Bernd Edlinger <bernd.edlinger@hotmail.de>
19966 Jakub Jelinek <jakub@redhat.com>
19967
19968 PR target/89093
19969 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19970 if used with general-regs-only.
19971 (arm_conditional_register_usage): Don't add non-general regs if
19972 general-regs-only.
19973 (arm_valid_target_attribute_rec): Handle general-regs-only.
19974 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19975 general-regs-only.
19976 (TARGET_HARD_FLOAT_SUB): Define.
19977 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19978 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19979 (TARGET_REALLY_IWMMXT2): Likewise.
19980 * config/arm/arm.opt: Add -mgeneral-regs-only.
19981 * doc/extend.texi: Document ARM general-regs-only target.
19982 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19983
19984 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19985
19986 PR tree-optimization/90078
19987 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19988 checks for infinite_cost overflow.
19989
19990 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19991
19992 PR tree-optimization/90021
19993 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19994 and check univariate against it.
19995 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19996 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19997
19998 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19999
20000 PR target/90178
20001 Revert:
20002 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20003
20004 Revert the revert:
20005 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20006
20007 Revert:
20008 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20009
20010 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20011
20012 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20013
20014 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20015 names using operand format, rather than hard-wired.
20016 (speculation_barrier): Likewise.
20017
20018 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20019
20020 PR tree-optimization/88055
20021 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20022 (gen_one_condition): Use it if !HONOR_NANS.
20023
20024 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20025
20026 PR middle-end/90139
20027 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20028 assign_temp instead of gen_reg_rtx.
20029
20030 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20031
20032 PR translation/90118
20033 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20034 Add missing space before %<.
20035
20036 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20037
20038 PR rtl-optimization/87871
20039 * ira-lives.c (make_object_dead): Don't add conflicts to
20040 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20041
20042 2019-04-18 Martin Sebor <msebor@redhat.com>
20043
20044 PR middle-end/89797
20045 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20046 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20047 assuming type size fits in SHWI.
20048
20049 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20050
20051 PR ipa/85051
20052 * ipa-inline.c (flatten_function): New parameter UPDATE.
20053 (ipa_inline, early_inliner): Use it.
20054
20055 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20056
20057 * fold-const.c (int_const_binop): Return early on failure.
20058
20059 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20060
20061 PR middle-end/85164
20062 * combine.c (force_int_to_mode): Cast the argument rather than
20063 the result of known_alignment.
20064 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20065
20066 2019-04-18 Richard Biener <rguenther@suse.de>
20067
20068 PR debug/90131
20069 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20070 out from ...
20071 (remove_forwarder_block): ... here.
20072 (remove_forwarder_block_with_phi): Also move debug stmts here.
20073
20074 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20075
20076 PR translation/79183
20077 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20078 inform where appropriate.
20079
20080 2019-04-18 Richard Biener <rguenther@suse.de>
20081
20082 * tree.c (get_qualified_type): Put found type variants at the
20083 head of the variant list.
20084
20085 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20086
20087 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20088
20089 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20090
20091 PR target/90125
20092 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20093 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20094 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20095 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20096 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20097
20098 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20099
20100 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20101 even for allocno's with no conflicts.
20102 (print_conflicts): Print an extra newline.
20103
20104 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20105
20106 * auto-inc-dec.c (attempt_change): Set the alignment of the
20107 temporary memory to that of the original.
20108
20109 2019-04-17 Joao Moreira <jmoreira@suse.de>
20110
20111 * targhooks.c (default_print_patchable_function_entry): Emit
20112 __patchable_function_entries section with writable flags to allow
20113 relocation resolution.
20114
20115 2019-04-17 Jonny Grant <jg@jguk.org>
20116
20117 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20118
20119 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20120
20121 PR middle-end/90095
20122 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20123 on lowpart SUBREGs.
20124
20125 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20126
20127 * config/arc/arc.c (arc_init): Format diagnostic string.
20128 (arc_override_options): Likewise.
20129 (check_if_valid_regno_const): Likewise.
20130 (arc_reorg): Likewise.
20131
20132 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20133
20134 PR target/17108
20135 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20136 name.
20137 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20138 name.
20139 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20140 (*movdi_update1): Use Pmode.
20141 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20142 (movdi_<mode>_update_stack): Rename to ...
20143 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20144 use Pmode.
20145 (*movsi_update1): Use Pmode.
20146 (*movsi_update2): Use Pmode.
20147 (movsi_update): Rename to ...
20148 (movsi_<mode>_update): ... this. Use Pmode.
20149 (movsi_update_stack): Fix condition.
20150 (*movhi_update1): Use Pmode. Fix argument to
20151 avoiding_indexed_address_p.
20152 (*movhi_update2): Ditto.
20153 (*movhi_update3): Ditto.
20154 (*movhi_update4): Ditto.
20155 (*movqi_update1): Ditto.
20156 (*movqi_update2): Ditto.
20157 (*movqi_update3): Ditto.
20158 (*movsf_update1, *movdf_update1): Merge, rename to...
20159 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20160 avoiding_indexed_address_p. Add "size" attribute.
20161 (*movsf_update2, *movdf_update2): Merge, rename to...
20162 (*mov<mode>_update2): This. Ditto.
20163 (*movsf_update3): Use Pmode. Fix argument to
20164 avoiding_indexed_address_p.
20165 (*movsf_update4): Ditto.
20166 (allocate_stack): Simplify condition. Adjust pattern names.
20167
20168 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20169
20170 PR target/89093
20171 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20172 whitespace at the start of target attribute string.
20173
20174 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20175
20176 PR target/84369
20177 * config/rs6000/power9.md: Add store forwarding bypass.
20178
20179 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20180
20181 PR debug/89528
20182 * valtrack.c (dead_debug_insert_temp): Reset debug references
20183 to the return value of a call being removed.
20184
20185 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20186
20187 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20188 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20189 implement target hook.
20190 (arc_memory_move_cost): New function.
20191 (TARGET_REGISTER_MOVE_COST): Define.
20192 (TARGET_MEMORY_MOVE_COST): Likewise.
20193 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20194 (MEMORY_MOVE_COST): Likewise.
20195
20196 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20197
20198 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20199 (sibcall_value_insn): Likewise.
20200 * config/arc/constraints.md (Rs5): Remove.
20201
20202 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20203
20204 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20205 for last two fake registers.
20206 (arc_conditional_register_usage): Make sure fake frame and arg
20207 pointer regs are in general regs class.
20208 (FRAME_POINTER_MASK): Remove.
20209 (RETURN_ADDR_MASK): Remove.
20210 (arc_must_save_register): Use hard frame regnum.
20211 (frame_restore_reg): Use hard_frame_pointer_rtx.
20212 (arc_save_callee_saves): Likewise.
20213 (arc_restore_callee_saves): Likewise.
20214 (arc_save_callee_enter): Likewise.
20215 (arc_restore_callee_leave): Likewise.
20216 (arc_save_callee_milli): Likewise.
20217 (arc_eh_return_address_location): Likewise.
20218 (arc_check_multi): Use hard frame regnum.
20219 (arc_can_eliminate): Likewise.
20220 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20221 for register allocator.
20222 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20223 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20224 (FRAME_POINTER_REGNUM): Change it to a fake register.
20225 (HARD_FRAME_POINTER_REGNUM): Defined.
20226 (ARG_POINTER_REGNUM): Change it to a new fake register.
20227 (ELIMINABLE_REGS): Update.
20228 (REGISTER_NAMES): Update names.
20229 * config/arc/arc.md (LP_START): Remove.
20230 (LP_END): Likewise.
20231 (shift_si3_loop): Update pattern.
20232
20233 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20234
20235 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20236 to avoid delay slot scheduling.
20237 (arc_must_save_register): Don't save SP.
20238 * config/arc/arc.md (stack_tie): Remove.
20239 (UNSPEC_ARC_STKTIE): Likewise.
20240
20241 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20242 Shiva Chen <shiva0217@gmail.com>
20243
20244 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20245 code gen with large shift amount.
20246
20247 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20248
20249 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20250 subreg.
20251
20252 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20253
20254 PR target/90096
20255 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20256 print -m64/-mx32/-m32 if it is true.
20257 (ix86_debug_options, ix86_function_specific_print): Pass true as
20258 ADD_ABI_P to ix86_target_string.
20259 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20260 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20261 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20262
20263 PR rtl-optimization/90082
20264 * dce.c (can_delete_call): New function.
20265 (deletable_insn_p, mark_insn): Use it.
20266
20267 PR tree-optimization/90090
20268 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20269 throw internally.
20270 (is_division_by_square): Likewise. Formatting fix.
20271
20272 2019-04-16 Richard Biener <rguenther@suse.de>
20273
20274 PR tree-optimization/56049
20275 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20276 equality check if alias-set zero will prevail.
20277
20278 2019-04-15 Jeff Law <law@redhat.com>
20279
20280 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20281 size and alignment as unsigned.
20282
20283 2019-04-15 Richard Biener <rguenther@suse.de>
20284
20285 PR debug/90074
20286 * tree-loop-distribution.c (destroy_loop): Preserve correct
20287 debug info.
20288
20289 2019-04-15 Richard Biener <rguenther@suse.de>
20290
20291 PR tree-optimization/90071
20292 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20293 abnormal operands from def stmts.
20294
20295 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20296
20297 PR rtl-optimization/89794
20298 * combine.c (count_auto_inc): New function.
20299 (try_combine): Count how many auto_inc expressions there were in the
20300 original instructions. Ensure we have the same number in the new
20301 instructions. Remove the code that tried to ensure auto_inc side
20302 effects on i1 and i0 are not lost.
20303
20304 2019-04-15 Richard Biener <rguenther@suse.de>
20305
20306 PR ipa/88936
20307 * tree.h (auto_var_p): Declare.
20308 * tree.c (auto_var_p): New function, split out from ...
20309 (auto_var_in_fn_p): ... here.
20310 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20311 member.
20312 (new_var_info): Initialize it.
20313 (set_uids_in_ptset): Also set the shadow variable uid if required.
20314 (ipa_pta_execute): Postprocess points-to solutions assigning
20315 shadow variable uids for locals that may reach their containing
20316 function recursively.
20317 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20318 assert but instead check whether the points-to solution is
20319 a singleton.
20320
20321 2019-04-15 Martin Jambor <mjambor@suse.cz>
20322
20323 PR ipa/pr89693
20324 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20325 the thunk chain.
20326
20327 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20328
20329 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20330
20331 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20332 Kito Cheng <kito.cheng@gmail.com>
20333 Shiva Chen <shiva0217@gmail.com>
20334
20335 * config/nds32/nds32-md-auxiliary.c
20336 (nds32_legitimize_pic_address): Use new PIC pattern.
20337 (nds32_legitimize_tls_address): Use new TLS pattern.
20338 (nds32_output_symrel): New.
20339 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20340 (nds32_alloc_relax_group_id): Ditto.
20341 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20342 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20343 relax_group_id.
20344 (nds32_group_tls_insn): Ditto.
20345 (nds32_group_float_insns): Ditto.
20346 * config/nds32/nds32.md (tls_le): New.
20347 (sym_got): Ditto.
20348
20349 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20350
20351 * configure: Add nds32 target for dwarf2 debug_line checking.
20352 * configure.ac: Regenerated.
20353
20354 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20355
20356 PR lto/89358
20357 * ipa-devirt.c (skip_in_fields_list_p): New.
20358 (odr_types_equivalent_p): Use it.
20359
20360 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20361
20362 PR target/89093
20363 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20364 instead of strncmp when checking for thumb and arm. Formatting fixes.
20365
20366 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20367
20368 * doc/install.texi: Document --with-target-system-zlib.
20369
20370 2019-04-12 Martin Sebor <msebor@redhat.com>
20371
20372 PR c/88383
20373 PR c/89288
20374 PR c/89798
20375 PR c/89797
20376 * targhooks.c (default_vector_alignment): Avoid assuming
20377 argument fits in SHWI.
20378 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20379 a shift expression.
20380 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20381
20382 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20383
20384 PR rtl-optimization/89965
20385 * dce.c: Include rtl-iter.h.
20386 (struct check_argument_load_data): New type.
20387 (check_argument_load): New function.
20388 (find_call_stack_args): Check for loads from stack slots still tracked
20389 in sp_bytes and punt if any is found.
20390
20391 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20392
20393 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20394
20395 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20396 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20397
20398 2019-04-12 Martin Liska <mliska@suse.cz>
20399
20400 PR middle-end/89970
20401 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20402 in error message.
20403 (separate_attrs): Handle multiple 'default's.
20404 (expand_target_clones): Rework error handling code.
20405
20406 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20407
20408 PR target/87532
20409 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20410 mode of vector rather than mode of destination for move instruction.
20411 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20412 Use QI inner mode with V16QI vector mode.
20413
20414 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20415
20416 PR target/52726
20417 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20418 "invalid %%t operand" in output_operand_lossage message.
20419
20420 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20421
20422 * config/s390/predicates.md (permute_pattern_operand): New
20423 predicate.
20424 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20425 operand for the permute pattern.
20426 ("*vec_perm<mode>"): New insn definition.
20427 ("bswap<mode>"): Generate the permute pattern operand in the
20428 expander and perform the operand reloads for pre arch13 level
20429 already.
20430 ("*bswap<mode>_emu"): Rename to ...
20431 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20432 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20433 Add the USE operand for the permute pattern.
20434 ("*vec_set_bswap_vec<mode>"): Likewise.
20435
20436 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20437
20438 PR c/89946
20439 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20440 and gcc_unreachable if it fails, just call tree_to_uhwi which
20441 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20442 Start warning message with a lower-case letter. Formatting fixes.
20443
20444 PR rtl-optimization/90026
20445 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20446 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20447 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20448 in cfglayout mode, use emit_barrier_after_bb.
20449
20450 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20451
20452 PR rtl-optimization/87763
20453 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20454 New Instruction.
20455
20456 2019-04-11 Tom de Vries <tdevries@suse.de>
20457
20458 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20459 max macro using statement expression.
20460
20461 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20462
20463 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20464 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20465 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20466 read_only_private_data_section using xcoff_private_rodata_section_name.
20467 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20468
20469 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20470
20471 PR target/90016
20472 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20473
20474 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20475
20476 PR rtl-optimization/89965
20477 * dce.c (sp_based_mem_offset): New function.
20478 (find_call_stack_args): Use sp_based_mem_offset.
20479
20480 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20481
20482 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20483
20484 2019-04-11 Richard Biener <rguenther@suse.de>
20485
20486 PR tree-optimization/90020
20487 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20488 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20489 * tree-ssa-pre.c (compute_avail): Use it to not put
20490 possibly trapping references after a call that might not
20491 return into EXP_GEN.
20492 * gcse.c (compute_hash_table_work): Do not elide
20493 marking a block containing a call if the call might not
20494 return.
20495
20496 2019-04-11 Richard Biener <rguenther@suse.de>
20497
20498 PR tree-optimization/90018
20499 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20500 Test both SLP and interleaving variants.
20501
20502 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20503
20504 * config/s390/8561.md: New file.
20505 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20506 Add arch13 cpu model.
20507 * config/s390/s390-opts.h (enum processor_type): Likewise.
20508 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20509 (s390_get_unit_mask): Likewise.
20510 (s390_is_fpd): Likewise.
20511 (s390_is_fxd): Likewise.
20512 * config/s390/s390.h (s390_tune_attr): Likewise.
20513 * config/s390/s390.md: Include arch13 pipeline description.
20514 * config/s390/s390.opt: Add arch13.
20515
20516 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20517
20518 PR rtl-optimization/87763
20519 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20520 New prototype.
20521 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20522 New function.
20523 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20524 New instruction.
20525 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20526 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20527 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20528 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20529
20530 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20531
20532 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20533 "Although" in -fipa-icf documentation.
20534
20535 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20536 of using multiple -g options.
20537
20538 2019-04-10 Martin Liska <mliska@suse.cz>
20539
20540 PR gcov-profile/89959
20541 * doc/gcov.texi: Make documentation of -x option
20542 more precise.
20543
20544 2019-04-10 Richard Biener <rguenther@suse.de>
20545
20546 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20547 member.
20548 (DR_GROUP_SAME_DR_STMT): Remove.
20549 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20550 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20551 replace with assert.
20552 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20553 (vect_record_grouped_load_vectors): Remove unreachable code.
20554
20555 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20556
20557 PR target/90016
20558 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20559 obsolete reference to N.
20560
20561 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20562
20563 PR middle-end/90025
20564 * expr.c (store_expr): Set properly size on the MEM passed to
20565 clear_storage.
20566
20567 PR c++/90010
20568 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20569 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20570 translation is needed, and when translation is needed, only append
20571 ... if the string length is hostsz or more bytes long. Avoid using
20572 strncpy or strcat.
20573
20574 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20575
20576 PR target/90024
20577 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20578 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20579 into three.
20580 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20581 differences directly.
20582 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20583
20584 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20585
20586 PR translation/90011
20587 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20588 from diagnostics.
20589 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20590 diagnostics.
20591 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20592 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20593 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20594 trailing space from -gsplit-dwarf diagnostics.
20595
20596 PR tree-optimization/89998
20597 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20598 instead of integer_type_node if possible, don't add ranges if return
20599 type is not compatible with int.
20600 * gimple-fold.c (gimple_fold_builtin_sprintf,
20601 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20602 integer_type_node.
20603
20604 2019-04-09 Martin Liska <mliska@suse.cz>
20605
20606 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20607 * doc/install.texi: Document the new config.
20608
20609 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20610
20611 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20612 use gimple_expr_type for load and store calls. Skip over the
20613 condition argument in a conditional internal function.
20614 Protect use of TREE_INT_CST_LOW.
20615
20616 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20617
20618 PR target/90015
20619 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20620 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20621 trailing period from it too.
20622
20623 2019-04-08 wu yuan <wuyuan5@huawei.com>
20624
20625 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20626 * config/aarch64/aarch64.md : Add "tsv110.md"
20627 * config/aarch64/tsv110.md: New file.
20628
20629 2019-04-08 Richard Biener <rguenther@suse.de>
20630
20631 PR tree-optimization/90006
20632 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20633 calls like lrint.
20634
20635 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20636
20637 PR target/83033
20638 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20639 construction.
20640 (fma_root_node): Likewise.
20641 (func_fma_steering): Likewise.
20642
20643 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20644
20645 PR rtl-optimization/89865
20646 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20647
20648 PR rtl-optimization/89865
20649 * config/i386/i386.md
20650 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20651 numbers not to clash with the additional operands[4].
20652 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20653 with extra register copy in the middle.
20654
20655 2019-04-08 Martin Liska <mliska@suse.cz>
20656
20657 PR gcov-profile/89961
20658 * doc/gcov.texi: Document data_file.
20659 * gcov.c (generate_results): Add data_info into JSON output.
20660
20661 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20662
20663 PR tree-optimization/89725
20664 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20665 loop's chrec as invariant symbol.
20666 * tree-chrec.h (chrec_contains_symbols): New parameter.
20667 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20668 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20669 function of loops not in DDR's loop_nest.
20670 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20671
20672 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20673
20674 PR target/89623
20675 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20676 Mask.
20677
20678 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20679
20680 PR target/89945
20681 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20682 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20683
20684 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20685
20686 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20687 targetm.fixed_condition_code_regs.
20688
20689 2019-04-05 Richard Biener <rguenther@suse.de>
20690
20691 PR debug/89892
20692 PR debug/89905
20693 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20694 debug bind stmts but reset them if they are not valid at the
20695 destination.
20696
20697 2019-04-05 Martin Liska <mliska@suse.cz>
20698
20699 PR translation/89936
20700 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20701 order to wrap keywords or arguments.
20702 * collect2.c (main): Likewise.
20703 (scan_prog_file): Likewise.
20704 (scan_libraries): Likewise.
20705 * common/config/riscv/riscv-common.c
20706 (riscv_subset_list::parsing_subset_version): Likewise.
20707 (riscv_subset_list::parse_std_ext): Likewise.
20708 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20709 Likewise.
20710 * config/arm/arm.c (arm_option_override): Likewise.
20711 * config/cris/cris.c (cris_print_operand): Likewise.
20712 * config/darwin-c.c (darwin_pragma_options): Likewise.
20713 (darwin_pragma_unused): Likewise.
20714 (darwin_pragma_ms_struct): Likewise.
20715 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20716 * config/i386/i386.c (print_reg): Likewise.
20717 (ix86_print_operand): Likewise.
20718 * config/i386/xm-djgpp.h: Likewise.
20719 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20720 * config/m32c/m32c.c (m32c_option_override): Likewise.
20721 * config/msp430/msp430.c (msp430_option_override): Likewise.
20722 * config/nds32/nds32.c (nds32_option_override): Likewise.
20723 * config/nvptx/mkoffload.c (main): Likewise.
20724 * config/rx/rx.c (rx_print_operand): Likewise.
20725 (valid_psw_flag): Likewise.
20726 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20727 (vms_pragma_nomember_alignment): Likewise.
20728 (vms_pragma_extern_model): Likewise.
20729 * lto-wrapper.c (compile_offload_image): Likewise.
20730 * omp-offload.c (oacc_parse_default_dims): Likewise.
20731 * symtab.c (symtab_node::verify_base): Likewise.
20732 * tlink.c (recompile_files): Likewise.
20733 (start_tweaking): Likewise.
20734 * tree-profile.c (parse_profile_filter): Likewise.
20735
20736 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20737
20738 PR tree-optimization/89956
20739 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20740 multiple negates of the same value.
20741
20742 2019-04-04 Martin Sebor <msebor@redhat.com>
20743
20744 PR middle-end/89957
20745 PR middle-end/89911
20746 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20747 have the same precision since the function crashes otherwise.
20748 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20749 has non-zero arguments.
20750
20751 2019-04-04 Martin Sebor <msebor@redhat.com>
20752
20753 PR middle-end/89934
20754 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20755 out if the number of arguments is less than expected.
20756
20757 2019-04-04 Jeff Law <law@redhat.com>
20758
20759 PR rtl-optimization/89399
20760 * ree.c (combine_set_extension): Use single_set rather than
20761 digging into PATTERN for items on the candidate list.
20762 (combine_reaching_defs): Likewise.
20763
20764 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20765
20766 PR rtl-optimization/46590
20767 * loop-invariant.c (find_defs): Move df_remove_problem and
20768 df_process_deferred_rescans to move_invariants.
20769 Move df_live_add_problem and df_live_set_all_dirty calls
20770 to move_invariants.
20771 (move_invariants): Likewise.
20772 (move_loop_invariants): Likewise, making the df_live calls
20773 conditional on -O. Remove the problem again if we added it
20774 locally.
20775
20776 2019-04-03 qing zhao <qing.zhao@oracle.com>
20777
20778 PR tree-optimization/89730
20779 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20780 -flive-patching=inline-only-static.
20781 (can_inline_edge_by_limits_p): Add the checking for
20782 -flive-patching=inline-only-static and grant always_inline
20783 even when -flive-patching=inline-only-static is specified.
20784
20785 2019-04-03 Jeff Law <law@redhat.com>
20786
20787 PR rtl-optimization/81025
20788 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20789
20790 2019-04-03 Richard Biener <rguenther@suse.de>
20791
20792 PR tree-optimization/84101
20793 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20794 regs.h for hard_regno_nregs.
20795 (cfun_returns): New helper.
20796 (vect_model_store_cost): When vectorizing a store to a decl
20797 we return and the function ABI returns in a multi-reg location
20798 account for the possible spilling that will happen.
20799
20800 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20801
20802 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20803 displacement addresses for vector mode operands.
20804
20805 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20806
20807 * config/arc/arc.c (GMASK_LEN): Define.
20808 (arc_restore_callee_saves): Restore first blink when
20809 !optimize_size.
20810
20811 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20812
20813 * doc/extend.texi: Add deprecated comment on sign-return-address
20814 function attribute and add mbranch-protection.
20815 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20816
20817 2019-04-03 Richard Biener <rguenther@suse.de>
20818
20819 PR lto/89896
20820 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20821 the all target phony.
20822
20823 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20824
20825 PR target/89902
20826 PR target/89903
20827 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20828 Return false for variable DImode shifts.
20829 (dimode_scalar_chain::compute_convert_gain): Do not handle
20830 register count operand in variable DImode shifts.
20831 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20832 count argument of a variable shift instruction to a vector register.
20833 (dimode_scalar_chain::convert_reg): Remove support to convert
20834 count argument of a variable shift instruction.
20835
20836 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20837
20838 PR rtl-optimization/84206
20839 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20840 iterating over loop headers.
20841
20842 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20843
20844 PR rtl-optimization/85876
20845 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20846 beyond the original fence.
20847
20848 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20849
20850 * config.gcc: Mark spu* targets as deprecated/obsolete.
20851
20852 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20853
20854 * config/s390/s390-builtin-types.def: New builtin function type
20855 definitions. Remove unused types.
20856 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20857 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20858 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20859 overloaded builtins.
20860 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20861 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20862 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20863 (vec_double, vec_signed, vec_unsigned): Define to use the new
20864 overloaded builtins.
20865 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20866 Remove expanders.
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.
20872 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20873 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20874 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20875 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20876 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20877 constant definitions.
20878 * config/s390/vecintrin.h (vec_search_string_cc)
20879 (vec_search_string_until_zero_cc): New builtin name definitions.
20880 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20881 expanders.
20882 ("vec_vstrs<mode>"): New insn definition.
20883
20884 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20885
20886 * config/s390/s390-builtin-types.def: Add new builtin function
20887 types.
20888 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20889 New overloaded builtins.
20890 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20891 s390_vsrd.
20892 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20893 (UNSPEC_VEC_SLDBYTE): ... this.
20894 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20895 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20896 definitions.
20897 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20898 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20899 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20900
20901 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20902
20903 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20904 New insn definition.
20905 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20906 * config/s390/vector.md (V_HW_HSD): ... here.
20907
20908 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20909
20910 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20911 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20912 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20913 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20914 New insn definitions.
20915
20916 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20917
20918 * config/s390/s390-builtin-types.def: Add new builtin function type.
20919 * config/s390/s390-builtins.def: Add overloaded builtin
20920 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20921 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20922 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20923 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20924 ("eltswap<mode>"): New expander.
20925 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20926 insn definitions.
20927
20928 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20929
20930 * config/s390/s390-builtin-types.def: Add new builtin function types.
20931 * config/s390/s390-builtins.def: Add overloaded builtin
20932 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20933 instructions.
20934 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20935 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20936 ("bswap<mode>"): New expander.
20937 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20938
20939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20940
20941 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20942 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20943 vector builtin version number in __VEC__.
20944
20945 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20946
20947 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20948 iterators.
20949 (SFSI): New mode attribute.
20950 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20951 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20952 rename to ...
20953 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20954 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20955 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20956 ("floatsi<mode>2"): Add wcefb instruction.
20957
20958 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20959
20960 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20961 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20962 mode iterators.
20963 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20964 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20965 support 32 bit fp-int conversions. Rename to ...
20966 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20967 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20968 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20969 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20970 ... to these.
20971
20972 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20973
20974 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20975 if-then-else constructs if we can use the select instruction.
20976 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20977
20978 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20979
20980 * config/s390/s390.md ("*popcountdi_arch13_cc")
20981 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20982 definition.
20983 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20984 Append _z196 to make it ...
20985 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20986 ("popcounthi2_z196"): ... this.
20987 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20988 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20989
20990 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20991
20992 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20993 certain compares for arch13 in order to make use of the condition
20994 code result produced by the new instructions.
20995 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20996 nxrk, and nxgrk instruction patterns.
20997 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20998 (inv_no): Add new code iterator together with some attributes.
20999 ("*andc_split_<mode>"): Disable splitter for arch13.
21000 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21001 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21002 ("*<ANDOR:bitops_name>c<GPR:mode>")
21003 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21004 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21005 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21006 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21007
21008 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21009
21010 * common/config/s390/s390-common.c (processor_flags_table): New
21011 entry for arch13.
21012 * config.gcc: Support arch13 with the --with-arch= configure flag.
21013 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21014 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21015 * config/s390/s390.c (s390_get_sched_attrmask)
21016 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21017 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21018 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21019 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21020 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21021 definitions.
21022 * config/s390/s390.opt: Support arch13 as processor type in
21023 command line options.
21024
21025 2019-04-02 Martin Liska <mliska@suse.cz>
21026
21027 PR translation/89912
21028 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21029 Fix param description of graphite-max-arrays-per-scop.
21030
21031 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21032
21033 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21034 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21035 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21036
21037 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21038
21039 PR rtl-optimization/85412
21040 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21041 sel_sched_region_1, not after.
21042
21043 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21044
21045 PR rtl-optimization/86928
21046 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21047 compute_live if necessary.
21048 (sel_redirect_edge_and_branch): Likewise.
21049
21050 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21051
21052 PR rtl-optimization/89865
21053 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21054 register if it is a part of small class.
21055
21056 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21057
21058 PR rtl-optimization/87273
21059 * sel-sched-ir.c (merge_fences): Remove assert.
21060
21061 2019-04-01 Richard Biener <rguenther@suse.de>
21062
21063 PR tree-optimization/46590
21064 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21065 (dom_walker::m_reachability): Add in place of...
21066 (dom_walker::m_skip_unreachable_blocks): ...this.
21067 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21068 Move complex initialization ...
21069 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21070 lazily and initialize edge flags on each invocation.
21071 (dom_walker::bb_reachable): Use m_reachability.
21072
21073 2019-04-01 Martin Liska <mliska@suse.cz>
21074
21075 PR driver/89861
21076 * opt-suggestions.c (option_proposer::build_option_suggestions):
21077 Add variant without any argument in order to provide better
21078 hints.
21079
21080 2019-04-01 Richard Biener <rguenther@suse.de>
21081
21082 PR c/71598
21083 * gimple.c: Include langhooks.h.
21084 (gimple_get_alias_set): Treat enumeral types as the underlying
21085 integer type.
21086
21087 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21088 Eric Botcazou <ebotcazou@adacore.com>
21089
21090 PR rtl-optimization/89862
21091 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21092 that operates on the full registers for WORD_REGISTER_OPERATIONS
21093 architectures.
21094
21095 2019-03-29 Jim Wilson <jimw@sifive.com>
21096
21097 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21098 Clear MASK_RVC and then set if C subset supported.
21099
21100 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21101
21102 PR c/89872
21103 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21104 non-addressable complit into its initializer if it is volatile.
21105
21106 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21107
21108 * opts-common.c (integral_argument): Set errno properly in one case.
21109
21110 2019-03-29 Martin Liska <mliska@suse.cz>
21111
21112 * doc/invoke.texi: Remove -Wchkp from documentation.
21113
21114 2019-03-29 Martin Liska <mliska@suse.cz>
21115
21116 * dbgcnt.c (print_limit_reach): New function.
21117 (dbg_cnt): Use it.
21118
21119 2019-03-29 Martin Liska <mliska@suse.cz>
21120
21121 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21122 (dbg_cnt_process_opt): Parse first tokens aas
21123 dbg_cnt_process_single_pair is also using strtok.
21124
21125 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21126
21127 PR rtl-optimization/87485
21128 * function.c (expand_function_end): Move stack_protect_epilogue
21129 before loading of return value into hard register(s).
21130
21131 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21132
21133 PR middle-end/89621
21134 * tree-inline.h (struct copy_body_data): Add
21135 dont_remap_vla_if_no_change flag.
21136 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21137 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21138 and remap_type_2 returns false.
21139 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21140 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21141 only from where it is copied to nested contexts.
21142
21143 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21144
21145 PR target/89865
21146 * config/i386/i386.md (RMW operation with LEA peephole):
21147 Use LEAMODE mode attribute instead of SWI mode iterator for
21148 LEA pattern.
21149
21150 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21151
21152 PR target/89848
21153 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21154 Also process XEXP (src, 0) of a shift insn.
21155
21156 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21157
21158 PR middle-end/89725
21159 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21160 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21161
21162 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21163
21164 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21165 test.
21166 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21167 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21168 immediately after first one with df_analyze in between, but rather
21169 process all bbs, queueing ones that need second pass in a worklist,
21170 df_analyze, process queued debug insn changes and if second pass is
21171 needed, process bbs from worklist, df_analyze, process queued debug
21172 insns again.
21173
21174 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21175 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21176 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21177
21178 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21179
21180 PR c/79022
21181 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21182 definition.
21183
21184 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21185
21186 PR target/85667
21187 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21188 function for 32-bit MS_ABI.
21189 (function_value_ms_32): New function.
21190
21191 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21192
21193 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21194 (movdi): Call gen_movdi_symbol_save_scc.
21195 (gen_movdi_symbol_save_scc): New insn and split.
21196
21197 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21198
21199 PR rtl-optimization/89313
21200 * function.c (matching_constraint_num): New static function.
21201 (match_asm_constraints_1): Use it. Fixup white space and comment.
21202 Don't replace inputs with non-matching constraints which conflict
21203 with early clobber outputs.
21204
21205 2019-03-27 Jeff Law <law@redhat.com>
21206
21207 PR rtl-optimization/87761
21208 PR rtl-optimization/89826
21209 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21210 slightly later.
21211 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21212 note problem to get REG_DEAD/REG_UNUSED notes updated.
21213
21214 2019-03-27 Richard Biener <rguenther@suse.de>
21215
21216 PR tree-optimization/89463
21217 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21218 queue edges to remove.
21219 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21220 dead stmts. Delay edge removal until PHIs are removed to
21221 make debug-stmt creation not confused by seemingly degenerate
21222 PHIs.
21223
21224 2019-03-27 Alan Modra <amodra@gmail.com>
21225
21226 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21227 throughout file.
21228 * config/rs6000/darwin.h: Likewise.
21229 * config/rs6000/rs6000.c: Likewise.
21230
21231 2019-03-27 Alan Modra <amodra@gmail.com>
21232
21233 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21234 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21235
21236 2019-03-26 Andrew Waterman <andrew@sifive.com>
21237 Jim Wilson <jimw@sifive.com>
21238
21239 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21240 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21241 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21242 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21243 (generic_alu): Add auipc to type list.
21244 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21245 (riscv_microarchitecture): Declare.
21246 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21247 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21248 field.
21249 (riscv_microarchitecture): New.
21250 (sifive_7_tune_info): New.
21251 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21252 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21253 entries.
21254 (riscv_store_data_bypass_p): New.
21255 (riscv_option_override): Set riscv_microarchitecture from
21256 cpu->microarchitecture.
21257 * config/riscv/riscv.md: Include sifive-7.md.
21258 (type): Add auipc.
21259 (tune): New.
21260 (auipc<mode>): Change type to auipc.
21261 (restore_stack_nonlocal): New.
21262 * config/riscv/sifive-7.md: New.
21263 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21264
21265 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21266
21267 PR target/89827
21268 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21269 Also process XEXP (src, 0) of a shift insn.
21270
21271 2019-03-26 Richard Biener <rguenther@suse.de>
21272
21273 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21274 (copy_debug_stmt): Likewise.
21275 (expand_call_inline): Likewise.
21276 (copy_bb): Avoid redundant lookup & set of gimple_block.
21277 * gimple-low.c (lower_gimple_return): Likewise.
21278 (lower_builtin_setjmp): Likewise.
21279
21280 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21281
21282 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21283 is constant 0, turn into static const data member initialized to false.
21284 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21285 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21286
21287 2019-03-26 Jason Merrill <jason@redhat.com>
21288 Jakub Jelinek <jakub@redhat.com>
21289
21290 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21291 method.
21292 (mem_alloc_description::release_object_overhead): Fix comment typos.
21293 * hash-table.h (hash_table::~hash_table): Call
21294 release_instance_overhead only if m_entries is non-NULL, otherwise
21295 call unregister_descriptor.
21296
21297 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21298
21299 PR tree-optimization/81740
21300 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21301 In case of outer loop vectorization, check for backward dependence
21302 at the inner loop if outer loop dependence is reversed.
21303
21304 2019-03-26 Alan Modra <amodra@gmail.com>
21305
21306 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21307 rs6000_vector_mem init. Correct wI and wJ comment.
21308
21309 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21310
21311 PR rtl-optimization/88347
21312 PR rtl-optimization/88423
21313 * sched-deps.c (sched_analyze_insn): Take into account that for
21314 tablejumps the barrier appears after a label and a jump_table_data.
21315
21316 2019-03-25 Martin Sebor <msebor@redhat.com>
21317
21318 PR c/89812
21319 * c-common.c (check_user_alignment): Rename local. Correct maximum
21320 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21321 convert it to UHWI when it fits.
21322
21323 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21324
21325 PR debug/86964
21326 * dwarf2out.c (premark_used_variables): New function.
21327 (prune_unused_types_walk): Do not mark not premarked external
21328 variables.
21329 (prune_unused_types): Call premark_used_variables.
21330
21331 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21332
21333 PR rtl-optimization/89676
21334 * lra-constraints.c (curr_insn_transform): Do match reload for
21335 early clobbers when the match was successful only for different
21336 registers.
21337
21338 2019-03-25 Martin Sebor <msebor@redhat.com>
21339
21340 * doc/extend.texi (Common Type Attributes): Document vector_size.
21341 (Common Variable Attributes): Mention size constraint. Correct
21342 quoting and typos.
21343 (Vector Extensions): Use @dfn when defining bas type. Clarify
21344 base type and size constraints.
21345
21346 2019-03-25 Richard Biener <rguenther@suse.de>
21347
21348 PR tree-optimization/89789
21349 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21350 changes from non-undefined back to undefined.
21351
21352 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21353
21354 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21355 heap string and a gc string, but since this variable is unknown to
21356 ggc the gc string might get reused and corrupted. Fixed by always
21357 using a heap string.
21358
21359 2019-03-25 Richard Biener <rguenther@suse.de>
21360
21361 PR tree-optimization/89779
21362 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21363 to remove IV defs, delay actual removal.
21364 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21365 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21366 very end, properly also reset loop control IV information.
21367
21368 2019-03-25 Richard Biener <rguenther@suse.de>
21369
21370 PR tree-optimization/89802
21371 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21372 move EH data to folded stmt.
21373
21374 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21375
21376 * config/s390/s390-builtin-types.def: Remove few unused types and
21377 fix sort order for others.
21378
21379 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21380
21381 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21382 expected and found types with -mdebug during builtin matching.
21383
21384 2019-03-25 Richard Biener <rguenther@suse.de>
21385
21386 PR middle-end/89790
21387 * fold-const.c (operand_equal_p): Revert last change with
21388 updated comment.
21389
21390 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21391
21392 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21393 notes for the result of the __tls_get_addr calls.
21394 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21395
21396 2019-03-24 Jeff Law <law@redhat.com>
21397
21398 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21399
21400 PR rtl-optimization/87761
21401 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21402 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21403 as needed.
21404 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21405 rescans. Reprocess blocks as needed, calling df_analyze before
21406 reprocessing. Always call df_analyze before fixing up debug bind
21407 insns.
21408
21409 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21410
21411 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21412 big endian.
21413
21414 2019-03-22 Andrew Pinski <apinski@marvell.com>
21415
21416 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21417 attrribute for uxtw.
21418
21419 2019-03-26 Jeff Law <law@redhat.com>
21420
21421 PR rtl-optimization/87761
21422 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21423 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21424 (mips_split_move): Accept new INSN argument. Try to forward SRC
21425 into the next instruction.
21426 (mips_split_move_insn): Pass INSN through to mips_split_move.
21427
21428 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21429
21430 PR rtl-optimization/89676
21431 * lra-constraints.c (curr_insn_transform): Do match reload for
21432 early clobbers even if the match was successful.
21433
21434 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21435
21436 PR c++/87481
21437 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21438
21439 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21440
21441 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21442
21443 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21444
21445 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21446 <avx512>_fmsub_<mode>_mask3<round_name>,
21447 <avx512>_fnmadd_<mode>_mask3<round_name>,
21448 <avx512>_fnmsub_<mode>_mask3<round_name>,
21449 avx512f_vmfmadd_<mode>_mask3<round_name>,
21450 avx512f_vmfmsub_<mode>_mask3<round_name>,
21451 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21452 instead of register_operand and %v instead of v for match_operand 1.
21453 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21454 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21455 <round_nimm_predicate> instead of register_operand and %v instead of v
21456 for match_operand 1.
21457
21458 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21459 <avx512>_fmadd_<mode>_mask3<round_name>,
21460 <avx512>_fmsub_<mode>_mask<round_name>,
21461 <avx512>_fmsub_<mode>_mask3<round_name>,
21462 <avx512>_fnmadd_<mode>_mask<round_name>,
21463 <avx512>_fnmadd_<mode>_mask3<round_name>,
21464 <avx512>_fnmsub_<mode>_mask<round_name>,
21465 <avx512>_fnmsub_<mode>_mask3<round_name>,
21466 <avx512>_fmaddsub_<mode>_mask<round_name>,
21467 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21468 <avx512>_fmsubadd_<mode>_mask<round_name>,
21469 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21470 <round_nimm_predicate> instead of nonimmediate_operand.
21471 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21472 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21473 Use register_operand instead of <round_nimm_predicate> for the
21474 operand that needs to match output.
21475 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21476 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21477 Likewise. Formatting fixes.
21478
21479 PR target/89784
21480 * config/i386/i386.c (enum ix86_builtins): Remove
21481 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21482 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21483 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21484 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21485 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21486 __builtin_ia32_vfmsubss3_mask3): New builtins.
21487 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21488 avx512f_vmfmadd_<mode>_mask3<round_name>,
21489 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21490 *avx512f_vmfmsub_<mode>_mask<round_name>,
21491 avx512f_vmfmsub_<mode>_mask3<round_name>,
21492 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21493 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21494 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21495 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21496 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21497 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21498 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21499 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21500 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21501 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21502 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21503 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21504 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21505 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21506 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21507 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21508 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21509 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21510 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21511 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21512 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21513 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21514 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21515 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21516 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21517 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21518 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21519 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21520
21521 2019-03-21 Martin Sebor <msebor@redhat.com>
21522
21523 PR tree-optimization/89350
21524 * builtins.c (compute_objsize): Also ignore offsets whose upper
21525 bound is negative.
21526 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21527 (builtin_memref::builtin_memref): Initialize new member.
21528 Allow EXPR to be null.
21529 (builtin_memref::extend_offset_range): Replace local with a member.
21530 Avoid assuming pointer offsets are unsigned.
21531 (builtin_memref::set_base_and_offset): Determine base object
21532 before computing offset range.
21533 (builtin_access::builtin_access): Handle memset.
21534 (builtin_access::generic_overlap): Replace local with a member.
21535 (builtin_access::strcat_overlap): Same.
21536 (builtin_access::overlap): Same.
21537 (maybe_diag_overlap): Same.
21538 (maybe_diag_access_bounds): Same.
21539 (wrestrict_dom_walker::check_call): Handle memset.
21540 (check_bounds_or_overlap): Same.
21541
21542 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21543 Jakub Jelinek <jakub@redhat.com>
21544
21545 PR lto/89692
21546 * tree.c (fld_type_variant, fld_incomplete_type_of,
21547 fld_process_array_type): Call fld->pset.add and don't call
21548 add_tree_to_fld_list if it returns true.
21549 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21550 non-marked types from TYPE_NEXT_VARIANT list.
21551 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21552
21553 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21554
21555 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21556 to false, if true, don't alloc_entries during construction, but defer
21557 it to the first method that needs m_entries allocated.
21558 (hash_table::hash_table, hash_table::~hash_table,
21559 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21560 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21561 hash_table::clear_slot, hash_table::traverse_noresize,
21562 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21563 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21564 false.
21565 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21566 NO_INSERT instead of find_with_hash.
21567 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21568 hash_set::m_table): Add Lazy to template params of hash_table.
21569 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21570 * attribs.c (test_attribute_exclusions): Likewise.
21571 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21572 hash_set. Add tests for hash_set with Lazy = true.
21573
21574 2019-03-21 Richard Biener <rguenther@suse.de>
21575
21576 PR tree-optimization/89779
21577 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21578 checks with respect to released SSA names now having error_mark_node
21579 type.
21580 * fold-const.c (operand_equal_p): Likewise.
21581
21582 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21583
21584 PR target/89775
21585 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21586 available to ...
21587 (s390_optimize_register_info): Use global_not_special_regno_p to
21588 check for global regs.
21589
21590 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21591
21592 PR target/89752
21593 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21594 update this_alternative nor this_alternative_set.
21595
21596 2019-03-19 Jim Wilson <jimw@sifive.com>
21597
21598 PR target/89411
21599 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21600 align, size, offset. Use them to handle a BLKmode reference. Update
21601 comment.
21602 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21603
21604 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21605
21606 PR rtl-optimization/89768
21607 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21608 instead of GEN_INT.
21609 (unroll_loop_runtime_iterations): Likewise.
21610
21611 2019-03-19 Martin Sebor <msebor@redhat.com>
21612
21613 PR tree-optimization/89644
21614 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21615 rather than endptr as an indicator of nul-termination.
21616
21617 PR tree-optimization/89644
21618 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21619 arrays in determining sequence sizes in strncpy and stpncpy.
21620
21621 2019-03-19 Martin Liska <mliska@suse.cz>
21622
21623 PR middle-end/89737
21624 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21625 unlikely_edges if there's an edge that belongs to both these sets.
21626
21627 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21628
21629 PR target/89746
21630 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21631 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21632 go via a stack temporary.
21633
21634 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21635
21636 PR target/89378
21637 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21638 instead of gen_rtx_SUBREG.
21639 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21640
21641 2019-03-19 Richard Biener <rguenther@suse.de>
21642
21643 PR debug/88389
21644 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21645
21646 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21647
21648 PR lto/87809
21649 PR lto/89335
21650 * tree.c (free_lang_data_in_decl): Do not free context of C++
21651 destrutors.
21652
21653 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21654
21655 PR target/89506
21656 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21657 subs for the first alternative except when operands[3] is 1.
21658
21659 PR target/89752
21660 * gimplify.c (gimplify_asm_expr): For output argument with
21661 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21662 diagnose error.
21663
21664 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21665
21666 PR rtl-optimization/89753
21667 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21668 explicit unrolling factor even more robust.
21669
21670 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21671
21672 PR target/89726
21673 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21674 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21675 signed zeros, do another copysign after the compensation.
21676
21677 2019-03-18 Martin Sebor <msebor@redhat.com>
21678
21679 PR tree-optimization/89720
21680 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21681 more conservatively, the same as anti-range.
21682
21683 2019-03-18 Richard Biener <rguenther@suse.de>
21684
21685 PR middle-end/88945
21686 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21687 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21688 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21689 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21690
21691 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21692
21693 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21694 Extend queue to 1024 entries.
21695 Add "consumed" field.
21696 (gomp_print_output): Remove print_index parameter.
21697 Add final parameter.
21698 Change limit to unsigned.
21699 Use consumed field to implement circular buffer.
21700 Detect interrupted print in final pass.
21701 Flush output at the end.
21702 (run): Update gomp_print_output usage.
21703 (main): Initialize kernargs->output_data.consumed.
21704
21705 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21706
21707 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21708 calculation of the minimum number of scalar iterations for
21709 fully-predicated loops.
21710
21711 2019-03-18 Martin Jambor <mjambor@suse.cz>
21712
21713 PR tree-optimization/89546
21714 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21715 any propagation to its children took place.
21716
21717 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21718
21719 PR target/89627
21720 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21721 parameter, and make use of it.
21722 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21723
21724 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21725
21726 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21727 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21728 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21729 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21730 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21731 match what the ops is doing.
21732 (push_multi_fp_blink): Likewise.
21733 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21734 compiling for size and elf target.
21735 (arc_save_callee_enter): Adjust note to match what enter/leave
21736 operation does.
21737
21738 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21739
21740 * config/arc/arc.md (tst_movb): Fix constraint.
21741
21742 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21743
21744 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21745
21746 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21747
21748 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21749 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21750 reg_alloc_order references.
21751 (size_alloc_order): Define.
21752 (arc_adjust_reg_alloc_order): New function.
21753 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21754 order.
21755 (ADJUST_REG_ALLOC_ORDER): Define.
21756 (HONOR_REG_ALLOC_ORDER): Likewise.
21757
21758 2019-03-18 Richard Biener <rguenther@suse.de>
21759
21760 PR target/87561
21761 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21762 loads and stores a bit more.
21763
21764 2019-03-18 Richard Biener <rguenther@suse.de>
21765
21766 PR target/87561
21767 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21768 load pessimization to stores as well.
21769
21770 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21771
21772 PR middle-end/86979
21773 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21774 successor, use NULL as its av set.
21775
21776 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21777
21778 PR rtl-optimization/89721
21779 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21780
21781 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21782
21783 PR target/87532
21784 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21785 When handling vec_extract, use modular arithmetic to allow
21786 constant selectors greater than vector length.
21787 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21788 V1TImode vectors to have constant selector values greater than 0.
21789 Use modular arithmetic to compute vector index.
21790 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21791 index for in-memory vectors. Correct code generation for
21792 in-register vectors.
21793 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21794 compute index.
21795
21796 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21797
21798 PR c++/88534
21799 PR c++/88537
21800 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21801 VAR_DECL args.
21802
21803 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21804
21805 PR c++/89709
21806 * tree.c (inchash::add_expr): Strip any location wrappers.
21807 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21808 after hash verification.
21809
21810 PR debug/89704
21811 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21812 SIGN_EXTEND and ZERO_EXTEND.
21813
21814 2019-03-14 Jason Merrill <jason@redhat.com>
21815 Jakub Jelinek <jakub@redhat.com>
21816
21817 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21818 than if is_empty (*slot).
21819 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21820 existing elt and for elt removal.
21821 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21822 of already removed elt.
21823
21824 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21825
21826 PR target/89650
21827 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21828 REG_EH_REGION note.
21829
21830 2019-03-14 Martin Liska <mliska@suse.cz>
21831
21832 PR other/89712
21833 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21834
21835 2019-03-14 Richard Biener <rguenther@suse.de>
21836
21837 PR target/89711
21838 * config/i386/i386.c (make_resolver_func): Properly set
21839 DECL_CONTEXT on the RESULT_DECL.
21840 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21841
21842 2019-03-14 Richard Biener <rguenther@suse.de>
21843
21844 * gimple-pretty-print.c: Include cfgloop.h.
21845 (dump_gimple_phi): Adjust.
21846 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21847 (pp_cfg_jump): Adjust.
21848 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21849 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21850 (lower_phi_internal_fn): Remove.
21851 (verify_gimple_call): Remove IFN_PHI special-casing.
21852 (dump_function_to_file): Dump IL state.
21853 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21854 done to deal with PHI nodes being present in non-SSA state.
21855
21856 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21857
21858 PR ipa/89684
21859 * multiple_target.c (create_dispatcher_calls): Change
21860 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21861 In the node->iterate_referring loop, push *ref rather than ref, call
21862 ref->remove_reference () and always pass 0 to iterate_referring.
21863
21864 PR rtl-optimization/89679
21865 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21866 would contain a paradoxical SUBREG.
21867
21868 2019-03-14 Richard Biener <rguenther@suse.de>
21869
21870 PR tree-optimization/89710
21871 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21872 safe_dyn_cast.
21873
21874 2019-03-14 Martin Liska <mliska@suse.cz>
21875
21876 * coverage.c (coverage_begin_function): Stream also
21877 end_column.
21878 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21879 documentation about function declaration location.
21880 * gcov-dump.c (tag_function): Print whole range
21881 of function declaration.
21882 * gcov.c (struct function_info): Add end_column field.
21883 (function_info::function_info): Initialize it.
21884 (output_json_intermediate_file): Output {start,end}_column
21885 fields.
21886 (read_graph_file): Read end_column.
21887
21888 2019-03-14 Richard Biener <rguenther@suse.de>
21889
21890 PR middle-end/89698
21891 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21892 that the access types are similar.
21893
21894 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21895
21896 PR tree-optimization/89703
21897 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21898 aren't compatible also with builtin_decl_explicit. Check pure
21899 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21900 and BUILT_IN_STPNCPY{,_CHK}.
21901
21902 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21903
21904 PR target/89523
21905 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21906 addr32 prefix to VSIB address for X32.
21907 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21908 "%M2" to opcode.
21909 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21910 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21911 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21912 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21913 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21914 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21915 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21916 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21917 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21918 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21919 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21920 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21921 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21922 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21923 (*avx512f_scatterdi<mode>): Likewise.
21924
21925 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21926
21927 PR target/85860
21928 * lra-constraints.c (inherit_in_ebb): Update
21929 potential_reload_hard_regs along with live_hard_regs.
21930
21931 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21932
21933 PR debug/89498
21934 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21935 DWARF_OFFSET_SIZE.
21936 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21937
21938 2019-03-13 Martin Sebor <msebor@redhat.com>
21939
21940 PR tree-optimization/89662
21941 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21942 has a size.
21943
21944 2019-03-13 Richard Biener <rguenther@suse.de>
21945
21946 PR middle-end/89677
21947 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21948 throw FP expressions at tree-affine.
21949
21950 2019-03-14 Richard Biener <rguenther@suse.de>
21951
21952 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21953 dump negative integer constants using _Literal (type) -num.
21954
21955 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21956
21957 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21958 nonlocal_value member.
21959
21960 PR middle-end/88588
21961 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21962 (ipa_simd_modify_function_body): Handle PHIs.
21963
21964 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21965
21966 * config/s390/s390.c (s390_option_override_internal): Use more
21967 aggressive inlining parameters.
21968
21969 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21970
21971 * config/s390/3906.md: New file.
21972 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21973 (LONGRUNNING_THRESHOLD): Remove.
21974 (MAX_SCHED_MIX_SCORE): Decrease.
21975 (MAX_SCHED_MIX_DISTANCE): Decrease.
21976 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21977 (struct s390_sched_state): New struct to hold scheduling state.
21978 (S390_SCHED_STATE_NORMAL): Remove.
21979 (S390_SCHED_STATE_CRACKED): Remove.
21980 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21981 (s390_get_sched_attrmask): Use new attribute.
21982 (s390_get_unit_mask): Use new units.
21983 (s390_is_fpd): New function.
21984 (s390_is_fxd): New function.
21985 (s390_is_longrunning): New function.
21986 (s390_sched_score): Use new functions.
21987 (s390_sched_reorder): Likewise.
21988 (s390_sched_variable_issue): Rework and use new functions.
21989 (s390_sched_init): Use new functions.
21990 * config/s390/s390.h (s390_tune_attr): Add z14.
21991 * config/s390/s390.md: Add z14.
21992
21993 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21994
21995 * config/s390/2964.md: Update pipeline description.
21996 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21997 (LONGRUNNING_THRESHOLD): Remove.
21998 (LATENCY_FACTOR): Remove.
21999 (s390_get_unit_mask): Add unit.
22000 (s390_sched_score): Use fxd/fpd.
22001 (s390_sched_variable_issue): Use fxd/fpd.
22002
22003 2019-03-12 Martin Liska <mliska@suse.cz>
22004
22005 * config/i386/i386.c: Reword an error message.
22006
22007 2019-03-12 Martin Jambor <mjambor@suse.cz>
22008
22009 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22010 terminate with newline.
22011
22012 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22013
22014 PR target/52726
22015 * config/s390/s390.md (tabort): Use %wd instead of
22016 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22017 letters and periods.
22018 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22019 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22020 's with %< and %>.
22021
22022 PR middle-end/89663
22023 * builtins.c (expand_builtin_int_roundingfn,
22024 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22025 gcc_unreachable if validate_arglist fails.
22026
22027 2019-03-12 Richard Biener <rguenther@suse.de>
22028
22029 PR tree-optimization/89664
22030 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22031 free the occurance tree after the early out.
22032
22033 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22034
22035 PR middle-end/89655
22036 PR bootstrap/89656
22037 * vr-values.c (vr_values::update_value_range): If
22038 old_vr->varying_p (), don't update it, make new_vr also VARYING
22039 and return false.
22040
22041 2019-03-11 Martin Liska <mliska@suse.cz>
22042
22043 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22044 Fix double string quoting.
22045
22046 2019-03-11 Martin Liska <mliska@suse.cz>
22047
22048 * collect-utils.c (collect_wait): Wrap apostrophes
22049 in gcc internal format with %'.
22050 * collect2.c (main): Likewise.
22051 (scan_prog_file): Likewise.
22052 (scan_libraries): Likewise.
22053 * config/i386/i386.c (ix86_expand_call): Likewise.
22054 (ix86_handle_interrupt_attribute): Likewise.
22055 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22056 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22057 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22058 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22059 * symtab.c (symtab_node::verify_base): Likewise.
22060 * tree-cfg.c (verify_gimple_label): Likewise.
22061 * tree.c (verify_type_variant): Likewise.
22062
22063 2019-03-11 Martin Liska <mliska@suse.cz>
22064
22065 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22066 in a string format message and fix GNU coding style.
22067 (expand_builtin_set_thread_pointer): Likewise.
22068 * common/config/aarch64/aarch64-common.c
22069 (aarch64_rewrite_selected_cpu): Likewise.
22070 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22071 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22072 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22073 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22074 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22075 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22076 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22077 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22078 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22079 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22080 Likewise.
22081 * common/config/riscv/riscv-common.c
22082 (riscv_subset_list::parsing_subset_version): Likewise.
22083 (riscv_subset_list::parse_std_ext): Likewise.
22084 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22085 (riscv_subset_list::parse): Likewise.
22086 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22087 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22088 (aarch64_override_options_internal): Likewise.
22089 (aarch64_validate_mcpu): Likewise.
22090 (aarch64_validate_march): Likewise.
22091 (aarch64_validate_mtune): Likewise.
22092 (aarch64_override_options): Likewise.
22093 * config/alpha/alpha.c (alpha_option_override): Likewise.
22094 * config/arc/arc.c (arc_init): Likewise.
22095 (parse_mrgf_banked_regs_option): Likewise.
22096 (arc_override_options): Likewise.
22097 (arc_expand_builtin_aligned): Likewise.
22098 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22099 (arm_expand_builtin): Likewise.
22100 * config/arm/arm.c (arm_option_check_internal): Likewise.
22101 (arm_configure_build_target): Likewise.
22102 (arm_option_override): Likewise.
22103 (arm_options_perform_arch_sanity_checks): Likewise.
22104 (arm_handle_cmse_nonsecure_entry): Likewise.
22105 (arm_handle_cmse_nonsecure_call): Likewise.
22106 (arm_tls_referenced_p): Likewise.
22107 (thumb1_expand_prologue): Likewise.
22108 * config/avr/avr.c (avr_option_override): Likewise.
22109 * config/bfin/bfin.c (bfin_option_override): Likewise.
22110 * config/c6x/c6x.c (c6x_option_override): Likewise.
22111 * config/cr16/cr16.c (cr16_override_options): Likewise.
22112 * config/cris/cris.c (cris_option_override): Likewise.
22113 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22114 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22115 * config/darwin.c (darwin_override_options): Likewise.
22116 * config/frv/frv.c (frv_expand_builtin): Likewise.
22117 * config/h8300/h8300.c (h8300_option_override): Likewise.
22118 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22119 (ix86_option_override_internal): Likewise.
22120 (warn_once_call_ms2sysv_xlogues): Likewise.
22121 (ix86_expand_prologue): Likewise.
22122 (split_stack_prologue_scratch_regno): Likewise.
22123 (ix86_warn_parameter_passing_abi): Likewise.
22124 * config/ia64/ia64.c (fix_range): Likewise.
22125 * config/m68k/m68k.c (m68k_option_override): Likewise.
22126 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22127 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22128 (mips_set_compression_mode): Likewise.
22129 * config/mmix/mmix.c (mmix_option_override): Likewise.
22130 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22131 * config/msp430/msp430.c (msp430_option_override): Likewise.
22132 * config/nds32/nds32.c (nds32_option_override): Likewise.
22133 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22134 (nios2_option_override): Likewise.
22135 (nios2_expand_custom_builtin): Likewise.
22136 * config/nvptx/mkoffload.c (main): Likewise.
22137 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22138 * config/pa/pa.c (fix_range): Likewise.
22139 (pa_option_override): Likewise.
22140 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22141 (riscv_option_override): Likewise.
22142 * config/rl78/rl78.c (rl78_option_override): Likewise.
22143 * config/rs6000/aix61.h: Likewise.
22144 * config/rs6000/aix71.h: Likewise.
22145 * config/rs6000/aix72.h: Likewise.
22146 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22147 * config/rs6000/freebsd64.h: Likewise.
22148 * config/rs6000/linux64.h: Likewise.
22149 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22150 (rs6000_expand_zeroop_builtin): Likewise.
22151 (rs6000_expand_mtfsb_builtin): Likewise.
22152 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22153 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22154 (rs6000_invalid_builtin): Likewise.
22155 (rs6000_expand_split_stack_prologue): Likewise.
22156 * config/rs6000/rtems.h: Likewise.
22157 * config/rx/rx.c (valid_psw_flag): Likewise.
22158 (rx_expand_builtin): Likewise.
22159 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22160 * config/s390/s390.c (s390_expand_builtin): Likewise.
22161 (s390_function_profiler): Likewise.
22162 (s390_option_override_internal): Likewise.
22163 (s390_option_override): Likewise.
22164 * config/sh/sh.c (sh_option_override): Likewise.
22165 (sh_builtin_saveregs): Likewise.
22166 (sh_fix_range): Likewise.
22167 * config/sh/vxworks.h: Likewise.
22168 * config/sparc/sparc.c (sparc_option_override): Likewise.
22169 * config/spu/spu.c (spu_option_override): Likewise.
22170 (fix_range): Likewise.
22171 * config/visium/visium.c (visium_option_override): Likewise.
22172 (visium_handle_interrupt_attr): Likewise.
22173 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22174 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22175 (dbg_cnt_process_opt): Likewise.
22176 * dwarf2out.c (output_dwarf_version): Likewise.
22177 * except.c (expand_eh_return): Likewise.
22178 * gcc.c (defined): Likewise.
22179 (driver_handle_option): Likewise.
22180 (process_command): Likewise.
22181 (compare_files): Likewise.
22182 (driver::prepare_infiles): Likewise.
22183 (driver::do_spec_on_infiles): Likewise.
22184 (driver::maybe_run_linker): Likewise.
22185 * omp-offload.c (oacc_parse_default_dims): Likewise.
22186 * opts-global.c (handle_common_deferred_options): Likewise.
22187 * opts.c (parse_sanitizer_options): Likewise.
22188 (common_handle_option): Likewise.
22189 (enable_warning_as_error): Likewise.
22190 * passes.c (enable_disable_pass): Likewise.
22191 * plugin.c (parse_plugin_arg_opt): Likewise.
22192 (default_plugin_dir_name): Likewise.
22193 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22194 (default_pch_valid_p): Likewise.
22195 * toplev.c (init_asm_output): Likewise.
22196 (process_options): Likewise.
22197 (toplev::run_self_tests): Likewise.
22198 * tree-cfg.c (verify_gimple_call): Likewise.
22199 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22200 (tree_inlinable_function_p): Likewise.
22201 * var-tracking.c (vt_find_locations): Likewise.
22202
22203 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22204
22205 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22206 only on the else branch.
22207
22208 2019-03-11 Martin Liska <mliska@suse.cz>
22209
22210 * gcov.c (output_intermediate_json_line): Print function
22211 name of each line.
22212 (output_json_intermediate_file): Add new argument.
22213 * doc/gcov.texi: Document the change.
22214
22215 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22216
22217 PR rtl-optimization/89588
22218 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22219 explicit unrolling factor more robust.
22220
22221 2019-03-11 Richard Biener <rguenther@suse.de>
22222
22223 PR tree-optimization/89649
22224 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22225 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22226 on the prolog and epilog loops.
22227 (vect_loop_versioning): Return copy of loop.
22228 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22229 on the non-vectorized version of the loop.
22230
22231 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22232
22233 PR target/68924
22234 * config/i386/sse.md (*vec_extractv2di_0_sse):
22235 Add (=r,x) alternative and corresponding splitter.
22236
22237 2019-03-10 Martin Jambor <mjambor@suse.cz>
22238
22239 PR tree-optimization/85762
22240 PR tree-optimization/87008
22241 PR tree-optimization/85459
22242 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22243 it points to if there is a type changing MEM_REF. Adjust all callers.
22244 (build_accesses_from_assign): Disable total scalarization if
22245 contains_vce_or_bfcref_p returns true through the new parameter, for
22246 both rhs and lhs.
22247
22248 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22249
22250 PR c/88568
22251 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22252 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22253
22254 PR target/79645
22255 * common.opt (fdiagnostics-show-labels,
22256 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22257 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22258 gas-locview-support, ginline-points, ginternal-reset-location-views):
22259 Terminate description text with a dot.
22260 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22261 * config/mcore/mcore.opt (m210, m340): Likewise.
22262 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22263 mnops=): Start description text with a capital letter.
22264 * config/arc/arc.opt (msize-level=): Likewise.
22265 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22266 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22267 mnewlib): Likewise.
22268 * config/ft32/ft32.opt (msim): Likewise.
22269 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22270 (mnodiv, mnopm): Terminate description text with a dot.
22271 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22272 a colon.
22273 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22274 Likewise.
22275 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22276 text.
22277
22278 PR rtl-optimization/89634
22279 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22280 are modified in BB_END (e->src) instruction.
22281
22282 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22283
22284 PR target/79926
22285 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22286 messages more amenable to translation, and improve wording.
22287
22288 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22289
22290 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22291 ud- and du-chains between phases.
22292
22293 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22294
22295 PR debug/89631
22296 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22297 instead of POLY_INT_CST.
22298
22299 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22300
22301 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22302 requirement.
22303
22304 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22305
22306 PR target/68924
22307 PR target/78782
22308 PR target/87558
22309 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22310 (_mm_storeu_si64): Ditto.
22311
22312 2019-03-08 Martin Liska <mliska@suse.cz>
22313
22314 PR target/86952
22315 * config/i386/i386.c (ix86_option_override_internal): Disable
22316 jump tables when retpolines are used.
22317
22318 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22319
22320 PR go/63560
22321 * ipa-split.c (execute_split_functions): Do not split
22322 'noinline' or 'section' function.
22323
22324 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22325
22326 PR target/79846
22327 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22328 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22329 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22330
22331 PR ipa/80000
22332 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22333 from diagnostics. Formatting fixes.
22334
22335 PR target/85665
22336 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22337 warn_odr diagnostics.
22338
22339 PR other/80058
22340 * lra-constraints.c (process_alt_operands): Avoid one space before
22341 " at the end of line and another after " on another line in a string
22342 literal.
22343 * attribs.c (handle_dll_attribute): Likewise.
22344 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22345
22346 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22347 warning_at or inform messages in G_() if there is no ?:.
22348
22349 PR tree-optimization/89550
22350 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22351 returned true. Formatting fixes.
22352 (expand_builtin_strnlen): Formatting fixes.
22353 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22354 if warning_at returned true.
22355 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22356
22357 2019-03-08 Richard Biener <rguenther@suse.de>
22358
22359 PR middle-end/89578
22360 * cfgloop.h (struct loop): Add owned_clique field.
22361 * cfgloopmanip.c (copy_loop_info): Copy it.
22362 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22363 cliques.
22364 * tree-inline.c (copy_loops): Remap owned_clique.
22365 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22366 * lto-streamer-out.c (output_cfg): Likewise.
22367
22368 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22369
22370 PR target/80190
22371 * config/darwin.c: Include intl.h.
22372 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22373 composing the message out of two separate parts.
22374
22375 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22376
22377 PR target/80003
22378 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22379 doesn't start with a capital letter and doesn't end with a dot.
22380 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22381 with a capital letter.
22382 (ix86_mangle_function_version_assembler_name): Likewise.
22383 (ix86_generate_version_dispatcher_body): Likewise.
22384 (fold_builtin_cpu): Likewise.
22385 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22386 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22387 translators, wrap full type name in %qs.
22388
22389 PR translation/79999
22390 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22391 depend clause with source (or sink) modifier.
22392 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22393
22394 PR target/89602
22395 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22396 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22397 (avx512f_load<mode>_mask): New define_expand.
22398 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22399 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22400 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22401 __builtin_ia32_movess_mask): New builtins.
22402 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22403 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22404 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22405 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22406
22407 2019-03-07 Martin Jambor <mjambor@suse.cz>
22408
22409 PR lto/87525
22410 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22411 for extern inline functions.
22412
22413 2019-03-07 Martin Jambor <mjambor@suse.cz>
22414
22415 PR ipa/88235
22416 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22417 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22418 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22419 have multiple callees. At the end check if declarations match as
22420 opposed to cgraph_nodes.
22421
22422 2019-03-07 Martin Liska <mliska@suse.cz>
22423
22424 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22425 which is equivalent to searching for this in clones chain.
22426 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22427 names with a neighbour and special case first node in a chain.
22428
22429 2019-01-25 Jason Merrill <jason@redhat.com>
22430
22431 PR c++/80916 - spurious "static but not defined" warning.
22432 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22433 for an internal symbol with DECL_EXTERNAL.
22434
22435 2019-04-07 Richard Biener <rguenther@suse.de>
22436
22437 PR middle-end/89618
22438 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22439 * tree-inline.c (copy_loops): Simplify.
22440
22441 2019-03-07 Martin Liska <mliska@suse.cz>
22442
22443 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22444
22445 2019-03-07 Richard Biener <rguenther@suse.de>
22446
22447 PR tree-optimization/89595
22448 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22449 stmt iterator as reference, take boolean output parameter to
22450 indicate whether the stmt was removed and thus the iterator
22451 already advanced.
22452 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22453 stmts created by folding.
22454
22455 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22456
22457 PR c++/89585
22458 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22459 at toplevel.
22460
22461 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22462
22463 PR rtl-optimization/88845
22464 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22465 LRA.
22466 * lra.c (remove_scratches_1): New function.
22467 (remove_scratches): Use it.
22468 (lra_emit_move): Likewise.
22469
22470 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22471
22472 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22473 unaligned_access variable.
22474 * config/arc/arc.c (arc_override_options): Set unaligned access
22475 default on for HS CPUs.
22476 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22477
22478 2019-03-06 Martin Liska <mliska@suse.cz>
22479
22480 PR gcov-profile/89577
22481 * doc/gcov.texi: Prefer to use --coverage.
22482 * doc/sourcebuild.texi: Likewise.
22483
22484 2019-03-02 Jason Merrill <jason@redhat.com>
22485
22486 PR c++/86485 - -Wmaybe-unused with empty class ?:
22487 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22488
22489 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22490
22491 PR target/89587
22492 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22493 if_multiarch.
22494
22495 PR middle-end/89590
22496 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22497 exactly one argument.
22498
22499 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22500 Richard Sandiford <richard.sandiford@arm.com>
22501
22502 PR tree-optimization/89570
22503 * match.pd (vec_cond into cond_op simplification): Don't use
22504 get_conditional_internal_fn, use as_internal_fn (cond_op).
22505
22506 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22507
22508 PR target/89222
22509 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22510 to decide when to split off a non-zero offset from a symbol.
22511 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22512 in function symbols.
22513
22514 2019-03-05 Richard Biener <rguenther@suse.de>
22515
22516 PR tree-optimization/89594
22517 * tree-if-conv.c (pass_if_conversion::execute): Handle
22518 case where .LOOP_VECTORIZED_FUNCTION was removed.
22519
22520 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22521
22522 PR bootstrap/89560
22523 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22524 instead alloca it only when needed with the needed size.
22525
22526 PR tree-optimization/89570
22527 * match.pd (vec_cond into cond_op simplification): Guard with
22528 vectorized_internal_fn_supported_p test and #if GIMPLE.
22529
22530 PR tree-optimization/89566
22531 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22532 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22533 Punt if get_user_idx_format succeeds, but idx_format argument is
22534 not provided or doesn't have pointer type, or if idx_args is above
22535 number of provided arguments.
22536
22537 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22538
22539 PR tree-optimization/89437
22540 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22541
22542 2019-03-04 Richard Biener <rguenther@suse.de>
22543
22544 PR middle-end/89572
22545 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22546 safe_dyn_cast.
22547
22548 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22549
22550 PR tree-optimization/89487
22551 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22552 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22553 (distribute_loop): Don't do runtime alias check if there is non-
22554 addressable data reference.
22555 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22556 is a register variable.
22557
22558 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22559
22560 PR target/89506
22561 * config/arm/arm.md (cmpsi2_addneg): Use
22562 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22563 If operands[2] is 0 or INT_MIN, force use of subs.
22564 (*compare_scc splitter): Use gen_int_mode.
22565 (*negscc): Likewise.
22566 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22567
22568 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22569 Monk Chiang <sh.chiang04@gmail.com>
22570
22571 * common/config/riscv/riscv-common.c: Include sstream.
22572 (riscv_subset_list::to_string): New.
22573 (riscv_arch_str): Likewise.
22574 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22575 * config.in: Regen.
22576 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22577 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22578 (riscv_emit_attribute): New.
22579 (riscv_file_start): Emit attribute if needed.
22580 (riscv_option_override): Init riscv_emit_attribute_p.
22581 * config/riscv/riscv.opt (mriscv-attribute): New option.
22582 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22583 * configure: Regen.
22584 * doc/install.texi: Document --with-riscv-attribute.
22585 * doc/invoke.texi: Document -mriscv-attribute.
22586
22587 * common/config/riscv/riscv-common.c:
22588 Include config/riscv/riscv-protos.h.
22589 (INCLUDE_STRING): Defined.
22590 (RISCV_DONT_CARE_VERSION): Defined.
22591 (riscv_subset_t): Declare.
22592 (riscv_subset_t::riscv_subset_t): New.
22593 (riscv_subset_list): Declare.
22594 (riscv_subset_list::riscv_subset_list): New.
22595 (riscv_subset_list::~riscv_subset_list): Likewise.
22596 (riscv_subset_list::parsing_subset_version): Likewise.
22597 (riscv_subset_list::parse_std_ext): Likewise.
22598 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22599 (riscv_subset_list::add): Likewise.
22600 (riscv_subset_list::lookup): Likewise.
22601 (riscv_subset_list::xlen): Likewise.
22602 (riscv_subset_list::parse): Likewise.
22603 (riscv_supported_std_ext): Likewise.
22604 (current_subset_list): Likewise.
22605 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22606 parse.
22607
22608 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22609
22610 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22611 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22612 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22613
22614 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22615
22616 PR rtl-optimization/85899
22617 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22618 fallthru edges leading to the exit block.
22619
22620 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22621
22622 PR target/89517
22623 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22624 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22625
22626 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22627
22628 PR tree-optimization/89535
22629 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22630 for each operand. Calculate the fallback choice for mask operands
22631 and pass it to vect_get_vec_def_for_operand.
22632
22633 2019-03-01 Richard Biener <rguenther@suse.de>
22634
22635 PR middle-end/89541
22636 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22637 get virtual operands.
22638 (get_expr_operands): Handle CONST_DECL like other decls.
22639
22640 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22641
22642 PR middle-end/89503
22643 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22644 on DECL_P and EXPR_P.
22645
22646 2019-03-01 Richard Biener <rguenther@suse.de>
22647
22648 PR middle-end/89497
22649 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22650 argument, defaulted to zero.
22651 * passes.c (execute_function_todo): Pass down SSA update flags
22652 to cleanup_tree_cfg.
22653 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22654 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22655 form if requested.
22656 (cleanup_tree_cfg): Get and pass down SSA update flags.
22657
22658 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22659
22660 PR bootstrap/89539
22661 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22662 early_lto_debug argument.
22663
22664 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22665
22666 PR tree-optimization/89536
22667 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22668 only whether bit #0 of the value is 0 instead of the entire value.
22669
22670 2019-02-28 Marek Polacek <polacek@redhat.com>
22671
22672 PR c++/87068 - missing diagnostic with fallthrough statement.
22673 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22674 at the end of a seq, save its location to walk_stmt_info.
22675 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22676 a switch.
22677
22678 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22679
22680 PR lto/88585
22681 * tree.c (find_atomic_core_type): Move ahead in file.
22682 (check_base_type): Correctly compare alignments of atomic types.
22683
22684 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22685
22686 PR target/89455
22687 * config/i386/i386.c (get_builtin_code_for_version): Identify
22688 Westmere from PCLMUL, instead of AES.
22689
22690 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22691
22692 PR target/89434
22693 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22694 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22695 -UINTVAL (...).
22696
22697 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22698
22699 PR target/88530
22700 * config/aarch64/aarch64-option-extensions.def: Document it.
22701 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22702 if empty hwcaps.
22703
22704 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22705
22706 PR c/89520
22707 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22708 builtins if they don't have a single scalar floating point argument.
22709 Formatting fixes.
22710
22711 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22712
22713 PR rtl-optimization/89490
22714 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22715 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22716 block section is not mergeable.
22717
22718 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22719
22720 PR target/70341
22721 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22722 old define_insn to ...
22723 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22724 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22725 Rename old define_insn to ...
22726 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22727 (thumb2_casesi_internal_pic): New define_expand. Rename old
22728 define_insn to ...
22729 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22730 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22731 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22732
22733 2019-02-27 Richard Biener <rguenther@suse.de>
22734
22735 PR debug/88878
22736 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22737
22738 2019-02-27 Richard Biener <rguenther@suse.de>
22739
22740 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22741 building.
22742
22743 2019-02-27 Richard Biener <rguenther@suse.de>
22744
22745 PR debug/88878
22746 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22747 parameter, prefix section name with .gnu.debuglto_ if true.
22748 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22749 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22750
22751 2019-02-27 Richard Biener <rguenther@suse.de>
22752
22753 PR debug/89514
22754 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22755 rather than on use_debug_types, doing what output_die does.
22756 (value_format): Likewise.
22757
22758 2019-02-27 Martin Jambor <mjambor@suse.cz>
22759 Martin Sebor <msebor@redhat.com>
22760
22761 * doc/invoke.texi (Warning Options): Reword description of
22762 -Wno-absolute-value.
22763
22764 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22765
22766 PR tree-optimization/89280
22767 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22768 builtin_setjmp_setup_bb): New functions.
22769 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22770 When visiting __builtin_setjmp_setup block, queue in special
22771 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22772 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22773 from visited after the loop if they don't have any visited successor
22774 blocks.
22775
22776 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22777
22778 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22779 New function.
22780 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22781
22782 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22783
22784 PR c++/89507
22785 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22786 with types other than sizetype/ssizetype.
22787
22788 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22789
22790 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22791 (enum sparc_processor_type): ...this.
22792 (enum sparc_code_model_type): New enumeration type.
22793 (enum sparc_memory_model_type): Tweak comments.
22794 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22795 (mtune): Likewise.
22796 (mcmodel): Use sparc_code_model enumeration and variable.
22797 (sparc_code_model): New enumeration.
22798 (mdebug): Add Undocumented marker.
22799 * config/sparc/sparc.h (enum cmodel): Delete.
22800 (sparc_cmodel): Likewise.
22801 (TARGET_CM_MEDLOW): Adjust to above renaming.
22802 (TARGET_CM_MEDMID): Likewise.
22803 (TARGET_CM_MEDANY): Likewise.
22804 (TARGET_CM_EMBMEDANY): Likewise.
22805 * config/sparc/sparc.c (sparc_cmodel): Delete.
22806 (sparc_option_override): Remove string/value mapping support for the
22807 code model. Move code and memory model support to after the handling
22808 of target flags. Do private machine setup last.
22809 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22810 (sparc_legitimize_reload_address): Likewise.
22811 (sparc_output_mi_thunk): Likewise.
22812 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22813
22814 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22815
22816 PR tree-optimization/89500
22817 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22818 (handle_builtin_strlen): Remove noncst_bound variable. Always
22819 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22820 cst if the first cst bytes starting at x are known to be non-zero,
22821 even if the string is not zero terminated. Don't try to modify
22822 *si for strnlen. Update strlen_to_stridx only for strlen or if
22823 we can prove strnlen returns the same value as strlen would.
22824
22825 2019-02-26 Martin Liska <mliska@suse.cz>
22826
22827 * alloc-pool.h (struct pool_usage): Remove extra
22828 print_dash_line.
22829 * bitmap.h (struct bitmap_usage): Likewise.
22830 * ggc-common.c (struct ggc_usage): Likewise.
22831 * mem-stats.h (struct mem_usage): Likewise.
22832 (mem_alloc_description::dump): Print dash lines
22833 here and repeat header at the end of a table report.
22834 It's then more readable.
22835 * tree-phinodes.c (phinodes_print_statistics): Make
22836 horizontal alignment.
22837 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22838 * vec.c (struct vec_usage): Remove extra print_dash_line.
22839 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22840
22841 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22842
22843 * doc/extend.texi (__builtin_object_size):
22844 Use @pxref instead of @xref inside parenthesis.
22845 (__builtin_has_attribute): Add missing comma after @xref.
22846 (__builtin_object_size): Ditto.
22847 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22848
22849 2019-02-26 Jeff Law <law@redhat.com>
22850
22851 PR rtl-optimization/87761
22852 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22853 detect obviously dead insns and delete them.
22854
22855 2019-02-26 Richard Biener <rguenther@suse.de>
22856
22857 PR tree-optimization/89505
22858 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22859 to handle restrict pointed-to vars with multiple subvars
22860 correctly.
22861
22862 2019-02-26 Richard Biener <rguenther@suse.de>
22863
22864 PR tree-optimization/89489
22865 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22866
22867 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22868
22869 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22870 and move around comment.
22871 <BIT_AND_EXPR>: Likewise.
22872 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22873
22874 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22875
22876 PR target/89474
22877 * config/i386/i386.c (remove_partial_avx_dependency): Call
22878 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22879 after changing possibly many instructions to use that pseudo. Fix up
22880 insertion of v4sf_const0 setter at the start of bb.
22881
22882 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22883
22884 PR c/80409
22885 * doc/extend.texi (Variadic Pointer Args): New section.
22886
22887 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22888 Martin Sebor <msebor@gmail.com>
22889
22890 * common.opt (Wattribute-alias): Likewise.
22891 * doc/invoke.texi (Option Summary): List general form of
22892 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22893 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22894 Add cross-references.
22895 (-Wattribute-alias): Rewrite and correct default. Mention
22896 considered attributes (same as for -Wmissing-attributes).
22897
22898 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22899
22900 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22901 (_mm_cvtpd_ps): Likewise.
22902 (_mm_cvttpd_epi32): Likewise.
22903
22904 PR target/89338
22905 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22906 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22907
22908 PR target/89339
22909 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22910
22911 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22912
22913 PR target/88530
22914 * common/config/aarch64/aarch64-common.c
22915 (struct aarch64_option_extension): Add is_synthetic.
22916 (all_extensions): Use it.
22917 (TARGET_OPTION_INIT_STRUCT): Define hook.
22918 (struct gcc_targetm_common): Moved to end.
22919 (all_extensions_by_on): New.
22920 (opt_ext_cmp, typedef opt_ext): New.
22921 (aarch64_option_init_struct): New.
22922 (aarch64_contains_opt): New.
22923 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22924 * config/aarch64/aarch64-option-extensions.def
22925 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22926 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22927 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22928 Set is_synthetic to false.
22929 (crypto): Set is_synthetic to true.
22930 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22931 SYNTHETIC.
22932
22933 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22934
22935 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22936 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22937 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22938 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22939 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22940 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22941 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22942 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22943 Rename ...
22944 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22945 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22946 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22947 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22948 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22949 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22950 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22951 vfmlsl_laneq_high_f16): ... To this.
22952 * config/arm/neon.md: Update comments.
22953
22954 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22955
22956 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22957 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22958 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22959 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22960 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22961 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22962 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22963 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22964 Rename ...
22965 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22966 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22967 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22968 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22969 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22970 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22971 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22972 vfmlslq_laneq_high_f16): ... To this.
22973
22974 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22975
22976 PR rtl-optimization/86096
22977 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22978 comparing mw_order values.
22979
22980 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22981
22982 PR target/89434
22983 * config/arm/arm.md (*subsi3_carryin_const): Use
22984 arm_neg_immediate_operand predicate instead of
22985 arm_not_immediate_operand, "L" constraint instead of "K" and
22986 print it using %n2 instead of %B2.
22987 (*subsi3_carryin_const0): New define_insn.
22988 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22989 instead of arm_not_operand and "I" constraint instead of "K" and
22990 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22991 another match_operand and in the condition check that it is negation
22992 of operands[2].
22993 (*subsi3_carryin_compare_const0): New define_ins.
22994 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22995 *subsi3_carryin_const.
22996 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22997 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22998
22999 PR target/89438
23000 * config/arm.vfp.md (*negdf2_vfp): Use
23001 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23002 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23003
23004 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23005
23006 PR rtl-optimization/89445
23007 * simplify-rtx.c (simplify_ternary_operation): Don't use
23008 simplify_merge_mask on operands that may trap.
23009 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23010 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23011 second operand is CONST_VECTOR, check if any element could be zero.
23012 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23013 their operands can trap.
23014
23015 2019-02-23 Martin Sebor <msebor@redhat.com>
23016
23017 * gimple-ssa-sprintf.c (target_strtol): Rename...
23018 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23019 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23020 check for range error.
23021
23022 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23023
23024 PR driver/69471
23025 * opts-common.c (prune_options): Also prune joined switches
23026 with Negative and RejectNegative.
23027 * config/i386/i386.opt (march=): Add Negative(march=).
23028 (mtune=): Add Negative(mtune=).
23029 * doc/options.texi: Document Negative used together with Joined
23030 and RejectNegative.
23031
23032 2019-02-22 Martin Sebor <msebor@redhat.com>
23033
23034 * doc/extend.texi (Other Builtins): Add
23035 __builtin_is_constant_evaluated.
23036
23037 2019-02-22 Richard Biener <rguenther@suse.de>
23038
23039 PR tree-optimization/87609
23040 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23041
23042 2019-02-22 Jeff Law <law@redhat.com>
23043
23044 PR rtl-optimization/87761
23045 * config/mips/mips.md: Add new combiner pattern to recognize
23046 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23047
23048 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23049
23050 PR target/89324
23051 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23052 destination register in peepholes generating patterns for ADDS/SUBS.
23053 (add<mode>3_compare0,
23054 *addsi3_compare0_uxtw, add<mode>3_compareC,
23055 add<mode>3_compareV_imm, add<mode>3_compareV,
23056 *adds_<optab><ALLX:mode>_<GPI:mode>,
23057 *subs_<optab><ALLX:mode>_<GPI:mode>,
23058 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23059 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23060 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23061 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23062 sub<mode>3_compare1): Allow stack pointer for source register.
23063 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23064
23065 2019-02-22 Martin Sebor <msebor@redhat.com>
23066
23067 PR tree-optimization/88993
23068 PR tree-optimization/88853
23069 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23070 New helper.
23071 (sprintf_dom_walker::call_info::is_string_func): New helper.
23072 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23073 for formatted string functions.
23074 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23075
23076 2019-02-22 Martin Sebor <msebor@redhat.com>
23077
23078 PR c/89425
23079 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23080 unreachable subexpressions.
23081
23082 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23083 Hongtao Liu <hongtao.liu@intel.com>
23084 Sunil K Pandey <sunil.k.pandey@intel.com>
23085
23086 PR target/87007
23087 * config/i386/i386-passes.def: Add
23088 pass_remove_partial_avx_dependency.
23089 * config/i386/i386-protos.h
23090 (make_pass_remove_partial_avx_dependency): New.
23091 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23092 New function.
23093 (pass_data_remove_partial_avx_dependency): New.
23094 (pass_remove_partial_avx_dependency): Likewise.
23095 (make_pass_remove_partial_avx_dependency): Likewise.
23096 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23097 (*extendsfdf2): Add avx_partial_xmm_update.
23098 (truncdfsf2): Likewise.
23099 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23100 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23101
23102 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23103
23104 PR middle-end/85598
23105 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23106 analysis for pass.
23107
23108 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23109
23110 PR target/89444
23111 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23112 (PTA_SKYLAKE): Add PTA_AES.
23113 (PTA_GOLDMONT): Likewise.
23114
23115 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23116
23117 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23118 instruction if enabled.
23119 (aarch64_override_options): Remove reference to return address key.
23120
23121 2019-02-22 Richard Biener <rguenther@suse.de>
23122
23123 PR tree-optimization/89440
23124 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23125 not necessary assert.
23126
23127 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23128
23129 PR fortran/72741
23130 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23131 (oacc_replace_fn_attrib_attr): ... this new function.
23132 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23133 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23134
23135 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23136
23137 * config/arm/arm-cpus.in (ares): Rename to...
23138 (neoverse-n1): ... This. Add ares as alias.
23139 * config/arm/arm-tables.opt: Regenerate.
23140 * config/arm/arm-tune.md: Likewise.
23141 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23142
23143 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23144
23145 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23146 * config/aarch64/aarch64-tune.md: Regenerate.
23147 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23148
23149 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23150
23151 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23152 (neoversen1_tunings): ... This.
23153 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23154 (neoverse-n1): New CPU.
23155 * config/aarch64/aarch64-tune.md: Regenerate.
23156 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23157
23158 2019-02-22 Richard Biener <rguenther@suse.de>
23159
23160 PR middle-end/87609
23161 * cfghooks.h (dependence_hash): New typedef.
23162 (struct copy_bb_data): New type.
23163 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23164 (duplicate_block): Likewise.
23165 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23166 (copy_bbs): Create and pass down copy_bb_data.
23167 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23168 (rtl_duplicate_bb): Likewise.
23169 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23170 remap dependence info.
23171
23172 2019-02-22 Richard Biener <rguenther@suse.de>
23173
23174 PR tree-optimization/87609
23175 * tree-core.h (tree_base): Document special clique values.
23176 * tree-inline.c (remap_dependence_clique): Do not use the
23177 special clique value of one.
23178 (maybe_set_dependence_info): Use clique one.
23179 (clear_dependence_clique): New callback.
23180 (compute_dependence_clique): Clear clique one from all refs
23181 before assigning it (again).
23182
23183 2019-02-21 Martin Sebor <msebor@redhat.com>
23184
23185 * doc/extend.texi (__clear_cache): Correct signature.
23186
23187 2019-02-21 Ian Lance Taylor <iant@golang.org>
23188
23189 PR go/89170
23190 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23191 than output_constant_def.
23192 (add_constant_to_table): New static function.
23193 (output_constant_def): Call add_constant_to_table.
23194 (tree_output_constant_def): Likewise.
23195
23196 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23197
23198 PR c++/89285
23199 * builtins.c (fold_builtin_arith_overflow): If first two args are
23200 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23201 to ifn.
23202
23203 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23204
23205 PR target/87412
23206 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23207 error for -mindirect-branch/-mfunction-return with incompatible
23208 -fcf-protection.
23209
23210 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23211
23212 PR bootstrap/88714
23213 * constraints.md (q): Remove.
23214 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23215 instead of q.
23216
23217 2019-02-21 Martin Jambor <mjambor@suse.cz>
23218
23219 PR hsa/89302
23220 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23221 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23222 (omp_adjust_for_condition): ...here. Added necessary parameters.
23223 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23224 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23225 proper values to new parameters of omp_adjust_for_condition.
23226
23227 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23228
23229 PR middle-end/89412
23230 * expr.c (expand_assignment): If result is a MEM, use change_address
23231 instead of simplify_gen_subreg.
23232
23233 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23234 David Malcolm <dmalcolm@redhat.com>
23235
23236 PR middle-end/89091
23237 * fold-const.c (decode_field_reference): Return NULL_TREE if
23238 lang_hooks.types.type_for_size returns NULL. Check it before
23239 overwriting *exp_. Use return NULL_TREE instead of return 0.
23240
23241 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23242
23243 PR middle-end/88074
23244 PR middle-end/89415
23245 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23246 buggy mpc_norm.
23247
23248 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23249
23250 PR target/89397
23251 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23252 TARGET_SSE in addition to TARGET_SSE_MATH.
23253
23254 (ix86_excess_precision): Ditto.
23255 (ix86_float_exceptions_rounding_supported_p): Ditto.
23256 (use_rsqrt_p): Ditto.
23257 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23258
23259 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23260
23261 PR c/89410
23262 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23263 linenum_arith_t when determining if two adjacent line spans are
23264 close enough to merge.
23265 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23266 lines within each line_span.
23267
23268 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23269
23270 PR target/86487
23271 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23272 paradoxical SUBREGS.
23273
23274 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23275
23276 PR target/88100
23277 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23278 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23279 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23280 range checking it.
23281
23282 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23283
23284 * config/gcn/gcn.c (print_operand): Fix typo.
23285
23286 2019-02-19 Richard Biener <rguenther@suse.de>
23287
23288 PR middle-end/88074
23289 * toplev.c (do_compile): Initialize mpfr's exponent range
23290 based on available float modes.
23291
23292 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23293
23294 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23295 as long as the epilogue isn't completed.
23296
23297 2019-02-18 Martin Sebor <msebor@redhat.com>
23298
23299 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23300 __has_cpp_attribute, and __has_include.
23301
23302 2019-02-18 Martin Sebor <msebor@redhat.com>
23303
23304 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23305
23306 2019-02-18 Martin Sebor <msebor@redhat.com>
23307
23308 PR middle-end/89294
23309 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23310 expression.
23311 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23312
23313 2019-02-18 Richard Biener <rguenther@suse.de>
23314
23315 PR tree-optimization/89296
23316 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23317 of no-warning flag to cases that might emit the bogus warning.
23318
23319 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23320
23321 PR bootstrap/88714
23322 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23323 "q" constraint.
23324 * config/arm/vfp.md (*movdi_vfp): Likewise.
23325 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23326 "q" constraint for operands[0].
23327
23328 PR target/89369
23329 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23330 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23331 pattern in a temporary buffer.
23332 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23333 than 64-operands[2].
23334
23335 PR target/89361
23336 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23337 s390_indirect_branch_settings): Define unconditionally.
23338 (s390_set_current_function): Likewise, but guard the whole body except
23339 the s390_indirect_branch_settings call with
23340 #if S390_USE_TARGET_ATTRIBUTE.
23341 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23342
23343 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23344 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23345 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23346 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23347 HOST_WIDE_INT_1U instead of 1ULL.
23348 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23349 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23350 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23351 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23352 instead of 1UL.
23353 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23354 instead of 1ul.
23355
23356 2019-02-18 Martin Jambor <mjambor@suse.cz>
23357
23358 PR tree-optimization/89209
23359 * tree-sra.c (create_access_replacement): New optional parameter
23360 reg_tree. Use it as a type if non-NULL and access type is not of
23361 a register type.
23362 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23363 to create_access_replacement.
23364 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23365 Check lacc is non-NULL before attempting to re-create it on the RHS.
23366
23367 2019-02-18 Martin Liska <mliska@suse.cz>
23368
23369 PR ipa/89306
23370 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23371 by default.
23372 (symbol_table::free_edge): Recycle m_summary_id.
23373 * cgraph.h (get_summary_id): New.
23374 (symbol_table::release_symbol): Set m_summary_id to -1
23375 by default.
23376 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23377 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23378 function_summary to fast_function_summary.
23379 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23380 * ipa-pure-const.c (class funct_state_summary_t):
23381 Switch from function_summary to fast_function_summary.
23382 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23383 (class ipa_ref_opt_summary_t): Switch from function_summary
23384 to fast_function_summary.
23385 * symbol-summary.h (class function_summary_base): New class
23386 that is created from base of former function_summary.
23387 (function_summary_base::unregister_hooks): New.
23388 (class function_summary): Inherit from function_summary_base.
23389 (class call_summary_base): New class
23390 that is created from base of former call_summary.
23391 (class call_summary): Inherit from call_summary_base.
23392 (struct is_same): New.
23393 (class fast_function_summary): New summary class.
23394 (class fast_call_summary): New summary class.
23395 * vec.h (vec_safe_grow_cleared): New function.
23396
23397 2019-02-18 Martin Liska <mliska@suse.cz>
23398
23399 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23400 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23401 * doc/tm.texi: Document new target hook.
23402 * doc/tm.texi.in: Likewise.
23403 * target.def: Add new target macro.
23404 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23405 suffixes.
23406
23407 2019-02-17 Alan Modra <amodra@gmail.com>
23408
23409 PR target/89271
23410 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23411 output reg on add insn.
23412 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23413
23414 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23415
23416 PR target/89372
23417 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23418 (PMULHRSW): Likewise.
23419 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23420 TARGET_AVX2.
23421 (ssse3_pmulhrswv4hi3): New expander.
23422
23423 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23424
23425 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23426 MMX. Add isa attribute.
23427
23428 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23429
23430 PR rtl-optimization/66152
23431 * builtins.h (c_readstr): Declare.
23432 * builtins.c (c_readstr): Remove forward declaration. Add
23433 null_terminated_p argument, if false, read all bytes from the
23434 string instead of stopping after '\0'.
23435 * expr.c (string_cst_read_str): New function.
23436 (store_expr): Use string_cst_read_str instead of
23437 builtin_strncpy_read_str. Try to store by pieces the whole
23438 exp_len first, and only if that fails, split it up into
23439 store by pieces followed by clear_storage. Formatting fix.
23440
23441 * config/i386/i386.md (*movqi_internal): Remove static from
23442 buf variable. Use output_asm_insn (buf, operands); return "";
23443 instead of return buf;.
23444 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23445 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23446 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23447
23448 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23449
23450 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23451 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23452 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23453 (CC1_SPEC): Likewise.
23454 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23455
23456 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23457
23458 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23459 the base address on 64-bit strict-alignment platforms.
23460
23461 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23462
23463 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23464
23465 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23466
23467 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23468
23469 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23470
23471 PR rtl-optimization/88308
23472 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23473 on copied instruction.
23474
23475 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23476
23477 * final.c (insn_current_reference_address): Replace test on JUMP_P
23478 with test on jump_to_label_p.
23479 * config/visium/visium-passes.def: New file.
23480 * config/visium/t-visium (PASSES_EXTRA): Define.
23481 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23482 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23483 (TRAMPOLINE_ALIGNMENT): Define.
23484 * config/visium/visium.c (visium_option_override): Do not register
23485 the machine-specific reorg pass here.
23486 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23487 for the GR6.
23488 (output_branch): Adjust threshold for long branch instruction.
23489 * config/visium/visium.md (cpu): Move around.
23490 (length): Adjust for the GR6.
23491
23492 2019-02-15 Richard Biener <rguenther@suse.de>
23493 Jakub Jelinek <jakub@redhat.com>
23494
23495 PR tree-optimization/89278
23496 * tree-loop-distribution.c: Include tree-eh.h.
23497 (generate_memset_builtin, generate_memcpy_builtin): Call
23498 rewrite_to_non_trapping_overflow on builtin->size before passing it
23499 to force_gimple_operand_gsi.
23500
23501 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23502
23503 PR other/89342
23504 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23505 optimize_debug.
23506 * opth-gen.awk: Likewise.
23507
23508 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23509
23510 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23511 Enable MMX, SSE and SSE2 by default.
23512 * config/i386/i386.c (ix86_option_override_internal): Do not
23513 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23514
23515 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23516
23517 PR rtl-optimization/89354
23518 * combine.c (make_extraction): Punt if extraction_mode is narrower
23519 than len bits.
23520
23521 2019-02-14 Maya Rashish <coypu@sdf.org>
23522
23523 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23524 * config/netbsd-d.c: New file.
23525 * config/t-netbsd: Add netbsd-d.o
23526
23527 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23528
23529 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23530 affects_type_identity to true for aarch64_vector_pcs.
23531 (aarch64_comp_type_attributes): New function.
23532 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23533
23534 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23535
23536 PR target/88850
23537 * config/arm/iterators.md (ANY64): Add V4HF.
23538
23539 2019-02-14 Martin Liska <mliska@suse.cz>
23540
23541 PR rtl-optimization/89242
23542 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23543 process a transformation.
23544
23545 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23546
23547 PR tree-optimization/89314
23548 * fold-const.c (fold_binary_loc): Cast strlen argument to
23549 const char * before dereferencing it. Formatting fixes.
23550
23551 PR middle-end/89284
23552 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23553
23554 2019-02-13 Ian Lance Taylor <iant@golang.org>
23555
23556 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23557 and set current index for other optimizations.
23558
23559 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23560
23561 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23562 nonimmediate_operand as operand 2 predicate.
23563 (vec_set<VF2_512_256:mode>_0): Ditto.
23564 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23565 (*vec_concatv2si): Remove alternative 2.
23566 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23567 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23568 (vec_concatv2di): Split alternatives 4,5,6 to ...
23569 (*vec_concatv2di_0) ... new pattern.
23570
23571 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23572
23573 PR target/89190
23574 * config/arm/arm.c (ldm_stm_operation_p) Set
23575 addr_reg_in_reglist correctly for first register.
23576 (load_multiple_sequence): Remove dead base check.
23577 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23578
23579 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23580
23581 PR target/88847
23582 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23583 Expose as @aarch64_pred_mov.
23584 * config/aarch64/aarch64.c (aarch64_classify_address):
23585 Use expand_insn which legitimizes operands.
23586
23587 2019-02-13 Martin Liska <mliska@suse.cz>
23588
23589 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23590 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23591 and pointer_offset fields.
23592 (initialize_argument_information): Remove usage of dead
23593 fields.
23594 * cgraph.h (struct cgraph_thunk_info): Remove
23595 add_pointer_bounds_args.
23596 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23597 fields.
23598 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23599 fields.
23600 * config/i386/i386.c (ix86_function_arg_advance): Remove
23601 unrelated comment.
23602 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23603 (def_builtin): Remove usage of dead fields.
23604 (ix86_add_new_builtins): Likewise.
23605 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23606 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23607 (sem_function::init): Likewise.
23608 (sem_variable::merge): Likewise.
23609 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23610 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23611 * lto-cgraph.c (lto_output_node): Likewise.
23612 (lto_output_varpool_node): Likewise.
23613 (input_node): Likewise.
23614 (input_varpool_node): Likewise.
23615 * lto-streamer-out.c (lto_output): Likewise.
23616 * tree-inline.c (expand_call_inline): Remove usage of
23617 assign_stmts.
23618 * tree-inline.h (struct copy_body_data): Likewise.
23619 * varpool.c (varpool_node::dump): Likewise.
23620
23621 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23622
23623 PR middle-end/89303
23624 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23625 into pt->vars_contains_escaped_heap instead of setting
23626 pt->vars_contains_escaped_heap to it.
23627
23628 PR middle-end/89281
23629 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23630 INTVAL (size), compare it to GET_MODE_MASK instead of
23631 1 << GET_MODE_BITSIZE.
23632
23633 PR target/89290
23634 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23635 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23636 -mcmodel=large.
23637
23638 2019-02-13 Martin Liska <mliska@suse.cz>
23639
23640 PR lto/88858
23641 * cfgrtl.c (remove_barriers_from_footer): New function.
23642 (try_redirect_by_replacing_jump): Use it.
23643 (cfg_layout_redirect_edge_and_branch): Likewise.
23644
23645 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23646
23647 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23648 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23649 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23650 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23651 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23652 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23653 New BU_CRYPTO_2.
23654 * config/rs6000/rs6000.c (builtin_function_type)
23655 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23656 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23657 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23658 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23659 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23660
23661 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23662
23663 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23664 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23665
23666 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23667
23668 PR target/89229
23669 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23670 268678 and revision 268657.
23671 (*movti_internal): Likewise.
23672
23673 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23674
23675 PR target/89233
23676 * config/s390/s390.c (s390_decompose_address): Update comment.
23677 (s390_check_qrst_address): Reject invalid address forms after
23678 LRA.
23679
23680 2019-02-12 Martin Liska <mliska@suse.cz>
23681
23682 PR lto/88876
23683 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23684 we need default values of funct_state for a function that
23685 is not optimized.
23686
23687 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23688
23689 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23690 the object to pick the size of stores on strict-alignment platforms.
23691
23692 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23693 (*movdi_insn_sp32): Likewise.
23694 (*movdi_insn_sp64): Likewise.
23695
23696 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23697
23698 PR lto/88677
23699 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23700 types that needs constructiong.
23701 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23702
23703 2019-02-12 Richard Biener <rguenther@suse.de>
23704
23705 PR tree-optimization/89253
23706 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23707 duplicate the loop.
23708
23709 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23710
23711 PR lto/88147
23712 * input.c (selftest::test_line_offset_overflow): New selftest.
23713 (selftest::input_c_tests): Call it.
23714
23715 2019-02-11 Martin Sebor <msebor@redhat.com>
23716
23717 PR tree-optimization/88771
23718 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23719 when -Wstringop-overflow is set.
23720 (builtin_memref::builtin_memref): Adjust excessive upper bound
23721 only when lower bound is not excessive.
23722 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23723 -Wstringop-ovefflow.
23724 (maybe_diag_offset_bounds): Rename...
23725 (maybe_diag_access_bounds): ...to this.
23726 (check_bounds_or_overlap): Adjust for name change above.
23727
23728 2019-02-11 Martin Sebor <msebor@redhat.com>
23729
23730 PR c++/87996
23731 * builtins.c (max_object_size): Move from here...
23732 * builtins.h (max_object_size): ...and here...
23733 * tree.c (max_object_size): ...to here...
23734 * tree.h (max_object_size): ...and here.
23735
23736 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23737
23738 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23739 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23740 for correct semantics.
23741
23742 2019-02-11 Alan Modra <amodra@gmail.com>
23743
23744 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23745 -mlongcall and -mpltseq.
23746 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23747 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23748 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23749 * config/rs6000/sysv4.opt (mpltseq): New option.
23750 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23751 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23752 support is lacking. Don't allow -mpltseq with -mbss-plt.
23753 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23754 -mpltseq given for ELFv1.
23755 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23756 Only use UNSPEC_PLTSEQ for inline PLT calls.
23757 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23758 use UNSPEC_PLTSEQ for inline PLT calls.
23759 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23760 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23761 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23762 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23763 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23764 (pltseq_mtctr_<mode>): Likewise.
23765
23766 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23767
23768 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23769 Solaris ld.
23770 * configure: Regenerate.
23771
23772 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23773
23774 PR bootstrap/88714
23775 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23776 instead of r.
23777
23778 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23779
23780 * function.c (assign_parm_setup_block): Use the stored
23781 size, not the passed size, when allocating stack-space,
23782 also for a parameter with alignment larger than
23783 MAX_SUPPORTED_STACK_ALIGNMENT.
23784
23785 2019-02-11 Martin Liska <mliska@suse.cz>
23786
23787 PR ipa/89009
23788 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23789 * ipa-inline.c (inline_small_functions): Likewise.
23790 * ipa-pure-const.c (propagate_pure_const): Likewise.
23791 (propagate_nothrow): Likewise.
23792 * ipa-reference.c (propagate): Likewise.
23793 * ipa-utils.c (struct searchc_env): Remove unused field.
23794 (searchc): Always search across AVAIL_INTERPOSABLE.
23795 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23796 the only called IPA pure const can properly not propagate
23797 across interposable boundary.
23798 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23799
23800 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23801
23802 * config/nds32/nds32.md (call_internal, call_value_internal,
23803 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23804
23805 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23806
23807 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23808 typo.
23809
23810 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23811
23812 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23813 in comments
23814
23815 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23816
23817 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23818
23819 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23820
23821 PR tree-optimization/89268
23822 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23823 if preds is non-NULL.
23824
23825 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23826
23827 PR lto/89272
23828 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23829 polymorphic types.
23830
23831 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23832
23833 * config/nds32/nds32.md (trap): New pattern.
23834
23835 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23836
23837 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23838 dwarf span.
23839
23840 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23841
23842 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23843 to split POST_INC.
23844
23845 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23846
23847 * ipa-visibility.c (localize_node): Also do not localize
23848 LDPR_PREVAILING_DEF_IRONLY_EXP.
23849
23850 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23851
23852 PR lto/87957
23853 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23854 instead of type_with_linkage.
23855
23856 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23857
23858 PR ipa/88755
23859 * params.def (uninlined-function-insns, uninlined-function-time,
23860 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23861 bound so we don't get overflows.
23862
23863 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23864
23865 * config/rs6000/rs6000-string.c (expand_compare_loop,
23866 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23867 memcmp/strncmp.
23868
23869 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23870
23871 PR middle-end/89246
23872 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23873 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23874 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23875
23876 2019-02-09 Alan Modra <amodra@gmail.com>
23877
23878 PR target/88343
23879 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23880 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23881 setup.
23882
23883 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23884
23885 PR middle-end/88560
23886 * lra-constraints.c (process_alt_operands): Don't increase reject
23887 for memory when offset memory is required.
23888
23889 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23890
23891 * config/s390/vector.md: Implement vector copysign.
23892
23893 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23894
23895 * expr.c (expand_constructor): Correct indentations.
23896
23897 2019-02-08 Richard Biener <rguenther@suse.de>
23898
23899 PR tree-optimization/89247
23900 * tree-if-conv.c: Include tree-cfgcleanup.h.
23901 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23902 (tree_if_conversion): Pass through predicate vector.
23903 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23904 inline, see if any if-converted loops we refrece in
23905 LOOP_VECTORIZED calls vanished and fixup.
23906 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23907
23908 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23909
23910 * config/s390/constraints.md (jdd): New constraint.
23911
23912 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23913
23914 PR target/89229
23915 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23916 upper 16 vector registers without TARGET_AVX512VL.
23917 (*movti_internal): Likewise.
23918
23919 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23920
23921 PR rtl-optimization/89234
23922 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23923 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23924 (copy_reg_eh_region_note_backward): Likewise.
23925
23926 2019-02-08 Richard Biener <rguenther@suse.de>
23927
23928 PR middle-end/89223
23929 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23930 doesn't fit in HWI.
23931 (analyze_subscript_affine_affine): Handle failure from
23932 initialize_matrix_A.
23933
23934 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23935
23936 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23937 cfun everywhere.
23938
23939 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23940
23941 PR tree-optimization/86637
23942 PR tree-optimization/89235
23943 * tree-vect-loop.c (optimize_mask_stores): Add an
23944 auto_purge_vect_location sentinel to ensure that vect_location is
23945 purged on exit.
23946 * tree-vectorizer.c
23947 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23948 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23949 to ensure that vect_location is purged on exit.
23950 (pass_slp_vectorize::execute): Likewise, replacing the manual
23951 reset.
23952 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23953
23954 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23955
23956 * config/aarch64/iterators.md (max_opp): New code_attr.
23957 (USMAX): New code iterator.
23958 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23959 (aarch64_smax): Likewise.
23960 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23961 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23962 MINUS (MAX MIN).
23963
23964 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23965
23966 PR target/89229
23967 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23968 for TARGET_AVX512VL.
23969 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23970
23971 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23972
23973 * config/s390/s390-builtin-types.def: Add new types.
23974 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23975 (s390_vec_xlw4): Make the memory operand into a const pointer.
23976 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23977 float.
23978 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23979 a new vector type with the alignment of the scalar memory operand.
23980
23981 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23982 Jakub Jelinek <jakub@redhat.com>
23983
23984 PR bootstrap/88714
23985 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23986 arm_count_ldrdstrd_insns): New declarations.
23987 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23988 MINUS.
23989 (valid_operands_ldrd_strd): New function.
23990 (arm_count_ldrdstrd_insns): New function.
23991 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23992 sets instead of single DImode set and define new insns to match this.
23993
23994 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23995
23996 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23997 Make it a C initializer.
23998
23999 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24000
24001 PR/target 88850
24002 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24003
24004 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24005
24006 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24007 Use neon_dot<q> for type.
24008 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24009
24010 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24011
24012 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24013 Use neon_dot<q> for type.
24014 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24015 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24016
24017 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24018
24019 PR rtl-optimization/89225
24020 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24021 sizes check.
24022
24023 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24024
24025 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24026 after restoring registers saved to allocate the frame on Windows.
24027
24028 2019-02-06 Richard Biener <rguenther@suse.de>
24029
24030 PR tree-optimization/89182
24031 * graphite.h (cached_scalar_evolution_in_region): Declare.
24032 * graphite.c (struct seir_cache_key): New.
24033 (struct sese_scev_hash): Likewise.
24034 (seir_cache): New global.
24035 (cached_scalar_evolution_in_region): New function.
24036 (graphite_transform_loops): Allocate and release seir_cache.
24037 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24038 cached_scalar_evolution_in_region.
24039 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24040 Simplify.
24041 (scop_detection::graphite_can_represent_expr: Use
24042 cached_scalar_evolution_in_region.
24043 (scop_detection::stmt_simple_for_scop_p): Likewise.
24044 (find_params_in_bb): Likewise.
24045 (gather_bbs::before_dom_children): Likewise.
24046 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24047 (add_loop_constraints): Likewise.
24048
24049 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24050
24051 PR middle-end/89210
24052 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24053 operand to new_unary_operation only if both element types are integral
24054 and it isn't a widening conversion. Return NULL_TREE if
24055 new_unary_operation failed.
24056
24057 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24058
24059 PR target/88856
24060 * config/s390/s390.md: Remove load and test FP splitter.
24061
24062 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24063
24064 PR target/89112
24065 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24066 expand_compare_loop, expand_block_compare_gpr,
24067 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24068 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24069 #include "profile-count.h" and "predict.h" for types and functions
24070 needed to work with REG_BR_PROB notes.
24071
24072 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24073
24074 PR target/89112
24075 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24076 for the long branch case.
24077
24078 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24079
24080 PR target/89188
24081 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24082 can throw, non-call exceptions are enabled and we can't delete
24083 dead exceptions or alter cfg. Set must_clean if
24084 delete_insn_and_edges returns true, don't set it blindly for calls.
24085 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24086
24087 PR rtl-optimization/89195
24088 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24089 of the original MEM.
24090
24091 2019-02-05 Martin Liska <mliska@suse.cz>
24092
24093 PR gcov-profile/89000
24094 * gcov.c (function_summary): Remove argument.
24095 (file_summary): New function.
24096 (print_usage): Replace tabs with spaces.
24097 (generate_results): Use new function file_summary.
24098
24099 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24100
24101 PR target/89186
24102 * optabs.c (prepare_cmp_insn): Pass x and y to
24103 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24104
24105 2019-02-05 Richard Biener <rguenther@suse.de>
24106
24107 PR middle-end/89150
24108 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24109 (struct bitmap_element): Drop chain_prev so we properly recurse on
24110 the prev member, supporting tree views.
24111 (struct bitmap_head): GTY skip the obstack member.
24112
24113 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24114
24115 PR c/88698
24116 * doc/extend.texi (Vector Extensions): Add an example of using vector
24117 types together with x86 intrinsics.
24118
24119 2019-02-04 Alan Modra <amodra@gmail.com>
24120
24121 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24122 str[] size to 160, and comment.
24123
24124 2019-02-04 Alan Modra <amodra@gmail.com>
24125
24126 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24127 (rs6000_pltseq_template): Guard output of TLS markers with
24128 TARGET_TLS_MARKERS.
24129 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24130 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24131 to use inline PLT sequences.
24132 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24133 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24134 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24135
24136 2019-02-04 Martin Liska <mliska@suse.cz>
24137
24138 PR ipa/88985
24139 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24140 out when ipa_fn_summaries does not contain entry for callee.
24141
24142 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24143
24144 * config/sparc/sparc.h: Remove superfluous blank lines.
24145 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24146 (got_register_rtx): ...this.
24147 (sparc_got): Adjust to above renaming.
24148 (sparc_tls_got): Likewise.
24149 (sparc_delegitimize_address): Likewise.
24150 (sparc_output_mi_thunk): Likewise.
24151 (sparc_init_pic_reg): Likewise.
24152 (save_local_or_in_reg_p): Fix test on the GOT register.
24153 (USE_HIDDEN_LINKONCE): Move around.
24154 (get_pc_thunk_name): Likewise.
24155 (gen_load_pcrel_sym): Likewise.
24156 (load_got_register): Likewise.
24157
24158 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24159
24160 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24161 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24162
24163 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24164
24165 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24166 into consideration.
24167
24168 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24169
24170 * config.gcc (with_nds32_lib, glibc):
24171 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24172 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24173 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24174
24175 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24176
24177 PR target/89071
24178 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24179 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24180 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24181 (*rcpsf2_sse): Ditto.
24182 (*rsqrtsf2_sse): Ditto.
24183 (sse4_1_round<mode<2): Ditto.
24184
24185 2019-02-03 Richard Biener <rguenther@suse.de>
24186
24187 PR debug/87295
24188 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24189 orig.
24190
24191 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24192
24193 PR middle-end/87887
24194 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24195 Punt with warning on aggregate return or argument types. Ignore
24196 type/mode checking for uniform arguments.
24197
24198 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24199
24200 * combine.c (try_combine): Do not print "Can't combine" messages unless
24201 printing failed combination attempts.
24202
24203 2019-02-01 Martin Jambor <mjambor@suse.cz>
24204
24205 PR hsa/87863
24206 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24207 segment and global segment variables before making them static.
24208
24209 2019-02-01 Martin Jambor <mjambor@suse.cz>
24210
24211 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24212 missed optimization dump with dump_enabled_p.
24213
24214 2019-02-01 Richard Biener <rguenther@suse.de>
24215
24216 PR middle-end/88597
24217 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24218 the instantiate cache.
24219 (instantiate_scev_binary): Elide second operand procesing
24220 if equal to the first.
24221 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24222 (chrec_contains_undetermined): Likewise.
24223 (tree_contains_chrecs): Likewise.
24224
24225 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24226
24227 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24228
24229 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24230
24231 PR tree-optimization/89143
24232 * wide-int-range.h (wide_int_range_absu): Declare.
24233 * wide-int-range.cc (wide_int_range_absu): New function.
24234 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24235
24236 PR tree-optimization/88107
24237 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24238 instead of assertion that eh_region_outermost is non-NULL, if it
24239 is NULL, set *ALL to true and return NULL.
24240 (move_sese_region_to_fn): Adjust caller, if all is set, call
24241 duplicate_eh_regions with NULL region.
24242
24243 2019-02-01 Richard Biener <rguenth@suse.de>
24244
24245 PR rtl-optimization/88593
24246 * mode-switching.c (optimize_mode_switching): Free dominators before
24247 calling cleanup_cfg.
24248
24249 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24250
24251 PR tree-optimization/88932
24252 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24253
24254 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24255
24256 PR middle-end/89137
24257 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24258 bogus clang warning.
24259
24260 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24261
24262 PR target/89071
24263 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24264 alternative to avoid partial SSE register stall for TARGET_AVX.
24265 (truncdfsf2): Ditto.
24266 (sse4_1_round<mode>2): Ditto.
24267
24268 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24269
24270 PR tree-optimization/89008
24271 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24272 process anything of the form X * 0.
24273
24274 2019-01-31 Richard Biener <rguenther@suse.de>
24275
24276 PR tree-optimization/89135
24277 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24278 with abnormal preds.
24279
24280 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24281
24282 PR sanitizer/89124
24283 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24284 always_inline callees into no_sanitize_address callers.
24285
24286 2019-01-31 Richard Biener <rguenther@suse.de>
24287
24288 PR rtl-optimization/89115
24289 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24290
24291 2019-01-30 Martin Sebor <msebor@redhat.com>
24292
24293 PR other/89106
24294 * doc/extend.texi (cast to a union): Correct and expand.
24295
24296 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24297
24298 PR rtl-optimization/87246
24299 * lra-constraints.c (simplify_operand_subreg): Reload memory
24300 in subreg if the address became invalid.
24301
24302 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24303
24304 PR target/87064
24305 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24306 Disable for little-endian.
24307
24308 2019-01-30 Richard Biener <rguenther@suse.de>
24309
24310 PR rtl-optimization/89115
24311 * opts.c (default_options_optimization): Reduce
24312 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24313 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24314 to the default.
24315
24316 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24317
24318 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24319 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24320 type of vector element when vec_extract is implemented by direct
24321 move.
24322
24323 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24324
24325 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24326
24327 2019-01-30 Richard Biener <rguenther@suse.de>
24328
24329 PR tree-optimization/89111
24330 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24331 canonicalization to appropriately sized access types.
24332
24333 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24334
24335 PR c++/89105
24336 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24337 for arguments to functions that are TU-local and shouldn't be
24338 referenced by assembly.
24339
24340 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24341
24342 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24343 after '='.
24344
24345 2019-01-29 Martin Sebor <msebor@redhat.com>
24346
24347 PR c/88956
24348 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24349
24350 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24351
24352 PR c++/66676
24353 PR ipa/89104
24354 * omp-simd-clone.c (simd_clone_clauses_extract)
24355 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24356 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24357
24358 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24359
24360 * config.gcc: Force .init_array for ARC.
24361
24362 2019-01-29 Richard Biener <rguenther@suse.de>
24363
24364 PR debug/87295
24365 * dwarf2out.c (collect_skeleton_dies): New helper.
24366 (copy_decls_for_unworthy_types): Call it.
24367 (build_abbrev_table): Assert we do not try to replace
24368 DW_AT_signature refs with local refs.
24369
24370 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24371
24372 PR middle-end/89002
24373 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24374 for lastprivate/linear IV, push gimplify context around gimplify_assign
24375 and, if it needed any temporaries, pop it into a gimple bind around the
24376 sequence.
24377
24378 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24379
24380 * common.opt (-Wattribute-alias): Remove "no-" from name.
24381 Make -Wattribute-alias command line option and
24382 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24383
24384 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24385
24386 PR target/89073
24387 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24388 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24389 x86 ISA options.
24390 (bmi2): Add missing @opindex.
24391 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24392 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24393 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24394 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24395 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24396 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24397 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24398 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24399 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24400 xsavec, xsaveopt and xsaves options.
24401
24402 2019-01-28 Richard Biener <rguenther@suse.de>
24403
24404 PR debug/89076
24405 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24406 support removal.
24407
24408 2019-01-28 Richard Biener <rguenther@suse.de>
24409
24410 PR tree-optimization/88739
24411 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24412 BIT_FIELD_REFs only are applied to mode-precision operands
24413 when they are integral.
24414 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24415 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24416 BIT_FIELD_REFs of non-mode-precision integral operands.
24417
24418 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24419
24420 PR target/87214
24421 * config/i386/sse.md
24422 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24423 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24424 first constants in pairs are multiples of 2. Formatting fixes.
24425 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24426 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24427 first constants in each quadruple are multiples of 4. Formatting fixes.
24428
24429 2019-01-26 Martin Jambor <mjambor@suse.cz>
24430
24431 PR ipa/88933
24432 * tree-inline.c: Include tree-cfgcleanup.h.
24433 (delete_unreachable_blocks_update_callgraph): Move...
24434 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24435 ...here, make externally visible, make second argument bool, adjust
24436 all callers.
24437 * tree-cfgcleanup.c: Include cgraph.h.
24438 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24439 Declare.
24440 * ipa-prop.c: Include tree-cfgcleanup.h.
24441 (ipcp_transform_function): Call
24442 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24443
24444 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24445
24446 PR rtl-optimization/88846
24447 * ira.c (process_set_for_memref_referenced_p): New.
24448 (memref_referenced_p): Add new param. Use
24449 process_set_for_memref_referenced_p. Add new switch cases.
24450 (memref_used_between_p): Pass new arg to memref_referenced_p.
24451
24452 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24453
24454 PR target/88469
24455 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24456 argument ABI_BREAK. Set to true if the calculated alignment has
24457 changed in gcc-9. Check bit-fields for their base type alignment.
24458 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24459 (aarch64_function_arg_boundary): Likewise.
24460 (aarch64_gimplify_va_arg_expr): Likewise.
24461
24462 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24463
24464 PR middle-end/89037
24465 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24466 instead of accessing TREE_INT_CST_ELT directly.
24467
24468 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24469
24470 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24471 fenv_exceptions description.
24472
24473 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24474
24475 PR rtl-optimization/87763
24476 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24477 Allow SUBREG when matching CC_NZmode compare.
24478
24479 2019-01-25 Richard Biener <rguenther@suse.de>
24480
24481 PR tree-optimization/89049
24482 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24483 Look at the pattern stmt to determine if the stmt is vectorized.
24484
24485 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24486
24487 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24488 (pred_mov<mode>): Handle all-register forms using both a new
24489 alternative and a split.
24490
24491 2019-01-25 Richard Biener <rguenther@suse.de>
24492
24493 PR tree-optimization/86865
24494 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24495 Reject non-do-while loops.
24496
24497 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24498
24499 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24500 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24501 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24502 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24503 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24504 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24505 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24506 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24507 vlogical_operand, gpc_reg_operand, int_reg_operand,
24508 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24509 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24510 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24511 (save_world_operation, restore_world_operation, lmw_operation,
24512 stmw_operation): Use MEM_P and REG_P.
24513 (tie_operand): Use MEM_P.
24514 (vrsave_operation, crsave_operation): Use REG_P.
24515 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24516 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24517 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24518 (call_operand): Use HARD_REGISTER_P.
24519 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24520 Use CONST_INT_P.
24521 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24522 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24523 quad_aligned_load_p, replace_swapped_aligned_store,
24524 recombine_lvx_pattern, replace_swapped_aligned_load,
24525 recombine_stvx_pattern): Use MEM_P.
24526 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24527 Use MEM_P and SYMBOL_REF_P.
24528 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24529 (insn_is_swappable_p): Use REG_P and MEM_P.
24530 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24531 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24532 Use CONST_INT_P.
24533 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24534 Use CONST_DOUBLE_P.
24535 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24536 CONST_WIDE_INT_P.
24537 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24538 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24539 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24540 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24541 reg_or_subregno:
24542 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24543 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24544 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24545 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24546 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24547 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24548 rs6000_split_logical_di): Use CONST_INT_P.
24549 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24550 REG_P and SYMBOL_REF_P.
24551 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24552 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24553 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24554 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24555 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24556 (small_data_operand, print_operand_address): Use CONST_INT_P and
24557 SYMBOL_REF_P.
24558 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24559 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24560 Use HARD_REGISTER_NUM_P.
24561 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24562 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24563 SUBREG_P and SYMBOL_REF_P.
24564 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24565 and HARD_REGISTER_NUM_P.
24566 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24567 reg_or_subregno.
24568 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24569 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24570 MEM_P and REG_P.
24571 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24572 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24573 find_addr_reg): Use REG_P.
24574 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24575 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24576 (offsettable_ok_by_alignment, constant_pool_expr_p,
24577 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24578 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24579 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24580 rs6000_assemble_integer, create_TOC_reference,
24581 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24582 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24583 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24584 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24585 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24586 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24587 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24588 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24589 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24590 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24591 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24592 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24593 and cbranch<mode>4): Use CONST_INT_P.
24594 (multiple define_splits): Use REG_P and SUBREG_P.
24595 (define_expands call, call_value): Use MEM_P.
24596 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24597 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24598 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24599 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24600 and HARD_REGISTER_NUM_P.
24601 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24602
24603 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24604
24605 PR rtl-optimization/88948
24606 * rtl.h (prepare_copy_insn): New prototype.
24607 * gcse.c (prepare_copy_insn): New function, split out from
24608 process_insert_insn.
24609 (process_insert_insn): Use prepare_copy_insn.
24610 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24611 instead of gen_move_insn.
24612
24613 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24614
24615 PR debug/89006
24616 * config/i386/i386.c (ix86_pic_register_p): Return true for
24617 UNSPEC_SET_GOT too.
24618
24619 PR tree-optimization/88964
24620 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24621 punt if HONOR_SNANS (chrec).
24622
24623 PR middle-end/89015
24624 * tree-nested.c (convert_nonlocal_reference_stmt,
24625 convert_local_reference_stmt, convert_tramp_reference_stmt,
24626 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24627 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24628 or GIMPLE_OMP_TASK.
24629
24630 PR tree-optimization/89027
24631 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24632 for "omp simd array" variables.
24633
24634 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24635
24636 PR target/88469
24637 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24638 force the alignment of m_val.
24639
24640 2019-01-24 Richard Biener <rguenther@suse.de>
24641
24642 PR lto/87187
24643 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24644 When in "legacy" debug mode make sure to reset self-origins.
24645
24646 2019-01-24 Martin Liska <mliska@suse.cz>
24647
24648 PR gcov-profile/88994
24649 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24650 result will be always smaller or equal to the original.
24651 * gcov.c (mangle_name): Fix else branch where we should
24652 also copy to PTR and shift the pointer.
24653
24654 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24655
24656 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24657 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24658
24659 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24660
24661 * common/config/i386/i386-common.c
24662 (OPTION_MASK_ISA_ENQCMD_SET,
24663 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24664 (ix86_handle_option): Handle -menqcmd.
24665 * config.gcc (enqcmdintrin.h): New header file.
24666 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24667 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24668 -menqcmd.
24669 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24670 function type.
24671 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24672 __builtin_ia32_enqcmds): New builtins.
24673 * config/i386/i386-c.c (__ENQCMD__): New macro.
24674 * config/i386/i386-option.c (ix86_target_string): Add
24675 -menqcmd.
24676 (ix86_valid_target_attribute_inner_p): Likewise.
24677 * config/i386/i386-expand.c
24678 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24679 IX86_BUILTIN_ENQCMDS.
24680 * config/i386/i386.h (TARGET_ENQCMD): New.
24681 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24682 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24683 (movdir64b_<mode>): Parameterize to enable share expansion code
24684 with ENQCMD in function ix86_expand_builtin.
24685 * config/i386/i386.opt: Add -menqcmd.
24686 * config/i386/immintrin.h: Include enqcmdintrin.h.
24687 * config/i386/enqcmdintrin.h: New intrinsic file.
24688 * doc/invoke.texi: Add -menqcmd.
24689
24690 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24691 Steve Ellcey <sellcey@marvell.com>
24692
24693 PR target/85711
24694 * recog.c (address_operand): Return false on wrong mode for address.
24695 (constrain_operands): Check for mode with 'p' constraint.
24696
24697 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24698
24699 PR target/88998
24700 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24701 Disparage MMX alternative.
24702 (sse2_cvtpd2pi): Ditto.
24703 (sse2_cvttpd2pi): Ditto.
24704
24705 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24706
24707 PR driver/89014
24708 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24709 use-after-free of the result of
24710 aarch64_get_extension_string_for_isa_flags.
24711
24712 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24713
24714 PR c/44715
24715 * doc/extend.texi: Document break and continue behavior in
24716 statement expressions.
24717
24718 2019-01-23 Richard Biener <rguenther@suse.de>
24719
24720 PR tree-optimization/89008
24721 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24722 not leave another stray operand.
24723
24724 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24725
24726 * BASE-VER: Bump to 9.0.1.
24727
24728 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24729
24730 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24731 thunk that returns by reference, use the type of the return object
24732 of the thunk instead of that of the alias to build the dereference.
24733
24734 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24735
24736 * config/arc/atomic.md: Add operand to DMB instruction.
24737
24738 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24739
24740 PR tree-optimization/88964
24741 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24742 build_zero_cst instead of build_int_cst. Return false for loop
24743 invariants which honor signed zeros.
24744
24745 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24746
24747 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24748
24749 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24750
24751 PR target/88965
24752 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24753 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24754 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24755
24756 PR middle-end/88968
24757 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24758 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24759
24760 PR target/87064
24761 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24762 Disable for little endian.
24763
24764 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24765
24766 PR target/88469
24767 * config/arm/arm.c (arm_needs_double_word_align): Check
24768 DECL_BIT_FIELD_TYPE.
24769
24770 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24771 H.J. Lu <hongjiu.lu@intel.com>
24772
24773 PR target/88909
24774 * config/i386/i386-builtin.def: Add mask2 to all builtin
24775 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24776 SPECIAL_ARGS.
24777 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24778 (BDESC_FIRST): Likewise.
24779 (define_builtin): Add an argument for mask2. Updated to handle
24780 both ix86_isa_flags and ix86_isa_flags2.
24781 (define_builtin_const): Likewise.
24782 (define_builtin_pure): Likewise.
24783 (define_builtin2): Deleted.
24784 (define_builtin_const2): Likewise.
24785 (builtin_description): Add a member, mask2.
24786 (bdesc_*): Add mask2 to builtin initializations.
24787 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24788 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24789 support.
24790 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24791
24792 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24793
24794 PR target/88954
24795 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24796 noplt attribute.
24797
24798 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24799
24800 PR target/88469
24801 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24802 alignment is dominated by a bitfield with 64-bit aligned base type.
24803 (arm_function_arg): Emit a warning if the alignment has changed since
24804 earlier GCC releases.
24805 (arm_function_arg_boundary): Likewise.
24806 (arm_setup_incoming_varargs): Likewise.
24807
24808 2019-01-22 Richard Biener <rguenther@suse.de>
24809
24810 PR tree-optimization/88862
24811 * graphite-scop-detection.c
24812 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24813
24814 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24815
24816 * doc/extend.tex (AMD GCN Function Attributes): New section.
24817 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24818 * doc/invoke.texi (AMD GCN Options): New section.
24819 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24820
24821 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24822
24823 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24824 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24825
24826 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24827
24828 PR tree-optimization/88044
24829 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24830 is false in the first iteration, but !every_iteration, return false
24831 instead of true with niter->niter zero.
24832
24833 PR rtl-optimization/88904
24834 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24835 any nonequal registers before processing BB_END (b).
24836
24837 PR target/88905
24838 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24839 GET_MODE (op0).
24840 (expand_binop_directly, expand_doubleword_clz,
24841 expand_doubleword_popcount, expand_ctz, expand_ffs,
24842 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24843
24844 PR rtl-optimization/49429
24845 PR target/49454
24846 PR rtl-optimization/86334
24847 PR target/88906
24848 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24849 addressable from here...
24850 (emit_block_op_via_libcall): ... to here.
24851
24852 2019-01-22 Richard Biener <rguenther@suse.de>
24853
24854 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24855 auto_vec for cost vector to fix memleak.
24856 (vectorize_fold_left_reduction): Properly gather SLP defs.
24857 (vectorizable_comparison): Do not swap operands to properly
24858 gather SLP defs.
24859
24860 2019-01-22 Alan Modra <amodra@gmail.com>
24861
24862 PR target/88614
24863 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24864 stays a reg. Allow a const_int.
24865 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24866 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24867 (IS_NOMARK_TLSGETADDR): Define.
24868 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24869 (rs6000_output_tlsargs): New function.
24870 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24871 __tls_get_addr call takes an arg.
24872 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24873 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24874 delete split..
24875 (call_value_nonlocal_sysv): ..or here, delete split.
24876 (tls_gdld_nomark): Delete.
24877 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24878 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24879 (call_value_nonlocal_sysv): Likewise.
24880 (call_value_nonlocal_sysv_secure): Likewise.
24881 (call_value_nonlocal_aix): Likewise.
24882 (call_value_indirect_aix): Likewise.
24883 (call_value_indirect_elfv2): Likewise.
24884 (call_value_local32, call_value_local64): Disable for no-mark tls.
24885 (call_value_local_aix): Likewise.
24886
24887 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24888
24889 PR target/88938
24890 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24891 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24892
24893 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24894
24895 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24896 string contents as hash_map keys.
24897
24898 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24899
24900 PR c/88928
24901 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24902 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24903 instead of TYPE_ALIGN.
24904 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24905 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24906 pointer from TYPE_STUB_DECL.
24907
24908 2019-01-21 Richard Biener <rguenther@suse.de>
24909
24910 PR tree-optimization/88934
24911 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24912 at the possibly non-constant operand.
24913 (vect_get_constant_vectors): Adjust.
24914
24915 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24916
24917 PR target/71659
24918 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24919 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24920 instead of _X86INTRIN_H_INCLUDED.
24921 * onfig/i386/clwbintrin.h: Likewise.
24922 * config/i386/pkuintrin.h: Likewise.
24923 * config/i386/prfchwintrin.h: Likewise.
24924 * config/i386/rdseedintrin.h: Likewise.
24925 * config/i386/wbnoinvdintrin.h: Likewise.
24926 * config/i386/xsavecintrin.h: Likewise.
24927 * config/i386/xsavesintrin.h: Likewise.
24928 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24929 * config/i386/xsaveintrin.h: Likewise.
24930 * config/i386/xsaveoptintrin.h: Likewise.
24931 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24932 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24933 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24934 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24935 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24936 * config/i386/immintrin.h: Here.
24937
24938 2019-01-20 Martin Jambor <mjambor@suse.cz>
24939
24940 PR ipa/87615
24941 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24942 with aa_walk_budget.
24943 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24944 aa_walk_budget_p parameter.
24945 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24946 walk. Updated all callers.
24947 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24948 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24949 unmodified_parm.
24950 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24951 parameter info. Extract info from fbi. Pass fbi to recursive calls
24952 and to unmodified_parm.
24953 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24954 info, updated call to will_be_nonconstant_expr_predicate.
24955 (param_change_prob): New parameter fbi, limit AA walking.
24956 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24957 calls to various above functions.
24958 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24959 parameter. Use it to limit AA walking.
24960 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24961 fbi, limit AA walk.
24962 (detect_type_change): New parameter fbi, pass it on to
24963 detect_type_change_from_memory_writes.
24964 (detect_type_change_ssa): Likewise.
24965 (aa_overwalked): Removed.
24966 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24967 accordingly, adjust to the neew AA limiting scheme.
24968 (parm_ref_data_preserved_p): Likewise.
24969 (ipa_compute_jump_functions_for_edge): Adjust call to
24970 get_dynamic_type.
24971 (ipa_analyze_call_uses): Likewise.
24972 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24973 (ipa_analyze_node): Initialize aa_walk_budget.
24974 (ipcp_transform_function): Likewise.
24975 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24976 to get_dynamic_type.
24977
24978 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24979
24980 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24981 outside of #if CHECKING_P code.
24982
24983 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24984
24985 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24986 New function, split out from...
24987 (loop_versioning::analyze_stride): ...here.
24988 (loop_versioning::find_per_loop_multiplication): Use gassign.
24989 (loop_versioning::analyze_term_using_scevs): Return a success code.
24990 (loop_versioning::analyze_arbitrary_term): New function.
24991 (loop_versioning::analyze_address_fragment): Use
24992 analyze_arbitrary_term if all else fails.
24993
24994 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24995
24996 PR target/88892
24997 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24998 operands.
24999
25000 2019-01-18 Richard Biener <rguenther@suse.de>
25001
25002 PR tree-optimization/88903
25003 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25004 scalar stmts a SLP shift amount is composed of when detecting
25005 shifts by scalars.
25006
25007 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25008
25009 PR target/88799
25010 * config/arm/arm-cpus.in (mp): New feature.
25011 (sec): New feature.
25012 (fgroup ARMv7ve): Add mp and sec features.
25013 (arch armv7-a): Add options to allow mp and sec extensions.
25014 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25015 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25016 extenstions to the base architecture.
25017 (cpu cortex-a8): Add sec extension to the base architecture.
25018 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25019 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25020 variants down to the base v7-a varaint.
25021 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25022 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25023 of permitted extensions for -march=armv7-a and for
25024 -mcpu=generic-armv7-a.
25025
25026 2019-01-18 Martin Liska <mliska@suse.cz>
25027
25028 * params.def: Fix comment.
25029 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25030 name.
25031 (gimple_gen_ic_func_profiler): Likewise.
25032
25033 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25034
25035 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25036 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25037 and put in error checks for stack protector guard options.
25038 (aarch64_stack_protect_guard): New.
25039 (TARGET_STACK_PROTECT_GUARD): Define.
25040 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25041 (reg_stack_protect_address<mode>): New.
25042 (stack_protect_set): Adjust for SSP_GLOBAL.
25043 (stack_protect_test): Likewise.
25044 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25045 (-mstack-protector-guard): Likewise.
25046 (-mstack-protector-guard-offset): Likewise.
25047
25048 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25049
25050 PR tree-optimization/86214
25051 * tree-inline.h (struct copy_body_data): Add
25052 add_clobbers_to_eh_landing_pads member.
25053 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25054 (copy_edges_for_bb): Call it if EH edge destination is <
25055 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25056 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25057 if flag_stack_reuse != SR_NONE and clear it afterwards.
25058
25059 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25060
25061 PR target/85596
25062 * doc/install.texi (with-multilib-list): Document for aarch64.
25063
25064 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25065
25066 PR target/88734
25067 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25068 (("..."))) with ("...").
25069
25070 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25071
25072 * doc/extend.texi (Built-in Functions for Memory Model Aware
25073 Atomic Operations): Document atomic fetch and nand.
25074
25075 2019-01-18 Martin Liska <mliska@suse.cz>
25076 Richard Biener <rguenther@suse.de>
25077
25078 PR middle-end/88587
25079 * cgraph.h (create_version_clone_with_body): Add new argument
25080 with attributes.
25081 * cgraphclones.c (cgraph_node::create_version_clone): Add
25082 DECL_ATTRIBUTES to a newly created decl. And call
25083 valid_attribute_p so that proper cl_target_optimization_node
25084 is set for the newly created declaration.
25085 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25086 for declaration.
25087 (expand_target_clones): Do not call valid_attribute_p, it must
25088 be already done.
25089 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25090 vector types.
25091
25092 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25093
25094 PR target/88734
25095 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25096 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25097 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25098
25099 2019-01-17 Martin Sebor <msebor@redhat.com>
25100
25101 PR middle-end/88273
25102 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25103 Handle anti-ranges the same as no range at all.
25104
25105 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25106
25107 * config/aarch64/aarch64.c (cgraph.h): New include.
25108 (intl.h): New include.
25109 (supported_simd_type): New function.
25110 (currently_supported_simd_type): Ditto.
25111 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25112 (aarch64_simd_clone_adjust): Ditto.
25113 (aarch64_simd_clone_usable): Ditto.
25114 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25115 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25116 (TARGET_SIMD_CLONE_USABLE): Ditto.
25117 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25118 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25119 call.
25120
25121 2019-01-17 Martin Sebor <msebor@redhat.com>
25122
25123 PR tree-optimization/88800
25124 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25125 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25126 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25127 redundant argument. Add new argument and issue diagnostics under
25128 its control. Detect out-of-bounds access even with warnings
25129 disabled.
25130 (check_bounds_or_overlap): Change return type. Add argument.
25131 (wrestrict_dom_walker::check_call): Adjust.
25132 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25133 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25134 check_bounds_or_overlap's return value.
25135 (handle_builtin_stxncpy): Same.
25136 (handle_builtin_strcat): Same.
25137
25138 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25139 Kwok Cheung Yeung <kcy@codesourcery.com>
25140 Julian Brown <julian@codesourcery.com>
25141 Tom de Vries <tom@codesourcery.com>
25142
25143 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25144
25145 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25146
25147 * doc/sourcebuild.texi: Document dg-require-effective-target
25148 llvm_binutils and offload_gcn.
25149
25150 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25151 Kwok Cheung Yeung <kcy@codesourcery.com>
25152 Julian Brown <julian@codesourcery.com>
25153 Tom de Vries <tom@codesourcery.com>
25154
25155 * doc/sourcebuild.texi: Document dg-required-effective-target
25156 exceptions.
25157
25158 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25159 Kwok Cheung Yeung <kcy@codesourcery.com>
25160 Julian Brown <julian@codesourcery.com>
25161 Tom de Vries <tom@codesourcery.com>
25162 Jan Hubicka <hubicka@ucw.cz>
25163 Martin Jambor <mjambor@suse.cz>
25164
25165 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25166 * configure.ac: Check for dlopen.
25167 * configure: Regenerate.
25168
25169 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25170 Kwok Cheung Yeung <kcy@codesourcery.com>
25171 Julian Brown <julian@codesourcery.com>
25172 Tom de Vries <tom@codesourcery.com>
25173 Jan Hubicka <hubicka@ucw.cz>
25174 Martin Jambor <mjambor@suse.cz>
25175
25176 * common/config/gcn/gcn-common.c: New file.
25177 * config/gcn/driver-gcn.c: New file.
25178 * config/gcn/gcn-builtins.def: New file.
25179 * config/gcn/gcn-hsa.h: New file.
25180 * config/gcn/gcn-modes.def: New file.
25181 * config/gcn/gcn-opts.h: New file.
25182 * config/gcn/gcn-passes.def: New file.
25183 * config/gcn/gcn-protos.h: New file.
25184 * config/gcn/gcn-run.c: New file.
25185 * config/gcn/gcn-tree.c: New file.
25186 * config/gcn/gcn.c: New file.
25187 * config/gcn/gcn.h: New file.
25188 * config/gcn/gcn.opt: New file.
25189 * config/gcn/t-gcn-hsa: New file.
25190
25191 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25192 Kwok Cheung Yeung <kcy@codesourcery.com>
25193 Julian Brown <julian@codesourcery.com>
25194 Tom de Vries <tom@codesourcery.com>
25195 Jan Hubicka <hubicka@ucw.cz>
25196 Martin Jambor <mjambor@suse.cz>
25197
25198 * config/gcn/constraints.md: New file.
25199 * config/gcn/gcn-valu.md: New file.
25200 * config/gcn/gcn.md: New file.
25201 * config/gcn/predicates.md: New file.
25202
25203 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25204
25205 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25206 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25207 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25208 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25209
25210 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25211
25212 PR target/88851
25213 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25214 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25215 it and document registers.
25216
25217 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25218
25219 * config/aarch64/aarch64.c (ares_tunings): Define.
25220 * config/aarch64/aarch64-cores.def (ares): Use the above.
25221
25222 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25223
25224 PR target/88794
25225 Revert:
25226 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25227
25228 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25229 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25230 (_mm512_maskz_fixupimm_round_pd): Ditto.
25231 (_mm512_fixupimm_round_ps): Ditto.
25232 (_mm512_maskz_fixupimm_round_ps): Ditto.
25233 (_mm_fixupimm_round_sd): Ditto.
25234 (_mm_maskz_fixupimm_round_sd): Ditto.
25235 (_mm_fixupimm_round_ss): Ditto.
25236 (_mm_maskz_fixupimm_round_ss): Ditto.
25237 (_mm512_fixupimm_pd): Ditto.
25238 (_mm512_maskz_fixupimm_pd): Ditto.
25239 (_mm512_fixupimm_ps): Ditto.
25240 (_mm512_maskz_fixupimm_ps): Ditto.
25241 (_mm_fixupimm_sd): Ditto.
25242 (_mm_maskz_fixupimm_sd): Ditto.
25243 (_mm_fixupimm_ss): Ditto.
25244 (_mm_maskz_fixupimm_ss): Ditto.
25245 (_mm512_mask_fixupimm_round_pd): Update builtin.
25246 (_mm512_mask_fixupimm_round_ps): Ditto.
25247 (_mm_mask_fixupimm_round_sd): Ditto.
25248 (_mm_mask_fixupimm_round_ss): Ditto.
25249 (_mm512_mask_fixupimm_pd): Ditto.
25250 (_mm512_mask_fixupimm_ps): Ditto.
25251 (_mm_mask_fixupimm_sd): Ditto.
25252 (_mm_mask_fixupimm_ss): Ditto.
25253 * config/i386/avx512vlintrin.h:
25254 (_mm256_fixupimm_pd): Update parameters and builtin.
25255 (_mm256_maskz_fixupimm_pd): Ditto.
25256 (_mm256_fixupimm_ps): Ditto.
25257 (_mm256_maskz_fixupimm_ps): Ditto.
25258 (_mm_fixupimm_pd): Ditto.
25259 (_mm_maskz_fixupimm_pd): Ditto.
25260 (_mm_fixupimm_ps): Ditto.
25261 (_mm_maskz_fixupimm_ps): Ditto.
25262 (_mm256_mask_fixupimm_pd): Update builtin.
25263 (_mm256_mask_fixupimm_ps): Ditto.
25264 (_mm_mask_fixupimm_pd): Ditto.
25265 (_mm_mask_fixupimm_ps): Ditto.
25266 * config/i386/i386-builtin-types.def: Add new types and remove
25267 useless ones.
25268 * config/i386/i386-builtin.def: Update builtin definitions.
25269 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25270 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25271 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25272 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25273 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25274 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25275 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25276 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25277 * config/i386/subst.md:
25278 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25279 (round_saeonly_sd_mask_op4): Ditto.
25280 (round_saeonly_expand_operand5): Ditto.
25281 (round_saeonly_expand): Update.
25282
25283 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25284
25285 PR target/88794
25286 Revert:
25287 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25288
25289 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25290 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25291 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25292 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25293 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25294 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25295 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25296
25297 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25298
25299 PR target/88794
25300 Revert:
25301 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25302
25303 PR target/88489
25304 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25305 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25306 instead of UNSPEC_FIXUPIMM.
25307
25308 2019-01-17 Richard Biener <rguenther@suse.de>
25309
25310 PR lto/86736
25311 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25312 and friends for the LTO part of debug info.
25313
25314 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25315
25316 PR tree-optimization/86214
25317 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25318 if x == y.
25319
25320 PR rtl-optimization/88870
25321 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25322 throw if we can't alter the cfg or delete dead exceptions.
25323 (mark_insn): Don't call find_call_stack_args for such calls.
25324
25325 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25326
25327 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25328 prototypes for vec_st.
25329 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25330 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25331 mainly on signed/unsigned long long and double.
25332
25333 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25334
25335 PR target/88861
25336 * combine.c (delete_noop_moves): Convert to "bool" return,
25337 returning true if any edges are eliminated.
25338 (combine_instructions): Also return true if delete_noop_moves
25339 returns true.
25340
25341 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25342
25343 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25344 correct max nunits for endian swap.
25345 (aarch64_expand_fcmla_builtin): Correct subreg code.
25346 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25347 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25348 lane endianness.
25349
25350 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25351
25352 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25353 Handle split indirect COMPLEX_TYPE arguments.
25354
25355 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25356
25357 PR target/86891
25358 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25359 bit is set by add and compare.
25360 (CC_ADC): New CC_MODE.
25361 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25362 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25363 comparison. Add detection for CC_ADCmode.
25364 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25365 CC_ADCmode.
25366 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25367 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25368 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25369 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25370 to eliminate the need for zero-extending the operands.
25371 (add<mode>3_compareC_imm): Delete. Merge into ...
25372 (add<mode>3_compareC): ... this. Restructure the comparison to
25373 eliminate the need for zero-extending the operands.
25374 (add<mode>3_carryin): Use LTU for the overflow detection.
25375 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25376 Reexpress comparison for overflow.
25377 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25378 (add<mode>3_carryinC): Likewise.
25379 (add<mode>3_carryinV): Use LTU for carry between partials.
25380 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25381 handling of CC_Cmode and add CC_ADCmode.
25382 (aarch64_borrow_operation): Likewise.
25383
25384 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25385
25386 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25387 Remove patternmode.
25388 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25389 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25390 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25391 Remove endianness conversion.
25392
25393 2019-01-16 Martin Liska <mliska@suse.cz>
25394
25395 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25396 for GCC driver.
25397 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25398 a new argument.
25399 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25400 (path_prefix_reset): Move up in the source file.
25401 (find_fortran_preinclude_file): Make complex search for the
25402 fortran header files.
25403
25404 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25405
25406 * godump.c (go_output_typedef): When outputting a typedef, refer
25407 to the underlying type by its name and not its structure.
25408
25409 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25410
25411 PR c++/88795
25412 * tree.c (build_function_type): Assert that arg_types is not
25413 error_mark_node.
25414
25415 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25416
25417 PR inline-asm/52813
25418 * doc/extend.texi: Document that listing the stack pointer in the
25419 clobber list of an asm is a deprecated feature.
25420 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25421 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25422 warning instead of an error for clobbers of the stack pointer.
25423 Add a note explaining why.
25424
25425 2019-01-15 Richard Biener <rguenther@suse.de>
25426
25427 PR debug/88046
25428 * dwarf2out.c (gen_member_die): Do not generate inheritance
25429 DIEs late.
25430
25431 2019-01-15 Richard Biener <rguenther@suse.de>
25432
25433 PR tree-optimization/88855
25434 * tree-if-conv.c (combine_blocks): Collect
25435 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25436
25437 2019-01-15 Tom de Vries <tdevries@suse.de>
25438
25439 PR target/80547
25440 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25441 lhs == NULL_TREE for gang-level reduction.
25442
25443 2019-01-15 Richard Biener <rguenther@suse.de>
25444 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25445
25446 PR ipa/88788
25447 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25448 return true if SSA_NAME is already marked in visited bitmap.
25449 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25450
25451 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25452
25453 PR tree-optimization/88775
25454 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25455 equal == 0 equality pointer comparisons some more if compared in
25456 integral types and either one points to an automatic var and the
25457 other to a global, or we can prove at least one points to the middle
25458 or both point to start or both point to end.
25459
25460 2019-01-14 Andi Kleen <ak@linux.intel.com>
25461
25462 * Makefile.in: Lower autofdo sampling rate by 10x.
25463 * Makefile.tpl: Dito.
25464
25465 2019-01-14 Tom Honermann <tom@honermann.net>
25466
25467 * defaults.h: Define CHAR8_TYPE.
25468
25469 2019-01-14 Martin Sebor <msebor@redhat.com>
25470
25471 PR target/88638
25472 * doc/extend.texi (Darwin Format Checks): Clarify.
25473
25474 2019-01-14 Richard Biener <rguenther@suse.de>
25475
25476 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25477 whether we are in (simplify ...) or (match ...) context.
25478
25479 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25480
25481 PR rtl-optimization/88796
25482 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25483 * cfgexpand.c (stack_protect_prologue): Initialize
25484 crtl->stack_protect_guard_decl.
25485 * function.c (stack_protect_epilogue): Use it instead of calling
25486 targetm.stack_protect_guard again.
25487 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25488 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25489 crtl->stack_protect_guard_decl.
25490 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25491 on the returned MEM_EXPR.
25492
25493 2019-01-12 Tom de Vries <tdevries@suse.de>
25494
25495 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25496 vector length using -fopenacc-dim.
25497
25498 2019-01-12 Tom de Vries <tdevries@suse.de>
25499
25500 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25501 lengths into account.
25502
25503 2019-01-12 Svante Signell <svante.signell@gmail.com>
25504
25505 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25506 (TARGET_CAN_SPLIT_STACK): Define.
25507 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25508
25509 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25510
25511 * params.def (inline-unit-growth): Set to 40.
25512
25513 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25514
25515 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25516
25517 2019-01-12 Tom de Vries <tdevries@suse.de>
25518
25519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25520 region calling vector-partitionable routine, set default_vector_length
25521 to WARP_SIZE.
25522
25523 2019-01-12 Tom de Vries <tdevries@suse.de>
25524
25525 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25526 variable default_vector_length.
25527
25528 2019-01-12 Tom de Vries <tdevries@suse.de>
25529
25530 PR middle-end/88703
25531 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25532 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25533 dimensions limits.
25534
25535 2019-01-12 Tom de Vries <tdevries@suse.de>
25536
25537 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25538 (nvptx_goacc_validate_dims): Add used parameter.
25539 * doc/tm.texi: Regenerate.
25540 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25541 argument to call to targetm.goacc.validate_dims.
25542 (default_goacc_validate_dims): Add used
25543 parameter.
25544 * target.def (validate_dims): Add used parameter in DEFHOOK.
25545 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25546
25547 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25548
25549 PR middle-end/85956
25550 PR lto/88733
25551 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25552 field.
25553 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25554 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25555 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25556 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25557
25558 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25559
25560 PR rtl-optimization/87305
25561 * lra-assigns.c
25562 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25563 for little endian pseudos used as paradoxical subreg.
25564
25565 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25566
25567 PR tree-optimization/88693
25568 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25569 for STRING_CSTs that don't contain any NUL characters in the first
25570 TREE_STRING_LENGTH bytes.
25571
25572 2019-01-11 Alan Modra <amodra@gmail.com>
25573
25574 PR 88777
25575 PR 88614
25576 * genattrtab.c (min_fn): Don't translate values.
25577 (min_attr_value): Return INT_MAX when the value can't be calculated.
25578 Return minimum among any values that can be calculated.
25579 (max_attr_value): Adjust.
25580
25581 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25582
25583 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25584
25585 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25586
25587 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25588 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25589 (aarch64_return_call_with_max_clobbers): New function.
25590 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25591 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25592 argument.
25593 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25594 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25595 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25596 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25597 * cselib.c (cselib_process_insn): Add argument to
25598 targetm.hard_regno_call_part_clobbered call.
25599 * ira-conflicts.c (ira_build_conflicts): Ditto.
25600 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25601 * lra-constraints.c (inherit_reload_reg): Ditto.
25602 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25603 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25604 argument. Call targetm.return_call_with_max_clobbers.
25605 Add argument to targetm.hard_regno_call_part_clobbered call.
25606 (calls_have_same_clobbers_p): New function.
25607 (process_bb_lives): Add call_insn and last_call_insn variables.
25608 Pass call_insn to check_pseudos_live_through_calls.
25609 Modify if stmt to check targetm.return_call_with_max_clobbers.
25610 Update setting of flush variable.
25611 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25612 to false.
25613 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25614 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25615 targetm.hard_regno_call_part_clobbered call.
25616 * reginfo.c (choose_hard_reg_mode): Ditto.
25617 * regrename.c (check_new_reg_p): Ditto.
25618 * reload.c (find_equiv_reg): Ditto.
25619 * reload1.c (emit_reload_insns): Ditto.
25620 * sched-deps.c (deps_analyze_insn): Ditto.
25621 * sel-sched.c (init_regs_for_mode): Ditto.
25622 (mark_unavailable_hard_regs): Ditto.
25623 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25624 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25625 (return_call_with_max_clobbers): New target function.
25626 * doc/tm.texi: Regenerate.
25627 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25628 * hooks.c (hook_bool_uint_mode_false): Change to
25629 hook_bool_insn_uint_mode_false.
25630 * hooks.h (hook_bool_uint_mode_false): Ditto.
25631
25632 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25633
25634 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25635 (aarch64_remove_extra_call_preserved_regs): New function.
25636 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25637 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25638 * doc/tm.texi: Regenerate.
25639 * final.c (get_call_reg_set_usage): Call new hook.
25640 * target.def (remove_extra_call_preserved_regs): New hook.
25641 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25642 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25643
25644 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25645
25646 PR bootstrap/88714
25647 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25648 inside of pass_combine_1 dump rather than pass_profile_1.
25649
25650 2019-01-11 Tom de Vries <tdevries@suse.de>
25651
25652 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25653 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25654 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25655 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25656 num_workers 16.
25657
25658 2019-01-11 Tom de Vries <tdevries@suse.de>
25659
25660 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25661
25662 2019-01-11 Jan Beulich <jbeulich@suse.com>
25663
25664 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25665 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25666 sse2_cvtsi2sd): Add {l}.
25667 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25668 syntax.
25669
25670 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25671
25672 PR target/88785
25673 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25674 define_expand.
25675 (*float<floatunssuffix>v2div2sf2): New define_insn.
25676 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25677 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25678 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25679 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25680 match_operands with "const0_operand" "C".
25681
25682 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25683
25684 * config/aarch64/aarch64-builtins.c
25685 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25686 (aarch64_init_simd_builtins): ...Here
25687
25688 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25689
25690 PR rtl-optimization/87305
25691 * lra-assigns.c
25692 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25693 allocation for big endian pseudos used as paradoxical subregs and
25694 spill them if it is wrong.
25695 * lra-constraints.c (lra_constraints): Add a comment.
25696
25697 2019-01-10 Richard Biener <rguenther@suse.de>
25698
25699 PR tree-optimization/88792
25700 * tree-ssa-pre.c (get_representative_for): Do not return a
25701 value-number here.
25702
25703 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25704
25705 PR middle-end/84877
25706 PR bootstrap/88450
25707 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25708 (assign_parm_setup_block): Do the argument slot realignment here
25709 instead.
25710
25711 2019-01-10 Stefan Agner <stefan@agner.ch>
25712
25713 PR target/88648
25714 * config/arm/arm.c (arm_option_override_internal): Force
25715 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25716
25717 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25718
25719 PR c/88568
25720 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25721 DECL_EXTERNAL.
25722
25723 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25724
25725 * config/arm/arm-builtins.c
25726 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25727 (MAC_LANE_PAIR_QUALIFIERS): New.
25728 (arm_expand_builtin_args): Use it.
25729 (arm_expand_builtin_1): Likewise.
25730 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25731 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25732 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25733 * config/arm/arm_neon.h:
25734 (vcadd_rot90_f16): New.
25735 (vcaddq_rot90_f16): New.
25736 (vcadd_rot270_f16): New.
25737 (vcaddq_rot270_f16): New.
25738 (vcmla_f16): New.
25739 (vcmlaq_f16): New.
25740 (vcmla_lane_f16): New.
25741 (vcmla_laneq_f16): New.
25742 (vcmlaq_lane_f16): New.
25743 (vcmlaq_laneq_f16): New.
25744 (vcmla_rot90_f16): New.
25745 (vcmlaq_rot90_f16): New.
25746 (vcmla_rot90_lane_f16): New.
25747 (vcmla_rot90_laneq_f16): New.
25748 (vcmlaq_rot90_lane_f16): New.
25749 (vcmlaq_rot90_laneq_f16): New.
25750 (vcmla_rot180_f16): New.
25751 (vcmlaq_rot180_f16): New.
25752 (vcmla_rot180_lane_f16): New.
25753 (vcmla_rot180_laneq_f16): New.
25754 (vcmlaq_rot180_lane_f16): New.
25755 (vcmlaq_rot180_laneq_f16): New.
25756 (vcmla_rot270_f16): New.
25757 (vcmlaq_rot270_f16): New.
25758 (vcmla_rot270_lane_f16): New.
25759 (vcmla_rot270_laneq_f16): New.
25760 (vcmlaq_rot270_lane_f16): New.
25761 (vcmlaq_rot270_laneq_f16): New.
25762 (vcadd_rot90_f32): New.
25763 (vcaddq_rot90_f32): New.
25764 (vcadd_rot270_f32): New.
25765 (vcaddq_rot270_f32): New.
25766 (vcmla_f32): New.
25767 (vcmlaq_f32): New.
25768 (vcmla_lane_f32): New.
25769 (vcmla_laneq_f32): New.
25770 (vcmlaq_lane_f32): New.
25771 (vcmlaq_laneq_f32): New.
25772 (vcmla_rot90_f32): New.
25773 (vcmlaq_rot90_f32): New.
25774 (vcmla_rot90_lane_f32): New.
25775 (vcmla_rot90_laneq_f32): New.
25776 (vcmlaq_rot90_lane_f32): New.
25777 (vcmlaq_rot90_laneq_f32): New.
25778 (vcmla_rot180_f32): New.
25779 (vcmlaq_rot180_f32): New.
25780 (vcmla_rot180_lane_f32): New.
25781 (vcmla_rot180_laneq_f32): New.
25782 (vcmlaq_rot180_lane_f32): New.
25783 (vcmlaq_rot180_laneq_f32): New.
25784 (vcmla_rot270_f32): New.
25785 (vcmlaq_rot270_f32): New.
25786 (vcmla_rot270_lane_f32): New.
25787 (vcmla_rot270_laneq_f32): New.
25788 (vcmlaq_rot270_lane_f32): New.
25789 (vcmlaq_rot270_laneq_f32): New.
25790 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25791 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25792 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25793 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25794 vcmlaq_lane270): New.
25795 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25796 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25797 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25798 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25799 (arm_option_reconfigure_globals): Use them.
25800 * config/arm/iterators.md (VDF, VQ_HSF): New.
25801 (VCADD, VCMLA): New.
25802 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25803 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25804 New.
25805 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25806 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25807
25808 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25809
25810 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25811 Add qualifier_lane_pair_index.
25812 (emit-rtl.h): Include.
25813 (TYPES_QUADOP_LANE_PAIR): New.
25814 (aarch64_simd_expand_args): Use it.
25815 (aarch64_simd_expand_builtin): Likewise.
25816 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25817 New.
25818 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25819 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25820 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25821 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25822 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25823 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25824 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25825 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25826 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25827 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25828 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25829 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25830 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25831 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25832 Add __ARM_FEATURE_COMPLEX.
25833 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25834 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25835 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25836 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25837 fcmlaq_lane270): New.
25838 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25839 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25840 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25841 * config/aarch64/arm_neon.h:
25842 (vcadd_rot90_f16): New.
25843 (vcaddq_rot90_f16): New.
25844 (vcadd_rot270_f16): New.
25845 (vcaddq_rot270_f16): New.
25846 (vcmla_f16): New.
25847 (vcmlaq_f16): New.
25848 (vcmla_lane_f16): New.
25849 (vcmla_laneq_f16): New.
25850 (vcmlaq_lane_f16): New.
25851 (vcmlaq_rot90_lane_f16): New.
25852 (vcmla_rot90_laneq_f16): New.
25853 (vcmla_rot90_lane_f16): New.
25854 (vcmlaq_rot90_f16): New.
25855 (vcmla_rot90_f16): New.
25856 (vcmlaq_laneq_f16): New.
25857 (vcmla_rot180_laneq_f16): New.
25858 (vcmla_rot180_lane_f16): New.
25859 (vcmlaq_rot180_f16): New.
25860 (vcmla_rot180_f16): New.
25861 (vcmlaq_rot90_laneq_f16): New.
25862 (vcmlaq_rot270_laneq_f16): New.
25863 (vcmlaq_rot270_lane_f16): New.
25864 (vcmla_rot270_laneq_f16): New.
25865 (vcmlaq_rot270_f16): New.
25866 (vcmla_rot270_f16): New.
25867 (vcmlaq_rot180_laneq_f16): New.
25868 (vcmlaq_rot180_lane_f16): New.
25869 (vcmla_rot270_lane_f16): New.
25870 (vcadd_rot90_f32): New.
25871 (vcaddq_rot90_f32): New.
25872 (vcaddq_rot90_f64): New.
25873 (vcadd_rot270_f32): New.
25874 (vcaddq_rot270_f32): New.
25875 (vcaddq_rot270_f64): New.
25876 (vcmla_f32): New.
25877 (vcmlaq_f32): New.
25878 (vcmlaq_f64): New.
25879 (vcmla_lane_f32): New.
25880 (vcmla_laneq_f32): New.
25881 (vcmlaq_lane_f32): New.
25882 (vcmlaq_laneq_f32): New.
25883 (vcmla_rot90_f32): New.
25884 (vcmlaq_rot90_f32): New.
25885 (vcmlaq_rot90_f64): New.
25886 (vcmla_rot90_lane_f32): New.
25887 (vcmla_rot90_laneq_f32): New.
25888 (vcmlaq_rot90_lane_f32): New.
25889 (vcmlaq_rot90_laneq_f32): New.
25890 (vcmla_rot180_f32): New.
25891 (vcmlaq_rot180_f32): New.
25892 (vcmlaq_rot180_f64): New.
25893 (vcmla_rot180_lane_f32): New.
25894 (vcmla_rot180_laneq_f32): New.
25895 (vcmlaq_rot180_lane_f32): New.
25896 (vcmlaq_rot180_laneq_f32): New.
25897 (vcmla_rot270_f32): New.
25898 (vcmlaq_rot270_f32): New.
25899 (vcmlaq_rot270_f64): New.
25900 (vcmla_rot270_lane_f32): New.
25901 (vcmla_rot270_laneq_f32): New.
25902 (vcmlaq_rot270_lane_f32): New.
25903 (vcmlaq_rot270_laneq_f32): New.
25904 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25905 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25906 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25907 (FCADD, FCMLA): New.
25908 (rot): New.
25909 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25910
25911 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25912
25913 PR other/16615
25914
25915 * config/pa/pa.c: Change "can not" to "cannot".
25916 * gimple-ssa-evrp-analyze.c: Likewise.
25917 * ipa-icf.c: Likewise.
25918 * ipa-polymorphic-call.c: Likewise.
25919 * ipa-pure-const.c: Likewise.
25920 * lra-constraints.c: Likewise.
25921 * lra-remat.c: Likewise.
25922 * reload1.c: Likewise.
25923 * reorg.c: Likewise.
25924 * tree-ssa-uninit.c: Likewise.
25925
25926 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25927
25928 PR other/16615
25929
25930 * Makefile.in: Mechanically replace "can not" with "cannot".
25931 * alias.c: Likewise.
25932 * builtins.c: Likewise.
25933 * calls.c: Likewise.
25934 * cgraph.c: Likewise.
25935 * cgraph.h: Likewise.
25936 * cgraphclones.c: Likewise.
25937 * cgraphunit.c: Likewise.
25938 * combine-stack-adj.c: Likewise.
25939 * combine.c: Likewise.
25940 * common/config/i386/i386-common.c: Likewise.
25941 * config/aarch64/aarch64.c: Likewise.
25942 * config/alpha/sync.md: Likewise.
25943 * config/arc/arc.c: Likewise.
25944 * config/arc/predicates.md: Likewise.
25945 * config/arm/arm-c.c: Likewise.
25946 * config/arm/arm.c: Likewise.
25947 * config/arm/arm.h: Likewise.
25948 * config/arm/arm.md: Likewise.
25949 * config/arm/cortex-r4f.md: Likewise.
25950 * config/csky/csky.c: Likewise.
25951 * config/csky/csky.h: Likewise.
25952 * config/darwin-f.c: Likewise.
25953 * config/epiphany/epiphany.md: Likewise.
25954 * config/i386/i386.c: Likewise.
25955 * config/i386/sol2.h: Likewise.
25956 * config/m68k/m68k.c: Likewise.
25957 * config/mcore/mcore.h: Likewise.
25958 * config/microblaze/microblaze.md: Likewise.
25959 * config/mips/20kc.md: Likewise.
25960 * config/mips/sb1.md: Likewise.
25961 * config/nds32/nds32.c: Likewise.
25962 * config/nds32/predicates.md: Likewise.
25963 * config/pa/pa.c: Likewise.
25964 * config/rs6000/e300c2c3.md: Likewise.
25965 * config/rs6000/rs6000.c: Likewise.
25966 * config/s390/s390.h: Likewise.
25967 * config/sh/sh.c: Likewise.
25968 * config/sh/sh.md: Likewise.
25969 * config/spu/vmx2spu.h: Likewise.
25970 * cprop.c: Likewise.
25971 * dbxout.c: Likewise.
25972 * df-scan.c: Likewise.
25973 * doc/cfg.texi: Likewise.
25974 * doc/extend.texi: Likewise.
25975 * doc/fragments.texi: Likewise.
25976 * doc/gty.texi: Likewise.
25977 * doc/invoke.texi: Likewise.
25978 * doc/lto.texi: Likewise.
25979 * doc/md.texi: Likewise.
25980 * doc/objc.texi: Likewise.
25981 * doc/rtl.texi: Likewise.
25982 * doc/tm.texi: Likewise.
25983 * dse.c: Likewise.
25984 * emit-rtl.c: Likewise.
25985 * emit-rtl.h: Likewise.
25986 * except.c: Likewise.
25987 * expmed.c: Likewise.
25988 * expr.c: Likewise.
25989 * fold-const.c: Likewise.
25990 * genautomata.c: Likewise.
25991 * gimple-fold.c: Likewise.
25992 * hard-reg-set.h: Likewise.
25993 * ifcvt.c: Likewise.
25994 * ipa-comdats.c: Likewise.
25995 * ipa-cp.c: Likewise.
25996 * ipa-devirt.c: Likewise.
25997 * ipa-fnsummary.c: Likewise.
25998 * ipa-icf.c: Likewise.
25999 * ipa-inline-transform.c: Likewise.
26000 * ipa-inline.c: Likewise.
26001 * ipa-polymorphic-call.c: Likewise.
26002 * ipa-profile.c: Likewise.
26003 * ipa-prop.c: Likewise.
26004 * ipa-pure-const.c: Likewise.
26005 * ipa-reference.c: Likewise.
26006 * ipa-split.c: Likewise.
26007 * ipa-visibility.c: Likewise.
26008 * ipa.c: Likewise.
26009 * ira-build.c: Likewise.
26010 * ira-color.c: Likewise.
26011 * ira-conflicts.c: Likewise.
26012 * ira-costs.c: Likewise.
26013 * ira-int.h: Likewise.
26014 * ira-lives.c: Likewise.
26015 * ira.c: Likewise.
26016 * ira.h: Likewise.
26017 * loop-invariant.c: Likewise.
26018 * loop-unroll.c: Likewise.
26019 * lower-subreg.c: Likewise.
26020 * lra-assigns.c: Likewise.
26021 * lra-constraints.c: Likewise.
26022 * lra-eliminations.c: Likewise.
26023 * lra-lives.c: Likewise.
26024 * lra-remat.c: Likewise.
26025 * lra-spills.c: Likewise.
26026 * lra.c: Likewise.
26027 * lto-cgraph.c: Likewise.
26028 * lto-streamer-out.c: Likewise.
26029 * postreload-gcse.c: Likewise.
26030 * predict.c: Likewise.
26031 * profile-count.h: Likewise.
26032 * profile.c: Likewise.
26033 * recog.c: Likewise.
26034 * ree.c: Likewise.
26035 * reload.c: Likewise.
26036 * reload1.c: Likewise.
26037 * reorg.c: Likewise.
26038 * resource.c: Likewise.
26039 * rtl.def: Likewise.
26040 * rtl.h: Likewise.
26041 * rtlanal.c: Likewise.
26042 * sched-deps.c: Likewise.
26043 * sched-ebb.c: Likewise.
26044 * sched-rgn.c: Likewise.
26045 * sel-sched-ir.c: Likewise.
26046 * sel-sched.c: Likewise.
26047 * shrink-wrap.c: Likewise.
26048 * simplify-rtx.c: Likewise.
26049 * symtab.c: Likewise.
26050 * target.def: Likewise.
26051 * toplev.c: Likewise.
26052 * tree-call-cdce.c: Likewise.
26053 * tree-cfg.c: Likewise.
26054 * tree-complex.c: Likewise.
26055 * tree-core.h: Likewise.
26056 * tree-eh.c: Likewise.
26057 * tree-inline.c: Likewise.
26058 * tree-loop-distribution.c: Likewise.
26059 * tree-nrv.c: Likewise.
26060 * tree-profile.c: Likewise.
26061 * tree-sra.c: Likewise.
26062 * tree-ssa-alias.c: Likewise.
26063 * tree-ssa-dce.c: Likewise.
26064 * tree-ssa-dom.c: Likewise.
26065 * tree-ssa-forwprop.c: Likewise.
26066 * tree-ssa-loop-im.c: Likewise.
26067 * tree-ssa-loop-ivcanon.c: Likewise.
26068 * tree-ssa-loop-ivopts.c: Likewise.
26069 * tree-ssa-loop-niter.c: Likewise.
26070 * tree-ssa-phionlycprop.c: Likewise.
26071 * tree-ssa-phiopt.c: Likewise.
26072 * tree-ssa-propagate.c: Likewise.
26073 * tree-ssa-threadedge.c: Likewise.
26074 * tree-ssa-threadupdate.c: Likewise.
26075 * tree-ssa-uninit.c: Likewise.
26076 * tree-ssanames.c: Likewise.
26077 * tree-streamer-out.c: Likewise.
26078 * tree.c: Likewise.
26079 * tree.h: Likewise.
26080 * vr-values.c: Likewise.
26081
26082 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26083
26084 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26085 (ix86_split_xorsign): Ditto.
26086 * config/i386/i386.c (ix86_expand_xorsign): New function.
26087 (ix86_split_xorsign): Ditto.
26088 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26089 (xorsign<mode>3): New expander.
26090 (xorsign<mode>3_1): New insn_and_split pattern.
26091 * config/i386/sse.md (xorsign<mode>3): New expander.
26092
26093 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26094
26095 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26096 (*tablejump_sp64): Likewise.
26097 (*tablejump<P:mode>): ...this.
26098 (*call_address_sp32): Merge into...
26099 (*call_address_sp64): Likewise.
26100 (*call_address<P:mode>): ...this.
26101 (*call_symbolic_sp32): Merge into...
26102 (*call_symbolic_sp64): Likewise.
26103 (*call_symbolic<P:mode>): ...this.
26104 (call_value): Remove constraint and add predicate.
26105 (*call_value_address_sp32): Merge into...
26106 (*call_value_address_sp64): Likewise.
26107 (*call_value_address<P:mode>): ...this.
26108 (*call_value_symbolic_sp32): Merge into...
26109 (*call_value_symbolic_sp64): Likewise.
26110 (*call_value_symbolic<P:mode>): ...this.
26111 (*sibcall_symbolic_sp32): Merge into...
26112 (*sibcall_symbolic_sp64): Likewise.
26113 (*sibcall_symbolic<P:mode>): ...this.
26114 (sibcall_value): Remove constraint and add predicate.
26115 (*sibcall_value_symbolic_sp32): Merge into...
26116 (*sibcall_value_symbolic_sp64): Likewise.
26117 (*sibcall_value_symbolic<P:mode>): ...this.
26118 (window_save): Minor tweak.
26119 (*branch_sp32): Merge into...
26120 (*branch_sp64): Likewise.
26121 (*branch<P:mode>): ...this.
26122
26123 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26124 James Clarke <jrtc27@jrtc27.com>
26125
26126 PR target/84010
26127 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26128 consistently in TLS address generation and adjust code to the renaming
26129 of patterns. Mark calls to __tls_get_addr as const.
26130 * config/sparc/sparc.md (tgd_hi22): Turn into...
26131 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26132 (tgd_lo10): Turn into...
26133 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26134 (tgd_add32): Merge into...
26135 (tgd_add64): Likewise.
26136 (tgd_add<P:mode>): ...this and use Pmode throughout.
26137 (tldm_hi22): Turn into...
26138 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26139 (tldm_lo10): Turn into...
26140 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26141 (tldm_add32): Merge into...
26142 (tldm_add64): Likewise.
26143 (tldm_add<P:mode>): ...this and use Pmode throughout.
26144 (tldm_call32): Merge into...
26145 (tldm_call64): Likewise.
26146 (tldm_call<P:mode>): ...this and use Pmode throughout.
26147 (tldo_hix22): Turn into...
26148 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26149 (tldo_lox10): Turn into...
26150 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26151 (tldo_add32): Merge into...
26152 (tldo_add64): Likewise.
26153 (tldo_add<P:mode>): ...this and use Pmode throughout.
26154 (tie_hi22): Turn into...
26155 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26156 (tie_lo10): Turn into...
26157 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26158 (tie_ld64): Use DImode throughout.
26159 (tie_add32): Merge into...
26160 (tie_add64): Likewise.
26161 (tie_add<P:mode>): ...this and use Pmode throughout.
26162 (tle_hix22_sp32): Merge into...
26163 (tle_hix22_sp64): Likewise.
26164 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26165 (tle_lox22_sp32): Merge into...
26166 (tle_lox22_sp64): Likewise.
26167 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26168 (*tldo_ldub_sp32): Merge into...
26169 (*tldo_ldub_sp64): Likewise.
26170 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26171 (*tldo_ldub1_sp32): Merge into...
26172 (*tldo_ldub1_sp64): Likewise.
26173 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26174 (*tldo_ldub2_sp32): Merge into...
26175 (*tldo_ldub2_sp64): Likewise.
26176 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26177 (*tldo_ldsb1_sp32): Merge into...
26178 (*tldo_ldsb1_sp64): Likewise.
26179 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26180 (*tldo_ldsb2_sp32): Merge into...
26181 (*tldo_ldsb2_sp64): Likewise.
26182 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26183 (*tldo_ldub3_sp64): Use DImode throughout.
26184 (*tldo_ldsb3_sp64): Likewise.
26185 (*tldo_lduh_sp32): Merge into...
26186 (*tldo_lduh_sp64): Likewise.
26187 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26188 (*tldo_lduh1_sp32): Merge into...
26189 (*tldo_lduh1_sp64): Likewise.
26190 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26191 (*tldo_ldsh1_sp32): Merge into...
26192 (*tldo_ldsh1_sp64): Likewise.
26193 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26194 (*tldo_lduh2_sp64): Use DImode throughout.
26195 (*tldo_ldsh2_sp64): Likewise.
26196 (*tldo_lduw_sp32): Merge into...
26197 (*tldo_lduw_sp64): Likewise.
26198 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26199 (*tldo_lduw1_sp64): Use DImode throughout.
26200 (*tldo_ldsw1_sp64): Likewise.
26201 (*tldo_ldx_sp64): Likewise.
26202 (*tldo_stb_sp32): Merge into...
26203 (*tldo_stb_sp64): Likewise.
26204 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26205 (*tldo_sth_sp32): Merge into...
26206 (*tldo_sth_sp64): Likewise.
26207 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26208 (*tldo_stw_sp32): Merge into...
26209 (*tldo_stw_sp64): Likewise.
26210 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26211 (*tldo_stx_sp64): Use DImode throughout.
26212
26213 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26214
26215 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26216 check configure option to set BTI and Return Address Signing.
26217 * configure.ac: Add --enable-standard-branch-protection and
26218 --disable-standard-branch-protection.
26219 * configure: Regenerated.
26220 * doc/install.texi: Document the same.
26221
26222 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26223 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26224
26225 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26226 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26227 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26228 if bti is enabled.
26229 * config/aarch64/aarch64-bti-insert.c: New file.
26230 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26231 pass.
26232 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26233 new bti pass.
26234 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26235 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26236 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26237 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26238
26239 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26240
26241 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26242 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26243 Disable bti for -mbranch-protection=none.
26244 (aarch64_handle_standard_branch_protection): Enable bti for
26245 -mbranch-protection=standard.
26246 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26247 -mbranch-protection.
26248 (aarch64_bti_enabled): Check if bti is enabled.
26249 * config/aarch64/aarch64.opt: Declare target variable.
26250 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26251
26252 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26253
26254 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26255 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26256 (aarch64_expand_epilogue): Likewise.
26257 (aarch64_output_mi_thunk): Likewise.
26258 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26259 TAILCALL_ADDR_REGS to x16 and x17.
26260 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26261
26262 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26263
26264 * config/aarch64/aarch64-option-extensions.def: Define
26265 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26266 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26267 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26268 (AARCH64_FL_PREDRES): New.
26269 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26270 AARCH64_FL_PREDRES by default.
26271 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26272
26273 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26274
26275 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26276 ARMv8.5-A.
26277 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26278 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26279 * doc/invoke.texi: Document ARMv8.5-A.
26280
26281 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26282
26283 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26284 (xorsign<mode>3): Likewise.
26285
26286 2019-01-09 Jelinek <jakub@redhat.com>
26287
26288 PR middle-end/88758
26289 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26290 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26291
26292 PR rtl-optimization/88331
26293 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26294 not currently_expanding_to_rtl.
26295
26296 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26297
26298 * doc/invoke.texi (-Os): Remove trailing spaces.
26299 (-finline-functions): Remove reference to -O2.
26300
26301 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26302
26303 PR rtl-optimization/79593
26304 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26305
26306 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26307 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26308
26309 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26310
26311 PR bootstrap/88721
26312 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26313 to -1 on entry.
26314
26315 PR debug/88723
26316 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26317 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26318
26319 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26320
26321 PR target/88717
26322 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26323 ix86_avx_u128_mode_entry.
26324
26325 2019-01-08 Martin Liska <mliska@suse.cz>
26326
26327 PR tree-optimization/88753
26328 * tree-switch-conversion.c (switch_conversion::build_one_array):
26329 Come up with local variable constructor. Convert first to
26330 type of constructor values.
26331
26332 2019-01-08 Richard Biener <rguenther@suse.de>
26333
26334 PR tree-optimization/86554
26335 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26336 rpo_avail): Move earlier.
26337 (visit_nary_op): When value-numbering to expressions
26338 with different overflow behavior make sure there's an
26339 available expression on the path.
26340
26341 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26342
26343 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26344 aarch64_parse_branch_protection,
26345 struct aarch64_branch_protect_type,
26346 aarch64_handle_no_branch_protection,
26347 aarch64_handle_standard_branch_protection,
26348 aarch64_validate_mbranch_protection,
26349 aarch64_handle_pac_ret_protection,
26350 aarch64_handle_attr_branch_protection,
26351 accepted_branch_protection_string,
26352 aarch64_pac_ret_subtypes,
26353 aarch64_branch_protect_types,
26354 aarch64_handle_pac_ret_leaf): Define.
26355 (aarch64_override_options_after_change_1, aarch64_override_options):
26356 Add check for accepted_branch_protection_string.
26357 (aarch64_option_save): Save accepted_branch_protection_string.
26358 (aarch64_option_restore): Save accepted_branch_protection_string.
26359 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26360 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26361 msign-return-address.
26362 * doc/invoke.texi: Add mbranch-protection.
26363
26364 2019-01-08 Alan Modra <amodra@gmail.com>
26365
26366 PR target/88614
26367 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26368 Delete "unknownp" parameter. Adjust callers. Handle
26369 CONST_INT, PLUS, MINUS, and MULT.
26370 (attr_value_aligned): Renamed from or_attr_value.
26371 (min_attr_value): Return INT_MIN for unhandled rtl case..
26372 (min_fn): ..and translate to INT_MAX here.
26373 (write_length_unit_log): Modify to cope without "unknown".
26374 (write_attr_value): Handle IF_THEN_ELSE.
26375
26376 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26377
26378 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26379 optimization for masked stores.
26380
26381 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26382
26383 PR middle-end/88567
26384 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26385 output vector directly to duplicate_and_interleave instead of
26386 going through a temporary. Postpone insertion of ctor_seq to
26387 the end of the loop.
26388
26389 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26390
26391 PR target/86891
26392 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26393 unsigned_p. Handle signed and unsigned overflow correction as
26394 required.
26395 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26396 prototype.
26397 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26398 for operand 2.
26399 (add<mode>3_compareV_imm): Make this callable for expanding.
26400 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26401 aarch64_plus_operand for operand 2.
26402 (subv<GPI:mode>_insn): New insn pattern.
26403 (subv<GPI:mode>_imm): Likewise.
26404 (negv<GPI:mode>3): New expand pattern.
26405 (negv<GPI:mode>_insn): New insn pattern.
26406 (negv<GPI:mode>_cmp_only): Likewise.
26407 (cmpv<GPI:mode>_insn): Likewise.
26408 (subvti4): Use register_operand for operand 1. Update call to
26409 aarch64_expand_subvti.
26410 (usubvti4): Likewise.
26411 (negvti3): New expand pattern.
26412 (negdi_carryout): New insn pattern.
26413 (negvdi_carryinV): New insn pattern.
26414 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26415 version the named version.
26416 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26417 operands.
26418 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26419 patterns.
26420 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26421 patterns.
26422 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26423 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26424 (sub<mode>3_carryinCV): Delete.
26425 (sub<GPI:mode>3_carryinV): New expand pattern.
26426 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26427
26428 2019-01-07 Richard Biener <rguenther@suse.de>
26429
26430 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26431 of tree_operand_hash.
26432
26433 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26434
26435 PR tree-optimization/88598
26436 * tree.h (single_nonzero_element): Declare.
26437 * tree.c (single_nonzero_element): New function.
26438 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26439 if I is the only nonzero element of CST.
26440
26441 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26442
26443 PR tree-optimization/88598
26444 * tree.h (initializer_each_zero_or_onep): Declare.
26445 * tree.c (initializer_each_zero_or_onep): New function.
26446 (signed_or_unsigned_type_for): Handle float types too.
26447 (unsigned_type_for, signed_type_for): Update comments accordingly.
26448 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26449 x & { 0 or -1, 0 or -1, ... }.
26450
26451 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26452
26453 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26454 with x86_64-pc-linux-gnu.
26455
26456 2019-01-07 Tom de Vries <tdevries@suse.de>
26457
26458 PR target/85486
26459 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26460 function.
26461 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26462 routines.
26463
26464 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26465
26466 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26467 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26468 TARGET_AVX512F as condition.
26469
26470 PR debug/88723
26471 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26472 const_not_ok_for_debug_p target hook.
26473 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26474 on UNSPEC and subexpressions thereof if all subexpressions of the
26475 UNSPEC are CONSTANT_P.
26476
26477 PR tree-optimization/88676
26478 * tree-ssa-phiopt.c (two_value_replacement): New function.
26479 (tree_ssa_phiopt_worker): Call it.
26480
26481 PR sanitizer/88619
26482 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26483 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26484
26485 PR c++/85052
26486 * tree-vect-generic.c: Include insn-config.h and recog.h.
26487 (expand_vector_piecewise): Add defaulted ret_type argument,
26488 if non-NULL, use that in preference to type for the result type.
26489 (expand_vector_parallel): Formatting fix.
26490 (do_vec_conversion, do_vec_narrowing_conversion,
26491 expand_vector_conversion): New functions.
26492 (expand_vector_operations_1): Call expand_vector_conversion
26493 for VEC_CONVERT ifn calls.
26494 * internal-fn.def (VEC_CONVERT): New internal function.
26495 * internal-fn.c (expand_VEC_CONVERT): New function.
26496 * fold-const-call.c (fold_const_vec_convert): New function.
26497 (fold_const_call): Use it for CFN_VEC_CONVERT.
26498 * doc/extend.texi (__builtin_convertvector): Document.
26499
26500 2019-01-07 Tom de Vries <tdevries@suse.de>
26501
26502 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26503 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26504 vector_red_partition, vector_red_sym): New global variables.
26505 (nvptx_option_override): Initialize vector_red_sym.
26506 (nvptx_declare_function_name): Restore red_partition register.
26507 (nvptx_file_end): Emit code to declare the vector reduction variables.
26508 (nvptx_output_red_partition): New function.
26509 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26510 large vector reductions.
26511 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26512 (nvptx_init_builtins): Add VECTOR_ADDR.
26513 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26514 Handle nvptx_expand_shared_addr.
26515 (nvptx_get_shared_red_addr): Add vector argument and handle large
26516 vectors.
26517 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26518 large vectors.
26519 (nvptx_goacc_reduction_init): Likewise.
26520 (nvptx_goacc_reduction_fini): Likewise.
26521 (nvptx_goacc_reduction_teardown): Likewise.
26522 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26523 init,fini,teardown}.
26524 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26525 (nvptx_set_current_function): Init vector_red_partition.
26526 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26527 (nvptx_red_partition): New insn.
26528 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26529
26530 2019-01-07 Tom de Vries <tdevries@suse.de>
26531
26532 PR target/85381
26533 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26534 empty loops.
26535
26536 2019-01-07 Tom de Vries <tdevries@suse.de>
26537
26538 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26539 (nvptx_option_override): Init oacc_bcast_partition.
26540 (nvptx_init_oacc_workers): New function.
26541 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26542 (nvptx_needs_shared_bcast): New function.
26543 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26544 to propagate state.
26545 (nvptx_shared_propagate): Initialize vector bcast partition and
26546 synchronization state.
26547 (nvptx_single): Generalize to enable vectors to use shared-memory
26548 to propagate state.
26549 (nvptx_process_pars): Likewise.
26550 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26551 * config/nvptx/nvptx.h (struct machine_function): Add
26552 bcast_partition and sync_bar members.
26553
26554 2019-01-07 Tom de Vries <tdevries@suse.de>
26555
26556 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26557 (nvptx_apply_dim_limits): New function.
26558 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26559 PTX_WARP_SIZE.
26560
26561 2019-01-07 Tom de Vries <tdevries@suse.de>
26562
26563 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26564 as late as possible.
26565
26566 2019-01-07 Tom de Vries <tdevries@suse.de>
26567
26568 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26569 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26570 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26571 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26572 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26573
26574 2019-01-07 Tom de Vries <tdevries@suse.de>
26575
26576 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26577
26578 2019-01-07 Tom de Vries <tdevries@suse.de>
26579
26580 * omp-offload.c (oacc_get_min_dim): New function.
26581 * omp-offload.h (oacc_get_min_dim): Declare.
26582
26583 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26584
26585 PR target/88521
26586 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26587 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26588
26589 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26590
26591 PR tree-opt/86020
26592 Revert:
26593 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26594
26595 * ipa-inline.c (edge_badness): Use inlined_time instead of
26596 inline_summaries->get.
26597
26598 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26599
26600 * opts.c (enable_fdo_optimizations): Enable
26601 version-loops-for-strides, loop-interchange, unrol-and-jam
26602 and tree-loop-distribution.
26603 * invoke.texi: Document newly enabled options.
26604
26605 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26606
26607 * doc/invoke.texi (max-inline-insns-small): New parameters.
26608 * ipa-inline.c (want_early_inline_function_p): simplify.
26609 (want_inline_small_function_p): Fix pasto from previous patch;
26610 use max-inline-insns-small bound.
26611 * params.def (max-inline-insns-small): New param.
26612 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26613 variables correctly.
26614
26615 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26616
26617 * doc/invoke.texi: Document max-inline-insns-size,
26618 uninlined-function-insns, uninlined-function-time,
26619 uninlined-thunk-insns and uninlined-thunk-time.
26620 * params.def: Add max-inline-insns-size,
26621 uninlined-function-insns, uninlined-function-time,
26622 uninlined-thunk-insns and uninlined-thunk-time.
26623 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26624 new parameters.
26625 * ipa-inline.c (can_inline_edge_by_limits_p,
26626 want_inline_small_function_p): Use new parameters.
26627
26628 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26629
26630 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26631
26632 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26633
26634 PR middle-end/82564
26635 PR target/88620
26636 * expr.c (expand_assignment): For calls returning VLA structures
26637 if to_rtx is not a MEM, force it into a stack temporary.
26638
26639 PR debug/88635
26640 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26641 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26642 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26643 subexpressions of both operands.
26644 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26645 subrtxes are CONSTANT_P.
26646 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26647 2018-11-09 changes.
26648
26649 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26650
26651 * params.def (hot-bb-count-ws-permille): Set to 990.
26652
26653 2019-01-04 Martin Sebor <msebor@redhat.com>
26654
26655 PR c/88546
26656 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26657 leaf.
26658
26659 2019-01-04 Martin Sebor <msebor@redhat.com>
26660
26661 PR c/88363
26662 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26663
26664 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26665
26666 * gdbinit.in: Turn off pagination for the skip commands, restore
26667 it to previous state afterwards.
26668
26669 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26670
26671 PR target/88594
26672 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26673 of GET_MODE (opN) as modes of the libcall arguments.
26674
26675 2019-01-04 Jan Beulich <jbeulich@suse.com>
26676
26677 * config/i386/sse.md
26678 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26679 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26680 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26681 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26682 avx512f_vmcmp<mode>3<round_saeonly_name>,
26683 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26684 avx512f_maskcmp<mode>3,
26685 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26686 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26687 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26688 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26689 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26690 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26691 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26692 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26693 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26694 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26695 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26696 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26697 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26698 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26699 avx512cd_maskb_vec_dup<mode>,
26700 avx512cd_maskw_vec_dup<mode>,
26701 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26702 avx512dq_vmfpclass<mode>,
26703 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26704 instead of =Yk.
26705
26706 2019-01-03 Martin Sebor <msebor@redhat.com>
26707
26708 PR tree-optimization/88659
26709 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26710
26711 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26712
26713 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26714 unaligned vsx and avoid lxvd2x/stxvd2x.
26715 (gen_lvx_v4si_move): New function.
26716
26717 2019-01-03 Tom de Vries <tdevries@suse.de>
26718
26719 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26720 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26721 function.
26722 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26723
26724 2019-01-03 Tom de Vries <tdevries@suse.de>
26725
26726 * config/nvptx/nvptx.c (struct offload_attrs): New.
26727 (populate_offload_attrs): New function. Factor mask extraction out of
26728 nvptx_reorg. Add extraction of dimensions.
26729 (nvptx_reorg): Use populate_offload_attrs.
26730
26731 2019-01-03 Tom de Vries <tdevries@suse.de>
26732
26733 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26734 cases for oacc_min_dims_p and routine_p. Add asserts for
26735 oacc_default_dims_p and offload_region_p.
26736
26737 2019-01-03 Tom de Vries <tdevries@suse.de>
26738
26739 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26740 factored out of ...
26741 (nvptx_goacc_validate_dims): ... here.
26742
26743 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26744
26745 PR tree-optimization/85574
26746 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26747 structure.
26748 (struct ssa_equip_hash_traits): Declare.
26749 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26750
26751 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26752
26753 PR debug/88644
26754 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26755 change it to qualified_type.
26756
26757 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26758
26759 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26760 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26761
26762 2019-01-02 Martin Sebor <msebor@redhat.com>
26763 Jeff Law <law@redhat.com>
26764
26765 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26766 (get_range_strlen_tree): Update appropriately.
26767 (get_range_strlen)
26768 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26769
26770 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26771 rather than set_range_info.
26772 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26773 maybe_set_strlen_range. Handle potentially boundary crossing
26774 cases more conservatively.
26775 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26776 Call set_strlen_range.
26777 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26778
26779 PR middle-end/88663
26780 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26781 need the flexp argument.
26782 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26783 from calls to get_range_strlen. Update comments. Just update
26784 VAL for an unterminated const char array and let the reset of the
26785 code handle it normally. No longer try to set *flexp. Adjust
26786 return value.
26787 (get_range_strlen): Update for the new get_range_strlen API.
26788 (get_maxval_strlen): Similarly.
26789 (gimple_fold_builtin_strlen): Handle update meaning of return value
26790 from get_range_strlen.
26791 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26792 get_range_strlen API.
26793
26794 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26795
26796 PR lto/88130
26797 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26798 false at WPA time when body was removed.
26799
26800 2019-01-02 Martin Liska <mliska@suse.cz>
26801
26802 PR tree-optimization/88650
26803 * predict.c (set_even_probabilities): Calculate probability
26804 remainer only when really used.
26805
26806 2019-01-02 Richard Biener <rguenther@suse.de>
26807
26808 PR middle-end/88651
26809 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26810 widest_ints when mangling max_stmt_execution results.
26811
26812 2019-01-02 Richard Biener <rguenther@suse.de>
26813
26814 PR tree-optimization/88621
26815 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26816 bitfields when canoncalizing.
26817
26818 2019-01-02 Richard Biener <rguenther@suse.de>
26819
26820 PR target/87545
26821 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26822 cost of cheap SSE instruction.
26823
26824 2019-01-02 Richard Biener <rguenther@suse.de>
26825
26826 PR ipa/85574
26827 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26828 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26829 function.
26830 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26831 set after UIDs before splitting them.
26832
26833 2019-01-01 Martin Sebor <msebor@redhat.com>
26834 Jeff Law <law@redhat.com>
26835
26836 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26837 length is optimistic. If it is, then arrange to compute the
26838 conservative length as well.
26839
26840 * gimple-fold.h (get_range_strlen): Update prototype.
26841 * builtins.c (check_access): Update call to get_range_strlen to use
26842 c_strlen_data pointer. Change various variable accesses to instead
26843 pull data from the c_strlen_data structure.
26844 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26845 * calls.c (maybe_warn_nonstring_arg): Likewise.
26846 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26847 minimum length if maximum lengh is unknown.
26848 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26849 that used c_strlen, it's no longer needed. Restructure slightly.
26850 (format_string): Set unlikely range appropriately.
26851 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26852 formatting issues.
26853 (get_range_strlen): Accept c_strlen_data pointer for external
26854 call sites as well. Pass through to call to internal get_range_strlen.
26855 Adjust minlen, maxlen and maxbound as needed.
26856 (get_maxval_strlen): Update comments.
26857 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26858 to use c_strlen_data pointer. Change variable accesses to instead
26859 use c_strlen_data data members.
26860
26861 * gimple-fold.c (get_range_strlen): Update prototype.
26862 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26863 local variables. Use pdata to return information to caller.
26864 Update calls to get_range_strlen. Update pdata->maxbound.
26865 (get_range_strlen -- static version): Similarly.
26866 (get_range_strlen -- extern version): Update for internal
26867 get_range_strlen API change. Convert to external data format.
26868 (get_maxval_strlen): Similarly.
26869
26870 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26871
26872 * coverage.c (get_coverage_counts): Use current_function_decl.
26873 * profile.c (read_thunk_profile): New function.
26874 (branch_prob): Add THUNK parameter.
26875 * tree-profile.c (tree_profiling): Handle thunks.
26876 * value-prof.c (init_node_map): Handle thunks.
26877 * value-prof.h (branch_prob): Upate prototype.
26878 (read_thunk_profile): Declare.
26879
26880 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26881
26882 Update copyright years.
26883
26884 * gcc.c (process_command): Update copyright notice dates.
26885 * gcov-dump.c (print_version): Ditto.
26886 * gcov.c (print_version): Ditto.
26887 * gcov-tool.c (print_version): Ditto.
26888 * gengtype.c (create_file): Ditto.
26889 * doc/cpp.texi: Bump @copying's copyright year.
26890 * doc/cppinternals.texi: Ditto.
26891 * doc/gcc.texi: Ditto.
26892 * doc/gccint.texi: Ditto.
26893 * doc/gcov.texi: Ditto.
26894 * doc/install.texi: Ditto.
26895 * doc/invoke.texi: Ditto.
26896 \f
26897 Copyright (C) 2019 Free Software Foundation, Inc.
26898
26899 Copying and distribution of this file, with or without modification,
26900 are permitted in any medium without royalty provided the copyright
26901 notice and this notice are preserved.