[arm] fix bootstrap failure due to uninitialized warning
[gcc.git] / gcc / ChangeLog
1 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
4
5 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6
7 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8 operands which correspond to the same input-output register to
9 have the same pseudo assigned to them.
10
11 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
12
13 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
14
15 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
16
17 * config/aarch64/aarch64.c (aarch64_classify_symbol):
18 Apply reasonable limit to symbol offsets.
19
20 2019-10-16 Richard Biener <rguenther@suse.de>
21
22 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
23 (vect_is_simple_reduction): Delay checking to
24 vectorizable_reduction and relax the checking.
25 (vectorizable_reduction): Check we have a simple use. Check
26 for bogus condition reductions.
27 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
28 are looking at the last stmt in a pattern sequence when
29 filling in backedge PHI values.
30
31 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
32 Jiufu Guo <guojiufu@linux.ibm.com>
33
34 PR target/70010
35 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
36 the callee explicitly disables some isa_flags the caller is using.
37
38 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
39
40 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
41
42 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
43
44 * genmodes.c (mode_data::order): New field.
45 (blank_mode): Update accordingly.
46 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
47 (make_vector_modes): Likewise.
48 (VECTOR_MODES): Update use accordingly.
49 (cmp_modes): Sort by the new order field ahead of sorting by size.
50 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
51 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
52 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
53 (aarch64_classify_vector_mode): Handle the new partial modes.
54 (aarch64_vl_bytes): New function.
55 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
56 when counting the number of registers in an SVE mode.
57 (aarch64_class_max_nregs): Likewise.
58 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
59 in registers yet.
60 (aarch64_classify_address): Treat partial vectors analogously
61 to full vectors.
62 (aarch64_print_address_internal): Consolidate the printing of
63 MUL VL addresses, using aarch64_vl_bytes as the number of
64 bytes represented by "VL".
65 (aarch64_vector_mode_supported_p): Reject partial vector modes.
66
67 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
68
69 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
70 rather than known_lt when choosing frame layouts.
71
72 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
73
74 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
75 that all the adjustments add up to the full frame size.
76 Use crtl->outgoing_args_size directly as the final adjustment
77 where appropriate.
78
79 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
80
81 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
82 "frame" reference instead of always referring directly to
83 "cfun->machine->frame".
84
85 2019-10-16 Richard Biener <rguenther@suse.de>
86
87 PR tree-optimization/92119
88 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
89 against missing bswap lhs.
90
91 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
92
93 PR middle-end/92033
94 * poly-int.h (constant_lower_bound_with_limit): New function.
95 (constant_upper_bound_with_limit): Likewise.
96 * doc/poly-int.texi: Document them.
97 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
98 into the worst-case INTEGER_CST bounds.
99
100 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
101
102 PR ipa/91088
103 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
104 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
105 * ipa-predicat.h (struct expr_eval_op): New struct.
106 (expr_eval_ops): New typedef.
107 (struct condition): Add type and param_ops fields, remove size field.
108 (add_condition): Replace size parameter with type parameter, add
109 param_ops parameter.
110 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
111 (predicate::add_clause): Add comparisons on type and param_ops.
112 (dump_condition): Add debug dump for param_ops.
113 (remap_after_inlining): Adjust call arguments to add_condition.
114 (add_condition): Replace size parameter with type parameter, add
115 param_ops parameter. Unshare constant value used in conditions.
116 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
117 parameter expressions using param_ops.
118 (decompose_param_expr): New function.
119 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
120 to replace call to unmodified_parm_or_parm_agg_item.
121 (set_switch_stmt_execution_predicate): Likewise.
122 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
123 with type.
124 (inline_read_section): Read param_ops from summary stream.
125 (ipa_fn_summary_write): Write param_ops to summary stream.
126
127 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
128
129 PR rtl-optimization/92107
130 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
131 expression written.
132
133 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
134
135 * config/darwin.c: Update description of fix and continue.
136
137 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
138
139 * config/darwin.c (darwin_binds_local_p): Update to call
140 default_binds_local_p_3 () directly. amend comments.
141
142 2019-10-15 Richard Biener <rguenther@suse.de>
143
144 * lto-streamer-out.c (lto_variably_modified_type_p): New.
145 (tree_is_indexable): Use it.
146 * tree-streamer-out.c (pack_ts_type_common_value_fields):
147 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
148 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
149
150 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
151
152 * config/msp430/msp430.md (zero_extendqipsi2): New.
153 (zero_extendqisi2): Optimize case where src register and base dst
154 register are the same.
155 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
156 (zero_extendpsisi2): Optimize r->m case.
157 Add unnamed insn patterns to catch insns combine searches for when
158 optimizing pointer manipulation.
159
160 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
161
162 * config/msp430/msp430.md: Group zero_extend* insns together.
163
164 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
165
166 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
167 constraint.
168 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
169 POST_INC.
170 (msp430_subreg): Likewise.
171 (msp430_split_addsi): Likewise.
172 (msp430_print_operand_addr): Likewise.
173 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
174 (USE_STORE_POST_INCREMENT): Define.
175 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
176 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
177 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
178 (msp430_general_dst_operand): New.
179 (msp430_general_dst_nonv_operand): New.
180 (msp430_nonsubreg_operand): Remove.
181 (msp430_nonsubreg_dst_operand): New.
182 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
183 of defunct msp430_nonsubreg_operand.
184 (msp430_nonsubregnonpostinc_or_imm_operand): New.
185
186 2019-10-15 Richard Biener <rguenther@suse.de>
187
188 PR tree-optimization/91929
189 * tree-ssa-pre.c (pre_expr_d::loc): New member.
190 (get_or_alloc_expr_for_name): Initialize it.
191 (get_or_alloc_expr_for_constant): Likewise.
192 (phi_translate_1): Copy it.
193 (create_expression_by_pieces): Use the original location
194 of the expression for the inserted stmt.
195 (compute_avail): Record the location of the stmt for the
196 expressions created.
197
198 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
199
200 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
201 before using tree_to_uhwi.
202
203 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
204
205 * config/s390/s390.md: Run %a0:DI splitters only after reload.
206
207 2019-10-15 Richard Biener <rguenther@suse.de>
208
209 PR tree-optimization/92094
210 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
211 do not adjust the reduction definition def type.
212 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
213 defines the latch argument of the PHI.
214
215 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
216
217 PR target/92035
218 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
219 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
220 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
221 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
222 _mm_maskz_roundscale_round_sd): New intrinsics.
223 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
224 __builtin_ia32_rndscales?_mask_round builtins instead of
225 __builtin_ia32_rndscales?_round.
226 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
227 __builtin_ia32_rndscalesd_round): Remove.
228 (__builtin_ia32_rndscaless_mask_round,
229 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
230 * config/i386/sse.md
231 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
232 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
233 ... this, adjust and add subst atrributes to make it maskable.
234
235 2019-10-15 Richard Biener <rguenther@suse.de>
236
237 PR middle-end/92046
238 * common.opt (fallow-store-data-races): New.
239 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
240 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
241 * doc/invoke.texi (fallow-store-data-races): Document.
242 (--param allow-store-data-races): Remove docs.
243 * opts.c (default_options_table): Enable -fallow-store-data-races
244 at -Ofast.
245 (default_options_optimization): Do not enable --param
246 allow-store-data-races at -Ofast.
247 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
248 instead of PARAM_ALLOW_STORE_DATA_RACES.
249 * tree-ssa-loop-im.c (execute_sm): Likewise.
250
251 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
252
253 PR tree-optimization/92085
254 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
255 instead of calling it unconditionally after
256 delete_dead_or_redundant_assignment and fix indentation.
257
258 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
259
260 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
261 TARGET_VFP_DOUBLE.
262 (*fmsub<SDF:mode>4): Likewise.
263 *fnmsub<SDF:mode>4): Likewise.
264 (*fnmadd<SDF:mode>4): Likewise.
265
266 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
267
268 * doc/tree-ssa.texi: Update renamed macro name.
269
270 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
271
272 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
273 vector constants.
274
275 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
276
277 * config/darwin.c: Use unsigned ints for the picbase label
278 counters, initialise the vars explicitly.
279 (update_pic_label_number_if_needed): Move a variable declaration
280 to where it's needed.
281 (machopic_output_function_base_name): Use a more strict checking
282 assert, and and unsigned int for the picbase label counter.
283 (machopic_get_function_picbase): Likewise.
284
285 2019-10-14 Richard Biener <rguenther@suse.de>
286
287 PR middle-end/92046
288 * dse.c (scan_insn): Use param max_active_local_stores.
289 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
290 based on optimization level.
291 * loop-invariant.c (move_loop_invariants): Adjust
292 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
293 * opts.c (default_options_optimization): Do not adjust
294 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
295 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
296
297 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
298
299 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
300
301 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
302
303 * config/arm/arm.c (arm_option_override): Don't override sched
304 pressure algorithm.
305
306 2019-10-14 Richard Biener <rguenther@suse.de>
307
308 PR tree-optimization/92069
309 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
310 cycles do not set vect_nested_cycle on the latch definition.
311
312 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
313
314 * function-abi.h (expr_callee_abi): Declare.
315 * function-abi.cc (expr_callee_abi): New function.
316
317 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
318
319 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
320 into [1,MAX].
321 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
322 non-zero being represented as [1,MAX].
323
324 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
325
326 * tree-sra.c (dump_access): Add missing braces.
327
328 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
329
330 * config/darwin.c (machopic_indirection_name): Rework the
331 function to emit linker-visible symbols only for indirections
332 in the data section. Clean up the code and update comments.
333
334 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
335
336 * config/darwin.c (machopic_indirect_data_reference): Remove
337 redundant code.
338
339 2019-10-13 Nathan Sidwell <nathan@acm.org>
340
341 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
342
343 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344
345 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
346 c99_runtime.
347
348 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
349
350 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
351 so non-virutal are before virutals.
352 (output_function): Avoid body modifications.
353
354 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
355
356 * config/pa/pa.c (pa_output_call): Load descriptor address to register
357 %r22. Load function address before global pointer.
358 (pa_attr_length_indirect_call): Adjust length of inline versions of
359 $$dyncall.
360 (pa_output_indirect_call): Remove fast inline version of $$dyncall
361 before normal cases. Update inline $$dyncall sequences to preserve
362 function descriptor address in register %r22.
363 (TRAMPOLINE_CODE_SIZE): Adjust.
364 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
365 register %r22 contains trampoline address.
366 (pa_trampoline_init): Adjust offsets.
367 (pa_trampoline_adjust_address): Likewise.
368 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
369
370 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
371
372 PR target/67183
373 * config/darwin.c (machopic_indirection): New field to flag
374 non-lazy-symbol-pointers in the data section.
375 (machopic_indirection_name): Compute if an indirection should
376 appear in the data section.
377 (machopic_output_data_section_indirection): New callback split
378 from machopic_output_indirection.
379 (machopic_output_stub_indirection): Likewise.
380 (machopic_output_indirection): Retain the code for non-lazy
381 symbol pointers in their regular section.
382 (machopic_finish): Use the new callbacks to order the indirection
383 output.
384
385 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
386
387 * config/darwin-protos.h (machopic_finish): Delete.
388 * config/darwin.c (machopic_finish): Make static.
389
390 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
391
392 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
393 sections when building kernel extension code.
394
395 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
396
397 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
398 later standard."
399
400 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
401
402 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
403 from warning.
404
405 2019-10-12 Jakub Jelinek <jakub@redhat.com>
406
407 PR middle-end/92063
408 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
409 <case VEC_COND_EXPR>: Return false with *handled = false.
410 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
411 recursing on the first operand.
412 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
413 instead of tree_could_trap_p.
414 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
415
416 2019-10-11 Jim Wilson <jimw@sifive.com>
417
418 PR rtl-optimization/91860
419 * combine.c (subst): If new_rtx is a constant, also check for
420 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
421
422 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
423
424 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
425 INTVAL when calling store_bit_field.
426
427 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
428
429 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
430 size.
431
432 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
433
434 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
435 vectorizable_live_operation.
436 (vectorizable_live_operation): Adjust parameters.
437 * tree-vect-stmts.c (vect_init_vector,
438 vect_gen_widened_results_half): Fix typo in function comment.
439 (can_vectorize_live_stmts): Adjust function comment.
440 Adjust parameters. Adjust call to vectorizable_live_operation.
441 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
442 (vect_transform_stmt): Adjust function comment. Adjust call to
443 can_vectorize_live_stmts.
444 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
445
446 2019-10-11 Richard Biener <rguenther@suse.de>
447
448 PR tree-optimization/90883
449 PR tree-optimization/91091
450 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
451 alias-sets both for recording VN table entries and continuing
452 walking after translating through copies. Handle same-sized
453 reads from SSA names by returning the plain SSA name.
454 (eliminate_dom_walker::eliminate_stmt): Properly handle
455 non-size precision stores in redundant store elimination.
456
457 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
458
459 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
460 (ggc_collect): Dump later to not interfere with release_page dump.
461 (ggc_trim): New function.
462 * ggc-none.c (ggc_trim): New.
463 * ggc.h (ggc_trim): Declare.
464
465 2019-10-11 Richard Biener <rguenther@suse.de>
466
467 PR tree-optimization/92066
468 PR tree-optimization/92046
469 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
470 Fix bogus cost model check.
471
472 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
473
474 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
475 (LANG_HOOKS_DECLS): Add it.
476 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
477 update comment for omp_is_optional_argument.
478 * omp-general.c (omp_is_allocatable_or_ptr): New.
479 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
480 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
481 Fortran's optional arguments and allocatable/pointer scalars
482 with use_device_addr.
483
484 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
485
486 PR target/77918
487 * config/s390/2827.md: Add new opcodes.
488 * config/s390/2964.md: Likewise.
489 * config/s390/3906.md: Likewise.
490 * config/s390/8561.md: Likewise.
491 * config/s390/s390-builtins.def (s390_vfchesb): Use
492 the new vec_cmpgev4sf_quiet_nocc.
493 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
494 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
495 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
496 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
497 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
498 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
499 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
500 * config/s390/s390-modes.def (CCSFPS): New mode.
501 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
502 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
503 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
504 (s390_expand_vec_compare): Use non-signaling patterns where
505 necessary.
506 (s390_reverse_condition): Support CCSFPS.
507 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
508 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
509 (asm_fcmp_op): Likewise.
510 (*smaxv2df3_vx): Use pattern for quiet comparison.
511 (*sminv2df3_vx): Likewise.
512 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
513 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
514 (vec_cmpgt<mode>_quiet_nocc): Likewise.
515 (vec_cmplt<mode>_quiet_nocc): New expander.
516 (vec_cmpge<mode>_quiet_nocc): New pattern.
517 (vec_cmple<mode>_quiet_nocc): New expander.
518 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
519 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
520 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
521 (*vec_cmpge<mode>_signaling_nocc): Likewise.
522 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
523 (vec_cmpungt<mode>): New expander.
524 (vec_cmpunge<mode>): Likewise.
525 (vec_cmpuneq<mode>): Use quiet patterns.
526 (vec_cmpltgt<mode>): Allow only on z14+.
527 (vec_cmpordered<mode>): Use quiet patterns.
528 (vec_cmpunordered<mode>): Likewise.
529 (VEC_CMP_EXPAND): Add ungt and unge.
530
531 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
532
533 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
534 parameter.
535 * lto-streamer-out.c: Include tree-dfa.h.
536 (output_cfg): Do not use cfun.
537 (lto_prepare_function_for_streaming): New.
538 (output_function): Do not push cfun; do not initialize loop optimizer.
539 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
540 * passes.c (ipa_write_summaries): Use it.
541 (ipa_write_optimization_summaries): Do not modify bodies.
542 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
543 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
544 * tree-ssa-dse.c (pass_dse::execute): Update use of
545 renumber_gimple_stmt_uids.
546 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
547
548 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
549
550 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
551 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
552
553 2019-10-10 Joseph Myers <joseph@codesourcery.com>
554
555 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
556 macros.
557 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
558 Also define DFP macros for these conditions.
559 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
560 DEC128_SUBNORMAL_MIN): Do not define.
561 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
562 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
563
564 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
565 Sandra Loosemore <sandra@codesourcery.com>
566
567 PR middle-end/26241
568 * doc/lto.texi (IPA): Reference to the IPA passes.
569 * doc/passes.texi (Pass manager): Add node IPA passes and
570 description for each IPA pass.
571
572 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
573
574 * ipa-reference.c: Do not include splay-tree.h
575 (reference_vars_to_consider): Turn to hash map.
576 (get_static_name, ipa_init, analyze_function, propagate,
577 stream_out_bitmap, ipa_reference_write_optimization_summary,
578 ipa_reference_write_optimization_summary): Update.
579
580 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
581
582 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
583
584 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
585
586 * config/darwin.c: Lookup Objective C metadata and force indirection
587 for IVAR refs.
588
589 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
590
591 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
592 addresses.
593 (mem_operand_gpr): Add check for prefixed addresses.
594 (mem_operand_ds_form): Add check for prefixed addresses.
595 (rs6000_legitimate_offset_address_p): If we support prefixed
596 addresses, check for a 34-bit offset instead of 16-bit.
597 (rs6000_legitimate_address_p): Add check for prefixed addresses.
598 Do not allow load/store with update if the address is prefixed.
599 (rs6000_mode_dependent_address): If we support prefixed
600 addresses, check for a 34-bit offset instead of 16-bit.
601
602 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
603
604 PR target/77918
605 * config/s390/vector.md (vcond_comparison_operator): New
606 predicate.
607 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
608
609 2019-10-10 David Malcolm <dmalcolm@redhat.com>
610
611 PR 87488
612 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
613 -D.
614 * configure.ac (--with-documentation-root-url): New option.
615 * configure: Regenerate.
616 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
617 option URL, add it as a new string field of the diagnostic option.
618 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
619 (print_option_information): If get_option_url is non-NULL, call
620 it, and if the result is non-NULL, potentially emit an escape
621 sequence to markup the option text with the resulting URL.
622 * diagnostic.h (diagnostic_context::get_option_url): New callback.
623 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
624 example of JSON output.
625 * opts-diagnostic.h (get_option_url): New decl.
626 * opts.c (get_option_url): New function.
627 * toplev.c (general_init): Initialize the get_option_url callback.
628
629 2019-10-10 David Malcolm <dmalcolm@redhat.com>
630
631 PR 87488
632 * common.opt (fdiagnostics-urls=): New option.
633 (diagnostic-url.h): Add SourceInclude.
634 (diagnostic_url_rule): New enum.
635 * diagnostic-color.c: Include "diagnostic-url.h".
636 (diagnostic_urls_enabled_p): New function.
637 * diagnostic-url.h: New file.
638 * diagnostic.c: Include "diagnostic-url.h".
639 (diagnostic_urls_init): New function.
640 * diagnostic.h (diagnostic_urls_init): New decl.
641 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
642 -fdiagnostics-urls to the list.
643 (-fdiagnostics-urls): New option.
644 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
645 (driver::global_initializations): Call diagnostic_urls_init.
646 * opts-global.c (init_options_once): Likewise.
647 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
648 * pretty-print.c (pretty_printer::pretty_printer): Initialize
649 show_urls.
650 (pp_begin_url): New function.
651 (pp_end_url): New function.
652 (selftest::test_urls): New selftest.
653 (selftest::pretty_print_c_tests): Call it.
654 * pretty-print.h (pretty_printer::show_urls): New field.
655 (pp_begin_url): New decl.
656 (pp_end_url): New decl.
657
658 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
659
660 PR target/92022
661 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
662
663 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
664
665 PR target/88630
666 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
667 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
668 also for TARGET_FPU_SH4_300.
669 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
670 TARGET_SH4_300.
671 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
672 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
673 (*negsf2_i): Split into ...
674 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
675 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
676 (**abssf2_i): Split into ...
677 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
678 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
679 (*negdf2_i): Split into ...
680 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
681 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
682 (**abssf2_i): Split into ...
683 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
684
685 2019-10-10 Richard Biener <rguenther@suse.de>
686
687 PR middle-end/92046
688 * opts.c (finish_options): Do not influence global --params
689 from options that are adjustable per function.
690 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
691 Apply --param adjustment based on active cost-model.
692 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
693 further store-sinking when vectorization or if-conversion
694 are not enabled.
695
696 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
697
698 PR middle-end/92037
699 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
700 rather than ggc_alloc_cleared to alloc symbol table.
701 * toplev.c (general_init): Likewise.
702 * cgraph.h (symbol_table): Explicitly construct every field.
703
704 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
705
706 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
707 (PF_Z15): ... this.
708 * config.gcc: Add z15 as option for --with-arch and --with-tune
709 configure switches.
710 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
711 error reporting for unsupported builtins.
712 * config/s390/s390-opts.h (enum processor_type): Rename
713 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
714 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
715 * config/s390/driver-native.c (s390_host_detect_local_cpu):
716 Likewise.
717 * config/s390/s390-builtins.def: Likewise.
718 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
719 (s390_expand_builtin): Add missing check for unsupported builtins.
720 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
721 (s390_rtx_costs): Likewise.
722 (s390_get_sched_attrmask): Rename arch13 to z15.
723 (s390_get_unit_mask): Likewise.
724 (s390_is_fpd): Likewise.
725 (s390_is_fxd): Likewise.
726 * config/s390/s390.h (enum processor_flags): Likewise.
727 * config/s390/s390.md: Likewise.
728 * config/s390/vector.md: Likewise.
729 * config/s390/vx-builtins.md: Likewise.
730 * config/s390/s390.opt: Add z15 to processor_type value.
731
732 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
733
734 PR target/91035
735 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
736 prototype.
737 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
738 ("split_stack_data", "split_stack_call")
739 ("split_stack_call_<mode>", "split_stack_cond_call")
740 ("split_stack_cond_call_<mode>"): Remove.
741 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
742 insn definition.
743 * config/s390/s390.c (s390_output_split_stack_data): New function.
744 (s390_expand_split_stack_prologue): Use the merged expander.
745
746 2019-10-09 Martin Sebor <msebor@redhat.com>
747
748 PR tree-optimization/90879
749 * builtins.c (check_access): Avoid using maxbound when null.
750 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
751 * doc/invoke.texi (-Wstring-compare): Document new warning option.
752 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
753 conditional.
754 (get_range_strlen): Overwrite initial maxbound when non-null.
755 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
756 changes.
757 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
758 (used_only_for_zero_equality): New function.
759 (handle_builtin_memcmp): Call it.
760 (determine_min_objsize): Return an integer instead of tree.
761 (get_len_or_size, strxcmp_eqz_result): New functions.
762 (maybe_warn_pointless_strcmp): New function.
763 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
764 between a longer string and a smaller array.
765 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
766
767 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
768
769 * config/darwin.c (darwin_override_options): Make the check for
770 Objective-C ABI version more specific for 64bit code.
771
772 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
773
774 * config/darwin.c (machopic_indirect_data_reference): Set flag to
775 indicate that the new symbol is an indirection.
776 (machopic_indirect_call_target): Likewise.
777 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
778 (MACHO_SYMBOL_INDIRECTION_P): New.
779 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
780
781 2019-10-08 Jason Merrill <jason@redhat.com>
782
783 * doc/invoke.texi: Document -fconcepts-ts.
784
785 2019-10-09 Richard Biener <rguenther@suse.de>
786
787 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
788 allow stmts other than GIMPLE_ASSIGN in nested cycles.
789
790 2019-10-08 Richard Biener <rguenther@suse.de>
791
792 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
793 (_stmt_vec_info::force_single_cycle): Likewise.
794 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
795 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
796 * tree-vect-loop.c (vectorizable_reduction): Set
797 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
798 (vect_transform_reduction): Use them to remove redundant code.
799 (vect_transform_cycle_phi): Likewise.
800
801 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
802
803 PR tree-optimization/90836
804 * gcc/match.pd (popcount): New pattern.
805
806 2019-10-08 Martin Sebor <msebor@redhat.com>
807
808 PR middle-end/92026
809 PR middle-end/92014
810 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
811 again once nbytes has been set. Set the access size when not yet set.
812
813 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
814
815 * config/darwin.c (machopic_select_section): Remove dead code for
816 old Objective-C section selection method, replace with unreachable.
817
818 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
819
820 * config/darwin.c (machopic_indirect_data_reference): Check for
821 required indirections before making direct access to defined
822 values.
823 (machopic_output_indirection): Place the indirected pointes for
824 required indirections into the non-lazy symbol pointers section.
825 (darwin_encode_section_info):
826 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
827 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
828
829 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
830
831 PR target/91994
832 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
833 instead of ALL_SSE_REG to check if function call preserves some
834 256-bit SSE registers.
835
836 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
837
838 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
839 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
840 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
841
842 2019-10-08 Richard Biener <rguenther@suse.de>
843
844 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
845 (_stmt_vec_info::is_reduc_info): Add.
846 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
847 (vectorizable_condition): Remove.
848 (vectorizable_shift): Likewise.
849 (vectorizable_reduction): Adjust.
850 (info_for_reduction): New.
851 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
852 (vect_analyze_scalar_cycles_1): ... here.
853 (vect_analyze_loop_operations): Adjust.
854 (needs_fold_left_reduction_p): Simplify for single caller.
855 (vect_is_simple_reduction): Likewise. Remove stmt restriction
856 for nested cycles not part of double reductions.
857 (vect_model_reduction_cost): Pass in the reduction type.
858 (info_for_reduction): New function.
859 (vect_create_epilog_for_reduction): Use it, access reduction
860 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
861 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
862 (vectorize_fold_left_reduction): Remove pointless assert.
863 (vectorizable_reduction): Analyze the full reduction when
864 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
865 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
866 stmt code-generation to vectorizable_* in most cases. Verify
867 code-generation only for cases handled by
868 vect_transform_reductuon.
869 (vect_transform_reduction): Use info_for_reduction to get at
870 reduction meta. Simplify.
871 (vect_transform_cycle_phi): Likewise.
872 (vectorizable_live_operation): Likewise.
873 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
874 at the PHI node for STMT_VINFO_REDUC_TYPE.
875 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
876 longer necessary code.
877 * tree-vect-stmts.c (vectorizable_shift): Make static again.
878 (vectorizable_condition): Likewise. Get at reduction related
879 info via info_for_reduction.
880 (vect_analyze_stmt): Adjust.
881 (vect_transform_stmt): Likewise.
882 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
883 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
884
885 2019-10-08 Joseph Myers <joseph@codesourcery.com>
886
887 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
888 -fno-fp-int-builtin-inexact default for C2X.
889
890 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
891 Richard Biener <rguenther@suse.de>
892
893 PR tree-optimization/91532
894 * tree-if-conv.c: Include tree-ssa-dse.h.
895 (ifcvt_local_dce): Change param from bb to loop,
896 and call dse_classify_store.
897 (tree_if_conversion): Pass loop instead of loop->header as arg
898 to ifcvt_local_dce.
899 * tree-ssa-dse.c: Include tree-ssa-dse.h.
900 (delete_dead_or_redundant_assignment): Remove static qualifier from
901 declaration, and add prototype in tree-ssa-dse.h.
902 (dse_store_status): Move to tree-ssa-dse.h.
903 (dse_classify_store): Remove static qualifier and add new tree param
904 stop_at_vuse, and add prototype in tree-ssa-dse.h.
905 * tree-ssa-dse.h: New header.
906
907 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
908
909 * config/darwin.c (machopic_output_indirection): Don't put
910 hidden symbol indirections into the .data section, use the
911 non-lazy symbol pointers section as normal.
912 (darwin_encode_section_info): Record if a symbol is hidden.
913 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
914 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
915
916 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
917
918 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
919 predicates instead of accessing bits directly.
920 (machopic_indirect_call_target): Likewise.
921 (machopic_output_indirection): Likewise.
922 (darwin_encode_section_info): Improve description. Use renamed
923 symbol flags. Use predicate macros for variables and functions.
924 * config/darwin.h:
925 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
926 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
927 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
928 (MACHO_SYMBOL_VARIABLE_P): New.
929 (MACHO_SYMBOL_DEFINED_P):New.
930 (MACHO_SYMBOL_STATIC_P): New.
931 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
932 (SYMBOL_FLAG_SUBT_DEP): New.
933 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
934
935 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
936
937 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
938 (msp430_expand_epilogue): Likewise.
939 * config/msp430/predicates.md: Likewise.
940 * config/msp430/msp430.md: Likewise.
941 Replace blocks of 8 spaces with tabs.
942
943 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
944
945 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
946 * config/msp430/msp430.c (msp430_split_addsi): New.
947 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
948 a block of C code for splitting addsi.
949
950 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
951
952 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
953 ix86_expand_rounddf_32): Reorder functions.
954 * config/i386/i386-protos.h: Update.
955
956 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
957
958 * config.in: Regenerate.
959 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
960 Add new "Yx" constraint.
961 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
962 function.
963 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
964 prototype.
965 * config/msp430/msp430.c (msp430_option_override): Allow the lower
966 code/data region to be selected in the small memory model.
967 (msp430_section_attr): Don't warn if the "section" and "lower"
968 attributes are used together.
969 (msp430_handle_generic_attribute): Likewise.
970 (msp430_var_in_low_mem): New function.
971 (TARGET_ENCODE_SECTION_INFO): Define.
972 (msp430_encode_section_info): New function.
973 (gen_prefix): Return early in the small memory model.
974 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
975 ".lower" prefix if -m{code,data}-region=lower have been passed.
976 (msp430_output_aligned_decl_common): Emit common symbols when
977 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
978 set.
979 (TARGET_ASM_FILE_END): Define.
980 (msp430_file_end): New function.
981 (msp430_do_not_relax_short_jumps): Allow relaxation when
982 function will be in the lower region.
983 (msp430_op_not_in_high_mem): New function.
984 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
985 the 'X' operand selector.
986 Clarify comment for 'x' operand selector.
987 * config/msp430/msp430.h (LINK_SPEC): Propagate
988 -m{code,data}-region to the linker via spec function
989 msp430_propagate_region_opt.
990 (msp430_propagate_region_opt): New prototype.
991 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
992 (SYMBOL_FLAG_LOW_MEM): Define.
993 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
994 selector.
995 (zero_extendqihi2): Fix operand number used by "%X" selector.
996 (zero_extendqisi2): Likewise.
997 (zero_extendhisi2): Likewise.
998 (movqi): Use "Yx" constraint in place of "%X" operand selector.
999 (movhi): Likewise.
1000 (addqi3): Likewise.
1001 (addhi3): Likewise.
1002 (addsi3): Likewise.
1003 (addhi3_cy): Likewise.
1004 (addchi4_cy): Likewise.
1005 (subqi3): Likewise.
1006 (subhi3): Likewise.
1007 (subsi3): Likewise.
1008 (bic<mode>3): Likewise.
1009 (and<mode>3): Likewise.
1010 (ior<mode>3): Likewise.
1011 (xor<mode>3): Likewise.
1012 (slli_1): Add missing "%X" operand selector.
1013 (slll_1): Likewise.
1014 (slll_2): Likewise.
1015 (srai_1): Likewise.
1016 (sral_1): Likewise.
1017 (sral_2): Likewise.
1018 (srli_1): Likewise.
1019 (srll_1): Likewise.
1020 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1021 selector.
1022 (cbranchhi4_real): Likewise.
1023 (cbranchqi4_reversed): Likewise.
1024 (cbranchhi4_reversed): Likewise.
1025 (*bitbranch<mode>4): Likewise.
1026 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1027 * config/msp430/msp430.opt (mcode-region=): Set default to
1028 MSP430_REGION_LOWER. Improve docstring.
1029 (mdata-region=): Likewise.
1030 (muse-lower-region-prefix): New option.
1031 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1032 mdata-region=none multilib.
1033 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1034 mdata-region=none multilib.
1035 MULTILIB_EXCEPTIONS: Remove.
1036 MULTILIB_REQUIRED: Define.
1037 * configure: Regenerate.
1038 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1039 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1040 * doc/extend.texi: Clarify comment for {upper,lower,either}
1041 function attributes.
1042 Add separate description for "lower" variable attribute.
1043
1044 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1045
1046 PR target/77918
1047 * optabs-tree.c (vcond_icode_p): New function.
1048 (vcond_eq_icode_p): Likewise.
1049 (expand_vec_cond_expr_p): Use vcond_icode_p and
1050 vcond_eq_icode_p.
1051 * optabs.c (can_vcond_compare_p): New function.
1052 * optabs.h (can_vcond_compare_p): Likewise.
1053
1054 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1055
1056 PR target/77918
1057 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1058 caller passes a non-trapping condition.
1059 (is_gimple_condexpr): Allow trapping conditions.
1060 (is_gimple_condexpr_1): New helper function.
1061 (is_gimple_condexpr_for_cond): New function, acts like old
1062 is_gimple_condexpr.
1063 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1064 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1065 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1066 * gimplify.c (gimplify_cond_expr): Use
1067 is_gimple_condexpr_for_cond.
1068 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1069 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1070 VEC_COND_EXPR.
1071 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1072 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1073 is_gimple_condexpr_for_cond, remove pointless tmp check
1074 (forward_propagate_into_cond): Remove pointless tmp check.
1075
1076 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1077
1078 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1079 match that of other gsi_next_* functions. Adjust the comment.
1080 (gsi_start_nonvirtual_phis): New function.
1081 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1082 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1083
1084 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1085
1086 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1087 setjmp situation here. Fix a verb's ending: "the exact variables or
1088 elements for which there are warnings depends" -> "... depend".
1089
1090 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1091
1092 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1093
1094 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1095
1096 * ipa-prop.c (ipa_vr::nonzero_p): New.
1097 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1098 non-zero range.
1099 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1100 * tree-vrp.c (range_has_numeric_bounds_p): New.
1101 (range_int_cst_p): Use range_has_numeric_bounds_p.
1102 (get_range_op_handler): New.
1103 (supported_types_p): New.
1104 (defined_ranges_p): New.
1105 (drop_undefines_to_varying): New.
1106 (range_fold_binary_symbolics_p): New.
1107 (range_fold_unary_symbolics_p): New.
1108 (range_fold_unary_expr): Extract out into above functions.
1109 (range_fold_binary_expr): Same.
1110 (value_range_base::normalize_addresses): New.
1111 (value_range_base::normalize_symbolics): Normalize addresses.
1112 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1113
1114 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1115
1116 * tree-vrp.c (value_range_base::singleton_p): Use
1117 value_range_base::num_pairs instead of vrp_val_is* to check
1118 if a range has one sub-range.
1119
1120 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1121
1122 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1123 DEF is not a true earlyclobber but is tied to a specific input
1124 operand, and so is effectively earlyclobber wrt inputs that have
1125 different values.
1126 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1127
1128 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1129
1130 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1131 (pod_mode): Mark operators likewise.
1132 (scalar_int_mode): Mark non-default constructors and
1133 operators with CONSTEXPR.
1134 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1135 (fixed_size_mode): Likewise.
1136
1137 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1138
1139 PR target/91994
1140 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1141 and wrap the unspec_volatile in a parallel.
1142 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1143 the unspec_volatile.
1144 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1145 unspec_volatile to be wrapped in a parallel.
1146 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1147 (ix86_add_reg_usage_to_vzerouppers): New functions.
1148 (rest_of_handle_insert_vzeroupper): Use them to add register
1149 usage information to the vzeroupper instructions.
1150
1151 2019-10-07 Richard Biener <rguenther@suse.de>
1152
1153 PR tree-optimization/91975
1154 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1155 handle invariants.
1156
1157 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1158
1159 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1160 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1161
1162 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1163
1164 * config/darwin.c (darwin_override_options): Adjust objective-c
1165 ABI version error messages to avoid punctuation and contracted
1166 negations.
1167
1168 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1169
1170 * ipa-inline.c: Fix type; compute size rather than self_size
1171 for size of caller function.
1172
1173 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1174
1175 PR target/59888
1176 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1177 choose const_data section for constants with relocations.
1178 (machopic_select_section): Pass relocation flag to
1179 darwin_rodata_section ().
1180
1181 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR tree-optimization/91734
1184 * generic-match-head.c: Include fold-const-call.h.
1185 * match.pd (sqrt(x) cmp c): Check the boundary value and
1186 in case inexact computation of c*c affects comparison of the boundary,
1187 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1188 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1189 for -frounding-math. For c2, try the next smaller or larger floating
1190 point constant depending on comparison code and if it has the same
1191 sqrt as c2, use it instead of c2.
1192
1193 2019-10-04 Martin Sebor <msebor@redhat.com>
1194
1195 PR middle-end/91977
1196 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1197 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1198 uninitialized objects.
1199
1200 2019-10-04 Martin Sebor <msebor@redhat.com>
1201
1202 * builtins.c (compute_objsize): Add an argument.
1203 * tree-object-size.c (addr_object_size): Same.
1204 (compute_builtin_object_size): Same.
1205 * tree-object-size.h (compute_builtin_object): Same.
1206
1207 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1208
1209 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1210
1211 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1212
1213 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1214
1215 2019-10-04 Martin Jambor <mjambor@suse.cz>
1216
1217 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1218 fntype when switching to calling memcpy instead of memset.
1219
1220 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1221
1222 * hash-table.h (hash_table::empty_slow): Don't assign
1223 size_t values to int variables.
1224
1225 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1226
1227 * expr.c (convert_mode_scalar): Remove shadowing local var.
1228 (emit_block_move): Rename local vars.
1229 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1230 (emit_push_insn): Rename local vars.
1231 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1232 shadowing local vars.
1233 (store_constructor): Remove shadowing local vars. Rename local var.
1234 (store_field, expand_cond_expr_using_cmove,
1235 expand_expr_real_2): Remove shadowing local vars.
1236 (expand_expr_real_1,
1237 do_store_flag): Remove shadowing local vars. Rename local vars.
1238
1239 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1240
1241 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1242
1243 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1244
1245 * genmatch.c (commutate): Rename local var.
1246 (lower_cond): Reuse local var.
1247 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1248 dt_operand::gen, dt_operand::gen_gimple_expr,
1249 dt_simplify::gen): Add a param. Rename generated vars.
1250 (decision_tree::insert_operand,
1251 (capture_info::walk_match, capture_info::walk_result,
1252 capture_info::walk_c_expr): Rename local vars.
1253 (expr::gen_transform): Rename generated vars.
1254 Use snprintf. Rename local vars.
1255 (capture::gen_transform, dt_operand::get_name,
1256 dt_operand::gen_opname): Rename generated vars.
1257 (write_predicate): Adjust call to gen_kids.
1258 (parser::get_internal_capture_id): Rename generated vars.
1259 (parser::parse_expr): Rename local vars.
1260 (parser::parse_if): Remove local var.
1261 (parser::parse_pattern, add_operator): Rename local vars.
1262
1263 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1264
1265 * builtins.def (DEF_C2X_BUILTIN): New macro.
1266 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1267 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1268 (strndup): Use DEF_C2X_BUILTIN.
1269 * coretypes.h (enum function_class): Add function_c2x_misc.
1270
1271 2019-10-04 Maya Rashish <coypu@sdf.org>
1272
1273 * ira-color.c (update_costs_from_allocno): Call
1274 ira_init_register_move_cost_if_necessary.
1275
1276 2019-10-04 Jeff Law <law@redhat.com>
1277
1278 * config/h8300/h8300.md (cpymemsi): Disable.
1279 (movmd, movmd_internal_<mode>, movstr, movsd):
1280 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1281 (movmd splitter, movsd splitter): Likewise.
1282
1283 * range-op.cc (range_tests): Avoid two tests when ints and
1284 shorts are the same size.
1285
1286 2019-10-04 Richard Biener <rguenther@suse.de>
1287
1288 PR lto/91968
1289 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1290 BLOCK_VARS.
1291
1292 2019-10-04 Richard Biener <rguenther@suse.de>
1293
1294 PR tree-optimization/91982
1295 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1296 against EXTRACT_LAST_REDUCTION.
1297 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1298
1299 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1300
1301 * range-op.o (value_range_from_overflowed_bounds): Rename from
1302 adjust_overflow_bound.
1303 (value_range_with_overflow): Rename from
1304 create_range_with_overflow.
1305 (create_possibly_reversed_range): Adjusted for above renames.
1306 (operator_*::wi_fold): Same.
1307 (cross_product_operator::wi_cross_productor): Same.
1308
1309 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1310
1311 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1312 -Wshadow=compatible-local): Fix description.
1313 Add an example where -Wshadow=compatible-local does not
1314 warn.
1315
1316 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1317
1318 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1319
1320 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1321 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1322
1323 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1324
1325 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1326 can_move_by_pieces issue.
1327
1328 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1329
1330 PR target/87243
1331 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1332 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1333 is available and the user has not set one on the command line.
1334
1335 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1336
1337 PR target/91769
1338 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1339 instead of REGNO equality check on addr.reg.
1340
1341 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1342
1343 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1344 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1345 * doc/invoke.texi (inline-heuristics-hint-percent,
1346 inline-heuristics-hint-percent-O2): Document.
1347 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1348 hint attribute.
1349 (can_inline_edge_by_limits_p): Use it.
1350
1351 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1352
1353 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1354 to print CONST_DOUBLEs.
1355
1356 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1357
1358 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1359 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1360 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1361
1362 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1363
1364 * Makefile.in (OBJS): Add range.o and range-op.o.
1365 Remove wide-int-range.o.
1366 * function-tests.c (test_ranges): New.
1367 (function_tests_c_tests): Call test_ranges.
1368 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1369 range_fold_unary_expr instead of extract_range_from_unary_expr.
1370 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1371 * range-op.cc: New file.
1372 * range-op.h: New file.
1373 * range.cc: New file.
1374 * range.h: New file.
1375 * selftest.h (range_tests): New prototype.
1376 * ssa.h: Include range.h.
1377 * tree-vrp.c (value_range_base::value_range_base): New
1378 constructors.
1379 (value_range_base::singleton_p): Do not call
1380 ranges_from_anti_range until sure we will need to.
1381 (value_range_base::type): Rename gcc_assert to
1382 gcc_checking_assert.
1383 (vrp_val_is_max): New argument.
1384 (vrp_val_is_min): Same.
1385 (wide_int_range_set_zero_nonzero_bits): Move from
1386 wide-int-range.cc.
1387 (extract_range_into_wide_ints): Remove.
1388 (extract_range_from_multiplicative_op): Remove.
1389 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1390 from extract_range_from_binary_expr.
1391 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1392 from extract_range_from_binary_expr.
1393 (extract_range_from_binary_expr): Remove.
1394 (normalize_for_range_ops): New.
1395 (range_fold_binary_expr): New.
1396 (range_fold_unary_expr): New.
1397 (value_range_base::num_pairs): New.
1398 (value_range_base::lower_bound): New.
1399 (value_range_base::upper_bound): New.
1400 (value_range_base::upper_bound): New.
1401 (value_range_base::contains_p): New.
1402 (value_range_base::invert): New.
1403 (value_range_base::union_): New.
1404 (value_range_base::intersect): New.
1405 (range_compatible_p): New.
1406 (value_range_base::operator==): New.
1407 (determine_value_range_1): Call range_fold_*expr instead of
1408 extract_range_from_*expr.
1409 * tree-vrp.h (class value_range_base): Add new constructors.
1410 Add methods for union_, intersect, operator==, contains_p,
1411 num_pairs, lower_bound, upper_bound, invert.
1412 (vrp_val_is_min): Add handle_pointers argument.
1413 (vrp_val_is_max): Same.
1414 (extract_range_from_unary_expr): Remove.
1415 (extract_range_from_binary_expr): Remove.
1416 (range_fold_unary_expr): New.
1417 (range_fold_binary_expr): New.
1418 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1419 range_fold_binary_expr instead of extract_range_from_binary_expr.
1420 (vr_values::extract_range_basic): Same.
1421 (vr_values::extract_range_from_unary_expr): Call
1422 range_fold_unary_expr instead of extract_range_from_unary_expr.
1423 * wide-int-range.cc: Remove.
1424 * wide-int-range.h: Remove.
1425
1426 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1427
1428 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1429 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1430 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1431 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1432 macro.
1433
1434 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1435
1436 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1437 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1438 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1439 * glimits.h: Likewise.
1440
1441 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1442
1443 PR rtl-optimization/91976
1444 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1445 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1446 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1447
1448 2019-10-02 Martin Sebor <msebor@redhat.com>
1449
1450 PR tree-optimization/80936
1451 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1452
1453 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1454
1455 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1456 instead of reg_class_contents[ALL_REGS].
1457
1458 2019-09-30 Jason Merrill <jason@redhat.com>
1459
1460 Add some hash_map_safe_* functions like vec_safe_*.
1461 * hash-map.h (default_hash_map_size): New variable.
1462 (create_ggc): Use it as default argument.
1463 (hash_map_maybe_create, hash_map_safe_get)
1464 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1465
1466 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1467
1468 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1469 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1470 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1471 (can_inline_edge_by_limits_p): Use it.
1472 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1473 (want_inline_small_function_p): Use O2 bounds.
1474 (edge_badness): LIkewise.
1475 * opts.c (default_options): Add OPT_finline_functions.
1476 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1477 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1478 New parameters.
1479 * doc/invoke.texi (-finline-functions): Update documentation.
1480 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1481 inline-min-speedup-O2): Document.
1482 (early-inlining-insns-O2): Simplify docs.
1483
1484 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1485
1486 PR rtl-optimization/87047
1487 * ifcvt.c (average_cost): New static function. Use it...
1488 (noce_process_if_block): ... here.
1489
1490 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1491
1492 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1493 * config/rs6000/rs6000-string.c (expand_block_move): Add
1494 might_overlap parm.
1495 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1496 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1497
1498 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1499
1500 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1501 (expand_builtin_memcpy): Use might_overlap parm.
1502 (expand_builtin_mempcpy_args): Use might_overlap parm.
1503 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1504 (expand_builtin_memory_copy_args): Add might_overlap parm.
1505 * expr.c (emit_block_move_via_cpymem): Rename to
1506 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1507 or movmem optab as appropriate.
1508 (emit_block_move_hints): Add might_overlap parm, do the right
1509 thing for might_overlap==true.
1510 * expr.h (emit_block_move_hints): Update prototype.
1511
1512 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1513
1514 * tree-eh.h (unsplit_eh_edges): Declare.
1515 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1516 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1517 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1518 (struct store_immediate_info): Add lp_nr field.
1519 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1520 initialize lp_nr with it.
1521 (struct merged_store_group): Add lp_nr and only_constants fields.
1522 (merged_store_group::merged_store_group): Initialize them.
1523 (merged_store_group::can_be_merged_into): Deal with them.
1524 (pass_store_merging): Rename terminate_and_release_chain into
1525 terminate_and_process_chain.
1526 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1527 renaming and remove useless assertions.
1528 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1529 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1530 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1531 instead of always recomputing it and compare lp_nr.
1532 (imm_store_chain_info::output_merged_store): If the group is in an
1533 active EH region, register new stores if they can throw. Moreover,
1534 if the insertion has created new basic blocks, adjust the PHI nodes
1535 of the post landing pad.
1536 (imm_store_chain_info::output_merged_stores): If the original stores
1537 are in an active EH region, deregister them.
1538 (lhs_valid_for_store_merging_p): Prettify.
1539 (adjust_bit_pos): New function extracted from...
1540 (mem_valid_for_store_merging): ...here. Use it for the base address
1541 and also for the offset if it is the addition of a constant.
1542 (lp_nr_for_store): New function.
1543 (pass_store_merging::process_store): Change return type to bool.
1544 Call lp_nr_for_store to initialize the store info. Propagate the
1545 return status of various called functions to the return value.
1546 (store_valid_for_store_merging_p): New predicate.
1547 (enum basic_block_status): New enumeration.
1548 (get_status_for_store_merging): New function.
1549 (pass_store_merging::execute): If the function can throw and catch
1550 non-call exceptions, unsplit the EH edges on entry and clean up the
1551 CFG on exit if something changed. Call get_status_for_store_merging
1552 for every basic block and keep the chains open across basic blocks
1553 when possible. Terminate and process open chains at the end, if any.
1554
1555 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1556
1557 * reginfo.c (globalize_reg): Fix shadowed variable in
1558 function_abis walk.
1559
1560 2019-10-02 Martin Jambor <mjambor@suse.cz>
1561
1562 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1563 do not compute some stuff when set.
1564 (cgraph_node::create_edge): Likewise.
1565 (cgraph_node::create_indirect_edge): Renamed last parameter to
1566 coning_p and flipped its meaning, don't even calculate
1567 inline_failed when set.
1568 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1569 (symbol_table::::create_edge): Likewise.
1570 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1571 the default value.
1572 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1573 call graph edge creating functions.
1574
1575 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1576
1577 PR c++/91222
1578 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1579 namespace types.
1580
1581 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1582
1583 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1584
1585 2019-10-02 Richard Biener <rguenther@suse.de>
1586
1587 * tree-vectorizer.h (vect_transform_reduction): Declare.
1588 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1589 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1590 stmt transform to ...
1591 (vect_transform_reduction): ... this.
1592
1593 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1594
1595 * omp-low.c (lower_omp_target): Dereference optional argument
1596 to work with the right pointer.
1597
1598 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1599
1600 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1601 false.
1602 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1603 * langhooks.h (omp_is_optional_argument): New hook.
1604 * omp-general.c (omp_is_optional_argument): New.
1605 * omp-general.h (omp_is_optional_argument): New declaration.
1606 * omp-low.c (lower_omp_target): Create temporary for received value
1607 and take the address for new_var if the original variable was a
1608 DECL_BY_REFERENCE. Use size of referenced object when a
1609 pass-by-reference optional argument used as argument to firstprivate.
1610
1611 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1612
1613 PR tree-optimization/91940
1614 * tree-vect-patterns.c: Include tree-vector-builder.h and
1615 vec-perm-indices.h.
1616 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1617 unpromoting the argument back to uint16_t, or by converting into a
1618 rotate, or into shifts plus ior.
1619
1620 2019-10-02 Richard Biener <rguenther@suse.de>
1621
1622 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1623 New.
1624 (vect_transform_cycle_phi): Declare.
1625 * tree-vect-stmts.c (vect_transform_stmt): Call
1626 vect_transform_cycle_phi.
1627 * tree-vect-loop.c (vectorizable_reduction): Split out
1628 PHI transformation stage to ...
1629 (vect_transform_cycle_phi): ... here.
1630
1631 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1632
1633 PR middle-end/91957
1634 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1635 eliminable registers.
1636 (make_hard_regno_live): Likewise, and don't make them live.
1637
1638 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1639
1640 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1641 Call pp_emit_prefix.
1642 (layout::print_source_line): Likewise.
1643 (layout::start_annotation_line): Likewise.
1644 (diagnostic_show_locus): Remove call to temporarily clear the
1645 prefix.
1646 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1647 interaction of pp_set_prefix with rulers and fix-it hints.
1648 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1649 prefix when calling diagnostic_show_locus, rather than destroying
1650 it afterwards.
1651 (print_parseable_fixits): Temporarily clear prefix.
1652 * pretty-print.c (pp_format): Save and restore line_length, rather
1653 than assuming it is zero.
1654 (pp_output_formatted_text): Remove assertion that line_length is
1655 zero.
1656
1657 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1658
1659 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1660 Rename to ...
1661 (nonoverlapping_refs_since_match_p): ... this; handle also
1662 ARRAY_REFs.
1663 (alias_stats): Update stats.
1664 (dump_alias_stats): Likewise.
1665 (cheap_array_ref_low_bound): New function.
1666 (aliasing_matching_component_refs_p): Add partial_overlap
1667 argument;
1668 pass it to nonoverlapping_refs_since_match_p.
1669 (aliasing_component_refs_walk): Update call of
1670 aliasing_matching_component_refs_p
1671 (nonoverlapping_array_refs_p): New function.
1672 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1673 indirect_refs_may_alias_p): Update calls of
1674 nonoverlapping_refs_since_match_p.
1675
1676 2019-10-01 Maya Rashish <coypu@sdf.org>
1677
1678 PR target/85401
1679 * ira-color.c (allocno_copy_cost_saving): Call
1680 ira_init_register_move_cost_if_necessary.
1681
1682 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1683
1684 * Makefile.in (gnat_install_lib): New variable.
1685 * configure.ac: Substitute it.
1686 * configure: Regenerate.
1687
1688 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1689
1690 PR lto/91222
1691 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1692 is matched with non-C++ type
1693
1694 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1695
1696 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1697 after local CSE.
1698
1699 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1700
1701 * doc/invoke.texi (early-inlining-insns-O2): Document.
1702 (early-inlining-insns): Update.
1703 * params.def (early-inlining-insns-O2): New bound.
1704 (early-inlining-insns): Update docs.
1705 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1706
1707 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1708
1709 PR target/88562
1710 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1711 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1712 a memory access insn.
1713
1714 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1715
1716 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1717 vpmsumd.
1718
1719 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1720
1721 PR target/77918
1722 * config/s390/s390.c (s390_expand_vec_compare): Use
1723 gen_vec_cmpordered and gen_vec_cmpunordered.
1724 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1725 vec_unordered): Delete.
1726 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1727 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1728 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1729 (vec_cmp<code>): Generic dispatcher.
1730
1731 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1732
1733 PR target/77918
1734 * config/s390/vector.md (V_HW): Add V1TI in order to make
1735 vcond$a$b generate vcondv1tiv1tf.
1736
1737 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1738
1739 PR rtl-optimization/91948
1740 * ira-build.c (ira_create_allocno): Initialize
1741 ALLOCNO_CROSSED_CALLS_ABIS.
1742 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1743 than regno to ira_need_caller_save_p.
1744
1745 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1746
1747 * config/i386/i386-options.c
1748 (ix86_recompute_optlev_based_flags): New, moved out of...
1749 (ix86_option_override_internal): ... this. Call it.
1750 (ix86_override_options_after_change): Call it here too.
1751
1752 PR debug/91507
1753 * dwarf2out.c (override_type_for_decl_p): New.
1754 (gen_variable_die): Use it.
1755
1756 2019-10-01 Richard Biener <rguenther@suse.de>
1757
1758 * tree-vect-loop.c (vectorizable_reduction): Move variables
1759 to where they are used.
1760
1761 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1762
1763 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1764 (build_def_use): Use PC instead of CC0 in a comment.
1765
1766 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1767
1768 * rtl.def (CLOBBER_HIGH): Delete.
1769 * doc/rtl.texi (clobber_high): Remove documentation.
1770 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1771 (reg_is_clobbered_by_clobber_high): Delete.
1772 (gen_hard_reg_clobber_high): Likewise.
1773 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1774 * cfgexpand.c (expand_gimple_stmt): Likewise.
1775 * combine-stack-adj.c (single_set_for_csa): Likewise.
1776 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1777 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1778 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1779 * cse.c (invalidate_reg): Remove clobber_high parameter.
1780 (invalidate): Update call accordingly.
1781 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1782 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1783 (count_reg_usage, insn_live_p): Likewise.
1784 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1785 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1786 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1787 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1788 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1789 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1790 (mark_nonreg_stores_2): Likewise.
1791 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1792 (df_get_call_refs): Likewise.
1793 * dwarf2out.c (mem_loc_descriptor): Likewise.
1794 * emit-rtl.c (verify_rtx_sharing): Likewise.
1795 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1796 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1797 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1798 * genemit.c (gen_exp, gen_insn): Likewise.
1799 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1800 * haifa-sched.c (haifa_classify_rtx): Likewise.
1801 * ira-build.c (create_insn_allocnos): Likewise.
1802 * ira-costs.c (scan_one_insn): Likewise.
1803 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1804 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1805 * jump.c (mark_jump_label_1): Likewise.
1806 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1807 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1808 handling.
1809 (mark_not_eliminable): Likewise.
1810 * lra-lives.c (process_bb_lives): Likewise.
1811 * lra.c (new_insn_reg): Remove clobber_high parameter.
1812 (collect_non_operand_hard_regs): Likewise. Update call to new
1813 insn_reg. Remove CLOBBER_HIGH handling.
1814 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1815 to collect_non_operand_hard_regs.
1816 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1817 Update call to new_insn_reg.
1818 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1819 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1820 (move2add_note_store): Likewise.
1821 * print-rtl.c (print_pattern): Likewise.
1822 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1823 (if_test_bypass_p): Likewise.
1824 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1825 * reginfo.c (reg_scan_mark_refs): Likewise.
1826 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1827 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1828 (forget_old_reloads_1): Likewise.
1829 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1830 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1831 (dbr_schedule): Likewise.
1832 * resource.c (update_live_status, mark_referenced_resources)
1833 (mark_set_resources): Likewise.
1834 * rtl.c (copy_rtx): Likewise.
1835 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1836 (note_pattern_stores): Likewise.
1837 (reg_is_clobbered_by_clobber_high): Delete.
1838 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1839 CLOBBER_HIGH handling.
1840
1841 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1842
1843 PR target/91452
1844 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1845 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1846 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1847 Handle ARM_PCS_TLSDESC.
1848 (aarch64_tlsdesc_abi_id): New function.
1849 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1850 rtx instead of a list of clobbers and clobber_highs.
1851 (tlsdesc_small_<mode>): Update accordingly.
1852
1853 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1854
1855 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1856 extra callee_abi argument.
1857 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1858 Insert a CALLEE_ABI unspec into the call pattern as the second
1859 element in the PARALLEL.
1860 (aarch64_simd_call_p): Delete.
1861 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1862 the new CALLEE_ABI element of the PARALLEL.
1863 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1864 from the function type, if given.
1865 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1866 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1867 when passed the function_arg_info end marker.
1868 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1869 final argument of gen_sibcall.
1870 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1871 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1872 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1873 pattern.
1874 (call_value): Likewise operand 3.
1875 (sibcall): Likewise operand 2. Place the unspec before rather than
1876 after the return.
1877 (sibcall_value): Likewise operand 3.
1878 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1879 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1880 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1881 constraint strings.
1882 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1883
1884 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1885
1886 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1887 choose_hard_reg_mode.
1888 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1889
1890 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1891
1892 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1893 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1894 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1895
1896 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1897
1898 * diagnostic-show-locus.c (line_label::line_label): Initialize
1899 m_has_vbar.
1900 (line_label::comparator): Reverse the sort order by m_state_idx,
1901 so that when the list is walked backwards the labels appear in
1902 order of insertion into the rich_location.
1903 (line_label::m_has_vbar): New field.
1904 (layout::print_any_labels): When dealing with multiple labels at
1905 the same line and column, only print vertical bars for the one
1906 with the highest label_line.
1907 (selftest::test_one_liner_labels): Update test for multiple labels
1908 to expect the labels to be in the order of insertion into the
1909 rich_location. Add a test for many such labels, where the column
1910 numbers are out-of-order relative to the insertion order.
1911
1912 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1913
1914 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1915 (ix86_frame::expensive_count): Likewise.
1916 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1917 of use_fast_prologue_epilogue robust against incidental changes
1918 in function size.
1919
1920 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1921
1922 PR target/77918
1923 * config/s390/vector.md (vec_unordered<mode>): Call
1924 gen_vec_ordered<mode>.
1925
1926 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1927
1928 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1929 New pattern for ASRD.
1930 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1931 * internal-fn.def (IFN_DIV_POW2): New internal function.
1932 * optabs.def (sdiv_pow2_optab): New optab.
1933 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1934 Modify pattern to support new operation.
1935 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1936 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1937 Document new target selector.
1938
1939 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1940
1941 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1942 to test whether we're compiling a vector PCS function and to test
1943 whether the function needs to save a particular register.
1944 Remove the vector PCS handling of df_set_regs_ever_live.
1945 (aarch64_components_for_bb): Use crtl->abi to test whether
1946 the function needs to save a particular register.
1947 (aarch64_process_components): Use crtl->abi to test whether
1948 we're compiling a vector PCS function.
1949 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1950 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1951
1952 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1953
1954 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1955 Delete.
1956 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1957 whether the block calls a function that clobbers more registers
1958 than the current function is allowed to.
1959 (aarch64_use_simple_return_insn_p): Delete.
1960 * config/aarch64/aarch64.md (simple_return): Remove condition.
1961
1962 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1963
1964 * function-abi.h (function_abi_aggregator): New class.
1965 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1966 function.
1967 * ira.c (update_equiv_regs_prescan): New function. Call
1968 set_paradoxical_subreg here rather than...
1969 (update_equiv_regs): ...here.
1970 (ira): Call update_equiv_regs_prescan.
1971
1972 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1973
1974 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1975 IN_TARGET_CODE.
1976 (call_used_or_fixed_regs): Likewise.
1977 (call_used_or_fixed_reg_p): Likewise.
1978 * reginfo.c (regs_invalidated_by_call): New macro.
1979
1980 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1981
1982 * shrink-wrap.c: Include function-abi.h.
1983 (requires_stack_frame_p): Use crtl->abi to test whether the
1984 current function can use a register without saving it first.
1985
1986 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1987
1988 * sel-sched-ir.h (_def::crosses_call): Replace with...
1989 (_def::crossed_call_abis): ..this new field.
1990 (def_list_add): Take a mask of ABIs instead of a crosses_call
1991 boolean.
1992 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1993 of _def accordingly.
1994 * sel-sched.c: Include function-abi.h.
1995 (hard_regs_data::regs_for_call_clobbered): Delete.
1996 (reg_rename::crosses_call): Replace with...
1997 (reg_rename::crossed_call_abis): ...this new field.
1998 (fur_static_params::crosses_call): Replace with...
1999 (fur_static_params::crossed_call_abis): ...this new field.
2000 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2001 (init_hard_regs_data): Use crtl->abi to test which registers the
2002 current function would need to save before it uses them.
2003 (mark_unavailable_hard_regs): Update handling of call-clobbered
2004 registers, using call_clobbers_in_region to find out which registers
2005 might be call-clobbered (but without taking -fipa-ra into account
2006 for now). Remove separate handling of partially call-clobbered
2007 registers.
2008 (verify_target_availability): Use crossed_call_abis instead of
2009 crosses_call.
2010 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2011 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2012
2013 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2016 function to test whether a register is fully or partly clobbered.
2017
2018 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2019
2020 * rtlanal.c: Include function-abi.h.
2021 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2022 function and clobbers_reg_p to test whether the register
2023 is call-clobbered.
2024 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2025 to get the ABI of the called function and full_reg_clobbers to
2026 get the set of fully call-clobbered registers. Warn about the
2027 pitfalls of using this mode.
2028
2029 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * reload.c: Include function-abi.h.
2032 (find_equiv_reg): Use clobbers_reg_p to test whether either
2033 of the equivalent registers is clobbered by a call.
2034 * reload1.c: Include function-abi.h.
2035 (reg_reloaded_call_part_clobbered): Delete.
2036 (reload): Use crtl->abi to test which registers would need
2037 saving in the prologue before use.
2038 (find_reg): Likewise.
2039 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2040 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2041 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2042
2043 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2044
2045 * regrename.h (du_head::call_clobber_mask): New field.
2046 (du_head::need_caller_save_reg): Replace with...
2047 (du_head::call_abis): ...this new field.
2048 * regrename.c: Include function-abi.h.
2049 (call_clobbered_in_chain_p): New function.
2050 (check_new_reg_p): Use crtl->abi when deciding whether a register
2051 is free for use after RA. Use call_clobbered_in_chain_p to test
2052 whether a candidate register would be clobbered by a call.
2053 (find_rename_reg): Don't add call-clobber conflicts here.
2054 (rename_chains): Check call_abis instead of need_caller_save_reg.
2055 (merge_chains): Update for changes to du_head.
2056 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2057 target. Record the ABI identifier in call_abis and the set of
2058 fully or partially clobbered registers in call_clobber_mask.
2059 Add fully-clobbered registers to hard_conflicts here rather
2060 than in find_rename_reg.
2061 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2062 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2063 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2064 function-abi.h.
2065 * config/c6x/c6x.c: Likewise.
2066
2067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2070 mode of the register when deciding whether it is no longer
2071 available after a call.
2072
2073 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2074
2075 * recog.c: Include function-abi.h.
2076 (peep2_find_free_register): Use crtl->abi when deciding whether
2077 a register is free for use after RA.
2078
2079 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2080
2081 * postreload-gcse.c: Include regs.h and function-abi.h.
2082 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2083 call insn target. Conservatively assume that partially-clobbered
2084 registers are altered.
2085
2086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2087
2088 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2089 when deciding whether a register is free for use after RA.
2090 (reload_combine): Remove unnecessary use of fixed_reg_set.
2091 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2092 call insn target. Use reg_mode when testing whether a register
2093 is no longer available.
2094
2095 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2096
2097 * target.def (return_call_with_max_clobbers): Delete.
2098 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2099 * doc/tm.texi: Regenerate.
2100 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2101 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2102 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2103 (lra_reg::call_insn): Delete.
2104 * lra.c: Include function-abi.h.
2105 (initialize_lra_reg_info_element): Don't initialize the fields above.
2106 (lra): Use crtl->abi to test whether the current function needs to
2107 save a register in the prologue. Remove special pre-inheritance
2108 lra_create_live_ranges pass for flag_ipa_ra.
2109 * lra-assigns.c: Include function-abi.h
2110 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2111 function needs to save a register in the prologue.
2112 (lra_assign): Assert that registers aren't allocated to a
2113 conflicting register, rather than checking only for overlaps
2114 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2115 and for registers that are not live across a call.
2116 * lra-constraints.c (last_call_for_abi): New variable.
2117 (full_and_partial_call_clobbers): Likewise.
2118 (setup_next_usage_insn): Remove the register from
2119 full_and_partial_call_clobbers.
2120 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2121 whether the register needs a caller save.
2122 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2123 of call_used_or_fixed_regs.
2124 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2125 full_and_partial_call_clobbers.
2126 * lra-lives.c (check_pseudos_live_through_calls): Replace
2127 last_call_used_reg_set and call_insn arguments with an abi argument.
2128 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2129 as the set of conflicting registers.
2130 (calls_have_same_clobbers_p): Delete.
2131 (process_bb_lives): Track the ABI of the last call instead of an
2132 insn/HARD_REG_SET pair. Update calls to
2133 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2134 the set of registers that could be clobbered by an EH edge.
2135 Include partially-clobbered as well as fully-clobbered registers.
2136 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2137 * lra-remat.c: Include function-abi.h.
2138 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2139 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2140 registers and bitmap_view to combine them into dead_regs.
2141 (call_used_input_regno_present_p): Take a function_abi argument
2142 and use it to test whether a register is call-clobbered.
2143 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2144 call insn target. Update tje call to call_used_input_regno_present_p.
2145 (do_remat): Likewise.
2146 (lra_remat): Remove the initialization of call_used_regs_arr_len
2147 and call_used_regs_arr.
2148
2149 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2150
2151 * loop-iv.c: Include regs.h and function-abi.h.
2152 (simplify_using_initial_values): Use insn_callee_abi to get the
2153 ABI of the call insn target. Conservatively assume that
2154 partially-clobbered registers are altered.
2155
2156 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2157
2158 * function-abi.h (call_clobbers_in_region): Declare.
2159 (call_clobbered_in_region_p): New function.
2160 * function-abi.cc (call_clobbers_in_region): Likewise.
2161 * ira-int.h: Include function-abi.h.
2162 (ira_allocno::crossed_calls_abis): New field.
2163 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2164 (ira_need_caller_save_regs): New function.
2165 (ira_need_caller_save_p): Likewise.
2166 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2167 of call_used_or_fixed_regs.
2168 (do_reload): Use crtl->abi to test whether the current function
2169 needs to save a register in the prologue. Count registers that
2170 need to be saved rather than registers that don't.
2171 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2172 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2173 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2174 (propagate_some_info_from_allocno): Likewise.
2175 (copy_info_to_removed_store_destinations): Likewise.
2176 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2177 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2178 (ira_build): Use ira_need_caller_save_regs instead of
2179 call_used_or_fixed_regs.
2180 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2181 whether the current function would need to save a register
2182 before using it.
2183 (calculate_spill_cost): Likewise.
2184 (allocno_reload_assign): Use ira_need_caller_save_regs and
2185 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2186 * ira-conflicts.c (ira_build_conflicts): Use
2187 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2188 as the set of call-clobbered registers. Remove the
2189 call_used_or_fixed_regs mask from the calculation of
2190 temp_hard_reg_set and mask its use instead. Remove special
2191 handling of partially-clobbered registers.
2192 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2193 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2194 calculate the set of conflicting registers for calls that
2195 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2196 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2197 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2198 Use eh_edge_abi to calculate the set of registers that could
2199 be clobbered by an EH edge. Include partially-clobbered as
2200 well as fully-clobbered registers.
2201
2202 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2203
2204 * haifa-sched.c: Include function-abi.h.
2205 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2206 the function would need to save a register before using it.
2207
2208 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2209
2210 * gcse.c: Include function-abi.h.
2211 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2212 the call insn target. Invalidate partially call-clobbered
2213 registers as well as fully call-clobbered ones.
2214
2215 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2216
2217 * function.c (aggregate_value_p): Work out which ABI the
2218 function is using before testing which registers are at least
2219 partly preserved by a call.
2220
2221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * early-remat.c: Include regs.h and function-abi.h.
2224 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2225 registers here.
2226 (early_remat::restrict_remat_for_unavail_regs): New function.
2227 (early_remat::restrict_remat_for_call): Likewise.
2228 (early_remat::process_block): Before calling emit_remat_insns
2229 for a previous call in the block, invalidate any candidates
2230 that would clobber call-preserved registers.
2231 (early_remat::emit_remat_insns_for_block): Likewise for the
2232 final call in a block. Do the same thing for live-in registers
2233 when calling emit_remat_insns at the head of a block.
2234
2235 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2236
2237 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2238 whether the current function needs to save at least part of a
2239 register before using it.
2240 (df_get_exit_block_use_set): Likewise for epilogue restores.
2241
2242 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * df-problems.c: Include regs.h and function-abi.h.
2245 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2246 sparse_invalidated_by_eh and dense_invalidated_by_call to
2247 dense_invalidated_by_eh.
2248 (df_print_bb_index): Update accordingly.
2249 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2250 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2251 that are clobbered by an EH edge. Clobber partially-clobbered
2252 registers as well as fully-clobbered ones.
2253 (df_md_confluence_n): Likewise.
2254 (df_rd_local_compute): Likewise. Update for changes to
2255 df_rd_problem_data.
2256 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2257 of registers that are clobbered by an EH edge. Includde partially-
2258 clobbered registers as well as fully-clobbered ones.
2259
2260 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2261
2262 * cselib.c (cselib_process_insn): If we know what mode a
2263 register was set in, check whether it is clobbered in that
2264 mode by a call. Only fall back to reg_raw_mode if that fails.
2265
2266 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2267
2268 * cse.c: Include regs.h and function-abi.h.
2269 (invalidate_for_call): Take the call insn as an argument.
2270 Use insn_callee_abi to get the ABI of the call and invalidate
2271 partially clobbered registers as well as fully clobbered ones.
2272 (cse_insn): Update call accordingly.
2273
2274 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2275
2276 * combine.c: Include function-abi.h.
2277 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2278 of the target of call insns. Invalidate partially-clobbered
2279 registers as well as fully-clobbered ones.
2280
2281 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2282
2283 * cfgloopanal.c: Include regs.h and function-abi.h.
2284 (init_set_costs): Use default_function_abi to test whether
2285 a general register is call-clobbered.
2286
2287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2288
2289 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2290 instead of the call-clobbered sets.
2291
2292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2293
2294 * caller-save.c (setup_save_areas): Remove redundant |s of
2295 fixed_reg_set.
2296 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2297 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2298 value is useful.
2299
2300 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2301
2302 * rtl.h (predefined_function_abi): Declare.
2303 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2304 instead of a boolean call_save flag.
2305 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2306 accordingly.
2307 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2308 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2309 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2310 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2311 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2312 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2313 * reginfo.c (init_reg_modes_target): Likewise.
2314 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2315 instead of a boolean call_save flag.
2316 * targhooks.c: Include function-abi.h.
2317 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2318 using eh_edge_abi to choose the mode.
2319
2320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2321
2322 * target.def (hard_regno_call_part_clobbered): Take an ABI
2323 identifier instead of an rtx_insn.
2324 * doc/tm.texi: Regenerate.
2325 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2326 (hook_bool_uint_uint_mode_false): New function.
2327 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2328 (hook_bool_uint_uint_mode_false): New function.
2329 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2330 Take an ABI identifier instead of an rtx_insn.
2331 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2332 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2333 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2334 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2335 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2336 Likewise.
2337 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2338 * cselib.c: Include function-abi.h.
2339 (cselib_process_insn): Update call to
2340 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2341 to get the appropriate ABI identifier.
2342 * function-abi.cc (predefined_function_abi::initialize): Update call
2343 to targetm.hard_regno_call_part_clobbered.
2344 * ira-conflicts.c (ira_build_conflicts): Likewise.
2345 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2346 * lra-constraints.c: Include function-abi.h.
2347 (need_for_call_save_p): Update call to
2348 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2349 to get the appropriate ABI identifier.
2350 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2351 * regcprop.c (copyprop_hardreg_forward_1): Update call
2352 to targetm.hard_regno_call_part_clobbered.
2353 * reginfo.c (choose_hard_reg_mode): Likewise.
2354 * regrename.c (check_new_reg_p): Likewise.
2355 * reload.c (find_equiv_reg): Likewise.
2356 * reload1.c (emit_reload_insns): Likewise.
2357 * sched-deps.c: Include function-abi.h.
2358 (deps_analyze_insn): Update call to
2359 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2360 to get the appropriate ABI identifier.
2361 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2362 call to targetm.hard_regno_call_part_clobbered.
2363 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2364
2365 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2366
2367 * config/i386/i386.c: Include function-abi.h.
2368 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2369 if they preserve some 256-bit or 512-bit SSE registers.
2370
2371 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2372
2373 * target.def (insn_callee_abi): New hook.
2374 (remove_extra_call_preserved_regs): Delete.
2375 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2376 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2377 * doc/tm.texi: Regenerate.
2378 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2379 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2380 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2381 insn argument.
2382 (aarch64_remove_extra_call_preserved_regs): Delete.
2383 (aarch64_insn_callee_abi): New function.
2384 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2385 (TARGET_INSN_CALLEE_ABI): New macro.
2386 * rtl.h (get_call_fndecl): Declare.
2387 (cgraph_rtl_info): Fix formatting. Tweak comment for
2388 function_used_regs. Remove function_used_regs_valid.
2389 * rtlanal.c (get_call_fndecl): Moved from final.c
2390 * function-abi.h (insn_callee_abi): Declare.
2391 (target_function_abi_info): Mention insn_callee_abi.
2392 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2393 way to get_call_reg_set_usage did.
2394 (insn_callee_abi): New function.
2395 * regs.h (get_call_reg_set_usage): Delete.
2396 * final.c: Include function-abi.h.
2397 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2398 function_used_regs before the main loop rather than afterwards.
2399 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2400 if function_used_regs ends up not being useful.
2401 (get_call_fndecl): Move to rtlanal.c
2402 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2403 * caller-save.c: Include function-abi.h.
2404 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2405 instead of get_call_reg_set_usage.
2406 * cfgcleanup.c: Include function-abi.h.
2407 (old_insns_match_p): Use insn_callee_abi instead of
2408 get_call_reg_set_usage.
2409 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2410 a tree.
2411 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2412 function_used_regs.
2413 * df-scan.c: Include function-abi.h.
2414 (df_get_call_refs): Use insn_callee_abi instead of
2415 get_call_reg_set_usage.
2416 * ira-lives.c: Include function-abi.h.
2417 (process_bb_node_lives): Use insn_callee_abi instead of
2418 get_call_reg_set_usage.
2419 * lra-lives.c: Include function-abi.h.
2420 (process_bb_lives): Use insn_callee_abi instead of
2421 get_call_reg_set_usage.
2422 * postreload.c: Include function-abi.h.
2423 (reload_combine): Use insn_callee_abi instead of
2424 get_call_reg_set_usage.
2425 * regcprop.c: Include function-abi.h.
2426 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2427 get_call_reg_set_usage.
2428 * resource.c: Include function-abi.h.
2429 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2430 instead of get_call_reg_set_usage.
2431 * var-tracking.c: Include function-abi.h.
2432 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2433 get_call_reg_set_usage.
2434
2435 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2436
2437 * target.def (fntype_abi): New target hook.
2438 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2439 * doc/tm.texi: Regenerate.
2440 * target.h (predefined_function_abi): Declare.
2441 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2442 if defined.
2443 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2444 * config/aarch64/aarch64.c: Include function-abi.h.
2445 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2446 (TARGET_FNTYPE_ABI): Define.
2447
2448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2449
2450 * Makefile.in (OBJS): Add function-abi.o.
2451 (GTFILES): Add function-abi.h.
2452 * function-abi.cc: New file.
2453 * function-abi.h: Likewise.
2454 * emit-rtl.h (rtl_data::abi): New field.
2455 * function.c: Include function-abi.h.
2456 (prepare_function_start): Initialize crtl->abi.
2457 * read-rtl-function.c: Include regs.h and function-abi.h.
2458 (read_rtl_function_body): Initialize crtl->abi.
2459 (read_rtl_function_body_from_file_range): Likewise.
2460 * reginfo.c: Include function-abi.h.
2461 (init_reg_sets_1): Initialize default_function_abi.
2462 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2463 when making a register global.
2464 * target-globals.h (this_target_function_abi_info): Declare.
2465 (target_globals::function_abi_info): New field.
2466 (restore_target_globals): Copy it.
2467 * target-globals.c: Include function-abi.h.
2468 (default_target_globals): Initialize the function_abi_info field.
2469 (target_globals): Allocate it.
2470 (save_target_globals): Free it.
2471
2472 2019-09-30 Nick Clifton <nickc@redhat.com>
2473
2474 PR target/85978
2475 * config/frv/frv.c (frv_register_move_cost): Add break statements
2476 to avoid falling through to the wrong cases. Tidy code.
2477
2478 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2479
2480 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2481 For multi-registers modes, test how big each register part is.
2482
2483 2019-09-30 Nick Clifton <nickc@redhat.com>
2484
2485 PR target/59205
2486 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2487 (TARGET_ASM_SELECT_SECTION): Remove definition.
2488 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2489
2490 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2491
2492 * emit-rtl.c (init_raw_REG): New function.
2493 (gen_raw_REG): Use init_raw_REG.
2494 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2495 macros.
2496 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2497 * rtl.h (rtx_init): New function.
2498 (rtx_alloca): New function.
2499 (init_raw_REG): New function.
2500 (alloca_raw_REG): New macro.
2501
2502 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2503
2504 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2505 (pcrel_local_address): Replace pcrel_address predicate, use the
2506 new function address_to_insn_form.
2507 (pcrel_external_address): Replace with new implementation using
2508 address_to_insn_form..
2509 (prefixed_mem_operand): Delete predicate which is now unused.
2510 (pcrel_external_mem_operand): Delete predicate which is now
2511 unused.
2512 * config/rs6000/rs6000-protos.h (enum insn_form): New
2513 enumeration.
2514 (enum non_prefixed_form): New enumeration.
2515 (address_to_insn_form): New declaration.
2516 (prefixed_load_p): New declaration.
2517 (prefixed_store_p): New declaration.
2518 (prefixed_paddi_p): New declaration.
2519 (rs6000_asm_output_opcode): New declaration.
2520 (rs6000_final_prescan_insn): Move declaration and update calling
2521 signature.
2522 (address_is_prefixed): New helper inline function.
2523 * config/rs6000/rs6000.c(print_operand_address): Check for either
2524 PC-relative local symbols or PC-relative external symbols.
2525 (rs6000_emit_move): Support loading PC-relative addresses.
2526 (mode_supports_prefixed_address_p): Delete, no longer used.
2527 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2528 (address_to_insn_form): New function to decode an address format.
2529 (reg_to_non_prefixed): New function to identify what the
2530 non-prefixed memory instruction format is for a register.
2531 (prefixed_load_p): New function to identify prefixed loads.
2532 (prefixed_store_p): New function to identify prefixed stores.
2533 (prefixed_paddi_p): New function to identify prefixed load
2534 immediates.
2535 (next_insn_prefixed_p): New static state variable.
2536 (rs6000_final_prescan_insn): New function to determine if an insn
2537 uses a prefixed instruction.
2538 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2539 prefixed instruction.
2540 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2541 (ASM_OUTPUT_OPCODE): New target hook.
2542 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2543 prefixed instructions.
2544 (prefixed_length): New insn attribute for the size of prefixed
2545 instructions.
2546 (non_prefixed_length): New insn attribute for the size of
2547 non-prefixed instructions.
2548 (pcrel_local_addr): New insn to load up a local PC-relative
2549 address.
2550 (pcrel_extern_addr): New insn to load up an external PC-relative
2551 address.
2552 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2553 GPR and loading a 128-bit floating point type to a GPR.
2554
2555 2019-09-30 Richard Biener <rguenther@suse.de>
2556
2557 * gimple.c (gimple_get_lhs): For PHIs return the result.
2558 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2559 SLP instance as argument.
2560 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2561 double-reduction PHIs with vectorizable_lc_phi.
2562 (vect_analyze_loop_operations): Adjust.
2563 (vect_create_epilog_for_reduction): Remove all code not dealing
2564 with reduction LC PHI or epilogue generation.
2565 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2566 for live stmts of reductions.
2567 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2568 do not handle defs that are not vect_internal_def.
2569 (can_vectorize_live_stmts): Adjust.
2570 (vect_analyze_stmt): When the vectorized stmt defined a value
2571 used on backedges adjust the backedge uses of vectorized PHIs.
2572
2573 2019-09-30 Martin Jambor <mjambor@suse.cz>
2574
2575 PR ipa/91853
2576 * tree-inline.c (force_value_to_type): New function.
2577 (setup_one_parameter): Use force_value_to_type to convert type.
2578 * tree-inline.c (force_value_to_type): Declare.
2579 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2580 with register type mismatches.
2581
2582 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2583
2584 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2585 32-bit PowerPC.
2586 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2587 * config/rs6000/t-freebsd64: Make use of the above define and build
2588 the 32-bit libraries with secure-plt.
2589
2590 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2591
2592 PR target/91931
2593 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2594 gen_int_mode instead of GEN_INT.
2595
2596 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2597
2598 * config/darwin.c (gen_macho_low): Amend to include the mode
2599 argument.
2600 (machopic_indirect_data_reference): Amend gen_macho_low call
2601 to include mode argument
2602 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2603 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2604 the macho_high expander and two define_insn entries.
2605
2606 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR bootstrap/90543
2609 * optc-save-gen.awk: Fix up printing string option differences.
2610
2611 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2612
2613 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2614 vec_perm cost to 1 for non-Power7 VSX architectures.
2615
2616 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2617
2618 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2619 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2620 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2621
2622 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2623
2624 * config/darwin.c (gen_macho_high): Amend to include the mode
2625 argument.
2626 (machopic_indirect_data_reference): Amend gen_macho_high call
2627 to include mode argument.
2628 (machopic_legitimize_pic_address): Likewise.
2629 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2630 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2631 the macho_high expander and two define_insn entries.
2632
2633 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2634
2635 PR target/86805
2636 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2637
2638 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2639
2640 PR target/80672
2641 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2642 std::string::compare instead of std::string::find.
2643
2644 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2645
2646 * configure: Regenerate.
2647
2648 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2649
2650 PR middle-end/91920
2651 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2652 variables as shared.
2653
2654 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2655
2656 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2657 replaces the expander and two define_insn entries.
2658 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2659 call.
2660 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2661
2662 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2663
2664 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2665 (fibonacci_heap::nodes): Likewise.
2666 (fibonacci_heap::min_key): Likewise.
2667 (fibonacci_heap::min): Likewise.
2668
2669 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2670
2671 * cgraph.c (cgraph_node::get_fun): Make const.
2672 * cgraph.h (cgraph_node::get_fun): Likewise.
2673
2674 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2675
2676 PR target/91919
2677 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2678 of SImode MULT.
2679
2680 2019-09-27 Richard Biener <rguenther@suse.de>
2681
2682 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2683 (STMT_VINFO_REDUC_FN): Likewise.
2684 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2685 STMT_VINFO_REDUC_FN.
2686 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2687 for condition reductions.
2688 (vect_create_epilog_for_reduction): Compute all required state
2689 from the stmt to be vectorized.
2690 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2691 invocation and remove then dead code. For single def-use chains
2692 record only a single vector stmt.
2693
2694 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2695
2696 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2697 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2698 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2699 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2700 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2701 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2702 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2703 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2704 (aarch64_general_builtin_rsqrt): Declare.
2705 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2706 New function.
2707 (aarch64_mangle_builtin_type): Rename to...
2708 (aarch64_general_mangle_builtin_type): ...this.
2709 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2710 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2711 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2712 aarch64_general_add_builtin instead of add_builtin_function.
2713 (aarch64_init_builtins): Rename to...
2714 (aarch64_general_init_builtins): ...this. Use
2715 aarch64_general_add_builtin instead of add_builtin_function.
2716 (aarch64_builtin_decl): Rename to...
2717 (aarch64_general_builtin_decl): ...this and remove the unused
2718 arguments.
2719 (aarch64_expand_builtin): Rename to...
2720 (aarch64_general_expand_builtin): ...this and remove the unused
2721 arguments.
2722 (aarch64_builtin_rsqrt): Rename to...
2723 (aarch64_general_builtin_rsqrt): ...this.
2724 (aarch64_fold_builtin): Rename to...
2725 (aarch64_general_fold_builtin): ...this. Take the function subcode
2726 and return type as arguments. Remove the "ignored" argument.
2727 (aarch64_gimple_fold_builtin): Rename to...
2728 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2729 subcode and gcall as arguments, and return the new function call.
2730 * config/aarch64/aarch64.c (aarch64_init_builtins)
2731 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2732 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2733 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2734 instead of aarch64_builtin_rsqrt.
2735 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2736 instead of aarch64_mangle_builtin_type.
2737
2738 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2739
2740 * target.def (check_builtin_call): New target hook.
2741 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2742 * doc/tm.texi: Regenerate.
2743
2744 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2745
2746 PR tree-optimization/91909
2747 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2748 reduc_index parameter. When handling COND_REDUCTION, make sure
2749 that the reduction phi operand is in the correct arm of the
2750 VEC_COND_EXPR.
2751 (vectorizable_reduction): Pass reduc_index to the above.
2752
2753 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2754
2755 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2756 New combine pattern.
2757
2758 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2759
2760 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2761 loop instruction into new basic block before the loop when basic
2762 block that precedes the loop is empty.
2763
2764 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2765
2766 * function.c (gimplify_parameters): Use build_clobber function.
2767 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2768 * tree-inline.c (expand_call_inline): Likewise.
2769 * tree-sra.c (clobber_subtree): Likewise.
2770 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2771 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2772 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2773 lower_omp_target): Likewise.
2774 * omp-expand.c (expand_omp_for_generic): Likewise.
2775 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2776
2777 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2778
2779 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2780 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2781 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2782 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2783 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2784 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2785 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2786 LD_ELEMREV_V16QI): Use the PURE attribute.
2787
2788 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2789
2790 * config/rs6000/darwin.md: Replace the expanders for
2791 load_macho_picbase and reload_macho_picbase with use of '@'
2792 and <mode> in their respective define_insns.
2793 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2794 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2795 Pmode to gen_load_macho_picbase.
2796 * config/rs6000/rs6000.md: Likewise.
2797
2798 2019-09-25 Richard Biener <rguenther@suse.de>
2799
2800 PR tree-optimization/91896
2801 * tree-vect-loop.c (vectorizable_reduction): The single
2802 def-use cycle optimization cannot apply when there's more
2803 than one pattern stmt involved.
2804
2805 2019-09-26 Richard Biener <rguenther@suse.de>
2806
2807 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2808 loop-closed PHIs that are vect_internal_def.
2809 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2810 Simplify.
2811 (vectorizable_lc_phi): New.
2812 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2813 (vect_transform_stmt): Likewise.
2814 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2815 (vectorizable_lc_phi): Declare.
2816
2817 2019-09-26 Richard Biener <rguenther@suse.de>
2818
2819 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2820 vectorizable_reduction for vect_double_reduction_def.
2821 (vect_transform_loop): Likewise.
2822 (vect_create_epilog_for_reduction): Move double-reduction
2823 PHI creation and preheader argument setting of PHIs ...
2824 (vectorizable_reduction): ... here. Also process
2825 vect_double_reduction_def PHIs, creating the vectorized
2826 PHI nodes, remembering the scalar adjustment computed for
2827 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2828 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2829 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2830 Initialize STMT_VINFO_REDUC_CODE.
2831 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2832 (_stmt_vec_info::reduc_code): Likewise.
2833 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2834 (STMT_VINFO_REDUC_CODE): Likewise.
2835
2836 2019-09-26 Matt Turner <mattst88@gmail.com>
2837
2838 PR driver/69471
2839 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2840 (mtune=): Add Negative(mtune=).
2841 (mcpu=): Add Negative(mcpu=).
2842 * config/arm/arm.opt: Likewise.
2843
2844 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2845
2846 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2847 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2848 Define.
2849 * config/arm/arm_acle.h: Define builtins for the above.
2850 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2851 (simd32_op): Handle the above.
2852 * config/arm/unspecs.md: Define unspecs for the above.
2853
2854 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2855
2856 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2857 (arm_<sup>xtb16): Likewise.
2858 (arm_usada8): Likewise.
2859 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2860 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2861 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2862 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2863 __sxtb16, __uxtab16, __uxtb16): Define.
2864 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2865 * config/arm/unspecs.md: Define unspecs for the above.
2866 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2867 (USXTB16): Likewise.
2868 (simd32_op): New int_attribute.
2869 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2870 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2871
2872 2019-09-26 Martin Jambor <mjambor@suse.cz>
2873
2874 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2875 internal_error.
2876
2877 2019-09-26 Martin Jambor <mjambor@suse.cz>
2878
2879 * ipa-sra.c (process_scan_results): Fix continue condition.
2880
2881 2019-09-26 Martin Liska <mliska@suse.cz>
2882
2883 PR tree-optimization/91885
2884 * tree-vectorizer.c (try_vectorize_loop_1): Add
2885 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2886
2887 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2888
2889 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2890 aarch64_plus_immediate rather than aarch64_uimm12_shift
2891 to test for valid PLUS immediates.
2892
2893 2019-09-25 Martin Jambor <mjambor@suse.cz>
2894
2895 * tree-sra.c (no_accesses_p): Remove.
2896 (no_accesses_representant): Likewise.
2897
2898 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2899
2900 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2901 consistenly.
2902 (vaba_s16): Likewise.
2903 (vaba_s32): Likewise.
2904 (vaba_u8): Likewise.
2905 (vaba_u16): Likewise.
2906 (vaba_u32): Likewise.
2907 (vabal_high_s8): Likewise.
2908 (vabal_high_s16): Likewise.
2909 (vabal_high_s32): Likewise.
2910 (vabal_high_u8): Likewise.
2911 (vabal_high_u16): Likewise.
2912 (vabal_high_u32): Likewise.
2913 (vabal_s8): Likewise.
2914 (vabal_s16): Likewise.
2915 (vabal_s32): Likewise.
2916 (vabal_u8): Likewise.
2917 (vabal_u16): Likewise.
2918 (vabal_u32): Likewise.
2919 (vabaq_s8): Likewise.
2920 (vabaq_s16): Likewise.
2921 (vabaq_s32): Likewise.
2922 (vabaq_u8): Likewise.
2923 (vabaq_u16): Likewise.
2924 (vabaq_u32): Likewise.
2925 (vabd_s8): Likewise.
2926 (vabd_s16): Likewise.
2927 (vabd_s32): Likewise.
2928 (vabd_u8): Likewise.
2929 (vabd_u16): Likewise.
2930 (vabd_u32): Likewise.
2931 (vabdl_high_s8): Likewise.
2932 (vabdl_high_s16): Likewise.
2933 (vabdl_high_s32): Likewise.
2934 (vabdl_high_u8): Likewise.
2935 (vabdl_high_u16): Likewise.
2936 (vabdl_high_u32): Likewise.
2937 (vabdl_s8): Likewise.
2938 (vabdl_s16): Likewise.
2939 (vabdl_s32): Likewise.
2940 (vabdl_u8): Likewise.
2941 (vabdl_u16): Likewise.
2942 (vabdl_u32): Likewise.
2943 (vabdq_s8): Likewise.
2944 (vabdq_s16): Likewise.
2945 (vabdq_s32): Likewise.
2946 (vabdq_u8): Likewise.
2947 (vabdq_u16): Likewise.
2948 (vabdq_u32): Likewise.
2949 (vaddlv_s8): Likewise.
2950 (vaddlv_s16): Likewise.
2951 (vaddlv_u8): Likewise.
2952 (vaddlv_u16): Likewise.
2953 (vaddlvq_s8): Likewise.
2954 (vaddlvq_s16): Likewise.
2955 (vaddlvq_s32): Likewise.
2956 (vaddlvq_u8): Likewise.
2957 (vaddlvq_u16): Likewise.
2958 (vaddlvq_u32): Likewise.
2959 (vcvtx_f32_f64): Likewise.
2960 (vcvtx_high_f32_f64): Likewise.
2961 (vcvtxd_f32_f64): Likewise.
2962 (vmla_n_f32): Likewise.
2963 (vmla_n_s16): Likewise.
2964 (vmla_n_s32): Likewise.
2965 (vmla_n_u16): Likewise.
2966 (vmla_n_u32): Likewise.
2967 (vmla_s8): Likewise.
2968 (vmla_s16): Likewise.
2969 (vmla_s32): Likewise.
2970 (vmla_u8): Likewise.
2971 (vmla_u16): Likewise.
2972 (vmla_u32): Likewise.
2973 (vmlal_high_n_s16): Likewise.
2974 (vmlal_high_n_s32): Likewise.
2975 (vmlal_high_n_u16): Likewise.
2976 (vmlal_high_n_u32): Likewise.
2977 (vmlal_high_s8): Likewise.
2978 (vmlal_high_s16): Likewise.
2979 (vmlal_high_s32): Likewise.
2980 (vmlal_high_u8): Likewise.
2981 (vmlal_high_u16): Likewise.
2982 (vmlal_high_u32): Likewise.
2983 (vmlal_n_s16): Likewise.
2984 (vmlal_n_s32): Likewise.
2985 (vmlal_n_u16): Likewise.
2986 (vmlal_n_u32): Likewise.
2987 (vmlal_s8): Likewise.
2988 (vmlal_s16): Likewise.
2989 (vmlal_s32): Likewise.
2990 (vmlal_u8): Likewise.
2991 (vmlal_u16): Likewise.
2992 (vmlal_u32): Likewise.
2993 (vmlaq_n_f32): Likewise.
2994 (vmlaq_n_s16): Likewise.
2995 (vmlaq_n_s32): Likewise.
2996 (vmlaq_n_u16): Likewise.
2997 (vmlaq_n_u32): Likewise.
2998 (vmlaq_s8): Likewise.
2999 (vmlaq_s16): Likewise.
3000 (vmlaq_s32): Likewise.
3001 (vmlaq_u8): Likewise.
3002 (vmlaq_u16): Likewise.
3003 (vmlaq_u32): Likewise.
3004 (vmls_n_f32): Likewise.
3005 (vmls_n_s16): Likewise.
3006 (vmls_n_s32): Likewise.
3007 (vmls_n_u16): Likewise.
3008 (vmls_n_u32): Likewise.
3009 (vmls_s8): Likewise.
3010 (vmls_s16): Likewise.
3011 (vmls_s32): Likewise.
3012 (vmls_u8): Likewise.
3013 (vmls_u16): Likewise.
3014 (vmls_u32): Likewise.
3015 (vmlsl_high_n_s16): Likewise.
3016 (vmlsl_high_n_s32): Likewise.
3017 (vmlsl_high_n_u16): Likewise.
3018 (vmlsl_high_n_u32): Likewise.
3019 (vmlsl_high_s8): Likewise.
3020 (vmlsl_high_s16): Likewise.
3021 (vmlsl_high_s32): Likewise.
3022 (vmlsl_high_u8): Likewise.
3023 (vmlsl_high_u16): Likewise.
3024 (vmlsl_high_u32): Likewise.
3025 (vmlsl_n_s16): Likewise.
3026 (vmlsl_n_s32): Likewise.
3027 (vmlsl_n_u16): Likewise.
3028 (vmlsl_n_u32): Likewise.
3029 (vmlsl_s8): Likewise.
3030 (vmlsl_s16): Likewise.
3031 (vmlsl_s32): Likewise.
3032 (vmlsl_u8): Likewise.
3033 (vmlsl_u16): Likewise.
3034 (vmlsl_u32): Likewise.
3035 (vmlsq_n_f32): Likewise.
3036 (vmlsq_n_s16): Likewise.
3037 (vmlsq_n_s32): Likewise.
3038 (vmlsq_n_u16): Likewise.
3039 (vmlsq_n_u32): Likewise.
3040 (vmlsq_s8): Likewise.
3041 (vmlsq_s16): Likewise.
3042 (vmlsq_s32): Likewise.
3043 (vmlsq_u8): Likewise.
3044 (vmlsq_u16): Likewise.
3045 (vmlsq_u32): Likewise.
3046 (vmovl_high_s8): Likewise.
3047 (vmovl_high_s16): Likewise.
3048 (vmovl_high_s32): Likewise.
3049 (vmovl_high_u8): Likewise.
3050 (vmovl_high_u16): Likewise.
3051 (vmovl_high_u32): Likewise.
3052 (vmovl_s8): Likewise.
3053 (vmovl_s16): Likewise.
3054 (vmovl_s32): Likewise.
3055 (vmovl_u8): Likewise.
3056 (vmovl_u16): Likewise.
3057 (vmovl_u32): Likewise.
3058 (vmovn_high_s16): Likewise.
3059 (vmovn_high_s32): Likewise.
3060 (vmovn_high_s64): Likewise.
3061 (vmovn_high_u16): Likewise.
3062 (vmovn_high_u32): Likewise.
3063 (vmovn_high_u64): Likewise.
3064 (vmovn_s16): Likewise.
3065 (vmovn_s32): Likewise.
3066 (vmovn_s64): Likewise.
3067 (vmovn_u16): Likewise.
3068 (vmovn_u32): Likewise.
3069 (vmovn_u64): Likewise.
3070 (vmull_high_n_s16): Likewise.
3071 (vmull_high_n_s32): Likewise.
3072 (vmull_high_n_u16): Likewise.
3073 (vmull_high_n_u32): Likewise.
3074 (vmull_high_p8): Likewise.
3075 (vmull_high_s8): Likewise.
3076 (vmull_high_s16): Likewise.
3077 (vmull_high_s32): Likewise.
3078 (vmull_high_u8): Likewise.
3079 (vmull_high_u16): Likewise.
3080 (vmull_high_u32): Likewise.
3081 (vmull_n_s16): Likewise.
3082 (vmull_n_s32): Likewise.
3083 (vmull_n_u16): Likewise.
3084 (vmull_n_u32): Likewise.
3085 (vmull_p8): Likewise.
3086 (vmull_s8): Likewise.
3087 (vmull_s16): Likewise.
3088 (vmull_s32): Likewise.
3089 (vmull_u8): Likewise.
3090 (vmull_u16): Likewise.
3091 (vmull_u32): Likewise.
3092 (vpadal_s8): Likewise.
3093 (vpadal_s16): Likewise.
3094 (vpadal_s32): Likewise.
3095 (vpadal_u8): Likewise.
3096 (vpadal_u16): Likewise.
3097 (vpadal_u32): Likewise.
3098 (vpadalq_s8): Likewise.
3099 (vpadalq_s16): Likewise.
3100 (vpadalq_s32): Likewise.
3101 (vpadalq_u8): Likewise.
3102 (vpadalq_u16): Likewise.
3103 (vpadalq_u32): Likewise.
3104 (vpaddl_s8): Likewise.
3105 (vpaddl_s16): Likewise.
3106 (vpaddl_s32): Likewise.
3107 (vpaddl_u8): Likewise.
3108 (vpaddl_u16): Likewise.
3109 (vpaddl_u32): Likewise.
3110 (vpaddlq_s8): Likewise.
3111 (vpaddlq_s16): Likewise.
3112 (vpaddlq_s32): Likewise.
3113 (vpaddlq_u8): Likewise.
3114 (vpaddlq_u16): Likewise.
3115 (vpaddlq_u32): Likewise.
3116 (vpaddq_s8): Likewise.
3117 (vpaddq_s16): Likewise.
3118 (vpaddq_s32): Likewise.
3119 (vpaddq_s64): Likewise.
3120 (vpaddq_u8): Likewise.
3121 (vpaddq_u16): Likewise.
3122 (vpaddq_u32): Likewise.
3123 (vpaddq_u64): Likewise.
3124 (vqdmulh_n_s16): Likewise.
3125 (vqdmulh_n_s32): Likewise.
3126 (vqdmulhq_n_s16): Likewise.
3127 (vqdmulhq_n_s32): Likewise.
3128 (vqmovn_high_s16): Likewise.
3129 (vqmovn_high_s32): Likewise.
3130 (vqmovn_high_s64): Likewise.
3131 (vqmovn_high_u16): Likewise.
3132 (vqmovn_high_u32): Likewise.
3133 (vqmovn_high_u64): Likewise.
3134 (vqmovun_high_s16): Likewise.
3135 (vqmovun_high_s32): Likewise.
3136 (vqmovun_high_s64): Likewise.
3137 (vqrdmulh_n_s16): Likewise.
3138 (vqrdmulh_n_s32): Likewise.
3139 (vqrdmulhq_n_s16): Likewise.
3140 (vqrdmulhq_n_s32): Likewise.
3141 (vrsqrte_u32): Likewise.
3142 (vrsqrteq_u32): Likewise.
3143 (vtst_p8): Likewise.
3144 (vtst_p16): Likewise.
3145 (vtst_p64): Likewise.
3146 (vtstq_p8): Likewise.
3147 (vtstq_p16): Likewise.
3148 (vtstq_p64): Likewise.
3149 (vaddlv_s32): Likewise.
3150 (vaddlv_u32): Likewise.
3151 (vqtbl1_p8): Likewise.
3152 (vqtbl1_s8): Likewise.
3153 (vqtbl1_u8): Likewise.
3154 (vqtbl1q_p8): Likewise.
3155 (vqtbl1q_s8): Likewise.
3156 (vqtbl1q_u8): Likewise.
3157 (vqtbx1_s8): Likewise.
3158 (vqtbx1_u8): Likewise.
3159 (vqtbx1_p8): Likewise.
3160 (vqtbx1q_s8): Likewise.
3161 (vqtbx1q_u8): Likewise.
3162 (vqtbx1q_p8): Likewise.
3163 (vtbl1_s8): Likewise.
3164 (vtbl1_u8): Likewise.
3165 (vtbl1_p8): Likewise.
3166 (vtbl2_s8): Likewise.
3167 (vtbl2_u8): Likewise.
3168 (vtbl2_p8): Likewise.
3169 (vtbl3_s8): Likewise.
3170 (vtbl3_u8): Likewise.
3171 (vtbl3_p8): Likewise.
3172 (vtbl4_s8): Likewise.
3173 (vtbl4_u8): Likewise.
3174 (vtbl4_p8): Likewise.
3175 (vtbx2_s8): Likewise.
3176 (vtbx2_u8): Likewise.
3177 (vtbx2_p8): Likewise.
3178 (vld1_f32): Likewise.
3179 (vld1_f64): Likewise.
3180 (vld1_p8): Likewise.
3181 (vld1_p16): Likewise.
3182 (vld1_p64): Likewise.
3183 (vld1_s8): Likewise.
3184 (vld1_s16): Likewise.
3185 (vld1_s32): Likewise.
3186 (vld1_s64): Likewise.
3187 (vld1_u8): Likewise.
3188 (vld1_u16): Likewise.
3189 (vld1_u32): Likewise.
3190 (vld1_u64): Likewise.
3191 (vld1q_f32): Likewise.
3192 (vld1q_f64): Likewise.
3193 (vld1q_p8): Likewise.
3194 (vld1q_p16): Likewise.
3195 (vld1q_p64): Likewise.
3196 (vld1q_s8): Likewise.
3197 (vld1q_s16): Likewise.
3198 (vld1q_s32): Likewise.
3199 (vld1q_s64): Likewise.
3200 (vld1q_u8): Likewise.
3201 (vld1q_u16): Likewise.
3202 (vld1q_u32): Likewise.
3203 (vld1q_u64): Likewise.
3204 (vpmax_s8): Likewise.
3205 (vpmax_s16): Likewise.
3206 (vpmax_s32): Likewise.
3207 (vpmax_u8): Likewise.
3208 (vpmax_u16): Likewise.
3209 (vpmax_u32): Likewise.
3210 (vpmaxq_s8): Likewise.
3211 (vpmaxq_s16): Likewise.
3212 (vpmaxq_s32): Likewise.
3213 (vpmaxq_u8): Likewise.
3214 (vpmaxq_u16): Likewise.
3215 (vpmaxq_u32): Likewise.
3216 (vpmax_f32): Likewise.
3217 (vpmaxq_f32): Likewise.
3218 (vpmaxq_f64): Likewise.
3219 (vpmaxqd_f64): Likewise.
3220 (vpmaxs_f32): Likewise.
3221 (vpmaxnm_f32): Likewise.
3222 (vpmaxnmq_f32): Likewise.
3223 (vpmaxnmq_f64): Likewise.
3224 (vpmaxnmqd_f64): Likewise.
3225 (vpmaxnms_f32): Likewise.
3226 (vpmin_s8): Likewise.
3227 (vpmin_s16): Likewise.
3228 (vpmin_s32): Likewise.
3229 (vpmin_u8): Likewise.
3230 (vpmin_u16): Likewise.
3231 (vpmin_u32): Likewise.
3232 (vpminq_s8): Likewise.
3233 (vpminq_s16): Likewise.
3234 (vpminq_s32): Likewise.
3235 (vpminq_u8): Likewise.
3236 (vpminq_u16): Likewise.
3237 (vpminq_u32): Likewise.
3238 (vpmin_f32): Likewise.
3239 (vpminq_f32): Likewise.
3240 (vpminq_f64): Likewise.
3241 (vpminqd_f64): Likewise.
3242 (vpmins_f32): Likewise.
3243 (vpminnm_f32): Likewise.
3244 (vpminnmq_f32): Likewise.
3245 (vpminnmq_f64): Likewise.
3246 (vpminnmqd_f64): Likewise.
3247 (vpminnms_f32): Likewise.
3248 (vmla_f32): Likewise.
3249 (vmlaq_f32): Likewise.
3250 (vmlaq_f64): Likewise.
3251 (vmls_f32): Likewise.
3252 (vmlsq_f32): Likewise.
3253 (vmlsq_f64): Likewise.
3254 (vqtbl2_s8): Likewise.
3255 (vqtbl2_u8): Likewise.
3256 (vqtbl2_p8): Likewise.
3257 (vqtbl2q_s8): Likewise.
3258 (vqtbl2q_u8): Likewise.
3259 (vqtbl2q_p8): Likewise.
3260 (vqtbl3_s8): Likewise.
3261 (vqtbl3_u8): Likewise.
3262 (vqtbl3_p8): Likewise.
3263 (vqtbl3q_s8): Likewise.
3264 (vqtbl3q_u8): Likewise.
3265 (vqtbl3q_p8): Likewise.
3266 (vqtbl4_s8): Likewise.
3267 (vqtbl4_u8): Likewise.
3268 (vqtbl4_p8): Likewise.
3269 (vqtbl4q_s8): Likewise.
3270 (vqtbl4q_u8): Likewise.
3271 (vqtbl4q_p8): Likewise.
3272 (vqtbx2_s8): Likewise.
3273 (vqtbx2_u8): Likewise.
3274 (vqtbx2_p8): Likewise.
3275 (vqtbx2q_s8): Likewise.
3276 (vqtbx2q_u8): Likewise.
3277 (vqtbx2q_p8): Likewise.
3278 (vqtbx3_s8): Likewise.
3279 (vqtbx3_u8): Likewise.
3280 (vqtbx3_p8): Likewise.
3281 (vqtbx3q_s8): Likewise.
3282 (vqtbx3q_u8): Likewise.
3283 (vqtbx3q_p8): Likewise.
3284 (vqtbx4_s8): Likewise.
3285 (vqtbx4_u8): Likewise.
3286 (vqtbx4_p8): Likewise.
3287 (vqtbx4q_s8): Likewise.
3288 (vqtbx4q_u8): Likewise.
3289 (vqtbx4q_p8): Likewise.
3290 (vrev16_p8): Likewise.
3291 (vrev16_s8): Likewise.
3292 (vrev16_u8): Likewise.
3293 (vrev16q_p8): Likewise.
3294 (vrev16q_s8): Likewise.
3295 (vrev16q_u8): Likewise.
3296 (vrev32_p8): Likewise.
3297 (vrev32_p16): Likewise.
3298 (vrev32_s8): Likewise.
3299 (vrev32_s16): Likewise.
3300 (vrev32_u8): Likewise.
3301 (vrev32_u16): Likewise.
3302 (vrev32q_p8): Likewise.
3303 (vrev32q_p16): Likewise.
3304 (vrev32q_s8): Likewise.
3305 (vrev32q_s16): Likewise.
3306 (vrev32q_u8): Likewise.
3307 (vrev32q_u16): Likewise.
3308 (vrev64_f32): Likewise.
3309 (vrev64_p8): Likewise.
3310 (vrev64_p16): Likewise.
3311 (vrev64_s8): Likewise.
3312 (vrev64_s16): Likewise.
3313 (vrev64_s32): Likewise.
3314 (vrev64_u8): Likewise.
3315 (vrev64_u16): Likewise.
3316 (vrev64_u32): Likewise.
3317 (vrev64q_f32): Likewise.
3318 (vrev64q_p8): Likewise.
3319 (vrev64q_p16): Likewise.
3320 (vrev64q_s8): Likewise.
3321 (vrev64q_s16): Likewise.
3322 (vrev64q_s32): Likewise.
3323 (vrev64q_u8): Likewise.
3324 (vrev64q_u16): Likewise.
3325 (vrev64q_u32): Likewise.
3326 (vsha1cq_u32): Likewise.
3327 (vsha1mq_u32): Likewise.
3328 (vsha1pq_u32): Likewise.
3329 (vsha1h_u32): Likewise.
3330 (vsha1su0q_u32): Likewise.
3331 (vsha1su1q_u32): Likewise.
3332 (vsha256hq_u32): Likewise.
3333 (vsha256h2q_u32): Likewise.
3334 (vsha256su0q_u32): Likewise.
3335 (vsha256su1q_u32): Likewise.
3336 (vmull_p64): Likewise.
3337 (vmull_high_p64): Likewise.
3338 (vsqrt_f32): Likewise.
3339 (vsqrtq_f32): Likewise.
3340 (vsqrt_f64): Likewise.
3341 (vsqrtq_f64): Likewise.
3342 (vst1_f32): Likewise.
3343 (vst1_f64): Likewise.
3344 (vst1_p8): Likewise.
3345 (vst1_p16): Likewise.
3346 (vst1_p64): Likewise.
3347 (vst1_s8): Likewise.
3348 (vst1_s16): Likewise.
3349 (vst1_s32): Likewise.
3350 (vst1_s64): Likewise.
3351 (vst1_u8): Likewise.
3352 (vst1_u16): Likewise.
3353 (vst1_u32): Likewise.
3354 (vst1_u64): Likewise.
3355 (vst1q_f32): Likewise.
3356 (vst1q_f64): Likewise.
3357 (vst1q_p8): Likewise.
3358 (vst1q_p16): Likewise.
3359 (vst1q_p64): Likewise.
3360 (vst1q_s8): Likewise.
3361 (vst1q_s16): Likewise.
3362 (vst1q_s32): Likewise.
3363 (vst1q_s64): Likewise.
3364 (vst1q_u8): Likewise.
3365 (vst1q_u16): Likewise.
3366 (vst1q_u32): Likewise.
3367 (vst1q_u64): Likewise.
3368 (vst1_s64_x2): Likewise.
3369 (vst1_u64_x2): Likewise.
3370 (vst1_f64_x2): Likewise.
3371 (vst1_s8_x2): Likewise.
3372 (vst1_p8_x2): Likewise.
3373 (vst1_s16_x2): Likewise.
3374 (vst1_p16_x2): Likewise.
3375 (vst1_s32_x2): Likewise.
3376 (vst1_u8_x2): Likewise.
3377 (vst1_u16_x2): Likewise.
3378 (vst1_u32_x2): Likewise.
3379 (vst1_f16_x2): Likewise.
3380 (vst1_f32_x2): Likewise.
3381 (vst1_p64_x2): Likewise.
3382 (vst1q_s8_x2): Likewise.
3383 (vst1q_p8_x2): Likewise.
3384 (vst1q_s16_x2): Likewise.
3385 (vst1q_p16_x2): Likewise.
3386 (vst1q_s32_x2): Likewise.
3387 (vst1q_s64_x2): Likewise.
3388 (vst1q_u8_x2): Likewise.
3389 (vst1q_u16_x2): Likewise.
3390 (vst1q_u32_x2): Likewise.
3391 (vst1q_u64_x2): Likewise.
3392 (vst1q_f16_x2): Likewise.
3393 (vst1q_f32_x2): Likewise.
3394 (vst1q_f64_x2): Likewise.
3395 (vst1q_p64_x2): Likewise.
3396 (vst1_s64_x3): Likewise.
3397 (vst1_u64_x3): Likewise.
3398 (vst1_f64_x3): Likewise.
3399 (vst1_s8_x3): Likewise.
3400 (vst1_p8_x3): Likewise.
3401 (vst1_s16_x3): Likewise.
3402 (vst1_p16_x3): Likewise.
3403 (vst1_s32_x3): Likewise.
3404 (vst1_u8_x3): Likewise.
3405 (vst1_u16_x3): Likewise.
3406 (vst1_u32_x3): Likewise.
3407 (vst1_f16_x3): Likewise.
3408 (vst1_f32_x3): Likewise.
3409 (vst1_p64_x3): Likewise.
3410 (vst1q_s8_x3): Likewise.
3411 (vst1q_p8_x3): Likewise.
3412 (vst1q_s16_x3): Likewise.
3413 (vst1q_p16_x3): Likewise.
3414 (vst1q_s32_x3): Likewise.
3415 (vst1q_s64_x3): Likewise.
3416 (vst1q_u8_x3): Likewise.
3417 (vst1q_u16_x3): Likewise.
3418 (vst1q_u32_x3): Likewise.
3419 (vst1q_u64_x3): Likewise.
3420 (vst1q_f16_x3): Likewise.
3421 (vst1q_f32_x3): Likewise.
3422 (vst1q_f64_x3): Likewise.
3423 (vst1q_p64_x3): Likewise.
3424 (vst2_s64): Likewise.
3425 (vst2_u64): Likewise.
3426 (vst2_f64): Likewise.
3427 (vst2_s8): Likewise.
3428 (vst2_p8): Likewise.
3429 (vst2_s16): Likewise.
3430 (vst2_p16): Likewise.
3431 (vst2_s32): Likewise.
3432 (vst2_u8): Likewise.
3433 (vst2_u16): Likewise.
3434 (vst2_u32): Likewise.
3435 (vst2_f16): Likewise.
3436 (vst2_f32): Likewise.
3437 (vst2_p64): Likewise.
3438 (vst2q_s8): Likewise.
3439 (vst2q_p8): Likewise.
3440 (vst2q_s16): Likewise.
3441 (vst2q_p16): Likewise.
3442 (vst2q_s32): Likewise.
3443 (vst2q_s64): Likewise.
3444 (vst2q_u8): Likewise.
3445 (vst2q_u16): Likewise.
3446 (vst2q_u32): Likewise.
3447 (vst2q_u64): Likewise.
3448 (vst2q_f16): Likewise.
3449 (vst2q_f32): Likewise.
3450 (vst2q_f64): Likewise.
3451 (vst2q_p64): Likewise.
3452 (vst3_s64): Likewise.
3453 (vst3_u64): Likewise.
3454 (vst3_f64): Likewise.
3455 (vst3_s8): Likewise.
3456 (vst3_p8): Likewise.
3457 (vst3_s16): Likewise.
3458 (vst3_p16): Likewise.
3459 (vst3_s32): Likewise.
3460 (vst3_u8): Likewise.
3461 (vst3_u16): Likewise.
3462 (vst3_u32): Likewise.
3463 (vst3_f16): Likewise.
3464 (vst3_f32): Likewise.
3465 (vst3_p64): Likewise.
3466 (vst3q_s8): Likewise.
3467 (vst3q_p8): Likewise.
3468 (vst3q_s16): Likewise.
3469 (vst3q_p16): Likewise.
3470 (vst3q_s32): Likewise.
3471 (vst3q_s64): Likewise.
3472 (vst3q_u8): Likewise.
3473 (vst3q_u16): Likewise.
3474 (vst3q_u32): Likewise.
3475 (vst3q_u64): Likewise.
3476 (vst3q_f16): Likewise.
3477 (vst3q_f32): Likewise.
3478 (vst3q_f64): Likewise.
3479 (vst3q_p64): Likewise.
3480 (vst4_s64): Likewise.
3481 (vst4_u64): Likewise.
3482 (vst4_f64): Likewise.
3483 (vst4_s8): Likewise.
3484 (vst4_p8): Likewise.
3485 (vst4_s16): Likewise.
3486 (vst4_p16): Likewise.
3487 (vst4_s32): Likewise.
3488 (vst4_u8): Likewise.
3489 (vst4_u16): Likewise.
3490 (vst4_u32): Likewise.
3491 (vst4_f16): Likewise.
3492 (vst4_f32): Likewise.
3493 (vst4_p64): Likewise.
3494 (vst4q_s8): Likewise.
3495 (vst4q_p8): Likewise.
3496 (vst4q_s16): Likewise.
3497 (vst4q_p16): Likewise.
3498 (vst4q_s32): Likewise.
3499 (vst4q_s64): Likewise.
3500 (vst4q_u8): Likewise.
3501 (vst4q_u16): Likewise.
3502 (vst4q_u32): Likewise.
3503 (vst4q_u64): Likewise.
3504 (vst4q_f16): Likewise.
3505 (vst4q_f32): Likewise.
3506 (vst4q_f64): Likewise.
3507 (vst4q_p64): Likewise.
3508 (vtbx4_s8): Likewise.
3509 (vtbx4_u8): Likewise.
3510 (vtbx4_p8): Likewise.
3511 (vtrn_f32): Likewise.
3512 (vtrn_p8): Likewise.
3513 (vtrn_p16): Likewise.
3514 (vtrn_s8): Likewise.
3515 (vtrn_s16): Likewise.
3516 (vtrn_s32): Likewise.
3517 (vtrn_u8): Likewise.
3518 (vtrn_u16): Likewise.
3519 (vtrn_u32): Likewise.
3520 (vtrnq_f32): Likewise.
3521 (vtrnq_p8): Likewise.
3522 (vtrnq_p16): Likewise.
3523 (vtrnq_s8): Likewise.
3524 (vtrnq_s16): Likewise.
3525 (vtrnq_s32): Likewise.
3526 (vtrnq_u8): Likewise.
3527 (vtrnq_u16): Likewise.
3528 (vtrnq_u32): Likewise.
3529 (vrsqrte_f16): Likewise.
3530 (vrsqrteq_f16): Likewise.
3531 (vsqrt_f16): Likewise.
3532 (vsqrtq_f16): Likewise.
3533 (vabd_f16): Likewise.
3534 (vabdq_f16): Likewise.
3535 (vpadd_f16): Likewise.
3536 (vpaddq_f16): Likewise.
3537 (vpmax_f16): Likewise.
3538 (vpmaxq_f16): Likewise.
3539 (vpmaxnm_f16): Likewise.
3540 (vpmaxnmq_f16): Likewise.
3541 (vpmin_f16): Likewise.
3542 (vpminq_f16): Likewise.
3543 (vpminnm_f16): Likewise.
3544 (vpminnmq_f16): Likewise.
3545 (vrsqrts_f16): Likewise.
3546 (vrsqrtsq_f16): Likewise.
3547
3548 2019-09-25 Richard Biener <rguenther@suse.de>
3549
3550 PR tree-optimization/91896
3551 * tree-vect-loop.c (vectorizable_reduction): The single
3552 def-use cycle optimization cannot apply when there's more
3553 than one pattern stmt involved.
3554
3555 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3556
3557 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3558 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3559 (reload_macho_picbase_<mode>): Likewise.
3560
3561 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3562
3563 * config/rs6000/rs6000.md: Move darwin.md include until
3564 after the definition of the mode iterators.
3565
3566 2019-09-23 Martin Sebor <msebor@redhat.com>
3567
3568 PR tree-optimization/91570
3569 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3570 non-constant minlen, maxlen and maxbound.
3571
3572 2019-09-24 Richard Biener <rguenther@suse.de>
3573
3574 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3575 Rename to...
3576 (_stmt_vec_info::cond_reduc_code): ... this.
3577 (_stmt_vec_info::induc_cond_initial_val): Add.
3578 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3579 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3580 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3581 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3582 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3583 the reduction code.
3584 (vect_create_epilog_for_reduction): Drop special
3585 induction condition reduction params, pass in reduction code
3586 and simplify.
3587 (vectorizable_reduction): Perform condition reduction kind
3588 selection only at analysis time. Adjust passing on state.
3589
3590 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3591
3592 * config/aarch64/aarch64.md (mov<mode>): Don't call
3593 aarch64_split_dimode_const_store on volatile MEM.
3594
3595 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3596
3597 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3598 Update hwcap string for fp16fml.
3599
3600 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3601
3602 PR middle-end/91866
3603 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3604 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3605
3606 2019-09-24 Martin Liska <mliska@suse.cz>
3607
3608 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3609 instead of if-elseif-elseif-...
3610 * gimple-expr.c (extract_ops_from_tree): Likewise.
3611 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3612 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3613
3614 2019-09-24 Martin Jambor <mjambor@suse.cz>
3615
3616 PR ipa/91831
3617 * ipa-param-manipulation.c (carry_over_param): Make a method of
3618 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3619 in case of a context mismatch.
3620 (ipa_param_body_adjustments::common_initialization): Adjust call to
3621 carry_over_param.
3622 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3623 private method carry_over_param.
3624
3625 2019-09-24 Martin Jambor <mjambor@suse.cz>
3626
3627 PR ipa/91832
3628 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3629
3630 2019-09-24 Richard Biener <rguenther@suse.de>
3631
3632 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3633 base.
3634
3635 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3636
3637 * config/arm/t-arm (arm-builtins.o): Add dependency on
3638 arm_acle_builtins.def.
3639
3640 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3641
3642 PR target/91823
3643 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3644 canonical CONST_INTs. Use gen_rtvec.
3645
3646 2019-09-23 Richard Biener <rguenther@suse.de>
3647
3648 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3649 avoid adjusting by + 0 or * 1.
3650 (vect_create_epilog_for_reduction): Get reduction code only
3651 when necessary. Deal with adjustment_def only when necessary.
3652
3653 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3654
3655 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3656 memmodel index.
3657
3658 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3659
3660 PR ipa/91835
3661 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3662 "ipa-sra".
3663
3664 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3665
3666 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3667 code. Merge code blocks with common conditionals. Use declared
3668 macro instead of a magic number for PIC level.
3669
3670 2019-09-21 Martin Sebor <msebor@redhat.com>
3671
3672 PR middle-end/91830
3673 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3674 Simplify computation of the offset of the referenced subobject.
3675
3676 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3677
3678 * config/darwin.c (machopic_legitimize_pic_address): Check
3679 for lra not reload.
3680
3681 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3682
3683 * ira-conflicts.c (can_use_same_reg_p): New function.
3684 (process_reg_shuffles): Take an insn parameter. Ignore cases
3685 in which input operand op_num could seemingly never be allocated
3686 to the same register as the destination.
3687 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3688
3689 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3690
3691 * simplify-rtx.c (neg_const_int): Replace with...
3692 (neg_poly_int_rtx): ...this new function.
3693 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3694 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3695 (simplify_plus_minus): Likewise for constant terms here.
3696
3697 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3698
3699 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3700 HOST_WIDE_PRINT_UNSIGNED.
3701
3702 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3703
3704 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3705 character.
3706
3707 2019-09-20 Maya Rashish <coypu@sdf.org>
3708
3709 PR target/86811
3710 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3711 Define to speculation_safe_value_not_needed.
3712
3713 2019-09-20 Richard Biener <rguenther@suse.de>
3714 Uros Bizjak <ubizjak@gmail.com>
3715
3716 PR target/91814
3717 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3718 previous change.
3719 (general_scalar_chain::convert_op): Force not suitable memory
3720 operands to a register.
3721
3722 2019-09-20 Richard Biener <rguenther@suse.de>
3723
3724 PR tree-optimization/91821
3725 * tree-vect-loop.c (check_reduction_path): Check we can compute
3726 reduc_idx.
3727 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3728 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3729 operands in canonical order.
3730 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3731 STMT_VINFO_REDUC_IDX.
3732 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3733 (STMT_VINFO_REDUC_IDX): Likewise.
3734
3735 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3736
3737 PR target/91269
3738 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3739
3740 2019-09-20 Richard Biener <rguenther@suse.de>
3741
3742 PR tree-optimization/91822
3743 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3744 parameter.
3745 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3746 for reduc_index in nested cycles, adjust vectorizable_condition
3747 calls.
3748 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3749 parameter.
3750 (vect_analyze_stmt): Adjust.
3751 (vect_transform_stmt): Likewise.
3752
3753 2019-09-20 Richard Biener <rguenther@suse.de>
3754
3755 PR target/91767
3756 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3757 Ensure there's a sequence point between allocating the new register
3758 and passing a reference to a reg via regno_reg_rtx.
3759
3760 2019-09-20 Martin Jambor <mjambor@suse.cz>
3761
3762 * coretypes.h (cgraph_edge): Declare.
3763 * ipa-param-manipulation.c: Rewrite.
3764 * ipa-param-manipulation.h: Likewise.
3765 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3766 (OBJS): Added ipa-sra.o.
3767 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3768 and ref_p, added fields param_adjustments and performed_splits.
3769 (struct cgraph_clone_info): Remove ags_to_skip and
3770 combined_args_to_skip, new field param_adjustments.
3771 (cgraph_node::create_clone): Changed parameters to use
3772 ipa_param_adjustments.
3773 (cgraph_node::create_virtual_clone): Likewise.
3774 (cgraph_node::create_virtual_clone_with_body): Likewise.
3775 (tree_function_versioning): Likewise.
3776 (cgraph_build_function_type_skip_args): Removed.
3777 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3778 using ipa_param_adjustments.
3779 (clone_of_p): Likewise.
3780 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3781 (build_function_decl_skip_args): Likewise.
3782 (duplicate_thunk_for_node): Adjust parameters using
3783 ipa_param_body_adjustments, copy param_adjustments instead of
3784 args_to_skip.
3785 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3786 (cgraph_node::create_virtual_clone): Likewise.
3787 (cgraph_node::create_version_clone_with_body): Likewise.
3788 (cgraph_materialize_clone): Likewise.
3789 (symbol_table::materialize_all_clones): Likewise.
3790 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3791 ipa_replace_map check.
3792 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3793 (initialize_node_lattices): Make aware that some parameters might have
3794 already been removed.
3795 (want_remove_some_param_p): New function.
3796 (create_specialized_node): Convert to using ipa_param_adjustments and
3797 deal with possibly pre-existing adjustments.
3798 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3799 (output_node_opt_summary): Do not stream removed fields. Stream
3800 parameter adjustments instead of argumetns to skip.
3801 (input_node_opt_summary): Likewise.
3802 (input_node_opt_summary): Likewise.
3803 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3804 * lto-streamer.h (lto_section_type): Likewise.
3805 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3806 param_body_adjs.
3807 (copy_decl_to_var): Declare.
3808 * tree-inline.c (update_clone_info): Do not remap old_tree.
3809 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3810 statements, walk all extra generated statements and remap their
3811 operands.
3812 (redirect_all_calls): Add killed SSA names to a hash set.
3813 (remap_ssa_name): Do not remap killed SSA names.
3814 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3815 half of functionality moved to ipa_param_body_adjustments.
3816 (copy_decl_to_var): Make exported.
3817 (copy_body): Destroy killed_new_ssa_names hash set.
3818 (expand_call_inline): Remap performed splits.
3819 (update_clone_info): Likewise.
3820 (tree_function_versioning): Simplify tree_map processing. Updated to
3821 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3822 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3823 for the new interface.
3824 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3825 (simd_clone_compute_base_data_type): Likewise.
3826 (simd_clone_init_simd_arrays): Adjust for the new interface.
3827 (simd_clone_adjust_argument_types): Likewise.
3828 (struct modify_stmt_info): Likewise.
3829 (ipa_simd_modify_stmt_ops): Likewise.
3830 (ipa_simd_modify_function_body): Likewise.
3831 (simd_clone_adjust): Likewise.
3832 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3833 (type_internals_preclude_sra_p): Make public.
3834 * tree-sra.h: New file.
3835 * ipa-inline-transform.c (save_inline_function_body): Update to
3836 refelct new tree_function_versioning signature.
3837 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3838 ipa_param_adjustments to get current parameter indices.
3839 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3840 (ipcp_update_bits): Likewise.
3841 (ipcp_update_vr): Likewise.
3842 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3843 * ipa-sra.c: New file.
3844 * multiple_target.c (create_target_clone): Update to reflet new type
3845 of create_version_clone_with_body.
3846 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3847 tree_function_versioning.
3848 (modify_function): Update to reflect new type of
3849 tree_function_versioning.
3850 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3851 * passes.def: Remove old IPA-SRA and add new one.
3852 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3853 (make_pass_ipa_sra): Declare.
3854 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3855 ipa_sra_retvalues.
3856 * doc/invoke.texi (ipa-sra-max-replacements): New.
3857
3858 2019-09-19 Martin Sebor <msebor@redhat.com>
3859
3860 PR middle-end/91631
3861 * builtins.c (component_size): Correct trailing array computation,
3862 rename to component_ref_size and move...
3863 (compute_objsize): Adjust.
3864 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3865 (builtin_access::strict): Do not consider memmove.
3866 (builtin_access::write_off): New function.
3867 (builtin_memref::builtin_memref): Initialize refsize.
3868 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3869 refsize.
3870 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3871 Handle refsize.
3872 (builtin_access::builtin_access): Initialize dstoff to destination
3873 refeence offset here instead of in maybe_diag_overlap. Adjust
3874 referencess even to unrelated objects. Adjust sizrange of bounded
3875 string functions to reflect bound. For strcat, adjust destination
3876 sizrange by that of source.
3877 (builtin_access::strcat_overlap): Adjust offsets and sizes
3878 to reflect the increase in destination sizrange above.
3879 (builtin_access::overlap): Do not set dstoff here but instead
3880 in builtin_access::builtin_access.
3881 (check_bounds_or_overlap): Use builtin_access::write_off.
3882 (maybe_diag_access_bounds): Add argument. Add informational notes.
3883 (dump_builtin_memref, dump_builtin_access): New functions.
3884 * tree.c (component_ref_size): ...to here.
3885 * tree.h (component_ref_size): Declare.
3886 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3887 nul in the size of the source string.
3888
3889 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3890
3891 PR c/67224
3892 * doc/cpp.texi: Document support for extended characters in
3893 identifiers.
3894 * doc/cppopts.texi: Likewise.
3895
3896 2019-09-19 Richard Biener <rguenther@suse.de>
3897
3898 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3899 (check_reduction_path): New overload having the path as result.
3900 (vect_is_simple_reduction): From the detected reduction
3901 path build a SLP reduction chain if possible.
3902
3903 2019-09-19 Richard Biener <rguenther@suse.de>
3904
3905 PR target/91814
3906 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3907 Force operand to a register if it isn't nonimmediate_operand.
3908
3909 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3910
3911 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3912 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3913 (logical_op): Remove code attribute.
3914 (logical_OP): Likewise.
3915
3916 2019-09-19 Martin Liska <mliska@suse.cz>
3917
3918 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3919 Use proper casting.
3920
3921 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3922
3923 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3924 registers with %R.
3925
3926 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3927 for NE comparison of TImode values.
3928 (aarch64_emit_load_exclusive): Add support for TImode.
3929 (aarch64_emit_store_exclusive): Likewise.
3930 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3931 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3932 Change iterator from ALLI to ALLI_TI.
3933 (@atomic_compare_and_swap<JUST_TI>): New.
3934 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3935 (aarch64_load_exclusive_pair): New.
3936 (aarch64_store_exclusive_pair): New.
3937 * config/aarch64/iterators.md (JUST_TI): New.
3938
3939 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3940 strong_zero_p for aarch64_track_speculation; unify some code paths;
3941 use aarch64_gen_compare_reg instead of open-coding.
3942
3943 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3944 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3945 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3946 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3947 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3948 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3949 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3950 (atomic_<atomic_op><ALLI>): Likewise.
3951 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3952 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3953 * doc/invoke.texi: Document -moutline-atomics.
3954
3955 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3956
3957 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3958 trivial predicate for condition branch.
3959 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3960 for switch case.
3961 (compute_bb_predicates): Update predicate based on post-dominating
3962 relationship.
3963 (analyze_function_body): Calculate post-dominating information.
3964
3965 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3966
3967 * tree-vectorizer.h (vectorizable_condition): Take an int
3968 reduction index instead of a boolean flag.
3969 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3970 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3971 reductions if the reduction accumulator is the "then" rather
3972 than the "else" value.
3973 (vect_analyze_stmt): Update call accordingly.
3974 (vect_transform_stmt): Likewise.
3975 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3976 asserting that the index is > 0.
3977
3978 2019-09-19 Martin Liska <mliska@suse.cz>
3979
3980 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3981 (sort_congruence_classes_by_decl_uid): Likewise.
3982 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3983 easier sorting.
3984 (sem_item_optimizer::merge_classes): Likewise.
3985
3986 2019-09-19 Richard Biener <rguenther@suse.de>
3987
3988 PR tree-optimization/91812
3989 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3990 volatile loads.
3991
3992 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3993
3994 * defaults.h (TARGET_UNIT): New macro.
3995 (target_unit): New type.
3996 * rtl.h (native_encode_rtx, native_decode_rtx)
3997 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3998 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3999 * rtlanal.c (subreg_lsb_1): Delete.
4000 (subreg_size_lsb): New function.
4001 * simplify-rtx.c: Include rtx-vector-builder.h
4002 (simplify_immed_subreg): Delete.
4003 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4004 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4005 functions.
4006 (simplify_subreg): Use them.
4007 (test_vector_subregs_modes, test_vector_subregs_repeating)
4008 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4009 (test_vector_subregs): New functions.
4010 (test_vector_ops): Call test_vector_subregs for integer vector
4011 modes with at least 2 elements.
4012
4013 2019-09-19 Richard Biener <rguenther@suse.de>
4014
4015 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4016 LOOP_VINFO_OPERANDS_SWAPPED.
4017 (parloops_is_simple_reduction): Likewise.
4018 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4019 initialize operands_swapped.
4020 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4021 (vect_is_slp_reduction): Do not swap operands.
4022 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4023 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4024
4025 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4026
4027 PR target/87007
4028 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4029 Add avx_partial_xmm_update.
4030
4031 2019-09-18 Jim Wilson <jimw@sifive.com>
4032
4033 PR target/91683
4034 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4035 (riscv_move_integer): Likewise.
4036 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4037 riscv_move_integer arg.
4038 (riscv_legitimize_move): Likewise.
4039 (riscv_force_temporary): New parameter in_splitter. Don't call
4040 force_reg if true.
4041 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4042 arg.
4043 (riscv_add_offset): Likewise.
4044 (riscv_split_symbol): New parameter in_splitter. Pass to
4045 riscv_force_temporary.
4046 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4047 arg.
4048 (riscv_move_integer): New parameter in_splitter. New local
4049 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4050 in_splitter TRUE.
4051 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4052 riscv_split_symbol, and riscv_force_temporary args.
4053 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4054 riscv_move_integer arg.
4055 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4056
4057 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4058
4059 PR target/90878
4060 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4061 hard register store cost to 6.
4062
4063 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4064
4065 PR target/91446
4066 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4067 pseudo register store cost from 3 to 6 to make it the same as
4068 QImode and HImode.
4069
4070 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4071
4072 PR target/91738
4073 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4074 (one_cmpldi2): Likewise.
4075 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4076 of the constant parts is simple.
4077 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4078 (logical_op): Add new code attribute.
4079 (logical_OP): Likewise.
4080 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4081 (arm_iordi_operand): Add predicate.
4082 (arm_xordi_operand): Add predicate.
4083
4084 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4085
4086 * config/arm/arm.md (maddsidi4): Remove expander.
4087 (mulsidi3adddi): Remove pattern.
4088 (mulsidi3adddi_v6): Likewise.
4089 (mulsidi3_nov6): Likewise.
4090 (mulsidi3_v6): Likewise.
4091 (umulsidi3): Remove expander.
4092 (umulsidi3_nov6): Remove pattern.
4093 (umulsidi3_v6): Likewise.
4094 (umulsidi3adddi): Likewise.
4095 (umulsidi3adddi_v6): Likewise.
4096 (<Us>mulsidi3): Add combined expander.
4097 (<Us>maddsidi4): Likewise.
4098 (<US>mull): Add combined umull and smull pattern.
4099 (<US>mlal): Likewise.
4100 * config/arm/iterators.md (Us): Add new iterator.
4101
4102 2019-09-18 Richard Biener <rguenther@suse.de>
4103
4104 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4105 swapping.
4106 (vectorize_fold_left_reduction): Remove assert.
4107 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4108 operand in position 2. Remove assert.
4109
4110 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4111
4112 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4113 (smulsi3_highpart_nov6): Remove pattern.
4114 (smulsi3_highpart_v6): Likewise.
4115 (umulsi3_highpart): Likewise.
4116 (umulsi3_highpart_nov6): Likewise.
4117 (umulsi3_highpart_v6): Likewise.
4118 (<US>mull_high): Add new combined multiply pattern.
4119
4120 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4121
4122 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4123 (arm_mulsi3_v6): Likewise.
4124 (mulsi3addsi_v6): Likewise.
4125 (mulsi3subsi): Likewise.
4126 (mul): Add new multiply pattern.
4127 (mla): Likewise.
4128 (mls): Likewise.
4129
4130 2019-09-18 Richard Biener <rguenther@suse.de>
4131
4132 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4133 (parloops_valid_reduction_input_p): Copy from
4134 valid_reduction_input_p.
4135 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4136 (parloops_needs_fold_left_reduction_p): Copy from
4137 needs_fold_left_reduction_p.
4138 (parloops_is_simple_reduction): Copy from
4139 vect_is_simple_reduction.
4140 (parloops_force_simple_reduction): Copy from
4141 vect_force_simple_reduction.
4142 (gather_scalar_reductions): Adjust.
4143 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4144 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4145
4146 2019-09-18 Richard Biener <rguenther@suse.de>
4147
4148 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4149 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4150 static.
4151 (vect_create_epilog_for_reduction): Remove dead code.
4152
4153 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4154
4155 * varasm.c (assemble_real): Generate canonical const_ints.
4156
4157 2019-09-18 Richard Biener <rguenther@suse.de>
4158
4159 PR lto/91763
4160 * lto-streamer-in.c (input_eh_regions): Move EH init to
4161 lto_materialize_function.
4162 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4163 Likewise.
4164
4165 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4166
4167 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4168 are INTEGER_CSTs.
4169
4170 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4171
4172 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4173 of checking specifically for INTEGER_CST.
4174
4175 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4176
4177 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4178 sizes instead of uhwi sizes.
4179
4180 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4181
4182 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4183 (add_const_value_attribute): Handle CONST_POLY_INT.
4184
4185 2019-09-18 Martin Liska <mliska@suse.cz>
4186
4187 * dbgcnt.def (store_merging): New counter.
4188 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4189 Use it in store merging.
4190
4191 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4192
4193 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4194 function.
4195 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4196 * config/arm/arm.c (arm_sched_variable_issue): New function.
4197 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4198
4199 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4200
4201 * config/arm/types.md (no_reservation): New reservation.
4202 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4203 no_insn here.
4204 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4205 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4206 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4207 * config/arm/arm1020e.md (1020alu_op): Likewise.
4208 * config/arm/arm1026ejs.md (alu_op): Likewise.
4209 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4210 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4211 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4212 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4213 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4214 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4215 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4216 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4217 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4218 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4219 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4220 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4221 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4222 * config/arm/fa526.md (526_alu_op): Likewise.
4223 * config/arm/fa606te.md (606te_alu_op): Likewise.
4224 * config/arm/fa626te.md (626te_alu_op): Likewise.
4225 * config/arm/fa726te.md (726te_alu_op): Likewise.
4226 * config/arm/xgene1.md (xgene1_nop): Likewise.
4227
4228 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4229
4230 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4231 "no_insn" to "branch".
4232
4233 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4234
4235 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4236
4237 2019-09-17 Richard Biener <rguenther@suse.de>
4238
4239 PR debug/91772
4240 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4241 was missing generate locations only once.
4242
4243 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4244
4245 PR ipa/91089
4246 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4247 option.
4248 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4249 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4250 for switch default case using range analysis information.
4251
4252 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4253
4254 PR target/91749
4255 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4256 mode attributed is supported by FDPIC.
4257
4258 2019-09-17 Richard Biener <rguenther@suse.de>
4259
4260 PR tree-optimization/91790
4261 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4262 use the correct DR for setting up realignment.
4263
4264 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4265
4266 PR target/91719
4267 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4268 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4269 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4270 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4271
4272 2019-09-16 Jason Merrill <jason@redhat.com>
4273
4274 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4275
4276 2019-09-16 Martin Liska <mliska@suse.cz>
4277
4278 * gimple-fold.c (or_comparisons_1): Remove rules moved
4279 to ...
4280 * match.pd: ... here.
4281
4282 2019-09-16 Martin Liska <mliska@suse.cz>
4283
4284 * gimple-fold.c (or_comparisons_1): Remove rules
4285 moved to ...
4286 * match.pd: ... here.
4287
4288 2019-09-16 Martin Liska <mliska@suse.cz>
4289
4290 * genmatch.c (dt_node::append_simplify): Do not print
4291 warning when we have duplicate patterns belonging
4292 to a same simplify rule.
4293 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4294 (maybe_fold_comparisons_from_match_pd): Handle
4295 tcc_comparison as a results.
4296 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4297
4298 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4299 Qi Feng <ffengqi@linux.ibm.com>
4300
4301 PR middle-end/88784
4302 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4303 (x > y && x == XXX_MIN): Optimize into 'false'.
4304 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4305 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4306 (x < y && x == XXX_MAX): Optimize into 'false'.
4307 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4308 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4309 (x <= y || x != XXX_MIN): Optimize into 'true'.
4310 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4311 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4312 (x >= y || x != XXX_MAX): Optimize into 'true'.
4313 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4314
4315 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4316 Martin Liska <mliska@suse.cz>
4317
4318 * gimple-fold.c (and_comparisons_1): Add type as first
4319 argument.
4320 (and_var_with_comparison): Likewise.
4321 (and_var_with_comparison_1): Likewise.
4322 (or_comparisons_1): Likewise.
4323 (or_var_with_comparison): Likewise.
4324 (or_var_with_comparison_1): Likewise.
4325 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4326 (maybe_fold_or_comparisons): Likewise.
4327 (maybe_fold_comparisons_from_match_pd): New.
4328 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4329 (maybe_fold_or_comparisons): Likewise.
4330 * gimple.c (gimple_size): Make it public and add num_ops argument.
4331 (gimple_init): New function.
4332 (gimple_alloc): Call gimple_init.
4333 * gimple.h (gimple_size): New.
4334 (gimple_init): Likewise.
4335 * tree-if-conv.c (fold_or_predicates): Pass type.
4336 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4337 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4338 (optimize_vec_cond_expr): Likewise.
4339 (ovce_extract_ops): Return type of conditional expression.
4340 * tree-ssanames.c (init_ssa_name_imm_use): New.
4341 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4342 * tree-ssanames.h (init_ssa_name_imm_use): New.
4343
4344 2019-09-16 Richard Biener <rguenther@suse.de>
4345
4346 PR tree-optimization/91756
4347 PR tree-optimization/87132
4348 * tree-ssa-alias.h (enum translate_flags): New.
4349 (get_continuation_for_phi): Use it instead of simple bool flag.
4350 (walk_non_aliased_vuses): Likewise.
4351 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4352 (get_continuation_for_phi): When looking across backedges only
4353 disallow valueization.
4354 (walk_non_aliased_vuses): Adjust.
4355 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4356 if requested.
4357
4358 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4359
4360 PR middle-end/80791
4361 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4362 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4363 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4364 * target.def (have_count_reg_decr_p): New hook.
4365 (doloop_cost_for_generic): Likewise.
4366 (doloop_cost_for_address): Likewise.
4367 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4368 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4369 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4370 * doc/tm.texi: Regenerate.
4371 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4372 addend.
4373 (record_group): Init doloop_p.
4374 (add_candidate_1): Add optional argument doloop, change the handlings
4375 accordingly.
4376 (add_candidate): Likewise.
4377 (generic_predict_doloop_p): Update attribute.
4378 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4379 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4380 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4381 MIN_EXPR.
4382 (get_computation_cost): Update for doloop IV cand extra cost.
4383 (determine_group_iv_cost_cond): Update for doloop IV cand.
4384 (determine_iv_cost): Likewise.
4385 (ivopts_estimate_reg_pressure): Likewise.
4386 (may_eliminate_iv): Update handlings for doloop IV cand.
4387 (add_iv_candidate_for_doloop): New function.
4388 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4389 (iv_ca_set_no_cp): Update for doloop IV cand.
4390 (iv_ca_set_cp): Likewise.
4391 (iv_ca_dump): Dump register cost.
4392 (find_doloop_use): New function.
4393 (analyze_and_mark_doloop_use): Likewise.
4394 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4395
4396 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4397
4398 PR middle-end/91708
4399 * cse.c (cse_insn): Do not replace anything with a
4400 MEM.
4401
4402 2019-09-13 Ian Lance Taylor <iant@golang.org>
4403
4404 * doc/invoke.texi (Optimize Options): Fix typo.
4405
4406 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4407
4408 PR tree-optimization/89386
4409 * config/i386/sse.md (smulhrs<mode>3): New expander.
4410 (smulhrsv4hi3): Ditto.
4411
4412 2019-09-12 Richard Biener <rguenther@suse.de>
4413
4414 PR tree-optimization/91750
4415 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4416 in the type of the evolution.
4417
4418 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4419
4420 PR tree-optimization/89386
4421 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4422 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4423 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4424 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4425 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4426 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4427 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4428 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4429 (su, r): Handle the unspecs above.
4430 (bt): New int attribute.
4431 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4432 * internal-fn.c (first_commutative_argument): Commutativity info for
4433 above.
4434 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4435 (umulhrs_optab): New optabs.
4436 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4437 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4438 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4439 function.
4440 (vect_vect_recog_func_ptrs): Add it.
4441
4442 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4443
4444 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4445 code.
4446
4447 2019-09-11 Nathan Sidwell <nathan@acm.org>
4448
4449 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4450 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4451
4452 2019-09-11 Richard Biener <rguenther@suse.de>
4453
4454 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4455 * lto-wrapper.c (merge_and_complain): Pick up -g.
4456 (append_compiler_options): Likewise.
4457 (run_gcc): Re-instantiate handling -g0 at link-time.
4458 * doc/invoke.texi (flto): Document debug info generation.
4459
4460 2019-09-11 Richard Biener <rguenther@suse.de>
4461
4462 PR tree-optimization/90387
4463 * vr-values.c (vr_values::extract_range_basic): After inlining
4464 simplify non-constant __builtin_constant_p to false.
4465
4466 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4467
4468 PR rtl-optimization/89795
4469 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4470 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4471
4472 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4473
4474 PR tree-optimization/91723
4475 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4476 instead of pointer equality when checking if argument vectypes are
4477 the same.
4478
4479 PR middle-end/91725
4480 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4481 of get_nonzero_bits, only call it for integral types.
4482
4483 2019-09-11 Richard Biener <rguenther@suse.de>
4484
4485 Revert
4486 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4487
4488 * match.pd: Add flag_unsafe_math_optimizations check
4489 before deciding on the widest type in a binary math operation.
4490
4491 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4492
4493 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4494 and CALL_REALLY_USED_REGISTERS must be defined, and that
4495 CALL_REALLY_USED_REGISTERS is preferred.
4496 * doc/tm.texi: Regenerate.
4497 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4498 (call_really_used_regs): Likewise.
4499 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4500 CALL_REALLY_USED_REGISTERS are defined.
4501 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4502 initial value if defined.
4503 (initial_call_really_used_regs): Delete.
4504 (saved_call_really_used_regs): Likewise.
4505 (CALL_REALLY_USED_REGNO_P): Likewise.
4506 (init_reg_sets): Remove handling of call_really_used_regs.
4507 (save_register_info, restore_register_info, globalize_reg): Likewise.
4508 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4509 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4510 outside operand_reg_set.
4511 (fix_register): Don't change call_used_regs if
4512 CALL_REALLY_USED_REGISTERS is defined.
4513 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4514 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4515 instead of call_really_used_regs.
4516 (csky_conditional_register_usage): Remove the old handling of
4517 call_used_regs and change the handling of call_really_used_regs
4518 to use call_used_regs instead.
4519 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4520 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4521 making a register fixed.
4522 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4523 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4524 instead of call_really_used_regs.
4525 (m32r_conditional_register_usage): Don't set call_used_regs when
4526 making a register fixed.
4527 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4528 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4529 instead of call_really_used_regs.
4530 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4531 (mips_cfun_call_saved_reg_p): Likewise.
4532 (mips_swap_registers): Remove the old handling of call_used_regs
4533 and change the handling of call_really_used_regs to use call_used_regs
4534 instead.
4535 (mips_conditional_register_usage): Likewise.
4536 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4537 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4538 instead of call_really_used_regs.
4539 (mn10300_get_live_callee_saved_regs): Likewise.
4540 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4541 (mn10300_conditional_register_usage): Don't set call_used_regs when
4542 making a register fixed.
4543 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4544 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4545 Remove the old handling of call_used_regs and change the handling
4546 of call_really_used_regs to use call_used_regs instead.
4547 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4548 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4549 instead of call_really_used_regs.
4550 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4551 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4552 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4553 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4554 (s390_conditional_register_usage): Remove the old handling of
4555 call_used_regs and change the handling of call_really_used_regs
4556 to use call_used_regs instead.
4557 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4558 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4559 (sh_fix_range, reg_unused_after): Likewise.
4560 (sh_conditional_register_usage): Remove the old handling of
4561 call_used_regs and change the handling of call_really_used_regs
4562 to use call_used_regs instead.
4563 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4564 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4565 call_used_regs when making a register fixed.
4566 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4567 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4568 call_used_regs when making a register fixed.
4569 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4570 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4571 set call_used_regs when making a register fixed.
4572 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4573 * config/visium/visium.c (visium_conditional_register_usage): Remove
4574 the old handling of call_used_regs and change the handling of
4575 call_really_used_regs to use call_used_regs instead.
4576
4577 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4578
4579 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4580 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4581 * reginfo.c (call_used_regs): New macro.
4582
4583 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4584
4585 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4586 fixed_regs test.
4587 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4588 (bpf_expand_epilogue): Likewise.
4589 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4590 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4591 (ft32_expand_epilogue): Likewise.
4592 * config/i386/i386.c (ix86_save_reg): Likewise.
4593 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4594 (moxie_expand_epilogue): Likewise.
4595 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4596 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4597 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4598
4599 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4600
4601 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4602 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4603 instead of testing call_used_regs directly.
4604 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4605 (aarch64_components_for_bb): Likewise.
4606 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4607 * config/arc/arc.c (arc_must_save_register): Likewise.
4608 (arc_epilogue_uses): Likewise.
4609 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4610 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4611 (arm_compute_save_reg0_reg12_mask): Likewise.
4612 (arm_compute_save_core_reg_mask): Likewise.
4613 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4614 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4615 (cmse_nonsecure_entry_clear_before_return): Likewise.
4616 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4617 (arm_expand_epilogue): Likewise.
4618 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4619 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4620 (_reg_unused_after): Likewise.
4621 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4622 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4623 (add_to_reg, hwloop_optimize): Likewise.
4624 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4625 (bpf_expand_epilogue): Likewise.
4626 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4627 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4628 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4629 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4630 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4631 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4632 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4633 * config/frv/frv.c (frv_stack_info): Likewise.
4634 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4635 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4636 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4637 (move_callee_saved_registers): Likewise.
4638 * config/h8300/h8300.c (byte_reg): Likewise.
4639 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4640 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4641 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4642 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4643 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4644 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4645 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4646 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4647 * config/m32c/m32c.c (need_to_save): Likewise.
4648 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4649 * config/mcore/mcore.c (calc_live_regs): Likewise.
4650 * config/microblaze/microblaze.c (microblaze_must_save_register):
4651 Likewise.
4652 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4653 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4654 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4655 (mmix_expand_epilogue): Likewise.
4656 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4657 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4658 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4659 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4660 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4661 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4662 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4663 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4664 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4665 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4666 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4667 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4668 * config/rl78/rl78.c (need_to_save): Likewise.
4669 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4670 (rs6000_stack_info, generate_set_vrsave): Likewise.
4671 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4672 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4673 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4674 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4675 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4676 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4677 (save_local_or_in_reg_p): Likewise.
4678 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4679 (xstormy16_epilogue_uses): Likewise.
4680 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4681 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4682 * config/v850/v850.c (compute_register_save_size): Likewise.
4683 * config/vax/vax.c (vax_expand_prologue): Likewise.
4684 * config/visium/visium.c (visium_save_reg_p): Likewise.
4685 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4686 * cselib.c (cselib_process_insn): Likewise.
4687 * df-scan.c (df_get_entry_block_def_set): Likewise.
4688 * function.c (aggregate_value_p): Likewise.
4689 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4690 * ira-lives.c (process_bb_node_lives): Likewise.
4691 * ira.c (do_reload): Likewise.
4692 * lra-lives.c (process_bb_lives): Likewise.
4693 * lra-remat.c (lra_remat): Likewise.
4694 * lra.c (lra): Likewise.
4695 * postreload.c (reload_combine_recognize_pattern): Likewise.
4696 (reload_cse_move2add): Likewise.
4697 * recog.c (peep2_find_free_register): Likewise.
4698 * regrename.c (check_new_reg_p): Likewise.
4699 * reload.c (find_equiv_reg): Likewise.
4700 * reload1.c (reload, find_reg): Likewise.
4701 * sel-sched.c (init_hard_regs_data): Likewise.
4702
4703 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4704
4705 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4706 regs_invalidated_by_call & ~fixed_reg_set instead of
4707 call_used_or_fixed_regs & ~fixed_reg_set.
4708 * config/sh/sh.c (output_stack_adjust): Likewise.
4709
4710 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4711
4712 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4713 (call_used_reg_set): Delete.
4714 (call_used_or_fixed_regs): New macro.
4715 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4716 of call_used_reg_set.
4717 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4718 instead of call_used_regs.
4719 (save_call_clobbered_regs): Likewise.
4720 * cfgcleanup.c (old_insns_match_p): Likewise.
4721 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4722 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4723 Likewise.
4724 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4725 * config/sh/sh.c (output_stack_adjust): Likewise.
4726 * final.c (collect_fn_hard_reg_usage): Likewise.
4727 * ira-build.c (ira_build): Likewise.
4728 * ira-color.c (calculate_saved_nregs): Likewise.
4729 (allocno_reload_assign, calculate_spill_cost): Likewise.
4730 * ira-conflicts.c (ira_build_conflicts): Likewise.
4731 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4732 * ira-lives.c (process_bb_node_lives): Likewise.
4733 * ira.c (setup_reg_renumber): Likewise.
4734 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4735 * lra-constraints.c (need_for_call_save_p): Likewise.
4736 (need_for_split_p, inherit_in_ebb): Likewise.
4737 * lra-lives.c (process_bb_lives): Likewise.
4738 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4739 * postreload.c (reload_combine): Likewise.
4740 * regrename.c (find_rename_reg): Likewise.
4741 * reload1.c (reload_as_needed): Likewise.
4742 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4743 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4744 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4745
4746 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4747
4748 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4749 (no_caller_save_reg_set): Delete.
4750 * caller-save.c (init_caller_save): Don't initialize it.
4751 * ira-conflicts.c (ira_build_conflicts): Calculate
4752 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4753
4754 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4755
4756 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4757 (target_hard_regs::x_savable_regs): New field.
4758 (call_fixed_reg_set): Delete.
4759 (savable_regs): New macro,
4760 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4761 (init_reg_sets_1): Likewise. Initialize savable_regs.
4762 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4763 for all registers. Set savable_regs instead of call_fixed_reg_set.
4764 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4765 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4766 * config/sh/sh.c (output_stack_adjust): Likewise.
4767
4768 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4769
4770 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4771 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4772 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4773
4774 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4775
4776 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4777 * rtlanal.c (get_call_rtx_from): Likewise.
4778 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4779 than the pattern to get_call_rtx_from.
4780 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4781 an rtx_insn * instead of an rtx.
4782 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4783
4784 2019-09-10 Martin Liska <mliska@suse.cz>
4785
4786 * common.opt: Use newly added WarnRemoved.
4787 * config/aarch64/aarch64.opt: Likewise.
4788 * config/arm/arm.opt: Likewise.
4789 * config/i386/i386.opt: Likewise.
4790 * config/ia64/ia64.opt: Likewise.
4791 * config/rs6000/rs6000.opt: Likewise.
4792 * doc/options.texi: Document WarnRemoved properly.
4793 * dwarf2out.c (gen_producer_string): Handle renamed
4794 OPT_SPECIAL_warn_removed.
4795 * lto-opts.c (lto_write_options): Likewise.
4796 * lto-wrapper.c (merge_and_complain): Likewise.
4797 * opts-common.c (decode_cmdline_option): Likewise.
4798 (prune_options): Likewise.
4799 (read_cmdline_option): Likewise.
4800 (control_warning_option): Likewise.
4801 * opts.c (print_filtered_help): Likewise.
4802 * optc-gen.awk: Parse for WarnRemoved and make usage
4803 of Deprecated an error.
4804 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4805
4806 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4807
4808 * doc/install.texi: Fix syntax for html generation.
4809
4810 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4811
4812 PR middle-end/91680
4813 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4814 the shift type to type.
4815
4816 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4817
4818 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4819 FDPIC mode.
4820 (stack_protect_combined_test_insn): Likewise.
4821
4822 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4823 Mickaël Guêné <mickael.guene@st.com>
4824
4825 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4826 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4827 (load_tp_soft_fdpic): New pattern.
4828 (load_tp_soft): Disable in FDPIC mode.
4829
4830 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4831 Mickaël Guêné <mickael.guene@st.com>
4832
4833 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4834 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4835 (arm_call_tls_get_addr): Add FDPIC support.
4836 (legitimize_tls_address): Likewise.
4837 (arm_emit_tls_decoration): Likewise.
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 (arm_asm_trampoline_template): Add FDPIC
4843 support.
4844 (arm_trampoline_init): Likewise.
4845 (arm_trampoline_adjust_address): Likewise.
4846 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4847
4848 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4849 Mickaël Guêné <mickael.guene@st.com>
4850
4851 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4852 (legitimize_pic_address): Enforce binding rules on function
4853 pointers in FDPIC mode.
4854 (arm_assemble_integer): Likewise.
4855
4856 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4857 Mickaël Guêné <mickael.guene@st.com>
4858
4859 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4860 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4861 FDPIC.
4862
4863 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4864 Mickaël Guêné <mickael.guene@st.com>
4865
4866 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4867 field.
4868
4869 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4870 Mickaël Guêné <mickael.guene@st.com>
4871
4872 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4873 in FDPIC mode.
4874 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4875 new function.
4876 * config/arm/arm.c (arm_option_override): Define pic register to
4877 FDPIC_REGNUM.
4878 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4879 have no decl or go through PLT.
4880 (calculate_pic_address_constant): New function.
4881 (legitimize_pic_address): Call calculate_pic_address_constant.
4882 (arm_load_pic_register): Handle TARGET_FDPIC.
4883 (arm_is_segment_info_known): New function.
4884 (arm_pic_static_addr): Add support for FDPIC.
4885 (arm_load_function_descriptor): New function.
4886 (arm_emit_call_insn): Add support for FDPIC.
4887 (arm_assemble_integer): Add support for FDPIC.
4888 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4889 Define. (FDPIC_REGNUM): New define.
4890 * config/arm/arm.md (call): Add support for FDPIC.
4891 (call_value): Likewise.
4892 (restore_pic_register_after_call): New pattern.
4893 (untyped_call): Disable if FDPIC.
4894 (untyped_return): Likewise.
4895 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4896
4897 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4898 Mickaël Guêné <mickael.guene@st.com>
4899
4900 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4901 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4902 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4903 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4904 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4905 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4906 * config/arm/uclinuxfdpiceabi.h: New file.
4907
4908 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4909
4910 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4911
4912 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4913 Mickaël Guêné <mickael.guene@st.com>
4914
4915 * config/arm/arm.opt: Add -mfdpic option.
4916 * doc/invoke.texi: Add documentation for -mfdpic.
4917
4918 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4919
4920 * expmed.c (extract_bit_field): Update function comment
4921 regarding alt_rtl.
4922 * expr.c (expand_expr_real): Update function comment
4923 regarding alt_rtl.
4924 (expand_misaligned_mem_ref): New helper function.
4925 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4926 Remove duplicate assignment to "base" at case MEM_REF.
4927 Remove a shadowed variable "unsignedp" at case VCE.
4928
4929 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4930
4931 * regset.h (regs_invalidated_by_call_regset): Delete.
4932 (fixed_reg_set_regset): Likewise.
4933 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4934 (fixed_reg_set_regset, persistent_obstack): Likewise.
4935 (init_reg_sets_1, globalize_reg): Update accordingly.
4936 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4937 instead of a bitmap.
4938 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4939 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4940 instead of regs_invalidated_by_call_regset.
4941 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4942 * df-scan.c (df_scan_start_dump): Likewise.
4943 * dse.c (copy_fixed_regs): Likewise.
4944 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4945
4946 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4947
4948 * array-traits.h: New file.
4949 * coretypes.h (array_traits, bitmap_view): New types.
4950 * bitmap.h: Include "array-traits.h"
4951 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4952 (base_bitmap_view, bitmap_view): New classes.
4953 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4954 * hard-reg-set.h: Include array-traits.h.
4955 (array_traits<HARD_REG_SET>): New struct.
4956 * regset.h (IOR_REG_SET_HRS): New macro.
4957 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4958 rather than iterating over each hard register.
4959 * sched-deps.c (sched_analyze_insn): Likewise.
4960 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4961
4962 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4963
4964 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4965 instead of a HARD_REG_SET *.
4966 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4967 (ira_build): Update call accordingly.
4968 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4969
4970 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4971
4972 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4973 (HARD_REG_SET::operator!=): Likewise.
4974 (hard_reg_set_equal_p): Delete.
4975 * cfgcleanup.c (old_insns_match_p): Use == instead of
4976 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4977 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4978 (add_allocno_hard_regs_to_forest): Likewise.
4979 (setup_allocno_available_regs_num): Likewise.
4980 * ira.c (setup_pressure_classes): Likewise.
4981 (setup_allocno_and_important_classes): Likewise.
4982 (setup_reg_class_relations): Likewise.
4983 * lra-lives.c (process_bb_lives): Likewise.
4984 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4985
4986 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4987
4988 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4989 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4990 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4991 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4992 Likewise.
4993 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4994 * ira.c (setup_reg_renumber): Likewise.
4995 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4996 * regrename.c (regrename_find_superclass): Likewise.
4997 * reload1.c (find_reg): Likewise.
4998
4999 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5000
5001 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5002 * caller-save.c (setup_save_areas): Use "&~" instead of
5003 AND_COMPL_HARD_REG_SET.
5004 (save_call_clobbered_regs): Likewise.
5005 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5006 Likewise.
5007 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5008 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5009 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5010 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5011 (mips_conditional_register_usage): Likewise.
5012 * config/sh/sh.c (output_stack_adjust): Likewise.
5013 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5014 (setup_profitable_hard_regs): Likewise.
5015 (get_conflict_and_start_profitable_regs): Likewise.
5016 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5017 (ira_build_conflicts): Likewise.
5018 * ira-costs.c (restrict_cost_classes): Likewise.
5019 (setup_regno_cost_classes_by_aclass): Likewise.
5020 * ira-lives.c (process_bb_node_lives): Likewise.
5021 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5022 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5023 (setup_allocno_and_important_classes, setup_class_translate_array)
5024 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5025 Likewise.
5026 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5027 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5028 (process_alt_operands, inherit_in_ebb): Likewise.
5029 * lra-eliminations.c (update_reg_eliminate): Likewise.
5030 * lra-lives.c (process_bb_lives): Likewise.
5031 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5032 * resource.c (find_dead_or_set_registers): Likewise.
5033 (mark_target_live_regs): Likewise.
5034 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5035 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5036 (implicit_clobber_conflict_p): Likewise.
5037 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5038 (try_shrink_wrapping): Likewise.
5039
5040 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5041
5042 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5043 (HARD_REG_SET::operator|=): Likewise.
5044 (IOR_HARD_REG_SET): Delete.
5045 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5046 IOR_HARD_REG_SET.
5047 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5048 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5049 * final.c (collect_fn_hard_reg_usage): Likewise.
5050 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5051 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5052 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5053 (propagate_some_info_from_allocno): Likewise.
5054 (copy_info_to_removed_store_destinations): Likewise.
5055 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5056 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5057 (fast_allocation): Likewise.
5058 * ira-conflicts.c (ira_build_conflicts): Likewise.
5059 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5060 (process_bb_node_lives): Likewise.
5061 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5062 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5063 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5064 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5065 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5066 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5067 (process_bb_lives): Likewise.
5068 * lra-spills.c (assign_spill_hard_regs): Likewise.
5069 * postreload.c (reload_combine): Likewise.
5070 * reginfo.c (init_reg_sets_1): Likewise.
5071 * regrename.c (merge_overlapping_regs, find_rename_reg)
5072 (merge_chains): Likewise.
5073 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5074 (find_reload_regs, finish_spills, choose_reload_regs_init)
5075 (emit_reload_insns): Likewise.
5076 * reorg.c (redundant_insn): Likewise.
5077 * resource.c (find_dead_or_set_registers, mark_set_resources)
5078 (mark_target_live_regs): Likewise.
5079 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5080 * sched-deps.c (sched_analyze_insn): Likewise.
5081 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5082 (find_best_reg_for_expr): Likewise.
5083 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5084
5085 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5086
5087 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5088 (HARD_REG_SET::operator&): Likewise.
5089 (AND_HARD_REG_SET): Delete.
5090 * caller-save.c (setup_save_areas): Use "&" instead of
5091 AND_HARD_REG_SET.
5092 (save_call_clobbered_regs): Likewise.
5093 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5094 * config/m32c/m32c.c (reduce_class): Likewise.
5095 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5096 * final.c (get_call_reg_set_usage): Likewise.
5097 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5098 (setup_left_conflict_sizes_p): Likewise.
5099 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5100 (ira_build_conflicts): Likewise.
5101 * ira-costs.c (restrict_cost_classes): Likewise.
5102 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5103 (setup_reg_class_relations): Likewise.
5104 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5105 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5106 * resource.c (find_dead_or_set_registers): Likewise.
5107 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5108
5109 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5110
5111 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5112 (COMPL_HARD_REG_SET): Delete.
5113 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5114 of COMPL_HARD_REG_SET.
5115 (try_rename_operands): Likewise.
5116 * config/sh/sh.c (push_regs): Likewise.
5117 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5118 * lra-constraints.c (contains_reg_p): Likewise.
5119 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5120
5121 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5122
5123 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5124 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5125 of COPY_HARD_REG_SET.
5126 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5127 (epiphany_conditional_register_usage): Likewise.
5128 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5129 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5130 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5131 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5132 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5133 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5134 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5135 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5136 * config/sh/sh.c (output_stack_adjust): Likewise.
5137 * final.c (collect_fn_hard_reg_usage): Likewise.
5138 (get_call_reg_set_usage): Likewise.
5139 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5140 (ira_flattening): Likewise.
5141 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5142 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5143 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5144 (ira_reassign_pseudos): Likewise.
5145 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5146 (ira_build_conflicts): Likewise.
5147 * ira-costs.c (restrict_cost_classes): Likewise.
5148 (setup_regno_cost_classes_by_aclass): Likewise.
5149 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5150 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5151 (setup_stack_reg_pressure_class, setup_pressure_classes)
5152 (setup_allocno_and_important_classes, setup_class_translate_array)
5153 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5154 (ira_setup_eliminable_regset): Likewise.
5155 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5156 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5157 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5158 (process_alt_operands, inherit_in_ebb): Likewise.
5159 * lra-lives.c (process_bb_lives): Likewise.
5160 * lra-spills.c (assign_spill_hard_regs): Likewise.
5161 * lra.c (lra): Likewise.
5162 * mode-switching.c (new_seginfo): Likewise.
5163 * postreload.c (reload_combine): Likewise.
5164 * reg-stack.c (straighten_stack): Likewise.
5165 * reginfo.c (save_register_info, restore_register_info): Likewise.
5166 (init_reg_sets_1, record_subregs_of_mode): Likewise
5167 * regrename.c (create_new_chain, rename_chains): Likewise.
5168 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5169 (find_reload_regs): Likewise.
5170 * resource.c (find_dead_or_set_registers): Likewise.
5171 (mark_target_live_regs): Likewise.
5172 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5173
5174 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5175
5176 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5177 (note_pattern_stores): Declare.
5178 (note_stores): Take an rtx_insn *.
5179 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5180 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5181 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5182 (note_stores): Take an rtx_insn * as argument and process
5183 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5184 (note_pattern_stores): ...this.
5185 (find_first_parameter_load): Pass the insn rather than
5186 its pattern to note_stores.
5187 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5188 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5189 (insert_one_insn): Likewise.
5190 * combine.c (combine_instructions): Likewise.
5191 (likely_spilled_retval_p): Likewise.
5192 (try_combine): Use note_pattern_stores instead of note_stores.
5193 (record_dead_and_set_regs): Pass the insn rather than its pattern
5194 to note_stores.
5195 (reg_dead_at_p): Likewise.
5196 * config/bfin/bfin.c (workaround_speculation): Likewise.
5197 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5198 rather than an rtx.
5199 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5200 instead of note_stores.
5201 (frv_optimize_membar_local): Pass the insn rather than its pattern
5202 to note_stores.
5203 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5204 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5205 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5206 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5207 (mips_reorg_process_insns): Likewise.
5208 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5209 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5210 rather than rtxes.
5211 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5212 its pattern to note_stores.
5213 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5214 of note_stores.
5215 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5216 the insn to note_stores.
5217 (prescan_insns_for_dce): Update call accordingly.
5218 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5219 to note_stores.
5220 * df-problems.c (can_move_insns_across): Likewise.
5221 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5222 * function.c (assign_parm_setup_reg): Likewise.
5223 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5224 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5225 (single_set_gcse): Likewise.
5226 * ira.c (validate_equiv_mem): Likewise.
5227 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5228 for no_equiv.
5229 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5230 pattern to note_stores.
5231 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5232 * loop-iv.c (simplify_using_initial_values): Likewise.
5233 * mode-switching.c (optimize_mode_switching): Likewise.
5234 * optabs.c (emit_libcall_block_1): Likewise.
5235 (expand_atomic_compare_and_swap): Likewise.
5236 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5237 (record_opr_changes): Likewise. Remove explicit handling of
5238 CALL_INSN_FUNCTION_USAGE.
5239 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5240 * regcprop.c (kill_clobbered_values): Likewise.
5241 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5242 to note_stores.
5243 * regrename.c (build_def_use): Likewise.
5244 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5245 for mark_not_eliminable.
5246 (reload_as_needed): Pass the insn rather than its pattern
5247 to note_stores.
5248 (emit_output_reload_insns): Likewise.
5249 * resource.c (mark_target_live_regs): Likewise.
5250 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5251 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5252 instead of note_stores.
5253 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5254 its pattern to note_stores.
5255 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5256 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5257
5258 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5259
5260 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5261 than a #define. Use a structure rather than an array as the
5262 fallback definition. Remove special cases for low array sizes.
5263 (const_hard_reg_set): New typedef.
5264 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5265 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5266 (hard_reg_set_empty_p): Likewise.
5267 (SET_HARD_REG_BIT): Use a function rather than a macro to
5268 handle the case in which HARD_REG_SET is a structure.
5269 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5270 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5271 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5272 (IOR_COMPL_HARD_REG_SET): Likewise.
5273 (hard_reg_set_iterator::pset): Constify the pointer target.
5274 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5275 of a "const HARD_REG_SET". Update the handling of non-integer
5276 HARD_REG_SETs.
5277 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5278 * reload.h: Likewise.
5279 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5280 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5281 of a "const HARD_REG_SET".
5282 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5283 (range_in_hard_reg_set_p): Likewise.
5284 * ira-costs.c (restrict_cost_classes): Likewise.
5285 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5286 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5287 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5288 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5289 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5290 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5291 take an unsigned int and open-code the HARD_REG_SET operations.
5292
5293 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5294
5295 * Makefile.in (OBJS): Remove bt-load.o.
5296 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5297 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5298 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5299 document that the option no longer does anything.
5300 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5301 * target.def (branch_target_register_class): Delete.
5302 (branch_target_register_callee_saved): Likewise.
5303 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5304 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5305 * doc/tm.texi: Regenerate.
5306 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5307 (make_pass_branch_target_load_optimize2): Likewise.
5308 * passes.def (pass_branch_target_load_optimize1): Likewise.
5309 (pass_branch_target_load_optimize2): Likewise.
5310 * targhooks.h (default_branch_target_register_class): Likewise.
5311 * targhooks.c (default_branch_target_register_class): Likewise.
5312 * opt-suggestions.c (test_completion_valid_options): Remove
5313 -fbtr-bb-exclusive from the list of test options.
5314 * bt-load.c: Remove.
5315
5316 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5317
5318 * match.pd: Add flag_unsafe_math_optimizations check
5319 before deciding on the widest type in a binary math operation.
5320
5321 2019-09-09 Martin Liska <mliska@suse.cz>
5322
5323 * config/i386/i386.opt: Update comment of removed
5324 options that are preserved only for backward
5325 compatibility.
5326
5327 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5328
5329 PR target/87853
5330 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5331 instead of __v16qs.
5332
5333 PR target/91704
5334 * config/i386/avxintrin.h (__v32qs): New typedef.
5335 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5336 instead of __v32qi.
5337
5338 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5339
5340 * doc/invoke.texi (Option Summary): Cover eBPF.
5341 (eBPF Options): New section.
5342 * doc/extend.texi (BPF Built-in Functions): Likewise.
5343 (BPF Kernel Helpers): Likewise.
5344
5345 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5346
5347 * config.gcc: Support for bpf-*-* targets.
5348 * common/config/bpf/bpf-common.c: New file.
5349 * config/bpf/t-bpf: Likewise.
5350 * config/bpf/predicates.md: Likewise.
5351 * config/bpf/constraints.md: Likewise.
5352 * config/bpf/bpf.opt: Likewise.
5353 * config/bpf/bpf.md: Likewise.
5354 * config/bpf/bpf.h: Likewise.
5355 * config/bpf/bpf.c: Likewise.
5356 * config/bpf/bpf-protos.h: Likewise.
5357 * config/bpf/bpf-opts.h: Likewise.
5358 * config/bpf/bpf-helpers.h: Likewise.
5359 * config/bpf/bpf-helpers.def: Likewise.
5360
5361 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5362
5363 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5364 indirect_calls.
5365
5366 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5367
5368 * opt-functions.awk (integer_range_info): Make sure values are in
5369 numeric context before operating with them.
5370
5371 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5372
5373 * genemit.c (gen_split): Print the filename and line number where the
5374 splitter (or peephole2) was defined, to the dump file.
5375
5376 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5377
5378 PR tree-optimization/91665
5379 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5380 incompatible with the type of PHI result.
5381
5382 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5383
5384 PR target/91684
5385 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5386 gen_unaligned_storedi for 4-byte aligned addresses.
5387
5388 2019-09-06 Jim Wilson <jimw@sifive.com>
5389
5390 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5391 change.
5392
5393 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5394
5395 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5396
5397 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5398
5399 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5400 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5401
5402 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5403
5404 PR target/91654
5405 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5406 cost of SSE->integer and integer->SSE moves from 2 to 6.
5407 (core_cost): Ditto.
5408
5409 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5410
5411 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5412 before testing TYPE_TRANSPARENT_AGGR.
5413 * calls.c (initialize_argument_information, load_register_parameters):
5414 Likewise.
5415
5416 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5417
5418 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5419 high regs.
5420 (cmp_ior): Likewise.
5421
5422 2019-09-06 Martin Liska <mliska@suse.cz>
5423
5424 * doc/match-and-simplify.texi: Separate tuples with ;.
5425
5426 2019-09-06 Martin Liska <mliska@suse.cz>
5427
5428 PR c++/91125
5429 * Makefile.in: Remove tlink.o.
5430 * collect2.c (do_link): New function isolated
5431 from do_tlink.
5432 (main): Use.
5433 * collect2.h (do_tlink): Remove declaration of do_tlink.
5434 * doc/extend.texi: Remove documentation of -frepo.
5435 * doc/invoke.texi: Likewise.
5436 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5437 * tlink.c: Remove.
5438
5439 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5440 Jim Wilson <jimw@sifive.com>
5441
5442 PR target/91635
5443 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5444 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5445 paradoxical_subreg_p (operands[0]).
5446 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5447 use as intermediate value.
5448
5449 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5450
5451 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5452 (sync_compare_and_swap<mode>_insn): Likewise.
5453
5454 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5455
5456 PR middle-end/91615
5457 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5458 without movmisalign optab.
5459
5460 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5461
5462 PR middle-end/91001
5463 PR middle-end/91105
5464 PR middle-end/91106
5465 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5466 types, use type of their first field instead of type of
5467 args[i].tree_value.
5468
5469 2019-09-05 Richard Biener <rguenther@suse.de>
5470
5471 PR rtl-optimization/91656
5472 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5473 of early out.
5474
5475 2019-09-05 Richard Biener <rguenther@suse.de>
5476
5477 PR middle-end/90501
5478 * tree-inline.c (declare_return_variable): Mark the return
5479 slot as addressable after building an address of it.
5480
5481 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5482
5483 * doc/install.texi: Update and clarify requirements to build GNAT.
5484
5485 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5486
5487 PR middle-end/91577
5488 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5489 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5490 call to be in memory.
5491 (pass_expand::execute): Call discover_nonconstant_array_refs before
5492 setting currently_expanding_to_rtl.
5493
5494 2019-09-04 Caroline Tice <cmtice@google.com>
5495
5496 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5497 specified together.
5498
5499 2019-09-04 Marek Polacek <polacek@redhat.com>
5500
5501 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5502
5503 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5504
5505 PR target/32413
5506 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5507 for QI and HImode moves between SSE and general registers.
5508
5509 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5510
5511 PR c/78736
5512 * doc/invoke.texi: Document -Wenum-conversion.
5513
5514 2019-09-04 Richard Biener <rguenther@suse.de>
5515
5516 PR rtl-optimization/36262
5517 * postreload-gcse.c: Include intl.h and gcse.h.
5518 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5519 to avoid linear list walk.
5520 (record_last_mem_set_info): Gate off if not computing transparentness.
5521 (get_bb_avail_insn): If transparentness isn't computed give up
5522 early.
5523 (gcse_after_reload_main): Skip compute_transp and extended PRE
5524 if gcse_or_cprop_is_too_expensive says so.
5525
5526 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5527
5528 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5529 noinit section.
5530 (msp430_select_section): Handle decls with the "noinit" attribute with
5531 default_elf_select_section.
5532 Handle SECCAT_RODATA_MERGE_* section types with
5533 default_elf_select_section.
5534 Add comments about handling of unsupported section types.
5535 (msp430_section_type_flags): Remove handling of the noinit section.
5536
5537 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5538
5539 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5540 conflicting msp430-specific attributes.
5541 (msp430_section_attr): Likewise.
5542 Add warnings about conflicts with generic "noinit" and "section"
5543 attributes.
5544 Fix grammar in -mlarge error message.
5545 (msp430_data_attr): Rename to msp430_persist_attr.
5546 Add warnings about conflicts with generic "noinit" and "section"
5547 attributes.
5548 Add warning for when variable is not initialized.
5549 Chain conditionals which prevent the attribute being added.
5550 (ATTR_EXCL): New helper.
5551 (attr_reent_exclusions): New exclusion table.
5552 (attr_naked_exclusions): Likewise.
5553 (attr_crit_exclusions): Likewise.
5554 (attr_lower_exclusions): Likewise.
5555 (attr_upper_exclusions): Likewise.
5556 (attr_either_exclusions): Likewise.
5557 (attr_persist_exclusions): Likewise.
5558 (msp430_attribute_table): Update with exclusion rules.
5559 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5560 has a section.
5561
5562 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5563
5564 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5565 (msp430_handle_generic_attribute): New function.
5566 * doc/tm.texi: Regenerate.
5567 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5568 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5569 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5570 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5571
5572 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5573
5574 PR tree-optimization/91504
5575 * match.pd: Add ((~a & b) ^a) --> (a | b).
5576
5577 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR target/91604
5580 * config/i386/i386-expand.c (split_double_mode): If there is more than
5581 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5582 already split matching MEM operand instead of calling adjust_address
5583 again.
5584
5585 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5586
5587 * config.gcc: Obsolete spu target. Remove references to spu.
5588 * configure.ac: Remove references to spu.
5589 * configure: Regenerate.
5590 * config/spu/: Remove directory.
5591 * common/config/spu/: Remove directory.
5592
5593 * doc/extend.texi: Remove references to spu.
5594 * doc/invoke.texi: Likewise.
5595 * doc/md.texi: Likewise.
5596 * doc/sourcebuild.texi: Likewise.
5597
5598 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5599
5600 PR middle-end/91603
5601 PR middle-end/91612
5602 PR middle-end/91613
5603 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5604 and SSA_NAME referring to CONSTANT_P correctly.
5605
5606 2019-09-03 Richard Biener <rguenther@suse.de>
5607
5608 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5609 (vn_nary_op_insert): Likewise.
5610 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5611 (vn_nary_op_lookup): Likewise.
5612 (vn_nary_op_insert): Likewise.
5613
5614 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5615
5616 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5617 (*op0, 1) instead of XEXP (*op1, 0).
5618
5619 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5620
5621 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5622 (aarch64_fjcvtzs): New define_insn.
5623 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5624 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5625 Add AARCH64_JSCVT.
5626 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5627 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5628 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5629 __ARM_FEATURE_JCVT where appropriate.
5630 * config/aarch64/arm_acle.h (__jcvt): Define.
5631
5632 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5633
5634 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5635 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5636 (aarch64_<frintnzs_op><mode>): New define_insn.
5637 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5638 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5639 __ARM_FEATURE_FRINT when appropriate.
5640 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5641 frint32x, frint64z, frint64x.
5642 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5643 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5644 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5645 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5646 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5647 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5648 * config/aarch64/iterators.md (VSFDF): Define.
5649 (FRINTNZX): Likewise.
5650 (frintnzs_op): Likewise.
5651
5652 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5653
5654 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5655 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5656 Cortex-A34.
5657 * config/aarch64/aarch64-tune.md: Regenerated.
5658 * doc/invoke.texi: Document the new processors.
5659
5660 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5661
5662 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5663 string.
5664 (ssbs): Likewise.
5665 (sve2): Likewise.
5666 (sve2-sm4): Likewise.
5667 (sveaes): Likewise.
5668 (svesha3): Likewise.
5669 (svebitperm): Likewise.
5670
5671 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5672 Richard Biener <rguenther@suse.de>
5673
5674 PR tree-optimization/91597
5675 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5676 BIT_AND_EXPR optimization for pointers, even if both operand
5677 ranges don't include NULL, the result can be NULL.
5678
5679 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5680
5681 PR middle-end/91605
5682 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5683 (non_mem_decl_p): ...this.
5684 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5685 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5686 unconditionally as before.
5687
5688 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5689
5690 PR target/91323
5691 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5692 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5693 * tree.def (LTGT_EXPR): Likewise.
5694 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5695
5696 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5697
5698 PR go/91617
5699 * fold-const.c (range_check_type): For enumeral and boolean
5700 type, pass 1 to type_for_size langhook instead of
5701 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5702 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5703 (build_range_check): Don't call unsigned_type_for for pointer types.
5704 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5705 range_check_type result.
5706
5707 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5708
5709 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5710 (replace_ref): Do not replace a chain of only two candidates which are
5711 valid memory references.
5712
5713 2019-09-02 Martin Liska <mliska@suse.cz>
5714
5715 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5716 Bail out when we'll end up with the same number of clusters as
5717 at the beginning.
5718 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5719 (jump_table_cluster::can_be_handled): Remove the guard
5720 as it's already handled in ::is_enabled. Allocate output
5721 after early bail out.
5722
5723 2019-09-02 Martin Liska <mliska@suse.cz>
5724
5725 PR gcov-profile/91601
5726 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5727 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5728 also negative edges.
5729 (circuit): Handle also negative edges as they can happen
5730 in some situations.
5731
5732 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5733
5734 PR target/91472
5735 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5736 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5737 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5738
5739 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5740
5741 PR middle-end/91623
5742 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5743 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5744 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5745 zero vector.
5746
5747 PR lto/91572
5748 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5749 GIMPLE_ASM TREE_LIST operands.
5750
5751 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5752
5753 * doc/generic.texi (Unary and Binary Expressions): Mark up
5754 an instance of TYPE_MIN.
5755
5756 2019-08-31 Stafford Horne <shorne@gmail.com>
5757
5758 * config/or1k/constraints.md (t): New constraint.
5759 * config/or1k/or1k.h (GOT_REGS): New register class.
5760 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5761
5762 2019-08-30 Jim Wilson <jimw@sifive.com>
5763
5764 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5765 and -fpic and -mplt then disable -msave-restore and warn.
5766
5767 2019-08-30 Martin Sebor <msebor@redhat.com>
5768
5769 PR middle-end/91599
5770 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5771 the statement doesn't have one.
5772 * gimple-pretty-print.c (percent_G_format): Same.
5773
5774 PR middle-end/91584
5775 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5776 before using them to validate MEM_REF offset.
5777
5778 2019-08-30 Marek Polacek <polacek@redhat.com>
5779
5780 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5781
5782 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5783
5784 * config/arm/arm.md (unaligned_loaddi,
5785 unaligned_storedi): New unspec insn patterns.
5786 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5787 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5788 and unaligned_storedi for 4-byte aligned memory.
5789 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5790 4-byte aligned memory.
5791
5792 2019-08-30 Martin Jambor <mjambor@suse.cz>
5793
5794 tree-optimization/91579
5795 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5796 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5797 appropriate.
5798 (arg_needs_copy_p): Removed.
5799 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5800 arg_needs_copy_p.
5801 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5802
5803 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5804
5805 * config/i386/i386-features.c
5806 (general_scalar_chain::compute_convert_gain):
5807 Correct cost for double-word shifts.
5808 (general_scalar_to_vector_candidate_p): Reject count operands
5809 greater or equal to mode bitsize.
5810
5811 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5812
5813 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5814 for moves between SSE and non-general registers and between
5815 mask and non-general registers.
5816 (ix86_register_move_cost): Remove stalled comment.
5817
5818 2019-08-29 Richard Biener <rguenther@suse.de>
5819
5820 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5821 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5822
5823 2019-08-29 Richard Biener <rguenther@suse.de>
5824
5825 PR bootstrap/91580
5826 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5827 Do not emit scalar copies for debug-insns, instead replace
5828 their uses with the reg copy used in the chain or reset them
5829 if there is a reaching definition outside of the chain as well.
5830
5831 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5832
5833 PR target/91560
5834 * config/i386/i386-expand.c (expand_vec_perm_movs,
5835 expand_vec_perm_blend, expand_vec_perm_vpermil,
5836 expand_vec_perm_pshufb, expand_vec_perm_1,
5837 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5838 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5839 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5840 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5841 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5842 comments - replace ix86_expand_vec_perm_builtin_1 with
5843 ix86_expand_vec_perm_const_1.
5844 (expand_vec_perm2_vperm2f128_vblend): New function.
5845 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5846 expand_vec_perm2_vperm2f128_vblend as last resort.
5847 (canonicalize_perm): Formatting fix.
5848
5849 PR tree-optimization/91351
5850 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5851 unsigned_type_for.
5852 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5853 range_check_type returns NULL.
5854 * tree-switch-conversion.c (switch_conversion::build_one_array):
5855 Use range_check_type instead of unsigned_type_for, don't perform
5856 linear opt if it returns NULL.
5857 (bit_test_cluster::find_bit_tests): Formatting fix.
5858 (bit_test_cluster::emit): Use range_check_type instead of
5859 unsigned_type_for.
5860 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5861 returns NULL.
5862
5863 2019-08-29 Richard Biener <rguenther@suse.de>
5864
5865 PR tree-optimization/91568
5866 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5867 (vect_update_max_nunits): Add overload for poly_uint64.
5868 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5869 (vect_build_slp_tree): Record max_nunits into the subtree
5870 and merge it upwards.
5871 (vect_print_slp_tree): Print max_nunits.
5872
5873 2019-08-28 Marek Polacek <polacek@redhat.com>
5874
5875 Implement P1152R4: Deprecating some uses of volatile.
5876 PR c++/91361
5877 * doc/invoke.texi: Document -Wvolatile.
5878
5879 2019-08-28 Marek Polacek <polacek@redhat.com>
5880
5881 PR c++/91360 - Implement C++20 P1143R2: constinit.
5882 * doc/invoke.texi: Document -Wc++20-compat.
5883
5884 2019-08-28 Martin Sebor <msebor@redhat.com>
5885
5886 PR tree-optimization/91457
5887 * builtins.c (component_size): New function.
5888 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5889 * builtins.h (compute_objsize): Add argument.
5890 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5891 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5892 (vrp_prop::check_mem_ref): Same.
5893 (vrp_prop::search_for_addr_array): Set no-warning bit.
5894 (check_array_bounds): Same.
5895
5896 2019-08-28 Martin Sebor <msebor@redhat.com>
5897
5898 PR driver/80545
5899 * opts-common.c (option_enabled): Correct checking for language
5900 options.
5901
5902 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5903
5904 * config/i386/i386.c (ix86_register_move_cost): Do not
5905 limit the cost of moves to/from XMM register to minimum 8.
5906
5907 2019-08-28 Martin Jambor <mjambor@suse.cz>
5908
5909 PR ipa/91468
5910 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5911 checking assert a normal assert to test it really is redundant.
5912 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5913 redundant test.
5914 (update_jump_functions_after_inlining): Removed combining unary
5915 arithmetic operations with an ancestor jump function.
5916 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5917 instead of t.
5918
5919 2019-08-28 Richard Biener <rguenther@suse.de>
5920
5921 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5922 add the MD problem.
5923
5924 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5925 Richard Biener <rguenther@suse.de>
5926
5927 * expr.c (expand_assignment): Handle misaligned DECLs.
5928 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5929 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5930 too.
5931 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5932 * varasm.c (build_constant_desc): Align constants of misaligned types.
5933 * config/arm/predicates.md (aligned_operand): New predicate.
5934 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5935 aligned_operand to check restrictions on memory addresses.
5936 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5937 * config/arm/vec-common.md (mov<VALL>): Likewise.
5938
5939 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5940
5941 PR libgomp/91530
5942 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5943 V_128 iterator instead of VI_128.
5944
5945 2019-08-28 Martin Liska <mliska@suse.cz>
5946
5947 PR tree-optimization/90970
5948 * builtins.c (check_access): Remove assignment to maxread
5949 as it hasn't been used since when it was introduced in r255755.
5950
5951 2019-08-27 Martin Sebor <msebor@redhat.com>
5952
5953 PR tree-optimization/91567
5954 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5955 of unknown strings.
5956 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5957 to PTRDIFF_MAX - 2.
5958
5959 2019-08-27 Jeff Law <law@redhat.com>
5960
5961 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5962 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5963
5964 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5965
5966 PR target/91528
5967 * config/i386/i386-features.c (convert_scalars_to_vector):
5968 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5969 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5970 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5971 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5972
5973 2019-08-27 Richard Biener <rguenther@suse.de>
5974
5975 * config/i386/i386-features.h
5976 (general_scalar_chain::~general_scalar_chain): Add.
5977 (general_scalar_chain::insns_conv): New bitmap.
5978 (general_scalar_chain::n_sse_to_integer): New.
5979 (general_scalar_chain::n_integer_to_sse): Likewise.
5980 (general_scalar_chain::make_vector_copies): Adjust signature.
5981 * config/i386/i386-features.c
5982 (general_scalar_chain::general_scalar_chain): Outline,
5983 initialize new members.
5984 (general_scalar_chain::~general_scalar_chain): New.
5985 (general_scalar_chain::mark_dual_mode_def): Record insns
5986 we need to insert conversions at and count them.
5987 (general_scalar_chain::compute_convert_gain): Account
5988 for conversion instructions at chain boundary.
5989 (general_scalar_chain::make_vector_copies): Generate a single
5990 copy for a def by a specific insn.
5991 (general_scalar_chain::convert_registers): First populate
5992 defs_map, then make copies at out-of chain insns.
5993
5994 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5995
5996 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5997 comment.
5998 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5999
6000 2019-08-27 Martin Liska <mliska@suse.cz>
6001
6002 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6003 loop.
6004 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6005 Enclose in anonymous namespace.
6006 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6007 hard_register initialization in braces.
6008 * tree-vrp.h (value_range_base::supports_type_p): Return false
6009 for function with boolean return type.
6010
6011 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6012
6013 * config/i386/i386.c (emit_i387_cw_initialization)
6014 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6015
6016 2019-08-26 Martin Sebor <msebor@redhat.com>
6017
6018 PR c++/83431
6019 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6020 (sprintf_dom_walker): Remove class.
6021 (get_int_range): Make argument const.
6022 (directive::fmtfunc, directive::set_precision): Same.
6023 (format_none): Same.
6024 (build_intmax_type_nodes): Same.
6025 (adjust_range_for_overflow): Same.
6026 (format_floating): Same.
6027 (format_character): Same.
6028 (format_string): Same.
6029 (format_plain): Same.
6030 (get_int_range): Cast away constness.
6031 (format_integer): Same.
6032 (get_string_length): Call get_range_strlen_dynamic. Handle
6033 null lendata.maxbound.
6034 (should_warn_p): Adjust argument scope qualifier.
6035 (maybe_warn): Same.
6036 (format_directive): Same.
6037 (parse_directive): Same.
6038 (is_call_safe): Same.
6039 (try_substitute_return_value): Same.
6040 (sprintf_dom_walker::handle_printf_call): Rename...
6041 (handle_printf_call): ...to this. Initialize target to host charmap
6042 here instead of in pass_sprintf_length::execute.
6043 (struct call_info): Make global.
6044 (sprintf_dom_walker::compute_format_length): Make global.
6045 (sprintf_dom_walker::handle_gimple_call): Same.
6046 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6047 * print-rtl.c (print_pattern): Reduce the number of spaces to
6048 avoid -Wformat-truncation.
6049 * tree-pass.h (make_pass_warn_printf): New function.
6050 * tree-ssa-strlen.c (strlen_optimize): New variable.
6051 (get_string_length): Add comments.
6052 (get_range_strlen_dynamic): New function.
6053 (check_and_optimize_call): New function.
6054 (handle_integral_assign): New function.
6055 (strlen_check_and_optimize_stmt): Factor code out into
6056 strlen_check_and_optimize_call and handle_integral_assign.
6057 (strlen_dom_walker::evrp): New member.
6058 (strlen_dom_walker::before_dom_children): Use evrp member.
6059 (strlen_dom_walker::after_dom_children): Use evrp member.
6060 (printf_strlen_execute): New function.
6061 (pass_strlen::gate): Update to handle printf calls.
6062 (dump_strlen_info): New function.
6063 (pass_data_warn_printf): New variable.
6064 (pass_warn_printf): New class.
6065 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6066 (handle_printf_call): Same.
6067 * tree-vrp.c (value_range_base::type): Adjust assertion.
6068 * vr-values.c (vr_values::update_value_range): Use type of the first
6069 argument rather than the second.
6070
6071 2019-08-26 Richard Biener <rguenther@suse.de>
6072
6073 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6074 Remove.
6075 (convert_scalars_to_vector): Do not call it.
6076
6077 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6078 Uros Bizjak <ubizjak@gmail.com>
6079
6080 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6081 CASE_MATHFN_FLOATN for roundeven.
6082 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6083 I387_ROUNDEVEN.
6084 (ix86_mode_needed): Likewise.
6085 (ix86_mode_after): Likewise.
6086 (ix86_mode_entry): Likewise.
6087 (ix86_mode_exit): Likewise.
6088 (ix86_emit_mode_set): Likewise.
6089 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6090 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6091 (ix86_entity): Add I387_ROUNDEVEN.
6092 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6093 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6094 (define_int_iterator): Likewise.
6095 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6096 (define_constant): Define ROUND_ROUNDEVEN mode.
6097 (define_attr): Add roundeven mode for i387_cw.
6098 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6099 * internal-fn.def (ROUNDEVEN): New builtin function.
6100 * optabs.def (roundeven_optab): New optab.
6101
6102 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6103
6104 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6105 for ROUNDEVEN.
6106 * builtins.def: Added function definitions for roundeven function
6107 variants.
6108 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6109 function call. Adjust condition for floor, ceil, trunc and round.
6110 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6111 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6112 (integer_valued_real_call_p): Added case for roundeven function.
6113 * real.c (is_even): New function. Returns true if real number is even,
6114 otherwise returns false.
6115 (is_halfway_below): New function. Returns true if real number is
6116 halfway between two integers, else return false.
6117 (real_roundeven): New function. Round real number to nearest integer,
6118 rounding halfway cases towards even.
6119 * real.h (real_value): Added descriptive comments. Added function
6120 declaration for roundeven function.
6121 * doc/extend.texi (Other Builtins): List roundeven variants among
6122 functions which can be handled as builtins.
6123
6124 2019-08-26 Richard Biener <rguenther@suse.de>
6125
6126 PR target/91522
6127 PR target/91527
6128 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6129 New member.
6130 (general_scalar_chain::replace_with_subreg): Remove.
6131 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6132 (general_scalar_chain::convert_reg): Adjust signature.
6133 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6134 iterate over all defs of a reg.
6135 (general_scalar_chain::replace_with_subreg): Remove.
6136 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6137 (general_scalar_chain::make_vector_copies): Populate defs_map,
6138 place copy only after defs that are used as vectors in the chain.
6139 (general_scalar_chain::convert_reg): Emit a copy for a specific
6140 def in a specific instruction.
6141 (general_scalar_chain::convert_op): All reg uses are converted here.
6142 (general_scalar_chain::convert_insn): Emit copies for scalar
6143 uses of defs here. Replace uses with the copies we created.
6144 Replace and convert the def. Adjust REG_DEAD notes, remove
6145 REG_EQUIV/EQUAL notes.
6146 (general_scalar_chain::convert_registers): Only handle copies
6147 into the chain here.
6148
6149 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6150
6151 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6152
6153 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6154
6155 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6156 Add nop_convert case.
6157 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6158 Fold all statements if requested.
6159 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6160 Allow to fold all statements.
6161 * tree-vrp.c (class vrp_folder):
6162 Let substitute_and_fold_engine fold all statements.
6163
6164 2019-08-26 Richard Biener <rguenther@suse.de>
6165
6166 PR tree-optimization/91526
6167 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6168 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6169 TODO_update_address_taken.
6170
6171 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6172
6173 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6174 __STDC_HOSTED__.
6175
6176 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6177
6178 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6179 machine mode for unspec_volatile operand.
6180
6181 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6182
6183 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6184 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6185 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6186 (prefer_neon_for_64bits): Remove.
6187 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6188 (tune_params): Remove PREF_NEON_64_FALSE uses.
6189 (arm_option_override): Remove prefer_neon selection code.
6190 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6191 * gcc/config/arm/arm-protos.h (tune_params): Remove
6192 prefer_neon_for_64bits.
6193 (prefer_neon_for_64bits): Remove.
6194
6195 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6196
6197 PR pch/61250
6198 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6199 and issue any diagnostics needed before collecting the pre-PCH
6200 state.
6201
6202 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6203
6204 PR middle-end/91283
6205 * common.opt (fexcess-precision=): Add Optimization flag. Use
6206 flag_excess_precision variable instead of
6207 flag_excess_precision_cmdline.
6208 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6209 member.
6210 (flag_excess_precision): Don't define.
6211 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6212 flag_excess_precision_cmdline. Remove comment.
6213 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6214 and x_flag_excess_precision instead of
6215 frontend_set_flag_excess_precision_cmdline and
6216 x_flag_excess_precision_cmdline.
6217 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6218 x_flag_excess_precision_cmdline.
6219 * toplev.c (init_excess_precision): Remove.
6220 (lang_dependent_init_target): Don't call it.
6221
6222 2019-08-23 Martin Liska <mliska@suse.cz>
6223
6224 * lto-wrapper.c (run_gcc): When setting jobserver
6225 set also parallel to 1. This was done so before r273908.
6226
6227 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6228
6229 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6230 (cortex-a76ae): Likewise.
6231 (cortex-a77): Likewise
6232 * config/arm/arm-tables.opt: Regenerate.
6233 * config/arm/arm-tune.md: Likewise.
6234 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6235 cortex-a77 CPU options.
6236
6237 2019-08-23 Martin Liska <mliska@suse.cz>
6238
6239 * profile.c (instrument_values): Do not set
6240 0 as last argument.
6241 * tree-profile.c (gimple_gen_interval_profiler): Remove
6242 last argument.
6243 (gimple_gen_pow2_profiler): Likewise.
6244 (gimple_gen_topn_values_profiler): Likewise.
6245 (gimple_gen_ic_profiler): Likewise.
6246 (gimple_gen_time_profiler): Likewise.
6247 (gimple_gen_average_profiler): Likewise.
6248 (gimple_gen_ior_profiler): Likewise.
6249 * value-prof.c (dump_histogram_value): Use default
6250 in switch statement instead of HIST_TYPE_MAX.
6251 (stream_in_histogram_value): Likewise.
6252 (gimple_duplicate_stmt_histograms): Do not
6253 use NULL for implicitly set arguments.
6254 (gimple_divmod_values_to_profile): Do not use
6255 reserve+quick_push.
6256 (gimple_indirect_call_to_profile): Likewise.
6257 (gimple_find_values_to_profile): Use implicit
6258 function call arguments.
6259 * value-prof.h (gimple_alloc_histogram_value):
6260 Set default values.
6261 (gimple_gen_interval_profiler): Remove last argument.
6262 (gimple_gen_pow2_profiler): Likewise.
6263 (gimple_gen_topn_values_profiler): Likewise.
6264 (gimple_gen_ic_profiler): Likewise.
6265 (gimple_gen_time_profiler): Likewise.
6266 (gimple_gen_average_profiler): Likewise.
6267 (gimple_gen_ior_profiler): Likewise.
6268
6269 2019-08-22 Martin Sebor <msebor@redhat.com>
6270
6271 PR middle-end/91490
6272 * builtins.c (c_strlen): Rename argument and introduce new local.
6273 Set no-warning bit on original argument.
6274 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6275 Fold empty and zero constructors into empty strings.
6276 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6277 for missing initializers.
6278 * tree.c (build_string_literal): Handle optional argument.
6279 * tree.h (build_string_literal): Add defaulted argument.
6280 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6281 no-warning bit on original expression.
6282
6283 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6284
6285 PR target/91481
6286 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6287 and UNSPEC_DARN_RAW.
6288 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6289 UNSPECV_DARN_RAW.
6290 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6291 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6292 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6293
6294 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6295
6296 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6297 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6298 * config/rs6000/rs6000.md (unspec): ... here.
6299 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6300 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6301 cmpeqb, *cmpeqb_internal): Delete, move to...
6302 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6303 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6304 cmpeqb, *cmpeqb_internal): ... here.
6305
6306 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6307
6308 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6309 intrinsics if __ARM_FP.
6310 Use __ARM_FEATURE_CRC32 ifdef guard.
6311
6312 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6313
6314 * config/arm/arm.md (neon_for_64bits): Remove.
6315 (avoid_neon_for_64bits): Remove.
6316 (arm_adddi3): Always split early.
6317 (arm_subdi3): Always split early.
6318 (negdi2): Remove Neon expansion.
6319 (split zero_extend): Split before reload.
6320 (split sign_extend): Split before reload.
6321
6322 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6323
6324 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6325 (qhs_extenddi_cstr): Likewise.
6326 * config/arm/arm.md (ashldi3): Always expand early.
6327 (ashlsi3): Likewise.
6328 (ashrsi3): Likewise.
6329 (zero_extend<mode>di2): Remove Neon variants.
6330 (extend<mode>di2): Likewise.
6331 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6332 (signed_shift_di3_neon): Likewise.
6333 (unsigned_shift_di3_neon): Likewise.
6334 (ashrdi3_neon_imm_noclobber): Likewise.
6335 (lshrdi3_neon_imm_noclobber): Likewise.
6336 (<shift>di3_neon): Likewise.
6337 (split extend): Remove DI extend split patterns.
6338
6339 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6340
6341 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6342 (split not): Add DImode not splitter.
6343 (anddi3): Remove pattern.
6344 (anddi3_insn): Likewise.
6345 (anddi_zesidi_di): Likewise.
6346 (anddi_sesdi_di): Likewise.
6347 (anddi_notdi_di): Likewise.
6348 (anddi_notzesidi_di): Likewise.
6349 (anddi_notsesidi_di): Likewise.
6350 (iordi3): Likewise.
6351 (iordi3_insn): Likewise.
6352 (iordi_zesidi_di): Likewise.
6353 (iordi_sesidi_di): Likewise.
6354 (xordi3): Likewise.
6355 (xordi3_insn): Likewise.
6356 (xordi_sesidi_di): Likewise.
6357 (xordi_zesidi_di): Likewise.
6358 (one_cmpldi2): Likewise.
6359 (one_cmpldi2_insn): Likewise.
6360 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6361 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6362 alternative.
6363 (iwmmxt_xordi3): Likewise.
6364 (iwmmxt_anddi3): Likewise.
6365 * config/arm/neon.md (orndi3_neon): Remove pattern.
6366 (anddi_notdi_di): Likewise.
6367 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6368 (arm_iordi_operand_neon): Likewise.
6369 (arm_xordi_operand_neon): Likewise.
6370 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6371 (iordi_notzesidi_di): Likewise.
6372 (iordi_notdi_zesidi): Likewise.
6373 (iordi_notsesidi_di): Likewise.
6374
6375 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6376
6377 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6378 insn.
6379 (iorsi3_compare0_scratch): Likewise.
6380
6381 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6382
6383 * config/aarch64/aarch64-simd-builtins.def:
6384 (ld1x4): New.
6385 (st1x4): Likewise.
6386 * config/aarch64/aarch64-simd.md:
6387 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6388 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6389 (aarch64_ld1_x4_<mode>): Likewise.
6390 (aarch64_st1_x4_<mode>): Likewise.
6391 * config/aarch64/arm_neon.h:
6392 (vld1_s8_x4): New function.
6393 (vld1q_s8_x4): Likewise.
6394 (vld1_s16_x4): Likewise.
6395 (vld1q_s16_x4): Likewise.
6396 (vld1_s32_x4): Likewise.
6397 (vld1q_s32_x4): Likewise.
6398 (vld1_u8_x4): Likewise.
6399 (vld1q_u8_x4): Likewise.
6400 (vld1_u16_x4): Likewise.
6401 (vld1q_u16_x4): Likewise.
6402 (vld1_u32_x4): Likewise.
6403 (vld1q_u32_x4): Likewise.
6404 (vld1_f16_x4): Likewise.
6405 (vld1q_f16_x4): Likewise.
6406 (vld1_f32_x4): Likewise.
6407 (vld1q_f32_x4): Likewise.
6408 (vld1_p8_x4): Likewise.
6409 (vld1q_p8_x4): Likewise.
6410 (vld1_p16_x4): Likewise.
6411 (vld1q_p16_x4): Likewise.
6412 (vld1_s64_x4): Likewise.
6413 (vld1_u64_x4): Likewise.
6414 (vld1_p64_x4): Likewise.
6415 (vld1q_s64_x4): Likewise.
6416 (vld1q_u64_x4): Likewise.
6417 (vld1q_p64_x4): Likewise.
6418 (vld1_f64_x4): Likewise.
6419 (vld1q_f64_x4): Likewise.
6420 (vst1_s8_x4): Likewise.
6421 (vst1q_s8_x4): Likewise.
6422 (vst1_s16_x4): Likewise.
6423 (vst1q_s16_x4): Likewise.
6424 (vst1_s32_x4): Likewise.
6425 (vst1q_s32_x4): Likewise.
6426 (vst1_u8_x4): Likewise.
6427 (vst1q_u8_x4): Likewise.
6428 (vst1_u16_x4): Likewise.
6429 (vst1q_u16_x4): Likewise.
6430 (vst1_u32_x4): Likewise.
6431 (vst1q_u32_x4): Likewise.
6432 (vst1_f16_x4): Likewise.
6433 (vst1q_f16_x4): Likewise.
6434 (vst1_f32_x4): Likewise.
6435 (vst1q_f32_x4): Likewise.
6436 (vst1_p8_x4): Likewise.
6437 (vst1q_p8_x4): Likewise.
6438 (vst1_p16_x4): Likewise.
6439 (vst1q_p16_x4): Likewise.
6440 (vst1_s64_x4): Likewise.
6441 (vst1_u64_x4): Likewise.
6442 (vst1_p64_x4): Likewise.
6443 (vst1q_s64_x4): Likewise.
6444 (vst1q_u64_x4): Likewise.
6445 (vst1q_p64_x4): Likewise.
6446 (vst1_f64_x4): Likewise.
6447 (vst1q_f64_x4): Likewise.
6448
6449 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6450
6451 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6452
6453 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6454 Richard Sandiford <richard.sandiford@arm.com>
6455
6456 PR target/88839
6457 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6458 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6459
6460 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6461
6462 PR target/90724
6463 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6464 in reg if it fails aarch64_plus_operand predicate.
6465
6466 2019-08-21 Richard Biener <rguenther@suse.de>
6467
6468 PR tree-optimization/91482
6469 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6470 BUILT_IN_ASSUME_ALIGNED calls.
6471
6472 2019-08-21 Richard Biener <rguenther@suse.de>
6473
6474 PR target/91498
6475 PR target/91503
6476 * config/i386/i386-features.c
6477 (general_scalar_chain::make_vector_copies): Copy stack temporary
6478 rtx when using it multiple times.
6479 (general_scalar_chain::convert_reg): Likewise.
6480
6481 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6482
6483 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6484
6485 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6486
6487 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6488 catch more redundant zero initialization cases.
6489 (dse_dom_walker::dse_optimize_stmt): Likewise.
6490
6491 2019-08-20 Richard Biener <rguenther@suse.de>
6492
6493 PR lto/91307
6494 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6495 by collect2 when targetm.have_ctors_dtors which avoids dragging
6496 in temporary filenames from LTO input objects.
6497
6498 2019-08-20 Richard Biener <rguenther@suse.de>
6499
6500 PR tree-optimization/37242
6501 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6502 to (T)a + (T)b if we know that a + b does not overflow.
6503
6504 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6505
6506 PR rtl-optimization/91347
6507 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6508 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6509
6510 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6511
6512 * calls.h (function_arg_info): Add a pass_by_reference field,
6513 defaulting to false.
6514 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6515 when applying pass-by-reference semantics.
6516 (initialize_argument_information): Likewise.
6517 (emit_library_call_value_1): Likewise.
6518 * function.c (assign_parm_data_one): Remove passed_pointer field.
6519 (assign_parm_find_data_types): Don't set it.
6520 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6521 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6522 arg.pass_by_reference instead of passed_pointer.
6523
6524 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6525
6526 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6527 into a single function_arg_info, updating its fields when we
6528 apply pass-by-reference and promotion semantics. Use the
6529 function_arg_info to track the mode rather than keeping it in
6530 a separate local variable.
6531 (initialize_argument_information): Likewise. Base the final
6532 arg_to_skip on this new function_arg_info rather than creating
6533 a new one from scratch.
6534
6535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6536
6537 * function.c (assign_parm_data_one): Replace passed_type,
6538 promoted_mode and named_arg with a function_arg_info field.
6539 (assign_parm_find_data_types): Remove local variables and
6540 assign directly to "data". Make data->passed_mode shadow
6541 data->arg.mode until promotion, then assign the promoted
6542 mode to data->arg.mode.
6543 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6544 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6545 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6546 (assign_parm_setup_block, assign_parm_setup_reg)
6547 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6548 arg.mode instead of promoted_mode, arg.type instead of passed_type
6549 and arg.named instead of named_arg. Use data->arg for
6550 function_arg_info structures that had the field values passed_type,
6551 promoted_mode and named_arg. Base other function_arg_infos on
6552 data->arg, changing the necessary properties.
6553
6554 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6555
6556 * calls.h (apply_pass_by_reference_rules): Declare.
6557 * calls.c (apply_pass_by_reference_rules): New function.
6558 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6559 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6560 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6561 * function.c (assign_parm_find_data_types): Likewise.
6562 * var-tracking.c (prepare_call_arguments): Likewise.
6563
6564 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6565
6566 * target.def (must_pass_in_stack): Take a function_arg_info instead
6567 of a mode and a type.
6568 * doc/tm.texi: Regenerate.
6569 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6570 instead of a mode and a type.
6571 (must_pass_in_stack_var_size_or_pad): Likewise.
6572 * calls.c (must_pass_in_stack_var_size): Likewise.
6573 (must_pass_in_stack_var_size_or_pad): Likewise.
6574 (initialize_argument_information): Update call to
6575 targetm.calls.must_pass_in_stack.
6576 (must_pass_va_arg_on_stack): Likewise.
6577 * function.c (assign_parm_find_entry_rtl): Likewise.
6578 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6579 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6580 (alpha_function_arg_advance): Likewise.
6581 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6582 (cr16_function_arg_advance): Likewise.
6583 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6584 (cris_arg_partial_bytes): Likewise.
6585 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6586 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6587 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6588 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6589 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6590 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6591 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6592 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6593 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6594 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6595 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6596 instead of a mode and a type.
6597 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6598 (fr30_num_arg_regs): Likewise.
6599 (fr30_setup_incoming_varargs): Update calls accordingly.
6600 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6601 (fr30_function_arg_advance): Likewise.
6602 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6603 instead of a mode and a type.
6604 * config/gcn/gcn.c (num_arg_regs): Likewise.
6605 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6606 num_arg_regs and targetm.calls.must_pass_in_stack.
6607 (gcn_arg_partial_bytes): Likewise.
6608 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6609 function_arg_info instead of a mode and a type.
6610 (classify_argument): Update call accordingly.
6611 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6612 function_arg_info instead of a mode and a type.
6613 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6614 Likewise.
6615 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6616 (rs6000_parm_needs_stack): Update call accordingly.
6617 (setup_incoming_varargs): Likewise.
6618
6619 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6620
6621 * target.def (callee_copies): Take a function_arg_info instead
6622 of a mode, type and named flag.
6623 * doc/tm.texi: Regenerate.
6624 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6625 instead of a mode, type and named flag.
6626 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6627 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6628 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6629 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6630 instead of a mode, type and named flag.
6631 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6632 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6633 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6634 * calls.h (reference_callee_copied): Take a function_arg_info
6635 instead of a mode, type and named flag.
6636 * calls.c (reference_callee_copied): Likewise.
6637 (initialize_argument_information): Update call accordingly.
6638 (emit_library_call_value_1): Likewise.
6639 * function.c (gimplify_parameters): Likewise.
6640 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6641 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6642 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6643 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6644 (TARGET_CALLEE_COPIES): Define to
6645 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6646 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6647 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6648 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6649 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6650 instead of a mode, type and named flag.
6651 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6652 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6653 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6654 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6655 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6656 (TARGET_CALLEE_COPIES): Define to
6657 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6658 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6659 instead of a mode, type and named flag.
6660 * config/sh/sh.c (sh_callee_copies): Likewise.
6661 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6662 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6663 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6664
6665 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6666
6667 * target.def (function_arg_advance): Take a function_arg_info instead
6668 of a mode, type and named flag.
6669 * doc/tm.texi: Regenerate.
6670 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6671 instead of a mode, type and named flag.
6672 * targhooks.c (default_function_arg_advance): Likewise.
6673 * calls.c (initialize_argument_information): Update call to
6674 targetm.calls.function_arg_advance.
6675 (emit_library_call_value_1): Likewise.
6676 * dse.c (get_call_args): Likewise.
6677 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6678 * function.c (assign_parms, gimplify_parameters): Likewise.
6679 * var-tracking.c (prepare_call_arguments): Likewise.
6680 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6681 function_arg_info instead of a mode, type and named flag.
6682 (aarch64_setup_incoming_varargs): Update call accordingly.
6683 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6684 function_arg_info instead of a mode, type and named flag.
6685 (alpha_setup_incoming_varargs): Update call accordingly.
6686 * config/arc/arc.c (arc_function_arg_advance): Take a
6687 function_arg_info instead of a mode, type and named flag.
6688 (arc_setup_incoming_varargs): Update call accordingly.
6689 * config/arm/arm.c (arm_function_arg_advance): Take a
6690 function_arg_info instead of a mode, type and named flag.
6691 (cmse_func_args_or_return_in_stack): Update call accordingly.
6692 (arm_function_ok_for_sibcall): Likewise.
6693 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6694 * config/avr/avr.c (avr_function_arg_advance): Take a
6695 function_arg_info instead of a mode, type and named flag.
6696 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6697 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6698 (c6x_call_saved_register_used): Update call accordingly.
6699 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6700 function_arg_info instead of a mode, type and named flag.
6701 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6702 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6703 (csky_setup_incoming_varargs): Update call accordingly.
6704 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6705 function_arg_info instead of a mode, type and named flag.
6706 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6707 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6708 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6709 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6710 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6711 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6712 (ix86_setup_incoming_varargs): Update call accordingly.
6713 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6714 function_arg_info instead of a mode, type and named flag.
6715 (ia64_setup_incoming_varargs): Update call accordingly.
6716 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6717 function_arg_info instead of a mode, type and named flag.
6718 (iq2000_expand_prologue): Update call accordingly.
6719 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6720 function_arg_info instead of a mode, type and named flag.
6721 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6722 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6723 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6724 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6725 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6726 Likewise.
6727 (microblaze_expand_prologue): Update call accordingly.
6728 * config/mips/mips.c (mips_function_arg_advance): Take a
6729 function_arg_info instead of a mode, type and named flag.
6730 (mips_setup_incoming_varargs): Update call accordingly.
6731 (mips_output_args_xfer): Likewise.
6732 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6733 function_arg_info instead of a mode, type and named flag.
6734 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6735 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6736 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6737 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6738 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6739 (nios2_setup_incoming_varargs): Update call accordingly.
6740 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6741 function_arg_info instead of a mode, type and named flag.
6742 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6743 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6744 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6745 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6746 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6747 (riscv_setup_incoming_varargs): Update call accordingly.
6748 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6749 function_arg_info instead of a mode, type and named flag.
6750 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6751 Likewise.
6752 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6753 (rs6000_parm_needs_stack): Update call accordingly.
6754 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6755 instead of a mode, type and named flag.
6756 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6757 (s390_call_saved_register_used): Update call accordingly.
6758 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6759 instead of a mode, type and named flag.
6760 (sh_output_mi_thunk): Update call accordingly.
6761 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6762 function_arg_info instead of a mode, type and named flag.
6763 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6764 (spu_setup_incoming_varargs): Update call accordingly.
6765 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6766 function_arg_info instead of a mode, type and named flag.
6767 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6768 (tilegx_setup_incoming_varargs): Update call accordingly.
6769 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6770 function_arg_info instead of a mode, type and named flag.
6771 (tilegx_setup_incoming_varargs): Update call accordingly.
6772 * config/v850/v850.c (v850_function_arg_advance): Take a
6773 function_arg_info instead of a mode, type and named flag.
6774 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6775 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6776 (visium_setup_incoming_varargs): Update call accordingly.
6777 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6778 function_arg_info instead of a mode, type and named flag.
6779
6780 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6781
6782 * target.def (function_arg, function_incoming_arg): Take a
6783 function_arg_info instead of a mode, tree and named flag.
6784 * doc/tm.texi: Regenerate.
6785 * targhooks.h (default_function_arg): Take a function_arg_info
6786 instead of a mode, tree and named flag.
6787 (default_function_incoming_arg): Likewise.
6788 * targhooks.c (default_function_arg): Likewise.
6789 (default_function_incoming_arg): Likewise.
6790 * calls.h (function_arg_info::end_marker_p): New function.
6791 (function_arg_info::end_marker): Likewise.
6792 * calls.c (prepare_call_address, initialize_argument_information)
6793 (expand_call, emit_library_call_value_1): Update calls to
6794 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6795 * dse.c: Include calls.h.
6796 (get_call_args): Update call to targetm.calls.function_arg.
6797 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6798 * var-tracking.c (prepare_call_arguments): Likewise.
6799 * function.c (assign_parm_find_entry_rtl): Update call to
6800 targetm.calls.function_incoming_arg.
6801 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6802 function_arg_info instead of a mode, tree and named flag.
6803 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6804 * config/arc/arc.c (arc_function_arg): Likewise.
6805 * config/arm/arm.c (arm_function_arg): Likewise.
6806 (cmse_func_args_or_return_in_stack): Update call accordingly.
6807 (arm_function_ok_for_sibcall): Likewise.
6808 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6809 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6810 instead of a mode, tree and named flag.
6811 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6812 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6813 (c6x_call_saved_register_used): Update call accordingly.
6814 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6815 instead of a mode, tree and named flag.
6816 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6817 (cris_function_arg_1): Likewise.
6818 * config/csky/csky.c (csky_function_arg): Likewise.
6819 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6820 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6821 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6822 (frv_function_arg_1): Likewise.
6823 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6824 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6825 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6826 * config/i386/i386.c (ix86_function_arg): Likewise.
6827 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6828 (ia64_function_arg_1): Likewise.
6829 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6830 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6831 accordingly.
6832 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6833 instead of a mode, tree and named flag.
6834 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6835 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6836 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6837 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6838 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6839 (microblaze_expand_prologue): Update call accordingly.
6840 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6841 instead of a mode, tree and named flag.
6842 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6843 (mmix_function_arg_1): Likewise.
6844 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6845 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6846 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6847 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6848 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6849 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6850 (nvptx_function_incoming_arg): Likewise.
6851 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6852 * config/pa/pa.c (pa_function_arg): Likewise.
6853 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6854 * config/pru/pru.c (pru_function_arg): Likewise.
6855 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6856 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6857 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6858 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6859 (rs6000_parm_needs_stack): Update call accordingly.
6860 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6861 instead of a mode, tree and named flag.
6862 * config/s390/s390.c (s390_function_arg): Likewise.
6863 (s390_call_saved_register_used): Update call accordingly.
6864 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6865 instead of a mode, tree and named flag.
6866 (sh_output_mi_thunk): Update call accordingly.
6867 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6868 (sparc_function_incoming_arg): Take a function_arg_info instead of
6869 a mode, tree and named flag.
6870 * config/spu/spu.c (spu_function_arg): Likewise.
6871 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6872 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6873 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6874 * config/v850/v850.c (v850_function_arg): Likewise.
6875 * config/vax/vax.c (vax_function_arg): Likewise.
6876 * config/visium/visium.c (visium_function_arg): Likewise.
6877 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6878 (xtensa_function_incoming_arg): Likewise.
6879
6880 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6881
6882 * target.def (setup_incoming_varargs): Take a function_arg_info
6883 instead of a mode and tree.
6884 * doc/tm.texi: Regenerate.
6885 * targhooks.h (default_setup_incoming_varargs): Take a
6886 function_arg_info instead of a mode and tree.
6887 * targhooks.c (default_setup_incoming_varargs): Likewise.
6888 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6889 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6890 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6891 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6892 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6893 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6894 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6895 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6896 Likewise.
6897 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6898 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6899 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6900 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6901 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6902 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6903 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6904 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6905 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6906 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6907 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6908 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6909 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6910 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6911 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6912 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6913 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6914 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6915 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6916 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6917 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6918 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6919 * function.c (assign_parms_setup_varargs): Update call to
6920 targetm.calls.setup_incoming_varargs.
6921
6922 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6923
6924 * target.def (pass_by_reference): Take a function_arg_info instead
6925 of a mode, type and named flag.
6926 * doc/tm.texi: Regenerate.
6927 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6928 accordingly.
6929 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6930 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6931 function_arg_info instead of a mode, type and named flag.
6932 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6933 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6934 mode, type and named flag.
6935 * calls.c (pass_by_reference): Likewise.
6936 (pass_va_arg_by_reference): Update call accordingly.
6937 (initialize_argument_information): Likewise.
6938 (emit_library_call_value_1): Likewise.
6939 * function.c (assign_parm_find_data_types): Likewise.
6940 * var-tracking.c (prepare_call_arguments): Likewise.
6941 * stor-layout.c: Include calls.h.
6942 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6943 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6944 function_arg_info instead of a mode, type and named flag.
6945 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6946 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6947 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6948 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6949 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6950 (c6x_call_saved_register_used): Update call to pass_by_reference.
6951 * config/cris/cris.c (cris_pass_by_reference): Take a
6952 function_arg_info instead of a mode, type and named flag.
6953 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6954 function_arg_info instead of a mode, type and named flag.
6955 (epiphany_arg_partial_bytes): Update call accordingly.
6956 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6957 function_arg_info instead of a mode, type and named flag.
6958 (ft32_arg_partial_bytes): Update call accordingly.
6959 * config/i386/i386.c (ix86_pass_by_reference): Take a
6960 function_arg_info instead of a mode, type and named flag.
6961 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6962 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6963 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6964 (m32r_return_in_memory): Update call accordingly.
6965 * config/mips/mips.c (mips_pass_by_reference): Take a
6966 function_arg_info instead of a mode, type and named flag.
6967 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6968 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6969 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6970 (moxie_arg_partial_bytes): Update call accordingly.
6971 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6972 function_arg_info instead of a mode, type and named flag.
6973 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6974 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6975 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6976 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6977 (riscv_return_in_memory): Update call accordingly.
6978 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6979 function_arg_info instead of a mode, type and named flag.
6980 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6981 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6982 * config/s390/s390.c (s390_pass_by_reference): Take a
6983 function_arg_info instead of a mode, type and named flag.
6984 (s390_call_saved_register_used): Update call accordingly.
6985 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6986 instead of a mode, type and named flag.
6987 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6988 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6989 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6990 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6991 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6992 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6993
6994 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6995
6996 * target.def (arg_partial_bytes): Take a function_arg_info instead
6997 of a mode, type and named flag.
6998 * doc/tm.texi: Regenerate.
6999 * target.h (function_arg_info): Declare.
7000 * calls.h (function_arg_info): New class.
7001 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7002 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7003 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7004 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7005 * calls.c (initialize_argument_information): Update call to
7006 targetm.calls.partial_bytes.
7007 (emit_library_call_value_1): Likewise.
7008 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7009 * function.c (assign_parm_find_entry_rtl): Likewise.
7010 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7011 function_arg_info instead of a mode, type and named flag.
7012 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7013 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7014 (cmse_func_args_or_return_in_stack): Update accordingly.
7015 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7016 function_arg_info instead of a mode, type and named flag.
7017 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7018 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7019 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7020 * config/fr30/fr30.c: Include calls.h.
7021 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7022 type and named flag.
7023 * config/frv/frv.c: Include calls.h.
7024 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7025 type and named flag.
7026 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7027 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7028 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7029 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7030 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7031 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7032 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7033 Likewise.
7034 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7035 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7036 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7037 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7038 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7039 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7040 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7041 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7042 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7043 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7044 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7045 (rs6000_parm_needs_stack): Update call accordingly.
7046 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7047 function_arg_info instead of a mode, type and named flag.
7048 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7049 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7050
7051 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7052
7053 * calls.h (must_pass_va_arg_in_stack): Declare.
7054 * calls.c (must_pass_va_arg_in_stack): New function.
7055 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7056 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7057 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7058 Likewise.
7059 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7060
7061 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7062
7063 * calls.h (pass_va_arg_by_reference): Declare.
7064 * calls.c (pass_va_arg_by_reference): New function.
7065 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7066 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7067 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7068 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7069 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7070 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7071 (mips_gimplify_va_arg_expr): Likewise.
7072 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7073 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7074 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7075 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7076 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7077 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7078 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7079 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7080 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7081 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7082 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7083
7084 2019-08-20 Richard Biener <rguenther@suse.de>
7085
7086 PR target/91498
7087 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7088 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7089 (convert_scalars_to_vector): Add timode_p parameter and use it
7090 to guard TImode-only operation.
7091 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7092 (pass_stv::execute): Pass down timode_p.
7093
7094 2019-08-20 Lili Cui <lili.cui@intel.com>
7095
7096 * common/config/i386/i386-common.c
7097 (processor_names): Add tigerlake and cooperlake.
7098 (processor_alias_table): Add tigerlake and cooperlake.
7099 * config.gcc: Add -march=tigerlake and cooperlake.
7100 * config/i386/driver-i386.c
7101 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7102 Add "has_avx" to classify processor.
7103 * config/i386/i386-builtins.c (processor_model) :
7104 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7105 (arch_names_table): Add tigerlake and cooperlake.
7106 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7107 and PROCESSOR_COOPERLAKE.
7108 * config/i386/i386-c.c
7109 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7110 * config/i386/i386-options.c
7111 (m_TIGERLAKE) : Define.
7112 (m_COOPERLAKE) : Ditto.
7113 (m_CORE_AVX512): Ditto.
7114 (processor_cost_table): Add cascadelake.
7115 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7116 * config/i386/i386.h
7117 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7118 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7119 (PTA_MOVDIRI): Ditto.
7120 (PTA_MOVDIR64B): Ditto.
7121 (PTA_COOPERLAKE) : Ditto.
7122 (PTA_TIGERLAKE) : Ditto.
7123 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7124 * doc/extend.texi: Add tigerlake and cooperlake.
7125 * doc/invoke.texi: Add tigerlake and cooperlake.
7126
7127 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7128
7129 * doc/install.texi (Specific, alpha): Remove note to use
7130 binutils 2.11.2 or later.
7131
7132 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7133
7134 PR middle-end/89544
7135 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7136 when possible.
7137
7138 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7139
7140 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7141 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7142 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7143 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7144 * config/aarch64/constraints.md (Dt): New constraint
7145 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7146
7147 2019-08-19 Richard Biener <rguenther@suse.de>
7148
7149 PR tree-optimization/91403
7150 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7151 cases we can handle with tail-recursion...
7152 (follow_ssa_edge_expr): ... here. Do so.
7153
7154 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7155
7156 PR target/91441
7157 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7158 implemented for -fsanitize=kernel-address, and merge check logic
7159 with -fsanitize=address.
7160
7161 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7162
7163 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7164 for cpu and machine. Factor 64/32b builtins.
7165
7166 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7167
7168 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7169 gone, point to sourceforge.net.
7170
7171 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7172
7173 * doc/ux.texi (User Experience Guidelines): Update reference.
7174
7175 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7176
7177 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7178 not LGPL".
7179
7180 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7181
7182 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7183 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7184
7185 2019-08-16 Martin Sebor <msebor@redhat.com>
7186
7187 * tree.def (TYPE_SIZE): Clarify.
7188 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7189
7190 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7191
7192 PR tree-optimization/91109
7193 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7194 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7195 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7196
7197 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7198
7199 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7200 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7201 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7202 (uavg<mode>3_ceil): New expander.
7203 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7204 mode iterator when creating CONST1_RTX.
7205 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7206 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7207 mode iterator for const1_operand predicate.
7208
7209 2019-08-16 Richard Biener <rguenther@suse.de>
7210
7211 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7212 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7213 follow_ssa_edge.
7214 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7215 (analyze_evolution_in_loop): Likewise.
7216 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7217 (follow_ssa_edge_expr): ... here. Refactor code.
7218
7219 2019-08-16 Richard Biener <rguenther@suse.de>
7220
7221 PR target/91469
7222 * config/i386/i386-features.c
7223 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7224
7225 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7226
7227 PR other/91255
7228 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7229 only if subst_name matches curr_attr string.
7230
7231 2019-08-16 Richard Biener <rguenther@suse.de>
7232
7233 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7234 stmt at gsi_p, instead replace it with a NOP removed later.
7235 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7236 that became dead because of that.
7237
7238 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7239
7240 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7241 for which we can't represent a range.
7242 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7243 set_varying.
7244 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7245 Set VR_UNDEFINED if type is not supported.
7246 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7247 * tree-vrp.c (value_range_base::check): Assert that a varying has
7248 min/max set.
7249 (value_range_base::equal_p): Early bail for undefines.
7250 (value_range_base::set_varying): Accept a type.
7251 (value_range::set_varying): Same.
7252 (value_range_base::type): VARYING can have a type, while UNDEFINE
7253 is typeless.
7254 (value_range_base::dump): Print type for VARYING nodes.
7255 (value_range_base::set): Add type to VARYING.
7256 (extract_range_from_multiplicative_op): Pass type to set_varying.
7257 (extract_range_from_binary_expr): Same.
7258 (value_range_base::intersect_helper): Same.
7259 (value_range_base::union_helper): Same.
7260 (value_range_base::normalize_symbolics): Same.
7261 (determine_value_range_1): Same.
7262 * tree-vrp.h (class value_range_base): Add type to set_varying.
7263 Add prototype for dump(void).
7264 Add prototype for supports_type_p.
7265 (class value_range): Add type to set_varying.
7266 Add prototype for dump(void).
7267 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7268 set_varying.
7269 (vr_values::get_lattice_entry): Set varying even if propagation
7270 finished.
7271 Pass type to set_varying.
7272 (vr_values::get_value_range): Remove vr_const_varying.
7273 Reallocate the lattice if needed.
7274 (vr_values::update_value_range): Pass type to set_varying.
7275 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7276 (vr_values::extract_range_from_binary_expr): Same.
7277 (vr_values::extract_range_from_unary_expr): Same.
7278 (vr_values::extract_range_from_cond_expr): Same.
7279 (vr_values::check_for_binary_op_overflow): Same.
7280 (vr_values::extract_range_basic): Same.
7281 (vr_values::extract_range_from_assignment): Same.
7282 (vr_values::vr_values): Increase size of num_vr_values.
7283 (vr_values::extract_range_from_phi_node): Pass type to
7284 set_varying.
7285
7286 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7287
7288 PR target/90878
7289 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7290 for costs of hard register moves.
7291 (ix86_register_move_cost): Likewise.
7292 * config/i386/i386.h (processor_costs): Move costs of hard
7293 register moves to hard_register. Add int_load, int_store,
7294 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7295 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7296 for costs of RTL expressions.
7297 * config/i386/x86-tune-costs.h: Move costs of hard register
7298 moves to hard_register. Duplicate int_load, int_store,
7299 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7300 sse_load, sse_store for costs of RTL expressions.
7301
7302 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7303
7304 * target.def (setup_incoming_vararg_bounds): Remove.
7305 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7306 * doc/tm.texi: Regenerate.
7307 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7308 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7309 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7310 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7311
7312 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7313
7314 MSP430: Fix lines over 80 characters long in
7315 config/msp430/*.{c,h} files
7316
7317 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7318 specifier in string.
7319 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7320 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7321 redundant old comment.
7322 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7323 Split line more than 80 characters long.
7324 * config/msp430/msp430.c (msp430_option_override): Likewise.
7325 (msp430_return_in_memory): Likewise.
7326 (msp430_gimplify_va_arg_expr): Likewise.
7327 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7328 (msp430_legitimate_constant): Likewise.
7329 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7330 (msp430_attr): Likewise.
7331 (msp430_data_attr): Likewise.
7332 (msp430_start_function): Likewise.
7333 (gen_prefix): Likewise.
7334 (msp430_init_sections): Likewise.
7335 (msp430_select_section): Likewise.
7336 (msp430_function_section): Likewise.
7337 (msp430_unique_section): Likewise.
7338 (msp430_output_aligned_decl_common): Likewise.
7339 (msp430_do_not_relax_short_jumps): Likewise.
7340 (msp430_init_builtins): Likewise.
7341 (msp430_expand_delay_cycles): Likewise.
7342 (msp430_expand_prologue): Likewise.
7343 (msp430_expand_epilogue): Likewise.
7344 (msp430_expand_helper): Likewise.
7345 (msp430_split_movsi): Likewise.
7346 (msp430_print_operand): Likewise.
7347 (msp430_return_addr_rtx): Likewise.
7348 (msp430x_extendhisi): Likewise.
7349 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7350 (ASM_SPEC): Likewise.
7351 Remove very obvious comments.
7352 (LIB_SPEC): Split line more than 80 characters long.
7353 (EH_RETURN_HANDLER_RTX): Likewise.
7354 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7355
7356 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7357
7358 MSP430: Fix whitespace errors and incorrect indentation in
7359 config/msp430/*.{c,h} files
7360
7361 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7362 (msp430_select_hwmult_lib): Likewise.
7363 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7364 (msp430_extract_mcu_data): Likewise.
7365 (struct t_msp430_mcu_data): Likewise.
7366 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7367 before left square bracket.
7368 (msp430_option_override): Fix indentation.
7369 (msp430_hard_regno_nregs_with_padding): Likewise.
7370 (msp430_initial_elimination_offset): Likewise.
7371 (msp430_special_register_convention_p): Remove whitespace before left
7372 square bracket and after exclamation mark.
7373 (msp430_evaluate_arg): Likewise.
7374 (msp430_callee_copies): Fix indentation.
7375 (msp430_gimplify_va_arg_expr): Likewise.
7376 (msp430_function_arg_advance): Remove whitespace before left square
7377 bracket.
7378 (reg_ok_for_addr): Likewise.
7379 (msp430_preserve_reg_p): Likewise.
7380 (msp430_compute_frame_info): Likewise.
7381 (msp430_asm_output_addr_const_extra): Add space between function name
7382 and open parenthesis.
7383 (has_section_name): Fix indentation.
7384 (msp430_attr): Remove trailing whitespace.
7385 (msp430_section_attr): Likewise.
7386 (msp430_data_attr): Likewise.
7387 (struct msp430_attribute_table): Fix comment and whitespace.
7388 (msp430_start_function): Remove whitespace before left square bracket.
7389 Add space between function name and open parenthesis.
7390 (msp430_select_section): Remove trailing whitespace.
7391 (msp430_section_type_flags): Remove trailing whitespace.
7392 (msp430_unique_section): Remove space before closing parenthesis.
7393 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7394 (msp430_builtins): Remove whitespace before left square bracket.
7395 (msp430_init_builtins): Fix indentation.
7396 (msp430_expand_prologue): Remove whitespace before left square bracket.
7397 Remove space before closing parenthesis.
7398 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7399 (msp430_split_movsi): Remove space before closing parenthesis.
7400 (helper_function_name_mappings): Fix indentation.
7401 (msp430_use_f5_series_hwmult): Fix whitespace.
7402 (use_32bit_hwmult): Likewise.
7403 (msp430_no_hwmult): Likewise.
7404 (msp430_output_labelref): Remove whitespace before left square bracket.
7405 (msp430_print_operand_raw): Likewise.
7406 (msp430_print_operand_addr): Likewise.
7407 (msp430_print_operand): Add two spaces after '.' in comment.
7408 Fix trailing whitespace.
7409 (msp430x_extendhisi): Fix indentation.
7410 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7411 tab.
7412 (PC_REGNUM): Likewise.
7413 (STACK_POINTER_REGNUM): Likewise.
7414 (CC_REGNUM): Likewise.
7415
7416 2019-08-15 Richard Biener <rguenther@suse.de>
7417
7418 PR target/91454
7419 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7420 helper.
7421 (general_scalar_chain::make_vector_copies): Use it.
7422
7423 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7424
7425 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7426
7427 2019-08-15 Martin Liska <mliska@suse.cz>
7428
7429 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7430 operators with no arguments.
7431 (eliminate_unnecessary_stmts): Likewise here.
7432
7433 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7434
7435 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7436 <case COMPARE>: Revert 2019-08-14 change.
7437 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7438 for (TARGET_64BIT || mode != DImode).
7439
7440 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7441
7442 * tree-vrp.c (value_range_base::set): Merge in code from
7443 value_range_base::set_and_canonicalize.
7444 Enforce canonicalization at set time.
7445 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7446 (value_range_base::set_undefined): Inline call to set().
7447 (value_range_base::set_varying): Same.
7448 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7449 (vrp_val_max): New argument handle_pointers.
7450 (vrp_val_min): Same.
7451 (ranges_from_anti_range): Same.
7452 (extract_range_into_wide_ints): Use tree argument instead of sign
7453 and precision.
7454 (extract_range_from_multiplicative_op): Take in tree type instead
7455 of precision and sign. Adapt function for canonicalized ranges.
7456 (extract_range_from_binary_expr): Pass type to
7457 extract_range_from_multiplicative_op.
7458 Adapt for canonicalized ranges.
7459 (extract_range_from_unary_expr): Same.
7460 (value_range_base::intersect_helper): Adjust for canonicalized
7461 ranges.
7462 (value_range_base::union_helper): Same.
7463 (value_range_base::normalize_symbolics): New.
7464 * tree-vrp.h (class value_range_base): Remove
7465 set_and_canonicalize.
7466 New prototype for normalize_symbolics.
7467 (class value_range): Remove set_and_canonicalize.
7468 (vrp_val_min): Adjust prototype.
7469 (vrp_val_max): Same.
7470 * vr-values.c
7471 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7472 instead of set_and_canonicalize.
7473
7474 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7475
7476 PR middle-end/91444
7477 * tree-vect-stmts.c (vectorizable_call): Check that the function
7478 is a BUILT_IN_MD function before passing it to
7479 targetm.vectorize.builtin_md_vectorized_function.
7480
7481 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7482
7483 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7484 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7485 (aarch64_select_early_remat_modes): Use it.
7486
7487 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7488
7489 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7490 16 for SVE predicates even if they are fixed-length.
7491
7492 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7495 operand order match the MOV /Z alias.
7496
7497 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7498
7499 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7500 the vector pattern as an aarch64_svpattern argument. Update the
7501 overloaded caller accordingly.
7502 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7503 (aarch64_output_sve_vector_inc_dec): Likewise.
7504
7505 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7506
7507 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7508 multiplication case, try to compute VG * (lowest set bit) directly
7509 rather than always basing the multiplication on VG. Use
7510 expand_mult for the multiplication if we can.
7511
7512 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7513
7514 * config/aarch64/aarch64-protos.h
7515 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7516 (aarch64_sve_inc_dec_immediate_p): Rename to...
7517 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7518 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7519 (aarch64_output_sve_scalar_inc_dec): Declare.
7520 (aarch64_output_sve_inc_dec_immediate): Rename to...
7521 (aarch64_output_sve_vector_inc_dec): ...this.
7522 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7523 (aarch64_output_sve_scalar_inc_dec): New functions.
7524 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7525 arguments. Only handle true ADDVL and ADDPL instructions;
7526 don't emit an INC or DEC.
7527 (aarch64_sve_inc_dec_immediate_p): Rename to...
7528 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7529 (aarch64_output_sve_inc_dec_immediate): Rename to...
7530 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7531 aarch64_sve_vector_inc_dec_immediate_p.
7532 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7533 (aarch64_sve_plus_immediate): New predicates.
7534 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7535 rather than aarch64_sve_addvl_addpl_immediate.
7536 (aarch64_sve_inc_dec_immediate): Rename to...
7537 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7538 aarch64_sve_vector_inc_dec_immediate_p.
7539 (aarch64_sve_add_operand): Update accordingly.
7540 * config/aarch64/constraints.md (Uai): New constraint.
7541 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7542 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7543 operand into a register if it satisfies aarch64_sve_plus_immediate.
7544 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7545 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7546 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7547 aarch64_output_sve_vector_inc_dec instead of
7548 aarch64_output_sve_inc_dec_immediate.
7549
7550 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7551
7552 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7553 (UNSPEC_REVW): New constants.
7554 (elem_bits): New mode attribute.
7555 (SVE_INT_UNARY): New int iterator.
7556 (optab): Handle UNSPEC_REV[BHW].
7557 (sve_int_op): New int attribute.
7558 (min_elem_bits): Handle VNx16QI and the predicate modes.
7559 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7560 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7561 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7562 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7563 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7564 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7565 unspecs based on the total width of the reversed data.
7566 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7567 reinterpret followed by a subreg on big-endian targets.
7568
7569 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7570 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7571
7572 * config/aarch64/aarch64-sve.md
7573 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7574 alternatives in which one of the inputs is in the same register
7575 as the output.
7576
7577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7578
7579 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7580 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7581
7582 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7583
7584 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7585 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7586
7587 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7588 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7589
7590 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7591 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7592 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7593
7594 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7595 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7596
7597 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7598 Add an alternative that uses reversed shifts.
7599
7600 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7601
7602 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7603 struct.
7604
7605 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7606
7607 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7608 a commutativity marker.
7609
7610 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7611 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7612
7613 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7614 (aarch64_prepare_sve_cond_int_fma): Declare.
7615 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7616 (aarch64_prepare_sve_int_fma): New functions.
7617 (aarch64_prepare_sve_cond_int_fma): Likewise.
7618 * config/aarch64/aarch64-sve.md
7619 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7620 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7621 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7622 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7623 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7624 (*madd<mode>): Rename to...
7625 (*fma<mode>4): ...this.
7626 (*msub<mode>): Rename to...
7627 (*fnma<mode>4): ...this.
7628
7629 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7630 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7631
7632 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7633 Print 2.0 naturally.
7634 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7635 * config/aarch64/predicates.md
7636 (aarch64_sve_float_negated_arith_immediate): New predicate,
7637 renamed from aarch64_sve_float_arith_with_sub_immediate.
7638 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7639 positive and negative constants.
7640 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7641 or an aarch64_sve_float_arith_with_sub_immediate.
7642 * config/aarch64/constraints.md (vsN): Use
7643 aarch64_sve_float_negated_arith_immediate.
7644 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7645 iterator.
7646 (sve_pred_fp_rhs2_immediate): New int attribute.
7647 * config/aarch64/aarch64-sve.md
7648 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7649 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7650 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7651 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7652 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7653 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7654
7655 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7656 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7657
7658 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7659 (*aarch64_cond_abd<SVE_F:mode>_3)
7660 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7661
7662 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7663 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7664
7665 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7666 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7667
7668 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7669 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7670
7671 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7672 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7673 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7674 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7675 optabs.
7676 * optabs.h (create_convert_operand_from): Expand comment.
7677 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7678 when mapping scalar rtxes to vector operands.
7679 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7680 ashiftrt and lshiftrt.
7681 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7682 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7683 (*cond_<optab><mode>_any_const): New patterns.
7684
7685 2019-08-15 Martin Liska <mliska@suse.cz>
7686
7687 PR ipa/91438
7688 * cgraph.c (cgraph_node::remove): When setting
7689 n->origin = NULL for all nested functions, reset
7690 also next_nested.
7691
7692 2019-08-15 Martin Liska <mliska@suse.cz>
7693
7694 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7695 and next_nested.
7696
7697 2019-08-15 Martin Liska <mliska@suse.cz>
7698
7699 PR ipa/91404
7700 * passes.c (order): Remove.
7701 (uid_hash_t): Likewise).
7702 (remove_cgraph_node_from_order): Remove from set
7703 of pointers (cgraph_node *).
7704 (insert_cgraph_node_to_order): New.
7705 (duplicate_cgraph_node_to_order): New.
7706 (do_per_function_toporder): Register all 3 cgraph hooks.
7707 Skip removed_nodes now as we know about all of them.
7708
7709 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7710
7711 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7712 <case E_V8QImode>: Use vector_set path for
7713 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7714 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7715 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7716
7717 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7718
7719 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7720
7721 2019-08-14 Martin Sebor <msebor@redhat.com>
7722
7723 PR tree-optimization/91294
7724 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7725 source length as exact.
7726
7727 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7728
7729 * doc/extend.texi: Add "noinit" attribute documentation.
7730 * doc/sourcebuild.texi: Add noinit effective target documentation.
7731 * varasm.c (default_section_type_flags): Add support for "noinit"
7732 section.
7733 (default_elf_select_section): Add support for "noinit" attribute.
7734 * config/msp430/msp430.c (msp430_attribute_table): Remove
7735 "noinit" entry.
7736
7737 2019-08-14 Richard Biener <rguenther@suse.de>
7738 Uroš Bizjak <ubizjak@gmail.com>
7739
7740 PR target/91154
7741 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7742 mode arguments.
7743 (scalar_chain::smode): New member.
7744 (scalar_chain::vmode): Likewise.
7745 (dimode_scalar_chain): Rename to...
7746 (general_scalar_chain): ... this.
7747 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7748 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7749 base with TImode and V1TImode.
7750 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7751 (general_scalar_chain::vector_const_cost): Adjust for SImode
7752 chains.
7753 (general_scalar_chain::compute_convert_gain): Likewise. Add
7754 {S,U}{MIN,MAX} support.
7755 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7756 (general_scalar_chain::make_vector_copies): Likewise. Handle
7757 non-DImode chains appropriately.
7758 (general_scalar_chain::convert_reg): Likewise.
7759 (general_scalar_chain::convert_op): Likewise.
7760 (general_scalar_chain::convert_insn): Likewise. Add
7761 fatal_insn_not_found if the result is not recognized.
7762 (convertible_comparison_p): Pass in the scalar mode and use that.
7763 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7764 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7765 (scalar_to_vector_candidate_p): Remove by inlining into single
7766 caller.
7767 (general_remove_non_convertible_regs): Rename from
7768 dimode_remove_non_convertible_regs.
7769 (remove_non_convertible_regs): Remove by inlining into single caller.
7770 (convert_scalars_to_vector): Handle SImode and DImode chains
7771 in addition to TImode chains.
7772 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7773 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7774 (*<maxmin>di3_doubleword): Likewise.
7775
7776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7777 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7778
7779 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7780 (*cond_bic<mode>_any): New patterns.
7781
7782 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7783
7784 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7785 take the equivalent mask, as well as a bit count.
7786 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7787 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7788 (aarch64_sve_pred_and_operand): New predicates.
7789 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7790 code attribute.
7791 * config/aarch64/aarch64-sve.md
7792 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7793 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7794
7795 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7796
7797 * config/aarch64/aarch64-sve.md
7798 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7799 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7800 New patterns.
7801
7802 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7803 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7804
7805 * config/aarch64/aarch64-sve.md
7806 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7807 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7808
7809 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7810 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7811
7812 * config/aarch64/aarch64-sve.md
7813 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7814 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7815
7816 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7817
7818 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7819 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7820 New pattern.
7821
7822 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7823 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7824
7825 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7826
7827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7828 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7829
7830 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7831 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7832 (aarch64_print_operand): Add support for %I.
7833 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7834 Bitcast floating-point constants to the corresponding integer constant.
7835 (aarch64_float_const_representable_p): Handle vectors as well
7836 as scalars.
7837 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7838 for the new vcond_mask_<mode><vpred> expander.
7839 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7840 test aarch64_float_const_representable_p.
7841 (aarch64_sve_reg_or_dup_imm): New predicate.
7842 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7843 gen_vcond_mask_<mode><vpred> instead of
7844 gen_aarch64_sve_dup<mode>_const.
7845 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7846 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7847 for operands 1 and 2 respectively. Force operand 2 into a
7848 register if operand 1 is a register. Fold old define_insn...
7849 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7850 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7851 floating-point constants that can be moved as integers. Add
7852 alternatives for MOV /M and FMOV /M.
7853 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7854 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7855 1 and 2 respectively.
7856 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7857 as scalars.
7858 (vss): New constraint.
7859
7860 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7861
7862 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7863 (aarch64_sve_float_maxmin_operand): New predicates.
7864 * config/aarch64/constraints.md (vsB): New constraint.
7865 (vsM): Fix typo.
7866 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7867 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7868 UNSPEC_COND_FMINNM.
7869 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7870 Use aarch64_sve_float_maxmin_operand for operand 2.
7871 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7872 Add alternatives for the constant forms.
7873
7874 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7875
7876 * config/aarch64/constraints.md (vsb): New constraint.
7877 (vsm): Generalize description.
7878 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7879 iterator.
7880 (sve_imm_con): Handle smax, smin, umax and umin.
7881 (sve_imm_prefix): New code attribute.
7882 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7883 (aarch64_sve_vsb_operand): New predicates.
7884 (aarch64_sve_mul_immediate): Rename to...
7885 (aarch64_sve_vsm_immediate): ...this.
7886 (aarch64_sve_mul_operand): Rename to...
7887 (aarch64_sve_vsm_operand): ...this.
7888 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7889 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7890 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7891 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7892 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7893 add movprfx support for the immediate alternatives.
7894 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7895 of the above.
7896 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7897 for operand 3.
7898
7899 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7900
7901 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7902 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7903 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7904
7905 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7906
7907 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7908 (optab, sve_int_op): Handle them.
7909 * config/aarch64/aarch64-sve.md: Expand comment.
7910
7911 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7912
7913 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7914 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7915 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7916
7917 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7918
7919 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7920 (aarch64_expand_sve_const_pred_trn): New functions.
7921 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7922 use the above functions when the parameter is true.
7923 (aarch64_expand_sve_const_pred): Update call accordingly.
7924 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7925 Rename to...
7926 (@aarch64_sve_<perm_insn><mode>): ...this.
7927
7928 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7929
7930 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7931 Declare.
7932 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7933 (aarch64_sve_emit_int_cmp): New functions.
7934 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7935 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7936 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7937 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7938 (UNSPEC_PRED_Z): New unspec.
7939 (set_clobber_cc_nzc): Delete.
7940 * config/aarch64/aarch64-sve.md: Add a block comment about
7941 UNSPEC_PRED_Z.
7942 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7943 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7944 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7945 UNSPEC_MERGE_PTRUE.
7946 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7947 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7948 check for compatible predicates.
7949 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7950 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7951 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7952 comparisons above.
7953
7954 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7955
7956 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7957 * config/aarch64/aarch64-sve.md: Add a section describing it.
7958 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7959 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7960 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7961 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7962 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7963 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7964 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7965 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7966 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7967 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7968 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7969 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7970 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7971 (aarch64_evpc_rev_local): Update accordingly.
7972
7973 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7974
7975 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7976 iterators.
7977 (SVE_BHSI, SVE_SDI): Tweak comment.
7978 (SVE_HSDI): Likewise. Fix definition.
7979 (SVE_SDF): New mode iterator.
7980 (elem_bits): New mode attribute.
7981 (SVE_COND_FCVT): New int iterator.
7982 * config/aarch64/aarch64-sve.md
7983 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7984 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7985 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7986 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7987 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7988 ...these new patterns.
7989 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7990 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7991 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7992 Merge into...
7993 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7994 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7995 ...these new patterns.
7996 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7997 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7998 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7999 ...this new pattern.
8000 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8001 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8002 ...this new pattern.
8003 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8004
8005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8006
8007 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8008 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8009 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8010 unspecs.
8011 (optab, su): Handle them.
8012 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8013 * config/aarch64/aarch64-sve.md
8014 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8015 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8016 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8017 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8018 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8019 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8020 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8021 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8022 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8023 FIXUORS.
8024 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8025 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8026 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8027 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8028 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8029 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8030 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8031 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8032 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8033 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8034 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8035 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8036 of UNSPEC_FLOAT_CONVERT.
8037 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8038 aarch64_sve_extend<mode><Vwide>2.
8039
8040 2019-08-14 Richard Biener <rguenther@suse.de>
8041
8042 PR target/91154
8043 * config/i386/i386-features.c
8044 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8045 individual instruction gain. Fix reg-reg copy GRP cost. Use
8046 ix86_cost->sse_op for vector instruction costs.
8047
8048 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8049
8050 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8051 (cmp_op): Handle it.
8052 (SVE_COND_FP_CMP): Rename to...
8053 (SVE_COND_FP_CMP_I0): ...this.
8054 (SVE_FP_CMP): Remove.
8055 * config/aarch64/aarch64-sve.md
8056 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8057 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8058 using unspecs to represent the comparison.
8059 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8060 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8061 accordingly.
8062 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8063 (aarch64_unspec_cond_code): Move after integer code. Handle
8064 UNORDERED.
8065 (aarch64_emit_sve_predicated_cond): Replace with...
8066 (aarch64_emit_sve_fp_cond): ...this new function.
8067 (aarch64_emit_sve_or_conds): Replace with...
8068 (aarch64_emit_sve_or_fp_conds): ...this new function.
8069 (aarch64_emit_sve_inverted_cond): Replace with...
8070 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8071 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8072
8073 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8074
8075 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8076 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8077 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8078 SVE_HSD instead of SVE_SD.
8079
8080 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8081 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8082
8083 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8084 iterator.
8085 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8086 attributes.
8087 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8088 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8089 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8090 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8091 (*div<SVE_F:mode>3): Generalize to...
8092 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8093
8094 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8095 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8096
8097 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8098 constants.
8099 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8100 predicate.
8101 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8102 Declare.
8103 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8104 function.
8105 * config/aarch64/aarch64-sve.md: Add a block comment about the
8106 handling of predicated FP operations.
8107 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8108 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8109 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8110 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8111 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8112 operand.
8113 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8114 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8115 operand.
8116 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8117 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8118 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8119 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8120 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8121 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8122 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8123 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8124 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8125 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8126 strictness operands. Use aarch64_sve_pred_dominates_p to check
8127 whether the predicate on the conditional operation is suitable
8128 for merging. Split patterns into the canonical equal-predicate form.
8129 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8130 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8131
8132 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8133 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8134
8135 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8136 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8137 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8138 rtx codes.
8139 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8140 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8141 unspecs.
8142
8143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8144 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8145
8146 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8147 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8148 actually has, rather than relying on REG_EQUAL notes.
8149 Make the insn operand order match the SVE operand order.
8150 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8151 the SVE operand order.
8152
8153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8154
8155 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8156 (aarch64_emit_set_immediate): Likewise.
8157 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8158 (aarch64_pfalse_reg): Likewise.
8159 (aarch64_convert_sve_data_to_pred): New function.
8160 (aarch64_sve_move_pred_via_while): Take an optional target register
8161 and the required register mode.
8162 (aarch64_expand_sve_const_pred_1): New function.
8163 (aarch64_expand_sve_const_pred): Likewise.
8164 (aarch64_expand_mov_immediate): Build an all-true predicate
8165 if the significant bits of the immediate are all true. Use
8166 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8167 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8168 before register allocation.
8169 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8170 a VNx16BI PTRUE when splitting the memory alternative.
8171 (vec_duplicate<mode>): Update accordingly.
8172 (*pred_cmp<cmp_op><mode>): Rename to...
8173 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8174
8175 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8176
8177 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8178 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8179 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8180 (UNSPEC_PTEST): New unspec.
8181 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8182 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8183 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8184 * config/aarch64/aarch64-sve.md: Add a new section describing the
8185 handling of UNSPEC_PTEST.
8186 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8187 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8188 (ptest_ptrue<mode>): Replace with...
8189 (aarch64_ptest<mode>): ...this new pattern.
8190 (cbranch<mode>4): Update after above changes.
8191 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8192 UNSPEC_PTEST_PTRUE.
8193 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8194 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8195 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8196
8197 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8198
8199 PR lto/91287
8200 * builtins.c (builtin_with_linkage_p): New function.
8201 * builtins.h (builtin_with_linkage_p): New function.
8202 * symtab.c (write_symbol): Remove redundant assert.
8203 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8204 Remove FIXME and use builtin_with_linkage_p.
8205
8206 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8207
8208 PR middle-end/91421
8209 * tree-core.h (function_decl::function_code): Change type to
8210 unsigned int.
8211 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8212 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8213 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8214 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8215 is BUILT_IN_NORMAL.
8216 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8217 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8218 (fndecl_built_in_p): Change the type of the "name" argument to
8219 unsigned int.
8220 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8221 after check for DECL_BUILT_IN_CLASS.
8222 * cgraphclones.c (build_function_decl_skip_args): Use
8223 set_decl_built_in_function.
8224 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8225 * ipa-split.c (split_function): Likewise.
8226 * langhooks.c (add_builtin_function_common): Likewise.
8227 * omp-simd-clone.c (simd_clone_create): Likewise.
8228 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8229 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8230 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8231 DECL_FUNCTION_CODE.
8232 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8233 instead of DECL_FUNCTION_CODE.
8234 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8235 instead of DECL_FUNCTION_CODE.
8236 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8237 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8238 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8239 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8240 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8241 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8242 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8243 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8244 (alpha_gimple_fold_builtin): Likewise.
8245 * config/arc/arc.c (arc_expand_builtin): Likewise.
8246 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8247 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8248 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8249 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8250 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8251 * config/frv/frv.c (frv_expand_builtin): Likewise.
8252 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8253 (gcn_expand_builtin): Likewise.
8254 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8255 (fold_builtin_cpu): Likewise.
8256 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8257 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8258 (ix86_gimple_fold_builtin): Likewise.
8259 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8260 (ia64_expand_builtin): Likewise.
8261 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8262 * config/mips/mips.c (mips_expand_builtin): Likewise.
8263 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8264 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8265 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8266 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8267 * config/pa/pa.c (pa_expand_builtin): Likewise.
8268 * config/pru/pru.c (pru_expand_builtin): Likewise.
8269 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8270 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8271 Likewise.
8272 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8273 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8274 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8275 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8276 (rs6000_builtin_reciprocal): Likewise.
8277 * config/rx/rx.c (rx_expand_builtin): Likewise.
8278 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8279 * config/s390/s390.c (s390_expand_builtin): Likewise.
8280 * config/sh/sh.c (sh_expand_builtin): Likewise.
8281 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8282 (sparc_fold_builtin): Likewise.
8283 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8284 * config/spu/spu.c (spu_expand_builtin): Likewise.
8285 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8286 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8287 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8288 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8289 (xtensa_expand_builtin): Likewise.
8290
8291 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8292
8293 PR middle-end/91421
8294 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8295 before the DECL_FUNCTION_CODE.
8296 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8297 to check for a BUILT_IN_ALLOCA call.
8298 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8299 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8300 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8301 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8302 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8303 for BUILT_IN_NORMAL functions.
8304 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8305 test for BUILT_IN_TM_ABORT.
8306 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8307 to check for a BUILT_IN_STACK_RESTORE call.
8308 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8309 * tree-ssa-threadedge.c
8310 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8311 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8312 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8313 test for a BUILT_IN_NORMAL call instead of a negative test for
8314 an internal function call.
8315
8316 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8317
8318 * tree.h (build_vector_a_then_b): Declare.
8319 * tree.c (build_vector_a_then_b): New function.
8320 * fold-const-call.c (fold_while_ult): Likewise.
8321 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8322 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8323 (aarch64_svpattern): New enum.
8324 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8325 constants through aarch64_expand_mov_immediate.
8326 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8327 than general_operand as the predicate for operand 1.
8328 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8329 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8330 insn_type.
8331 (simd_immediate_info::simd_immediate_info): New overload that
8332 takes a scalar_int_mode and an svpattern.
8333 (simd_immediate_info::u): Add a "pattern" field.
8334 (svpattern_token): New function.
8335 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8336 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8337 (aarch64_sve_move_pred_via_while): New functions.
8338 (aarch64_expand_mov_immediate): Try using
8339 aarch64_sve_move_pred_via_while for predicates that contain N ones
8340 followed by M zeros but that do not correspond to a VLnnn pattern.
8341 (aarch64_sve_pred_valid_immediate): New function.
8342 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8343 with PTRUE and PFALSE.
8344 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8345 forms.
8346
8347 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8348
8349 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8350 flag.
8351 (darwin_override_options): Likewise.
8352 * config/darwin.h: Likewise.
8353 * config/darwin.opt: Likewise.
8354 * config/i386/i386.c (output_pic_addr_const): Likewise.
8355 * config/rs6000/darwin.h: Likewise.
8356 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8357 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8358 ... this TARGET_MACHO_SYMBOL_STUBS.
8359 (FUNCTION_PROFILER):Likewise.
8360 * config/i386/i386.h: Likewise.
8361
8362 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8363
8364 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8365 <case E_V2SImode>: Use vec_extr path for
8366 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8367 <case E_V8QImode>: Ditto.
8368 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8369 Use SWI48 mode iterator. Use %k to output operand 0.
8370 (*mmx_pextrw): New insn pattern.
8371 (*mmx_pextrb): Ditto.
8372 (*mmx_pextrb_zext): Ditto.
8373
8374 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8375
8376 * target.def (libc_has_function, libc_has_fast_function): Improve
8377 documentation strings.
8378 * doc/tm.texi: Regenerate.
8379
8380 2019-08-13 Caroline Tice <cmtice@google.com>
8381
8382 PR other/91396
8383 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8384 vtv_end.o or vtv_end_preinit.o files if !static.
8385
8386 2019-08-13 Olivier Hainque <hainque@adacore.com>
8387
8388 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8389
8390 2019-08-13 Olivier Hainque <hainque@adacore.com>
8391
8392 * rtlanal.c (tablejump_casesi_pattern): New function, to
8393 determine if a tablejump insn is a casesi dispatcher. Extracted
8394 from patch_jump_insn.
8395 * rtl.h (tablejump_casesi_pattern): Declare.
8396 * cfgrtl.c (patch_jump_insn): Use it.
8397 * dwarf2cfi.c (create_trace_edges): Use it.
8398
8399 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8400
8401 PR target/81800
8402 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8403 operand is larger than a long int.
8404
8405 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8406
8407 * machmode.h (opt_mode::else_mode): New function.
8408 (opt_mode::else_blk): Use it.
8409 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8410 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8411 (aarch64_gen_stepped_int_parallel): Likewise.
8412 (aarch64_stepped_int_parallel_p): Likewise.
8413 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8414 argument.
8415 * config/aarch64/aarch64.c
8416 (aarch64_expand_sve_widened_duplicate): Delete.
8417 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8418 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8419 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8420 argument. Use early returns in the !CONST_INT_P handling.
8421 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8422 than handling some inline.
8423 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8424 from...
8425 (aarch64_simd_container_mode): ...here.
8426 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8427 (aarch64_sve_ld1rq_operand_p): New functions.
8428 * config/aarch64/predicates.md (descending_int_parallel)
8429 (aarch64_sve_ld1rq_operand): New predicates.
8430 * config/aarch64/constraints.md (UtQ): New constraint.
8431 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8432 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8433 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8434 (@aarch64_sve_reinterpret<mode>): New expander.
8435 (*aarch64_sve_reinterpret<mode>): New pattern.
8436 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8437 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8438 (*sve_ld1rq<Vesize>): Replace with...
8439 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8440
8441 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8442
8443 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8444 16:12.
8445
8446 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8447
8448 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8449 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8450 (msp430_check_path_for_devices): New.
8451 (parse_devices_csv_1): New.
8452 (parse_devices_csv): New.
8453 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8454 MCU data in devices.csv before using the hard-coded data.
8455 Warn if devices.csv isn't found and the MCU wasn't found in the
8456 hard-coded data either.
8457 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8458 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8459 Search for devices.csv on -I and -L paths.
8460 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8461 msp430_set_driver_var.
8462 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8463 -mdevices-csv-loc=.
8464 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8465 searched for devices.csv.
8466 (mwarn-devices-csv): Document option.
8467
8468 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8469
8470 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8471 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8472 Use a single Dn alternative instead of separate Dz and Dm
8473 alternatives. Use aarch64_output_sve_move_immediate.
8474 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8475 function.
8476 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8477 for predicates too.
8478 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8479 (aarch64_output_ptrue): Delete.
8480
8481 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8482
8483 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8484 INDEX.
8485 (simd_immediate_info::value, simd_immediate_info::step)
8486 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8487 with...
8488 (simd_immediate_info::u): ...this new union.
8489 (simd_immediate_info::simd_immediate_info): Update accordingly.
8490 (aarch64_output_simd_mov_immediate): Likewise.
8491 (aarch64_output_sve_mov_immediate): Likewise.
8492
8493 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8494
8495 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8496 extra_gcc_objs.
8497 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8498 (msp430_select_cpu): New spec function.
8499 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8500 MCU data.
8501 * config/msp430/msp430-devices.c: New file.
8502 * config/msp430/msp430-devices.h: New file.
8503 * config/msp430/msp430.c: Remove msp430_mcu_data.
8504 (msp430_option_override): Use msp430_extract_mcu_data to extract
8505 MCU data.
8506 (msp430_use_f5_series_hwmult): Likewise.
8507 (use_32bit_hwmult): Likewise.
8508 (msp430_no_hwmult): Likewise.
8509 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8510 assembler.
8511 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8512 and -mcpu option.
8513 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8514 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8515 Remove hard-coded MCU multilib data.
8516
8517 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8518
8519 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8520 based on the mode instead of testing properties of it.
8521
8522 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8523
8524 * doc/md.texi: Document the x and y constraints for AArch64.
8525 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8526 (FP_LO8_REGS): New reg_class.
8527 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8528 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8529 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8530 * config/aarch64/predicates.md (aarch64_simd_register): Use
8531 FP_REGNUM_P instead of checking the classes manually.
8532 * config/aarch64/constraints.md (y): New constraint.
8533
8534 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8535
8536 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8537 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8538 * config/aarch64/aarch64-simd.md
8539 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8540 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8541 from the asm template.
8542 * config/aarch64/aarch64-sve.md
8543 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8544 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8545 from the asm template.
8546 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8547 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8548 from the asm template.
8549 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8550
8551 2019-08-13 Martin Liska <mliska@suse.cz>
8552
8553 * value-prof.c (gimple_ic_transform): Add new line.
8554 Print details with MSG_NOTE.
8555
8556 2019-08-13 Martin Liska <mliska@suse.cz>
8557
8558 * doc/invoke.texi: Document automatic detection of jobserver.
8559 * lto-wrapper.c (run_gcc): Detect jobserver always.
8560
8561 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8562
8563 * config/i386/i386-expand.c (ix86_expand_vector_set)
8564 <case E_V2SImode>: Use vec_merge path for
8565 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8566 <case E_V8QImode>: Ditto.
8567 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8568 (*mmx_pinsrb): Ditto.
8569
8570 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8571
8572 PR target/83250
8573 PR target/91340
8574 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8575 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8576 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8577 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8578 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8579
8580 2019-08-12 Richard Biener <rguenther@suse.de>
8581
8582 PR lto/91375
8583 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8584 flag_devirtualize.
8585
8586 2019-08-12 Richard Biener <rguenther@suse.de>
8587
8588 PR driver/91130
8589 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8590 lang_mask option, always use CL_DRIVER.
8591 (get_options_from_collect_gcc_options): Adjust.
8592 (find_and_merge_options): Likewise.
8593 (run_gcc): Likewise.
8594
8595 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8596
8597 * ipa-predicate.c (add_condition): Restore inverted test.
8598
8599 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8600
8601 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8602 (enum omp_clause_device_type_kind): New enum.
8603 (struct tree_omp_clause): Add subcode.device_type_kind.
8604 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8605 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8606 for device_type clause.
8607 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8608 * tree-pretty-print.c (dump_omp_clause): Likewise.
8609
8610 PR target/91408
8611 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8612 vector_operand.
8613
8614 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8615
8616 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8617 handling spilled pseudos.
8618
8619 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8620
8621 PR target/91386
8622 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8623 to preserve the contents of the original insns.
8624
8625 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8626
8627 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8628 (addsi3_compare_op2): Likewise.
8629
8630 2019-08-09 Martin Liska <mliska@suse.cz>
8631
8632 * alias.c (alias_ptr_types_compatible_p): Strengten
8633 type comparison in LTO mode.
8634
8635 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8636
8637 PR middle-end/90313
8638 * tree-tailcall.c (find_tail_calls): Reject calls that might
8639 read from an escaped RESULT_DECL.
8640
8641 2019-08-09 Martin Liska <mliska@suse.cz>
8642
8643 * doc/invoke.texi: Document the option value.
8644 * lto-wrapper.c (run_gcc): Set auto_parallel
8645 only with -flto=auto.
8646
8647 2019-08-09 Martin Liska <mliska@suse.cz>
8648
8649 * opts.c (common_handle_option): Error for an invalid argument
8650 to -flto=.
8651
8652 2019-08-09 Martin Liska <mliska@suse.cz>
8653
8654 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8655 use dump_printf to report optimization.
8656 (sem_variable::merge): Likwise.
8657 (sem_item_optimizer::merge_classes): Use dump_printf to report
8658 ICF hits.
8659
8660 2019-08-09 Martin Liska <mliska@suse.cz>
8661
8662 * value-prof.c (gimple_divmod_fixed_value_transform):
8663 Use dump_printf_loc.
8664 (gimple_mod_pow2_value_transform): Likewise.
8665 (gimple_mod_subtract_transform): Likewise.
8666 (init_node_map): Likewise.
8667 (gimple_ic_transform): Likewise.
8668 (gimple_stringops_transform): Likewise.
8669
8670 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8671
8672 * doc/extend.texi: Add const qualifier to ld intrinsics.
8673
8674 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8675
8676 * config/rs6000/dfp.md (D64_D128): Rename to ...
8677 (DDTD): ... this, throughout.
8678 (dfp_suffix): Rename to ...
8679 (q): ... this, throughout.
8680
8681 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8682
8683 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8684 (dfp_suffix): Ditto.
8685 (adddd3, addtd3): Merge to ...
8686 (add<mode>3 for D64_D128): ... this.
8687 (subdd3, subtd3): Merge to ...
8688 (sub<mode>3 for D64_D128): ... this.
8689 (muldd3, multd3): Merge to ...
8690 (mul<mode>3 for D64_D128): ... this.
8691 (divdd3, divtd3): Merge to ...
8692 (div<mode>3 for D64_D128): ... this.
8693 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8694 (*cmp<mode>_internal1 for D64_D128): ... this.
8695 (ftruncdd2, ftrunctd2): Merge to ...
8696 (ftrunc<mode>2 for D64_D128): ... this.
8697 (fixdddi2, fixtddi2): Merge to ...
8698 (fix<mode>di2 for D64_D128): ... this.
8699
8700 2019-08-08 Jim Wilson <jimw@sifive.com>
8701
8702 PR target/91229
8703 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8704 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8705 Pass into recursive call.
8706 (riscv_flatten_aggregate_argument): New arg. Pass to
8707 riscv_flatten_aggregate_field.
8708 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8709 riscv_flatten_aggregate_argument twice, with false and true as last
8710 arg. Process result twice. Compare results and warn if different.
8711 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8712
8713 2019-08-08 Martin Liska <mliska@suse.cz>
8714
8715 PR bootstrap/91352
8716 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8717 * lto-wrapper.c (jobserver_active_p): Likewise.
8718
8719 2019-08-08 Martin Liska <mliska@suse.cz>
8720
8721 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8722 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8723 (create_version_clone_with_body): Likewise.
8724
8725 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8726
8727 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8728 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8729 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8730 GOVD_EXPLICIT flags.
8731 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8732 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8733 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8734 call install_var_field with mask 11 instead of 3.
8735 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8736 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8737
8738 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8739
8740 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8741 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8742
8743 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8744
8745 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8746 MOVPRFX alternatives. Make the GPR alternatives more expensive
8747 than the FPR ones.
8748
8749 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8750
8751 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8752 Disparage the GPR alternative relative to the FPR one.
8753 Fix handling of 8-bit and 16-bit FPR values.
8754
8755 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8756
8757 * config/aarch64/iterators.md (BITWISEV): Delete.
8758 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8759 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8760 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8761 UNSPEC_FMINNMV, UNSPEC_FMINV.
8762 (bit_reduc_op): Delete.
8763 (sve_int_op): New int attribute.
8764 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8765 UNSPEC_FMINNMV, UNSPEC_FMINV.
8766 * config/aarch64/aarch64-sve.md
8767 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8768 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8769 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8770 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8771 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8772 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8773 new patterns.
8774 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8775 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8776 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8777 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8778 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8779 new patterns.
8780
8781 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8782
8783 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8784 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8785 (fms<mode>4, *fms<mode>4): Replace with...
8786 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8787 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8788 Use unspecs instead of rtx codes.
8789 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8790 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8791
8792 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8795 int iterator.
8796 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8797 * config/aarch64/aarch64-sve.md
8798 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8799 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8800 use a single unspec for the rhs.
8801 (*<su><maxmin><mode>3): Delete.
8802 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8803
8804 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8805
8806 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8807 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8808 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8809 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8810 (optab, sve_fp_op): Handle them.
8811 (SVE_FP_UNARY): Delete.
8812 (optab): Remove sqrt entry.
8813 (sve_fp_op): Remove neg, abs and sqrt entries.
8814 (SVE_COND_FP_UNARY): New int iterator.
8815 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8816 (*<frint_pattern><mode>2): Delete.
8817 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8818 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8819 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8820 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8821
8822 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8823
8824 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8825
8826 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8827
8828 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8829 (UNSPEC_COND_FADD): ...this.
8830 (UNSPEC_COND_SUB): Rename to...
8831 (UNSPEC_COND_FSUB): ...this.
8832 (UNSPEC_COND_MUL): Rename to...
8833 (UNSPEC_COND_FMUL): ...this.
8834 (UNSPEC_COND_DIV): Rename to...
8835 (UNSPEC_COND_FDIV): ...this.
8836 (UNSPEC_COND_MAX): Rename to...
8837 (UNSPEC_COND_FMAXNM): ...this.
8838 (UNSPEC_COND_MIN): Rename to...
8839 (UNSPEC_COND_FMINNM): ...this.
8840 (UNSPEC_COND_LT): Rename to...
8841 (UNSPEC_COND_FCMLT): ...this.
8842 (UNSPEC_COND_LE): Rename to...
8843 (UNSPEC_COND_FCMLE): ...this.
8844 (UNSPEC_COND_EQ): Rename to...
8845 (UNSPEC_COND_FCMEQ): ...this.
8846 (UNSPEC_COND_NE): Rename to...
8847 (UNSPEC_COND_FCMNE): ...this.
8848 (UNSPEC_COND_GE): Rename to...
8849 (UNSPEC_COND_FCMGE): ...this.
8850 (UNSPEC_COND_GT): Rename to...
8851 (UNSPEC_COND_FCMGT): ...this.
8852 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8853 (sve_fp_op_rev): Update accordingly.
8854 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8855
8856 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8857
8858 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8859 banner comments.
8860 * config/aarch64/check-sve-md.awk: New file.
8861 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8862 (insn-conditions.md): Depend on it.
8863
8864 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8865
8866 PR target/91385
8867 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8868 (*negsi2_cmpz_zext): Ditto.
8869
8870 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8871
8872 * config/aarch64/iterators.md (commutative): Remove.
8873
8874 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8875
8876 PR driver/91130
8877 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8878 processing COLLECT_GCC_OPTIONS.
8879 (run_gcc): Likewise.
8880
8881 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8882
8883 PR tree-optimization/91109
8884 * lra-remat.c (update_scratch_ops): Remove assignment of the
8885 hard register.
8886
8887 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8888
8889 * data-streamer.h (streamer_write_poly_uint64): Declare.
8890 (streamer_read_poly_uint64): Likewise.
8891 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8892 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8893 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8894 (add_condition): Take a poly_int64 size.
8895 * ipa-predicate.c (add_condition): Likewise.
8896 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8897 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8898 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8899 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8900 condition::size as a poly_int64.
8901 (unmodified_parm_1): Take a poly_int64 size pointer.
8902 (unmodified_parm): Likewise.
8903 (unmodified_parm_or_parm_agg_item): Likewise.
8904 (set_cond_stmt_execution_predicate): Update accordingly.
8905 (set_switch_stmt_execution_predicate): Likewise.
8906 (will_be_nonconstant_expr_predicate): Likewise.
8907 (will_be_nonconstant_predicate): Likewise.
8908 (inline_read_section): Stream condition::size as a poly_int.
8909 (ipa_fn_summary_write): Likewise.
8910
8911 2019-08-07 Martin Liska <mliska@suse.cz>
8912
8913 * fold-const.c (twoval_comparison_p): Replace int
8914 with bool as a return type.
8915 (simple_operand_p): Likewise.
8916 (operand_equal_p): Replace int with bool as a return type.
8917 * fold-const.h (operand_equal_p): Likewise.
8918
8919 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8920
8921 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8922 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8923 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8924 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8925 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8926 * tree-pretty-print.c (dump_omp_clause): Likewise.
8927 * tree-nested.c (convert_nonlocal_omp_clauses,
8928 convert_local_omp_clauses): Likewise.
8929 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8930 Likewise.
8931 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8932 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8933 clause with array or reference to array types, no matter what type
8934 except for reference it has.
8935
8936 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8937
8938 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8939
8940 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8941
8942 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8943 (arch_canonicalize): Support rv32g and rv64g and fix error
8944 handling.
8945
8946 2019-08-06 Martin Liska <mliska@suse.cz>
8947
8948 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8949 and DECL_IS_OPERATOR_DELETE_P.
8950
8951 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8952
8953 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8954 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8955 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8956 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8957 (gimplify_omp_for): Don't do C++ random access iterator clause
8958 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8959 don't predetermine the artificial iterator in case of C++ random
8960 access iterators as lastprivate, but private. For OMP_LOOP, force
8961 bind expr around simd body and force for_pre_body before the
8962 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8963 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8964 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8965 diff var of C++ random access iterators. Handle
8966 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8967 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8968 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8969 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8970 * omp-low.c (lower_rec_input_clauses): For
8971 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8972 variables instead of default constructing them.
8973 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8974 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8975 is_taskloop_ctx check from the assert to the guarding condition.
8976
8977 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8978
8979 * config/riscv/multilib-generator: (canonical_order): New.
8980 (arch_canonicalize): Dito.
8981 Apply arch_canonicalize for alts.
8982
8983 2019-08-05 Martin Sebor <msebor@redhat.com>
8984
8985 * doc/extend.texi (Common Variable Attributes): Document alias
8986 attribute.
8987
8988 2019-08-05 Marek Polacek <polacek@redhat.com>
8989
8990 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8991 * doc/invoke.texi: Document -Wcomma-subscript.
8992
8993 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8994
8995 * tree-core.h (tree_function_decl): Make function_code an
8996 independent field. Group the remaining bitfields into bytes
8997 and move decl_type so that it contines to be at a byte boundary.
8998 Leave 12 bits for future expansion.
8999
9000 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9001
9002 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9003 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9004 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9005 IFN_MASK_STORE.
9006
9007 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9008
9009 * gimple.h (gimple_move_vops): Declare.
9010 * gimple.c (gimple_move_vops): New function
9011 * gimple-fold.c (replace_call_with_call_and_fold)
9012 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9013 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9014 (gimple_fold_call): Use it.
9015 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9016 * tree-call-cdce.c (use_internal_fn): Likewise.
9017 * tree-if-conv.c (predicate_load_or_store): Likewise.
9018 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9019 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9020 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9021 (update_call_from_tree): Likewise.
9022 * tree-vect-stmts.c (vectorizable_load): Likewise.
9023 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9024
9025 2019-08-05 Martin Liska <mliska@suse.cz>
9026
9027 PR c++/91334
9028 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9029 with not arguments.
9030 (eliminate_unnecessary_stmts): Likewise.
9031
9032 2019-08-05 Richard Biener <rguenther@suse.de>
9033
9034 PR middle-end/91169
9035 * fold-const.c (get_array_ctor_element_at_index): Create
9036 offset_ints according to the sign of the index type and treat
9037 that as signed if it is obviously so.
9038
9039 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9040
9041 PR target/91341
9042 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9043 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9044 _mm256_storeu2_m128i): New function.
9045
9046 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9047
9048 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9049 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9050
9051 2019-08-05 Alan Modra <amodra@gmail.com>
9052
9053 PR target/91349
9054 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9055 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9056
9057 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9058
9059 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9060 bug that was fixed in Tcl 8.6.1.
9061
9062 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9063
9064 * config/rs6000/future.md: New file.
9065 * config/rs6000/rs6000.md: Include future.md.
9066 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9067
9068 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9069
9070 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9071 check to use targetm.slow_unaligned_access instead.
9072
9073 * function.c (assign_param_data_one): Remove unused data members.
9074
9075 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9076
9077 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9078 build_distinct_type_copy.
9079 (simd_clone_adjust_argument_types): Ditto.
9080 (simd_clone_adjust): Call build_distinct_type_copy here.
9081 (expand_simd_clones): Ditto.
9082
9083 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9084
9085 PR target/91201
9086 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9087
9088 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9089
9090 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9091 from 'const void *'.
9092 (sort_locs_in_loop_postorder_cmp): Likewise.
9093
9094 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9095
9096 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9097 (hot-bb-count-ws-permille): Likewise.
9098 (hot-bb-frequency-fraction): Likewise.
9099 (unlikely-bb-count-fraction): Likewise.
9100 * params.def (hot-bb-count-fraction): Rework description.
9101 (hot-bb-count-ws-permille): Likewise.
9102 (hot-bb-frequency-fraction): Likewise.
9103 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9104 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9105
9106 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9107
9108 PR target/91323
9109 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9110 Return false.
9111
9112 2019-08-02 Richard Biener <rguenther@suse.de>
9113
9114 * vec.h (vec::sort): Add gcc_qsort_r support.
9115 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9116 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9117 to gcc_qsort_r style callback.
9118 (sort_locs_in_loop_postorder_cmp): Likewise.
9119 (analyze_memory_references): Use gcc_sort_r interfaces.
9120 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9121
9122 2019-08-02 Martin Liska <mliska@suse.cz>
9123
9124 PR lto/91313
9125 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9126 to detect working job server.
9127 (driver::detect_jobserver): Test whether jobserver
9128 is active from GCC driver. That will prevent situation where
9129 GCC is invoked from a LD plugin and the linker already uses
9130 file descriptors suggested by make. That leads to a wrong
9131 detection.
9132 * gcc.h (driver): Add detect_jobserver.
9133 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9134 not scanning for --jobserver-auth prefix.
9135
9136 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9137
9138 PR tree-optimization/91201
9139 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9140 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9141 extraction.
9142
9143 2019-08-01 Martin Sebor <msebor@redhat.com>
9144
9145 PR c++/90947
9146 * tree.c (type_initializer_zero_p): Define.
9147 * tree.h (type_initializer_zero_p): New function.
9148
9149 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9150
9151 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9152
9153 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9154
9155 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9156 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9157 * predict.c (maybe_hot_count_p): Likewise.
9158 (maybe_hot_bb_p): Tweak comment.
9159 (maybe_hot_edge_p): Likewise.
9160 (probably_never_executed): Likewise. Minor tweak.
9161 (probably_never_executed_bb_p): Likewise.
9162 (unlikely_executed_edge_p): Likewise.
9163 (probably_never_executed_edge_p): Likewise.
9164 (optimize_function_for_size_p): Likewise.
9165 (optimize_function_for_speed_p): Likewise.
9166 (function_optimization_type): Likewise.
9167 (optimize_bb_for_size_p): Likewise.
9168 (optimize_bb_for_speed_p): Likewise.
9169 (bb_optimization_type): Likewise.
9170 (optimize_edge_for_size_p): Likewise.
9171 (optimize_edge_for_speed_p): Likewise.
9172 (optimize_insn_for_size_p): Likewise.
9173 (optimize_insn_for_speed_p): Likewise.
9174 (optimize_loop_for_size_p): Likewise.
9175 (optimize_loop_for_speed_p): Likewise.
9176 (optimize_loop_nest_for_speed_p): Likewise.
9177 (optimize_loop_nest_for_size_p): Likewise.
9178 (predictable_edge_p): Likewise.
9179 (handle_missing_profiles): Minor tweak.
9180
9181 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9182
9183 * config/rs6000/predicates.md (pcrel_external_address): Update
9184 comment.
9185
9186 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9187
9188 PR target/85693
9189 * config/i386/mmx.md (usadv8qi): New expander.
9190
9191 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9192
9193 PR c++/90590
9194 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9195 with reserved names that are in a system header.
9196
9197 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9198
9199 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9200 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9201 (*vec_extractv2si_0_zext): Ditto.
9202 (*vec_extractv2si_1): Add (rm,x) alternative.
9203 (*vec_extractv2si_1_zext): New insn pattern.
9204 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9205 insn constraint.
9206
9207 2019-08-01 Richard Biener <rguenther@suse.de>
9208
9209 * domwalk.c (bb_postorder): Remove static variable.
9210 (cmp_bb_postorder): Adjust.
9211 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9212 (dom_walker::walk): Adjust.
9213
9214 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9215
9216 * sort.cc (sort_r_ctx): New struct.
9217 (reorder23): Make templated on context type.
9218 (reorder45): Ditto.
9219 (cmp1): Ditto. Adjust signature.
9220 (netsort): Ditto.
9221 (mergesort): Ditto.
9222 [CHECKING_P] (cmp2to3): New static function. Use it...
9223 (gcc_qsort) [CHECKING_P]: ...here.
9224 (gcc_sort_r): New function.
9225 * system.h (sort_r_cmp_fn): New function typedef.
9226 (qsort_chk): Adjust signature.
9227 (gcc_sort_r): Declare.
9228 * vec.c (qsort_chk_error): Adjust.
9229 (qsort_chk): Adjust.
9230
9231 2019-08-01 Richard Biener <rguenther@suse.de>
9232
9233 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9234 (compute_antic): Localize it here.
9235
9236 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9237
9238 * common/config/riscv/riscv-common.c: Check -march string ends
9239 with null.
9240
9241 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9242
9243 * ipa-devirt.c (type_warning_cmp): Make static.
9244 (decl_warning_cmp): Ditto.
9245
9246 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9247
9248 PR target/91050
9249 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9250 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9251 use of deleted rs6000_dejagnu_cpu_index variable.
9252 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9253 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9254 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9255 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9256 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9257 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9258
9259 2019-07-31 Richard Biener <rguenther@suse.de>
9260
9261 PR tree-optimization/91280
9262 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9263 Decompose MEM_REF manually for offset handling.
9264
9265 2019-07-31 Richard Biener <rguenther@suse.de>
9266
9267 PR tree-optimization/91293
9268 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9269 of reduction stmts.
9270
9271 2019-07-31 Matt Thomas <matt@3am-software.com>
9272 Nick Hudson <nick@nthcliff.demon.co.uk>
9273 Matthew Green <mrg@eterna.com.au>
9274 Maya Rashish <coypu@sdf.org>
9275
9276 * config.gcc (hppa*-*-netbsd*): New target.
9277 * config/pa/pa-netbsd.h: New file.
9278 * config/pa/pa32-netbsd.h: New file.
9279
9280 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9281
9282 PR tree-optimization/91201
9283 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9284
9285 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9286
9287 * config/gcn/gcn-valu.md
9288 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9289 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9290 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9291 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9292 struct ilist. Add nops for delayeduse insns.
9293 * config/gcn/gcn.md (delayeduse): New attribute.
9294 (*movbi): Remove s_waitcnt from stores.
9295 (*mov<mode>_insn): Likewise.
9296 (*movti_insn): Likewise. Add delayeduse attribute.
9297 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9298 (atomic_store<mode>): Remove or adjust s_waitcnt.
9299
9300 2019-07-31 Richard Biener <rguenther@suse.de>
9301
9302 * vr-values.h (vr_values::swap_vr_value): New.
9303 (vr_values::free_value_range): likewise.
9304 * vr-values.c (vr_values::swap_vr_value): Implement.
9305 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9306 Do not return a range or take a var.
9307 (evrp_range_analyzer::stack): Change back to recording a non-const
9308 value_range *.
9309 * gimple-ssa-evrp-analyze.c
9310 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9311 value-range.
9312 (evrp_range_analyzer::pop_to_marker): Adjust.
9313 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9314 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9315 no longer needed value-range.
9316
9317 2019-07-31 Martin Liska <mliska@suse.cz>
9318
9319 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9320 have size and (or) alignment as 2nd and later arguments.
9321 Mark all of them as necessary.
9322
9323 2019-07-31 Richard Biener <rguenther@suse.de>
9324
9325 PR tree-optimization/91178
9326 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9327 Use tail-recursion.
9328
9329 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9330
9331 PR tree-optimization/91201
9332 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9333 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9334 TARGET_AVX512F.
9335 (reduc_plus_scal_<mode>): Improve formatting by introducing
9336 a temporary.
9337
9338 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9339
9340 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9341 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9342 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9343 (aarch64_init_tme_builtins): New.
9344 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9345 (aarch64_expand_builtin_tme): New.
9346 (aarch64_expand_builtin): Handle TME builtins.
9347 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9348 __ARM_FEATURE_TME when enabled.
9349 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9350 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9351 (TARGET_TME): New.
9352 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9353 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9354 UNSPECV_TCANCEL.
9355 (tstart, ttest, tcommit, tcancel): New instructions.
9356 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9357 (__tcancel, __ttest): New.
9358 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9359 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9360 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9361 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9362 * config/arm/types.md: Add new tme type attr.
9363 * doc/invoke.texi: Document "tme".
9364
9365 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9366
9367 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9368 warn_unused_result attribute.
9369 (cmse_check_address_range): Add warn_unused_result attribute.
9370
9371 2019-07-31 Richard Biener <rguenther@suse.de>
9372
9373 PR tree-optimization/91257
9374 * tree-vrp.c (union_ranges): Unify equality and less tests
9375 by using compare_values. Re-order cheap tests first.
9376
9377 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9378
9379 PR middle-end/91301
9380 * gimplify.c (gimplify_omp_for): If for class iterator on
9381 distribute parallel for there is no data sharing clause
9382 on inner_for_stmt, look for private clause on combined
9383 parallel too and if found, move it to inner_for_stmt.
9384
9385 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9386
9387 * lra-int.h (lra_operand_data): Remove early_clobber field.
9388 (lra_insn_reg): Likewise.
9389 * lra.c (debug_operand_data): Update accordingly.
9390 (setup_operand_alternative): Likewise.
9391 (new_insn_reg): Likewise. Remove early_clobber parameter.
9392 (collect_non_operand_hard_regs): Update call accordingly.
9393 Don't assign to lra_insn_reg::early_clobber.
9394 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9395 and update calls to new_insn_reg.
9396 (lra_update_insn_regno_info): Update calls accordingly.
9397 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9398 alternative number as a parameter and test whether the operand
9399 is earlyclobbered in that particular alternative.
9400 (process_alt_operands): Update call accordingly. Use per-alternative
9401 checks for earyclobber here too.
9402 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9403 against zero for IRA_UNKNOWN_ALT.
9404
9405 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9406
9407 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9408
9409 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9410
9411 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9412 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9413
9414 2019-07-30 Martin Liska <mliska@suse.cz>
9415
9416 PR ipa/89330
9417 * cgraph.c (cgraph_edge::make_direct): Use
9418 edge->indirect_unknown_callee as edge->resolve_speculation can
9419 deallocate edge which is this pointer.
9420
9421 2019-07-30 Richard Biener <rguenther@suse.de>
9422
9423 PR tree-optimization/91257
9424 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9425
9426 2019-07-30 Martin Liska <mliska@suse.cz>
9427
9428 * doc/invoke.texi: Document new behavior.
9429 * lto-wrapper.c (cpuset_popcount): New function
9430 is a copy of libgomp/config/linux/proc.c.
9431 (init_num_threads): Likewise.
9432 (run_gcc): Automatically detect core count for -flto.
9433 (jobserver_active_p): New function.
9434
9435 2019-07-30 Richard Biener <rguenther@suse.de>
9436
9437 PR tree-optimization/91257
9438 * bitmap.h (bitmap_ior_into_and_free): Declare.
9439 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9440 whether to add the unliked element to the freelist.
9441 (bitmap_list_insert_element_after): Add defaulted param for
9442 an already allocated element.
9443 (bitmap_ior_into_and_free): New function.
9444 * tree-ssa-structalias.c (condense_visit): Reduce the
9445 ponts-to and edge bitmaps of the SCC members in a
9446 logarithmic fashion rather than all to one.
9447
9448 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9449
9450 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9451 parameter. When nonnull, make sure that the addition or subtraction
9452 has the same condition.
9453 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9454 for CFN_COND_MUL too.
9455
9456 2019-07-30 Richard Biener <rguenther@suse.de>
9457
9458 PR tree-optimization/91291
9459 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9460 constant values.
9461
9462 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9463
9464 PR middle-end/91216
9465 * omp-low.c (global_nonaddressable_vars): New variable.
9466 (use_pointer_for_field): For global decls, if they are non-addressable,
9467 remember it in the global_nonaddressable_vars bitmap, if they are
9468 addressable and in the global_nonaddressable_vars bitmap, ignore their
9469 TREE_ADDRESSABLE bit.
9470 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9471 vars in global_nonaddressable_vars bitmap.
9472 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9473
9474 PR target/91150
9475 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9476 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9477 comparison to unsigned HOST_WIDE_INT before shifting it left.
9478
9479 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9480
9481 * config/i386/i386.md (movstrict<mode>): Use register_operand
9482 predicate for operand 0. Add expander condition. Assert that
9483 operand 0 is a SUBREG RTX.
9484 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9485 Update operand constraints and insn condition.
9486 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9487 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9488 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9489 Update operand 0 constraints.
9490 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9491
9492 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9493
9494 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9495 when -m{code,data}-region are used without -mlarge.
9496 * config/msp430/msp430.c (msp430_option_override): Error when a
9497 non-default code or data region is used without -mlarge.
9498 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9499 attributes when they are used without -mlarge.
9500
9501 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9502
9503 PR target/70320
9504 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9505
9506 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9507
9508 PR middle-end/91242
9509 * wide-int.h (generic_wide_int::sext_elt): New function.
9510 * inchash.h (hash::add_wide_int): Use it instead of elt.
9511
9512 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9513
9514 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9515 CODE_FOR_arm_##.
9516 * config/arm/arm.md (<crc_variant>): Rename to...
9517 (arm_<crc_variant>): ... This.
9518 (<cdp>): Rename to...
9519 (arm_<cdp>): ... This.
9520 (<ldc>): Rename to...
9521 (arm_<ldc>): ... This.
9522 (<stc>): Rename to...
9523 (arm_<stc>): ... This.
9524 (<mcr>): Rename to...
9525 (arm_<mcr>): ... This.
9526 (<mrc>): Rename to...
9527 (arm_<mrc>): ... This.
9528 (<mcrr>): Rename to...
9529 (arm_<mcrr>): ... This.
9530 (<mrrc>): Rename to...
9531 (arm_<mrrc>): ... This.
9532
9533 2019-07-29 Richard Biener <rguenther@suse.de>
9534
9535 PR tree-optimization/91257
9536 * tree-ssa-sccvn.h (struct vn_avail): New.
9537 (struct vn_ssa_aux): Add avail member.
9538 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9539 member, add m_avail_freelist one.
9540 (rpo_elim::~rpo_elim): Remove.
9541 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9542 data structure.
9543 (rpo_elim::eliminate_push_avail): Likewise.
9544 (do_unwind): Likewise.
9545 (do_rpo_vn): Likewise.
9546
9547 2019-07-29 Richard Biener <rguenther@suse.de>
9548
9549 PR tree-optimization/91257
9550 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9551 most cases, instead call compare_values which handles the
9552 symbolic ranges we handle specially.
9553 (compare_values_warnv): Do not call operand_less_p but open-code
9554 the effective fold calls. Avoid converting so much.
9555
9556 2019-07-29 Martin Liska <mliska@suse.cz>
9557
9558 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9559 remove LHS of operator new call. It's handled latter.
9560
9561 2019-07-29 Richard Biener <rguenther@suse.de>
9562
9563 PR tree-optimization/91267
9564 * vr-values.c (vr_values::update_value_range): Add early return
9565 for effectively VARYING lattice entry.
9566
9567 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9568
9569 PR debug/86638
9570 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9571 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9572 necessary if keep_all_vdefs_p is true.
9573 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9574 that keep_all_vdefs_p is false.
9575 (mark_all_reaching_defs_necessary): Likewise.
9576 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9577
9578 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9579
9580 * common.opt (Og): Change the initial value of flag_dse to 0.
9581 * opts.c (default_options_table): Move OPT_ftree_dse from
9582 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9583 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9584 entry before the OPT_ftree_sra entry.
9585 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9586 of flags disabled by Og.
9587
9588 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9589
9590 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9591 variables for -Og.
9592
9593 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9594
9595 * doc/sourcebuild.texi (check-function-bodies): Document.
9596
9597 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9598
9599 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9600 VEC_DUPLICATE of a fixed-length vector even if the result
9601 is variable-length. Likewise fold a duplicate of a
9602 variable-length vector if the variable-length vector is
9603 itself a duplicate of a fixed-length sequence.
9604 (test_vector_ops_duplicate): Test more cases.
9605
9606 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9607
9608 * vector-builder.h (vector_builder): Add a shape template parameter.
9609 (vector_builder::new_unary_operation): New function, generalizing
9610 the old tree_vector_builder function.
9611 (vector_builder::new_binary_operation): Likewise.
9612 (vector_builder::binary_encoded_nelts): Likewise.
9613 * int-vector-builder.h (int_vector_builder): Update template
9614 parameters to vector_builder.
9615 (int_vector_builder::shape_nelts): New function.
9616 * rtx-vector-builder.h (rtx_vector_builder): Update template
9617 parameters to vector_builder.
9618 (rtx_vector_builder::shape_nelts): New function.
9619 (rtx_vector_builder::nelts_of): Likewise.
9620 (rtx_vector_builder::npatterns_of): Likewise.
9621 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9622 * tree-vector-builder.h (tree_vector_builder): Update template
9623 parameters to vector_builder.
9624 (tree_vector_builder::shape_nelts): New function.
9625 (tree_vector_builder::nelts_of): Likewise.
9626 (tree_vector_builder::npatterns_of): Likewise.
9627 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9628 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9629 (tree_vector_builder::new_binary_operation): Delete.
9630 (tree_vector_builder::binary_encoded_nelts): Likewise.
9631 * simplify-rtx.c: Include rtx-vector-builder.h.
9632 (distributes_over_addition_p): New function.
9633 (simplify_const_unary_operation)
9634 (simplify_const_binary_operation): Generalize handling of vector
9635 constants to include variable-length vectors.
9636 (test_vector_ops_series): Add more tests.
9637
9638 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9639
9640 PR lto/91222
9641 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9642 than INDENTIFIER_POINTER.
9643
9644 2019-07-28 Martin Liska <mliska@suse.cz>
9645
9646 PR ipa/89330
9647 * cgraph.c (symbol_table::create_edge): Always allocate
9648 a cgraph_edge.
9649 (symbol_table::free_edge): Store summary_id to
9650 edge_released_summary_ids if != -1;
9651 * cgraph.h (NEXT_FREE_NODE): Remove.
9652 (SET_NEXT_FREE_NODE): Likewise.
9653 (NEXT_FREE_EDGE): Likewise.
9654 (symbol_table::release_symbol): Store summary_id to
9655 cgraph_released_summary_ids if != -1;
9656 (symbol_table::allocate_cgraph_symbol): Always allocate
9657 a cgraph_node.
9658
9659 2019-07-28 Alan Modra <amodra@gmail.com>
9660
9661 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9662 gen_sibcall.
9663
9664 2019-07-28 Alan Modra <amodra@gmail.com>
9665
9666 PR target/91135
9667 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9668 define.
9669 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9670 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9671 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9672
9673 2019-07-28 Alan Modra <amodra@gmail.com>
9674
9675 PR target/91050
9676 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9677 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9678 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9679 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9680 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9681 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9682 in asm_default spec.
9683 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9684 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9685
9686 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9687
9688 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9689
9690 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9691
9692 PR target/89517
9693 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9694 * config/aarch64/aarch64-option-extensions.def: Add new comments
9695 and restore easier to read options.
9696
9697 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9698
9699 * convert.c (convert_to_real_1): Move part of conversion code...
9700 * match.pd: ...To here.
9701
9702 2019-07-26 Martin Jambor <mjambor@suse.cz>
9703
9704 PR ipa/89330
9705 * ipa-inline-transform.c (check_speculations_1): New function.
9706 (push_all_edges_in_set_to_vec): Likewise.
9707 (check_speculations): Use check_speculations_1, new parameter
9708 new_edges.
9709 (inline_call): Pass new_edges to check_speculations.
9710 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9711 NULL.
9712 (speculation_useful_p): Early return true if edge is inlined, remove
9713 later checks for inline_failed.
9714
9715 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9716
9717 PR rtl-optimization/91223
9718 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9719 matching with INOUT operand.
9720
9721 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9722
9723 * stmt.c (expand_case): Try to narrow the index type if it's larger
9724 than a word. Tidy up.
9725
9726 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9727
9728 * cif-code.def (NEVER_CALL): New code.
9729 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9730 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9731
9732 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9733
9734 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9735 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9736
9737 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9738
9739 * ipa-devirt.c (add_type_duplicate): Fix return value.
9740
9741 2019-07-25 Richard Biener <rguenther@suse.de>
9742
9743 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9744 type parameter and use it instead of guessing expression
9745 type from the first operand.
9746 (extract_range_from_binary_expr): Pass expr_type down.
9747
9748 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9749
9750 * config/arm/arm.md (SATrev): Change to code attribute.
9751 (*satsi_<SAT:code>): Adjust for the above.
9752 (*satsi_<SAT:code>_shift): Likewise.
9753
9754 2019-07-25 Richard Biener <rguenther@suse.de>
9755
9756 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9757 Make value_range * temporary const.
9758 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9759 Likewise.
9760 (evrp_range_analyzer::record_ranges_from_): Likewise.
9761 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9762 deal with having recorded a const one.
9763 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9764 Return a const value_range *.
9765 (evrp_range_analyzer::pop_value_range): Likewise.
9766 (evrp_range_analyzer::stack): Record const value_range *s.
9767 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9768 Adjust.
9769 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9770 (format_integer): Likewise.
9771 (sprintf_dom_walker::handle_gimple_call): Likewise.
9772 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9773 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9774 (vrp_prop::get_value_range): Adjust.
9775 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9776 modifying the lattice in-place.
9777 (vrp_prop::visit_stmt): Likewise.
9778 * vr-values.c (vr_values::get_lattice_entry): New private method.
9779 (vr_values::get_value_range): Wrap it and return a const
9780 value_range *.
9781 (vr_values::set_def_to_varying): New.
9782 (vr_values::set_defs_to_varying): Use it.
9783 (vr_values::update_value_range): Likewise.
9784 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9785 (values::op_with_constant_singleton_va): Likewise.
9786 (vr_values::extract_range_for_var_from_co): Likewise.
9787 (vr_values::extract_range_from_ssa_name): Likewise.
9788 (vr_values::extract_range_from_cond_expr): Likewise.
9789 (vr_values::extract_range_basic): Likewise.
9790 (compare_ranges): Take const value_range *, adjust.
9791 (compare_range_with_value): Likewise.
9792 (vrp_valueize): Adjust.
9793 (vrp_valueize_1): Likewise.
9794 (vr_values::get_vr_for_comparison): Return a const value_range *.
9795 (vr_values::compare_name_with_value): Adjust.
9796 (vr_values::compare_names): Likewise.
9797 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9798 Likewise.
9799 (vr_values::vrp_evaluate_conditional): Likewise.
9800 (find_case_label_ranges): Take a const value_range *.
9801 (vr_values::vrp_visit_switch_stmt): Adjust.
9802 (vr_values::extract_range_from_phi_node): Likewise.
9803 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9804 (vr_values::simplify_abs_using_ranges): Likewise.
9805 (test_for_singularity): Take a const value_range *.
9806 (range_fits_type_p): Likewise.
9807 (vr_values::simplify_cond_using_ranges_1): Adjust.
9808 (vr_values::simplify_cond_using_ranges_2): Likewise.
9809 (vr_values::simplify_switch_using_ranges): Likewise.
9810 (vr_values::simplify_float_conversion_usi): Likewise.
9811 (vr_values::two_valued_val_range_p): Likewise.
9812 * vr-values.h (vr_values::get_value_range): Return a const
9813 value_range *.
9814 (vr_values::set_def_to_varying): New.
9815 (vr_values::get_lattice_entry): New private method.
9816 (vr_values::get_vr_for_comparison): Return a const value_range *.
9817
9818 2019-07-25 Martin Liska <mliska@suse.cz>
9819 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9820
9821 PR c++/23383
9822 * common.opt: Add -fallocation-dce
9823 * gimple.c (gimple_call_operator_delete_p): New.
9824 * gimple.h (gimple_call_operator_delete_p): Likewise.
9825 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9826 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9827 DECL_IS_OPERATOR_DELETE_P.
9828 (mark_all_reaching_defs_necessary_1): Likewise.
9829 (propagate_necessity): Likewise.
9830 (eliminate_unnecessary_stmts): Handle
9831 gimple_call_operator_delete_p.
9832 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9833 Add packing of OPERATOR_DELETE.
9834 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9835 Similarly here.
9836 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9837 (DECL_SET_IS_OPERATOR_DELETE): New.
9838 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9839
9840 2019-07-25 Martin Liska <mliska@suse.cz>
9841
9842 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9843 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9844 * coverage.c (coverage_begin_function): Likewise.
9845 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9846 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9847 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9848 (sem_item::hash_referenced_symbol_properties): Likewise.
9849 * lto-streamer-out.c (hash_tree): Likewise.
9850 * predict.c (expr_expected_value_1): Likewise.
9851 * tree-inline.c (expand_call_inline): Likewise.
9852 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9853 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9854 * tree-core.h (enum function_decl_type): New enum.
9855 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9856 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9857 (set_function_decl_type): Likewise.
9858 (DECL_IS_OPERATOR_NEW_P): New.
9859 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9860 (DECL_LAMBDA_FUNCTION): Likewise.
9861 (DECL_LAMBDA_FUNCTION_P): Likewise.
9862 (DECL_IS_OPERATOR_NEW): Remove.
9863 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9864
9865 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9866
9867 * ipa-profile.c (get_most_common_single_value): Use
9868 get_nth_most_common_value.
9869 * profile.c (sort_hist_value): New function.
9870 (compute_value_histograms): Call sort_hist_value to sort the
9871 values after loading from disk.
9872 * value-prof.c (get_most_common_single_value): Rename to ...
9873 get_nth_most_common_value. Add input params n, return
9874 the n_th value and count.
9875 (gimple_divmod_fixed_value_transform): Use
9876 get_nth_most_common_value.
9877 (gimple_ic_transform): Likewise.
9878 (gimple_stringops_transform): Likewise.
9879 * value-prof.h (get_most_common_single_value): Add input params
9880 n, default to 0.
9881
9882 2019-07-25 Richard Biener <rguenther@suse.de>
9883
9884 PR tree-optimization/91236
9885 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9886 size of CONSTRUCTOR write. Fix buffer size we pass to
9887 native_encode_expr.
9888
9889 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9890
9891 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9892 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9893 r273773.
9894
9895 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9896
9897 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9898 explicitly disabled with --disable-initfini-array.
9899
9900 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9901
9902 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9903 if-exists.
9904
9905 2019-07-24 Martin Sebor <msebor@redhat.com>
9906
9907 PR tree-optimization/91183
9908 PR tree-optimization/86688
9909 * builtins.c (compute_objsize): Handle MEM_REF.
9910 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9911 (get_min_string_length): Remove.
9912 (count_nonzero_bytes): New function.
9913 (handle_char_store): Rename...
9914 (handle_store): to this. Handle multibyte stores via integer types.
9915 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9916 function name.
9917
9918 2019-07-24 Martin Sebor <msebor@redhat.com>
9919
9920 PR driver/80545
9921 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9922 (diagnostic_report_diagnostic): Same.
9923 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9924 (diagnostic_context::lang_mask): New data member.
9925 * ipa-pure-const.c (suggest_attribute): Use
9926 lang_hooks.option_lang_mask ().
9927 * opts-common.c (option_enabled): Handle new argument.
9928 (get_option_state): Pass an additional argument.
9929 * opts.c (print_filtered_help): Print supported languages for
9930 unsupported options. Adjust printing of current state.
9931 * opts.h (option_enabled): Add argument.
9932 * toplev.c (print_switch_values): Use lang_mask.
9933 (general_init): Set global_dc->lang_mask.
9934
9935 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9936
9937 PR bootstrap/87030
9938 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9939
9940 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9941
9942 * cgraphunit.c (symbol_table::compile): Start and stop
9943 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9944 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9945
9946 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9947
9948 * gimplify.c (flag_instrument_functions_exclude_p): Include
9949 namespace/class information in the printable name.
9950 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9951 to tokens entered into the vector.
9952
9953 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9954
9955 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9956 (get_static_chain): Call it instead of build_simple_mem_ref.
9957 (get_frame_field): Likewise.
9958 (get_nonlocal_debug_decl): Likewise.
9959 (convert_nonlocal_reference_op): Likewise.
9960
9961 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9962
9963 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9964 declaration.
9965 (arc_compute_frame_size): Millicode is disabled when compiling
9966 ISR.
9967 (arc_return_address_register): Likewise.
9968 (arc_compute_function_type): Likewise.
9969 (arc_compute_frame_size): Likewise.
9970 (secondary_reload_info): Likewise.
9971 (arc_get_unalign): Likewise.
9972 (arc_can_use_return_insn): Declare.
9973 * config/arc/arc.c (AUX_LP_START): Define
9974 (AUX_LP_END): Likewise.
9975 (arc_frame_info): Update gmask member to 64-bit datum.
9976 (GMASK_LEN): Update.
9977 (arc_compute_function_type): Make it static, move it forward.
9978 (arc_must_save_register): Update, consider the extra regs.
9979 (arc_compute_millicode_save_restore_regs): Update to use the 64
9980 bit gmask.
9981 (arc_compute_frame_size): Likewise.
9982 (arc_enter_leave_p): Likewise.
9983 (arc_save_callee_saves): Likewise.
9984 (arc_restore_callee_saves): Likewise.
9985 (arc_save_callee_enter): Likewise.
9986 (arc_restore_callee_leave): Likewise.
9987 (arc_save_callee_milli): Likewise.
9988 (arc_restore_callee_milli): Likewise.
9989 (arc_expand_prologue): Add new interrupt handling.
9990 (arc_return_address_register): Make it static, move it forward.
9991 (arc_expand_epilogue): Add new interrupt handling.
9992 (arc_get_unalign): Delete.
9993 (arc_epilogue_uses): Make sure we do not remove the extra
9994 saved/restored registers when interrupt.
9995 (arc_can_use_return_insn): New function.
9996 (push_reg): Likewise.
9997 (pop_reg): Likewise.
9998 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9999 procedures.
10000 (arc_restore_callee_saves): Likewise, but restoring.
10001 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10002 (R33_REG): Likewise.
10003 (R34_REG): Likewise.
10004 (R35_REG): Likewise.
10005 (R36_REG): Likewise.
10006 (R37_REG): Likewise.
10007 (R38_REG): Likewise.
10008 (R39_REG): Likewise.
10009 (R45_REG): Likewise.
10010 (R46_REG): Likewise.
10011 (R47_REG): Likewise.
10012 (R48_REG): Likewise.
10013 (R49_REG): Likewise.
10014 (R50_REG): Likewise.
10015 (R51_REG): Likewise.
10016 (R52_REG): Likewise.
10017 (R53_REG): Likewise.
10018 (R54_REG): Likewise.
10019 (R55_REG): Likewise.
10020 (R56_REG): Likewise.
10021 (R58_REG): Likewise.
10022 (type): Add rtie attribute.
10023 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10024 (movsi_insn): Accept moves to lp_count.
10025 (rtie): Update pattern.
10026 (simple_return): Simplify it, don't use this pattern as a return
10027 from an interrupt.
10028 (arc600_rtie): New pattern.
10029 (p_return_i): Clean up.
10030 (return): Likewise.
10031 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10032 family CPUs.
10033 * config/arc/predicates.md (move_src_operand): Consider lp_count
10034 as a register.
10035
10036 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10037
10038 * config/s390/predicates.md (addv_const_operand): New predicate.
10039 * config/s390/s390-modes.def (CCO): New condition code mode.
10040 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10041 (s390_branch_condition_mask): Likewise.
10042 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10043 ("mulv<mode>4"): New expanders.
10044 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10045 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10046 pattern definitions.
10047
10048 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10049
10050 PR middle-end/91166
10051 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10052 (define_predicates): Add entry for uniform_vector_p.
10053 (vec_same_elem_p): New match pattern.
10054
10055 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10056
10057 PR bootstrap/87030
10058 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10059 * config/i386/darwin32-biarch.h .. to here.
10060 * config/i386/darwin64-biarch.h: Adjust comments.
10061 * config/rs6000/darwin32-biarch.h: Likewise.
10062 * config/rs6000/darwin64-biarch.h: Likewise.
10063 * config.gcc: Missed commit from r273746
10064 (*-*-darwin*): Don't include CPU t-darwin here.
10065 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10066 an error message if i686-darwin configuration is attempted for
10067 Darwin >= 18.
10068
10069 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10070
10071 PR bootstrap/87030
10072 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10073 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10074 an error message if i686-darwin configuration is attempted for
10075 Darwin >= 18.
10076 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10077 (powerpc-*-darwin*): Use biarch files where needed.
10078 (powerpc64-*-darwin*): Likewise.
10079 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10080 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10081 arch case.
10082 * config/i386/darwin32-biarch.h: New.
10083 * config/i386/darwin64.h: Rename.
10084 * config/i386/darwin64-biarch.h: To this.
10085 * config/i386/t-darwin: Rename.
10086 * config/i386/t-darwin32-biarch: To this.
10087 * config/i386/t-darwin64: Rename.
10088 * config/i386/t-darwin64-biarch: To this.
10089 * config/rs6000/darwin32-biarch.h: New.
10090 * config/rs6000/darwin64.h: Rename.
10091 * config/rs6000/darwin64-biarch.h: To this.
10092 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10093 arch case.
10094 * config/rs6000/t-darwin8: Rename.
10095 * config/rs6000/t-darwin32-biarch: To this.
10096 * config/rs6000/t-darwin64 Rename.
10097 * config/rs6000/t-darwin64-biarch: To this.
10098
10099 2019-07-23 Martin Sebor <msebor@redhat.com>
10100
10101 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10102
10103 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10104
10105 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10106 (rh): New alias for it.
10107
10108 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10109
10110 * gdbhooks.py: Pass replace=True to
10111 gdb.printing.register_pretty_printer.
10112
10113 2019-07-23 Richard Biener <rguenther@suse.de>
10114
10115 PR debug/91231
10116 * lto-streamer-in.c (input_function): Drop inline-entry markers
10117 that ended up with an unknown location block.
10118
10119 2019-07-23 Richard Biener <rguenther@suse.de>
10120
10121 PR tree-optimization/83518
10122 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10123 init from a constant even when partial defs are already recorded.
10124
10125 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10126
10127 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10128 * config/i386/znver1.md: Enable patterns for znver2 and add store
10129 variants which use extra AGU unit.
10130
10131 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10132
10133 * config/i386/i386-options.c (ix86_option_override_internal): Default
10134 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10135 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10136 for ZNVER2.
10137
10138 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10139
10140 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10141 (znver2_costs): Update 256 bit SSE costs and multiplication.
10142
10143 2019-07-23 Jan Beulich <jbeulich@suse.com>
10144
10145 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10146 Require only AVX512F.
10147 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10148 alternative expanding to vpternlog.
10149
10150 2019-07-23 Martin Liska <mliska@suse.cz>
10151
10152 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10153 to -flto in dwarf producer string.
10154
10155 2019-07-23 Richard Biener <rguenther@suse.de>
10156
10157 * tree-cfg.c (label_for_bb): Remove global var.
10158 (main_block_label): Take label_for_bb as argument.
10159 (cleanup_dead_labels_eh): Likewise, adjust.
10160 (cleanup_dead_labels): Adjust.
10161
10162 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10163
10164 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10165 Configurations): Add documentation for __builtin_mtfsf.
10166
10167 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10168
10169 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10170 * config/riscv/riscv.c (riscv_constant_alignment): Use
10171 riscv_align_data_type.
10172 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10173 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10174 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10175 * config/riscv/riscv.opt (malign-data): New.
10176 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10177
10178 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10179
10180 * cgraph.c (dump_graphviz): New function.
10181 * cgraph.h (dump_graphviz): New function.
10182 * symtab.c (dump_graphviz): New function.
10183
10184 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10185
10186 * config/aarch64/aarch64-simd.md
10187 (*aarch64_simd_sra<mode>): New.
10188 * config/aarch64/iterators.md
10189 (SHIFTRT): New iterator.
10190 (sra_op): New attribute.
10191
10192 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10193
10194 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10195 callee-saved regs R4->R10 in an interrupt function that calls another
10196 function.
10197
10198 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10199
10200 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10201 (_mm_blendv_epi8): New.
10202
10203 2019-07-22 Richard Biener <rguenther@suse.de>
10204
10205 PR tree-optimization/91221
10206 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10207 restrict partial-def handling of empty constructors and
10208 memset to refs with known offset.
10209
10210 2019-07-22 Jan Beulich <jbeulich@suse.com>
10211
10212 * config/i386/sse.md (ternlogsuffix): New.
10213 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10214 AVX512F is in use.
10215 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10216
10217 2019-07-22 Martin Liska <mliska@suse.cz>
10218
10219 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10220 comment.
10221 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10222
10223 2019-07-22 Martin Liska <mliska@suse.cz>
10224
10225 * lto-section-in.c (lto_get_section_data):
10226 Use new function get_compression.
10227 * lto-streamer-out.c (produce_lto_section): Use
10228 set_compression to encode compression algorithm.
10229 * lto-streamer.h (struct lto_section): Do not
10230 use bitfields in the format.
10231
10232 2019-07-22 Martin Liska <mliska@suse.cz>
10233
10234 PR driver/91172
10235 * opts-common.c (decode_cmdline_option): Decode
10236 argument of -Werror and check it for a wrong language.
10237 * opts-global.c (complain_wrong_lang): Remove such case.
10238
10239 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10240
10241 * config/arc/arc.c (prepare_move_operands): Always use an
10242 intermediate register when storing a TLS symbols.
10243
10244 2019-07-22 Stafford Horne <shorne@gmail.com>
10245
10246 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10247 force_reg.
10248
10249 2019-07-22 Stafford Horne <shorne@gmail.com>
10250
10251 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10252 and munordered-float validations.
10253 * config/or1k/constraints.md (d): New register constraint.
10254 * config/or1k/predicates.md (fp_comparison_operator): New.
10255 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10256 operands.
10257 (or1k_expand_compare): Normalize unordered comparisons.
10258 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10259 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10260 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10261 * config/or1k/or1k.md (type): Add fpu.
10262 (fpu): New instruction reservation.
10263 (F, f, fr, fi, FI, FOP, fop): New.
10264 (<fop><F:mode>3): New ALU instruction definition.
10265 (float<fi><F:mode>2): New conversion instruction definition.
10266 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10267 (fpcmpcc): New code iterator.
10268 (*sf_fp_insn): New instruction definition.
10269 (cstore<F:mode>4): New expand definition.
10270 (cbranch<F:mode>4): New expand definition.
10271 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10272 munordered-float): New options.
10273 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10274 munordered-float.
10275
10276 2019-07-22 Stafford Horne <shorne@gmail.com>
10277
10278 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10279 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10280 documenation to be more clear.
10281 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10282 more clear.
10283 * config/or1k/or1k.opt (mrori): New option.
10284 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10285 msfimm, mshftimm): Rewrite documentation to be more clear.
10286 * config/or1k/or1k.md (insn_support): Add ror and rori.
10287 (enabled): Add conditions for ror and rori.
10288 (rotrsi3): Replace condition for shftimm with ror and rori.
10289
10290 2019-07-22 Stafford Horne <shorne@gmail.com>
10291
10292 PR target/90363
10293 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10294 (extend<mode>si2): Update predicate.
10295 * config/or1k/predicates.md (volatile_mem_operand): New.
10296 (reg_or_mem_operand): New.
10297
10298 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10299
10300 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10301 * config/rs6000/rs6000-call.c: ... to here.
10302
10303 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10304
10305 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10306 memory.
10307
10308 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10309
10310 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10311
10312 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10313
10314 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10315
10316 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10317
10318 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10319 (any_memory_operand): New predicate.
10320 (reg_or_mem_operand): Use it.
10321
10322 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10323
10324 PR target/91204
10325 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10326
10327 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10328
10329 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10330 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10331
10332 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10333
10334 * tree.def (OMP_LOOP): New tree code.
10335 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10336 (enum omp_clause_bind_kind): New enum.
10337 (struct tree_omp_clause): Add subcode.bind_kind.
10338 * tree.h (OMP_LOOP_CHECK): Rename to ...
10339 (OMP_LOOPING_CHECK): ... this.
10340 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10341 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10342 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10343 (OMP_CLAUSE_BIND_KIND): Define.
10344 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10345 bind clause entries.
10346 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10347 * tree-pretty-print.c (dump_omp_clause): Likewise.
10348 (dump_generic_node): Handle OMP_LOOP.
10349 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10350 (in_omp_construct): New variable.
10351 (is_gimple_stmt): Handle OMP_LOOP.
10352 (gimplify_scan_omp_clauses): For lastprivate don't set
10353 check_non_private if code == OMP_LOOP. For reduction clause
10354 on OMP_LOOP combined with parallel or teams propagate as shared
10355 on the combined construct. Handle OMP_CLAUSE_BIND.
10356 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10357 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10358 for constructs from a loop construct to gimplify_scan_omp_clauses.
10359 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10360 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10361 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10362 to match the implicit ORT_TARGET construct around whole body.
10363 Temporarily clear in_omp_construct when processing body.
10364 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10365 etc. temporarily set in_omp_construct when processing body.
10366 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10367 * omp-low.c (struct omp_context): Add loop_p.
10368 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10369 in that the original var might be private.
10370 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10371 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10372 addition of loop construct.
10373 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10374
10375 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10376 lastprivate non-addressable iterator of a collapse(1) simd.
10377
10378 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10379
10380 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10381 as in rs6000.c.
10382
10383 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10384
10385 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10386 refer to default conditions. Warn for the 'y' spec which is ignored
10387 by current linkers.
10388
10389 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10390
10391 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10392 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10393 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10394 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10395 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10396 init_cumulative_args, rs6000_promote_function_mode,
10397 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10398 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10399 rs6000_function_arg_boundary, rs6000_parm_offset,
10400 rs6000_parm_start, rs6000_arg_size,
10401 rs6000_darwin64_record_arg_advance_flush,
10402 rs6000_darwin64_record_arg_advance_recurse,
10403 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10404 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10405 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10406 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10407 rs6000_finish_function_arg, rs6000_function_arg,
10408 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10409 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10410 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10411 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10412 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10413 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10414 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10415 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10416 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10417 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10418 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10419 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10420 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10421 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10422 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10423 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10424 get_element_number, altivec_expand_vec_set_builtin,
10425 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10426 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10427 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10428 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10429 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10430 rs6000_expand_builtin, rs6000_vector_type,
10431 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10432 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10433 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10434 to rs6000-call.c.
10435 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10436 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10437 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10438 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10439 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10440 init_cumulative_args, rs6000_promote_function_mode,
10441 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10442 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10443 rs6000_function_arg_boundary, rs6000_parm_offset,
10444 rs6000_parm_start, rs6000_arg_size,
10445 rs6000_darwin64_record_arg_advance_flush,
10446 rs6000_darwin64_record_arg_advance_recurse,
10447 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10448 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10449 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10450 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10451 rs6000_finish_function_arg, rs6000_function_arg,
10452 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10453 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10454 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10455 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10456 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10457 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10458 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10459 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10460 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10461 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10462 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10463 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10464 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10465 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10466 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10467 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10468 get_element_number, altivec_expand_vec_set_builtin,
10469 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10470 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10471 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10472 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10473 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10474 rs6000_expand_builtin, rs6000_vector_type,
10475 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10476 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10477 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10478 to here from rs6000.c.
10479 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10480 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10481 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10482 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10483 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10484 rs6000_return_in_memory, rs6000_return_in_msb,
10485 rs6000_pass_by_reference, setup_incoming_varargs,
10486 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10487 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10488 rs6000_function_arg_padding, rs6000_function_arg,
10489 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10490 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10491 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10492 rs6000_passes_long_double, rs6000_passes_vector,
10493 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10494 altivec_builtin_mask_for_load) Add declarations.
10495 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10496 * config/config.gcc: Add new source file rs6000-call.c to garbage
10497 collector and extra_objs.
10498
10499 2019-07-19 Jeff Law <law@redhat.com>
10500
10501 PR tree-optimization/86061
10502 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10503 strncpy. Drop some trivial dead code.
10504 (maybe_trim_memstar_call): Handle strncpy.
10505
10506 2019-07-19 Richard Biener <rguenther@suse.de>
10507
10508 PR tree-optimization/91211
10509 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10510 memset encoding size.
10511
10512 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10513
10514 PR target/91204
10515 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10516
10517 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10518
10519 PR ipa/91194
10520 * ipa-inline.c (recursive_inlining): Fix limits check.
10521
10522 2019-07-19 Richard Biener <rguenther@suse.de>
10523
10524 PR tree-optimization/91200
10525 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10526 no PHI nodes in middle-bb.
10527
10528 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10529
10530 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10531 to +sve-bitperm.
10532 * config/aarch64/aarch64-option-extensions.def: Likewise.
10533
10534 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10535
10536 PR middle-end/91190
10537 * function.c (insert_temp_slot_address): Store into the hash table
10538 a copy of address to avoid RTL sharing issues.
10539
10540 2019-07-19 Richard Biener <rguenther@suse.de>
10541
10542 PR tree-optimization/91207
10543 Revert
10544 2019-07-17 Richard Biener <rguenther@suse.de>
10545
10546 PR tree-optimization/91178
10547 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10548 loads with a gap larger than the vector size always use
10549 VMAT_STRIDED_SLP.
10550 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10551 avoid loading vectors that are only contained in the gap
10552 and thus are not needed.
10553
10554 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10555
10556 * config/i386/i386.md (*addqi_2_slp): Remove.
10557 (*<code>qi_2_slp): Ditto.
10558
10559 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10560
10561 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10562 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10563 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10564 Rename function from rs6000_prefixed_address.
10565 * config/rs6000/aix.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 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10571 TARGET_HAS_TOC.
10572 (TARGET_TOC): Likewise.
10573 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10574 rs6000.h.
10575 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10576 TARGET_HAS_TOC.
10577 (TARGET_TOC): Likewise.
10578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10579 check to require -mcmodel=medium for pc-relative addressing.
10580 (create_TOC_reference): Add assertion for TARGET_TOC.
10581 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10582 TARGET_NO_TOC.
10583 (rs6000_emit_move): Likewise.
10584 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10585 to 'TOC_alias_set'.
10586 (get_TOC_alias_set): Likewise.
10587 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10588 TARGET_NO_TOC.
10589 (rs6000_can_eliminate): Likewise.
10590 (rs6000_prefixed_address_mode_p): Rename function from
10591 rs6000_prefixed_address.
10592 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10593 TARGET_HAS_TOC and not pc-relative.
10594 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10595 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10596 TARGET_HAS_TOC.
10597 (TARGET_TOC): Likewise.
10598 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10599 rs6000.h.
10600
10601 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10602
10603 PR target/91188
10604 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10605 for operand 0. Do not use (match_dup) to match operand 1 with
10606 operand 0. Add check in insn constraint that either input operand
10607 matches operand 0. Use SWI12 mode iterator to also handle
10608 HImode operands.
10609 (*and<mode>_1_slp): Ditto.
10610 (*<code>qi_1_slp): Ditto.
10611 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10612 Do not use (match_dup) to match operand 1 with operand 0. Add
10613 check in insn constraint that operand 1 matches operand 0.
10614 Use SWI12 mode iterator to also handle HImode operands.
10615 (*ashl<mode>3_1_slp): Ditto.
10616 (*<shift_insn><mode>3_1_slp): Ditto.
10617 (*<rotate_insn><mode>3_1_slp): Ditto.
10618
10619 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10620
10621 * config/arm/arm-builtins.c
10622 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10623 (arm_expand_unop_builtin): Likewise.
10624 * config/arm/crypto.md
10625 (crypto_sha1h): Convert from define_insn to define_expand.
10626 (crypto_<crypto_pattern>): Likewise.
10627 (crypto_sha1h_lb): New define_insn.
10628 (crypto_<crypto_pattern>_lb): Likewise.
10629
10630 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10631
10632 PR target/90317
10633 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10634 (vsha1cq_u32): Likewise.
10635 (vsha1pq_u32): Likewise.
10636 (vsha1mq_u32): Likewise.
10637 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10638 vec select.
10639 (crypto_sha1c): Correct vec select.
10640 (crypto_sha1m): Likewise.
10641 (crypto_sha1p): Likewise.
10642
10643 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10644
10645 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10646 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10647 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10648 (subdi_zesidi_zesidi): Likewise.
10649 (negdi2_compare, negdi2_insn): Likewise.
10650 (negdi_extensidi): Likewise.
10651 (negdi_zero_extendsidi): Likewise.
10652 (arm_cmpdi_insn): Likewise.
10653 (subsi3_carryin): Use arm_borrow_operation.
10654 (subsi3_carryin_const): Likewise.
10655 (subsi3_carryin_const0): Likewise.
10656 (subsi3_carryin_compare): Likewise.
10657 (subsi3_carryin_compare_const): Likewise.
10658 (subsi3_carryin_compare_const0): Likewise.
10659 (subsi3_carryin_shift): Likewise.
10660 (rsbsi3_carryin_shift): Likewise.
10661 (negsi2_carryin_compare): Likewise.
10662
10663 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10664
10665 PR tree-optimization/91137
10666 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10667 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10668 Init, use and fini the above new field.
10669 (determine_base_object_1): New function.
10670 (determine_base_object): Reimplement using walk_tree.
10671
10672 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10675 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10676 CLEANUP_FORCE_FAST_DCE is set.
10677 * ifcvt.c (rest_of_handle_if_conversion): Pass
10678 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10679 if-conversion succeeded.
10680
10681 2019-07-18 Richard Biener <rguenther@suse.de>
10682
10683 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10684 branches to make code less indented.
10685
10686 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10687
10688 PR middle-end/81824
10689 * attribs.c (decls_mismatched_attributes): Simplify the logic
10690 that avoids duplicates and false positives.
10691
10692 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10693
10694 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10695 data into data section when generating PIC code.
10696 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10697 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10698 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10699 return 2 for SOM and 0 for other targets.
10700
10701 2019-07-17 Jeff Law <law@redhat.com>
10702
10703 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10704 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10705 avoid unexpected switch statement fallthru.
10706
10707 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10708
10709 * config/i386/i386.md (*add<dwi>3_doubleword):
10710 Remove redundant constraints.
10711 (*add<mode>_1): Ditto.
10712 (*addhi_1): Ditto.
10713 (*addqi_1): Ditto.
10714 (*addqi_1_slp): Ditto.
10715 (*add<mode>_2): Ditto.
10716 (*addv<mode>4): Ditto.
10717 (*sub<dwi>3_doubleword): Ditto.
10718 (*sub<mode>_1): Ditto.
10719 (*subqi_1_slp): Ditto.
10720 (*sub<mode>_2): Ditto.
10721 (*subv<mode>4): Ditto.
10722 (*sub<mode>_3): Ditto.
10723 (@add<mode>3_carry): Ditto.
10724 (@sub<mode>3_carry): Ditto.
10725 (*add<mode>3_cc_overflow_1): Ditto.
10726 (*add<mode>3_zext_cc_overflow_2): Ditto.
10727 (*anddi_1): Ditto.
10728 (*and<mode>_1): Ditto.
10729 (*andqi_1): Ditto.
10730 (*andqi_1_slp): Ditto.
10731 (*anddi_2): Ditto.
10732 (*andqi_2_maybe_si): Ditto.
10733 (*and<mode>_2): Ditto.
10734 (*andqi_2_slp): Ditto.
10735 (*<code><mode>_1): Ditto.
10736 (*<code>qi_1): Ditto.
10737 (*<code>qi_1_slp): Ditto.
10738 (*<code><mode>_2): Ditto.
10739 (*<code>qi_2_slp): Ditto.
10740
10741 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10742
10743 * alias.c (record_component_aliases): Do not simplify pointed-to
10744 types of ODR types.
10745
10746 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10747
10748 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10749 partial reg stall on alternative 2.
10750
10751 2019-07-17 Richard Biener <rguenther@suse.de>
10752
10753 PR tree-optimization/91178
10754 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10755 lower SSA names to avoid quadratic behavior in the common case.
10756 * tree-data-ref.c (split_constant_offset): Add limit argument
10757 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10758 (split_constant_offset_1): Add limit argument and use it to
10759 limit SSA def walking. Optimize the common plus/minus case.
10760
10761 2019-07-17 Richard Biener <rguenther@suse.de>
10762
10763 PR tree-optimization/91178
10764 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10765 loads with a gap larger than the vector size always use
10766 VMAT_STRIDED_SLP.
10767 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10768 avoid loading vectors that are only contained in the gap
10769 and thus are not needed.
10770
10771 2019-07-17 Richard Biener <rguenther@suse.de>
10772
10773 PR tree-optimization/91180
10774 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10775 computation for memset partial defs.
10776
10777 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10778
10779 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10780 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10781 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10782 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10783 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10784 * omp-grid.c (grid_process_grid_body,
10785 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10786 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10787 == GF_OMP_FOR_KIND_SIMD.
10788 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10789 check_omp_nesting_restrictions, scan_omp_1_stmt,
10790 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10791 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10792 omp_find_scan): Likewise.
10793 * omp-expand.c (expand_omp_for): Likewise.
10794 * omp-general.c (omp_extract_for_data): Likewise.
10795
10796 PR tree-optimization/91157
10797 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10798 a vector boolean with scalar mode.
10799 (expand_vector_condition): Handle first operand being a vector boolean
10800 with scalar mode.
10801 (expand_vector_operations_1): For comparisons, don't bail out early
10802 if the return type is vector boolean with scalar mode, but comparison
10803 operand type is not.
10804
10805 2019-07-17 Richard Biener <rguenther@suse.de>
10806
10807 PR tree-optimization/91181
10808 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10809 IFN_LOADs as calls.
10810
10811 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10812
10813 * config/i386/i386.md (*testdi_1): Match CCZmode for
10814 constants that might have the SImode sign bit set.
10815 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10816 Use correct constraints for pentium pairing.
10817 (*test<mode>_1): Ditto.
10818
10819 2019-07-16 Jeff Law <law@redhat.com>
10820
10821 PR rtl-optimization/91173
10822 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10823 SSA_NAME with a constant value, fold its value into the offset
10824 and clear the base before calling gen_addr_rtx.
10825
10826 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10827
10828 PR rtl-optimization/91164
10829 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10830 invalidate dominance info.
10831
10832 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10833
10834 * read-md.h (md_reader::record_potential_iterator_use): Add a
10835 file_location parameter.
10836 * read-rtl.c (attribute_use::loc): New field.
10837 (map_attr_string): Take a file_location parameter. Report cases
10838 in which attributes map to multiple distinct values.
10839 (apply_attribute_uses): Update call accordingly.
10840 (md_reader::handle_overloaded_name): Likewise.
10841 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10842 nonnull strings.
10843 (record_attribute_use): Take a file_location parameter.
10844 Initialize attribute_use::loc.
10845 (md_reader::record_potential_iterator_use): Take a file_location
10846 parameter. Update call to record_attribute_use.
10847 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10848 (rtx_reader::read_rtx_code): Likewise.
10849 (rtx_reader::read_rtx_operand): Likewise. Record a location
10850 for implicitly-expanded empty strings.
10851
10852 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10853
10854 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10855 Use file_location instead of separate fields.
10856 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10857 separate filename and line number.
10858 * read-md.c (ptr_loc): As above.
10859 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10860 (md_reader::fprint_md_ptr_loc): Likewise.
10861 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10862 instead of a separate filename and line number.
10863 (md_reader::read_string): Update call accordingly.
10864
10865 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10866
10867 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10868 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10869 leaving the choice between SFDF and P implicit.
10870 (*mov<mode>_update2): Likewise.
10871 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10872 rather than leaving the choice betweem IBM128 and GPR implicit.
10873 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10874 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10875 QHSI implicit.
10876 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10877 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10878 * config/rs6000/vsx.md
10879 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10880 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10881 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10882 and VSX_EXTRACT_I implicit.
10883
10884 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10885
10886 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10887 Explicitly use <MOVEP1:MODE> for the mode attribute.
10888
10889 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10890
10891 PR bootstrap/91176
10892 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10893
10894 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10895
10896 PR target/91050
10897 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10898 .machine directive.
10899
10900 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10901
10902 * config/i386/i386.md (@test<mode>_ccno_1):
10903 Rename from test<mode>_ccno_1.
10904 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10905 (*testqi_1_maybe_si): Remove modrm attribute.
10906 (*test<mode>_1): Ditto.
10907 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10908 gen_test_ccno_1 and gen_extend_insn.
10909
10910 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10911
10912 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10913 to 0.
10914
10915 2019-07-15 Richard Biener <rguenther@suse.de>
10916
10917 PR middle-end/91162
10918 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10919 node make sure to replace all uses with something valid.
10920
10921 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10922
10923 PR tree-optimization/88497
10924 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10925 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10926 function undistribute_bitref_for_vector.
10927 (undistribute_bitref_for_vector): New function.
10928 (cleanup_vinfo_map): Likewise.
10929 (sort_by_mach_mode): Likewise.
10930
10931 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10932
10933 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10934 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10935 and testdi_ccno_1 using SWI48 mode attribute.
10936 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10937 x86_64_szext_general_operand.
10938 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10939 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10940 instead of genera_operand mode attribute.
10941
10942 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10943
10944 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10945 fopen and fclose to their respective types.
10946 (DotFn.invoke): Ditto.
10947
10948 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10949
10950 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10951 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10952 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10953 (array_index_predicate): Remove.
10954 (analyze_function_body): Account cost for variable ofsetted array
10955 indexing.
10956 (estimate_node_size_and_time): Do not compute array index hint.
10957 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10958 (inline_read_section): Do not read array index hint.
10959 (ipa_fn_summary_write): Do not write array index hint.
10960 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10961 * ipa-cp.c (hint_time_bonus): Remove.
10962 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10963 (ipa_fnsummary): Remove array_index.
10964 * ipa-inline.c (want_inline_small_function_p): Do not use
10965 array_index.
10966 (edge_badness): Likewise.
10967 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10968
10969 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10970
10971 PR target/91148
10972 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10973 superfluous "builtin function" phrasing.
10974
10975 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10976
10977 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10978 Break out from ...
10979 (aliasing_component_refs_walk): Break out from ...
10980 (aliasing_component_refs_p): ... here.
10981
10982 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10983
10984 PR target/91148
10985 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10986 "builtin function" phrasing.
10987
10988 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10989
10990 PR target/90723
10991 * recog.h (temporary_volatile_ok): New class.
10992 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10993 volatile_ok temporarily to true using temporary_volatile_ok.
10994 * expr.c (emit_block_move_via_cpymem): Likewise.
10995 * optabs.c (maybe_legitimize_operand): Likewise.
10996
10997 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10998
10999 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11000 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11001 uses inside of order(concurrent) constructs.
11002 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11003 OMP_CLAUSE_ORDER is seen.
11004 * omp-low.c (struct omp_context): Add order_concurrent member.
11005 (scan_sharing_clauses): Set ctx->order_concurrent if
11006 OMP_CLAUSE_ORDER is seen.
11007 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11008 of simd order(concurrent). Diagnose constructs not allowed inside of
11009 for order(concurrent).
11010 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11011 complaining about static double setjmp (double); or class static
11012 methods or non-global namespace setjmps.
11013 (omp_runtime_api_call): New function.
11014 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11015 order(concurrent) loops.
11016
11017 2019-07-12 Martin Sebor <msebor@redhat.com>
11018
11019 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11020 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11021 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11022 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11023
11024 2019-07-12 Jan Hubicka <jh@suse.cz>
11025
11026 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11027 (indirect_refs_may_alias_p): ... here.
11028 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11029 mem refs in the access paths.
11030
11031 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11032
11033 PR tree-optimization/89430
11034 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11035 store elimination for local variable without address escape.
11036
11037 2019-07-12 Jeff Law <law@redhat.com>
11038
11039 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11040 for the ".far" section.
11041
11042 2019-07-12 Richard Biener <rguenther@suse.de>
11043
11044 PR tree-optimization/91145
11045 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11046 chain check.
11047
11048 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11049
11050 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11051 rather than this_state as the lowering context for the ELSE
11052 seq in a GIMPLE_EH_ELSE.
11053
11054 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11055
11056 * vector-builder.h (vector_builder::elt): Allow already-supplied
11057 elements to be read back before building is complete.
11058
11059 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11060
11061 PR rtl-optimization/91136
11062 * df-core.c (ACCESSING REFS): Fix typos in comment.
11063 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11064 the beginning of the block to the initial set of live registers.
11065
11066 2019-07-12 Richard Biener <rguenther@suse.de>
11067
11068 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11069 * fold-const.c (get_array_ctor_element_at_index): Add
11070 ctor_idx output parameter informing the caller where in
11071 the constructor the element was (not) found. Add early exit
11072 for when the ctor is sorted.
11073 * gimple-fold.c (fold_array_ctor_reference): Support constant
11074 folding across multiple array elements.
11075
11076 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11077
11078 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11079 doesn't have location, set the current location to the function's end.
11080
11081 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11082
11083 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11084 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11085 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11086 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11087 * config/aarch64/aarch64-simd.md
11088 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11089 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11090 * config/aarch64/aarch64-sve.md
11091 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11092 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11093
11094 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11095
11096 * doc/md.texi: Document that @ patterns can have different
11097 numbers of operands.
11098 * genemit.c (handle_overloaded_gen): Handle this case.
11099 * genopinit.c (handle_overloaded_gen): Likewise.
11100 * gensupport.c (replace_operands_with_dups): Iterate over
11101 the new rtx's format rather than the old one's.
11102
11103 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11104
11105 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11106 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11107 order clause entries.
11108 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11109 * tree-pretty-print.c (dump_omp_clause): Likewise.
11110 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11111 Likewise.
11112 * omp-low.c (scan_sharing_clauses): Likewise.
11113 * tree-nested.c (convert_nonlocal_omp_clauses,
11114 convert_local_omp_clauses): Likewise.
11115
11116 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11117
11118 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11119 fallthrough target of current basic block isn't the placed
11120 right next.
11121
11122 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11123
11124 PR target/90980
11125 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11126 (_mm512_storeu_epi64): Likewise.
11127 (_mm512_loadu_epi32): Likewise.
11128 (_mm512_storeu_epi32): Likewise.
11129 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11130 (_mm_storeu_epi64): Likewise.
11131 (_mm256_storeu_epi32): Likewise.
11132 (_mm_storeu_epi32): Likewise.
11133
11134 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11135
11136 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11137
11138 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11139
11140 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11141 Handle Modula-2.
11142
11143 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11144
11145 PR target/91124
11146 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11147 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11148 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11149 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11150 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11151 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11152 define_insns.
11153 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11154 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11155 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11156 define_insns.
11157 (sse2_cvttpd2dq<mask_name>): Change into ...
11158 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11159 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11160 (*sse2_cvtpd2dq<mask_name>): Change into ...
11161 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11162 Add "C" constraint to const0_operand.
11163 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11164 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11165 changes.
11166
11167 PR target/91124
11168 * config/i386/i386-builtin-types.def
11169 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11170 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11171 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11172 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11173 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11174 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11175 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11176 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11177 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11178 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11179 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11180 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11181 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11182 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11183 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11184 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11185 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11186 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11187 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11188 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11189 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11190 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11191 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11192 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11193 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11194 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11195 __builtin_ia32_vpdpbusd_v4si_maskz,
11196 __builtin_ia32_vpdpbusds_v16si_mask,
11197 __builtin_ia32_vpdpbusds_v16si_maskz,
11198 __builtin_ia32_vpdpbusds_v8si_mask,
11199 __builtin_ia32_vpdpbusds_v8si_maskz,
11200 __builtin_ia32_vpdpbusds_v4si_mask,
11201 __builtin_ia32_vpdpbusds_v4si_maskz,
11202 __builtin_ia32_vpdpwssd_v16si_mask,
11203 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11204 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11205 __builtin_ia32_vpdpwssd_v4si_maskz,
11206 __builtin_ia32_vpdpwssds_v16si_mask,
11207 __builtin_ia32_vpdpwssds_v16si_maskz,
11208 __builtin_ia32_vpdpwssds_v8si_mask,
11209 __builtin_ia32_vpdpwssds_v8si_maskz,
11210 __builtin_ia32_vpdpwssds_v4si_mask,
11211 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11212 suffixed types rather than *_INT.
11213 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11214 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11215 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11216 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11217 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11218 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11219
11220 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11221
11222 * tree-vrp.c (intersect_ranges): If we know the intersection is
11223 empty, there is no need to conservatively add anything else to
11224 the set.
11225
11226 2019-07-11 Richard Biener <rguenther@suse.de>
11227
11228 PR middle-end/91131
11229 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11230 when the object is volatile and we have not cleared it even though
11231 there are no nonzero elements.
11232
11233 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11234
11235 * config/rs6000/predicates.md (cint34_operand): Update
11236 SIGNED_34BIT_OFFSET_P call.
11237 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11238 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11239 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11240 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11241 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11242 argument.
11243 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11244 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11245 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11246 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11247 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11248
11249 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11250
11251 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11252 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11253 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11254 (DEF_MIN_OSX_VERSION): New.
11255
11256 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11257
11258 * fold-const.c (fold_relational_const): Fix folding of
11259 vector-to-scalar NE_EXPRs.
11260 (test_vector_folding): Add more tests.
11261
11262 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11263
11264 PR target/91060
11265 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11266 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11267 (vec_setv2di_internal): Reexpress as...
11268 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11269 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11270 rather than gen_neon_vset_lane<mode>.
11271
11272 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11273
11274 PR target/91102
11275 * lra-constraints.c (process_alt_operands): Don't match user
11276 defined regs only if they are early clobbers.
11277
11278 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11279
11280 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11281
11282 2019-07-10 Richard Biener <rguenther@suse.de>
11283
11284 PR tree-optimization/91126
11285 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11286 native encoding offset for BYTES_BIG_ENDIAN.
11287 (vn_reference_lookup_3): Likewise.
11288
11289 2019-07-10 Richard Biener <rguenther@suse.de>
11290
11291 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11292 LHS whenever possible.
11293
11294 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11295
11296 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11297 from ...; work also on duplicated types.
11298 (nonoverlapping_component_refs_since_match): ... here
11299 (ncr_type_uid): Break out from ...
11300 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11301 available.
11302 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11303 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11304
11305 2019-07-09 Martin Sebor <msebor@redhat.com>
11306
11307 PR tree-optimization/90989
11308 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11309 optimization to just single character stores.
11310
11311 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11312
11313 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11314 Swap operands only once.
11315
11316 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11317
11318 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11319 for both call instructions.
11320
11321 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11322
11323 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11324 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11325
11326 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11327
11328 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11329 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11330 function from rs6000-logue.c back to rs6000.c.
11331 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11332
11333 2019-07-09 Martin Sebor <msebor@redhat.com>
11334
11335 PR c++/61339
11336 * auto-profile.c: Change class-key of PODs to struct and others
11337 to class.
11338 * basic-block.h: Same.
11339 * bitmap.c (bitmap_alloc): Same.
11340 * bitmap.h: Same.
11341 * builtins.c (expand_builtin_prefetch): Same.
11342 (expand_builtin_interclass_mathfn): Same.
11343 (expand_builtin_strlen): Same.
11344 (expand_builtin_mempcpy_args): Same.
11345 (expand_cmpstr): Same.
11346 (expand_builtin___clear_cache): Same.
11347 (expand_ifn_atomic_bit_test_and): Same.
11348 (expand_builtin_thread_pointer): Same.
11349 (expand_builtin_set_thread_pointer): Same.
11350 * caller-save.c (setup_save_areas): Same.
11351 (replace_reg_with_saved_mem): Same.
11352 (insert_restore): Same.
11353 (insert_save): Same.
11354 (add_used_regs): Same.
11355 * cfg.c (get_bb_copy): Same.
11356 (set_loop_copy): Same.
11357 * cfg.h: Same.
11358 * cfganal.h: Same.
11359 * cfgexpand.c (alloc_stack_frame_space): Same.
11360 (add_stack_var): Same.
11361 (add_stack_var_conflict): Same.
11362 (add_scope_conflicts_1): Same.
11363 (update_alias_info_with_stack_vars): Same.
11364 (expand_used_vars): Same.
11365 * cfghooks.c (redirect_edge_and_branch_force): Same.
11366 (delete_basic_block): Same.
11367 (split_edge): Same.
11368 (make_forwarder_block): Same.
11369 (force_nonfallthru): Same.
11370 (duplicate_block): Same.
11371 (lv_flush_pending_stmts): Same.
11372 * cfghooks.h: Same.
11373 * cfgloop.c (flow_loops_cfg_dump): Same.
11374 (flow_loop_nested_p): Same.
11375 (superloop_at_depth): Same.
11376 (get_loop_latch_edges): Same.
11377 (flow_loop_dump): Same.
11378 (flow_loops_dump): Same.
11379 (flow_loops_free): Same.
11380 (flow_loop_nodes_find): Same.
11381 (establish_preds): Same.
11382 (flow_loop_tree_node_add): Same.
11383 (flow_loop_tree_node_remove): Same.
11384 (flow_loops_find): Same.
11385 (find_subloop_latch_edge_by_profile): Same.
11386 (find_subloop_latch_edge_by_ivs): Same.
11387 (mfb_redirect_edges_in_set): Same.
11388 (form_subloop): Same.
11389 (merge_latch_edges): Same.
11390 (disambiguate_multiple_latches): Same.
11391 (disambiguate_loops_with_multiple_latches): Same.
11392 (flow_bb_inside_loop_p): Same.
11393 (glb_enum_p): Same.
11394 (get_loop_body_with_size): Same.
11395 (get_loop_body): Same.
11396 (fill_sons_in_loop): Same.
11397 (get_loop_body_in_dom_order): Same.
11398 (get_loop_body_in_custom_order): Same.
11399 (release_recorded_exits): Same.
11400 (get_loop_exit_edges): Same.
11401 (num_loop_branches): Same.
11402 (remove_bb_from_loops): Same.
11403 (find_common_loop): Same.
11404 (delete_loop): Same.
11405 (cancel_loop): Same.
11406 (verify_loop_structure): Same.
11407 (loop_preheader_edge): Same.
11408 (loop_exit_edge_p): Same.
11409 (single_exit): Same.
11410 (loop_exits_to_bb_p): Same.
11411 (loop_exits_from_bb_p): Same.
11412 (get_loop_location): Same.
11413 (record_niter_bound): Same.
11414 (get_estimated_loop_iterations_int): Same.
11415 (max_stmt_executions_int): Same.
11416 (likely_max_stmt_executions_int): Same.
11417 (get_estimated_loop_iterations): Same.
11418 (get_max_loop_iterations): Same.
11419 (get_max_loop_iterations_int): Same.
11420 (get_likely_max_loop_iterations): Same.
11421 * cfgloop.h (simple_loop_desc): Same.
11422 (get_loop): Same.
11423 (loop_depth): Same.
11424 (loop_outer): Same.
11425 (loop_iterator::next): Same.
11426 (loop_outermost): Same.
11427 * cfgloopanal.c (mark_irreducible_loops): Same.
11428 (num_loop_insns): Same.
11429 (average_num_loop_insns): Same.
11430 (expected_loop_iterations_unbounded): Same.
11431 (expected_loop_iterations): Same.
11432 (mark_loop_exit_edges): Same.
11433 (single_likely_exit): Same.
11434 * cfgloopmanip.c (fix_bb_placement): Same.
11435 (fix_bb_placements): Same.
11436 (remove_path): Same.
11437 (place_new_loop): Same.
11438 (add_loop): Same.
11439 (scale_loop_frequencies): Same.
11440 (scale_loop_profile): Same.
11441 (create_empty_if_region_on_edge): Same.
11442 (create_empty_loop_on_edge): Same.
11443 (loopify): Same.
11444 (unloop): Same.
11445 (fix_loop_placements): Same.
11446 (copy_loop_info): Same.
11447 (duplicate_loop): Same.
11448 (duplicate_subloops): Same.
11449 (loop_redirect_edge): Same.
11450 (can_duplicate_loop_p): Same.
11451 (duplicate_loop_to_header_edge): Same.
11452 (mfb_keep_just): Same.
11453 (has_preds_from_loop): Same.
11454 (create_preheader): Same.
11455 (create_preheaders): Same.
11456 (lv_adjust_loop_entry_edge): Same.
11457 (loop_version): Same.
11458 * cfgloopmanip.h: Same.
11459 * cgraph.h: Same.
11460 * cgraphbuild.c: Same.
11461 * combine.c (make_extraction): Same.
11462 * config/i386/i386-features.c: Same.
11463 * config/i386/i386-features.h: Same.
11464 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11465 (ix86_emit_outlined_ms2sysv_restore): Same.
11466 (ix86_noce_conversion_profitable_p): Same.
11467 (ix86_init_cost): Same.
11468 (ix86_simd_clone_usable): Same.
11469 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11470 Wstruct-not-pod.
11471 * coretypes.h: Same.
11472 * data-streamer-in.c (string_for_index): Change class-key of PODs
11473 to struct and others to class.
11474 (streamer_read_indexed_string): Same.
11475 (streamer_read_string): Same.
11476 (bp_unpack_indexed_string): Same.
11477 (bp_unpack_string): Same.
11478 (streamer_read_uhwi): Same.
11479 (streamer_read_hwi): Same.
11480 (streamer_read_gcov_count): Same.
11481 (streamer_read_wide_int): Same.
11482 * data-streamer.h (streamer_write_bitpack): Same.
11483 (bp_unpack_value): Same.
11484 (streamer_write_char_stream): Same.
11485 (streamer_write_hwi_in_range): Same.
11486 (streamer_write_record_start): Same.
11487 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11488 (add_cross_iteration_register_deps): Same.
11489 (build_intra_loop_deps): Same.
11490 * df-core.c (df_analyze): Same.
11491 (loop_post_order_compute): Same.
11492 (loop_inverted_post_order_compute): Same.
11493 * df-problems.c (df_rd_alloc): Same.
11494 (df_rd_simulate_one_insn): Same.
11495 (df_rd_local_compute): Same.
11496 (df_rd_init_solution): Same.
11497 (df_rd_confluence_n): Same.
11498 (df_rd_transfer_function): Same.
11499 (df_rd_free): Same.
11500 (df_rd_dump_defs_set): Same.
11501 (df_rd_top_dump): Same.
11502 (df_lr_alloc): Same.
11503 (df_lr_reset): Same.
11504 (df_lr_local_compute): Same.
11505 (df_lr_init): Same.
11506 (df_lr_confluence_n): Same.
11507 (df_lr_free): Same.
11508 (df_lr_top_dump): Same.
11509 (df_lr_verify_transfer_functions): Same.
11510 (df_live_alloc): Same.
11511 (df_live_reset): Same.
11512 (df_live_init): Same.
11513 (df_live_confluence_n): Same.
11514 (df_live_finalize): Same.
11515 (df_live_free): Same.
11516 (df_live_top_dump): Same.
11517 (df_live_verify_transfer_functions): Same.
11518 (df_mir_alloc): Same.
11519 (df_mir_reset): Same.
11520 (df_mir_init): Same.
11521 (df_mir_confluence_n): Same.
11522 (df_mir_free): Same.
11523 (df_mir_top_dump): Same.
11524 (df_word_lr_alloc): Same.
11525 (df_word_lr_reset): Same.
11526 (df_word_lr_init): Same.
11527 (df_word_lr_confluence_n): Same.
11528 (df_word_lr_free): Same.
11529 (df_word_lr_top_dump): Same.
11530 (df_md_alloc): Same.
11531 (df_md_simulate_one_insn): Same.
11532 (df_md_reset): Same.
11533 (df_md_init): Same.
11534 (df_md_free): Same.
11535 (df_md_top_dump): Same.
11536 * df-scan.c (df_insn_delete): Same.
11537 (df_insn_rescan): Same.
11538 (df_notes_rescan): Same.
11539 (df_sort_and_compress_mws): Same.
11540 (df_install_mws): Same.
11541 (df_refs_add_to_chains): Same.
11542 (df_ref_create_structure): Same.
11543 (df_ref_record): Same.
11544 (df_def_record_1): Same.
11545 (df_find_hard_reg_defs): Same.
11546 (df_uses_record): Same.
11547 (df_get_conditional_uses): Same.
11548 (df_get_call_refs): Same.
11549 (df_recompute_luids): Same.
11550 (df_get_entry_block_def_set): Same.
11551 (df_entry_block_defs_collect): Same.
11552 (df_get_exit_block_use_set): Same.
11553 (df_exit_block_uses_collect): Same.
11554 (df_mws_verify): Same.
11555 (df_bb_verify): Same.
11556 * df.h (df_scan_get_bb_info): Same.
11557 * doc/tm.texi: Same.
11558 * dse.c (record_store): Same.
11559 * dumpfile.h: Same.
11560 * emit-rtl.c (const_fixed_hasher::equal): Same.
11561 (set_mem_attributes_minus_bitpos): Same.
11562 (change_address): Same.
11563 (adjust_address_1): Same.
11564 (offset_address): Same.
11565 * emit-rtl.h: Same.
11566 * except.c (dw2_build_landing_pads): Same.
11567 (sjlj_emit_dispatch_table): Same.
11568 * explow.c (allocate_dynamic_stack_space): Same.
11569 (emit_stack_probe): Same.
11570 (probe_stack_range): Same.
11571 * expmed.c (store_bit_field_using_insv): Same.
11572 (store_bit_field_1): Same.
11573 (store_integral_bit_field): Same.
11574 (extract_bit_field_using_extv): Same.
11575 (extract_bit_field_1): Same.
11576 (emit_cstore): Same.
11577 * expr.c (emit_block_move_via_cpymem): Same.
11578 (expand_cmpstrn_or_cmpmem): Same.
11579 (set_storage_via_setmem): Same.
11580 (emit_single_push_insn_1): Same.
11581 (expand_assignment): Same.
11582 (store_constructor): Same.
11583 (expand_expr_real_2): Same.
11584 (expand_expr_real_1): Same.
11585 (try_casesi): Same.
11586 * flags.h: Same.
11587 * function.c (try_fit_stack_local): Same.
11588 (assign_stack_local_1): Same.
11589 (assign_stack_local): Same.
11590 (cut_slot_from_list): Same.
11591 (insert_slot_to_list): Same.
11592 (max_slot_level): Same.
11593 (move_slot_to_level): Same.
11594 (temp_address_hasher::equal): Same.
11595 (remove_unused_temp_slot_addresses): Same.
11596 (assign_temp): Same.
11597 (combine_temp_slots): Same.
11598 (update_temp_slot_address): Same.
11599 (preserve_temp_slots): Same.
11600 * function.h: Same.
11601 * fwprop.c: Same.
11602 * gcc-rich-location.h: Same.
11603 * gcov.c: Same.
11604 * genattrtab.c (check_attr_test): Same.
11605 (check_attr_value): Same.
11606 (convert_set_attr_alternative): Same.
11607 (convert_set_attr): Same.
11608 (check_defs): Same.
11609 (copy_boolean): Same.
11610 (get_attr_value): Same.
11611 (expand_delays): Same.
11612 (make_length_attrs): Same.
11613 (min_fn): Same.
11614 (make_alternative_compare): Same.
11615 (simplify_test_exp): Same.
11616 (tests_attr_p): Same.
11617 (get_attr_order): Same.
11618 (clear_struct_flag): Same.
11619 (gen_attr): Same.
11620 (compares_alternatives_p): Same.
11621 (gen_insn): Same.
11622 (gen_delay): Same.
11623 (find_attrs_to_cache): Same.
11624 (write_test_expr): Same.
11625 (walk_attr_value): Same.
11626 (write_attr_get): Same.
11627 (eliminate_known_true): Same.
11628 (write_insn_cases): Same.
11629 (write_attr_case): Same.
11630 (write_attr_valueq): Same.
11631 (write_attr_value): Same.
11632 (write_dummy_eligible_delay): Same.
11633 (next_comma_elt): Same.
11634 (find_attr): Same.
11635 (make_internal_attr): Same.
11636 (copy_rtx_unchanging): Same.
11637 (gen_insn_reserv): Same.
11638 (check_tune_attr): Same.
11639 (make_automaton_attrs): Same.
11640 (handle_arg): Same.
11641 * genextract.c (gen_insn): Same.
11642 (VEC_char_to_string): Same.
11643 * genmatch.c (print_operand): Same.
11644 (lower): Same.
11645 (parser::parse_operation): Same.
11646 (parser::parse_capture): Same.
11647 (parser::parse_c_expr): Same.
11648 (parser::parse_simplify): Same.
11649 (main): Same.
11650 * genoutput.c (output_operand_data): Same.
11651 (output_get_insn_name): Same.
11652 (compare_operands): Same.
11653 (place_operands): Same.
11654 (process_template): Same.
11655 (validate_insn_alternatives): Same.
11656 (validate_insn_operands): Same.
11657 (gen_expand): Same.
11658 (note_constraint): Same.
11659 * genpreds.c (write_one_predicate_function): Same.
11660 (add_constraint): Same.
11661 (process_define_register_constraint): Same.
11662 (write_lookup_constraint_1): Same.
11663 (write_lookup_constraint_array): Same.
11664 (write_insn_constraint_len): Same.
11665 (write_reg_class_for_constraint_1): Same.
11666 (write_constraint_satisfied_p_array): Same.
11667 * genrecog.c (optimize_subroutine_group): Same.
11668 * gensupport.c (process_define_predicate): Same.
11669 (queue_pattern): Same.
11670 (remove_from_queue): Same.
11671 (process_rtx): Same.
11672 (is_predicable): Same.
11673 (change_subst_attribute): Same.
11674 (subst_pattern_match): Same.
11675 (alter_constraints): Same.
11676 (alter_attrs_for_insn): Same.
11677 (shift_output_template): Same.
11678 (alter_output_for_subst_insn): Same.
11679 (process_one_cond_exec): Same.
11680 (subst_dup): Same.
11681 (process_define_cond_exec): Same.
11682 (mnemonic_htab_callback): Same.
11683 (gen_mnemonic_attr): Same.
11684 (read_md_rtx): Same.
11685 * ggc-page.c: Same.
11686 * gimple-loop-interchange.cc (dump_reduction): Same.
11687 (dump_induction): Same.
11688 (loop_cand::~loop_cand): Same.
11689 (free_data_refs_with_aux): Same.
11690 (tree_loop_interchange::interchange_loops): Same.
11691 (tree_loop_interchange::map_inductions_to_loop): Same.
11692 (tree_loop_interchange::move_code_to_inner_loop): Same.
11693 (compute_access_stride): Same.
11694 (compute_access_strides): Same.
11695 (proper_loop_form_for_interchange): Same.
11696 (tree_loop_interchange_compute_ddrs): Same.
11697 (prune_datarefs_not_in_loop): Same.
11698 (prepare_data_references): Same.
11699 (pass_linterchange::execute): Same.
11700 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11701 (unroll_jam_possible_p): Same.
11702 (fuse_loops): Same.
11703 (adjust_unroll_factor): Same.
11704 (tree_loop_unroll_and_jam): Same.
11705 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11706 (loop_versioning::expensive_stmt_p): Same.
11707 (loop_versioning::version_for_unity): Same.
11708 (loop_versioning::dump_inner_likelihood): Same.
11709 (loop_versioning::find_per_loop_multiplication): Same.
11710 (loop_versioning::analyze_term_using_scevs): Same.
11711 (loop_versioning::record_address_fragment): Same.
11712 (loop_versioning::analyze_expr): Same.
11713 (loop_versioning::analyze_blocks): Same.
11714 (loop_versioning::prune_conditions): Same.
11715 (loop_versioning::merge_loop_info): Same.
11716 (loop_versioning::add_loop_to_queue): Same.
11717 (loop_versioning::decide_whether_loop_is_versionable): Same.
11718 (loop_versioning::make_versioning_decisions): Same.
11719 (loop_versioning::implement_versioning_decisions): Same.
11720 * gimple-ssa-evrp-analyze.c
11721 (evrp_range_analyzer::record_ranges_from_phis): Same.
11722 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11723 (count_multiple_uses): Same.
11724 (split_group): Same.
11725 (imm_store_chain_info::output_merged_store): Same.
11726 (pass_store_merging::process_store): Same.
11727 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11728 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11729 (is_max): Same.
11730 (alloca_call_type): Same.
11731 (pass_walloca::execute): Same.
11732 * gimple-streamer-in.c (input_phi): Same.
11733 (input_gimple_stmt): Same.
11734 * gimple-streamer.h: Same.
11735 * godump.c (go_force_record_alignment): Same.
11736 (go_format_type): Same.
11737 (go_output_type): Same.
11738 (go_output_fndecl): Same.
11739 (go_output_typedef): Same.
11740 (keyword_hash_init): Same.
11741 (find_dummy_types): Same.
11742 * graph.c (draw_cfg_nodes_no_loops): Same.
11743 (draw_cfg_nodes_for_loop): Same.
11744 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11745 * hsa-brig.c: Same.
11746 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11747 * hsa-dump.c (dump_hsa_cfun): Same.
11748 * hsa-gen.c (gen_function_def_parameters): Same.
11749 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11750 * input.c (dump_line_table_statistics): Same.
11751 (test_lexer): Same.
11752 * input.h: Same.
11753 * internal-fn.c (get_multi_vector_move): Same.
11754 (expand_load_lanes_optab_fn): Same.
11755 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11756 (expand_GOMP_SIMT_EXIT): Same.
11757 (expand_GOMP_SIMT_LAST_LANE): Same.
11758 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11759 (expand_GOMP_SIMT_VOTE_ANY): Same.
11760 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11761 (expand_GOMP_SIMT_XCHG_IDX): Same.
11762 (expand_addsub_overflow): Same.
11763 (expand_neg_overflow): Same.
11764 (expand_mul_overflow): Same.
11765 (expand_call_mem_ref): Same.
11766 (expand_mask_load_optab_fn): Same.
11767 (expand_scatter_store_optab_fn): Same.
11768 (expand_gather_load_optab_fn): Same.
11769 * ipa-cp.c (ipa_get_parm_lattices): Same.
11770 (print_all_lattices): Same.
11771 (ignore_edge_p): Same.
11772 (build_toporder_info): Same.
11773 (free_toporder_info): Same.
11774 (push_node_to_stack): Same.
11775 (ipcp_lattice<valtype>::set_contains_variable): Same.
11776 (set_agg_lats_to_bottom): Same.
11777 (ipcp_bits_lattice::meet_with): Same.
11778 (set_single_call_flag): Same.
11779 (initialize_node_lattices): Same.
11780 (ipa_get_jf_ancestor_result): Same.
11781 (ipcp_verify_propagated_values): Same.
11782 (propagate_scalar_across_jump_function): Same.
11783 (propagate_context_across_jump_function): Same.
11784 (propagate_bits_across_jump_function): Same.
11785 (ipa_vr_operation_and_type_effects): Same.
11786 (propagate_vr_across_jump_function): Same.
11787 (set_check_aggs_by_ref): Same.
11788 (set_chain_of_aglats_contains_variable): Same.
11789 (merge_aggregate_lattices): Same.
11790 (agg_pass_through_permissible_p): Same.
11791 (propagate_aggs_across_jump_function): Same.
11792 (call_passes_through_thunk_p): Same.
11793 (propagate_constants_across_call): Same.
11794 (devirtualization_time_bonus): Same.
11795 (good_cloning_opportunity_p): Same.
11796 (context_independent_aggregate_values): Same.
11797 (gather_context_independent_values): Same.
11798 (perform_estimation_of_a_value): Same.
11799 (estimate_local_effects): Same.
11800 (value_topo_info<valtype>::add_val): Same.
11801 (add_all_node_vals_to_toposort): Same.
11802 (value_topo_info<valtype>::propagate_effects): Same.
11803 (ipcp_propagate_stage): Same.
11804 (ipcp_discover_new_direct_edges): Same.
11805 (same_node_or_its_all_contexts_clone_p): Same.
11806 (cgraph_edge_brings_value_p): Same.
11807 (gather_edges_for_value): Same.
11808 (create_specialized_node): Same.
11809 (find_more_scalar_values_for_callers_subset): Same.
11810 (find_more_contexts_for_caller_subset): Same.
11811 (copy_plats_to_inter): Same.
11812 (intersect_aggregates_with_edge): Same.
11813 (find_aggregate_values_for_callers_subset): Same.
11814 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11815 (decide_about_value): Same.
11816 (decide_whether_version_node): Same.
11817 (spread_undeadness): Same.
11818 (identify_dead_nodes): Same.
11819 (ipcp_store_vr_results): Same.
11820 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11821 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11822 (redirect_to_unreachable): Same.
11823 (edge_set_predicate): Same.
11824 (evaluate_conditions_for_known_args): Same.
11825 (evaluate_properties_for_edge): Same.
11826 (ipa_fn_summary_t::duplicate): Same.
11827 (ipa_call_summary_t::duplicate): Same.
11828 (dump_ipa_call_summary): Same.
11829 (ipa_dump_fn_summary): Same.
11830 (eliminated_by_inlining_prob): Same.
11831 (set_cond_stmt_execution_predicate): Same.
11832 (set_switch_stmt_execution_predicate): Same.
11833 (compute_bb_predicates): Same.
11834 (will_be_nonconstant_expr_predicate): Same.
11835 (phi_result_unknown_predicate): Same.
11836 (analyze_function_body): Same.
11837 (compute_fn_summary): Same.
11838 (estimate_edge_devirt_benefit): Same.
11839 (estimate_edge_size_and_time): Same.
11840 (estimate_calls_size_and_time): Same.
11841 (estimate_node_size_and_time): Same.
11842 (remap_edge_change_prob): Same.
11843 (remap_edge_summaries): Same.
11844 (ipa_merge_fn_summary_after_inlining): Same.
11845 (ipa_fn_summary_generate): Same.
11846 (inline_read_section): Same.
11847 (ipa_fn_summary_read): Same.
11848 (ipa_fn_summary_write): Same.
11849 * ipa-fnsummary.h: Same.
11850 * ipa-hsa.c (ipa_hsa_read_section): Same.
11851 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11852 * ipa-icf.c (sem_function::param_used_p): Same.
11853 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11854 * ipa-inline.c (edge_badness): Same.
11855 (inline_small_functions): Same.
11856 * ipa-polymorphic-call.c
11857 (ipa_polymorphic_call_context::stream_out): Same.
11858 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11859 (predicate::remap_after_inlining): Same.
11860 (predicate::stream_out): Same.
11861 * ipa-predicate.h: Same.
11862 * ipa-profile.c (ipa_profile_read_summary): Same.
11863 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11864 (count_formal_params): Same.
11865 (ipa_dump_param): Same.
11866 (ipa_alloc_node_params): Same.
11867 (ipa_print_node_jump_functions_for_edge): Same.
11868 (ipa_print_node_jump_functions): Same.
11869 (ipa_load_from_parm_agg): Same.
11870 (get_ancestor_addr_info): Same.
11871 (ipa_compute_jump_functions_for_edge): Same.
11872 (ipa_analyze_virtual_call_uses): Same.
11873 (ipa_analyze_stmt_uses): Same.
11874 (ipa_analyze_params_uses_in_bb): Same.
11875 (update_jump_functions_after_inlining): Same.
11876 (try_decrement_rdesc_refcount): Same.
11877 (ipa_impossible_devirt_target): Same.
11878 (update_indirect_edges_after_inlining): Same.
11879 (combine_controlled_uses_counters): Same.
11880 (ipa_edge_args_sum_t::duplicate): Same.
11881 (ipa_write_jump_function): Same.
11882 (ipa_write_indirect_edge_info): Same.
11883 (ipa_write_node_info): Same.
11884 (ipa_read_edge_info): Same.
11885 (ipa_prop_read_section): Same.
11886 (read_replacements_section): Same.
11887 * ipa-prop.h (ipa_get_param_count): Same.
11888 (ipa_get_param): Same.
11889 (ipa_get_type): Same.
11890 (ipa_get_param_move_cost): Same.
11891 (ipa_set_param_used): Same.
11892 (ipa_get_controlled_uses): Same.
11893 (ipa_set_controlled_uses): Same.
11894 (ipa_get_cs_argument_count): Same.
11895 * ipa-pure-const.c (analyze_function): Same.
11896 (pure_const_read_summary): Same.
11897 * ipa-ref.h: Same.
11898 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11899 * ipa-split.c (test_nonssa_use): Same.
11900 (dump_split_point): Same.
11901 (dominated_by_forbidden): Same.
11902 (split_part_set_ssa_name_p): Same.
11903 (find_split_points): Same.
11904 * ira-build.c (finish_loop_tree_nodes): Same.
11905 (low_pressure_loop_node_p): Same.
11906 * ira-color.c (ira_reuse_stack_slot): Same.
11907 * ira-int.h: Same.
11908 * ira.c (setup_reg_equiv): Same.
11909 (print_insn_chain): Same.
11910 (ira): Same.
11911 * loop-doloop.c (doloop_condition_get): Same.
11912 (add_test): Same.
11913 (record_reg_sets): Same.
11914 (doloop_optimize): Same.
11915 * loop-init.c (loop_optimizer_init): Same.
11916 (fix_loop_structure): Same.
11917 * loop-invariant.c (merge_identical_invariants): Same.
11918 (compute_always_reached): Same.
11919 (find_exits): Same.
11920 (may_assign_reg_p): Same.
11921 (find_invariants_bb): Same.
11922 (find_invariants_body): Same.
11923 (replace_uses): Same.
11924 (can_move_invariant_reg): Same.
11925 (free_inv_motion_data): Same.
11926 (move_single_loop_invariants): Same.
11927 (change_pressure): Same.
11928 (mark_ref_regs): Same.
11929 (calculate_loop_reg_pressure): Same.
11930 * loop-iv.c (biv_entry_hasher::equal): Same.
11931 (iv_extend_to_rtx_code): Same.
11932 (check_iv_ref_table_size): Same.
11933 (clear_iv_info): Same.
11934 (latch_dominating_def): Same.
11935 (iv_get_reaching_def): Same.
11936 (iv_constant): Same.
11937 (iv_subreg): Same.
11938 (iv_extend): Same.
11939 (iv_neg): Same.
11940 (iv_add): Same.
11941 (iv_mult): Same.
11942 (get_biv_step): Same.
11943 (record_iv): Same.
11944 (analyzed_for_bivness_p): Same.
11945 (record_biv): Same.
11946 (iv_analyze_biv): Same.
11947 (iv_analyze_expr): Same.
11948 (iv_analyze_def): Same.
11949 (iv_analyze_op): Same.
11950 (iv_analyze): Same.
11951 (iv_analyze_result): Same.
11952 (biv_p): Same.
11953 (eliminate_implied_conditions): Same.
11954 (simplify_using_initial_values): Same.
11955 (shorten_into_mode): Same.
11956 (canonicalize_iv_subregs): Same.
11957 (determine_max_iter): Same.
11958 (check_simple_exit): Same.
11959 (find_simple_exit): Same.
11960 (get_simple_loop_desc): Same.
11961 * loop-unroll.c (report_unroll): Same.
11962 (decide_unrolling): Same.
11963 (unroll_loops): Same.
11964 (loop_exit_at_end_p): Same.
11965 (decide_unroll_constant_iterations): Same.
11966 (unroll_loop_constant_iterations): Same.
11967 (compare_and_jump_seq): Same.
11968 (unroll_loop_runtime_iterations): Same.
11969 (decide_unroll_stupid): Same.
11970 (unroll_loop_stupid): Same.
11971 (referenced_in_one_insn_in_loop_p): Same.
11972 (reset_debug_uses_in_loop): Same.
11973 (analyze_iv_to_split_insn): Same.
11974 * lra-eliminations.c (lra_debug_elim_table): Same.
11975 (setup_can_eliminate): Same.
11976 (form_sum): Same.
11977 (lra_get_elimination_hard_regno): Same.
11978 (lra_eliminate_regs_1): Same.
11979 (eliminate_regs_in_insn): Same.
11980 (update_reg_eliminate): Same.
11981 (init_elimination): Same.
11982 (lra_eliminate): Same.
11983 * lra-int.h: Same.
11984 * lra-lives.c (initiate_live_solver): Same.
11985 * lra-remat.c (create_remat_bb_data): Same.
11986 * lra-spills.c (lra_spill): Same.
11987 * lra.c (lra_set_insn_recog_data): Same.
11988 (lra_set_used_insn_alternative_by_uid): Same.
11989 (init_reg_info): Same.
11990 (expand_reg_info): Same.
11991 * lto-cgraph.c (output_symtab): Same.
11992 (read_identifier): Same.
11993 (get_alias_symbol): Same.
11994 (input_node): Same.
11995 (input_varpool_node): Same.
11996 (input_ref): Same.
11997 (input_edge): Same.
11998 (input_cgraph_1): Same.
11999 (input_refs): Same.
12000 (input_symtab): Same.
12001 (input_offload_tables): Same.
12002 (output_cgraph_opt_summary): Same.
12003 (input_edge_opt_summary): Same.
12004 (input_cgraph_opt_section): Same.
12005 * lto-section-in.c (lto_free_raw_section_data): Same.
12006 (lto_create_simple_input_block): Same.
12007 (lto_free_function_in_decl_state_for_node): Same.
12008 * lto-streamer-in.c (lto_tag_check_set): Same.
12009 (lto_location_cache::revert_location_cache): Same.
12010 (lto_location_cache::input_location): Same.
12011 (lto_input_location): Same.
12012 (stream_input_location_now): Same.
12013 (lto_input_tree_ref): Same.
12014 (lto_input_eh_catch_list): Same.
12015 (input_eh_region): Same.
12016 (lto_init_eh): Same.
12017 (make_new_block): Same.
12018 (input_cfg): Same.
12019 (fixup_call_stmt_edges): Same.
12020 (input_struct_function_base): Same.
12021 (input_function): Same.
12022 (lto_read_body_or_constructor): Same.
12023 (lto_read_tree_1): Same.
12024 (lto_read_tree): Same.
12025 (lto_input_scc): Same.
12026 (lto_input_tree_1): Same.
12027 (lto_input_toplevel_asms): Same.
12028 (lto_input_mode_table): Same.
12029 (lto_reader_init): Same.
12030 (lto_data_in_create): Same.
12031 * lto-streamer-out.c (output_cfg): Same.
12032 * lto-streamer.h: Same.
12033 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12034 (generate_prolog_epilog): Same.
12035 (mark_loop_unsched): Same.
12036 (dump_insn_location): Same.
12037 (loop_canon_p): Same.
12038 (sms_schedule): Same.
12039 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12040 (expand_omp_for_generic): Same.
12041 (expand_omp_for_static_nochunk): Same.
12042 (expand_omp_for_static_chunk): Same.
12043 (expand_omp_simd): Same.
12044 (expand_omp_taskloop_for_inner): Same.
12045 (expand_oacc_for): Same.
12046 (expand_omp_atomic_pipeline): Same.
12047 (mark_loops_in_oacc_kernels_region): Same.
12048 * omp-offload.c (oacc_xform_loop): Same.
12049 * omp-simd-clone.c (simd_clone_adjust): Same.
12050 * optabs-query.c (get_traditional_extraction_insn): Same.
12051 * optabs.c (expand_vector_broadcast): Same.
12052 (expand_binop_directly): Same.
12053 (expand_twoval_unop): Same.
12054 (expand_twoval_binop): Same.
12055 (expand_unop_direct): Same.
12056 (emit_indirect_jump): Same.
12057 (emit_conditional_move): Same.
12058 (emit_conditional_neg_or_complement): Same.
12059 (emit_conditional_add): Same.
12060 (vector_compare_rtx): Same.
12061 (expand_vec_perm_1): Same.
12062 (expand_vec_perm_const): Same.
12063 (expand_vec_cond_expr): Same.
12064 (expand_vec_series_expr): Same.
12065 (maybe_emit_atomic_exchange): Same.
12066 (maybe_emit_sync_lock_test_and_set): Same.
12067 (expand_atomic_compare_and_swap): Same.
12068 (expand_atomic_load): Same.
12069 (expand_atomic_store): Same.
12070 (maybe_emit_op): Same.
12071 (valid_multiword_target_p): Same.
12072 (create_integer_operand): Same.
12073 (maybe_legitimize_operand_same_code): Same.
12074 (maybe_legitimize_operand): Same.
12075 (create_convert_operand_from_type): Same.
12076 (can_reuse_operands_p): Same.
12077 (maybe_legitimize_operands): Same.
12078 (maybe_gen_insn): Same.
12079 (maybe_expand_insn): Same.
12080 (maybe_expand_jump_insn): Same.
12081 (expand_insn): Same.
12082 * optabs.h (create_expand_operand): Same.
12083 (create_fixed_operand): Same.
12084 (create_output_operand): Same.
12085 (create_input_operand): Same.
12086 (create_convert_operand_to): Same.
12087 (create_convert_operand_from): Same.
12088 * optinfo.h: Same.
12089 * poly-int.h: Same.
12090 * predict.c (optimize_insn_for_speed_p): Same.
12091 (optimize_loop_for_size_p): Same.
12092 (optimize_loop_for_speed_p): Same.
12093 (optimize_loop_nest_for_speed_p): Same.
12094 (get_base_value): Same.
12095 (predicted_by_loop_heuristics_p): Same.
12096 (predict_extra_loop_exits): Same.
12097 (predict_loops): Same.
12098 (predict_paths_for_bb): Same.
12099 (predict_paths_leading_to): Same.
12100 (propagate_freq): Same.
12101 (pass_profile::execute): Same.
12102 * predict.h: Same.
12103 * profile-count.c (profile_count::differs_from_p): Same.
12104 (profile_probability::differs_lot_from_p): Same.
12105 * profile-count.h: Same.
12106 * profile.c (branch_prob): Same.
12107 * regrename.c (free_chain_data): Same.
12108 (mark_conflict): Same.
12109 (create_new_chain): Same.
12110 (merge_overlapping_regs): Same.
12111 (init_rename_info): Same.
12112 (merge_chains): Same.
12113 (regrename_analyze): Same.
12114 (regrename_do_replace): Same.
12115 (scan_rtx_reg): Same.
12116 (record_out_operands): Same.
12117 (build_def_use): Same.
12118 * regrename.h: Same.
12119 * reload.h: Same.
12120 * reload1.c (init_reload): Same.
12121 (maybe_fix_stack_asms): Same.
12122 (copy_reloads): Same.
12123 (count_pseudo): Same.
12124 (count_spilled_pseudo): Same.
12125 (find_reg): Same.
12126 (find_reload_regs): Same.
12127 (select_reload_regs): Same.
12128 (spill_hard_reg): Same.
12129 (fixup_eh_region_note): Same.
12130 (set_reload_reg): Same.
12131 (allocate_reload_reg): Same.
12132 (compute_reload_subreg_offset): Same.
12133 (reload_adjust_reg_for_icode): Same.
12134 (emit_input_reload_insns): Same.
12135 (emit_output_reload_insns): Same.
12136 (do_input_reload): Same.
12137 (inherit_piecemeal_p): Same.
12138 * rtl.h: Same.
12139 * sanopt.c (maybe_get_dominating_check): Same.
12140 (maybe_optimize_ubsan_ptr_ifn): Same.
12141 (can_remove_asan_check): Same.
12142 (maybe_optimize_asan_check_ifn): Same.
12143 (sanopt_optimize_walker): Same.
12144 * sched-deps.c (add_dependence_list): Same.
12145 (chain_to_prev_insn): Same.
12146 (add_insn_mem_dependence): Same.
12147 (create_insn_reg_set): Same.
12148 (maybe_extend_reg_info_p): Same.
12149 (sched_analyze_reg): Same.
12150 (sched_analyze_1): Same.
12151 (get_implicit_reg_pending_clobbers): Same.
12152 (chain_to_prev_insn_p): Same.
12153 (deps_analyze_insn): Same.
12154 (deps_start_bb): Same.
12155 (sched_free_deps): Same.
12156 (init_deps): Same.
12157 (init_deps_reg_last): Same.
12158 (free_deps): Same.
12159 * sched-ebb.c: Same.
12160 * sched-int.h: Same.
12161 * sched-rgn.c (add_branch_dependences): Same.
12162 (concat_insn_mem_list): Same.
12163 (deps_join): Same.
12164 (sched_rgn_compute_dependencies): Same.
12165 * sel-sched-ir.c (reset_target_context): Same.
12166 (copy_deps_context): Same.
12167 (init_id_from_df): Same.
12168 (has_dependence_p): Same.
12169 (change_loops_latches): Same.
12170 (bb_top_order_comparator): Same.
12171 (make_region_from_loop_preheader): Same.
12172 (sel_init_pipelining): Same.
12173 (get_loop_nest_for_rgn): Same.
12174 (make_regions_from_the_rest): Same.
12175 (sel_is_loop_preheader_p): Same.
12176 * sel-sched-ir.h (inner_loop_header_p): Same.
12177 (get_all_loop_exits): Same.
12178 * selftest.h: Same.
12179 * sese.c (sese_build_liveouts): Same.
12180 (sese_insert_phis_for_liveouts): Same.
12181 * sese.h (defined_in_sese_p): Same.
12182 * sreal.c (sreal::stream_out): Same.
12183 * sreal.h: Same.
12184 * streamer-hooks.h: Same.
12185 * target-globals.c (save_target_globals): Same.
12186 * target-globals.h: Same.
12187 * target.def: Same.
12188 * target.h: Same.
12189 * targhooks.c (default_has_ifunc_p): Same.
12190 (default_empty_mask_is_expensive): Same.
12191 (default_init_cost): Same.
12192 * targhooks.h: Same.
12193 * toplev.c: Same.
12194 * tree-affine.c (aff_combination_mult): Same.
12195 (aff_combination_expand): Same.
12196 (aff_combination_constant_multiple_p): Same.
12197 * tree-affine.h: Same.
12198 * tree-cfg.c (build_gimple_cfg): Same.
12199 (replace_loop_annotate_in_block): Same.
12200 (replace_uses_by): Same.
12201 (remove_bb): Same.
12202 (dump_cfg_stats): Same.
12203 (gimple_duplicate_sese_region): Same.
12204 (gimple_duplicate_sese_tail): Same.
12205 (move_block_to_fn): Same.
12206 (replace_block_vars_by_duplicates): Same.
12207 (move_sese_region_to_fn): Same.
12208 (print_loops_bb): Same.
12209 (print_loop): Same.
12210 (print_loops): Same.
12211 (debug): Same.
12212 (debug_loops): Same.
12213 * tree-cfg.h: Same.
12214 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12215 (chrec_fold_multiply_poly_poly): Same.
12216 (chrec_evaluate): Same.
12217 (chrec_component_in_loop_num): Same.
12218 (reset_evolution_in_loop): Same.
12219 (is_multivariate_chrec): Same.
12220 (chrec_contains_symbols): Same.
12221 (nb_vars_in_chrec): Same.
12222 (chrec_convert_1): Same.
12223 (chrec_convert_aggressive): Same.
12224 * tree-chrec.h: Same.
12225 * tree-core.h: Same.
12226 * tree-data-ref.c (dump_data_dependence_relation): Same.
12227 (canonicalize_base_object_address): Same.
12228 (data_ref_compare_tree): Same.
12229 (prune_runtime_alias_test_list): Same.
12230 (get_segment_min_max): Same.
12231 (create_intersect_range_checks): Same.
12232 (conflict_fn_no_dependence): Same.
12233 (object_address_invariant_in_loop_p): Same.
12234 (analyze_ziv_subscript): Same.
12235 (analyze_siv_subscript_cst_affine): Same.
12236 (analyze_miv_subscript): Same.
12237 (analyze_overlapping_iterations): Same.
12238 (build_classic_dist_vector_1): Same.
12239 (add_other_self_distances): Same.
12240 (same_access_functions): Same.
12241 (build_classic_dir_vector): Same.
12242 (subscript_dependence_tester_1): Same.
12243 (subscript_dependence_tester): Same.
12244 (access_functions_are_affine_or_constant_p): Same.
12245 (get_references_in_stmt): Same.
12246 (loop_nest_has_data_refs): Same.
12247 (graphite_find_data_references_in_stmt): Same.
12248 (find_data_references_in_bb): Same.
12249 (get_base_for_alignment): Same.
12250 (find_loop_nest_1): Same.
12251 (find_loop_nest): Same.
12252 * tree-data-ref.h (dr_alignment): Same.
12253 (ddr_dependence_level): Same.
12254 * tree-if-conv.c (fold_build_cond_expr): Same.
12255 (add_to_predicate_list): Same.
12256 (add_to_dst_predicate_list): Same.
12257 (phi_convertible_by_degenerating_args): Same.
12258 (idx_within_array_bound): Same.
12259 (all_preds_critical_p): Same.
12260 (pred_blocks_visited_p): Same.
12261 (predicate_bbs): Same.
12262 (build_region): Same.
12263 (if_convertible_loop_p_1): Same.
12264 (is_cond_scalar_reduction): Same.
12265 (predicate_scalar_phi): Same.
12266 (remove_conditions_and_labels): Same.
12267 (combine_blocks): Same.
12268 (version_loop_for_if_conversion): Same.
12269 (versionable_outer_loop_p): Same.
12270 (ifcvt_local_dce): Same.
12271 (tree_if_conversion): Same.
12272 (pass_if_conversion::gate): Same.
12273 * tree-if-conv.h: Same.
12274 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12275 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12276 (free_rdg): Same.
12277 (stmt_has_scalar_dependences_outside_loop): Same.
12278 (copy_loop_before): Same.
12279 (create_bb_after_loop): Same.
12280 (const_with_all_bytes_same): Same.
12281 (generate_memset_builtin): Same.
12282 (generate_memcpy_builtin): Same.
12283 (destroy_loop): Same.
12284 (build_rdg_partition_for_vertex): Same.
12285 (compute_access_range): Same.
12286 (data_ref_segment_size): Same.
12287 (latch_dominated_by_data_ref): Same.
12288 (compute_alias_check_pairs): Same.
12289 (fuse_memset_builtins): Same.
12290 (finalize_partitions): Same.
12291 (find_seed_stmts_for_distribution): Same.
12292 (prepare_perfect_loop_nest): Same.
12293 * tree-parloops.c (lambda_transform_legal_p): Same.
12294 (loop_parallel_p): Same.
12295 (reduc_stmt_res): Same.
12296 (add_field_for_name): Same.
12297 (create_call_for_reduction_1): Same.
12298 (replace_uses_in_bb_by): Same.
12299 (transform_to_exit_first_loop_alt): Same.
12300 (try_transform_to_exit_first_loop_alt): Same.
12301 (transform_to_exit_first_loop): Same.
12302 (num_phis): Same.
12303 (gen_parallel_loop): Same.
12304 (gather_scalar_reductions): Same.
12305 (get_omp_data_i_param): Same.
12306 (try_create_reduction_list): Same.
12307 (oacc_entry_exit_single_gang): Same.
12308 (parallelize_loops): Same.
12309 * tree-pass.h: Same.
12310 * tree-predcom.c (determine_offset): Same.
12311 (last_always_executed_block): Same.
12312 (split_data_refs_to_components): Same.
12313 (suitable_component_p): Same.
12314 (valid_initializer_p): Same.
12315 (find_looparound_phi): Same.
12316 (insert_looparound_copy): Same.
12317 (add_looparound_copies): Same.
12318 (determine_roots_comp): Same.
12319 (predcom_tmp_var): Same.
12320 (initialize_root_vars): Same.
12321 (initialize_root_vars_store_elim_1): Same.
12322 (initialize_root_vars_store_elim_2): Same.
12323 (finalize_eliminated_stores): Same.
12324 (initialize_root_vars_lm): Same.
12325 (remove_stmt): Same.
12326 (determine_unroll_factor): Same.
12327 (execute_pred_commoning_cbck): Same.
12328 (base_names_in_chain_on): Same.
12329 (combine_chains): Same.
12330 (pcom_stmt_dominates_stmt_p): Same.
12331 (try_combine_chains): Same.
12332 (prepare_initializers_chain_store_elim): Same.
12333 (prepare_initializers_chain): Same.
12334 (prepare_initializers): Same.
12335 (prepare_finalizers_chain): Same.
12336 (prepare_finalizers): Same.
12337 (insert_init_seqs): Same.
12338 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12339 (compute_overall_effect_of_inner_loop): Same.
12340 (add_to_evolution_1): Same.
12341 (add_to_evolution): Same.
12342 (follow_ssa_edge_binary): Same.
12343 (follow_ssa_edge_expr): Same.
12344 (backedge_phi_arg_p): Same.
12345 (follow_ssa_edge_in_condition_phi_branch): Same.
12346 (follow_ssa_edge_in_condition_phi): Same.
12347 (follow_ssa_edge_inner_loop_phi): Same.
12348 (follow_ssa_edge): Same.
12349 (analyze_evolution_in_loop): Same.
12350 (analyze_initial_condition): Same.
12351 (interpret_loop_phi): Same.
12352 (interpret_condition_phi): Same.
12353 (interpret_rhs_expr): Same.
12354 (interpret_expr): Same.
12355 (interpret_gimple_assign): Same.
12356 (analyze_scalar_evolution_1): Same.
12357 (analyze_scalar_evolution): Same.
12358 (analyze_scalar_evolution_for_address_of): Same.
12359 (get_instantiated_value_entry): Same.
12360 (loop_closed_phi_def): Same.
12361 (instantiate_scev_name): Same.
12362 (instantiate_scev_poly): Same.
12363 (instantiate_scev_binary): Same.
12364 (instantiate_scev_convert): Same.
12365 (instantiate_scev_not): Same.
12366 (instantiate_scev_r): Same.
12367 (instantiate_scev): Same.
12368 (resolve_mixers): Same.
12369 (initialize_scalar_evolutions_analyzer): Same.
12370 (scev_reset_htab): Same.
12371 (scev_reset): Same.
12372 (derive_simple_iv_with_niters): Same.
12373 (simple_iv_with_niters): Same.
12374 (expression_expensive_p): Same.
12375 (final_value_replacement_loop): Same.
12376 * tree-scalar-evolution.h (block_before_loop): Same.
12377 * tree-ssa-address.h: Same.
12378 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12379 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12380 (record_edge_info): Same.
12381 * tree-ssa-live.c (var_map_base_fini): Same.
12382 (remove_unused_locals): Same.
12383 * tree-ssa-live.h: Same.
12384 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12385 (pass_ch_vect::execute): Same.
12386 (pass_ch::process_loop_p): Same.
12387 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12388 (movement_possibility): Same.
12389 (outermost_invariant_loop): Same.
12390 (stmt_cost): Same.
12391 (determine_max_movement): Same.
12392 (invariantness_dom_walker::before_dom_children): Same.
12393 (move_computations): Same.
12394 (may_move_till): Same.
12395 (force_move_till_op): Same.
12396 (force_move_till): Same.
12397 (memref_free): Same.
12398 (record_mem_ref_loc): Same.
12399 (set_ref_stored_in_loop): Same.
12400 (mark_ref_stored): Same.
12401 (sort_bbs_in_loop_postorder_cmp): Same.
12402 (sort_locs_in_loop_postorder_cmp): Same.
12403 (analyze_memory_references): Same.
12404 (mem_refs_may_alias_p): Same.
12405 (find_ref_loc_in_loop_cmp): Same.
12406 (rewrite_mem_ref_loc::operator): Same.
12407 (first_mem_ref_loc_1::operator): Same.
12408 (sm_set_flag_if_changed::operator): Same.
12409 (execute_sm_if_changed_flag_set): Same.
12410 (execute_sm): Same.
12411 (hoist_memory_references): Same.
12412 (ref_always_accessed::operator): Same.
12413 (refs_independent_p): Same.
12414 (record_dep_loop): Same.
12415 (ref_indep_loop_p_1): Same.
12416 (ref_indep_loop_p): Same.
12417 (can_sm_ref_p): Same.
12418 (find_refs_for_sm): Same.
12419 (loop_suitable_for_sm): Same.
12420 (store_motion_loop): Same.
12421 (store_motion): Same.
12422 (fill_always_executed_in): Same.
12423 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12424 (estimated_unrolled_size): Same.
12425 (loop_edge_to_cancel): Same.
12426 (remove_exits_and_undefined_stmts): Same.
12427 (remove_redundant_iv_tests): Same.
12428 (unloop_loops): Same.
12429 (estimated_peeled_sequence_size): Same.
12430 (try_peel_loop): Same.
12431 (canonicalize_loop_induction_variables): Same.
12432 (canonicalize_induction_variables): Same.
12433 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12434 (name_info): Same.
12435 (stmt_after_inc_pos): Same.
12436 (contains_abnormal_ssa_name_p): Same.
12437 (niter_for_exit): Same.
12438 (find_bivs): Same.
12439 (mark_bivs): Same.
12440 (find_givs_in_bb): Same.
12441 (find_induction_variables): Same.
12442 (find_interesting_uses_cond): Same.
12443 (outermost_invariant_loop_for_expr): Same.
12444 (idx_find_step): Same.
12445 (add_candidate_1): Same.
12446 (add_iv_candidate_derived_from_uses): Same.
12447 (alloc_use_cost_map): Same.
12448 (prepare_decl_rtl): Same.
12449 (generic_predict_doloop_p): Same.
12450 (computation_cost): Same.
12451 (determine_common_wider_type): Same.
12452 (get_computation_aff_1): Same.
12453 (get_use_type): Same.
12454 (determine_group_iv_cost_address): Same.
12455 (iv_period): Same.
12456 (difference_cannot_overflow_p): Same.
12457 (may_eliminate_iv): Same.
12458 (determine_set_costs): Same.
12459 (cheaper_cost_pair): Same.
12460 (compare_cost_pair): Same.
12461 (iv_ca_cand_for_group): Same.
12462 (iv_ca_recount_cost): Same.
12463 (iv_ca_set_remove_invs): Same.
12464 (iv_ca_set_no_cp): Same.
12465 (iv_ca_set_add_invs): Same.
12466 (iv_ca_set_cp): Same.
12467 (iv_ca_add_group): Same.
12468 (iv_ca_cost): Same.
12469 (iv_ca_compare_deps): Same.
12470 (iv_ca_delta_reverse): Same.
12471 (iv_ca_delta_commit): Same.
12472 (iv_ca_cand_used_p): Same.
12473 (iv_ca_delta_free): Same.
12474 (iv_ca_new): Same.
12475 (iv_ca_free): Same.
12476 (iv_ca_dump): Same.
12477 (iv_ca_extend): Same.
12478 (iv_ca_narrow): Same.
12479 (iv_ca_prune): Same.
12480 (cheaper_cost_with_cand): Same.
12481 (iv_ca_replace): Same.
12482 (try_add_cand_for): Same.
12483 (get_initial_solution): Same.
12484 (try_improve_iv_set): Same.
12485 (find_optimal_iv_set_1): Same.
12486 (create_new_iv): Same.
12487 (rewrite_use_compare): Same.
12488 (remove_unused_ivs): Same.
12489 (determine_scaling_factor): Same.
12490 * tree-ssa-loop-ivopts.h: Same.
12491 * tree-ssa-loop-manip.c (create_iv): Same.
12492 (compute_live_loop_exits): Same.
12493 (add_exit_phi): Same.
12494 (add_exit_phis): Same.
12495 (find_uses_to_rename_use): Same.
12496 (find_uses_to_rename_def): Same.
12497 (find_uses_to_rename_in_loop): Same.
12498 (rewrite_into_loop_closed_ssa): Same.
12499 (check_loop_closed_ssa_bb): Same.
12500 (split_loop_exit_edge): Same.
12501 (ip_end_pos): Same.
12502 (ip_normal_pos): Same.
12503 (copy_phi_node_args): Same.
12504 (gimple_duplicate_loop_to_header_edge): Same.
12505 (can_unroll_loop_p): Same.
12506 (determine_exit_conditions): Same.
12507 (scale_dominated_blocks_in_loop): Same.
12508 (niter_for_unrolled_loop): Same.
12509 (tree_transform_and_unroll_loop): Same.
12510 (rewrite_all_phi_nodes_with_iv): Same.
12511 * tree-ssa-loop-manip.h: Same.
12512 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12513 (number_of_iterations_ne): Same.
12514 (assert_no_overflow_lt): Same.
12515 (assert_loop_rolls_lt): Same.
12516 (number_of_iterations_lt): Same.
12517 (adjust_cond_for_loop_until_wrap): Same.
12518 (tree_simplify_using_condition): Same.
12519 (simplify_using_initial_conditions): Same.
12520 (simplify_using_outer_evolutions): Same.
12521 (loop_only_exit_p): Same.
12522 (ssa_defined_by_minus_one_stmt_p): Same.
12523 (number_of_iterations_popcount): Same.
12524 (number_of_iterations_exit): Same.
12525 (find_loop_niter): Same.
12526 (finite_loop_p): Same.
12527 (chain_of_csts_start): Same.
12528 (get_val_for): Same.
12529 (loop_niter_by_eval): Same.
12530 (derive_constant_upper_bound_ops): Same.
12531 (do_warn_aggressive_loop_optimizations): Same.
12532 (record_estimate): Same.
12533 (get_cst_init_from_scev): Same.
12534 (record_nonwrapping_iv): Same.
12535 (idx_infer_loop_bounds): Same.
12536 (infer_loop_bounds_from_ref): Same.
12537 (infer_loop_bounds_from_array): Same.
12538 (infer_loop_bounds_from_pointer_arith): Same.
12539 (infer_loop_bounds_from_signedness): Same.
12540 (bound_index): Same.
12541 (discover_iteration_bound_by_body_walk): Same.
12542 (maybe_lower_iteration_bound): Same.
12543 (estimate_numbers_of_iterations): Same.
12544 (estimated_loop_iterations): Same.
12545 (estimated_loop_iterations_int): Same.
12546 (max_loop_iterations): Same.
12547 (max_loop_iterations_int): Same.
12548 (likely_max_loop_iterations): Same.
12549 (likely_max_loop_iterations_int): Same.
12550 (estimated_stmt_executions_int): Same.
12551 (max_stmt_executions): Same.
12552 (likely_max_stmt_executions): Same.
12553 (estimated_stmt_executions): Same.
12554 (stmt_dominates_stmt_p): Same.
12555 (nowrap_type_p): Same.
12556 (loop_exits_before_overflow): Same.
12557 (scev_var_range_cant_overflow): Same.
12558 (scev_probably_wraps_p): Same.
12559 (free_numbers_of_iterations_estimates): Same.
12560 * tree-ssa-loop-niter.h: Same.
12561 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12562 (idx_analyze_ref): Same.
12563 (analyze_ref): Same.
12564 (gather_memory_references_ref): Same.
12565 (mark_nontemporal_store): Same.
12566 (emit_mfence_after_loop): Same.
12567 (may_use_storent_in_loop_p): Same.
12568 (mark_nontemporal_stores): Same.
12569 (should_unroll_loop_p): Same.
12570 (volume_of_dist_vector): Same.
12571 (add_subscript_strides): Same.
12572 (self_reuse_distance): Same.
12573 (insn_to_prefetch_ratio_too_small_p): Same.
12574 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12575 (patch_loop_exit): Same.
12576 (find_or_create_guard_phi): Same.
12577 (easy_exit_values): Same.
12578 (connect_loop_phis): Same.
12579 (connect_loops): Same.
12580 (compute_new_first_bound): Same.
12581 (split_loop): Same.
12582 (tree_ssa_split_loops): Same.
12583 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12584 (is_maybe_undefined): Same.
12585 (tree_may_unswitch_on): Same.
12586 (simplify_using_entry_checks): Same.
12587 (tree_unswitch_single_loop): Same.
12588 (tree_unswitch_loop): Same.
12589 (tree_unswitch_outer_loop): Same.
12590 (empty_bb_without_guard_p): Same.
12591 (used_outside_loop_p): Same.
12592 (get_vop_from_header): Same.
12593 (hoist_guard): Same.
12594 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12595 (get_lsm_tmp_name): Same.
12596 * tree-ssa-loop.h: Same.
12597 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12598 (build_and_add_sum): Same.
12599 (no_side_effect_bb): Same.
12600 (get_ops): Same.
12601 (linearize_expr): Same.
12602 (should_break_up_subtract): Same.
12603 (linearize_expr_tree): Same.
12604 * tree-ssa-scopedtables.c: Same.
12605 * tree-ssa-scopedtables.h: Same.
12606 * tree-ssa-structalias.c (condense_visit): Same.
12607 (label_visit): Same.
12608 (dump_pred_graph): Same.
12609 (perform_var_substitution): Same.
12610 (move_complex_constraints): Same.
12611 (remove_preds_and_fake_succs): Same.
12612 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12613 (determine_bb_domination_status): Same.
12614 (duplicate_thread_path): Same.
12615 (thread_through_all_blocks): Same.
12616 * tree-ssa-threadupdate.h: Same.
12617 * tree-streamer-in.c (streamer_read_string_cst): Same.
12618 (input_identifier): Same.
12619 (unpack_ts_type_common_value_fields): Same.
12620 (unpack_ts_block_value_fields): Same.
12621 (unpack_ts_translation_unit_decl_value_fields): Same.
12622 (unpack_ts_omp_clause_value_fields): Same.
12623 (streamer_read_tree_bitfields): Same.
12624 (streamer_alloc_tree): Same.
12625 (lto_input_ts_common_tree_pointers): Same.
12626 (lto_input_ts_vector_tree_pointers): Same.
12627 (lto_input_ts_poly_tree_pointers): Same.
12628 (lto_input_ts_complex_tree_pointers): Same.
12629 (lto_input_ts_decl_minimal_tree_pointers): Same.
12630 (lto_input_ts_decl_common_tree_pointers): Same.
12631 (lto_input_ts_decl_non_common_tree_pointers): Same.
12632 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12633 (lto_input_ts_field_decl_tree_pointers): Same.
12634 (lto_input_ts_function_decl_tree_pointers): Same.
12635 (lto_input_ts_type_common_tree_pointers): Same.
12636 (lto_input_ts_type_non_common_tree_pointers): Same.
12637 (lto_input_ts_list_tree_pointers): Same.
12638 (lto_input_ts_vec_tree_pointers): Same.
12639 (lto_input_ts_exp_tree_pointers): Same.
12640 (lto_input_ts_block_tree_pointers): Same.
12641 (lto_input_ts_binfo_tree_pointers): Same.
12642 (lto_input_ts_constructor_tree_pointers): Same.
12643 (lto_input_ts_omp_clause_tree_pointers): Same.
12644 (streamer_read_tree_body): Same.
12645 * tree-streamer.h: Same.
12646 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12647 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12648 (vect_analyze_possibly_independent_ddr): Same.
12649 (vect_analyze_data_ref_dependence): Same.
12650 (vect_compute_data_ref_alignment): Same.
12651 (vect_enhance_data_refs_alignment): Same.
12652 (vect_analyze_data_ref_access): Same.
12653 (vect_check_gather_scatter): Same.
12654 (vect_find_stmt_data_reference): Same.
12655 (vect_create_addr_base_for_vector_ref): Same.
12656 (vect_setup_realignment): Same.
12657 (vect_supportable_dr_alignment): Same.
12658 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12659 (adjust_phi_and_debug_stmts): Same.
12660 (vect_set_loop_mask): Same.
12661 (add_preheader_seq): Same.
12662 (vect_maybe_permute_loop_masks): Same.
12663 (vect_set_loop_masks_directly): Same.
12664 (vect_set_loop_condition_masked): Same.
12665 (vect_set_loop_condition_unmasked): Same.
12666 (slpeel_duplicate_current_defs_from_edges): Same.
12667 (slpeel_add_loop_guard): Same.
12668 (slpeel_can_duplicate_loop_p): Same.
12669 (create_lcssa_for_virtual_phi): Same.
12670 (iv_phi_p): Same.
12671 (vect_update_ivs_after_vectorizer): Same.
12672 (vect_gen_vector_loop_niters_mult_vf): Same.
12673 (slpeel_update_phi_nodes_for_loops): Same.
12674 (slpeel_update_phi_nodes_for_guard1): Same.
12675 (find_guard_arg): Same.
12676 (slpeel_update_phi_nodes_for_guard2): Same.
12677 (slpeel_update_phi_nodes_for_lcssa): Same.
12678 (vect_do_peeling): Same.
12679 (vect_create_cond_for_alias_checks): Same.
12680 (vect_loop_versioning): Same.
12681 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12682 (vect_inner_phi_in_double_reduction_p): Same.
12683 (vect_analyze_scalar_cycles_1): Same.
12684 (vect_fixup_scalar_cycles_with_patterns): Same.
12685 (vect_get_loop_niters): Same.
12686 (bb_in_loop_p): Same.
12687 (vect_get_max_nscalars_per_iter): Same.
12688 (vect_verify_full_masking): Same.
12689 (vect_compute_single_scalar_iteration_cost): Same.
12690 (vect_analyze_loop_form_1): Same.
12691 (vect_analyze_loop_form): Same.
12692 (vect_active_double_reduction_p): Same.
12693 (vect_analyze_loop_operations): Same.
12694 (neutral_op_for_slp_reduction): Same.
12695 (vect_is_simple_reduction): Same.
12696 (vect_model_reduction_cost): Same.
12697 (get_initial_def_for_reduction): Same.
12698 (get_initial_defs_for_reduction): Same.
12699 (vect_create_epilog_for_reduction): Same.
12700 (vectorize_fold_left_reduction): Same.
12701 (vectorizable_reduction): Same.
12702 (vectorizable_induction): Same.
12703 (vectorizable_live_operation): Same.
12704 (loop_niters_no_overflow): Same.
12705 (vect_get_loop_mask): Same.
12706 (vect_transform_loop_stmt): Same.
12707 (vect_transform_loop): Same.
12708 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12709 (vect_determine_precisions): Same.
12710 (vect_pattern_recog_1): Same.
12711 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12712 * tree-vect-stmts.c (stmt_vectype): Same.
12713 (process_use): Same.
12714 (vect_init_vector_1): Same.
12715 (vect_truncate_gather_scatter_offset): Same.
12716 (get_group_load_store_type): Same.
12717 (vect_build_gather_load_calls): Same.
12718 (vect_get_strided_load_store_ops): Same.
12719 (vectorizable_simd_clone_call): Same.
12720 (vectorizable_store): Same.
12721 (permute_vec_elements): Same.
12722 (vectorizable_load): Same.
12723 (vect_transform_stmt): Same.
12724 (supportable_widening_operation): Same.
12725 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12726 (vec_info::free_stmt_vec_info): Same.
12727 (vect_free_loop_info_assumptions): Same.
12728 (vect_loop_vectorized_call): Same.
12729 (set_uid_loop_bbs): Same.
12730 (vectorize_loops): Same.
12731 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12732 * tree.c (add_tree_to_fld_list): Same.
12733 (fld_type_variant_equal_p): Same.
12734 (fld_decl_context): Same.
12735 (fld_incomplete_type_of): Same.
12736 (free_lang_data_in_binfo): Same.
12737 (need_assembler_name_p): Same.
12738 (find_decls_types_r): Same.
12739 (get_eh_types_for_runtime): Same.
12740 (find_decls_types_in_eh_region): Same.
12741 (find_decls_types_in_node): Same.
12742 (assign_assembler_name_if_needed): Same.
12743 * value-prof.c (stream_out_histogram_value): Same.
12744 * value-prof.h: Same.
12745 * var-tracking.c (use_narrower_mode): Same.
12746 (prepare_call_arguments): Same.
12747 (vt_expand_loc_callback): Same.
12748 (resolve_expansions_pending_recursion): Same.
12749 (vt_expand_loc): Same.
12750 * varasm.c (const_hash_1): Same.
12751 (compare_constant): Same.
12752 (tree_output_constant_def): Same.
12753 (simplify_subtraction): Same.
12754 (get_pool_constant): Same.
12755 (output_constant_pool_2): Same.
12756 (output_constant_pool_1): Same.
12757 (mark_constants_in_pattern): Same.
12758 (mark_constant_pool): Same.
12759 (get_section_anchor): Same.
12760 * vr-values.c (compare_range_with_value): Same.
12761 (vr_values::extract_range_from_phi_node): Same.
12762 * vr-values.h: Same.
12763 * web.c (unionfind_union): Same.
12764 * wide-int.h: Same.
12765
12766 2019-07-09 Martin Sebor <msebor@redhat.com>
12767
12768 PR c++/61339
12769 * align.h: Change class-key from class to struct and vice versa
12770 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12771 * alloc-pool.h: Same.
12772 * asan.c (shadow_mem_size): Same.
12773 * auto-profile.c: Same.
12774 * basic-block.h: Same.
12775 * bitmap.h: Same.
12776 * cfgexpand.c (set_rtl): Same.
12777 (expand_one_stack_var_at): Same.
12778 * cfghooks.h: Same.
12779 * cfgloop.h: Same.
12780 * cgraph.h: Same.
12781 * config/i386/i386.h: Same.
12782 * df-problems.c (df_print_bb_index): Same.
12783 * df-scan.c: Same.
12784 * df.h (df_single_use): Same.
12785 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12786 (layout::annotation_line_showed_range_p): Same.
12787 (get_printed_columns): Same.
12788 (correction::ensure_terminated): Same.
12789 (line_corrections::~line_corrections): Same.
12790 * dojump.h: Same.
12791 * dse.c: Same.
12792 * dump-context.h: Same.
12793 * dumpfile.h: Same.
12794 * dwarf2out.c: Same.
12795 * edit-context.c: Same.
12796 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12797 * flags.h: Same.
12798 * function.c (assign_stack_local): Same.
12799 * function.h: Same.
12800 * gcc.c: Same.
12801 * gcov.c (block_info::block_info): Same.
12802 * genattrtab.c: Same.
12803 * genextract.c: Same.
12804 * genmatch.c (comparison_code_p): Same.
12805 (id_base::id_base): Same.
12806 (decision_tree::print): Same.
12807 * genoutput.c: Same.
12808 * genpreds.c (write_one_predicate_function): Same.
12809 * genrecog.c (validate_pattern): Same.
12810 (find_operand_positions): Same.
12811 (optimize_subroutine_group): Same.
12812 (merge_pattern_transition::merge_pattern_transition): Same.
12813 (merge_pattern_info::merge_pattern_info): Same.
12814 (merge_state_result::merge_state_result): Same.
12815 (merge_into_state): Same.
12816 * gensupport.c: Same.
12817 * gensupport.h: Same.
12818 * ggc-common.c (init_ggc_heuristics): Same.
12819 * ggc-tests.c (test_union): Same.
12820 * gimple-loop-interchange.cc (dump_induction): Same.
12821 * gimple-loop-versioning.cc: Same.
12822 * gimple-match.h (gimple_match_cond::any_else): Same.
12823 * gimple-ssa-backprop.c: Same.
12824 * gimple-ssa-sprintf.c: Same.
12825 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12826 Same.
12827 (store_immediate_info::store_immediate_info): Same.
12828 (merged_store_group::apply_stores): Same.
12829 (get_location_for_stmts): Same.
12830 * gimple-ssa-strength-reduction.c: Same.
12831 * gimple-ssa-warn-alloca.c: Same.
12832 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12833 * godump.c (go_type_decl): Same.
12834 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12835 * hash-map.h: Same.
12836 * hash-set-tests.c (test_set_of_strings): Same.
12837 * hsa-brig.c: Same.
12838 * hsa-common.h: Same.
12839 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12840 * input.c (assert_loceq): Same.
12841 * input.h: Same.
12842 * ipa-cp.c: Same.
12843 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12844 * ipa-fnsummary.h: Same.
12845 * ipa-inline.h: Same.
12846 * ipa-prop.h: Same.
12847 * ipa-split.c (visit_bb): Same.
12848 * ira-int.h (minmax_set_iter_next): Same.
12849 * loop-invariant.c: Same.
12850 * loop-iv.c: Same.
12851 * lra-eliminations.c: Same.
12852 * lra-int.h: Same.
12853 * lra-lives.c (mark_regno_dead): Same.
12854 * lra-remat.c: Same.
12855 * lra-spills.c: Same.
12856 * lto-streamer.h: Same.
12857 * mem-stats.h: Same.
12858 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12859 * omp-low.c (omp_clause_aligned_alignment): Same.
12860 * optabs-query.h (get_vcond_eq_icode): Same.
12861 * optabs.h: Same.
12862 * opts.c (wrap_help): Same.
12863 * poly-int.h: Same.
12864 * predict.c (predict_paths_leading_to_edge): Same.
12865 * pretty-print.h: Same.
12866 * profile-count.h: Same.
12867 * read-md.h: Same.
12868 * read-rtl-function.c: Same.
12869 * ree.c: Same.
12870 * reginfo.c: Same.
12871 * regrename.c: Same.
12872 * regrename.h: Same.
12873 * reload.h: Same.
12874 * rtl-iter.h: Same.
12875 * rtl.h (costs_add_n_insns): Same.
12876 * sanopt.c: Same.
12877 * sched-int.h: Same.
12878 * sel-sched-ir.h: Same.
12879 * selftest.h: Same.
12880 * sese.h (vec_find): Same.
12881 * stmt.c: Same.
12882 * target-globals.h: Same.
12883 * tree-affine.c (aff_combination_find_elt): Same.
12884 * tree-affine.h: Same.
12885 * tree-data-ref.h: Same.
12886 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12887 * tree-predcom.c: Same.
12888 * tree-scalar-evolution.c (find_var_scev_info): Same.
12889 * tree-ssa-alias.h: Same.
12890 * tree-ssa-ccp.c: Same.
12891 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12892 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12893 (rewrite_mem_refs): Same.
12894 (execute_sm_if_changed): Same.
12895 (hoist_memory_references): Same.
12896 * tree-ssa-loop-ivopts.c (operator<=): Same.
12897 * tree-ssa-loop.h: Same.
12898 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12899 * tree-ssa-structalias.c: Same.
12900 * tree-switch-conversion.h (cluster::cluster): Same.
12901 (simple_cluster::simple_cluster): Same.
12902 * tree-vect-patterns.c (type_conversion_p): Same.
12903 * tree-vectorizer.c (dump_stmt_cost): Same.
12904 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12905 * tree.c (protected_set_expr_location): Same.
12906 * tree.h (desired_pro_or_demotion_p): Same.
12907 (fndecl_built_in_p): Same.
12908 * unique-ptr-tests.cc: Same.
12909 * var-tracking.c (delete_variable_part): Same.
12910 * varasm.c (assemble_real): Same.
12911 (tree_output_constant_def): Same.
12912 * vec.c: Same.
12913 * wide-int-bitmask.h: Same.
12914 * wide-int.h (decompose): Same.
12915
12916 2019-07-09 Richard Biener <rguenther@suse.de>
12917
12918 PR tree-optimization/91114
12919 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12920 find a vector type isn't fatal.
12921
12922 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12923
12924 * config/aarch64/aarch64-simd.md
12925 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12926 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12927 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12928 (*aarch64_crypto_aese_fused,
12929 *aarch64_crypto_aesd_fused): Update to new definition.
12930 * config/aarch64/aarch64.c
12931 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12932
12933 2019-07-09 Richard Biener <rguenther@suse.de>
12934
12935 * gimple-match.h (gimple_match_op::resimplify): New.
12936 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12937 gimple_resimplify4, gimple_resimplify5): Remove.
12938 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12939 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12940 Make static.
12941 (gimple_match_op::resimplify): New.
12942 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12943 according to availability. Use gimple_match_op::resimplify.
12944
12945 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12946
12947 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12948
12949 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12950
12951 * config/arm/crypto.md:
12952 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12953 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12954 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12955 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12956 * config/arm/arm.c
12957 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12958 * config/arm/aarch-common-protos.h
12959 (aarch_crypto_can_dual_issue): Remove.
12960 * config/arm/aarch-common.c
12961 (aarch_crypto_can_dual_issue): Likewise.
12962 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12963 * config/arm/cortex-a53.md: Likewise.
12964 * config/arm/cortex-a57.md: Likewise.
12965 * config/arm/iterators.md:
12966 (CRYPTO_BINARY): Redefine.
12967 (CRYPTO_UNARY): Removed.
12968 (CRYPTO_AES, CRYPTO_AESMC): New.
12969
12970 2019-07-09 Richard Biener <rguenther@suse.de>
12971
12972 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12973 (vn_reference_lookup_3): If the main ref has no access path recorded
12974 but orig_ref has use it to do access-path based disambiguation.
12975 (vn_reference_lookup_pieces): Adjust.
12976 (vn_reference_lookup): Pass down original ref if we valueized.
12977
12978 2019-07-09 Martin Liska <mliska@suse.cz>
12979
12980 * doc/extend.texi: Document influence on loop
12981 optimizers.
12982
12983 2019-07-09 Martin Liska <mliska@suse.cz>
12984
12985 * lto-compress.c (lto_normalized_zstd_level): Do not use
12986 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12987 of libzstd. One can use 0 as a default compression level.
12988
12989 2019-07-09 Martin Liska <mliska@suse.cz>
12990
12991 * doc/invoke.texi: Add link from -fprofile-dir option.
12992 Use better wording for 'gcno filename'.
12993
12994 2019-07-08 Martin Sebor <msebor@redhat.com>
12995
12996 PR middle-end/71924
12997 PR middle-end/90549
12998 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12999 comment.
13000 (args_loc_t): New type.
13001 (args_loc_t, locmap_t): same.
13002 (diag_returned_locals): New function.
13003 (is_addr_local): Same.
13004 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13005 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13006 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13007
13008 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13009
13010 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13011 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13012 and casts in offset when different, both through gimple stmts
13013 and through trees. Rewritten using loops to minimize code duplication
13014 for each operand.
13015
13016 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13017
13018 * emit-rtl.c (set_insn_locations): New function moved from...
13019 * function.c (set_insn_locations): ...here.
13020 * ira-emit.c (emit_moves): Propagate location of the first instruction
13021 to the inserted move instructions.
13022 * reg-stack.c (compensate_edge): Set the location if the sequence is
13023 inserted on the edge.
13024 * rtl.h (set_insn_locations): Declare.
13025
13026 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13027
13028 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13029 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13030 .machine string.
13031
13032 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13033
13034 PR rtl-optimization/88233
13035 * common.opt (fsplit-wide-types-early): New option.
13036 * common/config/rs6000/rs6000-common.c
13037 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13038 OPT_LEVELS_ALL.
13039 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13040 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13041 flag_split_wide_types_early.
13042 (pass_data_lower_subreg3): New.
13043 (pass_lower_subreg3): New.
13044 (make_pass_lower_subreg3): New.
13045 * passes.def (pass_lower_subreg2): Move after the loop passes.
13046 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13047 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13048 the pass pipeline; its previous place is taken by ...
13049 (make_pass_lower_subreg3): ... this.
13050
13051 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13052
13053 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13054 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13055
13056 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13057
13058 * config/s390/constraints.md: Add new jsc constraint.
13059 * config/s390/predicates.md: New predicates.
13060 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13061 * config/s390/s390.c (s390_valid_shift_count): New function.
13062 (print_shift_count_operand): Use s390_valid_shift_count.
13063 (print_operand): Likewise.
13064 * config/s390/s390.md: Use new predicate.
13065 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13066 * config/s390/vector.md: Use new predicate.
13067
13068 2019-07-08 Andrew Waterman <andrew@sifive.com>
13069 Jim Wilson <jimw@sifive.com>
13070
13071 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13072 bitsize instead of BITS_PER_WORD.
13073
13074 2019-07-08 Martin Liska <mliska@suse.cz>
13075
13076 * collect2.c (defined): Revert to before r254460.
13077 (scan_prog_file): Revert to before r254460.
13078
13079 2019-07-08 Richard Biener <rguenther@suse.de>
13080
13081 PR tree-optimization/83518
13082 * tree-ssa-sccvn.c: Include splay-tree.h.
13083 (struct pd_range, struct pd_data): New.
13084 (struct vn_walk_cb_data): Add data to track partial definitions.
13085 (vn_walk_cb_data::~vn_walk_cb_data): New.
13086 (vn_walk_cb_data::push_partial_def): New.
13087 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13088 (vn_reference_lookup_2): When partial defs are registered give up.
13089 (vn_reference_lookup_3): Track partial defs for memset and
13090 constructor zeroing and for defs from constants.
13091
13092 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 * doc/install.texi (bootstrap-Og): Document.
13095
13096 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13097
13098 * config/riscv/pic.md (*local_pic_load_s<mode>)
13099 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13100 referenced by <mode>, giving...
13101 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13102 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13103 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13104 use <X:MODE> for the mode attribute.
13105
13106 2019-07-07 Jeff Law <law@redhat.com>
13107
13108 PR tree-optimization/91090
13109 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13110 in handling of ranges to simplify switch statements.
13111
13112 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13113
13114 * config/darwin.c (darwin_override_options): Make a final check on PIC
13115 options.
13116
13117 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13118
13119 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13120 on for kernel code.
13121
13122 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13123
13124 PR target/91068
13125 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13126 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13127 instead of matching them to "l" output operands.
13128
13129 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13130
13131 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13132 and check whether addr.reg is nonnull before using it.
13133
13134 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13135
13136 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13137 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13138 variable(s). For conditional lastprivate look through outer
13139 GIMPLE_OMP_SCAN context.
13140 (lower_omp_1): For conditional lastprivate look through outer
13141 GIMPLE_OMP_SCAN context.
13142
13143 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13144 member to combined_into_simd_safelen1.
13145 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13146 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13147 clauses if ctx->combined_into_simd_safelen1 put statements after the
13148 predicate conditionalized block rather than into it.
13149
13150 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13151
13152 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13153 operand 1.
13154 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13155 Make the choice of <mode> explicit, giving...
13156 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13157
13158 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13159
13160 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13161 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13162 of .md attributes.
13163 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13164 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13165 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13166 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13167 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13168 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13169 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13170 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13171 (*avx512f_scatterdi<mode>): Likewise.
13172 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13173
13174 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13175
13176 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13177 specify the mode iterator referenced by <mode>, giving...
13178 (*push1_h8300hs_<QHI:mode>): ...this.
13179
13180 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13181
13182 * config/gcn/gcn-valu.md
13183 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13184 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13185 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13186 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13187 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13188 but using the _exec comparison patterns.
13189 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13190 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13191 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13192 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13193 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13194 but using the _exec comparison patterns.
13195
13196 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13197
13198 * config/arm/sync.md
13199 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13200 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13201 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13202 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13203 <SIDI:cas_cmp_str>.
13204
13205 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13206
13207 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13208 (maybe_lookup_ctx): Add forward declaration.
13209 (omp_find_scan): Likewise. Walk into body of simd if composited
13210 with worksharing loop.
13211 (scan_omp_simd_scan): New function.
13212 (scan_omp_1_stmt): Call it.
13213 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13214 ctx->for_simd_scan_phase.
13215 (lower_rec_input_clauses): Do much less work for inscan reductions
13216 in ctx->for_simd_scan_phase is_simd regions.
13217 (lower_omp_scan): Set is_simd also on simd constructs composited
13218 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13219 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13220 emit their body after in simd constructs composited with worksharing
13221 loop.
13222 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13223
13224 * omp-low.c (omp_find_scan): Make static.
13225 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13226 the second loop, var2 represents the first partial sum and so needs
13227 to go before rprivb[ivar].
13228
13229 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13230
13231 * config/rs6000/rs6000-logue.c: Remove unused code.
13232
13233 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13234
13235 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13236
13237 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13238
13239 PR target/90712
13240 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13241 check with a frame laid out check.
13242
13243 2019-07-05 Richard Biener <rguenther@suse.de>
13244
13245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13246 when comparing against a store with possibly the same value.
13247
13248 2019-07-05 Richard Biener <rguenther@suse.de>
13249
13250 PR tree-optimization/91091
13251 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13252 (walk_non_aliased_vuses): Likewise.
13253 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13254 (get_continuation_for_phi): New tbaa_p parameter and pass
13255 it down.
13256 (walk_non_aliased_vuses): Likewise.
13257 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13258 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13259 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13260 Likewise.
13261 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13262 (adjust_offsets_for_equal_base_address): New function.
13263 (vn_reference_lookup_3): Use it to catch more base equivalences.
13264 Handle and pass down tbaa_p flag.
13265 (vn_reference_lookup_pieces): Adjust.
13266 (vn_reference_lookup): Remove alias-set altering, instead pass
13267 down false as tbaa_p.
13268
13269 2019-07-05 Richard Biener <rguenther@suse.de>
13270
13271 PR tree-optimization/91091
13272 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13273 accesses can happen with -fno-strict-aliasing.
13274
13275 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13276
13277 * tree-ssa-alias.c (alias_stats): Add
13278 nonoverlapping_component_refs_since_match_p_must_overlap.
13279 (dump_alias_stats): Print it.
13280 (nonoverlapping_component_refs_since_match_p): Add early exit.
13281 (nonoverlapping_component_refs_p): Do not account early exit.
13282
13283 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13284
13285 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13286 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13287 (emit_eh_dispatch): Delete.
13288 (lower_catch): Emit the eh_dispatch manually and set the location of
13289 the first catch statement onto it.
13290 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13291 (lower_eh_dispatch): Propagate location.
13292 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13293 (eliminate_build): Likewise.
13294
13295 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13296
13297 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13298 phi nodes if possible.
13299 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13300 location info on the newly created statement.
13301 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13302 newly created increment if needed.
13303
13304 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13305
13306 PR middle-end/78884
13307 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13308 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13309 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13310 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13311 ctx->add_safelen1 is set.
13312
13313 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13314 GOMP_loop_start at the start of second worksharing loop in a scan.
13315 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13316 worksharing loop in a scan even if there are conditional lastprivates,
13317 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13318
13319 2019-07-04 Jan Hubicka <jh@suse.cz>
13320
13321 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13322 Fix check for match in the ref walk.
13323
13324 2019-07-04 Martin Liska <mliska@suse.cz>
13325
13326 * tree-ssa-loop-niter.c
13327 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13328 (estimate_numbers_of_iterations):
13329 Support __builtin_expect_with_probability for analysis
13330 of # of loop iterations.
13331
13332 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13333
13334 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13335 * except.c: Likewise.
13336 * expr.c (expand_expr_real_1): Reject it.
13337 * gimplify.c (gimplify_expr): Gimplify it, within
13338 TRY_FINALLY_EXPR.
13339 * tree-dump.c (dequeue_and_dump): Dump it.
13340 * tree-pretty-print.c (dump_generic_node): Likewise.
13341 * tree.c (block_may_fallthru): Handle it.
13342 * tree.def (EH_ELSE_EXPR): Introduce it.
13343 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13344 with GIMPLE_EH_ELSE as try/finally/else.
13345
13346 2019-07-04 Richard Biener <rguenther@suse.de>
13347
13348 PR ipa/91062
13349 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13350 parameter whether to disable GC collection.
13351 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13352 honor it.
13353 (execute_all_ipa_transforms): Likewise and pass it down.
13354 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13355 collection from applying IPA transforms.
13356 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13357 from applying IPA transforms.
13358
13359 2019-07-04 Richard Biener <rguenther@suse.de>
13360
13361 PR tree-optimization/90911
13362 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13363 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13364 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13365 scalar_loop_scaling.
13366 (vect_transform_loop): Scale scalar loop profile if needed.
13367 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13368 the loop copy from if-conversion adjust edge probabilities
13369 and scale the vectorized loop body profile, queue the scalar
13370 profile for updating after peeling.
13371
13372 2019-07-04 Jan Hubicka <jh@suse.cz>
13373
13374 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13375 parameters; return early for must-alias.
13376 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13377 outer types match, try nonoverlapping_component_refs
13378 if must-alias is not obvious.
13379 (indirect_refs_may_alias_p): Likewise.
13380 (refs_may_alias_p_2): Likewise.
13381
13382 2019-07-04 Richard Biener <rguenther@suse.de>
13383
13384 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13385 argument.
13386 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13387 globals into...
13388 (struct vn_walk_cb_data): New callback data struct.
13389 (vn_reference_lookup_2): Adjust.
13390 (vn_reference_lookup_3): Likewise.
13391 (vn_reference_lookup_pieces): Likewise.
13392 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13393 (visit_reference_op_load): Adjust.
13394
13395 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13396
13397 PR tree-optimization/91063
13398 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13399 stmt from stmts sequence before calling vect_init_vector_1.
13400 Formatting fix.
13401
13402 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13403
13404 PR target/88833
13405 * fwprop.c (reg_single_def_p): New function.
13406 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13407 (forward_propagate_into): New parameter reg_prop_only
13408 with default value false.
13409 Propagate def's src into loop only if SET_SRC and SET_DEST
13410 of def_set have single definitions.
13411 Likewise if reg_prop_only is set to true.
13412 (fwprop): New param fwprop_addr_p.
13413 Integrate fwprop_addr into fwprop.
13414 (fwprop_addr): Remove.
13415 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13416 to true.
13417 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13418 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13419 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13420
13421 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13422
13423 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13424 in worksharing loop scans.
13425
13426 PR tree-optimization/91074
13427 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13428 temporary.
13429
13430 PR rtl-optimization/90756
13431 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13432 for VECTOR_TYPE_P.
13433
13434 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13435
13436 * config/aarch64/aarch64.md: Remove redundant constraints from
13437 define_expand but keep some patterns untouched if they are
13438 specially selected by TARGET_SECONDARY_RELOAD hook.
13439 * config/aarch64/aarch64-sve.md: Likewise.
13440 * config/aarch64/atomics.md: Remove redundant constraints from
13441 define_expand.
13442 * config/aarch64/aarch64-simd.md: Likewise.
13443
13444 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13445
13446 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13447 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13448 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13449 clauses.
13450 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13451 DARWIN_NOPIE_SPEC.
13452
13453 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13454
13455 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13456 (STARTFILE_SPEC): Split crt3 into a separate spec.
13457 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13458 (DARWIN_CRT2_SPEC): New.
13459 (DARWIN_CRT3_SPEC): New.
13460 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13461 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13462 (DARWIN_CRT3_SPEC): New.
13463
13464 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13465
13466 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13467 Change the RTL attribute "length" from "4" to "*" to allow the
13468 length attribute to be adjusted automatically for prefixed load,
13469 store, and add immediate instructions.
13470 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13471 Likewise.
13472 (extendsi<mode>2, EXTSI iterator): Likewise.
13473 (movsi_internal1): Likewise.
13474 (movsi_from_sf): Likewise.
13475 (movdi_from_sf_zero_ext): Likewise.
13476 (mov<mode>_internal): Likewise.
13477 (movcc_internal1, QHI iterator): Likewise.
13478 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13479 (movsf_from_si): Likewise.
13480 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13481 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13482 (mov<mode>, FMOVE128 iterator): Likewise.
13483 (movdi_internal64): Likewise.
13484 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13485 Likewise.
13486 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13487 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13488 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13489 (vsx_splat_v4sf): Likewise.
13490
13491 2019-07-03 Mark Wielaard <mark@klomp.org>
13492
13493 PR debug/90981
13494 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13495 DW_AT_addr_base if there is actually a .debug_addr section with
13496 addresses.
13497 (output_addr_table): Add DWARF5 table header generation here after
13498 checking there are actually any addresses from...
13499 (dwarf2out_finish): ...here.
13500
13501 2019-07-03 Richard Biener <rguenther@suse.de>
13502
13503 PR middle-end/91069
13504 * match.pd (vec_perm -> bit_insert): Fix element read from
13505 first vector.
13506
13507 2019-07-03 Martin Liska <mliska@suse.cz>
13508
13509 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13510 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13511 condition.
13512 * generic-match-head.c: Include dbgcnt.h.
13513 * gimple-match-head.c: Likewise.
13514
13515 2019-07-03 Martin Liska <mliska@suse.cz>
13516
13517 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13518 (GCOV_COUNTER_V_TOPN): New.
13519 (GCOV_COUNTER_V_INDIR): Use _topn.
13520 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13521 (GCOV_TOPN_VALUES): New.
13522 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13523 (GCOV_TOPN_VALUES_COUNTERS): New.
13524 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13525 * tree-profile.c:
13526 (gimple_init_gcov_profiler): Rename variables from one_value
13527 to topn_values.
13528 (gimple_gen_one_value_profiler): Remove.
13529 (gimple_gen_topn_values_profiler): New function.
13530 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13531 names instead of SINGLE_VALUE.
13532 (stream_out_histogram_value): Likewise.
13533 (stream_in_histogram_value): Likewise.
13534 (get_most_common_single_value): Likewise.
13535 (gimple_divmod_fixed_value_transform): Likewise.
13536 (gimple_stringops_transform): Likewise.
13537 (gimple_divmod_values_to_profile): Likewise.
13538 (gimple_stringops_values_to_profile): Likewise.
13539 (gimple_find_values_to_profile): Likewise.
13540 * value-prof.h (enum hist_type): Rename to TOPN.
13541 (gimple_gen_one_value_profiler): Remove.
13542 (gimple_gen_topn_values_profiler): New.
13543
13544 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13545
13546 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13547 if it has the DW_AT_data_member_location attribute.
13548
13549 2019-07-03 Richard Biener <rguenther@suse.de>
13550
13551 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13552 dumping.
13553
13554 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13555
13556 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13557 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13558 (tlsdesc_small_sve_<mode>): Likewise.
13559
13560 2019-07-03 Martin Liska <mliska@suse.cz>
13561
13562 * Makefile.in: Define ZSTD_LIB.
13563 * common.opt: Adjust compression level
13564 to support also zstd levels.
13565 * config.in: Regenerate.
13566 * configure: Likewise.
13567 * configure.ac: Add --with-zstd and --with-zstd-include options
13568 and detect ZSTD.
13569 * doc/install.texi: Mention zstd dependency.
13570 * gcc.c: Print supported LTO compression algorithms.
13571 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13572 (lto_compression_zstd): Likewise.
13573 (lto_uncompression_zstd): Likewise.
13574 (lto_end_compression): Dispatch in between zlib and zstd.
13575 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13576 (lto_uncompression_zlib): Make it static.
13577 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13578 * lto-section-in.c (lto_get_section_data): Pass info
13579 about used compression.
13580 * lto-streamer-out.c: By default use zstd when possible.
13581 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13582 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13583
13584 2019-07-03 Martin Liska <mliska@suse.cz>
13585
13586 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13587 * lto-section-out.c (lto_destroy_simple_output_block): Never
13588 compress LTO_section_lto section.
13589 * lto-streamer-out.c (produce_asm): Do not set major_version
13590 and minor_version.
13591 (lto_output_toplevel_asms): Likewise.
13592 (produce_lto_section): New function.
13593 (lto_output): Call produce_lto_section.
13594 (lto_write_mode_table): Do not set major_version and
13595 minor_version.
13596 (produce_asm_for_decls): Likewise.
13597 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13598 type.
13599 (struct lto_header): Remove.
13600 (struct lto_section): New struct.
13601 (struct lto_simple_header): Do not inherit from lto_header.
13602 (struct lto_file_decl_data): Add lto_section_header field.
13603
13604 2019-07-03 Martin Liska <mliska@suse.cz>
13605
13606 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13607 dead assignemts.
13608 * reg-stack.c (check_asm_stack_operands): Likewise.
13609 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13610 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13611 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13612 force_expand_binop.
13613
13614 2019-07-03 Martin Liska <mliska@suse.cz>
13615
13616 PR tree-optimization/90892
13617 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13618 in string constants.
13619
13620 2019-07-03 Martin Liska <mliska@suse.cz>
13621
13622 PR middle-end/90899
13623 * multiple_target.c (create_dispatcher_calls): Add to comdat
13624 group only if set for ifunc.
13625
13626 2019-07-03 Martin Liska <mliska@suse.cz>
13627
13628 PR target/88056
13629 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13630 Define local_object_name in outer scope in order to handle
13631 use-after-scope issue.
13632
13633 2019-07-03 Martin Liska <mliska@suse.cz>
13634
13635 * common.opt: Add fprofile-note.
13636 * coverage.c (coverage_init): Append the option
13637 to bbg_file_name.
13638 * doc/invoke.texi: Document -fprofile-note.
13639
13640 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13641
13642 PR tree-optimization/91033
13643 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13644 vect_analyze_data_refs): Add bool * arguments.
13645 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13646 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13647 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13648 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13649 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13650 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13651 vect_analyze_data_refs caller.
13652
13653 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13654 clause.
13655 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13656 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13657 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13658 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13659 OMP_CLAUSE__SCANTEMP_ entry.
13660 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13661 * tree-pretty-print.c (dump_omp_clause): Likewise.
13662 * tree-nested.c (convert_nonlocal_omp_clauses,
13663 convert_local_omp_clauses): Likewise.
13664 * omp-general.h (struct omp_for_data): Add have_scantemp and
13665 have_nonctrl_scantemp members.
13666 * omp-general.c (omp_extract_for_data): Initialize them.
13667 * omp-low.c (struct omp_context): Add scan_exclusive member.
13668 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13669 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13670 ctx->scan_exclusive.
13671 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13672 of !ctx->scan_inclusive.
13673 (lower_rec_input_clauses): Simplify gimplification of dtors using
13674 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13675 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13676 loops. Don't add barrier for reduction_omp_orig_ref if
13677 ctx->scan_??xclusive.
13678 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13679 (lower_omp_scan): Use ctx->scan_exclusive instead
13680 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13681 reductions. Use new_vard != new_var instead of repeated
13682 omp_is_reference calls.
13683 (omp_find_scan, lower_omp_for_scan): New functions.
13684 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13685 inscan reductions.
13686 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13687 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13688 and fd->have_scantemp.
13689
13690 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13691 on worksharing loop propagate it as shared clause to containing
13692 combined parallel.
13693
13694 * omp-expand.c (expand_omp_for_static_nochunk,
13695 expand_omp_for_static_chunk): For nowait worksharing loop with
13696 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13697 at the end.
13698
13699 2019-07-02 qing zhao <qing.zhao@oracle.com>
13700
13701 PR preprocessor/90581
13702 * doc/cppopts.texi: Add document for -fmax-include-depth.
13703 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13704
13705 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13706
13707 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13708 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13709 (mmx_packssdw): Ditto.
13710 (mmx_punpckhbw): Ditto.
13711 (mmx_punpcklbw): Ditto.
13712 (mmx_punpckhwd): Ditto.
13713 (mmx_punpcklwd): Ditto.
13714 (mmx_punpckhdq): Ditto.
13715 (mmx_punpckldq): Ditto.
13716 (*vec_dupv4hi): Ditto.
13717 (*vec_dupv2si): Ditto.
13718 (mmx_pmovmskb): Ditto.
13719 * config/i386/sse.md (sse_cvtpi2ps): Use
13720 TARGET_SSE2 && SSE_REG_P in split condition.
13721 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13722 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13723 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13724 (ssse3_pshufbv8qi3): Ditto.
13725 (ssse3_palignrdi): Ditto.
13726
13727 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13728
13729 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13730 with inlined save and restore.
13731
13732 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13733
13734 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13735 to be inserted on single successor edge of the entry block. Then call
13736 commit_edge_insertions instead of inserting the instructions manually.
13737 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13738 RTL expansion and rebuild jump labels chain.
13739
13740 2019-07-02 Richard Biener <rguenther@suse.de>
13741
13742 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13743 TI_CHREC_KNOWN.
13744 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13745 Define here.
13746 * tree.c (build_common_tree_nodes): Initialize them.
13747 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13748 Make declarations comments.
13749 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13750 chrec_known): Remove definitions.
13751 (initialize_scalar_evolutions_analyzer): Remove.
13752 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13753 * tree-streamer.c (preload_common_nodes): Do not preload
13754 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13755
13756 2019-07-02 Jan Hubicka <jh@suse.cz>
13757
13758 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13759 sanity check.
13760
13761 2019-07-02 Jan Hubicka <jh@suse.cz>
13762
13763 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13764 to ..
13765 (nonoverlapping_component_refs_since_match_p): ... this one;
13766 handle also non-decl bases; return -1 if search gave up.
13767 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13768 nonoverlapping_component_refs_of_decl_p_no_alias to
13769 nonoverlapping_component_refs_since_match_p_may_alias,
13770 nonoverlapping_component_refs_since_match_p_no_alias.
13771 (dump_alias_stats): Update dumping.
13772 (aliasing_matching_component_refs_p): Break out from ...;
13773 dispatch to nonoverlapping_component_refs_for_decl_p
13774 and nonoverlapping_component_refs_since_match_p.
13775 (aliasing_component_refs_p): ... here; call
13776 nonoverlapping_component_refs_p in scenarios where we can not
13777 precisely determine base match.
13778 (decl_refs_may_alias_p): Use
13779 nonoverlapping_component_refs_since_match_p.
13780 (indirect_ref_may_alias_decl_p): Do not call
13781 nonoverlapping_component_refs_p.
13782 (indirect_refs_may_alias_p): Likewise.
13783
13784 2019-07-02 Jan Hubicka <jh@suse.cz>
13785
13786 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13787 to clobber of return value.
13788
13789 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13790
13791 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13792 for is_neon_type instructions that have not already been categorized.
13793
13794 2019-07-02 Richard Biener <rguenther@suse.de>
13795
13796 PR tree-optimization/58483
13797 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13798 for MEM_REF base hashing.
13799 (equal_mem_array_ref_p): Likewise for base comparison.
13800
13801 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13802
13803 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13804 parameterized name.
13805 (signbit<mode>2): Use that name. Simplify.
13806
13807 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13808
13809 PR middle-end/66726
13810 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13811 Tune heuristic from PR71016 to allow MIN / MAX.
13812
13813 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13814
13815 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13816 parameterized name.
13817 (abs<mode>2): Use that name. Simplify.
13818
13819 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13820
13821 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13822 parameterized name.
13823 (neg<mode>2): Use that name. Simplify.
13824
13825 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13826
13827 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13828 name.
13829 (abs<mode>2): Use that name. Simplify.
13830
13831 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13832
13833 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13834 name.
13835 (neg<mode>2): Use that name. Simplify.
13836
13837 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13838
13839 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13840 ("enabled" attribute): Handle sse_noavx isa attribute.
13841 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13842 Use TARGET_SSE && SSE_REGNO_P in split condition.
13843 (*vec_dupv2sf): Ditto.
13844
13845 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13846
13847 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13848 name.
13849 (floatsi<mode>2): Use that name. Simplify.
13850
13851 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13852
13853 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13854 parameterized name.
13855 (extenddf<mode>2_vsx): Make this a parameterized name.
13856 (extenddf<mode>2): Use those names. Simplify.
13857
13858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13859
13860 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13861 name.
13862 (eh_return): Use that name. Simplify.
13863
13864 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13865
13866 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13867 (doloop_end): Use that name. Simplify.
13868
13869 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13870
13871 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13872 parameterized name.
13873 (indirect_jump): Use that name. Simplify.
13874
13875 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13876
13877 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13878 parameterized name.
13879 (abs<mode>2): Use that name. Simplify.
13880
13881 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13882
13883 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13884 parameterized name.
13885 (fix_trunc<mode>si2): Use that name. Simplify.
13886
13887 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13888
13889 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13890 (allocate_stack): Use that name. Simplify.
13891
13892 2019-07-01 Martin Sebor <msebor@redhat.com>
13893
13894 PR middle-end/90923
13895 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13896 (hash_map::get_or_insert): Same. Reformat comment.
13897 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13898 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13899 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13900 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13901 (hash_table::hash_table (const hash_table&)): Use copy ctor
13902 instead of assignment to copy elements.
13903
13904 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13905 John David Anglin <danglin@gcc.gnu.org>
13906
13907 PR target/90963
13908 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13909 using saved frame pointer.
13910
13911 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13912
13913 PR middle-end/64242
13914 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13915 Add frame clobber and schedule blockage.
13916
13917 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13918
13919 * doc/invoke.texi (Link Options): Further editorial changes to
13920 -flinker-output docs.
13921
13922 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13923
13924 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13925 Load both operands of a PLUS into registers separately.
13926
13927 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13928
13929 * config/s390/vector.md: Fix shift count operand printing.
13930
13931 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13932
13933 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13934
13935 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13936
13937 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13938 Use recog_data to test for an output operand.
13939
13940 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13941
13942 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13943 exclude any others that are disparaged or that are bound to need
13944 a reload or spill.
13945 (ira_get_dup_out_num): Expand comment.
13946
13947 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13948
13949 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13950 constraint string for each operand/alternative combo. Only handle
13951 '%' at the start of constraint strings, and look for it outside
13952 the main loop.
13953
13954 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13955
13956 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13957 alternative_mask instead of HARD_REG_SET to represent a
13958 bitmask of alternatives.
13959 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13960 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13961
13962 2019-07-01 Martin Liska <mliska@suse.cz>
13963
13964 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13965 use () for a constructor call.
13966 (test_applying_fixits_line_out_of_range): Likewise.
13967 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13968 argument.
13969 (free_page): Likewise.
13970
13971 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13972
13973 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13974 parameter names to match usage (no functional change).
13975 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13976
13977 2019-07-01 Richard Biener <rguenther@suse.de>
13978
13979 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13980 pass parameter.
13981 (pass_fre::execute): Honor it.
13982 * passes.def: Adjust pass_fre invocations to allow iterating,
13983 add non-iterating pass_fre before late threading/dom.
13984
13985 2019-07-01 Richard Biener <rguenther@suse.de>
13986
13987 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13988 TARGET_MEM_REF handling to also handle address-taken ones.
13989
13990 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13991
13992 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13993 hardware attributes): Document avx512vp2intersect.
13994
13995 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13996
13997 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13998 (abs<mode>2): New expander.
13999 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14000 Use CODE_FOR_ssse3_absv8qi2.
14001 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14002 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14003
14004 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14005
14006 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14007 to sse, sse_noavx and avx. Update all uses.
14008
14009 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14010
14011 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14012 (*mmx_<plusminus_insn><mode>3): Ditto.
14013 (*mmx_mulv4hi3"): Ditto.
14014 (*mmx_smulv4hi3_highpart): Ditto.
14015 (*mmx_umulv4hi3_highpart): Ditto.
14016 (*mmx_pmaddwd): Ditto.
14017 (*sse2_umulv1siv1di3): Ditto.
14018 (*mmx_<code>v4hi3): Ditto.
14019 (*mmx_<code>v8qi3): Ditto.
14020 (mmx_ashr<mode>3): Ditto.
14021 ("mmx_<shift_insn><mode>3): Ditto.
14022 (*mmx_eq<mode>3): Ditto.
14023 (mmx_gt<mode>3): Ditto.
14024 (mmx_andnot<mode>3): Ditto.
14025 (*mmx_<code><mode>3): Ditto.
14026 (*mmx_pinsrw): Ditto.
14027 (*mmx_pextrw): Ditto.
14028 (mmx_pshufw_1): Ditto.
14029 (*mmx_uavgv8qi3): Ditto.
14030 (*mmx_uavgv4hi3): Ditto.
14031 ("mmx_psadbw): Ditto.
14032 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14033 (sse_cvttps2pi): Ditto.
14034 (ssse3_pmaddubsw): Ditto.
14035 (*ssse3_pmulhrswv4hi3): Ditto.
14036 (ssse3_psign<mode>3): Ditto.
14037
14038 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14039
14040 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14041 adjustment for bit-fields to all aggregate types.
14042
14043 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14044
14045 * config/rs6000/predicates.md (pcrel_address): Use
14046 SYMBOL_REF_LOCAL_P to determine if a label is local.
14047 (pcrel_external_address): New predicate.
14048 (non_prefixed_mem_operand): Delete, predicate not used.
14049 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14050 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14051 addressing.
14052 (SYMBOL_REF_PCREL_P): Likewise.
14053
14054 PR target/91009
14055 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14056 alternative.
14057 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14058 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14059 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14060
14061 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14062
14063 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14064 override on extra_headers.
14065
14066 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14067
14068 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14069 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14070 from warning.
14071 (darwin_driver_init): Likewise.
14072
14073 2019-06-28 Jan Beulich <jbeulich@suse.com>
14074
14075 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14076 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14077 Eliminate redundant alternative.
14078
14079 2019-06-28 Jan Beulich <jbeulich@suse.com>
14080
14081 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14082 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14083 Use vector_operand.
14084
14085 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14086
14087 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14088 having a lower cost regardless of the speed option.
14089
14090 2019-06-28 Jan Beulich <jbeulich@suse.com>
14091
14092 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14093 vector_operand plus, on both alternatives, "Bm" constraint.
14094
14095 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14096
14097 * config/arm/arm.md: Remove redundant constraints from
14098 define_expand but leave reload_inm and reload_outm patterns
14099 untouched since they need special constraints to work.
14100 * config/arm/arm-fixed.md: Remove redundant constraints from
14101 define_expand.
14102 * config/arm/iwmmxt.md: Likewise.
14103 * config/arm/neon.md: Likewise.
14104 * config/arm/sync.md: Likewise.
14105 * config/arm/thumb1.md: Likewise.
14106 * config/arm/vec-common.md: Likewise.
14107
14108 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14109
14110 * doc/install.texi: Document --disable-tm-clone-registry.
14111
14112 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14113
14114 PR c++/91024
14115 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14116 statements.
14117
14118 PR tree-optimization/91010
14119 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14120 return true. Otherwise, don't call operand_equal_p if offset1 or
14121 offset2 is NULL and just return false.
14122
14123 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14124
14125 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14126 user-specified float mode choice for kernel mode code.
14127
14128 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14129
14130 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14131 spec.
14132
14133 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14134
14135 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14136 use longcall for 64b code.
14137
14138 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14139
14140 * builtins.c (get_memory_rtx): Fix comment.
14141 * optabs.def (movmem_optab): Change to cpymem_optab.
14142 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14143 (emit_block_move_hints): Change movmem to cpymem.
14144 * defaults.h: Change movmem to cpymem.
14145 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14146 (default_use_by_pieces_infrastructure_p): Ditto.
14147 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14148 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14149 to cpymem.
14150 * config/aarch64/aarch64.h: Change movmem to cpymem.
14151 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14152 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14153 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14154 movmem to cpymem.
14155 * config/arc/arc-protos.h: Change movmem to cpymem.
14156 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14157 * config/arc/arc.h: Change movmem to cpymem in comment.
14158 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14159 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14160 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14161 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14162 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14163 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14164 * config/avr/avr-protos.h: Change movmem to cpymem.
14165 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14166 avr_out_movmem): Change movmem to cpymem.
14167 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14168 Change movmem to cpymem.
14169 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14170 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14171 Change movmem to cpymem.
14172 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14173 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14174 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14175 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14176 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14177 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14178 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14179 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14180 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14181 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14182 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14183 expand_small_cpymem_or_setmem,
14184 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14185 expand_set_or_cpymem_constant_prologue,
14186 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14187 * config/i386/i386-protos.h: Change movmem to cpymem.
14188 * config/i386/i386.h: Change movmem to cpymem in comment.
14189 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14190 (setmem<mode>): Change expansion function name.
14191 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14192 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14193 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14194 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14195 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14196 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14197 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14198 to cpymem.
14199 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14200 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14201 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14202 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14203 Change movmem to cpymem.
14204 * config/mips/mips.h: Change movmem to cpymem.
14205 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14206 * config/nds32/nds32-memory-manipulation.c
14207 (nds32_expand_movmemsi_loop_unknown_size,
14208 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14209 nds32_expand_movmemsi_unroll,
14210 nds32_expand_movmemsi): Change movmem to cpymem.
14211 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14212 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14213 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14214 (pa_adjust_insn_length): Change call to compute_movmem_length.
14215 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14216 movmemdi, movmemdi_prereload,
14217 movmemdi_postreload): Change movmem to cpymem.
14218 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14219 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14220 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14221 * config/riscv/riscv.h: Change movmem to cpymem.
14222 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14223 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14224 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14225 movmem to cpymem.
14226 * config/s390/s390-protos.h: Change movmem to cpymem.
14227 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14228 s390_expand_insv): Change movmem to cpymem.
14229 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14230 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14231 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14232 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14233 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14234 for nonexistent function.
14235 * config/vax/vax.h: Change movmem to cpymem in comment.
14236 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14237 * config/visium/visium.h: Change movmem to cpymem in comment.
14238 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14239 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14240 * doc/md.texi: Change movmem to cpymem and update description to match.
14241 * doc/rtl.texi: Change movmem to cpymem.
14242 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14243 * doc/tm.texi: Regenerate.
14244
14245 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14246
14247 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14248 -fvariable-expansion-in-unroller by default.
14249 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14250 default for Power.
14251
14252 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14253
14254 Revert
14255 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14256 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14257
14258 * config.gcc(rs6000-*-*): Define target_gtfiles.
14259
14260 2019-06-27 Jan Hubicka <jh@suse.cz>
14261
14262 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14263 (add_type_duplicate): When odr hash is not allocated, to nothing.
14264 (odr_based_tbaa_p): New function.
14265 (set_type_canonical_for_odr_type): New function.
14266 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14267 set_type_canonical_for_odr_type): New.
14268 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14269 ODR based TBAA are not equivalent to non-ODR types.
14270
14271 2019-06-27 Martin Liska <mliska@suse.cz>
14272
14273 PR tree-optimization/90974
14274 PR rtl-optimization/90975
14275 PR rtl-optimization/90976
14276 PR target/91016
14277 PR tree-optimization/91017
14278 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14279 unused tmp.
14280 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14281 initial commit of IRA.
14282 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14283 of op0 and op1.
14284 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14285 Remove unused mode1.
14286 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14287 to new_stmt_info.
14288
14289 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14290
14291 PR target/90991
14292 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14293 instead of register_operand for operands[1], add m to its constraints
14294 if operands[2] uses "C" constraint. Ensure in condition that if
14295 operands[2] is not 0, then operands[1] is not a MEM. For last two
14296 alternatives, use unaligned loads instead of aligned if operands[1] is
14297 misaligned_operand.
14298
14299 2019-06-27 Martin Liska <mliska@suse.cz>
14300
14301 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14302 dead assignments.
14303 * bt-load.c (move_btr_def): Likewise.
14304 * builtins.c (expand_builtin_apply_args_1): Likewise.
14305 (expand_builtin_apply): Likewise.
14306 * cfgexpand.c (expand_asm_stmt): Likewise.
14307 (construct_init_block): Likewise.
14308 * cfghooks.c (verify_flow_info): Likewise.
14309 * cfgloopmanip.c (remove_path): Likewise.
14310 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14311 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14312 * combine.c (simplify_if_then_else): Likewise.
14313 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14314 (choose_basereg): Likewise.
14315 (ix86_expand_prologue): Likewise.
14316 (ix86_preferred_output_reload_class): Likewise.
14317 * cselib.c (cselib_record_sets): Likewise.
14318 * df-scan.c (df_scan_alloc): Likewise.
14319 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14320 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14321 * emit-rtl.c (try_split): Likewise.
14322 * graphite-scop-detection.c (assign_parameter_index_in_region):
14323 Likewise.
14324 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14325 * ira-color.c (setup_profitable_hard_regs): Likewise.
14326 * ira.c (rtx_moveable_p): Likewise.
14327 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14328 * read-rtl.c (read_subst_mapping): Likewise.
14329 * regrename.c (scan_rtx): Likewise.
14330 * reorg.c (fill_slots_from_thread): Likewise.
14331 * tree-inline.c (tree_function_versioning): Likewise.
14332 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14333 * tree-ssa-sink.c (statement_sink_location): Likewise.
14334 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14335 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14336 (vect_create_epilog_for_reduction): Likewise.
14337 * tree.c (build_nonstandard_integer_type): Likewise.
14338
14339 2019-06-27 Richard Biener <rguenther@suse.de>
14340
14341 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14342
14343 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14344
14345 PR tree-optimization/89772
14346 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14347 out-of-bound accesses checking.
14348
14349 2019-06-27 Martin Liska <mliska@suse.cz>
14350
14351 PR tree-optimization/91014
14352 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14353 when LHS is NULL_TREE.
14354
14355 2019-06-27 Martin Liska <mliska@suse.cz>
14356
14357 * symbol-summary.h (traverse): Pass
14358 argument a to the call of callback.
14359 (gt_ggc_mx): Mark arguments as unused.
14360 (gt_pch_nx): Likewise.
14361
14362 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14363
14364 PR target/62147
14365 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14366 finiteness.
14367
14368 2019-06-26 Jeff Law <law@redhat.com>
14369
14370 PR tree-optimization/90883
14371 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14372 (delete_dead_or_redundant_assignment): Likewise.
14373
14374 PR tree-optimization/90883
14375 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14376 * tree-ssa-dse.c: Update various comments to distinguish between
14377 dead and redundant stores.
14378 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14379 (dse_optimize_redundant_stores): New function.
14380 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14381 Distinguish between dead and redundant calls in dump output. All
14382 callers updated.
14383 (delete_dead_or_redundant_assignment): Similarly for assignments.
14384 (dse_optimize_stmt): Handle _CHK variants. For statements which
14385 store 0 into multiple memory locations, try to prove a subsequent
14386 store is redundant.
14387
14388 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14389
14390 PR target/89021
14391 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14392 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14393
14394 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14395
14396 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14397 (branch_islands): New extern.
14398 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14399 * config/rs6000/rs6000.c: .. here.
14400
14401 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14402
14403 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14404 (powerpc*-*-*) ... to here.
14405
14406 2019-06-26 Jeff Law <law@redhat.com>
14407
14408 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14409 memcpy, memmove and memset builtins.
14410 (maybe_trim_memstar_call): Likewise.
14411
14412 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14413
14414 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14415
14416 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14417
14418 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14419
14420 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14421
14422 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14423 declaration.
14424 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14425 "static".
14426 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14427 declaration.
14428
14429 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14430
14431 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14432
14433 2019-06-26 Richard Biener <rguenther@suse.de>
14434
14435 PR ipa/90982
14436 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14437
14438 2019-06-26 Richard Biener <rguenther@suse.de>
14439
14440 * lto-streamer.h (lto_bitmap_alloc): Remove.
14441 (lto_bitmap_free): Likewise.
14442 * lto-streamer.c (lto_bitmap_alloc): Remove.
14443 (lto_bitmap_free): Likewise.
14444 (lto_obstack): Likewise.
14445 (lto_obstack_initialized): Likewise.
14446 * lto-streamer-out.c (lto_output): Use own obstack for local
14447 bitmap, free it consistently.
14448
14449 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14450
14451 PR target/90991
14452 * config/i386/sse.md
14453 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14454 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14455 insns if operands[2] is misaligned_operand.
14456
14457 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14458
14459 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14460 TARGET_POWERPC64.
14461 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14462 to GPR.
14463
14464 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14465
14466 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14467
14468 2019-06-26 Martin Liska <mliska@suse.cz>
14469
14470 PR tree-optimization/90973
14471 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14472 epilogue_cost_vec instead of prologue_cost_vec for
14473 a epilogue cost.
14474
14475 2019-06-26 Martin Liska <mliska@suse.cz>
14476
14477 * bb-reorder.c (connect_better_edge_p): Add missing else
14478 statement in the middle of if-else statements.
14479
14480 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14481 H.J. Lu <hongjiu.lu@intel.com>
14482 Olga Makhotina <olga.makhotina@intel.com>
14483
14484 * common/config/i386/i386-common.c
14485 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14486 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14487 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14488 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14489 (ix86_handle_option): Handle -mavx512vp2intersect.
14490 * config/i386/avx512vp2intersectintrin.h: New.
14491 * config/i386/avx512vp2intersectvlintrin.h: New.
14492 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14493 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14494 AVX512VP2INTERSECT.
14495 * config/i386/i386-builtin-types.def: Add new types.
14496 * config/i386/i386-builtin.def: Add new builtins.
14497 * config/i386/i386-builtins.c: (enum processor_features): Add
14498 F_AVX512VP2INTERSECT.
14499 (static const _isa_names_table isa_names_table): Ditto.
14500 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14501 __AVX512VP2INTERSECT__.
14502 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14503 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14504 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14505 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14506 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14507 * config/i386/i386-options.c (ix86_target_string): Add
14508 -mavx512vp2intersect.
14509 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14510 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14511 P2HImode and P2QImode.
14512 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14513 number for P2QImode and P2HImode.
14514 (ix86_regmode_natural_size): New function.
14515 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14516 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14517 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14518 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14519 * config/i386/i386.opt: Add -mavx512vp2intersect.
14520 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14521 avx512vp2intersectvlintrin.h.
14522 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14523 (define_mode_iterator VI48_AVX512VP2VL): New.
14524 (avx512vp2intersect_2intersect<mode>,
14525 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14526 * config.gcc: Add avx512vp2intersectvlintrin.h and
14527 avx512vp2intersectintrin.h to extra_headers.
14528 * doc/invoke.texi: Document -mavx512vp2intersect.
14529
14530 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14531
14532 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14533
14534 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14535
14536 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14537 savres_routine_syms, savres_routine_name, morestack_ref,
14538 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14539 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14540 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14541 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14542 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14543 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14544 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14545 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14546 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14547 get_stack_clash_protection_probe_interval,
14548 get_stack_clash_protection_guard_size,
14549 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14550 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14551 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14552 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14553 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14554 gen_frame_mem_offset, rs6000_savres_routine_name,
14555 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14556 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14557 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14558 rs6000_global_entry_point_prologue_needed_p,
14559 rs6000_get_separate_components, rs6000_components_for_bb,
14560 rs6000_disqualify_components, rs6000_emit_prologue_components,
14561 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14562 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14563 rs6000_output_savres_externs, rs6000_output_function_prologue,
14564 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14565 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14566 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14567 rs6000_output_function_epilogue, gen_add3_const,
14568 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14569 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14570 to rs6000-logue.c.
14571 (machine_function): Moved to rs6000.h.
14572 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14573 rs6000-internal.h.
14574 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14575 savres_routine_syms, savres_routine_name, morestack_ref,
14576 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14577 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14578 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14579 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14580 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14581 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14582 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14583 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14584 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14585 get_stack_clash_protection_probe_interval,
14586 get_stack_clash_protection_guard_size,
14587 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14588 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14589 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14590 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14591 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14592 gen_frame_mem_offset, rs6000_savres_routine_name,
14593 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14594 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14595 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14596 rs6000_global_entry_point_prologue_needed_p,
14597 rs6000_get_separate_components, rs6000_components_for_bb,
14598 rs6000_disqualify_components, rs6000_emit_prologue_components,
14599 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14600 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14601 rs6000_output_savres_externs, rs6000_output_function_prologue,
14602 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14603 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14604 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14605 rs6000_output_function_epilogue, gen_add3_const,
14606 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14607 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14608 to here from rs6000.c.
14609 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14610 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14611 quad_address_offset_p) Moved to here from rs6000.c.
14612 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14613 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14614 collector.
14615
14616 2019-06-25 Martin Liska <mliska@suse.cz>
14617
14618 * hash-table.c (hashtab_chk_error): Move here from ...
14619 * hash-table.h (hashtab_chk_error): ... here.
14620
14621 2019-06-25 Martin Liska <mliska@suse.cz>
14622
14623 PR tree-optimization/90978
14624 * df-scan.c (df_update_entry_block_defs): Remove dead else
14625 branch.
14626 (df_update_exit_block_uses): Likewise.
14627
14628 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14629 Andrew Stubbs <ams@codesourcery.com>
14630
14631 * config.gcc (thread_file): Set to gcn for AMD GCN.
14632 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14633 (TARGET_EMUTLS_VAR_INIT): New hook.
14634
14635 2019-06-25 Martin Jambor <mjambor@suse.cz>
14636
14637 PR ipa/90939
14638 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14639
14640 2019-06-25 Richard Biener <rguenther@suse.de>
14641
14642 PR tree-optimization/90930
14643 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14644 into parallel form in the last pass instance.
14645
14646 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14647
14648 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14649 (arc_legitimize_pic_address): Simplify and cleanup the function.
14650 (SYMBOLIC_CONST): Remove.
14651 (prepare_pic_move): Likewise.
14652 (prepare_move_operands): Handle complex mov cases here.
14653 (arc_legitimize_address_0): Remove call to
14654 arc_legitimize_pic_address.
14655 (arc_legitimize_address): Remove call to
14656 arc_legitimize_tls_address.
14657 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14658 (movhi_insn): Likewise.
14659
14660 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14661
14662 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14663 PTRDIFF_TYPE.
14664 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14665 format of "__intN" types for UINTMAX_TYPE.
14666 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14667 format of "__intN" types for SIZETYPE.
14668 * tree.c (build_common_tree_nodes): Accept "__intN__"
14669 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14670 * doc/invoke.texi: Document that __intN__ disables pedantic
14671 warnings.
14672
14673 2019-06-25 Jan Hubicka <jh@suse.cz>
14674
14675 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14676 base2_alias_set is non-zero before doing TBAA based disambiguation.
14677
14678 2019-06-25 Martin Liska <mliska@suse.cz>
14679
14680 PR tree-optimization/90973
14681 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14682 of prologue and epilogue.
14683
14684 2019-06-24 Jan Hubicka <jh@suse.cz>
14685
14686 * ipa-utils.h (type_with_linkage_p): Verify that type is
14687 CXX_ODR_P.
14688 (odr_type_p): Remove extra return.
14689 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14690 hash STRING_FLAG only for arrays and integers.
14691 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14692 Update analogously.
14693 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14694 Likewise.
14695 * print-tree.c (print_node): Print cxx-odr-p
14696 and string-flag.
14697 * tree.c (need_assembler_name_p): Also check that type
14698 is CXX_ODR_TYPE_P
14699 (verify_type_variant): Update verification of SRING_FLAG;
14700 also check CXX_ODR_P.
14701 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14702 (TYPE_STRING_FLAG): Use it.
14703 (TYPE_CXX_ODR_P): New macro.
14704 * dwarf2out.c (gen_array_type_die): First check that type
14705 is an array and then test string flag.
14706
14707 2019-06-24 Richard Biener <rguenther@suse.de>
14708
14709 PR tree-optimization/90972
14710 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14711 in common code, dealing with STRING_CST properly.
14712
14713 2019-06-24 Richard Biener <rguenther@suse.de>
14714
14715 PR tree-optimization/90930
14716 PR tree-optimization/90316
14717 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14718 decrement of limit.
14719
14720 2019-06-24 Martin Sebor <msebor@redhat.com>
14721
14722 * tree-pretty-print.h: Remove unnecessary punctuation characters
14723 from a diagnostic.
14724 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14725
14726 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14727
14728 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14729 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14730 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14731
14732 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14733
14734 * config/rs6000/darwin.h: Handle GCC target pragma.
14735
14736 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14737
14738 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14739
14740 2019-06-22 Jeff Law <law@redhat.com>
14741
14742 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14743
14744 2019-06-22 Jan Hubicka <jh@suse.cz>
14745
14746 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14747 give up on bitfields; continue searching for different refs
14748 appearing later.
14749
14750 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14751
14752 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14753 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14754 containing the offset as possible simd lane access. Look through
14755 widening conversion. Move the
14756 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14757
14758 2019-06-21 Richard Biener <rguenther@suse.de>
14759
14760 PR tree-optimization/90930
14761 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14762 flag on new stmts to avoid re-processing them.
14763
14764 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14765
14766 PR c++/90875 - added -Wswitch-outside-range option
14767 * doc/invoke.texi (Wswitch-outside-range): Document.
14768
14769 2019-06-21 Jeff Law <law@redhat.com>
14770
14771 PR tree-optimization/90949
14772 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14773 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14774
14775 2019-06-21 Richard Biener <rguenther@suse.de>
14776
14777 PR debug/90914
14778 * dwarf2out.c (prune_unused_types_walk): Always consider
14779 function-local extern declarations as used.
14780
14781 2019-06-21 Richard Biener <rguenther@suse.de>
14782
14783 PR tree-optimization/90913
14784 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14785 the scalar variant of if-conversion versioning.
14786
14787 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14788
14789 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14790 create another "omp scan inscan exclusive" array if
14791 !ctx->scan_inclusive.
14792 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14793 (lower_omp_scan): Likewise.
14794 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14795 2-bit bitfield for simd_lane_access_p member.
14796 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14797 aux == (void *)-4 as simd lane access.
14798 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14799 comment with permutations to show the canonical permutation order.
14800 (vectorizable_scan_store): Handle exclusive scan.
14801 (vectorizable_store): Call vectorizable_scan_store even for
14802 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14803
14804 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14805 "omp simd array" arrays with one byte elements.
14806
14807 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14808
14809 * config/alpha/alpha.md (@unaligned_store<mode>):
14810 Rename from unaligned_store<mode>.
14811 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14812 * config/alpha/sync.md (@load_locked_<mode>): Rename
14813 from load_locked_<mode>.
14814 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14815 (@atomic_compare_and_swap<mode>_1): Rename
14816 from atomic_compare_and_swap<mode>_1.
14817 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14818 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14819 Use gen_reload_in_aligned and gen_unaligned_store.
14820 (emit_load_locked): Remove.
14821 (emit_store_conditional): Ditto.
14822 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14823 (alpha_split_compare_and_swap): Ditto.
14824 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14825 (alpha_split_compare_and_swap_12): Use gen_load_locked
14826 and gen_store_conditional.
14827 (alpha_split_atomic_exchange): Ditto.
14828 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14829 (alpha_split_atomic_exchange_12): Use gen_load_locked
14830 and gen_store_conditional.
14831
14832 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14833
14834 * config/aarch64/aarch64-errata.h: New file.
14835 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14836 (CA53_ERR_843419_SPEC): Delete.
14837 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14838 * config/aarch64/aarch64-linux.h: Likewise.
14839 * config/aarch64/aarch64-netbsd.h: Likewise.
14840 * config/aarch64/aarch64-freebsd.h: Likewise.
14841
14842 2019-06-20 Marek Polacek <polacek@redhat.com>
14843
14844 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14845
14846 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14847
14848 * config/rs6000/rs6000.md (isa attribute): Add support for
14849 for a future processor.
14850
14851 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14852
14853 PR target/54855
14854 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14855 standard scalar operation pattern for V2DF.
14856 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14857 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14858 (*ieee_<ieee_maxmin><mode>3): Likewise.
14859 (vec_setv2df_0): Likewise.
14860
14861 2019-06-20 Jan Hubicka <jh@suse.cz>
14862
14863 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14864 parameter; it has no use in gimple memory model.
14865 (indirect_ref_may_alias_decl_p): Update.
14866
14867 2019-06-20 Martin Liska <mliska@suse.cz>
14868
14869 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14870 to 10.
14871
14872 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14873
14874 * tree-vect-stmts.c (enum scan_store_kind): New type.
14875 (scan_store_can_perm_p): Change last argument from int * to
14876 vec<enum scan_store_kind> *, record precisely which permutations
14877 need whole vector left shift or that plus VEC_COND_EXPR.
14878 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14879 and additional VEC_COND_EXPR only for those iterations that need it.
14880
14881 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14882
14883 * config.gcc: Fix ARM --with-fpu checking and error message.
14884
14885 2019-06-19 Marek Polacek <polacek@redhat.com>
14886
14887 PR c++/60364 - noreturn after first decl not diagnosed.
14888 * attribs.c (get_attribute_namespace): No longer static.
14889 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14890 attributes.
14891 (attr_noreturn_exclusions): Make it extern.
14892 * attribs.h (get_attribute_namespace): Declare.
14893 * tree-inline.c (function_attribute_inlinable_p): Use
14894 get_attribute_name.
14895
14896 2019-06-19 Martin Sebor <msebor@redhat.com>
14897
14898 PR tree-optimization/90626
14899 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14900
14901 PR tree-optimization/90626
14902 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14903 (handle_builtin_string_cmp): Call it.
14904
14905 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14906
14907 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14908 and DARWIN_NOPIE_SPEC.
14909 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14910 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14911 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14912 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14913 (DARWIN_EXPORT_DYNAMIC): Delete.
14914 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14915 and pie options processing to darwin.h.
14916 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14917
14918 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14919
14920 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14921 in computing the number of options to be moved.
14922
14923 2019-06-19 Maya Rashish <coypu@sdf.org>
14924
14925 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14926 (CLEAR_INSN_CACHE) Use it.
14927
14928 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14929
14930 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14931
14932 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14933
14934 PR middle-end/84521
14935 * builtins.c (expand_builtin_setjmp_setup): Save
14936 hard_frame_pointer_rtx.
14937 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14938 restore fp.
14939 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14940 non-local goto.
14941 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14942 elimination code.
14943 (remove_reg_equal_offset_note): Remove unused function.
14944 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14945 code.
14946 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14947 (arc_builtin_setjmp_frame_value): Remove function.
14948 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14949 (avr_builtin_setjmp_frame_value): Remove function.
14950 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14951 (ix86_builtin_setjmp_frame_value): Remove function.
14952 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14953 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14954 (sparc_builtin_setjmp_frame_value): Remove function.
14955 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14956 (vax_builtin_setjmp_frame_value): Remove function.
14957 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14958 pointer if has_nonlocal_label.
14959
14960 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14961
14962 * doc/md.texi: Document vec_shl_<mode> pattern.
14963 * optabs.def (vec_shl_optab): New optab.
14964 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14965 argument, if == vec_shl_optab, check for left whole vector shift
14966 pattern rather than right shift.
14967 (expand_vec_perm_const): Add vec_shl_optab support.
14968 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14969 in the comment.
14970 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14971 can be handled by vec_shl_optab.
14972 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14973 (check_scan_store): Use it.
14974 (vectorizable_scan_store): If target can't do normal permutations,
14975 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14976 after it.
14977 * config/i386/sse.md (vec_shl_<mode>): New expander.
14978
14979 * omp-low.c (lower_rec_input_clauses): Handle references properly
14980 in inscan clauses.
14981 (lower_omp_scan): Likewise.
14982
14983 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14984
14985 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14986 mem_mode is BLKmode.
14987
14988 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14989
14990 PR target/90922
14991 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14992 pointer adjustment for the case of no callee-saved registers and
14993 stack frame bigger than 128 bytes.
14994
14995 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14996
14997 PR middle-end/90862
14998 * omp-low.c (check_omp_nesting_restrictions): Handle
14999 GF_OMP_TARGET_KIND_OACC_DECLARE.
15000
15001 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15002
15003 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15004 (@add<mode>3_carry): Rename from add<mode>3_carry.
15005 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15006 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15007 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15008 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15009 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15010 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15011 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15012 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15013 (cmpstrnsi): Use gen_cmp_1.
15014 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15015 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15016 (@umonitor_<mode>): Rename from umonitor_<mode>.
15017 * config/i386/i386-expand.c (ix86_expand_copysign):
15018 Use gen_copysign3_const and gen_copysign3_var.
15019 (ix86_expand_xorsign): Use gen_xorsign3_1.
15020 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15021 gen_sub3_carry_ccgz and gen_cmp1.
15022 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15023 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15024 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15025 (ix86_split_lshr): Ditto.
15026 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15027
15028 2019-06-18 Jason Merrill <jason@redhat.com>
15029
15030 * tree.c (build_constructor): Add MEM_STAT_DECL.
15031
15032 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15033
15034 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15035 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15036 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15037 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15038 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15039 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15040 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15041 Use CC_NZC instead of CC.
15042 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15043 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15044 (aarch64_print_operand): Handle E_CC_NZCmode.
15045 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15046 of gen_set_clobber_cc.
15047
15048 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15049
15050 * config/aarch64/aarch64-sve.md: Tabify file.
15051
15052 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15053
15054 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15055 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15056 * config/aarch64/aarch64-sve.md: Use it.
15057
15058 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15059
15060 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15061 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15062 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15063 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15064 (aarch64_expand_sve_vec_cmp_int): Use it.
15065 (aarch64_expand_sve_vec_cmp_float): Likewise.
15066 * config/aarch64/aarch64-sve.md: Likewise throughout.
15067
15068 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15069 Kugan Vivekanandarajah <kuganv@linaro.org>
15070
15071 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15072 (*cond_<optab><mode>_z): Fold into...
15073 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15074 operand 4 can be tied to operand 0 (either inherently or via RA).
15075
15076 2019-06-18 Richard Biener <rguenther@suse.de>
15077
15078 PR debug/90900
15079 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15080 as if optimized away.
15081
15082 2019-06-18 Tom de Vries <tdevries@suse.de>
15083
15084 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15085 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15086 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15087 Rename to ...
15088 (define_insn "@set_softstack_<mode>"): ... this.
15089 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15090 (define_insn "@omp_simt_enter_<mode>"): ... this.
15091 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15092 (define_insn "@omp_simt_exit_<mode>"): ... this.
15093
15094 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15095
15096 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15097 vf parameter. Restore the previous iv step of nscalars_step,
15098 but give it iv_type rather than compare_type. Tweak code order
15099 to match the comments.
15100 (vect_set_loop_condition_masked): Update accordingly.
15101 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15102 for iv_precision. Tweak comment formatting.
15103
15104 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15105
15106 * config/darwin.c: Strip trailing whitespace.
15107
15108 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15109
15110 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15111 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15112
15113 2019-06-18 Martin Jambor <mjambor@suse.cz>
15114
15115 PR ipa/90889
15116 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15117 caller does not have flag_ipa_cp set.
15118
15119 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15120
15121 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15122 from "*fold_left_plus_<mode>", updated operands order.
15123 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15124 * internal-fn.c (mask_fold_left_direct): New define.
15125 (expand_mask_fold_left_optab_fn): Likewise.
15126 (direct_mask_fold_left_optab_supported_p): Likewise.
15127 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15128 * optabs.def (mask_fold_left_plus_optab): New optab.
15129 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15130 masked internal_fn for a reduction ifn.
15131 (vectorize_fold_left_reduction): Add support for masking reductions.
15132
15133 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15134
15135 PR middle-end/80791
15136 * target.def (predict_doloop_p): New hook.
15137 * targhooks.h (default_predict_doloop_p): New declaration.
15138 * targhooks.c (default_predict_doloop_p): New function.
15139 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15140 * doc/tm.texi: Regenerate.
15141 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15142 (TARGET_PREDICT_DOLOOP_P): New macro.
15143 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15144
15145 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15146
15147 * omp-low.c (struct omp_context): Add scan_inclusive field.
15148 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15149 if inclusive scan.
15150 (struct omplow_simd_context): Add lastlane member.
15151 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15152 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15153 1 or 2 argument.
15154 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15155 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15156 (lower_omp_scan): New function.
15157 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15158 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15159 check 3rd argument if present rather than 2nd.
15160 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15161 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15162 2-bit bitfield.
15163 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15164 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15165 than 2nd.
15166 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15167 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15168 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15169 init.
15170 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15171 IFN_GOMP_SIMD_LANE argument.
15172 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15173 encoded ->aux value.
15174 * tree-vect-stmts.c: Include attribs.h.
15175 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15176 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15177 functions.
15178 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15179 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15180
15181 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15182
15183 PR target/62055
15184 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15185 (*nabs<mode>2_1): Ditto.
15186 (nabs sse-reg splitter): New splitter.
15187 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15188
15189 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15190
15191 PR bootstrap/90873.
15192 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15193 TMR index check.
15194
15195 2019-06-17 Tom de Vries <tdevries@suse.de>
15196
15197 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15198 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15199 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15200 ...
15201 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15202 match_operand 0.
15203 (define_insn "omp_simt_enter_insn"): Rename to ...
15204 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15205 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15206 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15207 gen_omp_simt_enter_si.
15208 (define_expand "omp_simt_exit"): New.
15209 (define_insn "omp_simt_exit"): Rename to ...
15210 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15211 match_operand 0.
15212
15213 2019-06-17 Matthew Green <mrg@eterna.com.au>
15214 Maya Rashish <coypu@sdf.org>
15215
15216 * config.gcc (aarch64*-*-netbsd*): New target.
15217 * config/aarch64/aarch64-netbsd.h: New file.
15218 * config/aarch64/t-aarch64-netbsd: Likewise.
15219
15220 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15221
15222 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15223 the access path from base to first VIEW_CONVERT_EXPR or
15224 BIT_FIELD_REF.
15225
15226 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15227
15228 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15229 access path on BIT_FIELD_REFs.
15230
15231 2019-06-17 Martin Liska <mliska@suse.cz>
15232
15233 PR ipa/90874
15234 * ipa-utils.h (odr_type_p): Remove dead code.
15235
15236 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15237
15238 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15239 alternative Solaris 11.4 format.
15240 * configure: Regenerate.
15241
15242 2019-06-17 Tom de Vries <tdevries@suse.de>
15243
15244 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15245 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15246 match_operand 0.
15247 (define_insn "call_value_insn"): Rename to ...
15248 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15249 match_operand 0.
15250 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15251 DI.
15252
15253 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15254
15255 PR middle-end/64242
15256 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15257 frame clobbers and schedule block.
15258 (builtin_longjmp): Likewise.
15259
15260 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15261
15262 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15263 describe how to perform MSPABI compliant 64-bit shift.
15264 * config/msp430/msp430.md (ashldi3): New define_expand.
15265 (ashrdi3): New define_expand.
15266 (lshrdi3): New define_expand.
15267
15268 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15269
15270 * doc/sourcebuild.texi: Document new effective target keyword
15271 longlong64.
15272
15273 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15274
15275 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15276 indirect_refs_may_alias_p): Revert accidental commits.
15277
15278 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15279 at the end of structures.
15280
15281 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15282
15283 * config/darwin.c (machopic_indirect_call_target): Use renamed
15284 darwin_picsymbol_stubs to decide on output.
15285 (darwin_override_options): Handle darwin_picsymbol_stubs.
15286 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15287 (LD64_VERSION): Revise default.
15288 * config/darwin.opt: (mpic-symbol-stubs): New option.
15289 (darwin_picsymbol_stubs): New variable.
15290 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15291 rename to TARGET_MACHO_PICSYM_STUBS.
15292 * config/i386/i386.c (output_pic_addr_const): Likewise.
15293 * config/i386/i386.h Likewise.
15294 * config/rs6000/darwin.h: Likewise.
15295 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15296 darwin_picsymbol_stubs.
15297
15298 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15299
15300 * config/darwin.opt (prebind, noprebind, seglinkedit,
15301 noseglinkedit): Add RejectNegative.
15302
15303 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15304
15305 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15306 in my previous patch.
15307
15308 2019-06-16 Tom de Vries <tdevries@suse.de>
15309
15310 PR tree-optimization/89376
15311 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15312
15313 2019-06-15 Maya Rashish <coypu@sdf.org>
15314
15315 * doc/invoke.texi (Spec Files): Update location of the
15316 Fortran spec file.
15317
15318 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15319
15320 * doc/extend.texi (Common Function Attributes): Clarify
15321 no_sanitize. Fix grammar.
15322
15323 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15324
15325 * tree-ssa-alias.c (alias_stats): Add
15326 nonoverlapping_component_refs_p_may_alias,
15327 nonoverlapping_component_refs_p_no_alias,
15328 nonoverlapping_component_refs_of_decl_p_may_alias,
15329 nonoverlapping_component_refs_of_decl_p_no_alias.
15330 (dump_alias_stats): Dump them.
15331 (nonoverlapping_component_refs_of_decl_p): Add stats.
15332 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15333 ARRAY_REF.
15334
15335 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15336
15337 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15338 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15339 only.
15340 (*anddi3_doubleword): Split before reload. Merge with
15341 anddi->zext pre-reload splitter.
15342 (*andndi3_doubleword): Split before reload.
15343 (*<code>di3_doubleword): Ditto.
15344 (*one_cmpldi2_doubleword): Ditto.
15345
15346 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15347
15348 PR middle-end/90779
15349 * gimplify.c: Include omp-offload.h and context.h.
15350 (gimplify_bind_expr): Add "omp declare target" attributes
15351 to static block scope variables inside of target region or target
15352 functions.
15353
15354 2019-06-15 Tom de Vries <tdevries@suse.de>
15355
15356 PR tree-optimization/90009
15357 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15358 Return NULL if bb contains IFN_UNIQUE.
15359
15360 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15361
15362 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15363 (un): New define_mode_attr.
15364 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15365 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15366 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15367 merge into ...
15368 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15369
15370 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15371
15372 * config/darwin.opt: Add RejectNegative where needed, reorder
15373 and add minimal functional descriptions.
15374
15375 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15376
15377 PR rtl-optimization/90765
15378 * calls.c (update_stack_alignment_for_call): New function.
15379 (expand_call): Call update_stack_alignment_for_call when
15380 outgoing parameter is passed in the stack.
15381 (emit_library_call_value_1): Likewise.
15382 * function.c (locate_and_pad_parm): Don't update
15383 stack_alignment_needed and preferred_stack_boundary.
15384
15385 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15386
15387 PR target/90877
15388 * config/i386/i386-features.c
15389 (dimode_scalar_chain::compute_convert_gain): Replace
15390 mmxsse_to_integer with sse_to_integer.
15391 * config/i386/i386.c (ix86_register_move_cost): Verify that
15392 moves between MMX and non-MMX units require secondary memory.
15393 Correct costs of moves between SSE and integer units.
15394 * config/i386/i386.h (processor_costs): Rename cost of moving
15395 SSE register to integer to sse_to_integer. Rename cost of
15396
15397 2019-06-14 Matt Thomas <matt@3am-software.com>
15398 Matthew Green <mrg@eterna.com.au>
15399 Nick Hudson <skrll@netbsd.org>
15400 Maya Rashish <coypu@sdf.org>
15401 Richard Earnshaw <rearnsha@arm.com>
15402
15403 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15404 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15405 * config/arm/netbsd-eabi.h: New file.
15406 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15407 redefining.
15408 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15409 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15410 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15411 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15412
15413 2019-06-14 Richard Biener <rguenther@suse.de>
15414
15415 * tree-loop-distribution.c (classify_partition): Return
15416 whether a reduction appeared in all partitions and do not
15417 stop builtin detection because of this.
15418 (distribute_loop): Sort a non-builtin partition last if
15419 there's a reduction in all partitions and make sure the
15420 partition prevailing as last is not a builtin.
15421
15422 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15423
15424 PR ipa/90401
15425 * ipa-prop.c (add_to_agg_contents_list): New function.
15426 (clobber_by_agg_contents_list_p): Likewise.
15427 (extract_mem_content): Likewise.
15428 (get_place_in_agg_contents_list): Delete.
15429 (determine_known_aggregate_parts): Renamed from
15430 determine_locally_known_aggregate_parts. New parameter
15431 aa_walk_budget_p.
15432
15433 2019-06-13 Martin Sebor <msebor@redhat.com>
15434
15435 PR tree-optimization/90662
15436 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15437 to the same type.
15438
15439 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15440
15441 PR bootstrap/90873
15442 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15443 dbase is not TARGET_MEM_REF.
15444
15445 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15446
15447 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15448 Update all uses.
15449 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15450 Do not generate DImode extends for 32bit targets.
15451 (and->zext post-reload splitter): Use gen_extend_insn
15452 instead of indirect functions.
15453 (anddi->zext pre-reload splitter): New.
15454 (*zext<mode>_doubleword_and): Remove.
15455 (*zext<mode>_doubleword): Ditto.
15456 (*zextsi_doubleword): Dittto.
15457
15458 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15459
15460 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15461 Use gen_sub3_insn instead of indirect function.
15462 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15463 indirect function.
15464 (ix86_adjust_counter): Ditto.
15465
15466 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15467 Lijia He <helijia@linux.ibm.com>
15468
15469 PR tree-optimization/77820
15470 * tree-ssa-threadedge.c
15471 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15472 function.
15473 (thread_across_edge): Add call to
15474 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15475
15476 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15477
15478 * config/darwin-driver.c (validate_macosx_version_min): New.
15479 (darwin_default_min_version): Cleanup and validate supplied version.
15480 (darwin_driver_init): Likewise and push cleaned version into opts.
15481
15482 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15483
15484 PR tree-optimization/90869
15485 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15486 converts in MEM_REF referencing decl rather than view converts
15487 from decl type to MEM_REF type.
15488
15489 2019-06-13 Richard Biener <rguenther@suse.de>
15490
15491 PR tree-optimization/90856
15492 * tree-sra.c (build_ref_for_model): Only use
15493 build_reconstructed_reference when address-spaces are the same.
15494
15495 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15496
15497 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15498 wrap ei variable name in the declaration in ()s.
15499 (nvptx_single): Actually use mode_label variable. Formatting fix.
15500
15501 2019-06-13 Richard Biener <rguenther@suse.de>
15502
15503 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15504 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15505 also return the condition stmt.
15506 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15507 loop we can version and version that, reusing the loop version
15508 created by if-conversion instead of versioning again.
15509
15510 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15511
15512 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15513 may_contain_p.
15514 * tree-vrp (value_range_base::may_contain_p): Call into
15515 value_inside_range.
15516 (value_inside_range): Make private inside value_range_base class.
15517 Take min/max from *this.
15518 (range_includes_p): Remove.
15519 * tree-vrp.h (value_range_base): Add value_inside_range.
15520 (range_includes_p): Remove.
15521 (range_includes_zero_p): Call may_contain_p.
15522 * vr-values.c (compare_range_with_value): Same.
15523
15524 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15525
15526 * doc/extend.texi (ARC Function Attributes): Update info.
15527
15528 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15529
15530 PR tree-optimization/89713
15531 * doc/invoke.texi (-ffinite-loops): Document new option.
15532 * common.opt (-ffinite-loops): New option.
15533 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15534 IFN_GOACC_LOOP calls as necessary.
15535 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15536 is finite.
15537 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15538 IFN_GOACC_LOOP call is not used.
15539 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15540
15541 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15542
15543 PR target/88838
15544 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15545 compare_type is not with Pmode size, we will create an IV with
15546 Pmode size with truncated use (i.e. converted to the correct type).
15547 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15548 (vect_iv_limit_for_full_masking): New. Factored out of
15549 vect_set_loop_condition_masked.
15550 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15551 (vect_iv_limit_for_full_masking): Declare.
15552
15553 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15554
15555 PR target/88834
15556 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15557 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15558 (get_alias_ptr_type_for_ptr_address): Likewise.
15559 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15560 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15561 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15562 allow_reg_index_p.
15563
15564 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15565
15566 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15567
15568 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15569
15570 * common/config/pru/pru-common.c: New file.
15571 * config.gcc: Add PRU target.
15572 * config/pru/alu-zext.md: New file.
15573 * config/pru/constraints.md: New file.
15574 * config/pru/predicates.md: New file.
15575 * config/pru/pru-opts.h: New file.
15576 * config/pru/pru-passes.c: New file.
15577 * config/pru/pru-pragma.c: New file.
15578 * config/pru/pru-protos.h: New file.
15579 * config/pru/pru.c: New file.
15580 * config/pru/pru.h: New file.
15581 * config/pru/pru.md: New file.
15582 * config/pru/pru.opt: New file.
15583 * config/pru/t-pru: New file.
15584 * doc/extend.texi: Document PRU pragmas.
15585 * doc/invoke.texi: Document PRU-specific options.
15586 * doc/md.texi: Document PRU asm constraints.
15587
15588 2019-06-12 Martin Sebor <msebor@redhat.com>
15589
15590 PR middle-end/90676
15591 * tree-pretty-print.c (dump_mem_ref): New function. Include
15592 MEM_REF type in output when different size than operand.
15593 (dump_generic_node): Move code to dump_mem_ref and call it.
15594
15595 2019-06-12 Martin Sebor <msebor@redhat.com>
15596
15597 PR tree-optimization/90662
15598 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15599 to arrays.
15600
15601 2019-06-12 Tom de Vries <tdevries@suse.de>
15602
15603 PR tree-optimization/90009
15604 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15605
15606 2019-06-12 Martin Liska <mliska@suse.cz>
15607
15608 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15609 the created map.
15610 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15611 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15612 Do not sanitize created maps.
15613
15614 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15615
15616 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15617 value_range::singleton_p.
15618 * tree-vrp.c (value_range_constant_singleton): Remove.
15619 * tree-vrp.h (value_range_constant_singleton): Remove.
15620 * vr-values.c (vr_values::singleton): Use
15621 value_range::singleton_p.
15622
15623 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15624
15625 PR target/90811
15626 * cfgexpand.c (align_local_variable): Add really_expand argument,
15627 don't SET_DECL_ALIGN if it is false.
15628 (add_stack_var): Add really_expand argument, pass it through to
15629 align_local_variable.
15630 (expand_one_stack_var_1): Pass true as really_expand to
15631 align_local_variable.
15632 (expand_one_ssa_partition): Pass true as really_expand to
15633 add_stack_var.
15634 (expand_one_var): Pass really_expand through to add_stack_var.
15635
15636 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15637
15638 * config/arm/iterators.md (VABAL): New int iterator.
15639 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15640 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15641 UNSPEC_VABAL_U values.
15642
15643 2019-06-12 Martin Liska <mliska@suse.cz>
15644
15645 * value-prof.c (stream_out_histogram_value): Only first value
15646 can't be negative.
15647
15648 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15649
15650 PR c/90760
15651 * symtab.c (symtab_node::set_section): Allow being called on aliases
15652 as long as they aren't analyzed yet.
15653
15654 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15655
15656 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15657 to `mips_set_text_contents_type' to indicate whether a
15658 non-debug insn follows.
15659
15660 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15661
15662 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15663 enabling -mpcrel by default.
15664 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15665 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15666 that the test against -mcpu=future is done first. Then test if
15667 -mprefixed-addr is on for -mpcrel.
15668 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15669
15670 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15671
15672 PR target/90811
15673 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15674 instead of and.u%d.
15675
15676 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15677
15678 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15679
15680 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15681
15682 PR c++/90449 - add -Winaccessible-base option.
15683 * doc/invoke.texi (Winaccessible-base): Document.
15684
15685 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15686
15687 PR tree-optimization/62041
15688 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15689
15690 2019-06-11 Jason Merrill <jason@redhat.com>
15691
15692 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15693 * tree.c (get_tree_code_name): Likewise.
15694 * print-tree.c (print_node): Only briefly print a node with an
15695 invalid code.
15696
15697 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15698
15699 PR bootstrap/90819
15700 * trans-mem.c (tm_memopt_compute_available): Add assertion
15701 that blocks is not empty. Formatting fix.
15702
15703 2019-06-11 Martin Liska <mliska@suse.cz>
15704
15705 PR c++/87847
15706 * hash-table.h: Extend create_gcc, add one parameter
15707 that is passed into hash_table::hash_table.
15708
15709 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15710
15711 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15712 New prototype.
15713 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15714 Emit clobber also for non-sse operations.
15715 (ix86_split_fp_absneg_operator): New function.
15716 * config/i386/i386.md (SSEMODEF): New mode iterator.
15717 (ssevecmodef): New mode attribute.
15718 (<code>tf2): Use absneg code iterator.
15719 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15720 Add three-operand AVX alternatives.
15721 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15722 Use absneg code iterator and X87MODEF mode iterator.
15723 (absneg fp_reg non-sse splitter): Call absneg code iterator
15724 and X87MODEF mode iterator.
15725 (absneg general_reg non-sse splitter): Use absneg code iterator
15726 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15727 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15728 code iterator. Add three-operand AVX alternative.
15729 (absneg sse_reg splitter): Use absneg code iterator
15730 and SSEMODEF mode iterator. Handle AVX operands.
15731 (absneg fp_reg splitter): Use absneg code iterator
15732 and MODEF mode iterator.
15733 (absneg general_reg splitter): Merge splitters using MODEF mode
15734 iterator. Use absneg code iterator. Call
15735 ix86_split_fp_absneg_operator.
15736 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15737 Do not enable for non-sse modes before reload.
15738 (CSGNMODE): Remove.
15739 (CSGNVMODE): Ditto.
15740 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15741 ssevecmodef mode attribute instaed of CSGNVMODE.
15742 (copysign<mode>3_const): Ditto.
15743 (copysign<mode>3_var): Ditto.
15744 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15745 Use absneg code iterator. Simplify code using std::swap.
15746 * config/i386/predicates.md (absneg_operator): Remove.
15747
15748 2019-06-10 Martin Sebor <msebor@redhat.com>
15749
15750 * gimple-fold.c (get_range_strlen): Update comment that didn't
15751 make it into r267503 or related commits.
15752
15753 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15754
15755 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15756 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15757
15758 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15759
15760 * tree.def (OMP_SCAN): New tree code.
15761 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15762 OMP_CLAUSE_EXCLUSIVE.
15763 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15764 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15765 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15766 OMP_CLAUSE_{IN,EX}CLUSIVE.
15767 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15768 * tree-nested.c (convert_nonlocal_reference_stmt,
15769 convert_local_reference_stmt, convert_gimple_call): Handle
15770 GIMPLE_OMP_SCAN.
15771 * tree-pretty-print.c (dump_omp_clause): Handle
15772 OMP_CLAUSE_{IN,EX}CLUSIVE.
15773 (dump_generic_node): Handle OMP_SCAN.
15774 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15775 * gimple.h (gomp_scan): New type.
15776 (is_a_helper <gomp_scan *>::test,
15777 is_a_helper <const gomp_scan *>::test): New templates.
15778 (gimple_build_omp_scan): Declare.
15779 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15780 gimple_omp_scan_set_clauses): New inline functions.
15781 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15782 * gimple.c (gimple_build_omp_scan): New function.
15783 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15784 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15785 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15786 GIMPLE_OMP_TASKGROUP.
15787 (dump_gimple_omp_scan): New function.
15788 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15789 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15790 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15791 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15792 (is_gimple_stmt): Handle OMP_SCAN.
15793 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15794 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15795 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15796 mentioned in nested #pragma omp scan. Handle
15797 OMP_CLAUSE_{IN,EX}CLUSIVE.
15798 (gimplify_expr): Handle OMP_SCAN.
15799 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15800 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15801 simd constructs.
15802 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15803 GIMPLE_OMP_SCAN.
15804
15805 2019-06-10 Martin Liska <mliska@suse.cz>
15806
15807 * ipa-cp.c (ignore_edge_p): New function.
15808 (build_toporder_info): Use it.
15809 * ipa-inline.c (ignore_edge_p): New function.
15810 (inline_small_functions): Use it.
15811 * ipa-pure-const.c (ignore_edge_for_nothrow):
15812 Verify opt_for_fn for caller and callee.
15813 (ignore_edge_for_pure_const): Likewise.
15814 * ipa-reference.c (ignore_edge_p): Extend to check
15815 for opt_for_fn.
15816 * ipa-utils.c (searchc): Refactor.
15817 * ipa-utils.h: Fix coding style.
15818
15819 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15820
15821 * config/arc/arc.c (arc_rtx_costs): Update costs.
15822
15823 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15824
15825 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15826 (arc_split_ior): Likewise.
15827 (arc_check_mov_const): Likewise.
15828 (arc_split_mov_const): Likewise.
15829 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15830 (arc_rtx_costs): Replace check Crr with Cax constraint.
15831 (prepare_move_operands): Cleanup, remove unused code.
15832 (arc_split_ior): New function.
15833 (arc_check_ior_const): Likewise.
15834 (arc_split_mov_const): Likewise.
15835 (arc_check_mov_const): Likewise.
15836 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15837 in define_insn_and_split pattern.
15838 (iorsi3): Likewise.
15839 (mulsi3_v2): Add new matching variant.
15840 (andsi3_i): Cleanup pattern.
15841 (rotrsi3_cnt1): Update pattern.
15842 (rotrsi3_cnt8): New pattern.
15843 (ashlsi2_cnt8): Likewise.
15844 (ashlsi2_cnt16): Likewise.
15845 * config/arc/constraints.md (C0p): Update constraint.
15846 (Crr): Remove it.
15847 (C0x): New pattern.
15848 (Cax): New pattern.
15849
15850 2019-06-10 Martin Liska <mliska@suse.cz>
15851
15852 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15853 Update coding style.
15854 (sem_item_optimizer::dump_cong_classes):
15855 Print how many items are in a non-singular class. Improve
15856 coding style.
15857
15858 2019-06-10 Martin Liska <mliska@suse.cz>
15859
15860 * value-prof.c (dump_histogram_value): Change dump format.
15861 (gimple_mod_subtract_transform): Remove legacy comment.
15862
15863 2019-06-10 Martin Liska <mliska@suse.cz>
15864
15865 * value-prof.c (dump_histogram_value): Print histogram values
15866 only if present.
15867
15868 2019-06-10 Martin Liska <mliska@suse.cz>
15869
15870 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15871 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15872 * ipa-profile.c (ipa_profile_generate_summary):
15873 Use get_most_common_single_value.
15874 * tree-profile.c (gimple_init_gcov_profiler):
15875 Instrument with __gcov_one_value_profiler_v2
15876 and __gcov_indirect_call_profiler_v4.
15877 * value-prof.c (dump_histogram_value):
15878 Print all values for HIST_TYPE_SINGLE_VALUE.
15879 (stream_out_histogram_value): Update assert for
15880 N values.
15881 (stream_in_histogram_value): Set number of
15882 counters for HIST_TYPE_SINGLE_VALUE.
15883 (get_most_common_single_value): New.
15884 (gimple_divmod_fixed_value_transform):
15885 Use get_most_common_single_value.
15886 (gimple_ic_transform): Likewise.
15887 (gimple_stringops_transform): Likewise.
15888 (gimple_find_values_to_profile): Set number
15889 of counters for HIST_TYPE_SINGLE_VALUE.
15890 * value-prof.h (get_most_common_single_value): New.
15891
15892 2019-06-10 Martin Liska <mliska@suse.cz>
15893
15894 * hash-map.h: Pass default value to hash_table ctor.
15895 * hash-table.h: Add default value to call of a ctor.
15896
15897 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15898
15899 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15900 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15901
15902 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15903
15904 PR target/90751
15905 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15906 Call pa_output_function_label.
15907 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15908 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15909 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15910 to declaration.
15911 (pa_linux_output_function_prologue): Declare.
15912 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15913 (pa_output_function_label): New.
15914 (pa_output_function_prologue): Revise to use pa_output_function_label.
15915 (pa_linux_output_function_prologue): New.
15916 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15917
15918 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15919
15920 * tree-vrp.h (value_range_base::intersect): New.
15921 (value_range::intersect_helper): Move from here...
15922 (value_range_base::intersect_helper): ...to here.
15923 * tree-vrp.c (value_range::intersect_helper): Rename to...
15924 (value_range_base::intersect_helper): ...this, and rewrite to
15925 return a value instead of modifying THIS in place.
15926 Also, move equivalence handling...
15927 (value_range::intersect): ...here, while calling intersect_helper.
15928 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15929 calling intersect.
15930 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15931 Same.
15932 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15933
15934 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15935
15936 * Makefile.in (genprogerr): Add condmd.
15937 (genprog): Remove it here.
15938
15939 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15940
15941 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15942
15943 2019-06-07 Richard Biener <rguenther@suse.de>
15944
15945 PR debug/90574
15946 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15947 that appear after user labels.
15948
15949 2019-06-07 Martin Liska <mliska@suse.cz>
15950
15951 * cselib.c (cselib_init): Disable hash table
15952 sanitization.
15953 * hash-set.h: Pass new default argument to m_table.
15954 * hash-table.c: Add global variable with hash table
15955 sanitization limit.
15956 * hash-table.h (Allocator>::hash_table): Add new argument
15957 to ctor.
15958 (hashtab_chk_error): New.
15959 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15960 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15961 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15962
15963 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15964
15965 * common.opt (flto-odr-type-merging): Ignore.
15966 * invoke.texi (-flto-odr-type-merging): Remove.
15967 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15968 (can_be_vtable_hashed_p): Remove.
15969 (hash_odr_vtable): Remove.
15970 (odr_vtable_hasher::hash): Remove.
15971 (types_same_for_odr): Remove.
15972 (types_odr_comparable): Remove.
15973 (odr_vtable_hasher::equal): Remove.
15974 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15975 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15976 (get_odr_type): Do not use vtable hash.
15977 (dump_odr_type): Remove commented out code.
15978 (build_type_inheritance_graph): Do not allocate vtable hash.
15979 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15980 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15981 (odr_type_p): Likewise.
15982 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15983 test.
15984
15985 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15986
15987 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15988 immediately after same_types_for_tbaa_p returns -1 and continue
15989 looking for possible exact match; if matching types are arrays
15990 watch for partial overlaps.
15991 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15992 (indirect_refs_may_alias_p): Do type based disambiguation first;
15993 update comment.
15994
15995 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15996
15997 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15998
15999 2019-06-07 Martin Liska <mliska@suse.cz>
16000
16001 * doc/invoke.texi: Remove param.
16002 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16003 Remove.
16004 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16005 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16006 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16007 * profile.c (instrument_values): Remove
16008 HIST_TYPE_INDIR_CALL_TOPN.
16009 * tree-profile.c (init_ic_make_global_vars):
16010 Always build __gcov_indirect_call only.
16011 (gimple_init_gcov_profiler): Remove usage
16012 of PARAM_INDIR_CALL_TOPN_PROFILE.
16013 (gimple_gen_ic_profiler): Likewise.
16014 * value-prof.c (dump_histogram_value): Likewise.
16015 (stream_in_histogram_value): Likewise.
16016 (gimple_indirect_call_to_profile): Likewise.
16017 (gimple_find_values_to_profile): Likewise.
16018 * value-prof.h (enum hist_type): Likewise.
16019
16020 2019-06-07 Martin Liska <mliska@suse.cz>
16021
16022 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16023 function.
16024
16025 2019-06-07 Martin Liska <mliska@suse.cz>
16026
16027 PR tree-optimization/78902
16028 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16029 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16030 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16031 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16032 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16033 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16034 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16035 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16036 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16037 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16038 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16039 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16040 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16041 New.
16042 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16043 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16044 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16045 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16046 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16047 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16048 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16049 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16050 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16051 warn_unused_result attribute.
16052 (BUILT_IN_STRDUP): Likewise.
16053 (BUILT_IN_STRNDUP): Likewise.
16054 (BUILT_IN_ALLOCA): Likewise.
16055 (BUILT_IN_CALLOC): Likewise.
16056 (BUILT_IN_MALLOC): Likewise.
16057 (BUILT_IN_REALLOC): Likewise.
16058
16059 2019-06-06 Jim Wilson <jimw@sifive.com>
16060
16061 PR target/89955
16062 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16063 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16064 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16065
16066 2019-06-06 Martin Sebor <msebor@redhat.com>
16067
16068 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16069 (handle_builtin_malloc): Remove trailing spaces.
16070 (handle_builtin_memset): Same.
16071 (handle_builtin_memcmp): Same.
16072 (compute_string_length): Same.
16073 (determine_min_objsize): Same.
16074 (handle_builtin_string_cmp): Same.
16075 (handle_char_store): Same. Break up excessively long line.
16076
16077 2019-06-06 Martin Jambor <mjambor@suse.cz>
16078
16079 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16080 check.
16081
16082 2019-06-06 Martin Jambor <mjambor@suse.cz>
16083
16084 * tree-sra.c (struct access): New field grp_same_access_path.
16085 (dump_access): Dump it.
16086 (build_reconstructed_reference): New function.
16087 (build_ref_for_model): Use it if possible.
16088 (path_comparable_for_same_access): New function.
16089 (same_access_path_p): Likewise.
16090 (sort_and_splice_var_accesses): Set the new flag.
16091 (analyze_access_subtree): Likewise.
16092 (propagate_subaccesses_across_link): Propagate zero value of the new
16093 flag down the access tree.
16094
16095 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16096
16097 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16098 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16099 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16100 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16101 Add gfx906.
16102
16103 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16104
16105 PR tree-optimization/90332
16106 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16107 Handle VALS containing two vectors.
16108 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16109 to...
16110 (@aarch64_combinez<mode>): ... This.
16111 (*aarch64_combinez_be<mode>): Rename to...
16112 (@aarch64_combinez_be<mode>): ... This.
16113 (vec_init<mode><Vhalf>): New define_expand.
16114 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16115
16116 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16117
16118 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16119 library functions only when not optimizing for size.
16120 (ashlsi3): Likewise.
16121 (ashrhi3): Likewise.
16122 (ashrsi3): Likewise.
16123 (lshrhi3): Likewise.
16124 (lshrsi3): Likewise.
16125
16126 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16127
16128 PR rtl-optimization/88751
16129 * ira.c (ira): Use the number of the actually referenced registers
16130 when calculating the threshold.
16131
16132 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16133
16134 * configure: Regenerate.
16135
16136 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16137
16138 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16139 register if it is in memory, so the shift can be emulated with a rotate
16140 instruction.
16141 (ashrhi3): Likewise.
16142 (lshrhi3): Likewise.
16143
16144 2019-06-06 Martin Liska <mliska@suse.cz>
16145
16146 PR tree-optimization/87954
16147 * match.pd: Simplify mult where both arguments are 0 or 1.
16148
16149 2019-06-06 Richard Biener <rguenther@suse.de>
16150
16151 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16152 put equivalences on UNDEFINED ranges.
16153 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16154 Make sure to drop defs of stmts added during simplification
16155 to VARYING.
16156
16157 2019-06-06 Richard Biener <rguenther@suse.de>
16158
16159 * tree-ssa-structalias.c: Include tree-cfg.h.
16160 (make_heapvar): Do not make heap vars artificial.
16161 (find_func_aliases_for_builtin_call): Handle stack allocation
16162 functions.
16163 (find_func_aliases): Delay processing of simple enough returns
16164 in non-IPA mode.
16165 (set_uids_in_ptset): Adjust.
16166 (find_what_var_points_to): Likewise.
16167 (solve_constraints): Do not dump points-to sets here.
16168 (compute_points_to_sets): Post-process return statements,
16169 amending the escaped solution. Dump points-to sets afterwards.
16170 (ipa_pta_execute): Dump points-to sets.
16171
16172 2019-06-06 Martin Liska <mliska@suse.cz>
16173
16174 PR web/87933
16175 * doc/install.texi: Fix HTML headers and
16176 titles for 'Installing GCC' pages.
16177
16178 2019-06-06 Martin Liska <mliska@suse.cz>
16179
16180 * ipa-icf-gimple.h (dump_message_1): Remove.
16181 (dump_message): Likewise.
16182 (return_false_with_message_1): Print also file.
16183 (return_false_with_msg): Likewise.
16184 (return_with_result): Likewise.
16185 (return_with_debug): Likewise.
16186 * ipa-icf.c (sem_function::equals_private): Remove call
16187 to dump_message.
16188
16189 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16190
16191 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16192 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16193 memory operand for it.
16194 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16195
16196 2019-06-05 Martin Sebor <msebor@redhat.com>
16197
16198 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16199 Adjust quoting and hyphenation.
16200 * convert.c (convert_to_real_1): Same.
16201 * gcc.c (driver_wrong_lang_callback): Same.
16202 (driver::handle_unrecognized_options): Same.
16203 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16204 * opts-common.c (cmdline_handle_error): Same.
16205 (read_cmdline_option): Same.
16206 * opts-global.c (complain_wrong_lang): Same.
16207 (print_ignored_options): Same.
16208 (handle_common_deferred_options): Same.
16209 * pretty-print.h: Same.
16210 * print-rtl.c (debug_bb_n_slim): Same.
16211 * sched-rgn.c (make_pass_sched_fusion): Same.
16212 * tree-cfg.c (verify_gimple_assign_unary): Same.
16213 (verify_gimple_label): Same.
16214 * tree-ssa-operands.c (verify_ssa_operands): Same.
16215 * varasm.c (do_assemble_alias): Same.
16216 (assemble_alias): Same.
16217
16218 2019-06-05 Richard Henderson <rth@twiddle.net>
16219
16220 * config/alpha/alpha.c (direct_return): Move down after
16221 struct machine_function definition; use saved frame_size;
16222 return bool.
16223 (struct machine_function): Add sa_mask, sa_size, frame_size.
16224 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16225 (alpha_compute_frame_layout): ... new function.
16226 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16227 (alpha_initial_elimination_offset): Use saved sa_size.
16228 (alpha_vms_initial_elimination_offset): Likewise.
16229 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16230 (alpha_expand_prologue): Use saved frame data. Merge integer
16231 and fp register save loops.
16232 (alpha_expand_epilogue): Likewise.
16233 (alpha_start_function): Use saved frame data.
16234 * config/alpha/alpha-protos.h (direct_return): Update.
16235 (alpha_sa_size): Remove.
16236
16237 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16238
16239 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16240 multiplication by a power-of-two value.
16241 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16242 and turn the modulo operation into a masking operation.
16243
16244 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16245
16246 PR debug/90733
16247 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16248 with VOIDmode inner operands.
16249
16250 2019-06-05 Richard Biener <rguenther@suse.de>
16251
16252 PR middle-end/90726
16253 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16254 turn an expression graph into a tree.
16255
16256 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16257
16258 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16259 member.
16260 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16261 treat it like explicit monotonic schedule modifier.
16262 (expand_omp_for): Initialize has_lastprivate_conditional.
16263 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16264 schedule modifier.
16265
16266 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16267 references, lookup in in hash map MEM_REF operand instead of the
16268 MEM_REF itself.
16269 (lower_omp_1): When looking for lastprivate conditional assignments,
16270 handle MEM_REFs with REFERENCE_TYPE operands.
16271
16272 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16273 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16274 and references a VLA. Handle references to non-VLAs if is_simd
16275 all privatization clauses like reductions.
16276 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16277 If omp_is_reference, use always omp simd arrays and set
16278 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16279 fails, emit reference initialization.
16280
16281 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16282
16283 PR target/89803
16284 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16285 _mm_mask_fpclass_sd_mask): New intrinsics.
16286 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16287 * config/i386/i386-builtin.def
16288 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16289 New builtins.
16290 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16291 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16292 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16293 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16294 case QI_FTYPE_V2SF_INT): Ditto.
16295 * config/i386/sse.md
16296 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16297 Extended to insnstructions with mask operands.
16298
16299 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16300
16301 * config/rs6000/constraints.md (define_register_constraint "wp"):
16302 Delete.
16303 (define_register_constraint "wq"): Delete.
16304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16305 (rs6000_init_hard_regno_mode_ok): Adjust.
16306 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16307 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16308 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16309 (define_mode_attr VSa): Delete.
16310 (define_mode_attr VSisa): New.
16311 (rest of file): Adjust.
16312 * doc/md.texi (Machine Constraints): Adjust.
16313
16314 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16315
16316 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16317 (define_attr "enabled"): Handle those new isa values.
16318
16319 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16320
16321 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16322 (define_mode_attr VSr5): Delete.
16323 (define_mode_attr VStype_sqrt): Delete.
16324 (define_mode_iterator VSX_SPDP): Delete.
16325 (define_mode_attr VS_spdp_res): Delete.
16326 (define_mode_attr VS_spdp_insn): Delete.
16327 (define_mode_attr VS_spdp_type): Delete.
16328 (*vsx_sqrt<mode>2): Adjust.
16329 (vsx_<VS_spdp_insn>): Delete, split to...
16330 (vsx_xscvdpsp): ... this. New. And...
16331 (vsx_xvcvspdp): ... this. New. And...
16332 (vsx_xvcvdpsp): ... this. New.
16333
16334 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16335
16336 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16337 and V2DF.
16338 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16339 (rest of file): Adjust.
16340
16341 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16342
16343 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16344 (vsx_extract_<mode>_var): Ditto.
16345
16346 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16347
16348 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16349 with just "wa".
16350
16351 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16352
16353 * config/rs6000/constraints.md (define_register_constraint "ww"):
16354 Delete.
16355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16356 (rs6000_init_hard_regno_mode_ok): Adjust.
16357 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16358 RS6000_CONSTRAINT_ww.
16359 * config/rs6000/rs6000.md: Adjust.
16360 * config/rs6000/vsx.md: Adjust.
16361 * doc/md.texi (Machine Constraints): Adjust.
16362
16363 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16364
16365 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16366 (define_mode_attr sd): New.
16367 (define_mode_attr s): New.
16368 (define_mode_attr Ftrad): Delete.
16369 (define_mode_attr Fvsx): Delete.
16370 (define_mode_attr Fs): Delete.
16371 (rest of file): Use the new mode attributes.
16372 * config.rs6000/vsx.md: Use the new mode attributes.
16373
16374 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16375
16376 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16377 with just "wa".
16378
16379 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16380
16381 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16382 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16383 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16384
16385 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16386
16387 PR target/78263
16388 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16389 C++ with strict ANSI requirements.
16390
16391 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16392
16393 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16394 computations when step is 1.
16395
16396 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16397
16398 * config/rs6000/constraints.md (define_register_constraint "wf"):
16399 Delete.
16400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16401 (rs6000_init_hard_regno_mode_ok): Adjust.
16402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16403 RS6000_CONSTRAINT_wf.
16404 * config/rs6000/rs6000.md: Adjust.
16405 * config/rs6000/vsx.md: Adjust.
16406 * doc/md.texi (Machine Constraints): Adjust.
16407
16408 2019-06-04 Andrew Pinski <apinski@marvell.com>
16409
16410 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16411 Fix ILP32 value.
16412
16413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16414
16415 * config/rs6000/constraints.md (define_register_constraint "wd"):
16416 Delete.
16417 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16418 (rs6000_init_hard_regno_mode_ok): Adjust.
16419 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16420 RS6000_CONSTRAINT_wd.
16421 * config/rs6000/rs6000.md: Adjust.
16422 * config/rs6000/vsx.md: Adjust.
16423 * doc/md.texi (Machine Constraints): Adjust.
16424
16425 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16426
16427 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16428 (rest of file): Adjust.
16429
16430 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16431
16432 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16433 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16434 (vsx_splat_<mode>_reg): Adjust.
16435
16436 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16437
16438 * config/rs6000/constraints.md (define_register_constraint "ws"):
16439 Delete.
16440 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16441 (rs6000_init_hard_regno_mode_ok): Adjust.
16442 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16443 RS6000_CONSTRAINT_ws.
16444 * config/rs6000/rs6000.md: Adjust.
16445 * config/rs6000/vsx.md: Adjust.
16446 * doc/md.texi (Machine Constraints): Adjust.
16447
16448 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16449
16450 * config/rs6000/constraints.md (define_register_constraint "wv"):
16451 Delete.
16452 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16453 (rs6000_init_hard_regno_mode_ok): Adjust.
16454 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16455 RS6000_CONSTRAINT_wv.
16456 * config/rs6000/rs6000.md: Adjust.
16457 * config/rs6000/vsx.md: Adjust.
16458 * doc/md.texi (Machine Constraints): Adjust.
16459
16460 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16461
16462 * config/rs6000/constraints.md (define_register_constraint "wi"):
16463 Delete.
16464 (define_register_constraint "wt"): Delete.
16465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16466 (rs6000_init_hard_regno_mode_ok): Adjust.
16467 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16468 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16469 * config/rs6000/rs6000.md: Adjust.
16470 * config/rs6000/vsx.md: Adjust.
16471 * doc/md.texi (Machine Constraints): Adjust.
16472
16473 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16474
16475 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16476 const.
16477 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16478 default_elf_asm_output_external.
16479
16480 2019-06-04 Martin Liska <mliska@suse.cz>
16481
16482 * ipa-icf.c (INCLUDE_LIST): Remove.
16483 (sem_item_optimizer::execute): Remove call to init_wpa.
16484 * ipa-icf.h (init_wpa): Remove.
16485
16486 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16487
16488 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16489 conditional on combined for simd.
16490 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16491 member.
16492 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16493 constructs, don't remove lastprivate_conditional_map, but instead set
16494 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16495 to parent construct temporaries.
16496 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16497 like !ctx->lastprivate_conditional_map.
16498 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16499 use up->outer context instead of up.
16500 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16501 gimple_omp_for_combined_p.
16502 (expand_omp_for_static_nochunk): Likewise.
16503 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16504 probably moved over into expand_omp_for_generic rather than being copied
16505 there.
16506
16507 2019-06-04 Martin Liska <mliska@suse.cz>
16508
16509 * value-prof.c (dump_histogram_value): Fix typo.
16510 (gimple_mod_subtract_transform): Likewise.
16511
16512 2019-06-04 Richard Biener <rguenther@suse.de>
16513
16514 PR middle-end/90726
16515 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16516 (tree_contains_chrecs): Likewise.
16517 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16518 exponential behaivor from ...
16519 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16520 ... here.
16521 (expression_expensive_p): Avoid exponential behavior and compute
16522 expanded size, rejecting any expansion.
16523 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16524 (idx_contains_abnormal_ssa_name_p): Likewise.
16525 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16526 (contains_abnormal_ssa_name_p): Simplify and use
16527 walk_tree_without_duplicates.
16528
16529 2019-06-04 Richard Biener <rguenther@suse.de>
16530
16531 PR tree-optimization/90738
16532 Revert
16533 2019-06-03 Richard Biener <rguenther@suse.de>
16534
16535 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16536 full reference tree and record in ref->ref.
16537 (vn_reference_lookup_3): Pass in original ref to
16538 ao_ref_init_from_vn_reference.
16539 (vn_reference_lookup): Likewise.
16540 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16541 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16542 Handle non-decl bases in the original reference.
16543
16544 2019-06-04 Martin Liska <mliska@suse.cz>
16545
16546 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16547 number of references.
16548 (sem_item_optimizer::do_congruence_step):
16549 (sem_item_optimizer::worklist_push): Dump how references
16550 a class has.
16551 (sem_item_optimizer::worklist_pop): Use heap.
16552 (sem_item_optimizer::process_cong_reduction): Likewise.
16553 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16554
16555 2019-06-04 Martin Liska <mliska@suse.cz>
16556
16557 * ipa-icf.h (struct sem_usage_pair_hash): New.
16558 (sem_usage_pair_hash::hash): Likewise.
16559 (sem_usage_pair_hash::equal): Likewise.
16560 (struct sem_usage_hash): Likewise.
16561 * ipa-icf.c (sem_item::sem_item): Initialize
16562 referenced_by_count.
16563 (sem_item::add_reference): Register a reference
16564 in ref_map and not in target->usages.
16565 (sem_item::setup): Remove initialization of
16566 dead vectors.
16567 (sem_item::~sem_item): Remove usage of dead vectors.
16568 (sem_item::dump): Remove dump of references.
16569 (sem_item_optimizer::sem_item_optimizer): Initialize
16570 m_references.
16571 (sem_item_optimizer::read_section): Remove useless
16572 dump.
16573 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16574 (sem_item_optimizer::build_graph): Pass m_references
16575 to ::add_reference.
16576 (sem_item_optimizer::verify_classes): Remove usage of dead
16577 vectors.
16578 (sem_item_optimizer::traverse_congruence_split): Return true
16579 when a class is split.
16580 (sem_item_optimizer::do_congruence_step_for_index): Use
16581 hash_map for look up of (sem_item *, index). That brings
16582 significant speed up.
16583 (sem_item_optimizer::do_congruence_step): Return true
16584 when a split is done.
16585 (congruence_class::is_class_used): Use referenced_by_count.
16586
16587 2019-06-04 Alan Modra <amodra@gmail.com>
16588
16589 PR target/90689
16590 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16591 error.
16592
16593 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16594
16595 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16596 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16597 (rs6000_secondary_reload_simple_move): Adjust.
16598 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16599 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16600 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16601 comment.
16602 (power6x): Adjust.
16603 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16604 (floatunssi<mode>2_lfiwzx): Adjust.
16605 (fix_trunc<mode>si2_stfiwx): Adjust.
16606 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16607 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16608 (mfpgpr): Mark as deprecated.
16609 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16610 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16611 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16612
16613 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16614
16615 * config/rs6000/constraints.md (define_register_constraint "wg"):
16616 Delete.
16617 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16618 RS6000_CONSTRAINT_wg.
16619 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16620 (rs6000_init_hard_regno_mode_ok): Adjust.
16621 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16622 Delete "wg" alternatives.
16623 * doc/md.texi (Machine Constraints): Adjust.
16624
16625 2019-06-03 Alan Modra <amodra@gmail.com>
16626
16627 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16628 (get_uncond_jump_length): Assert length less than INT_MAX and
16629 non-negative.
16630
16631 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16632
16633 PR middle-end/64242
16634 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16635 block.
16636 (expand_builtin_nonlocal_goto): Likewise.
16637
16638 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16639
16640 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16641 (aarch64_asm_output_external): Declare.
16642 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16643 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16644 (aarch64_asm_output_alias): New.
16645 (aarch64_asm_output_external): New.
16646 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16647 (ASM_OUTPUT_EXTERNAL): Define.
16648
16649 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16650 * tree-vrp.h (value_range_base::nonzero_p): New.
16651 (value_range_base::set_nonnull): Rename to...
16652 (value_range_base::set_nonzero): ...this.
16653 (value_range_base::set_null): Rename to...
16654 (value_range_base::set_zero): ...this.
16655 (value_range::set_nonnull): Remove.
16656 (value_range::set_null): Remove.
16657 * tree-vrp.c (range_is_null): Remove.
16658 (range_is_nonnull): Remove.
16659 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16660 instead of range_is_*null.
16661 (extract_range_from_unary_expr): Same.
16662 (value_range_base::set_nonnull): Rename to...
16663 (value_range_base::set_nonzero): ...this.
16664 (value_range::set_nonnull): Remove.
16665 (value_range_base::set_null): Rename to...
16666 (value_range_base::set_zero): ...this.
16667 (value_range::set_null): Remove.
16668 (extract_range_from_binary_expr): Rename set_*null uses to
16669 set_*zero.
16670 (extract_range_from_unary_expr): Same.
16671 (union_helper): Same.
16672 * vr-values.c (get_value_range): Use set_*zero instead of
16673 set_*null.
16674 (vr_values::extract_range_from_binary_expr): Same.
16675 (vr_values::extract_range_basic): Same.
16676
16677 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16678
16679 PR driver/90684
16680 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16681
16682 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16683
16684 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16685 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16686 Rename to...
16687 (aarch64_<su>abd<mode>_3): ... This.
16688 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16689
16690 2019-06-03 Richard Biener <rguenther@suse.de>
16691
16692 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16693 full reference tree and record in ref->ref.
16694 (vn_reference_lookup_3): Pass in original ref to
16695 ao_ref_init_from_vn_reference.
16696 (vn_reference_lookup): Likewise.
16697 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16698 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16699 Handle non-decl bases in the original reference.
16700
16701 2019-06-03 Martin Liska <mliska@suse.cz>
16702
16703 * doc/generic.texi: Remove Java Trees.
16704
16705 2019-06-03 Martin Liska <mliska@suse.cz>
16706
16707 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16708 returns 0 when operands are equal.
16709
16710 2019-06-03 Richard Biener <rguenther@suse.de>
16711
16712 PR tree-optimization/90716
16713 * tree-loop-distribution.c (destroy_loop): Process blocks in
16714 correct order.
16715
16716 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16717
16718 PR target/88837
16719 * vector-builder.h (vector_builder::count_dups): New method.
16720 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16721 Declare prototype.
16722 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16723 (vec_init<mode><Vel>): New pattern.
16724 * config/aarch64/aarch64.c (emit_insr): New function.
16725 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16726 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16727 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16728 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16729
16730 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16731
16732 PR tree-optimization/90681
16733 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16734 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16735 special case for SLP, but fail on non-groupped loads.
16736
16737 2019-06-03 Martin Liska <mliska@suse.cz>
16738
16739 * cfg.c (debug): Use TDF_DETAILS for debug and
16740 print edge info only once.
16741
16742 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16743
16744 PR fortran/90539
16745 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16746
16747 2019-06-01 Martin Sebor <msebor@redhat.com>
16748
16749 PR middle-end/90694
16750 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16751
16752 2019-05-31 Jan Hubicka <jh@suse.cz>
16753
16754 * alias.c: Include ipa-utils.h.
16755 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16756 * ipa-devirt.c (prevailing_odr_type): New.
16757 * ipa-utils.h (previaling_odr_type): Declare.
16758
16759 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16760 Hongtao Liu <hongtao.liu@intel.com>
16761
16762 PR target/89355
16763 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16764 NOTE_INSN_DELETED_LABEL check.
16765
16766 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16767 Robert Suchanek <robert.suchanek@mips.com>
16768
16769 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16770 and 3rd operands of the fmadd/fmsub/maddv builtin.
16771
16772 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16773
16774 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16775 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16776 on OMP_SIMD if not nested inside of worksharing loop that also has
16777 lastprivate conditional clause for the same decl.
16778 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16779 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16780 on simd.
16781 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16782 on simd construct.
16783 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16784 on simd construct.
16785 (lower_lastprivate_clauses): Likewise.
16786 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16787 calling lower_rec_input_clauses.
16788 (lower_omp_for): Likewise.
16789 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16790 clause on simd construct.
16791 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16792 OMP_CLAUSE__CONDTEMP_ clause is present.
16793
16794 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16795 ivar and lvar.
16796
16797 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16798
16799 PR c/43673
16800 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16801 TEX_D32, TEX_D64 or TEX_D128.
16802
16803 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16804
16805 * match.pd (~(vec?cst1:cst2)): New transformation.
16806
16807 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16808
16809 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16810 ((size_t)(A /[ex] B) CMP C): New transformation.
16811
16812 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16813
16814 * doc/md.texi: Document define_insn_and_rewrite.
16815 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16816 * gensupport.c (queue_elem): Update comment.
16817 (replace_operands_with_dups): New function.
16818 (gen_rewrite_sequence): Likewise.
16819 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16820 * read-rtl.c (apply_subst_iterator): Likewise.
16821 (add_condition_to_rtx, named_rtx_p): Likewise.
16822 (rtx_reader::read_rtx_operand): Likewise.
16823 * config/aarch64/aarch64-sve.md
16824 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16825 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16826 define_insn_and_rewrite.
16827 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16828 Remove separate define_split.
16829
16830 2019-05-31 Jan Hubicka <jh@suse.cz>
16831
16832 * tree-ssa-alias.c (type_has_components_p): New function.
16833 (aliasing_component_refs_p): Use it.
16834
16835 2019-05-31 Martin Liska <mliska@suse.cz>
16836
16837 * gdbhooks.py: Add const_tree to TreePrinter.
16838
16839 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16840
16841 PR debug/86964
16842 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16843 * doc/invoke.texi (Debugging Options): Document new default of
16844 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16845
16846 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16847
16848 PR tree-optimization/90671
16849 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16850 template_block used to be empty on the first call, don't use
16851 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16852 seq with bb_seq and set it with set_bb_seq.
16853
16854 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16855
16856 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16857
16858 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16859 Michael Meissner <meissner@linux.ibm.com>
16860
16861 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16862 (prefixed_mem_operand): Likewise.
16863 (non_prefixed_mem_operand): Likewise.
16864 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16865 prototype.
16866 * config/rs6000/rs6000.c (print_operand_address): Handle
16867 PC-relative addresses.
16868 (mode_supports_prefixed_address_p): New function.
16869 (rs6000_prefixed_address): New function.
16870 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16871 (SYMBOL_REF_PCREL_P): Likewise.
16872
16873 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16874
16875 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16876 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16877 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16878 is nested inside of parallel region, add _condtemp_ clause to both.
16879 * tree-nested.c (convert_nonlocal_omp_clauses,
16880 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16881 assertion failure.
16882 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16883 member.
16884 * omp-general.c (omp_extract_for_data): Compute it.
16885 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16886 (lower_rec_input_clauses): Likewise.
16887 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16888 clause is already present, just add one further one after it.
16889 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16890 (lower_send_shared_vars): Clear _condtemp_ vars.
16891 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16892 or section or taskgroup.
16893 * omp-expand.c (determine_parallel_type): Disallow combining only if
16894 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16895 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16896 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16897 expand_omp_for_static_chunk, expand_omp_for): Use
16898 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16899 determine if a special set of API routines are needed and if condtemp
16900 needs to be initialized, while always initialize cond_var if
16901 fd->lastprivate_conditional is non-zero.
16902
16903 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16904 Michael Meissner <meissner@linux.ibm.com>
16905
16906 * config/rs6000/constraints.md (eI): New constraint.
16907 * config/rs6000/predicates.md (cint34_operand): New predicate.
16908 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16909 (SIGNED_34BIT_OFFSET_P): Likewise.
16910 * doc/md.texi (eI): Document constraint.
16911
16912 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16913
16914 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16915
16916 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16917 Michael Meissner <meissner@linux.ibm.com>
16918
16919 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16920 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16921 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16922 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16923 (OTHER_FUTURE_MASKS): Likewise.
16924 (POWERPC_MASKS): Likewise.
16925 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16926 specified without -mprefixed-addr or -mcpu=future. Error if
16927 -mprefixed-addr is specified without -mcpu=future.
16928 (rs6000_opt_masks): Add entry for prefixed-addr.
16929 * rs6000.opt (mprefixed-addr): New option.
16930
16931 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16932
16933 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16934 cfun->is_thunk check.
16935
16936 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16937
16938 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16939 to length.
16940
16941 2019-05-30 Martin Liska <mliska@suse.cz>
16942
16943 * gdbinit.in: Fix 'ptc' command. Add trt
16944 that prints TREE_TYPE($).
16945
16946 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16947 Alan Modra <amodra@gmail.com>
16948
16949 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16950 calls here...
16951 (rs6000_indirect_call_template_1): ...and here.
16952 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16953 plt16_ha, plt16_lo, mtctr indirect calls. Use
16954 rs6000_pltseq_enum.
16955 (rs6000_decl_ok_for_sibcall): New function.
16956 (rs6000_function_ok_for_sibcall): Refactor.
16957 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16958 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16959 when pcrel. Reorganize.
16960 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16961 * rs6000.h (rs6000_pltseq_enum): New enum.
16962 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16963 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16964 (*pltseq_plt16_ha): Likewise.
16965 (*pltseq_plt16_lo): Likewise.
16966 (*pltseq_mtctr): Likewise.
16967 (*pltseq_plt_pcrel): New insn.
16968 (*call_local_aix): Handle @notoc calls.
16969 (*call_value_local_aix): Likewise.
16970 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16971 (*call_value_nonlocal_aix): Likewise.
16972 (*call_indirect_pcrel): New insn.
16973 (*call_value_indirect_pcrel): Likewise.
16974
16975 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16976
16977 * config/i386/sse.md (*save_multiple<mode>): Rename from
16978 save_multiple<mode>.
16979 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16980 (*restore_multiple_and_return<mode>): Rename from
16981 restore_multiple_and_return<mode>.
16982 (*restore_multiple_leave_return<mode>): Rename from
16983 restore_multiple_leave_return<mode>.
16984
16985 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16986
16987 * config.gcc (rx-*-linux*): New target.
16988 * config/rx/elf.opt: New file.
16989 * config/rx/linux.h: Likewise.
16990 * config/rx/t-linux: Likewise.
16991 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16992 make it zero.
16993 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16994 (ASM_APP_OFF): Likewise.
16995 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16996 moved elsewhere.
16997
16998 2019-05-29 Jan Hubicka <jh@suse.cz>
16999
17000 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17001 variants are pointer equivalent.
17002
17003 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17004
17005 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17006 * config/aarch64/aarch64-sve2.md: New file.
17007 (<u>avg<mode>3_floor): New pattern.
17008 (<u>avg<mode>3_ceil): Likewise.
17009 (*<sur>h<addsub><mode>): Likewise.
17010 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17011 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17012
17013 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17014
17015 PR bootstrap/90543
17016 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17017 for var_opt_string printing. In cl_optimization_print_diff, print
17018 (null) instead of invoking undefined behavior if one of the
17019 var_opt_string pointers is NULL and use && instead of first || in the
17020 guarding condition. For var_target_other options, handle const char *
17021 target variables similarly to const char * optimize node variables.
17022
17023 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17024
17025 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17026 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17027 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17028 Add autib1716 and pacib1716 initialisation.
17029 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17030 for autib1716 and pacib1716.
17031 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17032 aarch64_post_cfi_startproc): Define.
17033 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17034 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17035 aarch64_handle_pac_ret_protection): Set default sign key to A.
17036 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17037 aarch64_expand_prologue): Add check for b-key.
17038 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17039 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17040 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17041 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17042 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17043 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17044 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17045 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17046 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17047 pauth_hint_num_a with pauth_hint_num.
17048 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17049 pauth_hint_num_a with pauth_hint_num.
17050 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17051 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17052 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17053 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17054 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17055 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17056 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17057 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17058 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17059 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17060 UNSPEC_AUTIA1716 respectively.
17061 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17062 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17063 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17064 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17065 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17066 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17067
17068 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17069
17070 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17071 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17072 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17073 explicit clause on combined parallel into implicit shared clause.
17074 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17075 and firstprivate if the decl has one too from combined parallel to
17076 the worksharing construct.
17077
17078 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17079 Michael Meissner <meissner@linux.ibm.com>
17080
17081 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17082
17083 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17084
17085 * rtl.h (LABEL_REF_P): New #define.
17086
17087 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17088
17089 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17090
17091 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17092
17093 * internal-fn.c: Marked mask_load_direct as vectorizable.
17094 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17095 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17096 combined even if masks different with allow_slp_p param.
17097 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17098 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17099 dissolve SLP-only vectorizable groups when SLP has been discarded.
17100 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17101 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17102 masks.
17103 (vect_build_slp_tree_1): Fixed comment typo.
17104 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17105 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17106 loads for SLP only.
17107 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17108 vectorizable.
17109 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17110
17111 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17112
17113 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17114 Remove obsolete use_thunk reference.
17115 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17116 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17117 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17118 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17119 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17120 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17121 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17122 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17123 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17124
17125 2019-05-28 Nathan Sidwell <nathan@acm.org>
17126
17127 * tree.h (IDENTIFIER_ANON_P): New.
17128 (anon_aggrname_format, anon_aggname_p): Don't declare.
17129 (make_anon_name): Declare.
17130 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17131 (hash_tree): Likewise.
17132 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17133 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17134 (anon_cnt, make_anon_name): New.
17135
17136 2019-05-28 Martin Liska <mliska@suse.cz>
17137
17138 PR other/90315
17139 * opts-global.c (decode_options): Print help for all
17140 help_option_arguments.
17141 * opts.c (print_help): Add new argument.
17142 (common_handle_option): Remember all values into
17143 help_option_arguments.
17144 * opts.h (print_help): Add new argument.
17145
17146 2019-05-28 Martin Liska <mliska@suse.cz>
17147
17148 PR ipa/90555
17149 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17150 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17151 (func_checker::compare_bb): Call compare_loops.
17152
17153 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17154
17155 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17156 on sections construct.
17157 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17158 construct.
17159 (lower_omp_sections): Handle lastprivate conditional.
17160 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17161 lastprivate_conditional_map.
17162 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17163
17164 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17165 critical, taskgroup and section regions when looking for a region
17166 with non-NULL lastprivate_conditional_map.
17167
17168 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17169
17170 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17171 (*ix86_gen_sub3): Ditto.
17172 (*ix86_gen_sub3_carry): Ditto.
17173 (*ix86_gen_one_cmpl2): Ditto.
17174 (*ix86_gen_andsp): Ditto.
17175 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17176 (gen_and2_insn): New static function.
17177 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17178 Use gen_add3_insn instead of ix86_gen_add3.
17179 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17180 instead of ix86_gen_add3.
17181 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17182 Use gen_sub3_insn instead of ix86_gen_sub3.
17183 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17184 instead of ix86_gen_add3.
17185 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17186 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17187 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17188 * config/i386/i386-options.c (ix86_option_override_internal):
17189 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17190 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17191
17192 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17193
17194 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17195 and DW_OP_GNU_const_index opcodes.
17196
17197 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17198
17199 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17200
17201 2019-05-27 Richard Biener <rguenther@suse.de>
17202
17203 PR tree-optimization/90637
17204 * tree-ssa-sink.c (statement_sink_location): Honor the
17205 computed sink location for single-uses.
17206
17207 2019-05-27 Richard Biener <rguenther@suse.de>
17208
17209 PR middle-end/90610
17210 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17211 a bit-insert.
17212
17213 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17214
17215 * config/i386/i386.md (@sub<mode>3_carry): Rename
17216 from sub<mode>3_carry.
17217 (@leave_<mode>): New expander.
17218 (*leave): Rename from leave.
17219 (*leave_rex64): Rename from leave_rex64.
17220 (@monitorx_<mode>): Rename from monitorx_<mode>.
17221 (@clzero_<mode>): Rename from clzero_<mode>.
17222 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17223 from sse3_monitor_<mode>.
17224 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17225 (*ix86_gen_leave): Ditto.
17226 (*ix86_gen_monitor): Ditto.
17227 (*ix86_gen_monitorx): Ditto.
17228 (*ix86_gen_clzero): Ditto.
17229 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17230 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17231 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17232 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17233 Use gen_sse3_monitor instead of ix86_gen_monitor.
17234 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17235 instead of ix86_gen_monitorx.
17236 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17237 instead of ix86_gen_clzero.
17238 * config/i386/i386-options.c (ix86_option_override_internal):
17239 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17240 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17241
17242 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17243
17244 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17245 Rename from tls_global_dynamic_64_<mode>.
17246 (@tls_local_dynamic_base_64_<mode>): Rename from
17247 tls_local_dynamic_base_64_<mode>.
17248 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17249 Remove indirect function.
17250 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17251 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17252 instead of ix86_gen_tls_global_dynamic_64.
17253 Use gen_tls_local_dynamic_base_64 instead of
17254 ix86_gen_tls_local_dynamic_base_64.
17255 * config/i386/i386-options.c (ix86_option_override_internal):
17256 Do not initialize ix86_gen_tls_global_dynamic_64 and
17257 ix86_gen_tls_local_dynamic_base_64.
17258
17259 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17260
17261 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17262 Rename from pro_epilogue_adjust_stack_<mode>_add.
17263 (@pro_epilogue_adjust_stack_sub_<mode>)
17264 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17265 (@allocate_stack_worker_probe_<mode>):
17266 Rename from allocate_stack_worker_probe_<mode>.
17267 (allocate_stack): Use gen_allocate_stack_worker_probe.
17268 (probe_stack): Use gen_probe_stack_1.
17269 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17270 (@adjust_stack_and_probe_<mode>): Rename from
17271 adjust_stack_and_probe<mode>.
17272 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17273 (stack_protect_set): Use gen_stack_protect_set_1.
17274 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17275 (stack_protect_test): Use gen_stack_protect_test_1.
17276 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17277 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17278 Remove indirect function.
17279 (*ix86_gen_adjust_stack_and_probe): Ditto.
17280 (*ix86_gen_probe_stack_range): Ditto.
17281 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17282 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17283 (ix86_adjust_stack_and_probe_stack_clash): Use
17284 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17285 (ix86_adjust_stack_and_probe): Ditto.
17286 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17287 of ix86_gen_probe_stack_range.
17288 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17289 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17290 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17291 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17292 CODE_FOR_stack_protect_test_{si,di}.
17293 * config/i386/i386-options.c (ix86_option_override_internal):
17294 Do not initialize ix86_gen_allocate_stack_worker,
17295 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17296
17297 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17298
17299 * doc/invoke.texi (Link Options): Many editorial changes around
17300 -flinker-output.
17301
17302 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17303
17304 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17305 pre-Solaris 11 referene and most Studio compiler details.
17306
17307 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17308
17309 PR target/90530
17310 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17311 DImode to SImode in floating-point registers on 64-bit target.
17312 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17313 register_operand in xmpyu patterns.
17314
17315 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17316
17317 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17318 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17319 OMP_CLAUSE__REDUCTEMP_.
17320 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17321 OMP_CLAUSE__CONDTEMP_.
17322 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17323 * tree-pretty-print.c (dump_omp_clause): Likewise.
17324 * tree-nested.c (convert_nonlocal_omp_clauses,
17325 convert_local_omp_clauses): Likewise.
17326 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17327 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17328 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17329 on OMP_FOR.
17330 (gimplify_omp_for): Warn and disable conditional modifier from
17331 lastprivate on loop iterators.
17332 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17333 member.
17334 * omp-general.c (omp_extract_for_data): Initialize it.
17335 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17336 member.
17337 (delete_omp_context): Delete it.
17338 (lower_lastprivate_conditional_clauses): New function.
17339 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17340 handle lastprivate conditional clauses.
17341 (lower_reduction_clauses): Add CLIST argument, emit it into
17342 the critical section if any.
17343 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17344 lower_reduction_clauses callers.
17345 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17346 to lower_lastprivate_clauses.
17347 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17348 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17349 clist into a critical section if not emitted there already by
17350 lower_reduction_clauses.
17351 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17352 callers.
17353 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17354 conditional variables.
17355 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17356 clause is present.
17357 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17358 expand_omp_for_static_chunk): Handle lastprivate conditional.
17359 (expand_omp_for): Handle fd.lastprivate_conditional like
17360 fd.have_reductemp.
17361
17362 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17363
17364 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17365 kernel does not exit cleanly.
17366 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17367
17368 2019-05-24 Jason Merrill <jason@redhat.com>
17369
17370 Revert:
17371 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17372
17373 2019-05-24 Richard Biener <rguenther@suse.de>
17374
17375 PR testsuite/90607
17376 * tree-loop-distribution.c (struct partition): Add location
17377 member.
17378 (partition_alloc): Initialize all fields.
17379 (generate_memset_builtin): Use the location recorded in the
17380 partition for the generated call.
17381 (generate_memcpy_builtin): Likewise.
17382 (classify_partition): Record the location of a single store
17383 as location for the partition.
17384
17385 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17386
17387 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17388 for lo-part.
17389
17390 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17391
17392 PR target/90588
17393 * common/config/aarch64/aarch64-common.c
17394 (aarch64_rewrite_selected_cpu): Change local temporary variable
17395 type from unsigned long to uint64_t.
17396 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17397 aarch64_get_extension_string_for_isa_flags): Change declaration to
17398 match new definition by replacing unsigned long with uint64_t.
17399
17400 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17401
17402 PR target/90568
17403 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17404 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17405 Handle stack_protect_test_<mode> codegen similarly to corresponding
17406 sub instruction.
17407
17408 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17409
17410 * config/i386/darwin.h: Reject -mfentry*.
17411 * doc/sourcebuild.texi: Document mfentry target support.
17412
17413 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17414
17415 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17416 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17417 false for PC-relative functions.
17418 (rs6000_output_function_prologue): Change called function name to
17419 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17420 name,1" for PC-relative functions.
17421 (rs6000_elf_declare_function_name): Change called function name to
17422 rs6000_global_entry_point_prologue_needed_p.
17423
17424 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17425
17426 PR target/90552
17427 * config/i386/i386.c (gen_rtx_cost):
17428 Use ix86_tune_cost instead of ix86_cost.
17429
17430 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17431 Michael Meissner <meissner@linux.ibm.com>
17432 Segher Boessenkool <segher@kernel.crashing.org>
17433
17434 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17435 OPTION_MASK_PCREL.
17436 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17437 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17438 (rs6000_fndecl_pcrel_p): Likewise.
17439 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17440 error if -mpcrel is requested without -mcpu=future.
17441 (rs6000_opt_masks): Add entry for pcrel.
17442 (rs6000_fndecl_pcrel_p): New function.
17443 (rs6000_pcrel_p): Likewise.
17444 * config/rs6000/rs6000.opt (mpcrel): New option.
17445 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17446
17447 2019-05-23 Jan Hubicka <jh@suse.cz>
17448 Martin Liska <mliska@suse.cz>
17449
17450 PR tree-optimization/90576
17451 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17452 poly_int_tree_p.
17453 (aliasing_component_refs_p): Fix three way size compare conditional;
17454 give up earlier in case we can not decide on equivalence.
17455
17456 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17457 Michael Meissner <meissner@linux.ibm.com>
17458 Segher Boessenkool <segher@kernel.crashing.org>
17459
17460 * config.gcc: Add future cpu.
17461 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17462 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17463 #define.
17464 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17465 (RS6000_CPU): New instantiation for future cpu.
17466 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17467 PROCESSOR_FUTURE.
17468 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17469 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17470 * config/rs6000/rs6000-tables.opt: Regenerate.
17471 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17472 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17473 (rs6000_machine_from_flags): Handle future cpu.
17474 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17475 PROCESSOR_POWER9 for now.
17476 (rs6000_adjust_cost): Likewise.
17477 (rs6000_issue_rate): Likewise.
17478 (rs6000_register_move_cost): Likewise.
17479 (rs6000_opt_masks): Add entry for future.
17480 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17481 (MASK_FUTURE): New #define.
17482 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17483 * config/rs6000/rs6000.opt (mfuture): New target option.
17484 * doc/invoke.texi (mcpu): Add future cpu.
17485
17486 2019-05-23 Martin Liska <mliska@suse.cz>
17487
17488 PR c++/90587
17489 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17490 operation points to a temporary (pointed via tree_to_wide_ref)
17491 that is out of scope after the &.
17492
17493 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17494
17495 PR c++/90592
17496 * doc/extend.texi (Function Names): Add missing word.
17497
17498 2019-05-23 Richard Biener <rguenther@suse.de>
17499
17500 PR tree-optimization/88440
17501 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17502 at -O[2s]+.
17503 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17504 generated call.
17505 (generate_memcpy_builtin): Likewise.
17506 (distribute_loop): Pass in whether to only distribute patterns.
17507 (prepare_perfect_loop_nest): Also allow size optimization.
17508 (pass_loop_distribution::execute): When optimizing a loop
17509 nest for size allow pattern replacement.
17510
17511 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17512
17513 PR target/90568
17514 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17515 of xor.
17516
17517 2019-05-23 Martin Liska <mliska@suse.cz>
17518
17519 PR sanitizer/90570
17520 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17521 expression similarly to gimplify_decl_expr.
17522
17523 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17524
17525 * cse.c (cse_dump_path): s/dump_file/f.
17526
17527 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17528
17529 PR c++/90462
17530 * diagnostic-format-json.cc: Include "selftest.h".
17531 (json_from_expanded_location): Only add "file" key for non-NULL
17532 file strings.
17533 (json_from_location_range): Don't add "start" and "finish"
17534 children if they are UNKNOWN_LOCATION.
17535 (selftest::test_unknown_location): New selftest.
17536 (selftest::test_bad_endpoints): New selftest.
17537 (selftest::diagnostic_format_json_cc_tests): New function.
17538 * json.cc (json::object::get): New function.
17539 (selftest::test_object_get): New selftest.
17540 (selftest::json_cc_tests): Call it.
17541 * json.h (json::object::get): New decl.
17542 * selftest-run-tests.c (selftest::run_tests): Call
17543 selftest::diagnostic_format_json_cc_tests.
17544 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17545 decl.
17546
17547 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17548 Andrew Stubbs <amd@codesourcery.com>
17549
17550 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17551 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17552 (kernel): Rename to...
17553 (main_kernel): ... this.
17554 (load_image): Load _init_array and _fini_array kernels.
17555 (run): Add argument for kernel to run.
17556 (main): Run init_array_kernel before main_kernel, and
17557 fini_array_kernel after.
17558 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17559 amdgpu_hsa_kernel attribute on functions.
17560 (gcn_disable_constructors): Delete.
17561 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17562 * config/gcn/crt0.c (size_t): Define.
17563 (_init_array, _fini_array): New.
17564 (__preinit_array_start, __preinit_array_end,
17565 __init_array_start, __init_array_end,
17566 __fini_array_start, __fini_array_end): Declare weak references.
17567
17568 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17569
17570 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17571
17572 2019-05-22 Jason Merrill <jason@redhat.com>
17573
17574 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17575
17576 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17577
17578 PR target/88483
17579 * config/i386/i386-options.c (ix86_init_machine_status): Set
17580 stack_frame_required to true.
17581 * config/i386/i386.c (ix86_get_frame_size): New function.
17582 (ix86_frame_pointer_required): Replace get_frame_size with
17583 ix86_get_frame_size.
17584 (ix86_compute_frame_layout): Likewise.
17585 (ix86_find_max_used_stack_alignment): Changed to void. Set
17586 stack_frame_required.
17587 (ix86_finalize_stack_frame_flags): Always call
17588 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17589 ix86_get_frame_size.
17590 * config/i386/i386.h (machine_function): Add stack_frame_required.
17591
17592 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17593
17594 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17595
17596 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17597
17598 * common/config/aarch64/aarch64-common.c
17599 (struct aarch64_option_extension, struct processor_name_to_arch,
17600 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17601 aarch64_contains_opt,
17602 aarch64_get_extension_string_for_isa_flags): Change type of
17603 variables storing flags to uint64_t.
17604 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17605 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17606 * config/aarch64/aarch64.c (struct processor,
17607 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17608 aarch64_validate_march, aarch64_override_options,
17609 aarch64_option_print, aarch64_handle_attr_isa_flags,
17610 aarch64_declare_function_name, aarch64_start_file): Make flag
17611 variables uint64_t.
17612 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17613 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17614 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17615 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17616 * config/aarch64/driver-aarch64.c
17617 (struct aarch64_arch_extension, struct aarch64_core_data,
17618 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17619 flag variables uint64_t.
17620 * doc/invoke.texi: Add documentation for new arguments.
17621
17622 2019-05-22 Richard Biener <rguenther@suse.de>
17623
17624 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17625 rewrite ...
17626 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17627
17628 2019-05-22 Martin Liska <mliska@suse.cz>
17629
17630 PR lto/90500
17631 * doc/extend.texi: Document the change.
17632
17633 2019-05-22 Richard Biener <rguenther@suse.de>
17634
17635 PR tree-optimization/90450
17636 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17637 (mem_ref_hasher::equal): Check it.
17638 (mem_ref_alloc): Initialize it.
17639 (gather_mem_refs_stmt): Set it.
17640
17641 2019-05-22 Richard Biener <rguenther@suse.de>
17642
17643 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17644 Add ABS_EXPR.
17645 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17646 as ABSU_EXPR.
17647
17648 2019-05-22 Alan Modra <amodra@gmail.com>
17649
17650 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17651 (ASM_CPU_SPEC): Conditionally add -many.
17652 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17653 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17654 (rs6000_file_start): ..extracted from here, and modified to
17655 test all ISA bits.
17656 (rs6000_output_function_prologue): Emit .machine as necessary.
17657
17658 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17659
17660 PR middle-end/90553
17661 * ira-lives.c (process_bb_node_lives): Consider defs
17662 for a call insn to be die before the call, not after.
17663
17664 * function.c (assign_parm_setup_block): Raise alignment of
17665 stacked parameter only for STRICT_ALIGNMENT targets.
17666
17667 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17668
17669 * config/rs6000/constraints.md (define_register_constraint "wz"):
17670 Delete.
17671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17672 RS6000_CONSTRAINT_wz.
17673 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17674 (rs6000_init_hard_regno_mode_ok): Adjust.
17675 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17676 * doc/md.texi (Machine Constraints): Adjust.
17677
17678 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17679
17680 * config/rs6000/constraints.md (define_register_constraint "wl"):
17681 Delete.
17682 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17683 RS6000_CONSTRAINT_wl.
17684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17685 (rs6000_init_hard_regno_mode_ok): Adjust.
17686 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17687 * doc/md.texi (Machine Constraints): Adjust.
17688
17689 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17690
17691 * config/rs6000/constraints.md (define_register_constraint "wm"):
17692 Delete.
17693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17694 RS6000_CONSTRAINT_wm.
17695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17696 (rs6000_init_hard_regno_mode_ok): Adjust.
17697 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17698 * doc/md.texi (Machine Constraints): Adjust.
17699
17700 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17701
17702 * config/rs6000/constraints.md (define_register_constraint "wk"):
17703 Delete.
17704 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17705 RS6000_CONSTRAINT_wk.
17706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17707 (rs6000_init_hard_regno_mode_ok): Adjust.
17708 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17709 * doc/md.texi (Machine Constraints): Adjust.
17710
17711 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17712
17713 * config/rs6000/constraints.md (define_register_constraint "wj"):
17714 Delete.
17715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17716 RS6000_CONSTRAINT_wj.
17717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17718 (rs6000_init_hard_regno_mode_ok): Adjust.
17719 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17720 (VS_64dm): Delete.
17721 * config/rs6000/vsx.md: Ditto.
17722 * doc/md.texi (Machine Constraints): Adjust.
17723
17724 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17725
17726 * config/rs6000/constraints.md (define_register_constraint "wh"):
17727 Delete.
17728 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17729 RS6000_CONSTRAINT_wh.
17730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17731 (rs6000_init_hard_regno_mode_ok): Adjust.
17732 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17733 * doc/md.texi (Machine Constraints): Adjust.
17734
17735 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17736
17737 PR target/90547
17738 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17739 Avoid calling gen_lowpart with CONST operand.
17740
17741 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17742
17743 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17744 field template_last_to_copy.
17745 (ssa_create_duplicates): Set it, and use it. Attempt to
17746 preserve more debug stmts.
17747
17748 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17749
17750 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17751 (signbit<mode>2): New expander
17752
17753 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17754
17755 PR bootstrap/87338
17756 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17757 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17758
17759 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17760
17761 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17762 %ebx and %ecx bafore calling cpuid with leaf 1 or
17763 non-constant leaf argument.
17764
17765 2019-05-21 Alan Modra <amodra@gmail.com>
17766
17767 PR target/90545
17768 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17769 power9 direct move cost.
17770
17771 2019-05-21 Richard Biener <rguenther@suse.de>
17772
17773 PR middle-end/90510
17774 * fold-const.c (fold_read_from_vector): New function.
17775 * fold-const.h (fold_read_from_vector): Declare.
17776 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17777 single-element insert permutations. Canonicalize selector
17778 further and fix issue with last commit.
17779
17780 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17781
17782 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17783 parameter with default value false to declaration.
17784 (split_edges_for_insertion): New inline function. Wrapper for
17785 split_critical_edges with for_edge_insertion_p = true.
17786 * tree-cfg.c (split_critical_edges): Don't split non-critical
17787 edges if for_edge_insertion_p is false. Fix whitespace.
17788 * tree-ssa-pre.c (pass_pre::execute): Call
17789 split_edges_for_insertion instead of split_critical_edges.
17790 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17791 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17792 (pass_data_sink_code): Update function name in the comment.
17793
17794 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17795
17796 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17797 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17798 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17799 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17800 positives.
17801
17802 2019-05-21 Martin Liska <mliska@suse.cz>
17803
17804 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17805 an extra newline.
17806 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17807 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17808 vec_lvsr.
17809 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17810 Quote a C type.
17811 (rs6000_function_arg): Likewise.
17812 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17813 (rs6000_expand_ternop_builtin): Use interval syntax.
17814 (get_element_number): Likewise.
17815 (altivec_expand_builtin): Likewise.
17816 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17817
17818 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17819
17820 PR c++/59813
17821 PR target/90418
17822 * function.h (struct function): Add calls_eh_return member.
17823 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17824 gimplifying __builtin_eh_return call.
17825 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17826 to cfun.
17827 (expand_call_inline): Or in src_cfun->calls_eh_return into
17828 dst_cfun->calls_eh_return.
17829 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17830 cfun->calls_eh_return.
17831 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17832 * lto-streamer-out.c (output_struct_function_base): Write
17833 calls_eh_return.
17834
17835 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17836
17837 PR rtl-optimization/43147
17838 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17839 IX86_BUILTIN_SHUFPD.
17840
17841 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17842
17843 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17844 (refs_may_alias_p_1): ... here; update stats.
17845 (refs_may_alias_p): Do not update stats here.
17846
17847 2019-05-20 Richard Biener <rguenther@suse.de>
17848
17849 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17850 doesn't produce pointers.
17851 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17852 the first operand points to.
17853
17854 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17855
17856 * tree-ssa-alias.c (compare_sizes): New function.
17857 (sompare_type_sizes): New function
17858 (aliasing_component_refs_p): Use it.
17859 (indirect_ref_may_alias_decl_p): Likewise.
17860
17861 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17862
17863 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17864
17865 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17866
17867 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17868 (LIBLSAN_EARLY_SPEC): Likewise.
17869 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17870
17871 2019-05-20 Martin Liska <mliska@suse.cz>
17872
17873 * config/i386/i386.c (ix86_libc_has_fast_function):
17874 Add ATTRIBUTE_UNUSED for the argument.
17875
17876 2019-05-20 Richard Biener <rguenther@suse.de>
17877
17878 * gimple-match-head.c: Include vec-perm-indices.h.
17879 * generic-match-head.c: Likewise.
17880 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17881 is included.
17882 * fold-const.c (fold_vec_perm): Export.
17883 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17884 (match.pd): ...here.
17885
17886 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17887
17888 * cfgloop.h (struct loop): Add simdlen member.
17889 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17890 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17891 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17892 as new argument to autovectorize_vector_sizes target hook. If
17893 loop->simdlen, pick up vector size where the vectorization factor
17894 is equal to loop->simd, and if there is none, fall back to the first
17895 successful one.
17896 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17897 caller.
17898 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17899 * omp-general.c (omp_max_vf): Likewise.
17900 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17901 * tree-vect-slp.c (vect_slp_bb): Likewise.
17902 * target.def (autovectorize_vector_sizes): Add ALL argument and
17903 document it.
17904 * doc/tm.texi: Adjust documentation.
17905 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17906 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17907 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17908 bool argument.
17909 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17910 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17911 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17912 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17913 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17914 preferred vector size is not 512-bit or 256-bit, just put those
17915 unpreferred ones last.
17916
17917 2019-05-20 Martin Liska <mliska@suse.cz>
17918
17919 * targhooks.c (default_libc_has_fast_function): New function.
17920 * targhooks.h (default_libc_has_fast_function): Likewise.
17921
17922 2019-05-20 Martin Liska <mliska@suse.cz>
17923
17924 PR middle-end/90263
17925 * builtins.c (expand_builtin_memory_copy_args): When having a
17926 target with fast mempcpy implementation do now use memcpy.
17927 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17928 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17929 * doc/tm.texi: Likewise.
17930 * doc/tm.texi.in: Likewise.
17931 * target.def:
17932 * expr.c (emit_block_move_hints): Add 2 new arguments.
17933 * expr.h (emit_block_move_hints): Bail out when libcall
17934 to memcpy would be used.
17935
17936 2019-05-20 Martin Liska <mliska@suse.cz>
17937
17938 * profile-count.c: Add vertical spacing in order
17939 to separate functions.
17940 * profile-count.h: Likewise.
17941
17942 2019-05-20 Martin Liska <mliska@suse.cz>
17943
17944 * profile-count.h: Do not use full qualified
17945 names if possible.
17946 * profile-count.c (profile_count::to_frequency): Likewise.
17947
17948 2019-05-20 Martin Liska <mliska@suse.cz>
17949
17950 * profile-count.h (enum profile_quality): Use capital letters
17951 for enum value names. Use the adjusted names.
17952 * profile-count.c: Use the adjusted names.
17953
17954 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17955
17956 * config/rs6000/constraints.md (define_register_constraint "wH"):
17957 Delete.
17958 (define_register_constraint "wI"): Delete.
17959 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17960 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17962 (rs6000_init_hard_regno_mode_ok): Adjust.
17963 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17964 resp. "d", or with "wa" as appropriate, all with "p8v".
17965 * config/rs6000/vsx.md: Ditto.
17966 * doc/md.texi (Machine Constraints): Adjust.
17967
17968 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17969
17970 * config/rs6000/constraints.md (define_register_constraint "wy"):
17971 Delete.
17972 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17973 RS6000_CONSTRAINT_wy.
17974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17975 (rs6000_init_hard_regno_mode_ok): Adjust.
17976 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17977 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17978 (define_mode_attr Fisa): New.
17979 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17980 * doc/md.texi (Machine Constraints): Adjust.
17981
17982 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17983
17984 * config/rs6000/constraints.md (define_register_constraint "wu"):
17985 Delete.
17986 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17987 RS6000_CONSTRAINT_wu.
17988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17989 (rs6000_init_hard_regno_mode_ok): Adjust.
17990 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17991 both with "p8v".
17992 (define_mode_attr Fa): Delete.
17993 * config/rs6000/vsx.md: Ditto.
17994 * doc/md.texi (Machine Constraints): Adjust.
17995
17996 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17997
17998 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17999 Delete.
18000 (define_register_constraint "wK"): Delete.
18001 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18002 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18003 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18004 (rs6000_init_hard_regno_mode_ok): Adjust.
18005 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18006 Replace "wK" constraint by "wH" with "p9v".
18007 * config/rs6000/vsx.md: Ditto.
18008 * doc/md.texi (Machine Constraints): Adjust.
18009
18010 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18011
18012 * config/rs6000/constraints.md (define_register_constraint "wb"):
18013 Delete.
18014 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18015 RS6000_CONSTRAINT_wb.
18016 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18017 (rs6000_init_hard_regno_mode_ok): Adjust.
18018 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18019 * config/rs6000/vsx.md: Ditto.
18020 * doc/md.texi (Machine Constraints): Adjust.
18021
18022 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18023
18024 * config/rs6000/constraints.md (define_register_constraint "wo"):
18025 Delete.
18026 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18027 RS6000_CONSTRAINT_wo.
18028 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18029 (rs6000_init_hard_regno_mode_ok): Adjust.
18030 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18031 * config/rs6000/altivec.md: Ditto.
18032 * doc/md.texi (Machine Constraints): Adjust.
18033
18034 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18035
18036 * config/darwin-c.c (darwin_register_objc_includes): Do not
18037 prepend the sysroot when building gnu-runtime header search
18038 paths.
18039
18040 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18041
18042 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18043 instead of direct output of the asm.
18044
18045 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18046
18047 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18048 argument to be type bool (was int before).
18049 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18050 at first use. Use type bool for some variables. Fix a theoretical
18051 eh_return bug for svr4.
18052
18053 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18054
18055 * config/rs6000/rs6000.md (isa): New attribute.
18056 (enabled): New attribute.
18057
18058 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18059
18060 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18061 assemble_start_function and assemble_end_function.
18062
18063 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18064
18065 PR middle-end/89433
18066 * omp-general.c (oacc_verify_routine_clauses): Change formal
18067 parameters. Add checking if already marked with an OpenACC
18068 'routine' directive. Adjust all users.
18069
18070 PR middle-end/89433
18071 * omp-general.c (oacc_build_routine_dims): Move some of its
18072 processing into...
18073 (oacc_verify_routine_clauses): ... this new function.
18074 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18075
18076 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18077
18078 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18079 formating of picbase labels to match other ports.
18080
18081 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18082
18083 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18084 in the generated code.
18085
18086 2019-05-16 Martin Sebor <msebor@redhat.com>
18087
18088 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18089 identifiers, keywords, operators, and types in diagnostics. Correct
18090 quoting, spelling, and sentence capitalization issues.
18091 (expand_builtin_atomic_is_lock_free): Same.
18092 (fold_builtin_next_arg): Same.
18093 * cfgexpand.c (expand_one_var): Same.
18094 (tree_conflicts_with_clobbers_p): Same.
18095 (expand_asm_stmt): Same.
18096 (verify_loop_structure): Same.
18097 * cgraphunit.c (process_function_and_variable_attributes): Same.
18098 * collect-utils.c (collect_execute): Same.
18099 * collect2.c (maybe_run_lto_and_relink): Same.
18100 (is_lto_object_file): Same.
18101 (scan_prog_file): Same.
18102 * convert.c (convert_to_real_1): Same.
18103 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18104 * except.c (verify_eh_tree): Same.
18105 * gcc.c (execute): Same.
18106 (eval_spec_function): Same.
18107 (run_attempt): Same.
18108 (driver::set_up_specs): Same.
18109 (compare_debug_auxbase_opt_spec_function): Same.
18110 * gcov-tool.c (unlink_gcda_file): Same.
18111 (do_merge): Same.
18112 (do_rewrite): Same.
18113 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18114 * gimplify.c (gimplify_asm_expr): Same.
18115 (gimplify_adjust_omp_clauses): Same.
18116 * hsa-gen.c (gen_hsa_addr_insns): Same.
18117 (gen_hsa_insns_for_load): Same.
18118 (gen_hsa_cmp_insn_from_gimple): Same.
18119 (gen_hsa_insns_for_operation_assignment): Same.
18120 (gen_get_level): Same.
18121 (gen_hsa_alloca): Same.
18122 (omp_simple_builtin::generate): Same.
18123 (gen_hsa_atomic_for_builtin): Same.
18124 (gen_hsa_insns_for_call): Same.
18125 * input.c (dump_location_info): Same.
18126 * ipa-devirt.c (compare_virtual_tables): Same.
18127 * ira.c (ira_setup_eliminable_regset): Same.
18128 * lra-assigns.c (lra_assign): Same.
18129 * lra-constraints.c (lra_constraints): Same.
18130 * lto-streamer-in.c (lto_input_mode_table): Same.
18131 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18132 (merge_and_complain): Same.
18133 (compile_offload_image): Same.
18134 (compile_images_for_offload_targets): Same.
18135 (debug_objcopy): Same.
18136 (run_gcc): Same.
18137 (main): Same.
18138 * opts.c (print_specific_help): Same.
18139 (parse_no_sanitize_attribute): Same.
18140 (print_help): Same.
18141 (handle_param): Same.
18142 * plugin.c (add_new_plugin): Same.
18143 (parse_plugin_arg_opt): Same.
18144 (try_init_one_plugin): Same.
18145 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18146 operators, and types in diagnostics. Correct quoting and spelling
18147 issues.
18148 * read-rtl-function.c (parse_edge_flag_token): Same.
18149 (function_reader::parse_enum_value): Same.
18150 * reg-stack.c (check_asm_stack_operands): Same.
18151 * regcprop.c (validate_value_data): Same.
18152 * sched-rgn.c (make_pass_sched_fusion): Same.
18153 * stmt.c (check_unique_operand_names): Same.
18154 * targhooks.c (default_target_option_pragma_parse): Same.
18155 * tlink.c (recompile_files): Same.
18156 * toplev.c (process_options): Same.
18157 (do_compile): Same.
18158 * trans-mem.c (diagnose_tm_1): Same.
18159 (ipa_tm_scan_irr_block): Same.
18160 (ipa_tm_diagnose_transaction): Same.
18161 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18162 format a tree code name in a diagnostic.
18163 (verify_types_in_gimple_min_lval): Same.
18164 (verify_types_in_gimple_reference): Same.
18165 (verify_gimple_call): Same.
18166 (verify_gimple_assign_unary): Same.
18167 (verify_gimple_assign_binary): Same.
18168 (verify_gimple_assign_ternary): Same.
18169 (verify_gimple_assign_single): Same.
18170 (verify_gimple_switch): Same.
18171 (verify_gimple_label): Same.
18172 (verify_gimple_phi): Same.
18173 (verify_gimple_in_seq): Same.
18174 (verify_eh_throw_stmt_node): Same.
18175 (collect_subblocks): Same.
18176 (gimple_verify_flow_info): Same.
18177 (do_warn_unused_result): Same.
18178 * tree-inline.c (expand_call_inline): Same.
18179 * tree-into-ssa.c (update_ssa): Same.
18180 * tree.c (tree_int_cst_elt_check_failed): Same.
18181 (tree_vec_elt_check_failed): Same.
18182 (omp_clause_operand_check_failed): Same.
18183 (verify_type_variant): Same.
18184 (verify_type): Same.
18185 * value-prof.c (verify_histograms): Same.
18186 * varasm.c (assemble_start_function): Same.
18187
18188 2019-05-16 Martin Sebor <msebor@redhat.com>
18189
18190 * config/i386/i386-expand.c (get_element_number): Quote keywords
18191 and other internal names in diagnostics. Adjust other diagnostic
18192 formatting issues noted by -Wformat-diag.
18193 * config/i386/i386-features.c
18194 (ix86_mangle_function_version_assembler_name): Same.
18195 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18196 * config/i386/i386.c (ix86_function_type_abi): Same.
18197 (ix86_function_ms_hook_prologue): Same.
18198 (classify_argument): Same.
18199 (ix86_expand_prologue): Same.
18200 (ix86_md_asm_adjust): Same.
18201 (ix86_memmodel_check): Same.
18202
18203 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18204
18205 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18206 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18207 and fpxx modes.
18208
18209 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18210
18211 PR target/90497
18212 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18213 intrinsics without SSE/SSE2/SSSE3.
18214 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18215 check.
18216 (*mmx_uavgv8qi3): Likewise.
18217
18218 2019-05-17 Richard Biener <rguenther@suse.de>
18219
18220 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18221 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18222
18223 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18224
18225 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18226 vec_sldw insn pattern.
18227
18228 2019-05-17 Richard Biener <rguenther@suse.de>
18229
18230 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18231
18232 2019-05-17 Martin Liska <mliska@suse.cz>
18233
18234 PR driver/90496
18235 * toplev.c (output_stack_usage): With LTO and sanitizer it
18236 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18237 has no file location.
18238
18239 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18240
18241 PR c++/90484
18242 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18243 sz0 is equal to sz1, instead return false in that case.
18244
18245 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18246 has non-constant expression, force sctx.lane and use two
18247 argument IFN_GOMP_SIMD_LANE instead of single argument.
18248 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18249 two argument IFN_GOMP_SIMD_LANE without lhs.
18250 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18251 member.
18252 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18253 Define.
18254 (LOOP_REQUIRES_VERSIONING): Or in
18255 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18256 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18257 simd_if_cond.
18258 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18259 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18260 from simd if clause if needed.
18261
18262 2019-05-16 Richard Biener <rguenther@suse.de>
18263
18264 * tree-affine.c (expr_to_aff_combination): New function split
18265 out from...
18266 (tree_to_aff_combination): ... here.
18267 (aff_combination_expand): Avoid building a GENERIC tree.
18268
18269 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18270
18271 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18272 assemble_start_function and assemble_end_function calls.
18273 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18274 assemble_start_function and assemble_end_function.
18275 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18276 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18277 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18278 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18279 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18280 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18281 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18282 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18283 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18284 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18285 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18286 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18287 Likewise.
18288 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18289 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18290 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18291 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18292 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18293 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18294 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18295 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18296 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18297 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18298 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18299 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18300 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18301 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18302 Likewise.
18303 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18304 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18305 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18306
18307 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18308
18309 * tree-ssa-alias.c (alias_stats): Add
18310 aliasing_component_refs_p_may_alias and
18311 aliasing_component_refs_p_no_alias.
18312 (dump_alias_stats): Print aliasing_component_refs_p stats.
18313 (aliasing_component_refs_p): Update stats.
18314
18315 2019-05-16 Martin Liska <mliska@suse.cz>
18316
18317 PR lto/90500
18318 * multiple_target.c (expand_target_clones): Do not allow
18319 target_clones being used with a symbol that is an alias.
18320
18321 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18322
18323 PR tree-optimization/90394
18324 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18325 positives rather than ICE for cases where (code2 == NE_EXPR
18326 && code1 == BIT_AND_EXPR).
18327
18328 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18329
18330 PR fortran/90329
18331 * tree-core.h (struct tree_decl_common): Document
18332 decl_nonshareable_flag for PARM_DECLs.
18333 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18334 * calls.c (expand_call): Don't try tail call if caller
18335 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18336 passed on the stack and callee needs to pass any arguments on the
18337 stack.
18338 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18339 else if instead of series of mutually exclusive ifs. Handle
18340 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18341 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18342
18343 * lto-streamer.h (LTO_major_version): Bump to 9.
18344
18345 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18346
18347 PR tree-optimization/90106
18348 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18349 new parameter as new internal function call, also move it to new
18350 basic block.
18351 (use_internal_fn): Pass internal function call to
18352 shrink_wrap_one_built_in_call_with_conds.
18353
18354 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18355
18356 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18357 max_vf to 1.
18358 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18359 safelen_int and set loop->dont_vectorize.
18360
18361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18362
18363 PR target/89021
18364 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18365 SSE/SSE2/SSSE3.
18366 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18367 Likewise.
18368 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18369 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18370 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18371 is defined.
18372
18373 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18374
18375 PR target/89021
18376 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18377 define_insn_and_split to support SSE emulation.
18378 (*vec_extractv2sf_0): Likewise.
18379 (*vec_extractv2sf_1): Likewise.
18380 (*vec_extractv2si_0): Likewise.
18381 (*vec_extractv2si_1): Likewise.
18382 (*vec_extractv2si_zext_mem): Likewise.
18383 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18384 (vec_extractv2sf_1 splitter): Likewise.
18385 (vec_extractv2sfsf): Likewise.
18386 (vec_setv2si): Likewise.
18387 (vec_extractv2si_1 splitter): Likewise.
18388 (vec_extractv2sisi): Likewise.
18389 (vec_setv4hi): Likewise.
18390 (vec_extractv4hihi): Likewise.
18391 (vec_setv8qi): Likewise.
18392 (vec_extractv8qiqi): Likewise.
18393 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18394 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18395 (vec_extractv2sisi): Likewise.
18396 (vec_extractv4hihi): Likewise.
18397 (vec_extractv8qiqi): Likewise.
18398 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18399 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18400 (vec_initv2sisi): Likewise.
18401 (vec_initv4hihi): Likewise.
18402 (vec_initv8qiqi): Likewise.
18403 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18404 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18405 (vec_setv4hi): Likewise.
18406 (vec_setv8qi): Likewise.
18407
18408 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18409
18410 PR target/89021
18411 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18412 TARGET_MMX_WITH_SSE.
18413 (MMXMODE:*mov<mode>_internal): Likewise.
18414 (MMXMODE:movmisalign<mode>): Likewise.
18415
18416 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18417
18418 PR target/89021
18419 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18420 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18421 (sse2_cvtpd2pi): Ditto.
18422 (sse2_cvttpd2pi): Ditto.
18423 (*vec_concatv2sf_sse4_1): Ditto.
18424 (*vec_concatv2sf_sse): Ditto.
18425 (*vec_concatv2si_sse4_1): Ditto.
18426 (*vec_concatv2si): Ditto.
18427 (*vec_concatv4si_0): Ditto.
18428 (*vec_concatv2di_0): Ditto.
18429
18430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18431
18432 PR target/89021
18433 * config/i386/sse.md (abs<mode>2): 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_palignrdi): Changed to
18439 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_psign<mode>3): Add SSE emulation.
18445
18446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18447
18448 PR target/89021
18449 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18450 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18451 SSE emulation.
18452
18453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18454
18455 PR target/89021
18456 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18457 or TARGET_MMX_WITH_SSE.
18458 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18459
18460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18461
18462 PR target/89021
18463 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18464
18465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18466
18467 PR target/89021
18468 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18469 Changed to define_insn_and_split to support SSE emulation.
18470
18471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18472
18473 PR target/89021
18474 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18475 Changed to define_insn_and_split to support SSE emulation.
18476
18477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18478
18479 PR target/89021
18480 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18481 (*mmx_<emms>): This.
18482 (mmx_<emms>): New expander.
18483
18484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18485
18486 PR target/89021
18487 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18488 support.
18489 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18490
18491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18492
18493 PR target/89021
18494 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18495
18496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18497
18498 PR target/89021
18499 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18500
18501 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18502
18503 PR target/89021
18504 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18505 TARGET_MMX_WITH_SSE.
18506 (*mmx_uavgv4hi3): Add SSE emulation.
18507
18508 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18509
18510 PR target/89021
18511 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18512 and TARGET_MMX_WITH_SSE.
18513 (*mmx_uavgv8qi3): Add SSE emulation.
18514
18515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18516
18517 PR target/89021
18518 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18519 maskmovdqu for __MMX_WITH_SSE__.
18520
18521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18522
18523 PR target/89021
18524 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18525 TARGET_MMX and TARGET_MMX_WITH_SSE.
18526 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18527
18528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18529
18530 PR target/89021
18531 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18532 define_insn_and_split to support SSE emulation.
18533
18534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18535
18536 PR target/89021
18537 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18538 and TARGET_MMX_WITH_SSE.
18539 (mmx_<code>v8qi3): Likewise.
18540 (smaxmin:<code>v4hi3): New.
18541 (umaxmin:<code>v8qi3): Likewise.
18542 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18543 (umaxmin:*mmx_<code>v8qi3): Likewise.
18544
18545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18546
18547 PR target/89021
18548 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18549 TARGET_MMX_WITH_SSE.
18550 (*mmx_pinsrw): Add SSE emulation.
18551
18552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18553
18554 PR target/89021
18555 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18556
18557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18558
18559 PR target/89021
18560 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18561 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18562 SSE emulation.
18563
18564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 PR target/89021
18567 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18568 (sse_cvttps2pi): Likewise.
18569
18570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18571
18572 PR target/89021
18573 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18574 TARGET_MMX_WITH_SSE.
18575 (mmx_pshufw_1): Add SSE emulation.
18576 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18577 TARGET_MMX_WITH_SSE to support SSE emulation.
18578
18579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18580
18581 PR target/89021
18582 * config/i386/constraints.md (Yw): New constraint.
18583 * config/i386/mmx.md (*vec_dupv2si): Changed to
18584 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18585 support SSE emulation.
18586
18587 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18588
18589 PR target/89021
18590 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18591 TARGET_MMX_WITH_SSE.
18592 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18593 support.
18594 (mmx_gt<mode>3): Likewise.
18595
18596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18597
18598 PR target/89021
18599 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18600 TARGET_MMX_WITH_SSE. Add SSE support.
18601
18602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18603
18604 PR target/89021
18605 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18606 TARGET_MMX_WITH_SSE.
18607 (any_logic:<code><mode>3): New.
18608 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18609 Add SSE support.
18610
18611 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18612
18613 PR target/89021
18614 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18615 TARGET_MMX_WITH_SSE. Add SSE emulation.
18616 (mmx_<shift_insn><mode>3): Likewise.
18617 (ashr<mode>3): New.
18618 (<shift_insn><mode>3): Likewise.
18619
18620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18621
18622 PR target/89021
18623 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18624 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18625
18626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18627
18628 PR target/89021
18629 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18630 TARGET_MMX_WITH_SSE.
18631 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18632 SSE support.
18633
18634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18635
18636 PR target/89021
18637 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18638 TARGET_MMX_WITH_SSE.
18639 (mulv4hi3): New.
18640 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18641 support.
18642
18643 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18644
18645 PR target/89021
18646 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18647 (plusminus:mmx_<plusminus_insn><mode>3): Check
18648 TARGET_MMX_WITH_SSE.
18649 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18650 (<plusminus_insn><mode>3): New.
18651 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18652 (*mmx_<plusminus_insn><mode>3): Likewise.
18653
18654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18655
18656 PR target/89021
18657 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18658 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18659 prototype.
18660 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18661 define_insn_and_split to support SSE emulation.
18662 (mmx_punpcklbw): Likewise.
18663 (mmx_punpckhwd): Likewise.
18664 (mmx_punpcklwd): Likewise.
18665 (mmx_punpckhdq): Likewise.
18666 (mmx_punpckldq): Likewise.
18667
18668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18669 Uros Bizjak <ubizjak@gmail.com>
18670
18671 PR target/89021
18672 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18673 New function.
18674 (ix86_split_mmx_pack): Likewise.
18675 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18676 New prototype.
18677 (ix86_split_mmx_pack): Likewise.
18678 * config/i386/i386.md (mmx_isa): New.
18679 (enabled): Also check mmx_isa.
18680 * config/i386/mmx.md (any_s_truncate): New code iterator.
18681 (s_trunsuffix): New code attr.
18682 (mmx_packsswb): Removed.
18683 (mmx_packssdw): Likewise.
18684 (mmx_packuswb): Likewise.
18685 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18686 MMX packsswb/packuswb with SSE2.
18687 (mmx_packssdw): Likewise.
18688 * config/i386/predicates.md (register_mmxmem_operand): New.
18689
18690 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18691
18692 PR target/89021
18693 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18694 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18695 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18696 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18697 (ix86_vector_mode_supported_p): Likewise.
18698 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18699
18700 2019-05-15 Martin Liska <mliska@suse.cz>
18701
18702 PR middle-end/90478
18703 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18704 Check for overflow.
18705
18706 2019-05-15 Richard Biener <rguenther@suse.de>
18707
18708 * tree-into-ssa.c (pass_build_ssa::execute): Run
18709 update_address_taken before going into SSA.
18710
18711 2019-05-15 Richard Biener <rguenther@suse.de>
18712
18713 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18714 as __BIT_FIELD_REF with type with -gimple.
18715
18716 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18717
18718 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18719 semantically equivalent branches (left over after prior refactorings).
18720
18721 2019-05-15 Richard Biener <rguenther@suse.de>
18722
18723 PR tree-optimization/88828
18724 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18725 bogus check.
18726
18727 2019-05-14 Richard Biener <rguenther@suse.de>
18728
18729 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18730 as __VIEW_CONVERT with -gimple.
18731
18732 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18733
18734 PR target/82920
18735 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18736 Darwin.
18737
18738 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18739
18740 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18741 define_split to become a define_insn_and_split.
18742
18743 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18744
18745 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18746 arguments.
18747 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18748 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18749 (sibcall_epilogue): Adjust.
18750 (epilogue): Adjust.
18751
18752 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18753
18754 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18755 to unsupported ones.
18756 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18757 * config.host: Likewise.
18758 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18759 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18760 __svr4__]: Remove "brand" fallback.
18761 [!KSTAT_DATA_STRING]: Remove.
18762 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18763 to *-*-solaris2*.
18764 (comdat_group): Likewise.
18765 (set_have_as_tls): Likewise.
18766 (gcc_cv_target_dl_iterate_phdr): Likewise.
18767 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18768 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18769 * configure: Regenerate.
18770 * doc/install.texi: Simplify Solaris target triplets.
18771 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18772 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18773 Remove Solaris 10 references.
18774 Remove obsolete Solaris bug reference.
18775 (Specific, sparc-sun-solaris2.10): Remove.
18776
18777 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18778
18779 * config/i386/i386.md (any_div): New code iterator.
18780 (paired_mod): New code attribute.
18781 (sgnprefix): Handle DIV and UDIV RTXes.
18782 (u): Ditto.
18783 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18784 and udivmod<mode>4 patterns using any_div code iterator.
18785 (divmod splitters): Macroize splitters using any_div code iterator.
18786 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18787 (*udivmodsi4_pow2_zext_2): Ditto.
18788 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18789 and *udivmod<mode>4_noext patterns using any_div code iterator.
18790 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18791 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18792 patterns using any_div code iterator.
18793 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18794 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18795 patterns using any_div code iterator.
18796 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18797 udivmodhiqi3 patterns using any_extend code iterator.
18798
18799 2019-05-14 Richard Biener <rguenther@suse.de>
18800 H.J. Lu <hongjiu.lu@intel.com>
18801
18802 PR tree-optimization/88828
18803 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18804 permuting in a single non-constant element not extracted
18805 from a vector.
18806
18807 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18808
18809 * internal-fn.def (SIGNBIT): New.
18810 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18811 defined.
18812 (signbitv4sf2): Likewise.
18813
18814 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18815
18816 PR target/90357
18817 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18818 next insn when the SRC reg is dead.
18819
18820 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18821
18822 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18823 (alloc_cand_and_find_basis): Ditto.
18824 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18825 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18826 (create_add_imm_cand, slsr_process_cast): Ditto.
18827 (slsr_process_copy, replace_mult_candidate): Ditto.
18828 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18829 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18830 (pass_strength_reduction::execute): Init the first NULL element.
18831
18832 2019-05-13 Nathan Sidwell <nathan@acm.org>
18833
18834 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18835 (run_attempt): Reformat line break.
18836
18837 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18838
18839 PR target/90418
18840 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18841 data registers in sibcall epilogues.
18842 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18843
18844 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18845
18846 PR target/89221
18847 * configure.ac (--enable-frame-pointer):
18848 Disable by default for cygwin and mingw.
18849 * configure: Regenerate.
18850
18851 2019-05-13 Nathan Sidwell <nathan@acm.org>
18852
18853 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18854 piece of code.
18855 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18856 (gen_member_die): Move abstract origin check earlier. Only VARs
18857 can be static_inline_p. Simplify splicing control flow.
18858
18859 2019-05-13 Richard Biener <rguenther@suse.de>
18860
18861 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18862 VIEW_CONVERT_EXPR.
18863 (vect_build_slp_tree_1): Likewise.
18864
18865 2019-05-13 Richard Biener <rguenther@suse.de>
18866
18867 PR tree-optimization/90402
18868 * tree-if-conv.c (tree_if_conversion): Value number only
18869 the loop body by making the latch an exit of the region
18870 as well.
18871 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18872 processing PHIs.
18873 (do_rpo_vn): Deal with multiple edges into the entry block
18874 that are not backedges inside the region by skipping PHIs
18875 of the entry block.
18876
18877 2019-05-13 Richard Biener <rguenther@suse.de>
18878
18879 PR tree-optimization/90316
18880 * tree-ssa-pre.c (insert_aux): Fold into ...
18881 (insert): ... this function. Use a RPO walk to reduce the
18882 number of required iterations.
18883
18884 2019-05-13 Martin Liska <mliska@suse.cz>
18885
18886 PR tree-optimization/90416
18887 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18888 string instead of passing the second part as va_arg argument.
18889
18890 2019-05-13 Martin Liska <mliska@suse.cz>
18891
18892 PR gcov-profile/90380
18893 * gcov.c (handle_cycle): Do not support zero cycle count,
18894 it should not be possible.
18895 (path_contains_zero_cycle_arc): New function.
18896 (circuit): Ignore zero cycle arc counts.
18897
18898 2019-05-13 Martin Liska <mliska@suse.cz>
18899
18900 PR gcov-profile/90380
18901 * gcov.c (enum loop_type): Remove the enum and
18902 the operator.
18903 (handle_cycle): Assert that we should not reach
18904 a negative count.
18905 (circuit): Use loop_found instead of a tri-state loop_type.
18906 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18907 happen.
18908
18909 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18910
18911 PR target/82920
18912 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18913 (ix86_output_indirect_branch_via_reg): Use output mechanism
18914 accounting for __USER_LABEL_PREFIX__.
18915 (ix86_output_indirect_branch_via_push): Likewise.
18916 (ix86_output_function_return): Likewise.
18917 (ix86_output_indirect_function_return): Likewise.
18918
18919 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18920
18921 * doc/md.texi: Document use of code attributes in rtx patterns.
18922 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18923 * read-rtl.c (find_code): Split out search loops into...
18924 (maybe_find_code): ...this new function.
18925 (check_code_iterator): Make the error message more informative.
18926 (check_code_attribute): New function.
18927 (rtx_reader::rtx_alloc_for_name): Likewise.
18928 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18929 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18930 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18931 <max_opp> directly as an rtx code instead of via a match_operator.
18932 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18933 (<su>abd<mode>_3): Update accordingly.
18934
18935 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18936
18937 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18938 is given, print the state of the EH "save world" computation for
18939 Darwin.
18940
18941 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18942
18943 PR c++/59813
18944 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18945 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18946
18947 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18948
18949 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18950 Use pinsrd for TARGET_SSE4_1.
18951 * config/i386/sse.md (movdi_to_sse): Ditto.
18952
18953 2019-05-10 Richard Biener <rguenther@suse.de>
18954
18955 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18956 (do_rpo_vn): Initialize next_value_id.
18957
18958 2019-05-10 Martin Liska <mliska@suse.cz>
18959
18960 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18961 Fix plural form.
18962
18963 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18964
18965 PR tree-optimization/90385
18966 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18967 arguments of the exit phis.
18968
18969 PR c++/90383
18970 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18971 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18972 id->do_not_fold.
18973 (copy_tree_body_r): Likewise.
18974 (copy_fn): Set id.do_not_fold to true.
18975
18976 2019-05-10 Martin Liska <mliska@suse.cz>
18977
18978 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18979 Reapply changes from r269790.
18980
18981 2019-05-10 Martin Liska <mliska@suse.cz>
18982
18983 PR middle-end/90340
18984 * doc/invoke.texi: New params.
18985 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18986 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18987 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18988 Use it.
18989 * tree-switch-conversion.h (struct jump_table_cluster):
18990 Likewise.
18991
18992 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18993
18994 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18995
18996 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18997
18998 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18999
19000 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19001
19002 PR rtl-optimization/88879
19003 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19004
19005 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19006
19007 PR target/90405
19008 * config/arm/arm.c (callee_saved_reg_p): Move before
19009 thumb_find_work_register.
19010 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19011 thumb_find_work_register. Only call df_get_live_out once.
19012 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19013 (thumb_find_work_register): Use
19014 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19015 algorithms to locate a spare call clobbered reg.
19016
19017 2019-05-09 Martin Liska <mliska@suse.cz>
19018
19019 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19020 and MAX_EXPR in GIMPLE FE format.
19021
19022 2019-05-09 Martin Liska <mliska@suse.cz>
19023
19024 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19025 * gimple-pretty-print.c (dump_gimple_bb_header):
19026 Dump BB count.
19027 (pp_cfg_jump): Dump edge probability.
19028 * profile-count.c (profile_quality_as_string): Simplify
19029 with a static array.
19030 (parse_profile_quality): New function.
19031 (profile_count::dump): Simplify with a static array.
19032 (profile_count::from_gcov_type): Add new argument.
19033 * profile-count.h (parse_profile_quality): Likewise.
19034 * predict.h (set_hot_bb_threshold): New.
19035 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19036 New param.
19037 * predict.c (get_hot_bb_threshold): Set from the new param.
19038 (set_hot_bb_threshold): New.
19039
19040 2019-05-09 Richard Biener <rguenther@suse.de>
19041
19042 PR tree-optimization/90395
19043 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19044 rewrite vector stores that throw internally.
19045
19046 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19047
19048 * cif-code.def (CHKP): Remove.
19049
19050 PR target/89221
19051 * configure.ac (--enable-frame-pointer): Disable by default for
19052 GNU systems.
19053 * configure: Regenerate.
19054
19055 2019-05-09 Alan Modra <amodra@gmail.com>
19056
19057 PR target/89271
19058 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19059 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19060 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19061 cost for general <-> vsx when direct moves are available.
19062 Cost union classes at minimal cost for any reg in the class.
19063 Correct calculation for moves between vsx, float, and altivec.
19064 Don't return a low cost for moves between special regs. Don't
19065 use hard coded register numbers.
19066 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19067 (rs6000_ira_change_pseudo_allocno_class): New function.
19068 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19069 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19070 alternatives.
19071 (movsi_internal1): Don't disparage vector alternatives.
19072 (mov<mode>_internal): Likewise, excepting alternative that
19073 will be split.
19074 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19075 we <- b alternative.
19076
19077 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19078
19079 PR c++/59813
19080 PR tree-optimization/89060
19081 * tree-ssa-live.h (live_vars_map): New typedef.
19082 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19083 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19084 (struct compute_live_vars_data): New type.
19085 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19086 live_vars_at_stmt, destroy_live_vars): New functions.
19087 * tree-tailcall.c: Include tree-ssa-live.h.
19088 (live_vars, live_vars_vec): New global variables.
19089 (find_tail_calls): Perform variable life analysis before punting.
19090 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19091 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19092 member.
19093 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19094 Perform variable life analysis to select variables that really need
19095 clobbers added.
19096 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19097 instead set id->eh_landing_pad_dest and assert it is the same.
19098 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19099
19100 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19101 Richard Earnshaw <rearnsha@arm.com>
19102
19103 PR target/88167
19104 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19105 function.
19106 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19107 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19108 register if both the epilogue and prologue can use call-clobbered
19109 regs.
19110 (thumb1_unexpanded_epilogue): Use
19111 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19112 picking temporaries for restoring high regs to match that of the
19113 prologue where possible.
19114 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19115 the list of work registers. Detect if the return address is still live
19116 at the end of the prologue and avoid using it for a work register if so.
19117 If the return address is not live, add LR to the list of pushable regs
19118 after the first pass.
19119
19120 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19121
19122 PR tree-optimization/90078
19123 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19124 (INFTY): Increase the value for infinite cost.
19125 (struct comp_cost): Promote type of members to int64_t.
19126 (infinite_cost): Don't set complexity in initialization.
19127 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19128 overflows to infinite_cost.
19129 (adjust_setup_cost): Promote type of parameter and cost computation
19130 to int64_t.
19131 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19132 int64_t.
19133 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19134 cost computation to int64_t.
19135 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19136 int64_t's format specifier in dump.
19137
19138 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19139
19140 PR tree-optimization/90240
19141 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19142 with respect to scaling factor pre-computed for each basic block.
19143 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19144 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19145 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19146 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19147 live range for array of loop's basic blocks. Cleanup aux field of
19148 loop's basic blocks.
19149
19150 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19151
19152 PR tree-optimization/90356
19153 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19154
19155 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19156
19157 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19158 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19159 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19160 (ix86_handle_option): Handle -mavx512bf16.
19161 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19162 to extra_headers.
19163 * config/i386/avx512bf16vlintrin.h: New.
19164 * config/i386/avx512bf16intrin.h: New.
19165 * config/i386/cpuid.h (bit_AVX512BF16): New.
19166 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19167 * config/i386/i386-builtin-types.def: Add new types.
19168 * config/i386/i386-builtin.def: Add new builtins.
19169 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19170 __AVX512BF16__.
19171 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19172 (ix86_option_override_internal): Handle BF16.
19173 (ix86_valid_target_attribute_inner_p): Ditto.
19174 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19175 * config/i386/i386-builtin.c (enum processor_features): Add
19176 F_AVX512BF16.
19177 (static const _isa_names_table isa_names_table): Ditto.
19178 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19179 (PTA_AVX512BF16): Ditto.
19180 * config/i386/i386.opt: Add -mavx512bf16.
19181 * config/i386/immintrin.h: Include avx512bf16intrin.h
19182 and avx512bf16vlintrin.h.
19183 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19184 avx512f_cvtneps2bf16_<mode><mask_name>,
19185 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19186 * config/i386/subst.md (mask_half): Add new subst.
19187 * doc/invoke.texi: Document -mavx512bf16.
19188
19189 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19190
19191 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19192 Delete declaration.
19193 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19194 (rs6000_debug_legitimize_reload_address): Delete.
19195 (rs6000_legitimize_reload_address_ptr): Delete.
19196 (rs6000_option_override_internal): Adjust.
19197 (mem_operand_gpr): Adjust comment.
19198 (legitimate_lo_sum_address_p): Ditto.
19199 (rs6000_legitimize_reload_address): Delete.
19200 (rs6000_debug_legitimize_reload_address): Delete.
19201 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19202
19203 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19204
19205 PR target/89765
19206 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19207 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19208 to compute vector element selector for both constant and variable
19209 operands.
19210
19211 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19212
19213 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19214 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19215 ashrdi3_cvt using SWI48 mode iterator.
19216
19217 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19218
19219 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19220 (aarch64_<su>abd<mode>_3): Likewise.
19221 (*aarch64_<su>abd<mode>_3): New define_insn.
19222 (<sur>sad<vsi2qi>): New define_expand.
19223 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19224 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19225 (build_vect_cond_expr): Likewise.
19226
19227 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19228
19229 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19230 clobbers outside of accessible_reg_set.
19231 * config/i386/i386.c (ix86_conditional_register_usage):
19232 Disable register sets by clearing corresponding bits in
19233 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19234 call_used_regs and don't clear corresponding reg_names array members.
19235
19236 2019-05-07 Richard Biener <rguenther@suse.de>
19237
19238 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19239 not specified still compute a comp_vectype for invariant
19240 compares.
19241
19242 2019-05-07 Richard Biener <rguenther@suse.de>
19243
19244 PR tree-optimization/90316
19245 * tree-ssa-pre.c (translate_vuse_through_block): When
19246 same_valid is NULL do not bother to search for a virtual
19247 PHI continuation.
19248 (phi_translate_1): When operands changed we cannot keep
19249 the same value-number so do not bother to ask whether
19250 that's possible from translate_vuse_through_block.
19251
19252 2019-05-07 Martin Liska <mliska@suse.cz>
19253
19254 * bitmap.c (bitmap_register): Come up with
19255 alloc_descriptor_max_uid and assign it for
19256 a new bitmap.
19257 (register_overhead): Use get_descriptor as
19258 a descriptor.
19259 (release_overhead): New.
19260 (bitmap_elem_to_freelist): Call it.
19261 (bitmap_elt_clear_from): Likewise.
19262 (bitmap_obstack_free): Likewise.
19263 (bitmap_move): Sensitively release memory.
19264 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19265 (bitmap_initialize): Initialize alloc_descriptor to zero.
19266 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19267
19268 2019-05-07 Richard Biener <rguenther@suse.de>
19269
19270 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19271 we build a SLP node. Remove max_size and limiting.
19272 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19273
19274 2019-05-07 Richard Biener <rguenther@suse.de>
19275
19276 PR tree-optimization/90316
19277 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19278 limit by reference.
19279 (walk_non_aliased_vuses): Take walking limit argument.
19280 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19281 walking if it is reached instead of just counting.
19282 (get_continuation_for_phi): Likewise.
19283 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19284 limiting to the callback.
19285 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19286 (vn_reference_lookup_3): Likewise.
19287 (vn_reference_lookup_pieces): Likewise.
19288 (vn_reference_lookup): Likewise.
19289 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19290 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19291 (avail_exprs_stack::lookup_avail_expr): Likewise.
19292
19293 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19294
19295 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19296 for comparaible types in the second direction even if first one
19297 hits incomparable type.
19298
19299 2019-05-07 Richard Biener <rguenther@suse.de>
19300
19301 PR lto/90369
19302 * lto-wrapper.c (debug_objcopy): Use the original filename
19303 including archive offset for the filename used for -save-temps.
19304
19305 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19306
19307 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19308 detection.
19309
19310 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19311 Hongtao Liu <hongtao.liu@intel.com>
19312
19313 PR target/89750
19314 PR target/86444
19315 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19316 Modified, original implementation isn't correct.
19317
19318 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19319
19320 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19321 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19322 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19323 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19324 (FRAME_POINTER_REGNUM): Change numbering.
19325 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19326 (alt_reg_names): Adjust.
19327 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19328 fixed.
19329 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19330 (DWARF_FRAME_REGISTERS): Delete.
19331 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19332 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19333 Adjust.
19334 (REG_ALLOC_ORDER): Adjust.
19335 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19336 (REG_CLASS_CONTENTS): Adjust.
19337 (RETURN_ADDR_RTX): Change comment.
19338 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19339 instead of 67.
19340 (REGISTER_NAMES): Adjust.
19341 (ADDITIONAL_REGISTER_NAMES): Adjust.
19342 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19343
19344 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19345
19346 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19347 Delete.
19348 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19349 (DWARF_FRAME_REGISTERS): Adjust.
19350 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19351 Adjust.
19352 (REG_ALLOC_ORDER): Adjust.
19353 (enum reg_class): Delete SPR_REGS.
19354 (REG_CLASS_NAMES): Delete SPR_REGS.
19355 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19356 (REGISTER_NAMES): Adjust.
19357 (ADDITIONAL_REGISTER_NAMES): Adjust.
19358 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19359 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19360 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19361 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19362 (htm_spr_regno): Delete.
19363 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19364 argument.
19365 (rs6000_dbx_register_number): Adjust.
19366
19367 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19368
19369 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19370
19371 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19372
19373 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19374 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19375
19376 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19377
19378 PR tree-optimization/88709
19379 PR tree-optimization/90271
19380 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19381 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19382 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19383 variable.
19384 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19385 of the store merging group is larger than
19386 PARAM_STORE_MERGING_MAX_SIZE parameter.
19387 (split_group): Add bzero_first argument. If set, always emit first
19388 the first store which must be = {} of the whole area and then for the
19389 rest of the stores consider all zero bytes as paddings.
19390 (imm_store_chain_info::output_merged_store): Check if first store
19391 is = {} of the whole area and if yes, determine which setting of
19392 bzero_first for split_group gives smaller number of stores. Adjust
19393 split_group callers.
19394 (lhs_valid_for_store_merging_p): Allow decls.
19395 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19396 no elts.
19397 (pass_store_merging::process_store): Likewise.
19398
19399 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19400
19401 PR target/89424
19402 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19403 handling of V1TImode.
19404
19405 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19406
19407 PR target/89221
19408 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19409 and enable_frame_pointer ...
19410 * configure.ac: ... here. Update help strings for
19411 --enable-frame-pointer.
19412 * configure: Regenerate.
19413 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19414 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19415 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19416 (USE_X86_64_FRAME_POINTER): Ditto.
19417
19418 2019-05-06 Martin Liska <mliska@suse.cz>
19419
19420 * config.gcc: Append to target_gtfiles and fix indentation.
19421
19422 2019-05-06 Richard Biener <rguenther@suse.de>
19423
19424 PR tree-optimization/90358
19425 * tree-vect-stmts.c (get_group_load_store_type): Properly
19426 detect unused upper half of load.
19427 (vectorizable_load): Likewise.
19428
19429 2019-05-06 Richard Biener <rguenther@suse.de>
19430
19431 PR tree-optimization/88828
19432 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19433 (simplify_vector_constructor): ...here. Handle constants in
19434 the constructor.
19435
19436 2019-05-06 Richard Biener <rguenther@suse.de>
19437
19438 PR tree-optimization/90328
19439 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19440 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19441 is valid in the loop nest before using it.
19442 (initialize_data_dependence_relation): Adjust.
19443 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19444 loop as loop-nest to dr_may_alias_p.
19445
19446 2019-05-06 Richard Biener <rguenther@suse.de>
19447
19448 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19449
19450 2019-05-06 Richard Biener <rguenther@suse.de>
19451
19452 PR tree-optimization/90316
19453 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19454 compute target on demand.
19455 (get_continuation_for_phi): Remove code walking stmts to
19456 get to a target virtual operand which could end up being
19457 quadratic.
19458
19459 2019-05-06 Martin Liska <mliska@suse.cz>
19460
19461 PR sanitizer/90312
19462 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19463 when -mabi is selected to a non-default version.
19464
19465 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19466 Martin Liska <mliska@suse.cz>
19467
19468 * Makefile.in: Add lto-dump.texi.
19469 * cgraph.h: Add new functions get_visibility_string and
19470 get_symtab_type_string.
19471 * doc/gcc.texi: Include lto-dump section.
19472 * doc/lto-dump.texi: New file.
19473 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19474 (parse_dump_option): Factor out this function.
19475 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19476 (parse_dump_option): Export the function.
19477 * symtab.c (symtab_node::get_visibility_string): New function.
19478 (symtab_node::get_symtab_type_string): Likewise.
19479
19480 2019-05-06 Martin Liska <mliska@suse.cz>
19481
19482 * config/i386/i386-builtins.c: New file.
19483 * config/i386/i386-builtins.h: New file.
19484 * config/i386/i386-expand.c: New file.
19485 * config/i386/i386-expand.h: New file.
19486 * config/i386/i386-features.c: New file.
19487 * config/i386/i386-features.h: New file.
19488 * config/i386/i386-options.c: New file.
19489 * config/i386/i386-options.h: New file.
19490 * config.gcc: Add new files into extra_objs and
19491 target_gtfiles.
19492 * config/i386/i386.c: Split content of the file
19493 into newly introduced files.
19494 * config/i386/i386.h: Declare common variables
19495 and macros.
19496 * config/i386/t-i386: Define dependencies for new files.
19497
19498 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19499
19500 PR target/89400
19501 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19502 Restrict 'all' variant to 32-bit configurations.
19503 (unaligned_loadhiu): Likewise.
19504 (unaligned_storehi): Likewise.
19505 (unaligned_storesi): Likewise.
19506 (unaligned_loadhis): Disable when compiling for thumb1.
19507
19508 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19509
19510 PR tree-optimization/90269
19511 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19512 Ignore clobbers.
19513
19514 2019-05-03 Martin Liska <mliska@suse.cz>
19515
19516 * hash-map.h: Add is_empty function.
19517 * hash-set.h: Likewise.
19518 * hash-table.h: Likewise.
19519 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19520 elements () == 0 (and similar usages).
19521 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19522 * gimplify.c (gimplify_bind_expr): Likewise.
19523 (gimplify_switch_expr): Likewise.
19524 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19525 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19526 * postreload-gcse.c (dump_hash_table): Likewise.
19527 (gcse_after_reload_main): Likewise.
19528 * predict.c (combine_predictions_for_bb): Likewise.
19529 * tree-parloops.c (reduction_phi): Likewise.
19530 (separate_decls_in_region): Likewise.
19531 (transform_to_exit_first_loop): Likewise.
19532 (gen_parallel_loop): Likewise.
19533 (gather_scalar_reductions): Likewise.
19534 (try_create_reduction_list): Likewise.
19535 * var-tracking.c (dump_vars): Likewise.
19536 (emit_notes_for_changes): Likewise.
19537 (vt_emit_notes): Likewise.
19538
19539 2019-05-03 Richard Biener <rguenther@suse.de>
19540
19541 PR tree-optimization/90316
19542 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19543 before running VN.
19544
19545 2019-05-03 Richard Biener <rguenther@suse.de>
19546
19547 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19548 peeling for gaps by loading only lower halves of vectors
19549 if possible.
19550 (vectorizable_load): Likewise.
19551
19552 2019-05-03 Richard Biener <rguenther@suse.de>
19553
19554 PR middle-end/89518
19555 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19556
19557 2019-05-03 Richard Biener <rguenther@suse.de>
19558
19559 PR middle-end/87314
19560 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19561 Handle STRING_CST vs DECL or STRING_CST.
19562
19563 2019-05-03 Richard Biener <rguenther@suse.de>
19564
19565 PR tree-optimization/88963
19566 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19567 vector loads feeding only BIT_FIELD_REFs to component
19568 loads. Rewrite stores fed by CONSTRUCTORs to component
19569 stores.
19570
19571 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19572
19573 * opts.h (finish_options): Remove lang_mask argument.
19574 (print_help, help_option_argument): Declare.
19575 * opts.c (print_help): Remove forward declaration, no longer static.
19576 (finish_options): Remove lang_mask argument, don't call print_help
19577 here.
19578 * opts-global.c (decode_options): Adjust finish_option caller, call
19579 print_help here.
19580
19581 PR tree-optimization/90303
19582 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19583 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19584
19585 2019-05-03 Richard Biener <rguenther@suse.de>
19586
19587 PR tree-optimization/89698
19588 * gimple-fold.c (canonicalize_constructor_val): Early out
19589 for constants, handle unfolded INTEGER_CSTs as they appear in
19590 C++ virtual table ctors.
19591
19592 2019-05-03 Richard Biener <rguenther@suse.de>
19593
19594 * passes.c (execute_function_todo): Remove dead code.
19595
19596 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19597
19598 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19599 the internal register number, for any "real" register.
19600
19601 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19602
19603 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19604 correct numbers for TFHAR, TFIAR, TEXASR.
19605
19606 2019-05-02 Richard Biener <rguenther@suse.de>
19607
19608 PR tree-optimization/89653
19609 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19610 update-address-taken before the pass.
19611 * passes.def (pass_tree_loop_init): Put comment before it.
19612
19613 2019-05-02 Richard Biener <rguenther@suse.de>
19614
19615 PR tree-optimization/89509
19616 * tree-ssa-structalias.c (compute_dependence_clique): Look
19617 at the first subvar when determining whether it is restrict.
19618
19619 2019-05-02 Richard Biener <rguenther@suse.de>
19620
19621 PR tree-optimization/90273
19622 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19623 useless debug stmts.
19624
19625 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19626
19627 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19628 ACLE branch.
19629 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19630 SVE ACLE branch.
19631 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19632 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19633 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19634 (vectorizable_reduction): Use the functions above to vectorize in a
19635 fully masked loop codes that don't have a conditional internal
19636 function.
19637
19638 2019-05-02 Martin Liska <mliska@suse.cz>
19639
19640 * cgraphclones.c: Call valid_attribute_p with 1 for
19641 target_clone.
19642 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19643 it's for target attribute.
19644 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19645 Add new boolean argument.
19646 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19647 Likewise.
19648 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19649 to ix86_valid_target_attribute_inner_p.
19650 (ix86_valid_target_attribute_p): Pass flags argument to
19651 ix86_valid_target_attribute_inner_p.
19652 (get_builtin_code_for_version): Use 0 as it's target attribute.
19653
19654 2019-05-02 Martin Liska <mliska@suse.cz>
19655
19656 * gcc.c (process_command): Add dummy file only
19657 if n_infiles == 0.
19658 * opts-global.c (decode_options): Pass lang_mask.
19659 * opts.c (print_help): New function.
19660 (finish_options): Print --help if help_option_argument
19661 is set.
19662 (common_handle_option): Factor out content of OPT__help_
19663 into print_help.
19664 * opts.h (finish_options): Add new argument.
19665
19666 2019-05-02 Martin Liska <mliska@suse.cz>
19667
19668 PR target/88809
19669 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19670 With -minline-all-stringops use inline expansion using 4B loop.
19671 * doc/invoke.texi: Document the change of
19672 -minline-all-stringops.
19673
19674 2019-05-01 Jeff Law <law@redhat.com>
19675
19676 PR tree-optimization/88797
19677 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19678 PHI feeds a conditional on the RHS of an assignment.
19679
19680 2019-04-30 Andrew Waterman <andrew@sifive.com>
19681 Jim Wilson <jimw@sifive.com>
19682
19683 * config/riscv/constraints.md (L): New.
19684 * config/riscv/predicates.md (lui_operand): New.
19685 (sfb_alu_operand): New.
19686 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19687 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19688 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19689 * config/riscv/risc.md (type): Add sfb_alu.
19690 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19691 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19692 (branch_zero<mode>): Delete.
19693 (mov<mode>cc): New.
19694 (mov<GPR:mode><X:mode>cc): Likewise.
19695 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19696
19697 2019-04-30 Nathan Sidwell <nathan@acm.org>
19698
19699 * tree.h (MARK_TS_EXP): New.
19700
19701 2019-04-30 Martin Liska <mliska@suse.cz>
19702
19703 * opts.c (enable_warning_as_error): Provide hints
19704 for unknown options.
19705
19706 2019-04-30 Martin Liska <mliska@suse.cz>
19707
19708 PR debug/90288
19709 * doc/invoke.texi: Add missing dash for gas-locview-support
19710 and gno-as-locview-support.
19711
19712 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19713
19714 PR target/89093
19715 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19716 whitespace at the start of target attribute string.
19717
19718 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19719
19720 PR target/86538
19721 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19722 Define __ARM_FEATURE_ATOMICS.
19723
19724 2019-04-30 Martin Liska <mliska@suse.cz>
19725
19726 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19727 into built_in_function enum. Remove code for endp == 2 and
19728 use BUILT_IN_* constants.
19729 (gimple_fold_builtin): Call the function with fcode.
19730
19731 2019-04-30 Martin Liska <mliska@suse.cz>
19732
19733 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19734 DECL_FUNCTION_CODE into ix86_builtins enum before
19735 the switch statement.
19736
19737 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19738
19739 PR tree-optimization/89475
19740 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19741 calls.
19742
19743 2019-04-30 Martin Liska <mliska@suse.cz>
19744
19745 PR translation/90274
19746 * opts.c (print_filtered_help): Wrap string in _(...).
19747
19748 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19749
19750 PR tree-optimization/90240
19751 Revert:
19752 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19753
19754 PR tree-optimization/90078
19755 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19756 checks for infinite_cost overflow.
19757
19758 2019-04-29 Jeff Law <law@redhat.com>
19759
19760 * passes.def: Move -Wrestrict pass after copy propagation.
19761
19762 2019-04-29 Maya Rashish <coypu@sdf.org>
19763
19764 * config.gcc (default_gnu_indirect_function): Default to yes
19765 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19766 sparc*-*-netbsd*, x86_64-*-netbsd*.
19767
19768 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19769
19770 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19771 where cond2 is NE_EXPR.
19772 (is_value_included_in): Update comment.
19773
19774 2019-04-29 Richard Biener <rguenther@suse.de>
19775
19776 PR tree-optimization/90278
19777 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19778 EH on comparison simplification.
19779
19780 2019-04-29 Jason Merrill <jason@redhat.com>
19781
19782 PR c++/82081 - tail call optimization breaks noexcept
19783 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19784 nothrow function to a might-throw function into a tail call.
19785
19786 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19787
19788 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19789 (DDR_INNER_LOOP): Likewise.
19790 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19791 (initialize_data_dependence_relation): Likewise.
19792 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19793
19794 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19795
19796 PR rtl-optimization/90257
19797 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19798 return value.
19799
19800 Revert the revert:
19801 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19802
19803 PR target/90178
19804 Revert:
19805 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19806
19807 Revert the revert:
19808 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19809
19810 Revert:
19811 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19812
19813 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19814
19815 2019-04-29 Richard Biener <rguenther@suse.de>
19816
19817 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19818 rhs issue a reset.
19819
19820 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19821
19822 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19823 varasm.h, and netbsd-protos.h.
19824
19825 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19826
19827 PR target/89261
19828 * config/i386/i386-protos.h (ix86_data_alignment): Change
19829 the second argument type to unsigned int.
19830 * config/i386/i386.c (ix86_data_alignment): Change "align"
19831 argument type to unsigned int.
19832
19833 2019-04-27 Martin Liska <mliska@suse.cz>
19834
19835 PR middle-end/90258
19836 * opt-suggestions.c (option_proposer::build_option_suggestions):
19837 When get_valid_option_values returns empty values, add the
19838 misspelling candidate.
19839
19840 2019-04-26 Jim Wilson <jimw@sifive.com>
19841
19842 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19843 parameter.
19844 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19845 Pass orig_mode to riscv_build_integer.
19846 (riscv_split_integer): Pass mode to riscv_move_integer.
19847 (riscv_legitimize_const_move): Likewise.
19848 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19849 promoted_mode. Replace force_reg call with code to load constant into
19850 promoted reg and then subreg it for the store.
19851 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19852 riscv_move_integer.
19853
19854 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19855
19856 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19857 corrupt codes.
19858
19859 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19860
19861 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19862 commentary about the encoding of precision.
19863
19864 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19865
19866 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19867 * config/i386/t-freebsd64: New file.
19868 * config.gcc: Add the t-freebsd64 for multilib support.
19869
19870 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19871
19872 * doc/extend.texi (vector_size): Add missing comma after @xref.
19873
19874 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19875
19876 * BASE-VER: Set to 10.0.0.
19877
19878 2019-04-25 Richard Biener <rguenther@suse.de>
19879
19880 PR middle-end/89765
19881 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19882 VIEW_CONVERT_EXPR into one operating on an rvalue.
19883
19884 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19885
19886 PR target/89929
19887 * config/i386/i386.c (feature_priority): Moved to file scope.
19888 (processor_features): Likewise.
19889 (processor_model): Likewise.
19890 (_arch_names_table): Likewise.
19891 (arch_names_table): Likewise.
19892 (_feature_list): Removed.
19893 (feature_list): Likewise.
19894 (_isa_names_table): Moved to file scope. Add priority.
19895 (isa_names_table): Likewise.
19896 (get_builtin_code_for_version): Replace feature_list with
19897 isa_names_table. Update error message for P_ZERO priority.
19898
19899 2019-04-25 Richard Biener <rguenther@suse.de>
19900
19901 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19902 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19903
19904 2019-04-24 Jeff Law <law@redhat.com>
19905
19906 PR tree-optimization/90037
19907 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19908 * passes.def: Replace all instance of phi-only cprop with the
19909 lattice propagator. Move propagation pass from after erroneous
19910 path isolation to before erroneous path isolation.
19911 * tree-ssa-phionlycprop.c: Remove.
19912
19913 2019-04-24 Richard Biener <rguenther@suse.de>
19914
19915 PR middle-end/90213
19916 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19917 by size and BITS_PER_UNIT on poly-wide-ints.
19918
19919 2019-04-25 Richard Biener <rguenther@suse.de>
19920
19921 PR middle-end/90194
19922 * match.pd: Add pattern to simplify view-conversion of an
19923 empty constructor.
19924
19925 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19926
19927 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19928 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19929 for Go on 32 bit AIX.
19930 * config/rs6000/aix72.h: Likewise.
19931
19932 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19933
19934 PR target/90193
19935 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19936 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19937
19938 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19939
19940 PR target/89952
19941 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19942 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19943 for restored hard frame pointer.
19944 (s390_sched_dependencies_evaluation): Implement new target hook.
19945 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19946
19947 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19948
19949 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19950 * config/arc/arc.c (arc_init): Cleanup warning message.
19951 (arc_override_options): Likewise.
19952
19953 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19954
19955 PR target/90187
19956 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19957 a register if both if_true and if_false are MEMs.
19958
19959 PR tree-optimization/90208
19960 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19961 after labels of new_bb, not before them.
19962
19963 PR tree-optimization/90211
19964 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19965 which are not SSA_NAMEs.
19966
19967 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19968
19969 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19970 AArch64.
19971 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19972
19973 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19974
19975 PR rtl-optimization/87979
19976 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19977 not equal zero.
19978
19979 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19980
19981 PR rtl-optimization/84032
19982 * modulo-sched.c (ps_insn_find_column): Change condition so that
19983 branch will always be the last insn in a row inside partial
19984 schedule.
19985
19986 2019-04-23 Richard Biener <rguenther@suse.de>
19987
19988 PR debug/90131
19989 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19990 dest_single_pred_p argument.
19991 (remove_forwarder_block): Adjust.
19992 (remove_forwarder_block_with_phi): Likewise.
19993
19994 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19995 Bernd Edlinger <bernd.edlinger@hotmail.de>
19996 Jakub Jelinek <jakub@redhat.com>
19997
19998 PR target/89093
19999 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20000 if used with general-regs-only.
20001 (arm_conditional_register_usage): Don't add non-general regs if
20002 general-regs-only.
20003 (arm_valid_target_attribute_rec): Handle general-regs-only.
20004 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20005 general-regs-only.
20006 (TARGET_HARD_FLOAT_SUB): Define.
20007 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20008 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20009 (TARGET_REALLY_IWMMXT2): Likewise.
20010 * config/arm/arm.opt: Add -mgeneral-regs-only.
20011 * doc/extend.texi: Document ARM general-regs-only target.
20012 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20013
20014 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20015
20016 PR tree-optimization/90078
20017 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20018 checks for infinite_cost overflow.
20019
20020 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20021
20022 PR tree-optimization/90021
20023 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20024 and check univariate against it.
20025 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20026 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20027
20028 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20029
20030 PR target/90178
20031 Revert:
20032 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20033
20034 Revert the revert:
20035 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20036
20037 Revert:
20038 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20039
20040 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20041
20042 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20043
20044 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20045 names using operand format, rather than hard-wired.
20046 (speculation_barrier): Likewise.
20047
20048 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20049
20050 PR tree-optimization/88055
20051 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20052 (gen_one_condition): Use it if !HONOR_NANS.
20053
20054 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20055
20056 PR middle-end/90139
20057 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20058 assign_temp instead of gen_reg_rtx.
20059
20060 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20061
20062 PR translation/90118
20063 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20064 Add missing space before %<.
20065
20066 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20067
20068 PR rtl-optimization/87871
20069 * ira-lives.c (make_object_dead): Don't add conflicts to
20070 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20071
20072 2019-04-18 Martin Sebor <msebor@redhat.com>
20073
20074 PR middle-end/89797
20075 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20076 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20077 assuming type size fits in SHWI.
20078
20079 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20080
20081 PR ipa/85051
20082 * ipa-inline.c (flatten_function): New parameter UPDATE.
20083 (ipa_inline, early_inliner): Use it.
20084
20085 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20086
20087 * fold-const.c (int_const_binop): Return early on failure.
20088
20089 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20090
20091 PR middle-end/85164
20092 * combine.c (force_int_to_mode): Cast the argument rather than
20093 the result of known_alignment.
20094 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20095
20096 2019-04-18 Richard Biener <rguenther@suse.de>
20097
20098 PR debug/90131
20099 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20100 out from ...
20101 (remove_forwarder_block): ... here.
20102 (remove_forwarder_block_with_phi): Also move debug stmts here.
20103
20104 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20105
20106 PR translation/79183
20107 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20108 inform where appropriate.
20109
20110 2019-04-18 Richard Biener <rguenther@suse.de>
20111
20112 * tree.c (get_qualified_type): Put found type variants at the
20113 head of the variant list.
20114
20115 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20116
20117 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20118
20119 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20120
20121 PR target/90125
20122 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20123 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20124 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20125 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20126 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20127
20128 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20129
20130 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20131 even for allocno's with no conflicts.
20132 (print_conflicts): Print an extra newline.
20133
20134 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20135
20136 * auto-inc-dec.c (attempt_change): Set the alignment of the
20137 temporary memory to that of the original.
20138
20139 2019-04-17 Joao Moreira <jmoreira@suse.de>
20140
20141 * targhooks.c (default_print_patchable_function_entry): Emit
20142 __patchable_function_entries section with writable flags to allow
20143 relocation resolution.
20144
20145 2019-04-17 Jonny Grant <jg@jguk.org>
20146
20147 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20148
20149 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20150
20151 PR middle-end/90095
20152 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20153 on lowpart SUBREGs.
20154
20155 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20156
20157 * config/arc/arc.c (arc_init): Format diagnostic string.
20158 (arc_override_options): Likewise.
20159 (check_if_valid_regno_const): Likewise.
20160 (arc_reorg): Likewise.
20161
20162 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20163
20164 PR target/17108
20165 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20166 name.
20167 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20168 name.
20169 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20170 (*movdi_update1): Use Pmode.
20171 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20172 (movdi_<mode>_update_stack): Rename to ...
20173 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20174 use Pmode.
20175 (*movsi_update1): Use Pmode.
20176 (*movsi_update2): Use Pmode.
20177 (movsi_update): Rename to ...
20178 (movsi_<mode>_update): ... this. Use Pmode.
20179 (movsi_update_stack): Fix condition.
20180 (*movhi_update1): Use Pmode. Fix argument to
20181 avoiding_indexed_address_p.
20182 (*movhi_update2): Ditto.
20183 (*movhi_update3): Ditto.
20184 (*movhi_update4): Ditto.
20185 (*movqi_update1): Ditto.
20186 (*movqi_update2): Ditto.
20187 (*movqi_update3): Ditto.
20188 (*movsf_update1, *movdf_update1): Merge, rename to...
20189 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20190 avoiding_indexed_address_p. Add "size" attribute.
20191 (*movsf_update2, *movdf_update2): Merge, rename to...
20192 (*mov<mode>_update2): This. Ditto.
20193 (*movsf_update3): Use Pmode. Fix argument to
20194 avoiding_indexed_address_p.
20195 (*movsf_update4): Ditto.
20196 (allocate_stack): Simplify condition. Adjust pattern names.
20197
20198 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20199
20200 PR target/89093
20201 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20202 whitespace at the start of target attribute string.
20203
20204 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20205
20206 PR target/84369
20207 * config/rs6000/power9.md: Add store forwarding bypass.
20208
20209 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20210
20211 PR debug/89528
20212 * valtrack.c (dead_debug_insert_temp): Reset debug references
20213 to the return value of a call being removed.
20214
20215 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20216
20217 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20218 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20219 implement target hook.
20220 (arc_memory_move_cost): New function.
20221 (TARGET_REGISTER_MOVE_COST): Define.
20222 (TARGET_MEMORY_MOVE_COST): Likewise.
20223 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20224 (MEMORY_MOVE_COST): Likewise.
20225
20226 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20227
20228 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20229 (sibcall_value_insn): Likewise.
20230 * config/arc/constraints.md (Rs5): Remove.
20231
20232 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20233
20234 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20235 for last two fake registers.
20236 (arc_conditional_register_usage): Make sure fake frame and arg
20237 pointer regs are in general regs class.
20238 (FRAME_POINTER_MASK): Remove.
20239 (RETURN_ADDR_MASK): Remove.
20240 (arc_must_save_register): Use hard frame regnum.
20241 (frame_restore_reg): Use hard_frame_pointer_rtx.
20242 (arc_save_callee_saves): Likewise.
20243 (arc_restore_callee_saves): Likewise.
20244 (arc_save_callee_enter): Likewise.
20245 (arc_restore_callee_leave): Likewise.
20246 (arc_save_callee_milli): Likewise.
20247 (arc_eh_return_address_location): Likewise.
20248 (arc_check_multi): Use hard frame regnum.
20249 (arc_can_eliminate): Likewise.
20250 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20251 for register allocator.
20252 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20253 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20254 (FRAME_POINTER_REGNUM): Change it to a fake register.
20255 (HARD_FRAME_POINTER_REGNUM): Defined.
20256 (ARG_POINTER_REGNUM): Change it to a new fake register.
20257 (ELIMINABLE_REGS): Update.
20258 (REGISTER_NAMES): Update names.
20259 * config/arc/arc.md (LP_START): Remove.
20260 (LP_END): Likewise.
20261 (shift_si3_loop): Update pattern.
20262
20263 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20264
20265 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20266 to avoid delay slot scheduling.
20267 (arc_must_save_register): Don't save SP.
20268 * config/arc/arc.md (stack_tie): Remove.
20269 (UNSPEC_ARC_STKTIE): Likewise.
20270
20271 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20272 Shiva Chen <shiva0217@gmail.com>
20273
20274 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20275 code gen with large shift amount.
20276
20277 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20278
20279 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20280 subreg.
20281
20282 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20283
20284 PR target/90096
20285 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20286 print -m64/-mx32/-m32 if it is true.
20287 (ix86_debug_options, ix86_function_specific_print): Pass true as
20288 ADD_ABI_P to ix86_target_string.
20289 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20290 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20291 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20292
20293 PR rtl-optimization/90082
20294 * dce.c (can_delete_call): New function.
20295 (deletable_insn_p, mark_insn): Use it.
20296
20297 PR tree-optimization/90090
20298 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20299 throw internally.
20300 (is_division_by_square): Likewise. Formatting fix.
20301
20302 2019-04-16 Richard Biener <rguenther@suse.de>
20303
20304 PR tree-optimization/56049
20305 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20306 equality check if alias-set zero will prevail.
20307
20308 2019-04-15 Jeff Law <law@redhat.com>
20309
20310 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20311 size and alignment as unsigned.
20312
20313 2019-04-15 Richard Biener <rguenther@suse.de>
20314
20315 PR debug/90074
20316 * tree-loop-distribution.c (destroy_loop): Preserve correct
20317 debug info.
20318
20319 2019-04-15 Richard Biener <rguenther@suse.de>
20320
20321 PR tree-optimization/90071
20322 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20323 abnormal operands from def stmts.
20324
20325 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20326
20327 PR rtl-optimization/89794
20328 * combine.c (count_auto_inc): New function.
20329 (try_combine): Count how many auto_inc expressions there were in the
20330 original instructions. Ensure we have the same number in the new
20331 instructions. Remove the code that tried to ensure auto_inc side
20332 effects on i1 and i0 are not lost.
20333
20334 2019-04-15 Richard Biener <rguenther@suse.de>
20335
20336 PR ipa/88936
20337 * tree.h (auto_var_p): Declare.
20338 * tree.c (auto_var_p): New function, split out from ...
20339 (auto_var_in_fn_p): ... here.
20340 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20341 member.
20342 (new_var_info): Initialize it.
20343 (set_uids_in_ptset): Also set the shadow variable uid if required.
20344 (ipa_pta_execute): Postprocess points-to solutions assigning
20345 shadow variable uids for locals that may reach their containing
20346 function recursively.
20347 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20348 assert but instead check whether the points-to solution is
20349 a singleton.
20350
20351 2019-04-15 Martin Jambor <mjambor@suse.cz>
20352
20353 PR ipa/pr89693
20354 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20355 the thunk chain.
20356
20357 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20358
20359 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20360
20361 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20362 Kito Cheng <kito.cheng@gmail.com>
20363 Shiva Chen <shiva0217@gmail.com>
20364
20365 * config/nds32/nds32-md-auxiliary.c
20366 (nds32_legitimize_pic_address): Use new PIC pattern.
20367 (nds32_legitimize_tls_address): Use new TLS pattern.
20368 (nds32_output_symrel): New.
20369 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20370 (nds32_alloc_relax_group_id): Ditto.
20371 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20372 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20373 relax_group_id.
20374 (nds32_group_tls_insn): Ditto.
20375 (nds32_group_float_insns): Ditto.
20376 * config/nds32/nds32.md (tls_le): New.
20377 (sym_got): Ditto.
20378
20379 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20380
20381 * configure: Add nds32 target for dwarf2 debug_line checking.
20382 * configure.ac: Regenerated.
20383
20384 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20385
20386 PR lto/89358
20387 * ipa-devirt.c (skip_in_fields_list_p): New.
20388 (odr_types_equivalent_p): Use it.
20389
20390 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20391
20392 PR target/89093
20393 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20394 instead of strncmp when checking for thumb and arm. Formatting fixes.
20395
20396 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20397
20398 * doc/install.texi: Document --with-target-system-zlib.
20399
20400 2019-04-12 Martin Sebor <msebor@redhat.com>
20401
20402 PR c/88383
20403 PR c/89288
20404 PR c/89798
20405 PR c/89797
20406 * targhooks.c (default_vector_alignment): Avoid assuming
20407 argument fits in SHWI.
20408 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20409 a shift expression.
20410 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20411
20412 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20413
20414 PR rtl-optimization/89965
20415 * dce.c: Include rtl-iter.h.
20416 (struct check_argument_load_data): New type.
20417 (check_argument_load): New function.
20418 (find_call_stack_args): Check for loads from stack slots still tracked
20419 in sp_bytes and punt if any is found.
20420
20421 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20422
20423 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20424
20425 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20426 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20427
20428 2019-04-12 Martin Liska <mliska@suse.cz>
20429
20430 PR middle-end/89970
20431 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20432 in error message.
20433 (separate_attrs): Handle multiple 'default's.
20434 (expand_target_clones): Rework error handling code.
20435
20436 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20437
20438 PR target/87532
20439 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20440 mode of vector rather than mode of destination for move instruction.
20441 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20442 Use QI inner mode with V16QI vector mode.
20443
20444 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20445
20446 PR target/52726
20447 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20448 "invalid %%t operand" in output_operand_lossage message.
20449
20450 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20451
20452 * config/s390/predicates.md (permute_pattern_operand): New
20453 predicate.
20454 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20455 operand for the permute pattern.
20456 ("*vec_perm<mode>"): New insn definition.
20457 ("bswap<mode>"): Generate the permute pattern operand in the
20458 expander and perform the operand reloads for pre arch13 level
20459 already.
20460 ("*bswap<mode>_emu"): Rename to ...
20461 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20462 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20463 Add the USE operand for the permute pattern.
20464 ("*vec_set_bswap_vec<mode>"): Likewise.
20465
20466 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20467
20468 PR c/89946
20469 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20470 and gcc_unreachable if it fails, just call tree_to_uhwi which
20471 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20472 Start warning message with a lower-case letter. Formatting fixes.
20473
20474 PR rtl-optimization/90026
20475 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20476 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20477 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20478 in cfglayout mode, use emit_barrier_after_bb.
20479
20480 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20481
20482 PR rtl-optimization/87763
20483 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20484 New Instruction.
20485
20486 2019-04-11 Tom de Vries <tdevries@suse.de>
20487
20488 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20489 max macro using statement expression.
20490
20491 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20492
20493 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20494 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20495 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20496 read_only_private_data_section using xcoff_private_rodata_section_name.
20497 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20498
20499 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20500
20501 PR target/90016
20502 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20503
20504 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20505
20506 PR rtl-optimization/89965
20507 * dce.c (sp_based_mem_offset): New function.
20508 (find_call_stack_args): Use sp_based_mem_offset.
20509
20510 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20511
20512 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20513
20514 2019-04-11 Richard Biener <rguenther@suse.de>
20515
20516 PR tree-optimization/90020
20517 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20518 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20519 * tree-ssa-pre.c (compute_avail): Use it to not put
20520 possibly trapping references after a call that might not
20521 return into EXP_GEN.
20522 * gcse.c (compute_hash_table_work): Do not elide
20523 marking a block containing a call if the call might not
20524 return.
20525
20526 2019-04-11 Richard Biener <rguenther@suse.de>
20527
20528 PR tree-optimization/90018
20529 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20530 Test both SLP and interleaving variants.
20531
20532 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20533
20534 * config/s390/8561.md: New file.
20535 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20536 Add arch13 cpu model.
20537 * config/s390/s390-opts.h (enum processor_type): Likewise.
20538 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20539 (s390_get_unit_mask): Likewise.
20540 (s390_is_fpd): Likewise.
20541 (s390_is_fxd): Likewise.
20542 * config/s390/s390.h (s390_tune_attr): Likewise.
20543 * config/s390/s390.md: Include arch13 pipeline description.
20544 * config/s390/s390.opt: Add arch13.
20545
20546 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20547
20548 PR rtl-optimization/87763
20549 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20550 New prototype.
20551 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20552 New function.
20553 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20554 New instruction.
20555 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20556 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20557 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20558 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20559
20560 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20561
20562 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20563 "Although" in -fipa-icf documentation.
20564
20565 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20566 of using multiple -g options.
20567
20568 2019-04-10 Martin Liska <mliska@suse.cz>
20569
20570 PR gcov-profile/89959
20571 * doc/gcov.texi: Make documentation of -x option
20572 more precise.
20573
20574 2019-04-10 Richard Biener <rguenther@suse.de>
20575
20576 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20577 member.
20578 (DR_GROUP_SAME_DR_STMT): Remove.
20579 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20580 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20581 replace with assert.
20582 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20583 (vect_record_grouped_load_vectors): Remove unreachable code.
20584
20585 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20586
20587 PR target/90016
20588 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20589 obsolete reference to N.
20590
20591 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20592
20593 PR middle-end/90025
20594 * expr.c (store_expr): Set properly size on the MEM passed to
20595 clear_storage.
20596
20597 PR c++/90010
20598 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20599 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20600 translation is needed, and when translation is needed, only append
20601 ... if the string length is hostsz or more bytes long. Avoid using
20602 strncpy or strcat.
20603
20604 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20605
20606 PR target/90024
20607 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20608 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20609 into three.
20610 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20611 differences directly.
20612 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20613
20614 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20615
20616 PR translation/90011
20617 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20618 from diagnostics.
20619 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20620 diagnostics.
20621 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20622 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20623 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20624 trailing space from -gsplit-dwarf diagnostics.
20625
20626 PR tree-optimization/89998
20627 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20628 instead of integer_type_node if possible, don't add ranges if return
20629 type is not compatible with int.
20630 * gimple-fold.c (gimple_fold_builtin_sprintf,
20631 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20632 integer_type_node.
20633
20634 2019-04-09 Martin Liska <mliska@suse.cz>
20635
20636 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20637 * doc/install.texi: Document the new config.
20638
20639 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20640
20641 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20642 use gimple_expr_type for load and store calls. Skip over the
20643 condition argument in a conditional internal function.
20644 Protect use of TREE_INT_CST_LOW.
20645
20646 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20647
20648 PR target/90015
20649 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20650 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20651 trailing period from it too.
20652
20653 2019-04-08 wu yuan <wuyuan5@huawei.com>
20654
20655 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20656 * config/aarch64/aarch64.md : Add "tsv110.md"
20657 * config/aarch64/tsv110.md: New file.
20658
20659 2019-04-08 Richard Biener <rguenther@suse.de>
20660
20661 PR tree-optimization/90006
20662 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20663 calls like lrint.
20664
20665 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20666
20667 PR target/83033
20668 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20669 construction.
20670 (fma_root_node): Likewise.
20671 (func_fma_steering): Likewise.
20672
20673 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20674
20675 PR rtl-optimization/89865
20676 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20677
20678 PR rtl-optimization/89865
20679 * config/i386/i386.md
20680 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20681 numbers not to clash with the additional operands[4].
20682 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20683 with extra register copy in the middle.
20684
20685 2019-04-08 Martin Liska <mliska@suse.cz>
20686
20687 PR gcov-profile/89961
20688 * doc/gcov.texi: Document data_file.
20689 * gcov.c (generate_results): Add data_info into JSON output.
20690
20691 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20692
20693 PR tree-optimization/89725
20694 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20695 loop's chrec as invariant symbol.
20696 * tree-chrec.h (chrec_contains_symbols): New parameter.
20697 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20698 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20699 function of loops not in DDR's loop_nest.
20700 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20701
20702 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20703
20704 PR target/89623
20705 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20706 Mask.
20707
20708 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20709
20710 PR target/89945
20711 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20712 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20713
20714 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20715
20716 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20717 targetm.fixed_condition_code_regs.
20718
20719 2019-04-05 Richard Biener <rguenther@suse.de>
20720
20721 PR debug/89892
20722 PR debug/89905
20723 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20724 debug bind stmts but reset them if they are not valid at the
20725 destination.
20726
20727 2019-04-05 Martin Liska <mliska@suse.cz>
20728
20729 PR translation/89936
20730 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20731 order to wrap keywords or arguments.
20732 * collect2.c (main): Likewise.
20733 (scan_prog_file): Likewise.
20734 (scan_libraries): Likewise.
20735 * common/config/riscv/riscv-common.c
20736 (riscv_subset_list::parsing_subset_version): Likewise.
20737 (riscv_subset_list::parse_std_ext): Likewise.
20738 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20739 Likewise.
20740 * config/arm/arm.c (arm_option_override): Likewise.
20741 * config/cris/cris.c (cris_print_operand): Likewise.
20742 * config/darwin-c.c (darwin_pragma_options): Likewise.
20743 (darwin_pragma_unused): Likewise.
20744 (darwin_pragma_ms_struct): Likewise.
20745 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20746 * config/i386/i386.c (print_reg): Likewise.
20747 (ix86_print_operand): Likewise.
20748 * config/i386/xm-djgpp.h: Likewise.
20749 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20750 * config/m32c/m32c.c (m32c_option_override): Likewise.
20751 * config/msp430/msp430.c (msp430_option_override): Likewise.
20752 * config/nds32/nds32.c (nds32_option_override): Likewise.
20753 * config/nvptx/mkoffload.c (main): Likewise.
20754 * config/rx/rx.c (rx_print_operand): Likewise.
20755 (valid_psw_flag): Likewise.
20756 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20757 (vms_pragma_nomember_alignment): Likewise.
20758 (vms_pragma_extern_model): Likewise.
20759 * lto-wrapper.c (compile_offload_image): Likewise.
20760 * omp-offload.c (oacc_parse_default_dims): Likewise.
20761 * symtab.c (symtab_node::verify_base): Likewise.
20762 * tlink.c (recompile_files): Likewise.
20763 (start_tweaking): Likewise.
20764 * tree-profile.c (parse_profile_filter): Likewise.
20765
20766 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20767
20768 PR tree-optimization/89956
20769 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20770 multiple negates of the same value.
20771
20772 2019-04-04 Martin Sebor <msebor@redhat.com>
20773
20774 PR middle-end/89957
20775 PR middle-end/89911
20776 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20777 have the same precision since the function crashes otherwise.
20778 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20779 has non-zero arguments.
20780
20781 2019-04-04 Martin Sebor <msebor@redhat.com>
20782
20783 PR middle-end/89934
20784 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20785 out if the number of arguments is less than expected.
20786
20787 2019-04-04 Jeff Law <law@redhat.com>
20788
20789 PR rtl-optimization/89399
20790 * ree.c (combine_set_extension): Use single_set rather than
20791 digging into PATTERN for items on the candidate list.
20792 (combine_reaching_defs): Likewise.
20793
20794 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20795
20796 PR rtl-optimization/46590
20797 * loop-invariant.c (find_defs): Move df_remove_problem and
20798 df_process_deferred_rescans to move_invariants.
20799 Move df_live_add_problem and df_live_set_all_dirty calls
20800 to move_invariants.
20801 (move_invariants): Likewise.
20802 (move_loop_invariants): Likewise, making the df_live calls
20803 conditional on -O. Remove the problem again if we added it
20804 locally.
20805
20806 2019-04-03 qing zhao <qing.zhao@oracle.com>
20807
20808 PR tree-optimization/89730
20809 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20810 -flive-patching=inline-only-static.
20811 (can_inline_edge_by_limits_p): Add the checking for
20812 -flive-patching=inline-only-static and grant always_inline
20813 even when -flive-patching=inline-only-static is specified.
20814
20815 2019-04-03 Jeff Law <law@redhat.com>
20816
20817 PR rtl-optimization/81025
20818 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20819
20820 2019-04-03 Richard Biener <rguenther@suse.de>
20821
20822 PR tree-optimization/84101
20823 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20824 regs.h for hard_regno_nregs.
20825 (cfun_returns): New helper.
20826 (vect_model_store_cost): When vectorizing a store to a decl
20827 we return and the function ABI returns in a multi-reg location
20828 account for the possible spilling that will happen.
20829
20830 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20831
20832 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20833 displacement addresses for vector mode operands.
20834
20835 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20836
20837 * config/arc/arc.c (GMASK_LEN): Define.
20838 (arc_restore_callee_saves): Restore first blink when
20839 !optimize_size.
20840
20841 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20842
20843 * doc/extend.texi: Add deprecated comment on sign-return-address
20844 function attribute and add mbranch-protection.
20845 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20846
20847 2019-04-03 Richard Biener <rguenther@suse.de>
20848
20849 PR lto/89896
20850 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20851 the all target phony.
20852
20853 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20854
20855 PR target/89902
20856 PR target/89903
20857 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20858 Return false for variable DImode shifts.
20859 (dimode_scalar_chain::compute_convert_gain): Do not handle
20860 register count operand in variable DImode shifts.
20861 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20862 count argument of a variable shift instruction to a vector register.
20863 (dimode_scalar_chain::convert_reg): Remove support to convert
20864 count argument of a variable shift instruction.
20865
20866 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20867
20868 PR rtl-optimization/84206
20869 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20870 iterating over loop headers.
20871
20872 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20873
20874 PR rtl-optimization/85876
20875 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20876 beyond the original fence.
20877
20878 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20879
20880 * config.gcc: Mark spu* targets as deprecated/obsolete.
20881
20882 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20883
20884 * config/s390/s390-builtin-types.def: New builtin function type
20885 definitions. Remove unused types.
20886 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20887 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20888 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20889 overloaded builtins.
20890 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20891 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20892 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20893 (vec_double, vec_signed, vec_unsigned): Define to use the new
20894 overloaded builtins.
20895 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20896 Remove expanders.
20897
20898 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20899
20900 * config/s390/s390-builtin-types.def: New builtin function type
20901 definitions.
20902 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20903 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20904 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20905 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20906 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20907 constant definitions.
20908 * config/s390/vecintrin.h (vec_search_string_cc)
20909 (vec_search_string_until_zero_cc): New builtin name definitions.
20910 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20911 expanders.
20912 ("vec_vstrs<mode>"): New insn definition.
20913
20914 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20915
20916 * config/s390/s390-builtin-types.def: Add new builtin function
20917 types.
20918 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20919 New overloaded builtins.
20920 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20921 s390_vsrd.
20922 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20923 (UNSPEC_VEC_SLDBYTE): ... this.
20924 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20925 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20926 definitions.
20927 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20928 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20929 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20930
20931 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20932
20933 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20934 New insn definition.
20935 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20936 * config/s390/vector.md (V_HW_HSD): ... here.
20937
20938 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20939
20940 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20941 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20942 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20943 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20944 New insn definitions.
20945
20946 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20947
20948 * config/s390/s390-builtin-types.def: Add new builtin function type.
20949 * config/s390/s390-builtins.def: Add overloaded builtin
20950 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20951 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20952 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20953 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20954 ("eltswap<mode>"): New expander.
20955 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20956 insn definitions.
20957
20958 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20959
20960 * config/s390/s390-builtin-types.def: Add new builtin function types.
20961 * config/s390/s390-builtins.def: Add overloaded builtin
20962 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20963 instructions.
20964 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20965 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20966 ("bswap<mode>"): New expander.
20967 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20968
20969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20970
20971 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20972 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20973 vector builtin version number in __VEC__.
20974
20975 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20976
20977 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20978 iterators.
20979 (SFSI): New mode attribute.
20980 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20981 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20982 rename to ...
20983 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20984 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20985 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20986 ("floatsi<mode>2"): Add wcefb instruction.
20987
20988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20989
20990 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20991 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20992 mode iterators.
20993 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20994 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20995 support 32 bit fp-int conversions. Rename to ...
20996 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20997 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20998 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20999 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21000 ... to these.
21001
21002 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21003
21004 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21005 if-then-else constructs if we can use the select instruction.
21006 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21007
21008 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21009
21010 * config/s390/s390.md ("*popcountdi_arch13_cc")
21011 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21012 definition.
21013 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21014 Append _z196 to make it ...
21015 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21016 ("popcounthi2_z196"): ... this.
21017 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21018 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21019
21020 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21021
21022 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21023 certain compares for arch13 in order to make use of the condition
21024 code result produced by the new instructions.
21025 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21026 nxrk, and nxgrk instruction patterns.
21027 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21028 (inv_no): Add new code iterator together with some attributes.
21029 ("*andc_split_<mode>"): Disable splitter for arch13.
21030 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21031 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21032 ("*<ANDOR:bitops_name>c<GPR:mode>")
21033 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21034 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21035 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21036 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21037
21038 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21039
21040 * common/config/s390/s390-common.c (processor_flags_table): New
21041 entry for arch13.
21042 * config.gcc: Support arch13 with the --with-arch= configure flag.
21043 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21044 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21045 * config/s390/s390.c (s390_get_sched_attrmask)
21046 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21047 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21048 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21049 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21050 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21051 definitions.
21052 * config/s390/s390.opt: Support arch13 as processor type in
21053 command line options.
21054
21055 2019-04-02 Martin Liska <mliska@suse.cz>
21056
21057 PR translation/89912
21058 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21059 Fix param description of graphite-max-arrays-per-scop.
21060
21061 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21062
21063 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21064 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21065 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21066
21067 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21068
21069 PR rtl-optimization/85412
21070 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21071 sel_sched_region_1, not after.
21072
21073 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21074
21075 PR rtl-optimization/86928
21076 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21077 compute_live if necessary.
21078 (sel_redirect_edge_and_branch): Likewise.
21079
21080 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21081
21082 PR rtl-optimization/89865
21083 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21084 register if it is a part of small class.
21085
21086 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21087
21088 PR rtl-optimization/87273
21089 * sel-sched-ir.c (merge_fences): Remove assert.
21090
21091 2019-04-01 Richard Biener <rguenther@suse.de>
21092
21093 PR tree-optimization/46590
21094 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21095 (dom_walker::m_reachability): Add in place of...
21096 (dom_walker::m_skip_unreachable_blocks): ...this.
21097 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21098 Move complex initialization ...
21099 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21100 lazily and initialize edge flags on each invocation.
21101 (dom_walker::bb_reachable): Use m_reachability.
21102
21103 2019-04-01 Martin Liska <mliska@suse.cz>
21104
21105 PR driver/89861
21106 * opt-suggestions.c (option_proposer::build_option_suggestions):
21107 Add variant without any argument in order to provide better
21108 hints.
21109
21110 2019-04-01 Richard Biener <rguenther@suse.de>
21111
21112 PR c/71598
21113 * gimple.c: Include langhooks.h.
21114 (gimple_get_alias_set): Treat enumeral types as the underlying
21115 integer type.
21116
21117 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21118 Eric Botcazou <ebotcazou@adacore.com>
21119
21120 PR rtl-optimization/89862
21121 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21122 that operates on the full registers for WORD_REGISTER_OPERATIONS
21123 architectures.
21124
21125 2019-03-29 Jim Wilson <jimw@sifive.com>
21126
21127 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21128 Clear MASK_RVC and then set if C subset supported.
21129
21130 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21131
21132 PR c/89872
21133 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21134 non-addressable complit into its initializer if it is volatile.
21135
21136 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21137
21138 * opts-common.c (integral_argument): Set errno properly in one case.
21139
21140 2019-03-29 Martin Liska <mliska@suse.cz>
21141
21142 * doc/invoke.texi: Remove -Wchkp from documentation.
21143
21144 2019-03-29 Martin Liska <mliska@suse.cz>
21145
21146 * dbgcnt.c (print_limit_reach): New function.
21147 (dbg_cnt): Use it.
21148
21149 2019-03-29 Martin Liska <mliska@suse.cz>
21150
21151 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21152 (dbg_cnt_process_opt): Parse first tokens aas
21153 dbg_cnt_process_single_pair is also using strtok.
21154
21155 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21156
21157 PR rtl-optimization/87485
21158 * function.c (expand_function_end): Move stack_protect_epilogue
21159 before loading of return value into hard register(s).
21160
21161 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21162
21163 PR middle-end/89621
21164 * tree-inline.h (struct copy_body_data): Add
21165 dont_remap_vla_if_no_change flag.
21166 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21167 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21168 and remap_type_2 returns false.
21169 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21170 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21171 only from where it is copied to nested contexts.
21172
21173 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21174
21175 PR target/89865
21176 * config/i386/i386.md (RMW operation with LEA peephole):
21177 Use LEAMODE mode attribute instead of SWI mode iterator for
21178 LEA pattern.
21179
21180 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21181
21182 PR target/89848
21183 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21184 Also process XEXP (src, 0) of a shift insn.
21185
21186 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21187
21188 PR middle-end/89725
21189 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21190 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21191
21192 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21193
21194 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21195 test.
21196 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21197 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21198 immediately after first one with df_analyze in between, but rather
21199 process all bbs, queueing ones that need second pass in a worklist,
21200 df_analyze, process queued debug insn changes and if second pass is
21201 needed, process bbs from worklist, df_analyze, process queued debug
21202 insns again.
21203
21204 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21205 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21206 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21207
21208 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21209
21210 PR c/79022
21211 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21212 definition.
21213
21214 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21215
21216 PR target/85667
21217 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21218 function for 32-bit MS_ABI.
21219 (function_value_ms_32): New function.
21220
21221 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21222
21223 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21224 (movdi): Call gen_movdi_symbol_save_scc.
21225 (gen_movdi_symbol_save_scc): New insn and split.
21226
21227 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21228
21229 PR rtl-optimization/89313
21230 * function.c (matching_constraint_num): New static function.
21231 (match_asm_constraints_1): Use it. Fixup white space and comment.
21232 Don't replace inputs with non-matching constraints which conflict
21233 with early clobber outputs.
21234
21235 2019-03-27 Jeff Law <law@redhat.com>
21236
21237 PR rtl-optimization/87761
21238 PR rtl-optimization/89826
21239 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21240 slightly later.
21241 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21242 note problem to get REG_DEAD/REG_UNUSED notes updated.
21243
21244 2019-03-27 Richard Biener <rguenther@suse.de>
21245
21246 PR tree-optimization/89463
21247 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21248 queue edges to remove.
21249 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21250 dead stmts. Delay edge removal until PHIs are removed to
21251 make debug-stmt creation not confused by seemingly degenerate
21252 PHIs.
21253
21254 2019-03-27 Alan Modra <amodra@gmail.com>
21255
21256 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21257 throughout file.
21258 * config/rs6000/darwin.h: Likewise.
21259 * config/rs6000/rs6000.c: Likewise.
21260
21261 2019-03-27 Alan Modra <amodra@gmail.com>
21262
21263 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21264 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21265
21266 2019-03-26 Andrew Waterman <andrew@sifive.com>
21267 Jim Wilson <jimw@sifive.com>
21268
21269 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21270 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21271 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21272 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21273 (generic_alu): Add auipc to type list.
21274 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21275 (riscv_microarchitecture): Declare.
21276 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21277 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21278 field.
21279 (riscv_microarchitecture): New.
21280 (sifive_7_tune_info): New.
21281 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21282 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21283 entries.
21284 (riscv_store_data_bypass_p): New.
21285 (riscv_option_override): Set riscv_microarchitecture from
21286 cpu->microarchitecture.
21287 * config/riscv/riscv.md: Include sifive-7.md.
21288 (type): Add auipc.
21289 (tune): New.
21290 (auipc<mode>): Change type to auipc.
21291 (restore_stack_nonlocal): New.
21292 * config/riscv/sifive-7.md: New.
21293 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21294
21295 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21296
21297 PR target/89827
21298 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21299 Also process XEXP (src, 0) of a shift insn.
21300
21301 2019-03-26 Richard Biener <rguenther@suse.de>
21302
21303 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21304 (copy_debug_stmt): Likewise.
21305 (expand_call_inline): Likewise.
21306 (copy_bb): Avoid redundant lookup & set of gimple_block.
21307 * gimple-low.c (lower_gimple_return): Likewise.
21308 (lower_builtin_setjmp): Likewise.
21309
21310 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21311
21312 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21313 is constant 0, turn into static const data member initialized to false.
21314 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21315 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21316
21317 2019-03-26 Jason Merrill <jason@redhat.com>
21318 Jakub Jelinek <jakub@redhat.com>
21319
21320 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21321 method.
21322 (mem_alloc_description::release_object_overhead): Fix comment typos.
21323 * hash-table.h (hash_table::~hash_table): Call
21324 release_instance_overhead only if m_entries is non-NULL, otherwise
21325 call unregister_descriptor.
21326
21327 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21328
21329 PR tree-optimization/81740
21330 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21331 In case of outer loop vectorization, check for backward dependence
21332 at the inner loop if outer loop dependence is reversed.
21333
21334 2019-03-26 Alan Modra <amodra@gmail.com>
21335
21336 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21337 rs6000_vector_mem init. Correct wI and wJ comment.
21338
21339 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21340
21341 PR rtl-optimization/88347
21342 PR rtl-optimization/88423
21343 * sched-deps.c (sched_analyze_insn): Take into account that for
21344 tablejumps the barrier appears after a label and a jump_table_data.
21345
21346 2019-03-25 Martin Sebor <msebor@redhat.com>
21347
21348 PR c/89812
21349 * c-common.c (check_user_alignment): Rename local. Correct maximum
21350 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21351 convert it to UHWI when it fits.
21352
21353 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21354
21355 PR debug/86964
21356 * dwarf2out.c (premark_used_variables): New function.
21357 (prune_unused_types_walk): Do not mark not premarked external
21358 variables.
21359 (prune_unused_types): Call premark_used_variables.
21360
21361 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21362
21363 PR rtl-optimization/89676
21364 * lra-constraints.c (curr_insn_transform): Do match reload for
21365 early clobbers when the match was successful only for different
21366 registers.
21367
21368 2019-03-25 Martin Sebor <msebor@redhat.com>
21369
21370 * doc/extend.texi (Common Type Attributes): Document vector_size.
21371 (Common Variable Attributes): Mention size constraint. Correct
21372 quoting and typos.
21373 (Vector Extensions): Use @dfn when defining bas type. Clarify
21374 base type and size constraints.
21375
21376 2019-03-25 Richard Biener <rguenther@suse.de>
21377
21378 PR tree-optimization/89789
21379 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21380 changes from non-undefined back to undefined.
21381
21382 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21383
21384 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21385 heap string and a gc string, but since this variable is unknown to
21386 ggc the gc string might get reused and corrupted. Fixed by always
21387 using a heap string.
21388
21389 2019-03-25 Richard Biener <rguenther@suse.de>
21390
21391 PR tree-optimization/89779
21392 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21393 to remove IV defs, delay actual removal.
21394 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21395 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21396 very end, properly also reset loop control IV information.
21397
21398 2019-03-25 Richard Biener <rguenther@suse.de>
21399
21400 PR tree-optimization/89802
21401 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21402 move EH data to folded stmt.
21403
21404 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21405
21406 * config/s390/s390-builtin-types.def: Remove few unused types and
21407 fix sort order for others.
21408
21409 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21410
21411 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21412 expected and found types with -mdebug during builtin matching.
21413
21414 2019-03-25 Richard Biener <rguenther@suse.de>
21415
21416 PR middle-end/89790
21417 * fold-const.c (operand_equal_p): Revert last change with
21418 updated comment.
21419
21420 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21421
21422 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21423 notes for the result of the __tls_get_addr calls.
21424 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21425
21426 2019-03-24 Jeff Law <law@redhat.com>
21427
21428 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21429
21430 PR rtl-optimization/87761
21431 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21432 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21433 as needed.
21434 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21435 rescans. Reprocess blocks as needed, calling df_analyze before
21436 reprocessing. Always call df_analyze before fixing up debug bind
21437 insns.
21438
21439 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21440
21441 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21442 big endian.
21443
21444 2019-03-22 Andrew Pinski <apinski@marvell.com>
21445
21446 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21447 attrribute for uxtw.
21448
21449 2019-03-26 Jeff Law <law@redhat.com>
21450
21451 PR rtl-optimization/87761
21452 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21453 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21454 (mips_split_move): Accept new INSN argument. Try to forward SRC
21455 into the next instruction.
21456 (mips_split_move_insn): Pass INSN through to mips_split_move.
21457
21458 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21459
21460 PR rtl-optimization/89676
21461 * lra-constraints.c (curr_insn_transform): Do match reload for
21462 early clobbers even if the match was successful.
21463
21464 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21465
21466 PR c++/87481
21467 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21468
21469 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21470
21471 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21472
21473 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21474
21475 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21476 <avx512>_fmsub_<mode>_mask3<round_name>,
21477 <avx512>_fnmadd_<mode>_mask3<round_name>,
21478 <avx512>_fnmsub_<mode>_mask3<round_name>,
21479 avx512f_vmfmadd_<mode>_mask3<round_name>,
21480 avx512f_vmfmsub_<mode>_mask3<round_name>,
21481 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21482 instead of register_operand and %v instead of v for match_operand 1.
21483 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21484 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21485 <round_nimm_predicate> instead of register_operand and %v instead of v
21486 for match_operand 1.
21487
21488 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21489 <avx512>_fmadd_<mode>_mask3<round_name>,
21490 <avx512>_fmsub_<mode>_mask<round_name>,
21491 <avx512>_fmsub_<mode>_mask3<round_name>,
21492 <avx512>_fnmadd_<mode>_mask<round_name>,
21493 <avx512>_fnmadd_<mode>_mask3<round_name>,
21494 <avx512>_fnmsub_<mode>_mask<round_name>,
21495 <avx512>_fnmsub_<mode>_mask3<round_name>,
21496 <avx512>_fmaddsub_<mode>_mask<round_name>,
21497 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21498 <avx512>_fmsubadd_<mode>_mask<round_name>,
21499 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21500 <round_nimm_predicate> instead of nonimmediate_operand.
21501 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21502 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21503 Use register_operand instead of <round_nimm_predicate> for the
21504 operand that needs to match output.
21505 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21506 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21507 Likewise. Formatting fixes.
21508
21509 PR target/89784
21510 * config/i386/i386.c (enum ix86_builtins): Remove
21511 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21512 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21513 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21514 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21515 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21516 __builtin_ia32_vfmsubss3_mask3): New builtins.
21517 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21518 avx512f_vmfmadd_<mode>_mask3<round_name>,
21519 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21520 *avx512f_vmfmsub_<mode>_mask<round_name>,
21521 avx512f_vmfmsub_<mode>_mask3<round_name>,
21522 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21523 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21524 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21525 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21526 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21527 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21528 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21529 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21530 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21531 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21532 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21533 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21534 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21535 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21536 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21537 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21538 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21539 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21540 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21541 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21542 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21543 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21544 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21545 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21546 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21547 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21548 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21549 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21550
21551 2019-03-21 Martin Sebor <msebor@redhat.com>
21552
21553 PR tree-optimization/89350
21554 * builtins.c (compute_objsize): Also ignore offsets whose upper
21555 bound is negative.
21556 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21557 (builtin_memref::builtin_memref): Initialize new member.
21558 Allow EXPR to be null.
21559 (builtin_memref::extend_offset_range): Replace local with a member.
21560 Avoid assuming pointer offsets are unsigned.
21561 (builtin_memref::set_base_and_offset): Determine base object
21562 before computing offset range.
21563 (builtin_access::builtin_access): Handle memset.
21564 (builtin_access::generic_overlap): Replace local with a member.
21565 (builtin_access::strcat_overlap): Same.
21566 (builtin_access::overlap): Same.
21567 (maybe_diag_overlap): Same.
21568 (maybe_diag_access_bounds): Same.
21569 (wrestrict_dom_walker::check_call): Handle memset.
21570 (check_bounds_or_overlap): Same.
21571
21572 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21573 Jakub Jelinek <jakub@redhat.com>
21574
21575 PR lto/89692
21576 * tree.c (fld_type_variant, fld_incomplete_type_of,
21577 fld_process_array_type): Call fld->pset.add and don't call
21578 add_tree_to_fld_list if it returns true.
21579 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21580 non-marked types from TYPE_NEXT_VARIANT list.
21581 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21582
21583 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21584
21585 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21586 to false, if true, don't alloc_entries during construction, but defer
21587 it to the first method that needs m_entries allocated.
21588 (hash_table::hash_table, hash_table::~hash_table,
21589 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21590 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21591 hash_table::clear_slot, hash_table::traverse_noresize,
21592 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21593 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21594 false.
21595 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21596 NO_INSERT instead of find_with_hash.
21597 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21598 hash_set::m_table): Add Lazy to template params of hash_table.
21599 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21600 * attribs.c (test_attribute_exclusions): Likewise.
21601 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21602 hash_set. Add tests for hash_set with Lazy = true.
21603
21604 2019-03-21 Richard Biener <rguenther@suse.de>
21605
21606 PR tree-optimization/89779
21607 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21608 checks with respect to released SSA names now having error_mark_node
21609 type.
21610 * fold-const.c (operand_equal_p): Likewise.
21611
21612 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21613
21614 PR target/89775
21615 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21616 available to ...
21617 (s390_optimize_register_info): Use global_not_special_regno_p to
21618 check for global regs.
21619
21620 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21621
21622 PR target/89752
21623 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21624 update this_alternative nor this_alternative_set.
21625
21626 2019-03-19 Jim Wilson <jimw@sifive.com>
21627
21628 PR target/89411
21629 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21630 align, size, offset. Use them to handle a BLKmode reference. Update
21631 comment.
21632 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21633
21634 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21635
21636 PR rtl-optimization/89768
21637 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21638 instead of GEN_INT.
21639 (unroll_loop_runtime_iterations): Likewise.
21640
21641 2019-03-19 Martin Sebor <msebor@redhat.com>
21642
21643 PR tree-optimization/89644
21644 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21645 rather than endptr as an indicator of nul-termination.
21646
21647 PR tree-optimization/89644
21648 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21649 arrays in determining sequence sizes in strncpy and stpncpy.
21650
21651 2019-03-19 Martin Liska <mliska@suse.cz>
21652
21653 PR middle-end/89737
21654 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21655 unlikely_edges if there's an edge that belongs to both these sets.
21656
21657 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21658
21659 PR target/89746
21660 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21661 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21662 go via a stack temporary.
21663
21664 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21665
21666 PR target/89378
21667 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21668 instead of gen_rtx_SUBREG.
21669 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21670
21671 2019-03-19 Richard Biener <rguenther@suse.de>
21672
21673 PR debug/88389
21674 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21675
21676 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21677
21678 PR lto/87809
21679 PR lto/89335
21680 * tree.c (free_lang_data_in_decl): Do not free context of C++
21681 destrutors.
21682
21683 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21684
21685 PR target/89506
21686 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21687 subs for the first alternative except when operands[3] is 1.
21688
21689 PR target/89752
21690 * gimplify.c (gimplify_asm_expr): For output argument with
21691 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21692 diagnose error.
21693
21694 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21695
21696 PR rtl-optimization/89753
21697 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21698 explicit unrolling factor even more robust.
21699
21700 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21701
21702 PR target/89726
21703 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21704 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21705 signed zeros, do another copysign after the compensation.
21706
21707 2019-03-18 Martin Sebor <msebor@redhat.com>
21708
21709 PR tree-optimization/89720
21710 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21711 more conservatively, the same as anti-range.
21712
21713 2019-03-18 Richard Biener <rguenther@suse.de>
21714
21715 PR middle-end/88945
21716 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21717 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21718 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21719 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21720
21721 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21722
21723 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21724 Extend queue to 1024 entries.
21725 Add "consumed" field.
21726 (gomp_print_output): Remove print_index parameter.
21727 Add final parameter.
21728 Change limit to unsigned.
21729 Use consumed field to implement circular buffer.
21730 Detect interrupted print in final pass.
21731 Flush output at the end.
21732 (run): Update gomp_print_output usage.
21733 (main): Initialize kernargs->output_data.consumed.
21734
21735 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21736
21737 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21738 calculation of the minimum number of scalar iterations for
21739 fully-predicated loops.
21740
21741 2019-03-18 Martin Jambor <mjambor@suse.cz>
21742
21743 PR tree-optimization/89546
21744 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21745 any propagation to its children took place.
21746
21747 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21748
21749 PR target/89627
21750 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21751 parameter, and make use of it.
21752 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21753
21754 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21755
21756 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21757 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21758 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21759 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21760 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21761 match what the ops is doing.
21762 (push_multi_fp_blink): Likewise.
21763 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21764 compiling for size and elf target.
21765 (arc_save_callee_enter): Adjust note to match what enter/leave
21766 operation does.
21767
21768 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21769
21770 * config/arc/arc.md (tst_movb): Fix constraint.
21771
21772 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21773
21774 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21775
21776 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21777
21778 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21779 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21780 reg_alloc_order references.
21781 (size_alloc_order): Define.
21782 (arc_adjust_reg_alloc_order): New function.
21783 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21784 order.
21785 (ADJUST_REG_ALLOC_ORDER): Define.
21786 (HONOR_REG_ALLOC_ORDER): Likewise.
21787
21788 2019-03-18 Richard Biener <rguenther@suse.de>
21789
21790 PR target/87561
21791 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21792 loads and stores a bit more.
21793
21794 2019-03-18 Richard Biener <rguenther@suse.de>
21795
21796 PR target/87561
21797 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21798 load pessimization to stores as well.
21799
21800 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21801
21802 PR middle-end/86979
21803 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21804 successor, use NULL as its av set.
21805
21806 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21807
21808 PR rtl-optimization/89721
21809 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21810
21811 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21812
21813 PR target/87532
21814 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21815 When handling vec_extract, use modular arithmetic to allow
21816 constant selectors greater than vector length.
21817 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21818 V1TImode vectors to have constant selector values greater than 0.
21819 Use modular arithmetic to compute vector index.
21820 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21821 index for in-memory vectors. Correct code generation for
21822 in-register vectors.
21823 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21824 compute index.
21825
21826 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21827
21828 PR c++/88534
21829 PR c++/88537
21830 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21831 VAR_DECL args.
21832
21833 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21834
21835 PR c++/89709
21836 * tree.c (inchash::add_expr): Strip any location wrappers.
21837 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21838 after hash verification.
21839
21840 PR debug/89704
21841 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21842 SIGN_EXTEND and ZERO_EXTEND.
21843
21844 2019-03-14 Jason Merrill <jason@redhat.com>
21845 Jakub Jelinek <jakub@redhat.com>
21846
21847 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21848 than if is_empty (*slot).
21849 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21850 existing elt and for elt removal.
21851 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21852 of already removed elt.
21853
21854 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21855
21856 PR target/89650
21857 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21858 REG_EH_REGION note.
21859
21860 2019-03-14 Martin Liska <mliska@suse.cz>
21861
21862 PR other/89712
21863 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21864
21865 2019-03-14 Richard Biener <rguenther@suse.de>
21866
21867 PR target/89711
21868 * config/i386/i386.c (make_resolver_func): Properly set
21869 DECL_CONTEXT on the RESULT_DECL.
21870 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21871
21872 2019-03-14 Richard Biener <rguenther@suse.de>
21873
21874 * gimple-pretty-print.c: Include cfgloop.h.
21875 (dump_gimple_phi): Adjust.
21876 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21877 (pp_cfg_jump): Adjust.
21878 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21879 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21880 (lower_phi_internal_fn): Remove.
21881 (verify_gimple_call): Remove IFN_PHI special-casing.
21882 (dump_function_to_file): Dump IL state.
21883 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21884 done to deal with PHI nodes being present in non-SSA state.
21885
21886 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21887
21888 PR ipa/89684
21889 * multiple_target.c (create_dispatcher_calls): Change
21890 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21891 In the node->iterate_referring loop, push *ref rather than ref, call
21892 ref->remove_reference () and always pass 0 to iterate_referring.
21893
21894 PR rtl-optimization/89679
21895 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21896 would contain a paradoxical SUBREG.
21897
21898 2019-03-14 Richard Biener <rguenther@suse.de>
21899
21900 PR tree-optimization/89710
21901 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21902 safe_dyn_cast.
21903
21904 2019-03-14 Martin Liska <mliska@suse.cz>
21905
21906 * coverage.c (coverage_begin_function): Stream also
21907 end_column.
21908 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21909 documentation about function declaration location.
21910 * gcov-dump.c (tag_function): Print whole range
21911 of function declaration.
21912 * gcov.c (struct function_info): Add end_column field.
21913 (function_info::function_info): Initialize it.
21914 (output_json_intermediate_file): Output {start,end}_column
21915 fields.
21916 (read_graph_file): Read end_column.
21917
21918 2019-03-14 Richard Biener <rguenther@suse.de>
21919
21920 PR middle-end/89698
21921 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21922 that the access types are similar.
21923
21924 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21925
21926 PR tree-optimization/89703
21927 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21928 aren't compatible also with builtin_decl_explicit. Check pure
21929 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21930 and BUILT_IN_STPNCPY{,_CHK}.
21931
21932 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21933
21934 PR target/89523
21935 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21936 addr32 prefix to VSIB address for X32.
21937 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21938 "%M2" to opcode.
21939 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21940 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21941 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21942 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21943 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21944 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21945 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21946 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21947 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21948 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21949 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21950 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21951 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21952 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21953 (*avx512f_scatterdi<mode>): Likewise.
21954
21955 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21956
21957 PR target/85860
21958 * lra-constraints.c (inherit_in_ebb): Update
21959 potential_reload_hard_regs along with live_hard_regs.
21960
21961 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21962
21963 PR debug/89498
21964 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21965 DWARF_OFFSET_SIZE.
21966 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21967
21968 2019-03-13 Martin Sebor <msebor@redhat.com>
21969
21970 PR tree-optimization/89662
21971 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21972 has a size.
21973
21974 2019-03-13 Richard Biener <rguenther@suse.de>
21975
21976 PR middle-end/89677
21977 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21978 throw FP expressions at tree-affine.
21979
21980 2019-03-14 Richard Biener <rguenther@suse.de>
21981
21982 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21983 dump negative integer constants using _Literal (type) -num.
21984
21985 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21986
21987 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21988 nonlocal_value member.
21989
21990 PR middle-end/88588
21991 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21992 (ipa_simd_modify_function_body): Handle PHIs.
21993
21994 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21995
21996 * config/s390/s390.c (s390_option_override_internal): Use more
21997 aggressive inlining parameters.
21998
21999 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22000
22001 * config/s390/3906.md: New file.
22002 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22003 (LONGRUNNING_THRESHOLD): Remove.
22004 (MAX_SCHED_MIX_SCORE): Decrease.
22005 (MAX_SCHED_MIX_DISTANCE): Decrease.
22006 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22007 (struct s390_sched_state): New struct to hold scheduling state.
22008 (S390_SCHED_STATE_NORMAL): Remove.
22009 (S390_SCHED_STATE_CRACKED): Remove.
22010 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22011 (s390_get_sched_attrmask): Use new attribute.
22012 (s390_get_unit_mask): Use new units.
22013 (s390_is_fpd): New function.
22014 (s390_is_fxd): New function.
22015 (s390_is_longrunning): New function.
22016 (s390_sched_score): Use new functions.
22017 (s390_sched_reorder): Likewise.
22018 (s390_sched_variable_issue): Rework and use new functions.
22019 (s390_sched_init): Use new functions.
22020 * config/s390/s390.h (s390_tune_attr): Add z14.
22021 * config/s390/s390.md: Add z14.
22022
22023 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22024
22025 * config/s390/2964.md: Update pipeline description.
22026 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22027 (LONGRUNNING_THRESHOLD): Remove.
22028 (LATENCY_FACTOR): Remove.
22029 (s390_get_unit_mask): Add unit.
22030 (s390_sched_score): Use fxd/fpd.
22031 (s390_sched_variable_issue): Use fxd/fpd.
22032
22033 2019-03-12 Martin Liska <mliska@suse.cz>
22034
22035 * config/i386/i386.c: Reword an error message.
22036
22037 2019-03-12 Martin Jambor <mjambor@suse.cz>
22038
22039 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22040 terminate with newline.
22041
22042 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22043
22044 PR target/52726
22045 * config/s390/s390.md (tabort): Use %wd instead of
22046 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22047 letters and periods.
22048 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22049 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22050 's with %< and %>.
22051
22052 PR middle-end/89663
22053 * builtins.c (expand_builtin_int_roundingfn,
22054 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22055 gcc_unreachable if validate_arglist fails.
22056
22057 2019-03-12 Richard Biener <rguenther@suse.de>
22058
22059 PR tree-optimization/89664
22060 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22061 free the occurance tree after the early out.
22062
22063 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22064
22065 PR middle-end/89655
22066 PR bootstrap/89656
22067 * vr-values.c (vr_values::update_value_range): If
22068 old_vr->varying_p (), don't update it, make new_vr also VARYING
22069 and return false.
22070
22071 2019-03-11 Martin Liska <mliska@suse.cz>
22072
22073 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22074 Fix double string quoting.
22075
22076 2019-03-11 Martin Liska <mliska@suse.cz>
22077
22078 * collect-utils.c (collect_wait): Wrap apostrophes
22079 in gcc internal format with %'.
22080 * collect2.c (main): Likewise.
22081 (scan_prog_file): Likewise.
22082 (scan_libraries): Likewise.
22083 * config/i386/i386.c (ix86_expand_call): Likewise.
22084 (ix86_handle_interrupt_attribute): Likewise.
22085 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22086 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22087 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22088 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22089 * symtab.c (symtab_node::verify_base): Likewise.
22090 * tree-cfg.c (verify_gimple_label): Likewise.
22091 * tree.c (verify_type_variant): Likewise.
22092
22093 2019-03-11 Martin Liska <mliska@suse.cz>
22094
22095 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22096 in a string format message and fix GNU coding style.
22097 (expand_builtin_set_thread_pointer): Likewise.
22098 * common/config/aarch64/aarch64-common.c
22099 (aarch64_rewrite_selected_cpu): Likewise.
22100 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22101 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22102 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22103 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22104 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22105 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22106 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22107 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22108 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22109 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22110 Likewise.
22111 * common/config/riscv/riscv-common.c
22112 (riscv_subset_list::parsing_subset_version): Likewise.
22113 (riscv_subset_list::parse_std_ext): Likewise.
22114 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22115 (riscv_subset_list::parse): Likewise.
22116 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22117 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22118 (aarch64_override_options_internal): Likewise.
22119 (aarch64_validate_mcpu): Likewise.
22120 (aarch64_validate_march): Likewise.
22121 (aarch64_validate_mtune): Likewise.
22122 (aarch64_override_options): Likewise.
22123 * config/alpha/alpha.c (alpha_option_override): Likewise.
22124 * config/arc/arc.c (arc_init): Likewise.
22125 (parse_mrgf_banked_regs_option): Likewise.
22126 (arc_override_options): Likewise.
22127 (arc_expand_builtin_aligned): Likewise.
22128 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22129 (arm_expand_builtin): Likewise.
22130 * config/arm/arm.c (arm_option_check_internal): Likewise.
22131 (arm_configure_build_target): Likewise.
22132 (arm_option_override): Likewise.
22133 (arm_options_perform_arch_sanity_checks): Likewise.
22134 (arm_handle_cmse_nonsecure_entry): Likewise.
22135 (arm_handle_cmse_nonsecure_call): Likewise.
22136 (arm_tls_referenced_p): Likewise.
22137 (thumb1_expand_prologue): Likewise.
22138 * config/avr/avr.c (avr_option_override): Likewise.
22139 * config/bfin/bfin.c (bfin_option_override): Likewise.
22140 * config/c6x/c6x.c (c6x_option_override): Likewise.
22141 * config/cr16/cr16.c (cr16_override_options): Likewise.
22142 * config/cris/cris.c (cris_option_override): Likewise.
22143 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22144 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22145 * config/darwin.c (darwin_override_options): Likewise.
22146 * config/frv/frv.c (frv_expand_builtin): Likewise.
22147 * config/h8300/h8300.c (h8300_option_override): Likewise.
22148 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22149 (ix86_option_override_internal): Likewise.
22150 (warn_once_call_ms2sysv_xlogues): Likewise.
22151 (ix86_expand_prologue): Likewise.
22152 (split_stack_prologue_scratch_regno): Likewise.
22153 (ix86_warn_parameter_passing_abi): Likewise.
22154 * config/ia64/ia64.c (fix_range): Likewise.
22155 * config/m68k/m68k.c (m68k_option_override): Likewise.
22156 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22157 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22158 (mips_set_compression_mode): Likewise.
22159 * config/mmix/mmix.c (mmix_option_override): Likewise.
22160 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22161 * config/msp430/msp430.c (msp430_option_override): Likewise.
22162 * config/nds32/nds32.c (nds32_option_override): Likewise.
22163 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22164 (nios2_option_override): Likewise.
22165 (nios2_expand_custom_builtin): Likewise.
22166 * config/nvptx/mkoffload.c (main): Likewise.
22167 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22168 * config/pa/pa.c (fix_range): Likewise.
22169 (pa_option_override): Likewise.
22170 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22171 (riscv_option_override): Likewise.
22172 * config/rl78/rl78.c (rl78_option_override): Likewise.
22173 * config/rs6000/aix61.h: Likewise.
22174 * config/rs6000/aix71.h: Likewise.
22175 * config/rs6000/aix72.h: Likewise.
22176 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22177 * config/rs6000/freebsd64.h: Likewise.
22178 * config/rs6000/linux64.h: Likewise.
22179 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22180 (rs6000_expand_zeroop_builtin): Likewise.
22181 (rs6000_expand_mtfsb_builtin): Likewise.
22182 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22183 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22184 (rs6000_invalid_builtin): Likewise.
22185 (rs6000_expand_split_stack_prologue): Likewise.
22186 * config/rs6000/rtems.h: Likewise.
22187 * config/rx/rx.c (valid_psw_flag): Likewise.
22188 (rx_expand_builtin): Likewise.
22189 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22190 * config/s390/s390.c (s390_expand_builtin): Likewise.
22191 (s390_function_profiler): Likewise.
22192 (s390_option_override_internal): Likewise.
22193 (s390_option_override): Likewise.
22194 * config/sh/sh.c (sh_option_override): Likewise.
22195 (sh_builtin_saveregs): Likewise.
22196 (sh_fix_range): Likewise.
22197 * config/sh/vxworks.h: Likewise.
22198 * config/sparc/sparc.c (sparc_option_override): Likewise.
22199 * config/spu/spu.c (spu_option_override): Likewise.
22200 (fix_range): Likewise.
22201 * config/visium/visium.c (visium_option_override): Likewise.
22202 (visium_handle_interrupt_attr): Likewise.
22203 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22204 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22205 (dbg_cnt_process_opt): Likewise.
22206 * dwarf2out.c (output_dwarf_version): Likewise.
22207 * except.c (expand_eh_return): Likewise.
22208 * gcc.c (defined): Likewise.
22209 (driver_handle_option): Likewise.
22210 (process_command): Likewise.
22211 (compare_files): Likewise.
22212 (driver::prepare_infiles): Likewise.
22213 (driver::do_spec_on_infiles): Likewise.
22214 (driver::maybe_run_linker): Likewise.
22215 * omp-offload.c (oacc_parse_default_dims): Likewise.
22216 * opts-global.c (handle_common_deferred_options): Likewise.
22217 * opts.c (parse_sanitizer_options): Likewise.
22218 (common_handle_option): Likewise.
22219 (enable_warning_as_error): Likewise.
22220 * passes.c (enable_disable_pass): Likewise.
22221 * plugin.c (parse_plugin_arg_opt): Likewise.
22222 (default_plugin_dir_name): Likewise.
22223 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22224 (default_pch_valid_p): Likewise.
22225 * toplev.c (init_asm_output): Likewise.
22226 (process_options): Likewise.
22227 (toplev::run_self_tests): Likewise.
22228 * tree-cfg.c (verify_gimple_call): Likewise.
22229 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22230 (tree_inlinable_function_p): Likewise.
22231 * var-tracking.c (vt_find_locations): Likewise.
22232
22233 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22234
22235 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22236 only on the else branch.
22237
22238 2019-03-11 Martin Liska <mliska@suse.cz>
22239
22240 * gcov.c (output_intermediate_json_line): Print function
22241 name of each line.
22242 (output_json_intermediate_file): Add new argument.
22243 * doc/gcov.texi: Document the change.
22244
22245 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22246
22247 PR rtl-optimization/89588
22248 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22249 explicit unrolling factor more robust.
22250
22251 2019-03-11 Richard Biener <rguenther@suse.de>
22252
22253 PR tree-optimization/89649
22254 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22255 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22256 on the prolog and epilog loops.
22257 (vect_loop_versioning): Return copy of loop.
22258 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22259 on the non-vectorized version of the loop.
22260
22261 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22262
22263 PR target/68924
22264 * config/i386/sse.md (*vec_extractv2di_0_sse):
22265 Add (=r,x) alternative and corresponding splitter.
22266
22267 2019-03-10 Martin Jambor <mjambor@suse.cz>
22268
22269 PR tree-optimization/85762
22270 PR tree-optimization/87008
22271 PR tree-optimization/85459
22272 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22273 it points to if there is a type changing MEM_REF. Adjust all callers.
22274 (build_accesses_from_assign): Disable total scalarization if
22275 contains_vce_or_bfcref_p returns true through the new parameter, for
22276 both rhs and lhs.
22277
22278 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22279
22280 PR c/88568
22281 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22282 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22283
22284 PR target/79645
22285 * common.opt (fdiagnostics-show-labels,
22286 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22287 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22288 gas-locview-support, ginline-points, ginternal-reset-location-views):
22289 Terminate description text with a dot.
22290 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22291 * config/mcore/mcore.opt (m210, m340): Likewise.
22292 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22293 mnops=): Start description text with a capital letter.
22294 * config/arc/arc.opt (msize-level=): Likewise.
22295 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22296 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22297 mnewlib): Likewise.
22298 * config/ft32/ft32.opt (msim): Likewise.
22299 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22300 (mnodiv, mnopm): Terminate description text with a dot.
22301 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22302 a colon.
22303 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22304 Likewise.
22305 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22306 text.
22307
22308 PR rtl-optimization/89634
22309 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22310 are modified in BB_END (e->src) instruction.
22311
22312 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22313
22314 PR target/79926
22315 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22316 messages more amenable to translation, and improve wording.
22317
22318 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22319
22320 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22321 ud- and du-chains between phases.
22322
22323 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22324
22325 PR debug/89631
22326 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22327 instead of POLY_INT_CST.
22328
22329 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22330
22331 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22332 requirement.
22333
22334 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22335
22336 PR target/68924
22337 PR target/78782
22338 PR target/87558
22339 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22340 (_mm_storeu_si64): Ditto.
22341
22342 2019-03-08 Martin Liska <mliska@suse.cz>
22343
22344 PR target/86952
22345 * config/i386/i386.c (ix86_option_override_internal): Disable
22346 jump tables when retpolines are used.
22347
22348 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22349
22350 PR go/63560
22351 * ipa-split.c (execute_split_functions): Do not split
22352 'noinline' or 'section' function.
22353
22354 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22355
22356 PR target/79846
22357 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22358 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22359 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22360
22361 PR ipa/80000
22362 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22363 from diagnostics. Formatting fixes.
22364
22365 PR target/85665
22366 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22367 warn_odr diagnostics.
22368
22369 PR other/80058
22370 * lra-constraints.c (process_alt_operands): Avoid one space before
22371 " at the end of line and another after " on another line in a string
22372 literal.
22373 * attribs.c (handle_dll_attribute): Likewise.
22374 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22375
22376 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22377 warning_at or inform messages in G_() if there is no ?:.
22378
22379 PR tree-optimization/89550
22380 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22381 returned true. Formatting fixes.
22382 (expand_builtin_strnlen): Formatting fixes.
22383 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22384 if warning_at returned true.
22385 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22386
22387 2019-03-08 Richard Biener <rguenther@suse.de>
22388
22389 PR middle-end/89578
22390 * cfgloop.h (struct loop): Add owned_clique field.
22391 * cfgloopmanip.c (copy_loop_info): Copy it.
22392 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22393 cliques.
22394 * tree-inline.c (copy_loops): Remap owned_clique.
22395 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22396 * lto-streamer-out.c (output_cfg): Likewise.
22397
22398 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22399
22400 PR target/80190
22401 * config/darwin.c: Include intl.h.
22402 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22403 composing the message out of two separate parts.
22404
22405 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22406
22407 PR target/80003
22408 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22409 doesn't start with a capital letter and doesn't end with a dot.
22410 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22411 with a capital letter.
22412 (ix86_mangle_function_version_assembler_name): Likewise.
22413 (ix86_generate_version_dispatcher_body): Likewise.
22414 (fold_builtin_cpu): Likewise.
22415 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22416 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22417 translators, wrap full type name in %qs.
22418
22419 PR translation/79999
22420 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22421 depend clause with source (or sink) modifier.
22422 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22423
22424 PR target/89602
22425 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22426 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22427 (avx512f_load<mode>_mask): New define_expand.
22428 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22429 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22430 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22431 __builtin_ia32_movess_mask): New builtins.
22432 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22433 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22434 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22435 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22436
22437 2019-03-07 Martin Jambor <mjambor@suse.cz>
22438
22439 PR lto/87525
22440 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22441 for extern inline functions.
22442
22443 2019-03-07 Martin Jambor <mjambor@suse.cz>
22444
22445 PR ipa/88235
22446 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22447 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22448 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22449 have multiple callees. At the end check if declarations match as
22450 opposed to cgraph_nodes.
22451
22452 2019-03-07 Martin Liska <mliska@suse.cz>
22453
22454 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22455 which is equivalent to searching for this in clones chain.
22456 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22457 names with a neighbour and special case first node in a chain.
22458
22459 2019-01-25 Jason Merrill <jason@redhat.com>
22460
22461 PR c++/80916 - spurious "static but not defined" warning.
22462 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22463 for an internal symbol with DECL_EXTERNAL.
22464
22465 2019-04-07 Richard Biener <rguenther@suse.de>
22466
22467 PR middle-end/89618
22468 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22469 * tree-inline.c (copy_loops): Simplify.
22470
22471 2019-03-07 Martin Liska <mliska@suse.cz>
22472
22473 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22474
22475 2019-03-07 Richard Biener <rguenther@suse.de>
22476
22477 PR tree-optimization/89595
22478 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22479 stmt iterator as reference, take boolean output parameter to
22480 indicate whether the stmt was removed and thus the iterator
22481 already advanced.
22482 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22483 stmts created by folding.
22484
22485 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22486
22487 PR c++/89585
22488 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22489 at toplevel.
22490
22491 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22492
22493 PR rtl-optimization/88845
22494 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22495 LRA.
22496 * lra.c (remove_scratches_1): New function.
22497 (remove_scratches): Use it.
22498 (lra_emit_move): Likewise.
22499
22500 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22501
22502 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22503 unaligned_access variable.
22504 * config/arc/arc.c (arc_override_options): Set unaligned access
22505 default on for HS CPUs.
22506 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22507
22508 2019-03-06 Martin Liska <mliska@suse.cz>
22509
22510 PR gcov-profile/89577
22511 * doc/gcov.texi: Prefer to use --coverage.
22512 * doc/sourcebuild.texi: Likewise.
22513
22514 2019-03-02 Jason Merrill <jason@redhat.com>
22515
22516 PR c++/86485 - -Wmaybe-unused with empty class ?:
22517 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22518
22519 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22520
22521 PR target/89587
22522 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22523 if_multiarch.
22524
22525 PR middle-end/89590
22526 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22527 exactly one argument.
22528
22529 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22530 Richard Sandiford <richard.sandiford@arm.com>
22531
22532 PR tree-optimization/89570
22533 * match.pd (vec_cond into cond_op simplification): Don't use
22534 get_conditional_internal_fn, use as_internal_fn (cond_op).
22535
22536 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22537
22538 PR target/89222
22539 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22540 to decide when to split off a non-zero offset from a symbol.
22541 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22542 in function symbols.
22543
22544 2019-03-05 Richard Biener <rguenther@suse.de>
22545
22546 PR tree-optimization/89594
22547 * tree-if-conv.c (pass_if_conversion::execute): Handle
22548 case where .LOOP_VECTORIZED_FUNCTION was removed.
22549
22550 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22551
22552 PR bootstrap/89560
22553 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22554 instead alloca it only when needed with the needed size.
22555
22556 PR tree-optimization/89570
22557 * match.pd (vec_cond into cond_op simplification): Guard with
22558 vectorized_internal_fn_supported_p test and #if GIMPLE.
22559
22560 PR tree-optimization/89566
22561 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22562 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22563 Punt if get_user_idx_format succeeds, but idx_format argument is
22564 not provided or doesn't have pointer type, or if idx_args is above
22565 number of provided arguments.
22566
22567 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22568
22569 PR tree-optimization/89437
22570 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22571
22572 2019-03-04 Richard Biener <rguenther@suse.de>
22573
22574 PR middle-end/89572
22575 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22576 safe_dyn_cast.
22577
22578 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22579
22580 PR tree-optimization/89487
22581 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22582 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22583 (distribute_loop): Don't do runtime alias check if there is non-
22584 addressable data reference.
22585 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22586 is a register variable.
22587
22588 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22589
22590 PR target/89506
22591 * config/arm/arm.md (cmpsi2_addneg): Use
22592 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22593 If operands[2] is 0 or INT_MIN, force use of subs.
22594 (*compare_scc splitter): Use gen_int_mode.
22595 (*negscc): Likewise.
22596 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22597
22598 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22599 Monk Chiang <sh.chiang04@gmail.com>
22600
22601 * common/config/riscv/riscv-common.c: Include sstream.
22602 (riscv_subset_list::to_string): New.
22603 (riscv_arch_str): Likewise.
22604 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22605 * config.in: Regen.
22606 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22607 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22608 (riscv_emit_attribute): New.
22609 (riscv_file_start): Emit attribute if needed.
22610 (riscv_option_override): Init riscv_emit_attribute_p.
22611 * config/riscv/riscv.opt (mriscv-attribute): New option.
22612 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22613 * configure: Regen.
22614 * doc/install.texi: Document --with-riscv-attribute.
22615 * doc/invoke.texi: Document -mriscv-attribute.
22616
22617 * common/config/riscv/riscv-common.c:
22618 Include config/riscv/riscv-protos.h.
22619 (INCLUDE_STRING): Defined.
22620 (RISCV_DONT_CARE_VERSION): Defined.
22621 (riscv_subset_t): Declare.
22622 (riscv_subset_t::riscv_subset_t): New.
22623 (riscv_subset_list): Declare.
22624 (riscv_subset_list::riscv_subset_list): New.
22625 (riscv_subset_list::~riscv_subset_list): Likewise.
22626 (riscv_subset_list::parsing_subset_version): Likewise.
22627 (riscv_subset_list::parse_std_ext): Likewise.
22628 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22629 (riscv_subset_list::add): Likewise.
22630 (riscv_subset_list::lookup): Likewise.
22631 (riscv_subset_list::xlen): Likewise.
22632 (riscv_subset_list::parse): Likewise.
22633 (riscv_supported_std_ext): Likewise.
22634 (current_subset_list): Likewise.
22635 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22636 parse.
22637
22638 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22639
22640 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22641 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22642 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22643
22644 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22645
22646 PR rtl-optimization/85899
22647 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22648 fallthru edges leading to the exit block.
22649
22650 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22651
22652 PR target/89517
22653 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22654 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22655
22656 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22657
22658 PR tree-optimization/89535
22659 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22660 for each operand. Calculate the fallback choice for mask operands
22661 and pass it to vect_get_vec_def_for_operand.
22662
22663 2019-03-01 Richard Biener <rguenther@suse.de>
22664
22665 PR middle-end/89541
22666 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22667 get virtual operands.
22668 (get_expr_operands): Handle CONST_DECL like other decls.
22669
22670 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22671
22672 PR middle-end/89503
22673 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22674 on DECL_P and EXPR_P.
22675
22676 2019-03-01 Richard Biener <rguenther@suse.de>
22677
22678 PR middle-end/89497
22679 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22680 argument, defaulted to zero.
22681 * passes.c (execute_function_todo): Pass down SSA update flags
22682 to cleanup_tree_cfg.
22683 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22684 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22685 form if requested.
22686 (cleanup_tree_cfg): Get and pass down SSA update flags.
22687
22688 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22689
22690 PR bootstrap/89539
22691 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22692 early_lto_debug argument.
22693
22694 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22695
22696 PR tree-optimization/89536
22697 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22698 only whether bit #0 of the value is 0 instead of the entire value.
22699
22700 2019-02-28 Marek Polacek <polacek@redhat.com>
22701
22702 PR c++/87068 - missing diagnostic with fallthrough statement.
22703 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22704 at the end of a seq, save its location to walk_stmt_info.
22705 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22706 a switch.
22707
22708 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22709
22710 PR lto/88585
22711 * tree.c (find_atomic_core_type): Move ahead in file.
22712 (check_base_type): Correctly compare alignments of atomic types.
22713
22714 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22715
22716 PR target/89455
22717 * config/i386/i386.c (get_builtin_code_for_version): Identify
22718 Westmere from PCLMUL, instead of AES.
22719
22720 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22721
22722 PR target/89434
22723 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22724 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22725 -UINTVAL (...).
22726
22727 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22728
22729 PR target/88530
22730 * config/aarch64/aarch64-option-extensions.def: Document it.
22731 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22732 if empty hwcaps.
22733
22734 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22735
22736 PR c/89520
22737 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22738 builtins if they don't have a single scalar floating point argument.
22739 Formatting fixes.
22740
22741 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22742
22743 PR rtl-optimization/89490
22744 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22745 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22746 block section is not mergeable.
22747
22748 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22749
22750 PR target/70341
22751 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22752 old define_insn to ...
22753 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22754 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22755 Rename old define_insn to ...
22756 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22757 (thumb2_casesi_internal_pic): New define_expand. Rename old
22758 define_insn to ...
22759 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22760 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22761 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22762
22763 2019-02-27 Richard Biener <rguenther@suse.de>
22764
22765 PR debug/88878
22766 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22767
22768 2019-02-27 Richard Biener <rguenther@suse.de>
22769
22770 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22771 building.
22772
22773 2019-02-27 Richard Biener <rguenther@suse.de>
22774
22775 PR debug/88878
22776 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22777 parameter, prefix section name with .gnu.debuglto_ if true.
22778 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22779 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22780
22781 2019-02-27 Richard Biener <rguenther@suse.de>
22782
22783 PR debug/89514
22784 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22785 rather than on use_debug_types, doing what output_die does.
22786 (value_format): Likewise.
22787
22788 2019-02-27 Martin Jambor <mjambor@suse.cz>
22789 Martin Sebor <msebor@redhat.com>
22790
22791 * doc/invoke.texi (Warning Options): Reword description of
22792 -Wno-absolute-value.
22793
22794 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22795
22796 PR tree-optimization/89280
22797 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22798 builtin_setjmp_setup_bb): New functions.
22799 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22800 When visiting __builtin_setjmp_setup block, queue in special
22801 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22802 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22803 from visited after the loop if they don't have any visited successor
22804 blocks.
22805
22806 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22807
22808 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22809 New function.
22810 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22811
22812 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22813
22814 PR c++/89507
22815 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22816 with types other than sizetype/ssizetype.
22817
22818 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22819
22820 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22821 (enum sparc_processor_type): ...this.
22822 (enum sparc_code_model_type): New enumeration type.
22823 (enum sparc_memory_model_type): Tweak comments.
22824 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22825 (mtune): Likewise.
22826 (mcmodel): Use sparc_code_model enumeration and variable.
22827 (sparc_code_model): New enumeration.
22828 (mdebug): Add Undocumented marker.
22829 * config/sparc/sparc.h (enum cmodel): Delete.
22830 (sparc_cmodel): Likewise.
22831 (TARGET_CM_MEDLOW): Adjust to above renaming.
22832 (TARGET_CM_MEDMID): Likewise.
22833 (TARGET_CM_MEDANY): Likewise.
22834 (TARGET_CM_EMBMEDANY): Likewise.
22835 * config/sparc/sparc.c (sparc_cmodel): Delete.
22836 (sparc_option_override): Remove string/value mapping support for the
22837 code model. Move code and memory model support to after the handling
22838 of target flags. Do private machine setup last.
22839 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22840 (sparc_legitimize_reload_address): Likewise.
22841 (sparc_output_mi_thunk): Likewise.
22842 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22843
22844 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22845
22846 PR tree-optimization/89500
22847 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22848 (handle_builtin_strlen): Remove noncst_bound variable. Always
22849 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22850 cst if the first cst bytes starting at x are known to be non-zero,
22851 even if the string is not zero terminated. Don't try to modify
22852 *si for strnlen. Update strlen_to_stridx only for strlen or if
22853 we can prove strnlen returns the same value as strlen would.
22854
22855 2019-02-26 Martin Liska <mliska@suse.cz>
22856
22857 * alloc-pool.h (struct pool_usage): Remove extra
22858 print_dash_line.
22859 * bitmap.h (struct bitmap_usage): Likewise.
22860 * ggc-common.c (struct ggc_usage): Likewise.
22861 * mem-stats.h (struct mem_usage): Likewise.
22862 (mem_alloc_description::dump): Print dash lines
22863 here and repeat header at the end of a table report.
22864 It's then more readable.
22865 * tree-phinodes.c (phinodes_print_statistics): Make
22866 horizontal alignment.
22867 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22868 * vec.c (struct vec_usage): Remove extra print_dash_line.
22869 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22870
22871 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22872
22873 * doc/extend.texi (__builtin_object_size):
22874 Use @pxref instead of @xref inside parenthesis.
22875 (__builtin_has_attribute): Add missing comma after @xref.
22876 (__builtin_object_size): Ditto.
22877 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22878
22879 2019-02-26 Jeff Law <law@redhat.com>
22880
22881 PR rtl-optimization/87761
22882 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22883 detect obviously dead insns and delete them.
22884
22885 2019-02-26 Richard Biener <rguenther@suse.de>
22886
22887 PR tree-optimization/89505
22888 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22889 to handle restrict pointed-to vars with multiple subvars
22890 correctly.
22891
22892 2019-02-26 Richard Biener <rguenther@suse.de>
22893
22894 PR tree-optimization/89489
22895 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22896
22897 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22898
22899 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22900 and move around comment.
22901 <BIT_AND_EXPR>: Likewise.
22902 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22903
22904 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22905
22906 PR target/89474
22907 * config/i386/i386.c (remove_partial_avx_dependency): Call
22908 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22909 after changing possibly many instructions to use that pseudo. Fix up
22910 insertion of v4sf_const0 setter at the start of bb.
22911
22912 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22913
22914 PR c/80409
22915 * doc/extend.texi (Variadic Pointer Args): New section.
22916
22917 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22918 Martin Sebor <msebor@gmail.com>
22919
22920 * common.opt (Wattribute-alias): Likewise.
22921 * doc/invoke.texi (Option Summary): List general form of
22922 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22923 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22924 Add cross-references.
22925 (-Wattribute-alias): Rewrite and correct default. Mention
22926 considered attributes (same as for -Wmissing-attributes).
22927
22928 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22929
22930 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22931 (_mm_cvtpd_ps): Likewise.
22932 (_mm_cvttpd_epi32): Likewise.
22933
22934 PR target/89338
22935 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22936 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22937
22938 PR target/89339
22939 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22940
22941 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22942
22943 PR target/88530
22944 * common/config/aarch64/aarch64-common.c
22945 (struct aarch64_option_extension): Add is_synthetic.
22946 (all_extensions): Use it.
22947 (TARGET_OPTION_INIT_STRUCT): Define hook.
22948 (struct gcc_targetm_common): Moved to end.
22949 (all_extensions_by_on): New.
22950 (opt_ext_cmp, typedef opt_ext): New.
22951 (aarch64_option_init_struct): New.
22952 (aarch64_contains_opt): New.
22953 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22954 * config/aarch64/aarch64-option-extensions.def
22955 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22956 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22957 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22958 Set is_synthetic to false.
22959 (crypto): Set is_synthetic to true.
22960 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22961 SYNTHETIC.
22962
22963 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22964
22965 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22966 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22967 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22968 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22969 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22970 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22971 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22972 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22973 Rename ...
22974 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22975 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22976 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22977 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22978 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22979 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22980 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22981 vfmlsl_laneq_high_f16): ... To this.
22982 * config/arm/neon.md: Update comments.
22983
22984 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22985
22986 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22987 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22988 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22989 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22990 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22991 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22992 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22993 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22994 Rename ...
22995 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22996 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22997 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22998 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22999 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23000 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23001 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23002 vfmlslq_laneq_high_f16): ... To this.
23003
23004 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23005
23006 PR rtl-optimization/86096
23007 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23008 comparing mw_order values.
23009
23010 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23011
23012 PR target/89434
23013 * config/arm/arm.md (*subsi3_carryin_const): Use
23014 arm_neg_immediate_operand predicate instead of
23015 arm_not_immediate_operand, "L" constraint instead of "K" and
23016 print it using %n2 instead of %B2.
23017 (*subsi3_carryin_const0): New define_insn.
23018 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23019 instead of arm_not_operand and "I" constraint instead of "K" and
23020 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23021 another match_operand and in the condition check that it is negation
23022 of operands[2].
23023 (*subsi3_carryin_compare_const0): New define_ins.
23024 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23025 *subsi3_carryin_const.
23026 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23027 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23028
23029 PR target/89438
23030 * config/arm.vfp.md (*negdf2_vfp): Use
23031 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23032 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23033
23034 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23035
23036 PR rtl-optimization/89445
23037 * simplify-rtx.c (simplify_ternary_operation): Don't use
23038 simplify_merge_mask on operands that may trap.
23039 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23040 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23041 second operand is CONST_VECTOR, check if any element could be zero.
23042 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23043 their operands can trap.
23044
23045 2019-02-23 Martin Sebor <msebor@redhat.com>
23046
23047 * gimple-ssa-sprintf.c (target_strtol): Rename...
23048 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23049 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23050 check for range error.
23051
23052 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23053
23054 PR driver/69471
23055 * opts-common.c (prune_options): Also prune joined switches
23056 with Negative and RejectNegative.
23057 * config/i386/i386.opt (march=): Add Negative(march=).
23058 (mtune=): Add Negative(mtune=).
23059 * doc/options.texi: Document Negative used together with Joined
23060 and RejectNegative.
23061
23062 2019-02-22 Martin Sebor <msebor@redhat.com>
23063
23064 * doc/extend.texi (Other Builtins): Add
23065 __builtin_is_constant_evaluated.
23066
23067 2019-02-22 Richard Biener <rguenther@suse.de>
23068
23069 PR tree-optimization/87609
23070 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23071
23072 2019-02-22 Jeff Law <law@redhat.com>
23073
23074 PR rtl-optimization/87761
23075 * config/mips/mips.md: Add new combiner pattern to recognize
23076 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23077
23078 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23079
23080 PR target/89324
23081 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23082 destination register in peepholes generating patterns for ADDS/SUBS.
23083 (add<mode>3_compare0,
23084 *addsi3_compare0_uxtw, add<mode>3_compareC,
23085 add<mode>3_compareV_imm, add<mode>3_compareV,
23086 *adds_<optab><ALLX:mode>_<GPI:mode>,
23087 *subs_<optab><ALLX:mode>_<GPI:mode>,
23088 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23089 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23090 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23091 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23092 sub<mode>3_compare1): Allow stack pointer for source register.
23093 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23094
23095 2019-02-22 Martin Sebor <msebor@redhat.com>
23096
23097 PR tree-optimization/88993
23098 PR tree-optimization/88853
23099 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23100 New helper.
23101 (sprintf_dom_walker::call_info::is_string_func): New helper.
23102 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23103 for formatted string functions.
23104 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23105
23106 2019-02-22 Martin Sebor <msebor@redhat.com>
23107
23108 PR c/89425
23109 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23110 unreachable subexpressions.
23111
23112 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23113 Hongtao Liu <hongtao.liu@intel.com>
23114 Sunil K Pandey <sunil.k.pandey@intel.com>
23115
23116 PR target/87007
23117 * config/i386/i386-passes.def: Add
23118 pass_remove_partial_avx_dependency.
23119 * config/i386/i386-protos.h
23120 (make_pass_remove_partial_avx_dependency): New.
23121 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23122 New function.
23123 (pass_data_remove_partial_avx_dependency): New.
23124 (pass_remove_partial_avx_dependency): Likewise.
23125 (make_pass_remove_partial_avx_dependency): Likewise.
23126 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23127 (*extendsfdf2): Add avx_partial_xmm_update.
23128 (truncdfsf2): Likewise.
23129 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23130 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23131
23132 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23133
23134 PR middle-end/85598
23135 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23136 analysis for pass.
23137
23138 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23139
23140 PR target/89444
23141 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23142 (PTA_SKYLAKE): Add PTA_AES.
23143 (PTA_GOLDMONT): Likewise.
23144
23145 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23146
23147 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23148 instruction if enabled.
23149 (aarch64_override_options): Remove reference to return address key.
23150
23151 2019-02-22 Richard Biener <rguenther@suse.de>
23152
23153 PR tree-optimization/89440
23154 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23155 not necessary assert.
23156
23157 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23158
23159 PR fortran/72741
23160 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23161 (oacc_replace_fn_attrib_attr): ... this new function.
23162 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23163 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23164
23165 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23166
23167 * config/arm/arm-cpus.in (ares): Rename to...
23168 (neoverse-n1): ... This. Add ares as alias.
23169 * config/arm/arm-tables.opt: Regenerate.
23170 * config/arm/arm-tune.md: Likewise.
23171 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23172
23173 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23174
23175 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23176 * config/aarch64/aarch64-tune.md: Regenerate.
23177 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23178
23179 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23180
23181 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23182 (neoversen1_tunings): ... This.
23183 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23184 (neoverse-n1): New CPU.
23185 * config/aarch64/aarch64-tune.md: Regenerate.
23186 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23187
23188 2019-02-22 Richard Biener <rguenther@suse.de>
23189
23190 PR middle-end/87609
23191 * cfghooks.h (dependence_hash): New typedef.
23192 (struct copy_bb_data): New type.
23193 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23194 (duplicate_block): Likewise.
23195 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23196 (copy_bbs): Create and pass down copy_bb_data.
23197 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23198 (rtl_duplicate_bb): Likewise.
23199 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23200 remap dependence info.
23201
23202 2019-02-22 Richard Biener <rguenther@suse.de>
23203
23204 PR tree-optimization/87609
23205 * tree-core.h (tree_base): Document special clique values.
23206 * tree-inline.c (remap_dependence_clique): Do not use the
23207 special clique value of one.
23208 (maybe_set_dependence_info): Use clique one.
23209 (clear_dependence_clique): New callback.
23210 (compute_dependence_clique): Clear clique one from all refs
23211 before assigning it (again).
23212
23213 2019-02-21 Martin Sebor <msebor@redhat.com>
23214
23215 * doc/extend.texi (__clear_cache): Correct signature.
23216
23217 2019-02-21 Ian Lance Taylor <iant@golang.org>
23218
23219 PR go/89170
23220 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23221 than output_constant_def.
23222 (add_constant_to_table): New static function.
23223 (output_constant_def): Call add_constant_to_table.
23224 (tree_output_constant_def): Likewise.
23225
23226 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23227
23228 PR c++/89285
23229 * builtins.c (fold_builtin_arith_overflow): If first two args are
23230 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23231 to ifn.
23232
23233 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23234
23235 PR target/87412
23236 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23237 error for -mindirect-branch/-mfunction-return with incompatible
23238 -fcf-protection.
23239
23240 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23241
23242 PR bootstrap/88714
23243 * constraints.md (q): Remove.
23244 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23245 instead of q.
23246
23247 2019-02-21 Martin Jambor <mjambor@suse.cz>
23248
23249 PR hsa/89302
23250 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23251 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23252 (omp_adjust_for_condition): ...here. Added necessary parameters.
23253 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23254 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23255 proper values to new parameters of omp_adjust_for_condition.
23256
23257 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23258
23259 PR middle-end/89412
23260 * expr.c (expand_assignment): If result is a MEM, use change_address
23261 instead of simplify_gen_subreg.
23262
23263 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23264 David Malcolm <dmalcolm@redhat.com>
23265
23266 PR middle-end/89091
23267 * fold-const.c (decode_field_reference): Return NULL_TREE if
23268 lang_hooks.types.type_for_size returns NULL. Check it before
23269 overwriting *exp_. Use return NULL_TREE instead of return 0.
23270
23271 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23272
23273 PR middle-end/88074
23274 PR middle-end/89415
23275 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23276 buggy mpc_norm.
23277
23278 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23279
23280 PR target/89397
23281 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23282 TARGET_SSE in addition to TARGET_SSE_MATH.
23283
23284 (ix86_excess_precision): Ditto.
23285 (ix86_float_exceptions_rounding_supported_p): Ditto.
23286 (use_rsqrt_p): Ditto.
23287 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23288
23289 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23290
23291 PR c/89410
23292 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23293 linenum_arith_t when determining if two adjacent line spans are
23294 close enough to merge.
23295 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23296 lines within each line_span.
23297
23298 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23299
23300 PR target/86487
23301 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23302 paradoxical SUBREGS.
23303
23304 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23305
23306 PR target/88100
23307 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23308 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23309 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23310 range checking it.
23311
23312 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23313
23314 * config/gcn/gcn.c (print_operand): Fix typo.
23315
23316 2019-02-19 Richard Biener <rguenther@suse.de>
23317
23318 PR middle-end/88074
23319 * toplev.c (do_compile): Initialize mpfr's exponent range
23320 based on available float modes.
23321
23322 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23323
23324 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23325 as long as the epilogue isn't completed.
23326
23327 2019-02-18 Martin Sebor <msebor@redhat.com>
23328
23329 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23330 __has_cpp_attribute, and __has_include.
23331
23332 2019-02-18 Martin Sebor <msebor@redhat.com>
23333
23334 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23335
23336 2019-02-18 Martin Sebor <msebor@redhat.com>
23337
23338 PR middle-end/89294
23339 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23340 expression.
23341 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23342
23343 2019-02-18 Richard Biener <rguenther@suse.de>
23344
23345 PR tree-optimization/89296
23346 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23347 of no-warning flag to cases that might emit the bogus warning.
23348
23349 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23350
23351 PR bootstrap/88714
23352 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23353 "q" constraint.
23354 * config/arm/vfp.md (*movdi_vfp): Likewise.
23355 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23356 "q" constraint for operands[0].
23357
23358 PR target/89369
23359 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23360 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23361 pattern in a temporary buffer.
23362 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23363 than 64-operands[2].
23364
23365 PR target/89361
23366 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23367 s390_indirect_branch_settings): Define unconditionally.
23368 (s390_set_current_function): Likewise, but guard the whole body except
23369 the s390_indirect_branch_settings call with
23370 #if S390_USE_TARGET_ATTRIBUTE.
23371 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23372
23373 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23374 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23375 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23376 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23377 HOST_WIDE_INT_1U instead of 1ULL.
23378 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23379 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23380 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23381 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23382 instead of 1UL.
23383 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23384 instead of 1ul.
23385
23386 2019-02-18 Martin Jambor <mjambor@suse.cz>
23387
23388 PR tree-optimization/89209
23389 * tree-sra.c (create_access_replacement): New optional parameter
23390 reg_tree. Use it as a type if non-NULL and access type is not of
23391 a register type.
23392 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23393 to create_access_replacement.
23394 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23395 Check lacc is non-NULL before attempting to re-create it on the RHS.
23396
23397 2019-02-18 Martin Liska <mliska@suse.cz>
23398
23399 PR ipa/89306
23400 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23401 by default.
23402 (symbol_table::free_edge): Recycle m_summary_id.
23403 * cgraph.h (get_summary_id): New.
23404 (symbol_table::release_symbol): Set m_summary_id to -1
23405 by default.
23406 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23407 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23408 function_summary to fast_function_summary.
23409 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23410 * ipa-pure-const.c (class funct_state_summary_t):
23411 Switch from function_summary to fast_function_summary.
23412 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23413 (class ipa_ref_opt_summary_t): Switch from function_summary
23414 to fast_function_summary.
23415 * symbol-summary.h (class function_summary_base): New class
23416 that is created from base of former function_summary.
23417 (function_summary_base::unregister_hooks): New.
23418 (class function_summary): Inherit from function_summary_base.
23419 (class call_summary_base): New class
23420 that is created from base of former call_summary.
23421 (class call_summary): Inherit from call_summary_base.
23422 (struct is_same): New.
23423 (class fast_function_summary): New summary class.
23424 (class fast_call_summary): New summary class.
23425 * vec.h (vec_safe_grow_cleared): New function.
23426
23427 2019-02-18 Martin Liska <mliska@suse.cz>
23428
23429 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23430 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23431 * doc/tm.texi: Document new target hook.
23432 * doc/tm.texi.in: Likewise.
23433 * target.def: Add new target macro.
23434 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23435 suffixes.
23436
23437 2019-02-17 Alan Modra <amodra@gmail.com>
23438
23439 PR target/89271
23440 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23441 output reg on add insn.
23442 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23443
23444 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23445
23446 PR target/89372
23447 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23448 (PMULHRSW): Likewise.
23449 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23450 TARGET_AVX2.
23451 (ssse3_pmulhrswv4hi3): New expander.
23452
23453 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23454
23455 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23456 MMX. Add isa attribute.
23457
23458 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23459
23460 PR rtl-optimization/66152
23461 * builtins.h (c_readstr): Declare.
23462 * builtins.c (c_readstr): Remove forward declaration. Add
23463 null_terminated_p argument, if false, read all bytes from the
23464 string instead of stopping after '\0'.
23465 * expr.c (string_cst_read_str): New function.
23466 (store_expr): Use string_cst_read_str instead of
23467 builtin_strncpy_read_str. Try to store by pieces the whole
23468 exp_len first, and only if that fails, split it up into
23469 store by pieces followed by clear_storage. Formatting fix.
23470
23471 * config/i386/i386.md (*movqi_internal): Remove static from
23472 buf variable. Use output_asm_insn (buf, operands); return "";
23473 instead of return buf;.
23474 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23475 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23476 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23477
23478 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23479
23480 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23481 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23482 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23483 (CC1_SPEC): Likewise.
23484 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23485
23486 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23487
23488 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23489 the base address on 64-bit strict-alignment platforms.
23490
23491 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23492
23493 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23494
23495 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23496
23497 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23498
23499 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23500
23501 PR rtl-optimization/88308
23502 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23503 on copied instruction.
23504
23505 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23506
23507 * final.c (insn_current_reference_address): Replace test on JUMP_P
23508 with test on jump_to_label_p.
23509 * config/visium/visium-passes.def: New file.
23510 * config/visium/t-visium (PASSES_EXTRA): Define.
23511 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23512 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23513 (TRAMPOLINE_ALIGNMENT): Define.
23514 * config/visium/visium.c (visium_option_override): Do not register
23515 the machine-specific reorg pass here.
23516 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23517 for the GR6.
23518 (output_branch): Adjust threshold for long branch instruction.
23519 * config/visium/visium.md (cpu): Move around.
23520 (length): Adjust for the GR6.
23521
23522 2019-02-15 Richard Biener <rguenther@suse.de>
23523 Jakub Jelinek <jakub@redhat.com>
23524
23525 PR tree-optimization/89278
23526 * tree-loop-distribution.c: Include tree-eh.h.
23527 (generate_memset_builtin, generate_memcpy_builtin): Call
23528 rewrite_to_non_trapping_overflow on builtin->size before passing it
23529 to force_gimple_operand_gsi.
23530
23531 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23532
23533 PR other/89342
23534 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23535 optimize_debug.
23536 * opth-gen.awk: Likewise.
23537
23538 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23539
23540 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23541 Enable MMX, SSE and SSE2 by default.
23542 * config/i386/i386.c (ix86_option_override_internal): Do not
23543 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23544
23545 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23546
23547 PR rtl-optimization/89354
23548 * combine.c (make_extraction): Punt if extraction_mode is narrower
23549 than len bits.
23550
23551 2019-02-14 Maya Rashish <coypu@sdf.org>
23552
23553 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23554 * config/netbsd-d.c: New file.
23555 * config/t-netbsd: Add netbsd-d.o
23556
23557 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23558
23559 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23560 affects_type_identity to true for aarch64_vector_pcs.
23561 (aarch64_comp_type_attributes): New function.
23562 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23563
23564 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23565
23566 PR target/88850
23567 * config/arm/iterators.md (ANY64): Add V4HF.
23568
23569 2019-02-14 Martin Liska <mliska@suse.cz>
23570
23571 PR rtl-optimization/89242
23572 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23573 process a transformation.
23574
23575 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23576
23577 PR tree-optimization/89314
23578 * fold-const.c (fold_binary_loc): Cast strlen argument to
23579 const char * before dereferencing it. Formatting fixes.
23580
23581 PR middle-end/89284
23582 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23583
23584 2019-02-13 Ian Lance Taylor <iant@golang.org>
23585
23586 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23587 and set current index for other optimizations.
23588
23589 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23590
23591 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23592 nonimmediate_operand as operand 2 predicate.
23593 (vec_set<VF2_512_256:mode>_0): Ditto.
23594 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23595 (*vec_concatv2si): Remove alternative 2.
23596 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23597 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23598 (vec_concatv2di): Split alternatives 4,5,6 to ...
23599 (*vec_concatv2di_0) ... new pattern.
23600
23601 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23602
23603 PR target/89190
23604 * config/arm/arm.c (ldm_stm_operation_p) Set
23605 addr_reg_in_reglist correctly for first register.
23606 (load_multiple_sequence): Remove dead base check.
23607 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23608
23609 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23610
23611 PR target/88847
23612 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23613 Expose as @aarch64_pred_mov.
23614 * config/aarch64/aarch64.c (aarch64_classify_address):
23615 Use expand_insn which legitimizes operands.
23616
23617 2019-02-13 Martin Liska <mliska@suse.cz>
23618
23619 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23620 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23621 and pointer_offset fields.
23622 (initialize_argument_information): Remove usage of dead
23623 fields.
23624 * cgraph.h (struct cgraph_thunk_info): Remove
23625 add_pointer_bounds_args.
23626 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23627 fields.
23628 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23629 fields.
23630 * config/i386/i386.c (ix86_function_arg_advance): Remove
23631 unrelated comment.
23632 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23633 (def_builtin): Remove usage of dead fields.
23634 (ix86_add_new_builtins): Likewise.
23635 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23636 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23637 (sem_function::init): Likewise.
23638 (sem_variable::merge): Likewise.
23639 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23640 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23641 * lto-cgraph.c (lto_output_node): Likewise.
23642 (lto_output_varpool_node): Likewise.
23643 (input_node): Likewise.
23644 (input_varpool_node): Likewise.
23645 * lto-streamer-out.c (lto_output): Likewise.
23646 * tree-inline.c (expand_call_inline): Remove usage of
23647 assign_stmts.
23648 * tree-inline.h (struct copy_body_data): Likewise.
23649 * varpool.c (varpool_node::dump): Likewise.
23650
23651 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23652
23653 PR middle-end/89303
23654 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23655 into pt->vars_contains_escaped_heap instead of setting
23656 pt->vars_contains_escaped_heap to it.
23657
23658 PR middle-end/89281
23659 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23660 INTVAL (size), compare it to GET_MODE_MASK instead of
23661 1 << GET_MODE_BITSIZE.
23662
23663 PR target/89290
23664 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23665 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23666 -mcmodel=large.
23667
23668 2019-02-13 Martin Liska <mliska@suse.cz>
23669
23670 PR lto/88858
23671 * cfgrtl.c (remove_barriers_from_footer): New function.
23672 (try_redirect_by_replacing_jump): Use it.
23673 (cfg_layout_redirect_edge_and_branch): Likewise.
23674
23675 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23676
23677 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23678 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23679 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23680 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23681 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23682 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23683 New BU_CRYPTO_2.
23684 * config/rs6000/rs6000.c (builtin_function_type)
23685 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23686 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23687 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23688 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23689 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23690
23691 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23692
23693 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23694 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23695
23696 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23697
23698 PR target/89229
23699 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23700 268678 and revision 268657.
23701 (*movti_internal): Likewise.
23702
23703 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23704
23705 PR target/89233
23706 * config/s390/s390.c (s390_decompose_address): Update comment.
23707 (s390_check_qrst_address): Reject invalid address forms after
23708 LRA.
23709
23710 2019-02-12 Martin Liska <mliska@suse.cz>
23711
23712 PR lto/88876
23713 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23714 we need default values of funct_state for a function that
23715 is not optimized.
23716
23717 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23718
23719 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23720 the object to pick the size of stores on strict-alignment platforms.
23721
23722 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23723 (*movdi_insn_sp32): Likewise.
23724 (*movdi_insn_sp64): Likewise.
23725
23726 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23727
23728 PR lto/88677
23729 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23730 types that needs constructiong.
23731 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23732
23733 2019-02-12 Richard Biener <rguenther@suse.de>
23734
23735 PR tree-optimization/89253
23736 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23737 duplicate the loop.
23738
23739 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23740
23741 PR lto/88147
23742 * input.c (selftest::test_line_offset_overflow): New selftest.
23743 (selftest::input_c_tests): Call it.
23744
23745 2019-02-11 Martin Sebor <msebor@redhat.com>
23746
23747 PR tree-optimization/88771
23748 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23749 when -Wstringop-overflow is set.
23750 (builtin_memref::builtin_memref): Adjust excessive upper bound
23751 only when lower bound is not excessive.
23752 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23753 -Wstringop-ovefflow.
23754 (maybe_diag_offset_bounds): Rename...
23755 (maybe_diag_access_bounds): ...to this.
23756 (check_bounds_or_overlap): Adjust for name change above.
23757
23758 2019-02-11 Martin Sebor <msebor@redhat.com>
23759
23760 PR c++/87996
23761 * builtins.c (max_object_size): Move from here...
23762 * builtins.h (max_object_size): ...and here...
23763 * tree.c (max_object_size): ...to here...
23764 * tree.h (max_object_size): ...and here.
23765
23766 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23767
23768 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23769 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23770 for correct semantics.
23771
23772 2019-02-11 Alan Modra <amodra@gmail.com>
23773
23774 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23775 -mlongcall and -mpltseq.
23776 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23777 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23778 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23779 * config/rs6000/sysv4.opt (mpltseq): New option.
23780 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23781 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23782 support is lacking. Don't allow -mpltseq with -mbss-plt.
23783 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23784 -mpltseq given for ELFv1.
23785 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23786 Only use UNSPEC_PLTSEQ for inline PLT calls.
23787 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23788 use UNSPEC_PLTSEQ for inline PLT calls.
23789 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23790 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23791 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23792 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23793 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23794 (pltseq_mtctr_<mode>): Likewise.
23795
23796 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23797
23798 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23799 Solaris ld.
23800 * configure: Regenerate.
23801
23802 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23803
23804 PR bootstrap/88714
23805 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23806 instead of r.
23807
23808 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23809
23810 * function.c (assign_parm_setup_block): Use the stored
23811 size, not the passed size, when allocating stack-space,
23812 also for a parameter with alignment larger than
23813 MAX_SUPPORTED_STACK_ALIGNMENT.
23814
23815 2019-02-11 Martin Liska <mliska@suse.cz>
23816
23817 PR ipa/89009
23818 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23819 * ipa-inline.c (inline_small_functions): Likewise.
23820 * ipa-pure-const.c (propagate_pure_const): Likewise.
23821 (propagate_nothrow): Likewise.
23822 * ipa-reference.c (propagate): Likewise.
23823 * ipa-utils.c (struct searchc_env): Remove unused field.
23824 (searchc): Always search across AVAIL_INTERPOSABLE.
23825 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23826 the only called IPA pure const can properly not propagate
23827 across interposable boundary.
23828 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23829
23830 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23831
23832 * config/nds32/nds32.md (call_internal, call_value_internal,
23833 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23834
23835 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23836
23837 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23838 typo.
23839
23840 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23841
23842 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23843 in comments
23844
23845 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23846
23847 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23848
23849 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23850
23851 PR tree-optimization/89268
23852 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23853 if preds is non-NULL.
23854
23855 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23856
23857 PR lto/89272
23858 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23859 polymorphic types.
23860
23861 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23862
23863 * config/nds32/nds32.md (trap): New pattern.
23864
23865 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23866
23867 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23868 dwarf span.
23869
23870 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23871
23872 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23873 to split POST_INC.
23874
23875 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23876
23877 * ipa-visibility.c (localize_node): Also do not localize
23878 LDPR_PREVAILING_DEF_IRONLY_EXP.
23879
23880 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23881
23882 PR lto/87957
23883 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23884 instead of type_with_linkage.
23885
23886 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23887
23888 PR ipa/88755
23889 * params.def (uninlined-function-insns, uninlined-function-time,
23890 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23891 bound so we don't get overflows.
23892
23893 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23894
23895 * config/rs6000/rs6000-string.c (expand_compare_loop,
23896 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23897 memcmp/strncmp.
23898
23899 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23900
23901 PR middle-end/89246
23902 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23903 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23904 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23905
23906 2019-02-09 Alan Modra <amodra@gmail.com>
23907
23908 PR target/88343
23909 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23910 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23911 setup.
23912
23913 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23914
23915 PR middle-end/88560
23916 * lra-constraints.c (process_alt_operands): Don't increase reject
23917 for memory when offset memory is required.
23918
23919 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23920
23921 * config/s390/vector.md: Implement vector copysign.
23922
23923 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23924
23925 * expr.c (expand_constructor): Correct indentations.
23926
23927 2019-02-08 Richard Biener <rguenther@suse.de>
23928
23929 PR tree-optimization/89247
23930 * tree-if-conv.c: Include tree-cfgcleanup.h.
23931 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23932 (tree_if_conversion): Pass through predicate vector.
23933 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23934 inline, see if any if-converted loops we refrece in
23935 LOOP_VECTORIZED calls vanished and fixup.
23936 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23937
23938 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23939
23940 * config/s390/constraints.md (jdd): New constraint.
23941
23942 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23943
23944 PR target/89229
23945 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23946 upper 16 vector registers without TARGET_AVX512VL.
23947 (*movti_internal): Likewise.
23948
23949 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23950
23951 PR rtl-optimization/89234
23952 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23953 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23954 (copy_reg_eh_region_note_backward): Likewise.
23955
23956 2019-02-08 Richard Biener <rguenther@suse.de>
23957
23958 PR middle-end/89223
23959 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23960 doesn't fit in HWI.
23961 (analyze_subscript_affine_affine): Handle failure from
23962 initialize_matrix_A.
23963
23964 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23965
23966 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23967 cfun everywhere.
23968
23969 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23970
23971 PR tree-optimization/86637
23972 PR tree-optimization/89235
23973 * tree-vect-loop.c (optimize_mask_stores): Add an
23974 auto_purge_vect_location sentinel to ensure that vect_location is
23975 purged on exit.
23976 * tree-vectorizer.c
23977 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23978 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23979 to ensure that vect_location is purged on exit.
23980 (pass_slp_vectorize::execute): Likewise, replacing the manual
23981 reset.
23982 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23983
23984 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23985
23986 * config/aarch64/iterators.md (max_opp): New code_attr.
23987 (USMAX): New code iterator.
23988 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23989 (aarch64_smax): Likewise.
23990 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23991 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23992 MINUS (MAX MIN).
23993
23994 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23995
23996 PR target/89229
23997 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23998 for TARGET_AVX512VL.
23999 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24000
24001 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24002
24003 * config/s390/s390-builtin-types.def: Add new types.
24004 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24005 (s390_vec_xlw4): Make the memory operand into a const pointer.
24006 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24007 float.
24008 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24009 a new vector type with the alignment of the scalar memory operand.
24010
24011 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24012 Jakub Jelinek <jakub@redhat.com>
24013
24014 PR bootstrap/88714
24015 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24016 arm_count_ldrdstrd_insns): New declarations.
24017 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24018 MINUS.
24019 (valid_operands_ldrd_strd): New function.
24020 (arm_count_ldrdstrd_insns): New function.
24021 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24022 sets instead of single DImode set and define new insns to match this.
24023
24024 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24025
24026 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24027 Make it a C initializer.
24028
24029 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24030
24031 PR/target 88850
24032 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24033
24034 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24035
24036 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24037 Use neon_dot<q> for type.
24038 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24039
24040 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24041
24042 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24043 Use neon_dot<q> for type.
24044 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24045 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24046
24047 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24048
24049 PR rtl-optimization/89225
24050 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24051 sizes check.
24052
24053 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24054
24055 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24056 after restoring registers saved to allocate the frame on Windows.
24057
24058 2019-02-06 Richard Biener <rguenther@suse.de>
24059
24060 PR tree-optimization/89182
24061 * graphite.h (cached_scalar_evolution_in_region): Declare.
24062 * graphite.c (struct seir_cache_key): New.
24063 (struct sese_scev_hash): Likewise.
24064 (seir_cache): New global.
24065 (cached_scalar_evolution_in_region): New function.
24066 (graphite_transform_loops): Allocate and release seir_cache.
24067 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24068 cached_scalar_evolution_in_region.
24069 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24070 Simplify.
24071 (scop_detection::graphite_can_represent_expr: Use
24072 cached_scalar_evolution_in_region.
24073 (scop_detection::stmt_simple_for_scop_p): Likewise.
24074 (find_params_in_bb): Likewise.
24075 (gather_bbs::before_dom_children): Likewise.
24076 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24077 (add_loop_constraints): Likewise.
24078
24079 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24080
24081 PR middle-end/89210
24082 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24083 operand to new_unary_operation only if both element types are integral
24084 and it isn't a widening conversion. Return NULL_TREE if
24085 new_unary_operation failed.
24086
24087 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24088
24089 PR target/88856
24090 * config/s390/s390.md: Remove load and test FP splitter.
24091
24092 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24093
24094 PR target/89112
24095 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24096 expand_compare_loop, expand_block_compare_gpr,
24097 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24098 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24099 #include "profile-count.h" and "predict.h" for types and functions
24100 needed to work with REG_BR_PROB notes.
24101
24102 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24103
24104 PR target/89112
24105 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24106 for the long branch case.
24107
24108 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24109
24110 PR target/89188
24111 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24112 can throw, non-call exceptions are enabled and we can't delete
24113 dead exceptions or alter cfg. Set must_clean if
24114 delete_insn_and_edges returns true, don't set it blindly for calls.
24115 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24116
24117 PR rtl-optimization/89195
24118 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24119 of the original MEM.
24120
24121 2019-02-05 Martin Liska <mliska@suse.cz>
24122
24123 PR gcov-profile/89000
24124 * gcov.c (function_summary): Remove argument.
24125 (file_summary): New function.
24126 (print_usage): Replace tabs with spaces.
24127 (generate_results): Use new function file_summary.
24128
24129 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24130
24131 PR target/89186
24132 * optabs.c (prepare_cmp_insn): Pass x and y to
24133 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24134
24135 2019-02-05 Richard Biener <rguenther@suse.de>
24136
24137 PR middle-end/89150
24138 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24139 (struct bitmap_element): Drop chain_prev so we properly recurse on
24140 the prev member, supporting tree views.
24141 (struct bitmap_head): GTY skip the obstack member.
24142
24143 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24144
24145 PR c/88698
24146 * doc/extend.texi (Vector Extensions): Add an example of using vector
24147 types together with x86 intrinsics.
24148
24149 2019-02-04 Alan Modra <amodra@gmail.com>
24150
24151 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24152 str[] size to 160, and comment.
24153
24154 2019-02-04 Alan Modra <amodra@gmail.com>
24155
24156 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24157 (rs6000_pltseq_template): Guard output of TLS markers with
24158 TARGET_TLS_MARKERS.
24159 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24160 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24161 to use inline PLT sequences.
24162 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24163 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24164 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24165
24166 2019-02-04 Martin Liska <mliska@suse.cz>
24167
24168 PR ipa/88985
24169 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24170 out when ipa_fn_summaries does not contain entry for callee.
24171
24172 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24173
24174 * config/sparc/sparc.h: Remove superfluous blank lines.
24175 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24176 (got_register_rtx): ...this.
24177 (sparc_got): Adjust to above renaming.
24178 (sparc_tls_got): Likewise.
24179 (sparc_delegitimize_address): Likewise.
24180 (sparc_output_mi_thunk): Likewise.
24181 (sparc_init_pic_reg): Likewise.
24182 (save_local_or_in_reg_p): Fix test on the GOT register.
24183 (USE_HIDDEN_LINKONCE): Move around.
24184 (get_pc_thunk_name): Likewise.
24185 (gen_load_pcrel_sym): Likewise.
24186 (load_got_register): Likewise.
24187
24188 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24189
24190 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24191 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24192
24193 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24194
24195 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24196 into consideration.
24197
24198 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24199
24200 * config.gcc (with_nds32_lib, glibc):
24201 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24202 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24203 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24204
24205 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24206
24207 PR target/89071
24208 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24209 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24210 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24211 (*rcpsf2_sse): Ditto.
24212 (*rsqrtsf2_sse): Ditto.
24213 (sse4_1_round<mode<2): Ditto.
24214
24215 2019-02-03 Richard Biener <rguenther@suse.de>
24216
24217 PR debug/87295
24218 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24219 orig.
24220
24221 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24222
24223 PR middle-end/87887
24224 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24225 Punt with warning on aggregate return or argument types. Ignore
24226 type/mode checking for uniform arguments.
24227
24228 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24229
24230 * combine.c (try_combine): Do not print "Can't combine" messages unless
24231 printing failed combination attempts.
24232
24233 2019-02-01 Martin Jambor <mjambor@suse.cz>
24234
24235 PR hsa/87863
24236 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24237 segment and global segment variables before making them static.
24238
24239 2019-02-01 Martin Jambor <mjambor@suse.cz>
24240
24241 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24242 missed optimization dump with dump_enabled_p.
24243
24244 2019-02-01 Richard Biener <rguenther@suse.de>
24245
24246 PR middle-end/88597
24247 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24248 the instantiate cache.
24249 (instantiate_scev_binary): Elide second operand procesing
24250 if equal to the first.
24251 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24252 (chrec_contains_undetermined): Likewise.
24253 (tree_contains_chrecs): Likewise.
24254
24255 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24256
24257 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24258
24259 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24260
24261 PR tree-optimization/89143
24262 * wide-int-range.h (wide_int_range_absu): Declare.
24263 * wide-int-range.cc (wide_int_range_absu): New function.
24264 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24265
24266 PR tree-optimization/88107
24267 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24268 instead of assertion that eh_region_outermost is non-NULL, if it
24269 is NULL, set *ALL to true and return NULL.
24270 (move_sese_region_to_fn): Adjust caller, if all is set, call
24271 duplicate_eh_regions with NULL region.
24272
24273 2019-02-01 Richard Biener <rguenth@suse.de>
24274
24275 PR rtl-optimization/88593
24276 * mode-switching.c (optimize_mode_switching): Free dominators before
24277 calling cleanup_cfg.
24278
24279 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24280
24281 PR tree-optimization/88932
24282 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24283
24284 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24285
24286 PR middle-end/89137
24287 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24288 bogus clang warning.
24289
24290 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24291
24292 PR target/89071
24293 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24294 alternative to avoid partial SSE register stall for TARGET_AVX.
24295 (truncdfsf2): Ditto.
24296 (sse4_1_round<mode>2): Ditto.
24297
24298 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24299
24300 PR tree-optimization/89008
24301 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24302 process anything of the form X * 0.
24303
24304 2019-01-31 Richard Biener <rguenther@suse.de>
24305
24306 PR tree-optimization/89135
24307 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24308 with abnormal preds.
24309
24310 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24311
24312 PR sanitizer/89124
24313 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24314 always_inline callees into no_sanitize_address callers.
24315
24316 2019-01-31 Richard Biener <rguenther@suse.de>
24317
24318 PR rtl-optimization/89115
24319 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24320
24321 2019-01-30 Martin Sebor <msebor@redhat.com>
24322
24323 PR other/89106
24324 * doc/extend.texi (cast to a union): Correct and expand.
24325
24326 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24327
24328 PR rtl-optimization/87246
24329 * lra-constraints.c (simplify_operand_subreg): Reload memory
24330 in subreg if the address became invalid.
24331
24332 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24333
24334 PR target/87064
24335 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24336 Disable for little-endian.
24337
24338 2019-01-30 Richard Biener <rguenther@suse.de>
24339
24340 PR rtl-optimization/89115
24341 * opts.c (default_options_optimization): Reduce
24342 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24343 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24344 to the default.
24345
24346 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24347
24348 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24349 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24350 type of vector element when vec_extract is implemented by direct
24351 move.
24352
24353 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24354
24355 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24356
24357 2019-01-30 Richard Biener <rguenther@suse.de>
24358
24359 PR tree-optimization/89111
24360 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24361 canonicalization to appropriately sized access types.
24362
24363 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24364
24365 PR c++/89105
24366 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24367 for arguments to functions that are TU-local and shouldn't be
24368 referenced by assembly.
24369
24370 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24371
24372 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24373 after '='.
24374
24375 2019-01-29 Martin Sebor <msebor@redhat.com>
24376
24377 PR c/88956
24378 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24379
24380 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24381
24382 PR c++/66676
24383 PR ipa/89104
24384 * omp-simd-clone.c (simd_clone_clauses_extract)
24385 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24386 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24387
24388 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24389
24390 * config.gcc: Force .init_array for ARC.
24391
24392 2019-01-29 Richard Biener <rguenther@suse.de>
24393
24394 PR debug/87295
24395 * dwarf2out.c (collect_skeleton_dies): New helper.
24396 (copy_decls_for_unworthy_types): Call it.
24397 (build_abbrev_table): Assert we do not try to replace
24398 DW_AT_signature refs with local refs.
24399
24400 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24401
24402 PR middle-end/89002
24403 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24404 for lastprivate/linear IV, push gimplify context around gimplify_assign
24405 and, if it needed any temporaries, pop it into a gimple bind around the
24406 sequence.
24407
24408 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24409
24410 * common.opt (-Wattribute-alias): Remove "no-" from name.
24411 Make -Wattribute-alias command line option and
24412 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24413
24414 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24415
24416 PR target/89073
24417 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24418 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24419 x86 ISA options.
24420 (bmi2): Add missing @opindex.
24421 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24422 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24423 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24424 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24425 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24426 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24427 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24428 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24429 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24430 xsavec, xsaveopt and xsaves options.
24431
24432 2019-01-28 Richard Biener <rguenther@suse.de>
24433
24434 PR debug/89076
24435 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24436 support removal.
24437
24438 2019-01-28 Richard Biener <rguenther@suse.de>
24439
24440 PR tree-optimization/88739
24441 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24442 BIT_FIELD_REFs only are applied to mode-precision operands
24443 when they are integral.
24444 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24446 BIT_FIELD_REFs of non-mode-precision integral operands.
24447
24448 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24449
24450 PR target/87214
24451 * config/i386/sse.md
24452 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24453 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24454 first constants in pairs are multiples of 2. Formatting fixes.
24455 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24456 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24457 first constants in each quadruple are multiples of 4. Formatting fixes.
24458
24459 2019-01-26 Martin Jambor <mjambor@suse.cz>
24460
24461 PR ipa/88933
24462 * tree-inline.c: Include tree-cfgcleanup.h.
24463 (delete_unreachable_blocks_update_callgraph): Move...
24464 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24465 ...here, make externally visible, make second argument bool, adjust
24466 all callers.
24467 * tree-cfgcleanup.c: Include cgraph.h.
24468 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24469 Declare.
24470 * ipa-prop.c: Include tree-cfgcleanup.h.
24471 (ipcp_transform_function): Call
24472 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24473
24474 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24475
24476 PR rtl-optimization/88846
24477 * ira.c (process_set_for_memref_referenced_p): New.
24478 (memref_referenced_p): Add new param. Use
24479 process_set_for_memref_referenced_p. Add new switch cases.
24480 (memref_used_between_p): Pass new arg to memref_referenced_p.
24481
24482 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24483
24484 PR target/88469
24485 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24486 argument ABI_BREAK. Set to true if the calculated alignment has
24487 changed in gcc-9. Check bit-fields for their base type alignment.
24488 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24489 (aarch64_function_arg_boundary): Likewise.
24490 (aarch64_gimplify_va_arg_expr): Likewise.
24491
24492 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24493
24494 PR middle-end/89037
24495 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24496 instead of accessing TREE_INT_CST_ELT directly.
24497
24498 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24499
24500 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24501 fenv_exceptions description.
24502
24503 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24504
24505 PR rtl-optimization/87763
24506 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24507 Allow SUBREG when matching CC_NZmode compare.
24508
24509 2019-01-25 Richard Biener <rguenther@suse.de>
24510
24511 PR tree-optimization/89049
24512 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24513 Look at the pattern stmt to determine if the stmt is vectorized.
24514
24515 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24516
24517 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24518 (pred_mov<mode>): Handle all-register forms using both a new
24519 alternative and a split.
24520
24521 2019-01-25 Richard Biener <rguenther@suse.de>
24522
24523 PR tree-optimization/86865
24524 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24525 Reject non-do-while loops.
24526
24527 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24528
24529 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24530 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24531 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24532 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24533 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24534 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24535 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24536 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24537 vlogical_operand, gpc_reg_operand, int_reg_operand,
24538 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24539 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24540 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24541 (save_world_operation, restore_world_operation, lmw_operation,
24542 stmw_operation): Use MEM_P and REG_P.
24543 (tie_operand): Use MEM_P.
24544 (vrsave_operation, crsave_operation): Use REG_P.
24545 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24546 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24547 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24548 (call_operand): Use HARD_REGISTER_P.
24549 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24550 Use CONST_INT_P.
24551 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24552 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24553 quad_aligned_load_p, replace_swapped_aligned_store,
24554 recombine_lvx_pattern, replace_swapped_aligned_load,
24555 recombine_stvx_pattern): Use MEM_P.
24556 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24557 Use MEM_P and SYMBOL_REF_P.
24558 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24559 (insn_is_swappable_p): Use REG_P and MEM_P.
24560 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24561 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24562 Use CONST_INT_P.
24563 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24564 Use CONST_DOUBLE_P.
24565 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24566 CONST_WIDE_INT_P.
24567 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24568 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24569 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24570 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24571 reg_or_subregno:
24572 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24573 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24574 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24575 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24576 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24577 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24578 rs6000_split_logical_di): Use CONST_INT_P.
24579 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24580 REG_P and SYMBOL_REF_P.
24581 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24582 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24583 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24584 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24585 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24586 (small_data_operand, print_operand_address): Use CONST_INT_P and
24587 SYMBOL_REF_P.
24588 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24589 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24590 Use HARD_REGISTER_NUM_P.
24591 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24592 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24593 SUBREG_P and SYMBOL_REF_P.
24594 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24595 and HARD_REGISTER_NUM_P.
24596 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24597 reg_or_subregno.
24598 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24599 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24600 MEM_P and REG_P.
24601 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24602 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24603 find_addr_reg): Use REG_P.
24604 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24605 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24606 (offsettable_ok_by_alignment, constant_pool_expr_p,
24607 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24608 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24609 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24610 rs6000_assemble_integer, create_TOC_reference,
24611 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24612 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24613 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24614 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24615 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24616 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24617 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24618 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24619 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24620 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24621 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24622 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24623 and cbranch<mode>4): Use CONST_INT_P.
24624 (multiple define_splits): Use REG_P and SUBREG_P.
24625 (define_expands call, call_value): Use MEM_P.
24626 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24627 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24628 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24629 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24630 and HARD_REGISTER_NUM_P.
24631 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24632
24633 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24634
24635 PR rtl-optimization/88948
24636 * rtl.h (prepare_copy_insn): New prototype.
24637 * gcse.c (prepare_copy_insn): New function, split out from
24638 process_insert_insn.
24639 (process_insert_insn): Use prepare_copy_insn.
24640 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24641 instead of gen_move_insn.
24642
24643 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24644
24645 PR debug/89006
24646 * config/i386/i386.c (ix86_pic_register_p): Return true for
24647 UNSPEC_SET_GOT too.
24648
24649 PR tree-optimization/88964
24650 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24651 punt if HONOR_SNANS (chrec).
24652
24653 PR middle-end/89015
24654 * tree-nested.c (convert_nonlocal_reference_stmt,
24655 convert_local_reference_stmt, convert_tramp_reference_stmt,
24656 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24657 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24658 or GIMPLE_OMP_TASK.
24659
24660 PR tree-optimization/89027
24661 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24662 for "omp simd array" variables.
24663
24664 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24665
24666 PR target/88469
24667 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24668 force the alignment of m_val.
24669
24670 2019-01-24 Richard Biener <rguenther@suse.de>
24671
24672 PR lto/87187
24673 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24674 When in "legacy" debug mode make sure to reset self-origins.
24675
24676 2019-01-24 Martin Liska <mliska@suse.cz>
24677
24678 PR gcov-profile/88994
24679 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24680 result will be always smaller or equal to the original.
24681 * gcov.c (mangle_name): Fix else branch where we should
24682 also copy to PTR and shift the pointer.
24683
24684 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24685
24686 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24687 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24688
24689 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24690
24691 * common/config/i386/i386-common.c
24692 (OPTION_MASK_ISA_ENQCMD_SET,
24693 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24694 (ix86_handle_option): Handle -menqcmd.
24695 * config.gcc (enqcmdintrin.h): New header file.
24696 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24697 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24698 -menqcmd.
24699 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24700 function type.
24701 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24702 __builtin_ia32_enqcmds): New builtins.
24703 * config/i386/i386-c.c (__ENQCMD__): New macro.
24704 * config/i386/i386-option.c (ix86_target_string): Add
24705 -menqcmd.
24706 (ix86_valid_target_attribute_inner_p): Likewise.
24707 * config/i386/i386-expand.c
24708 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24709 IX86_BUILTIN_ENQCMDS.
24710 * config/i386/i386.h (TARGET_ENQCMD): New.
24711 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24712 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24713 (movdir64b_<mode>): Parameterize to enable share expansion code
24714 with ENQCMD in function ix86_expand_builtin.
24715 * config/i386/i386.opt: Add -menqcmd.
24716 * config/i386/immintrin.h: Include enqcmdintrin.h.
24717 * config/i386/enqcmdintrin.h: New intrinsic file.
24718 * doc/invoke.texi: Add -menqcmd.
24719
24720 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24721 Steve Ellcey <sellcey@marvell.com>
24722
24723 PR target/85711
24724 * recog.c (address_operand): Return false on wrong mode for address.
24725 (constrain_operands): Check for mode with 'p' constraint.
24726
24727 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24728
24729 PR target/88998
24730 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24731 Disparage MMX alternative.
24732 (sse2_cvtpd2pi): Ditto.
24733 (sse2_cvttpd2pi): Ditto.
24734
24735 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24736
24737 PR driver/89014
24738 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24739 use-after-free of the result of
24740 aarch64_get_extension_string_for_isa_flags.
24741
24742 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24743
24744 PR c/44715
24745 * doc/extend.texi: Document break and continue behavior in
24746 statement expressions.
24747
24748 2019-01-23 Richard Biener <rguenther@suse.de>
24749
24750 PR tree-optimization/89008
24751 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24752 not leave another stray operand.
24753
24754 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24755
24756 * BASE-VER: Bump to 9.0.1.
24757
24758 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24759
24760 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24761 thunk that returns by reference, use the type of the return object
24762 of the thunk instead of that of the alias to build the dereference.
24763
24764 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24765
24766 * config/arc/atomic.md: Add operand to DMB instruction.
24767
24768 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24769
24770 PR tree-optimization/88964
24771 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24772 build_zero_cst instead of build_int_cst. Return false for loop
24773 invariants which honor signed zeros.
24774
24775 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24776
24777 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24778
24779 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24780
24781 PR target/88965
24782 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24783 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24784 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24785
24786 PR middle-end/88968
24787 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24788 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24789
24790 PR target/87064
24791 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24792 Disable for little endian.
24793
24794 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24795
24796 PR target/88469
24797 * config/arm/arm.c (arm_needs_double_word_align): Check
24798 DECL_BIT_FIELD_TYPE.
24799
24800 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24801 H.J. Lu <hongjiu.lu@intel.com>
24802
24803 PR target/88909
24804 * config/i386/i386-builtin.def: Add mask2 to all builtin
24805 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24806 SPECIAL_ARGS.
24807 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24808 (BDESC_FIRST): Likewise.
24809 (define_builtin): Add an argument for mask2. Updated to handle
24810 both ix86_isa_flags and ix86_isa_flags2.
24811 (define_builtin_const): Likewise.
24812 (define_builtin_pure): Likewise.
24813 (define_builtin2): Deleted.
24814 (define_builtin_const2): Likewise.
24815 (builtin_description): Add a member, mask2.
24816 (bdesc_*): Add mask2 to builtin initializations.
24817 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24818 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24819 support.
24820 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24821
24822 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24823
24824 PR target/88954
24825 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24826 noplt attribute.
24827
24828 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24829
24830 PR target/88469
24831 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24832 alignment is dominated by a bitfield with 64-bit aligned base type.
24833 (arm_function_arg): Emit a warning if the alignment has changed since
24834 earlier GCC releases.
24835 (arm_function_arg_boundary): Likewise.
24836 (arm_setup_incoming_varargs): Likewise.
24837
24838 2019-01-22 Richard Biener <rguenther@suse.de>
24839
24840 PR tree-optimization/88862
24841 * graphite-scop-detection.c
24842 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24843
24844 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24845
24846 * doc/extend.tex (AMD GCN Function Attributes): New section.
24847 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24848 * doc/invoke.texi (AMD GCN Options): New section.
24849 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24850
24851 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24852
24853 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24854 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24855
24856 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24857
24858 PR tree-optimization/88044
24859 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24860 is false in the first iteration, but !every_iteration, return false
24861 instead of true with niter->niter zero.
24862
24863 PR rtl-optimization/88904
24864 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24865 any nonequal registers before processing BB_END (b).
24866
24867 PR target/88905
24868 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24869 GET_MODE (op0).
24870 (expand_binop_directly, expand_doubleword_clz,
24871 expand_doubleword_popcount, expand_ctz, expand_ffs,
24872 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24873
24874 PR rtl-optimization/49429
24875 PR target/49454
24876 PR rtl-optimization/86334
24877 PR target/88906
24878 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24879 addressable from here...
24880 (emit_block_op_via_libcall): ... to here.
24881
24882 2019-01-22 Richard Biener <rguenther@suse.de>
24883
24884 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24885 auto_vec for cost vector to fix memleak.
24886 (vectorize_fold_left_reduction): Properly gather SLP defs.
24887 (vectorizable_comparison): Do not swap operands to properly
24888 gather SLP defs.
24889
24890 2019-01-22 Alan Modra <amodra@gmail.com>
24891
24892 PR target/88614
24893 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24894 stays a reg. Allow a const_int.
24895 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24896 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24897 (IS_NOMARK_TLSGETADDR): Define.
24898 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24899 (rs6000_output_tlsargs): New function.
24900 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24901 __tls_get_addr call takes an arg.
24902 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24903 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24904 delete split..
24905 (call_value_nonlocal_sysv): ..or here, delete split.
24906 (tls_gdld_nomark): Delete.
24907 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24908 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24909 (call_value_nonlocal_sysv): Likewise.
24910 (call_value_nonlocal_sysv_secure): Likewise.
24911 (call_value_nonlocal_aix): Likewise.
24912 (call_value_indirect_aix): Likewise.
24913 (call_value_indirect_elfv2): Likewise.
24914 (call_value_local32, call_value_local64): Disable for no-mark tls.
24915 (call_value_local_aix): Likewise.
24916
24917 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24918
24919 PR target/88938
24920 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24921 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24922
24923 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24924
24925 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24926 string contents as hash_map keys.
24927
24928 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24929
24930 PR c/88928
24931 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24932 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24933 instead of TYPE_ALIGN.
24934 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24935 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24936 pointer from TYPE_STUB_DECL.
24937
24938 2019-01-21 Richard Biener <rguenther@suse.de>
24939
24940 PR tree-optimization/88934
24941 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24942 at the possibly non-constant operand.
24943 (vect_get_constant_vectors): Adjust.
24944
24945 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24946
24947 PR target/71659
24948 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24949 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24950 instead of _X86INTRIN_H_INCLUDED.
24951 * onfig/i386/clwbintrin.h: Likewise.
24952 * config/i386/pkuintrin.h: Likewise.
24953 * config/i386/prfchwintrin.h: Likewise.
24954 * config/i386/rdseedintrin.h: Likewise.
24955 * config/i386/wbnoinvdintrin.h: Likewise.
24956 * config/i386/xsavecintrin.h: Likewise.
24957 * config/i386/xsavesintrin.h: Likewise.
24958 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24959 * config/i386/xsaveintrin.h: Likewise.
24960 * config/i386/xsaveoptintrin.h: Likewise.
24961 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24962 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24963 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24964 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24965 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24966 * config/i386/immintrin.h: Here.
24967
24968 2019-01-20 Martin Jambor <mjambor@suse.cz>
24969
24970 PR ipa/87615
24971 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24972 with aa_walk_budget.
24973 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24974 aa_walk_budget_p parameter.
24975 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24976 walk. Updated all callers.
24977 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24978 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24979 unmodified_parm.
24980 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24981 parameter info. Extract info from fbi. Pass fbi to recursive calls
24982 and to unmodified_parm.
24983 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24984 info, updated call to will_be_nonconstant_expr_predicate.
24985 (param_change_prob): New parameter fbi, limit AA walking.
24986 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24987 calls to various above functions.
24988 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24989 parameter. Use it to limit AA walking.
24990 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24991 fbi, limit AA walk.
24992 (detect_type_change): New parameter fbi, pass it on to
24993 detect_type_change_from_memory_writes.
24994 (detect_type_change_ssa): Likewise.
24995 (aa_overwalked): Removed.
24996 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24997 accordingly, adjust to the neew AA limiting scheme.
24998 (parm_ref_data_preserved_p): Likewise.
24999 (ipa_compute_jump_functions_for_edge): Adjust call to
25000 get_dynamic_type.
25001 (ipa_analyze_call_uses): Likewise.
25002 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25003 (ipa_analyze_node): Initialize aa_walk_budget.
25004 (ipcp_transform_function): Likewise.
25005 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25006 to get_dynamic_type.
25007
25008 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25009
25010 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25011 outside of #if CHECKING_P code.
25012
25013 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25014
25015 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25016 New function, split out from...
25017 (loop_versioning::analyze_stride): ...here.
25018 (loop_versioning::find_per_loop_multiplication): Use gassign.
25019 (loop_versioning::analyze_term_using_scevs): Return a success code.
25020 (loop_versioning::analyze_arbitrary_term): New function.
25021 (loop_versioning::analyze_address_fragment): Use
25022 analyze_arbitrary_term if all else fails.
25023
25024 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25025
25026 PR target/88892
25027 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25028 operands.
25029
25030 2019-01-18 Richard Biener <rguenther@suse.de>
25031
25032 PR tree-optimization/88903
25033 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25034 scalar stmts a SLP shift amount is composed of when detecting
25035 shifts by scalars.
25036
25037 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25038
25039 PR target/88799
25040 * config/arm/arm-cpus.in (mp): New feature.
25041 (sec): New feature.
25042 (fgroup ARMv7ve): Add mp and sec features.
25043 (arch armv7-a): Add options to allow mp and sec extensions.
25044 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25045 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25046 extenstions to the base architecture.
25047 (cpu cortex-a8): Add sec extension to the base architecture.
25048 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25049 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25050 variants down to the base v7-a varaint.
25051 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25052 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25053 of permitted extensions for -march=armv7-a and for
25054 -mcpu=generic-armv7-a.
25055
25056 2019-01-18 Martin Liska <mliska@suse.cz>
25057
25058 * params.def: Fix comment.
25059 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25060 name.
25061 (gimple_gen_ic_func_profiler): Likewise.
25062
25063 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25064
25065 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25066 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25067 and put in error checks for stack protector guard options.
25068 (aarch64_stack_protect_guard): New.
25069 (TARGET_STACK_PROTECT_GUARD): Define.
25070 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25071 (reg_stack_protect_address<mode>): New.
25072 (stack_protect_set): Adjust for SSP_GLOBAL.
25073 (stack_protect_test): Likewise.
25074 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25075 (-mstack-protector-guard): Likewise.
25076 (-mstack-protector-guard-offset): Likewise.
25077
25078 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25079
25080 PR tree-optimization/86214
25081 * tree-inline.h (struct copy_body_data): Add
25082 add_clobbers_to_eh_landing_pads member.
25083 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25084 (copy_edges_for_bb): Call it if EH edge destination is <
25085 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25086 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25087 if flag_stack_reuse != SR_NONE and clear it afterwards.
25088
25089 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25090
25091 PR target/85596
25092 * doc/install.texi (with-multilib-list): Document for aarch64.
25093
25094 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25095
25096 PR target/88734
25097 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25098 (("..."))) with ("...").
25099
25100 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25101
25102 * doc/extend.texi (Built-in Functions for Memory Model Aware
25103 Atomic Operations): Document atomic fetch and nand.
25104
25105 2019-01-18 Martin Liska <mliska@suse.cz>
25106 Richard Biener <rguenther@suse.de>
25107
25108 PR middle-end/88587
25109 * cgraph.h (create_version_clone_with_body): Add new argument
25110 with attributes.
25111 * cgraphclones.c (cgraph_node::create_version_clone): Add
25112 DECL_ATTRIBUTES to a newly created decl. And call
25113 valid_attribute_p so that proper cl_target_optimization_node
25114 is set for the newly created declaration.
25115 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25116 for declaration.
25117 (expand_target_clones): Do not call valid_attribute_p, it must
25118 be already done.
25119 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25120 vector types.
25121
25122 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25123
25124 PR target/88734
25125 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25126 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25127 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25128
25129 2019-01-17 Martin Sebor <msebor@redhat.com>
25130
25131 PR middle-end/88273
25132 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25133 Handle anti-ranges the same as no range at all.
25134
25135 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25136
25137 * config/aarch64/aarch64.c (cgraph.h): New include.
25138 (intl.h): New include.
25139 (supported_simd_type): New function.
25140 (currently_supported_simd_type): Ditto.
25141 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25142 (aarch64_simd_clone_adjust): Ditto.
25143 (aarch64_simd_clone_usable): Ditto.
25144 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25145 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25146 (TARGET_SIMD_CLONE_USABLE): Ditto.
25147 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25148 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25149 call.
25150
25151 2019-01-17 Martin Sebor <msebor@redhat.com>
25152
25153 PR tree-optimization/88800
25154 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25155 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25156 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25157 redundant argument. Add new argument and issue diagnostics under
25158 its control. Detect out-of-bounds access even with warnings
25159 disabled.
25160 (check_bounds_or_overlap): Change return type. Add argument.
25161 (wrestrict_dom_walker::check_call): Adjust.
25162 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25163 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25164 check_bounds_or_overlap's return value.
25165 (handle_builtin_stxncpy): Same.
25166 (handle_builtin_strcat): Same.
25167
25168 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25169 Kwok Cheung Yeung <kcy@codesourcery.com>
25170 Julian Brown <julian@codesourcery.com>
25171 Tom de Vries <tom@codesourcery.com>
25172
25173 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25174
25175 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25176
25177 * doc/sourcebuild.texi: Document dg-require-effective-target
25178 llvm_binutils and offload_gcn.
25179
25180 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25181 Kwok Cheung Yeung <kcy@codesourcery.com>
25182 Julian Brown <julian@codesourcery.com>
25183 Tom de Vries <tom@codesourcery.com>
25184
25185 * doc/sourcebuild.texi: Document dg-required-effective-target
25186 exceptions.
25187
25188 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25189 Kwok Cheung Yeung <kcy@codesourcery.com>
25190 Julian Brown <julian@codesourcery.com>
25191 Tom de Vries <tom@codesourcery.com>
25192 Jan Hubicka <hubicka@ucw.cz>
25193 Martin Jambor <mjambor@suse.cz>
25194
25195 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25196 * configure.ac: Check for dlopen.
25197 * configure: Regenerate.
25198
25199 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25200 Kwok Cheung Yeung <kcy@codesourcery.com>
25201 Julian Brown <julian@codesourcery.com>
25202 Tom de Vries <tom@codesourcery.com>
25203 Jan Hubicka <hubicka@ucw.cz>
25204 Martin Jambor <mjambor@suse.cz>
25205
25206 * common/config/gcn/gcn-common.c: New file.
25207 * config/gcn/driver-gcn.c: New file.
25208 * config/gcn/gcn-builtins.def: New file.
25209 * config/gcn/gcn-hsa.h: New file.
25210 * config/gcn/gcn-modes.def: New file.
25211 * config/gcn/gcn-opts.h: New file.
25212 * config/gcn/gcn-passes.def: New file.
25213 * config/gcn/gcn-protos.h: New file.
25214 * config/gcn/gcn-run.c: New file.
25215 * config/gcn/gcn-tree.c: New file.
25216 * config/gcn/gcn.c: New file.
25217 * config/gcn/gcn.h: New file.
25218 * config/gcn/gcn.opt: New file.
25219 * config/gcn/t-gcn-hsa: New file.
25220
25221 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25222 Kwok Cheung Yeung <kcy@codesourcery.com>
25223 Julian Brown <julian@codesourcery.com>
25224 Tom de Vries <tom@codesourcery.com>
25225 Jan Hubicka <hubicka@ucw.cz>
25226 Martin Jambor <mjambor@suse.cz>
25227
25228 * config/gcn/constraints.md: New file.
25229 * config/gcn/gcn-valu.md: New file.
25230 * config/gcn/gcn.md: New file.
25231 * config/gcn/predicates.md: New file.
25232
25233 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25234
25235 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25236 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25237 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25238 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25239
25240 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25241
25242 PR target/88851
25243 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25244 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25245 it and document registers.
25246
25247 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25248
25249 * config/aarch64/aarch64.c (ares_tunings): Define.
25250 * config/aarch64/aarch64-cores.def (ares): Use the above.
25251
25252 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25253
25254 PR target/88794
25255 Revert:
25256 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25257
25258 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25259 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25260 (_mm512_maskz_fixupimm_round_pd): Ditto.
25261 (_mm512_fixupimm_round_ps): Ditto.
25262 (_mm512_maskz_fixupimm_round_ps): Ditto.
25263 (_mm_fixupimm_round_sd): Ditto.
25264 (_mm_maskz_fixupimm_round_sd): Ditto.
25265 (_mm_fixupimm_round_ss): Ditto.
25266 (_mm_maskz_fixupimm_round_ss): Ditto.
25267 (_mm512_fixupimm_pd): Ditto.
25268 (_mm512_maskz_fixupimm_pd): Ditto.
25269 (_mm512_fixupimm_ps): Ditto.
25270 (_mm512_maskz_fixupimm_ps): Ditto.
25271 (_mm_fixupimm_sd): Ditto.
25272 (_mm_maskz_fixupimm_sd): Ditto.
25273 (_mm_fixupimm_ss): Ditto.
25274 (_mm_maskz_fixupimm_ss): Ditto.
25275 (_mm512_mask_fixupimm_round_pd): Update builtin.
25276 (_mm512_mask_fixupimm_round_ps): Ditto.
25277 (_mm_mask_fixupimm_round_sd): Ditto.
25278 (_mm_mask_fixupimm_round_ss): Ditto.
25279 (_mm512_mask_fixupimm_pd): Ditto.
25280 (_mm512_mask_fixupimm_ps): Ditto.
25281 (_mm_mask_fixupimm_sd): Ditto.
25282 (_mm_mask_fixupimm_ss): Ditto.
25283 * config/i386/avx512vlintrin.h:
25284 (_mm256_fixupimm_pd): Update parameters and builtin.
25285 (_mm256_maskz_fixupimm_pd): Ditto.
25286 (_mm256_fixupimm_ps): Ditto.
25287 (_mm256_maskz_fixupimm_ps): Ditto.
25288 (_mm_fixupimm_pd): Ditto.
25289 (_mm_maskz_fixupimm_pd): Ditto.
25290 (_mm_fixupimm_ps): Ditto.
25291 (_mm_maskz_fixupimm_ps): Ditto.
25292 (_mm256_mask_fixupimm_pd): Update builtin.
25293 (_mm256_mask_fixupimm_ps): Ditto.
25294 (_mm_mask_fixupimm_pd): Ditto.
25295 (_mm_mask_fixupimm_ps): Ditto.
25296 * config/i386/i386-builtin-types.def: Add new types and remove
25297 useless ones.
25298 * config/i386/i386-builtin.def: Update builtin definitions.
25299 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25300 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25301 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25302 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25303 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25304 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25305 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25306 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25307 * config/i386/subst.md:
25308 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25309 (round_saeonly_sd_mask_op4): Ditto.
25310 (round_saeonly_expand_operand5): Ditto.
25311 (round_saeonly_expand): Update.
25312
25313 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25314
25315 PR target/88794
25316 Revert:
25317 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25318
25319 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25320 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25321 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25322 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25323 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25324 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25325 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25326
25327 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25328
25329 PR target/88794
25330 Revert:
25331 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25332
25333 PR target/88489
25334 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25335 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25336 instead of UNSPEC_FIXUPIMM.
25337
25338 2019-01-17 Richard Biener <rguenther@suse.de>
25339
25340 PR lto/86736
25341 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25342 and friends for the LTO part of debug info.
25343
25344 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25345
25346 PR tree-optimization/86214
25347 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25348 if x == y.
25349
25350 PR rtl-optimization/88870
25351 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25352 throw if we can't alter the cfg or delete dead exceptions.
25353 (mark_insn): Don't call find_call_stack_args for such calls.
25354
25355 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25356
25357 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25358 prototypes for vec_st.
25359 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25360 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25361 mainly on signed/unsigned long long and double.
25362
25363 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25364
25365 PR target/88861
25366 * combine.c (delete_noop_moves): Convert to "bool" return,
25367 returning true if any edges are eliminated.
25368 (combine_instructions): Also return true if delete_noop_moves
25369 returns true.
25370
25371 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25372
25373 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25374 correct max nunits for endian swap.
25375 (aarch64_expand_fcmla_builtin): Correct subreg code.
25376 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25377 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25378 lane endianness.
25379
25380 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25381
25382 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25383 Handle split indirect COMPLEX_TYPE arguments.
25384
25385 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25386
25387 PR target/86891
25388 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25389 bit is set by add and compare.
25390 (CC_ADC): New CC_MODE.
25391 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25392 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25393 comparison. Add detection for CC_ADCmode.
25394 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25395 CC_ADCmode.
25396 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25397 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25398 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25399 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25400 to eliminate the need for zero-extending the operands.
25401 (add<mode>3_compareC_imm): Delete. Merge into ...
25402 (add<mode>3_compareC): ... this. Restructure the comparison to
25403 eliminate the need for zero-extending the operands.
25404 (add<mode>3_carryin): Use LTU for the overflow detection.
25405 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25406 Reexpress comparison for overflow.
25407 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25408 (add<mode>3_carryinC): Likewise.
25409 (add<mode>3_carryinV): Use LTU for carry between partials.
25410 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25411 handling of CC_Cmode and add CC_ADCmode.
25412 (aarch64_borrow_operation): Likewise.
25413
25414 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25415
25416 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25417 Remove patternmode.
25418 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25419 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25420 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25421 Remove endianness conversion.
25422
25423 2019-01-16 Martin Liska <mliska@suse.cz>
25424
25425 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25426 for GCC driver.
25427 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25428 a new argument.
25429 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25430 (path_prefix_reset): Move up in the source file.
25431 (find_fortran_preinclude_file): Make complex search for the
25432 fortran header files.
25433
25434 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25435
25436 * godump.c (go_output_typedef): When outputting a typedef, refer
25437 to the underlying type by its name and not its structure.
25438
25439 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25440
25441 PR c++/88795
25442 * tree.c (build_function_type): Assert that arg_types is not
25443 error_mark_node.
25444
25445 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25446
25447 PR inline-asm/52813
25448 * doc/extend.texi: Document that listing the stack pointer in the
25449 clobber list of an asm is a deprecated feature.
25450 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25451 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25452 warning instead of an error for clobbers of the stack pointer.
25453 Add a note explaining why.
25454
25455 2019-01-15 Richard Biener <rguenther@suse.de>
25456
25457 PR debug/88046
25458 * dwarf2out.c (gen_member_die): Do not generate inheritance
25459 DIEs late.
25460
25461 2019-01-15 Richard Biener <rguenther@suse.de>
25462
25463 PR tree-optimization/88855
25464 * tree-if-conv.c (combine_blocks): Collect
25465 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25466
25467 2019-01-15 Tom de Vries <tdevries@suse.de>
25468
25469 PR target/80547
25470 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25471 lhs == NULL_TREE for gang-level reduction.
25472
25473 2019-01-15 Richard Biener <rguenther@suse.de>
25474 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25475
25476 PR ipa/88788
25477 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25478 return true if SSA_NAME is already marked in visited bitmap.
25479 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25480
25481 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25482
25483 PR tree-optimization/88775
25484 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25485 equal == 0 equality pointer comparisons some more if compared in
25486 integral types and either one points to an automatic var and the
25487 other to a global, or we can prove at least one points to the middle
25488 or both point to start or both point to end.
25489
25490 2019-01-14 Andi Kleen <ak@linux.intel.com>
25491
25492 * Makefile.in: Lower autofdo sampling rate by 10x.
25493 * Makefile.tpl: Dito.
25494
25495 2019-01-14 Tom Honermann <tom@honermann.net>
25496
25497 * defaults.h: Define CHAR8_TYPE.
25498
25499 2019-01-14 Martin Sebor <msebor@redhat.com>
25500
25501 PR target/88638
25502 * doc/extend.texi (Darwin Format Checks): Clarify.
25503
25504 2019-01-14 Richard Biener <rguenther@suse.de>
25505
25506 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25507 whether we are in (simplify ...) or (match ...) context.
25508
25509 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25510
25511 PR rtl-optimization/88796
25512 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25513 * cfgexpand.c (stack_protect_prologue): Initialize
25514 crtl->stack_protect_guard_decl.
25515 * function.c (stack_protect_epilogue): Use it instead of calling
25516 targetm.stack_protect_guard again.
25517 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25518 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25519 crtl->stack_protect_guard_decl.
25520 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25521 on the returned MEM_EXPR.
25522
25523 2019-01-12 Tom de Vries <tdevries@suse.de>
25524
25525 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25526 vector length using -fopenacc-dim.
25527
25528 2019-01-12 Tom de Vries <tdevries@suse.de>
25529
25530 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25531 lengths into account.
25532
25533 2019-01-12 Svante Signell <svante.signell@gmail.com>
25534
25535 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25536 (TARGET_CAN_SPLIT_STACK): Define.
25537 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25538
25539 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25540
25541 * params.def (inline-unit-growth): Set to 40.
25542
25543 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25544
25545 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25546
25547 2019-01-12 Tom de Vries <tdevries@suse.de>
25548
25549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25550 region calling vector-partitionable routine, set default_vector_length
25551 to WARP_SIZE.
25552
25553 2019-01-12 Tom de Vries <tdevries@suse.de>
25554
25555 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25556 variable default_vector_length.
25557
25558 2019-01-12 Tom de Vries <tdevries@suse.de>
25559
25560 PR middle-end/88703
25561 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25562 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25563 dimensions limits.
25564
25565 2019-01-12 Tom de Vries <tdevries@suse.de>
25566
25567 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25568 (nvptx_goacc_validate_dims): Add used parameter.
25569 * doc/tm.texi: Regenerate.
25570 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25571 argument to call to targetm.goacc.validate_dims.
25572 (default_goacc_validate_dims): Add used
25573 parameter.
25574 * target.def (validate_dims): Add used parameter in DEFHOOK.
25575 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25576
25577 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25578
25579 PR middle-end/85956
25580 PR lto/88733
25581 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25582 field.
25583 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25584 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25585 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25586 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25587
25588 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25589
25590 PR rtl-optimization/87305
25591 * lra-assigns.c
25592 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25593 for little endian pseudos used as paradoxical subreg.
25594
25595 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25596
25597 PR tree-optimization/88693
25598 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25599 for STRING_CSTs that don't contain any NUL characters in the first
25600 TREE_STRING_LENGTH bytes.
25601
25602 2019-01-11 Alan Modra <amodra@gmail.com>
25603
25604 PR 88777
25605 PR 88614
25606 * genattrtab.c (min_fn): Don't translate values.
25607 (min_attr_value): Return INT_MAX when the value can't be calculated.
25608 Return minimum among any values that can be calculated.
25609 (max_attr_value): Adjust.
25610
25611 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25612
25613 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25614
25615 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25616
25617 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25618 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25619 (aarch64_return_call_with_max_clobbers): New function.
25620 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25621 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25622 argument.
25623 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25624 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25625 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25626 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25627 * cselib.c (cselib_process_insn): Add argument to
25628 targetm.hard_regno_call_part_clobbered call.
25629 * ira-conflicts.c (ira_build_conflicts): Ditto.
25630 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25631 * lra-constraints.c (inherit_reload_reg): Ditto.
25632 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25633 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25634 argument. Call targetm.return_call_with_max_clobbers.
25635 Add argument to targetm.hard_regno_call_part_clobbered call.
25636 (calls_have_same_clobbers_p): New function.
25637 (process_bb_lives): Add call_insn and last_call_insn variables.
25638 Pass call_insn to check_pseudos_live_through_calls.
25639 Modify if stmt to check targetm.return_call_with_max_clobbers.
25640 Update setting of flush variable.
25641 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25642 to false.
25643 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25644 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25645 targetm.hard_regno_call_part_clobbered call.
25646 * reginfo.c (choose_hard_reg_mode): Ditto.
25647 * regrename.c (check_new_reg_p): Ditto.
25648 * reload.c (find_equiv_reg): Ditto.
25649 * reload1.c (emit_reload_insns): Ditto.
25650 * sched-deps.c (deps_analyze_insn): Ditto.
25651 * sel-sched.c (init_regs_for_mode): Ditto.
25652 (mark_unavailable_hard_regs): Ditto.
25653 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25654 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25655 (return_call_with_max_clobbers): New target function.
25656 * doc/tm.texi: Regenerate.
25657 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25658 * hooks.c (hook_bool_uint_mode_false): Change to
25659 hook_bool_insn_uint_mode_false.
25660 * hooks.h (hook_bool_uint_mode_false): Ditto.
25661
25662 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25663
25664 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25665 (aarch64_remove_extra_call_preserved_regs): New function.
25666 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25667 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25668 * doc/tm.texi: Regenerate.
25669 * final.c (get_call_reg_set_usage): Call new hook.
25670 * target.def (remove_extra_call_preserved_regs): New hook.
25671 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25672 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25673
25674 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25675
25676 PR bootstrap/88714
25677 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25678 inside of pass_combine_1 dump rather than pass_profile_1.
25679
25680 2019-01-11 Tom de Vries <tdevries@suse.de>
25681
25682 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25683 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25684 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25685 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25686 num_workers 16.
25687
25688 2019-01-11 Tom de Vries <tdevries@suse.de>
25689
25690 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25691
25692 2019-01-11 Jan Beulich <jbeulich@suse.com>
25693
25694 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25695 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25696 sse2_cvtsi2sd): Add {l}.
25697 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25698 syntax.
25699
25700 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25701
25702 PR target/88785
25703 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25704 define_expand.
25705 (*float<floatunssuffix>v2div2sf2): New define_insn.
25706 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25707 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25708 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25709 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25710 match_operands with "const0_operand" "C".
25711
25712 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25713
25714 * config/aarch64/aarch64-builtins.c
25715 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25716 (aarch64_init_simd_builtins): ...Here
25717
25718 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25719
25720 PR rtl-optimization/87305
25721 * lra-assigns.c
25722 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25723 allocation for big endian pseudos used as paradoxical subregs and
25724 spill them if it is wrong.
25725 * lra-constraints.c (lra_constraints): Add a comment.
25726
25727 2019-01-10 Richard Biener <rguenther@suse.de>
25728
25729 PR tree-optimization/88792
25730 * tree-ssa-pre.c (get_representative_for): Do not return a
25731 value-number here.
25732
25733 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25734
25735 PR middle-end/84877
25736 PR bootstrap/88450
25737 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25738 (assign_parm_setup_block): Do the argument slot realignment here
25739 instead.
25740
25741 2019-01-10 Stefan Agner <stefan@agner.ch>
25742
25743 PR target/88648
25744 * config/arm/arm.c (arm_option_override_internal): Force
25745 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25746
25747 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25748
25749 PR c/88568
25750 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25751 DECL_EXTERNAL.
25752
25753 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25754
25755 * config/arm/arm-builtins.c
25756 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25757 (MAC_LANE_PAIR_QUALIFIERS): New.
25758 (arm_expand_builtin_args): Use it.
25759 (arm_expand_builtin_1): Likewise.
25760 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25761 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25762 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25763 * config/arm/arm_neon.h:
25764 (vcadd_rot90_f16): New.
25765 (vcaddq_rot90_f16): New.
25766 (vcadd_rot270_f16): New.
25767 (vcaddq_rot270_f16): New.
25768 (vcmla_f16): New.
25769 (vcmlaq_f16): New.
25770 (vcmla_lane_f16): New.
25771 (vcmla_laneq_f16): New.
25772 (vcmlaq_lane_f16): New.
25773 (vcmlaq_laneq_f16): New.
25774 (vcmla_rot90_f16): New.
25775 (vcmlaq_rot90_f16): New.
25776 (vcmla_rot90_lane_f16): New.
25777 (vcmla_rot90_laneq_f16): New.
25778 (vcmlaq_rot90_lane_f16): New.
25779 (vcmlaq_rot90_laneq_f16): New.
25780 (vcmla_rot180_f16): New.
25781 (vcmlaq_rot180_f16): New.
25782 (vcmla_rot180_lane_f16): New.
25783 (vcmla_rot180_laneq_f16): New.
25784 (vcmlaq_rot180_lane_f16): New.
25785 (vcmlaq_rot180_laneq_f16): New.
25786 (vcmla_rot270_f16): New.
25787 (vcmlaq_rot270_f16): New.
25788 (vcmla_rot270_lane_f16): New.
25789 (vcmla_rot270_laneq_f16): New.
25790 (vcmlaq_rot270_lane_f16): New.
25791 (vcmlaq_rot270_laneq_f16): New.
25792 (vcadd_rot90_f32): New.
25793 (vcaddq_rot90_f32): New.
25794 (vcadd_rot270_f32): New.
25795 (vcaddq_rot270_f32): New.
25796 (vcmla_f32): New.
25797 (vcmlaq_f32): New.
25798 (vcmla_lane_f32): New.
25799 (vcmla_laneq_f32): New.
25800 (vcmlaq_lane_f32): New.
25801 (vcmlaq_laneq_f32): New.
25802 (vcmla_rot90_f32): New.
25803 (vcmlaq_rot90_f32): New.
25804 (vcmla_rot90_lane_f32): New.
25805 (vcmla_rot90_laneq_f32): New.
25806 (vcmlaq_rot90_lane_f32): New.
25807 (vcmlaq_rot90_laneq_f32): New.
25808 (vcmla_rot180_f32): New.
25809 (vcmlaq_rot180_f32): New.
25810 (vcmla_rot180_lane_f32): New.
25811 (vcmla_rot180_laneq_f32): New.
25812 (vcmlaq_rot180_lane_f32): New.
25813 (vcmlaq_rot180_laneq_f32): New.
25814 (vcmla_rot270_f32): New.
25815 (vcmlaq_rot270_f32): New.
25816 (vcmla_rot270_lane_f32): New.
25817 (vcmla_rot270_laneq_f32): New.
25818 (vcmlaq_rot270_lane_f32): New.
25819 (vcmlaq_rot270_laneq_f32): New.
25820 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25821 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25822 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25823 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25824 vcmlaq_lane270): New.
25825 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25826 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25827 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25828 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25829 (arm_option_reconfigure_globals): Use them.
25830 * config/arm/iterators.md (VDF, VQ_HSF): New.
25831 (VCADD, VCMLA): New.
25832 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25833 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25834 New.
25835 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25836 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25837
25838 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25839
25840 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25841 Add qualifier_lane_pair_index.
25842 (emit-rtl.h): Include.
25843 (TYPES_QUADOP_LANE_PAIR): New.
25844 (aarch64_simd_expand_args): Use it.
25845 (aarch64_simd_expand_builtin): Likewise.
25846 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25847 New.
25848 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25849 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25850 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25851 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25852 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25853 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25854 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25855 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25856 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25857 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25858 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25859 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25860 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25861 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25862 Add __ARM_FEATURE_COMPLEX.
25863 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25864 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25865 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25866 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25867 fcmlaq_lane270): New.
25868 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25869 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25870 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25871 * config/aarch64/arm_neon.h:
25872 (vcadd_rot90_f16): New.
25873 (vcaddq_rot90_f16): New.
25874 (vcadd_rot270_f16): New.
25875 (vcaddq_rot270_f16): New.
25876 (vcmla_f16): New.
25877 (vcmlaq_f16): New.
25878 (vcmla_lane_f16): New.
25879 (vcmla_laneq_f16): New.
25880 (vcmlaq_lane_f16): New.
25881 (vcmlaq_rot90_lane_f16): New.
25882 (vcmla_rot90_laneq_f16): New.
25883 (vcmla_rot90_lane_f16): New.
25884 (vcmlaq_rot90_f16): New.
25885 (vcmla_rot90_f16): New.
25886 (vcmlaq_laneq_f16): New.
25887 (vcmla_rot180_laneq_f16): New.
25888 (vcmla_rot180_lane_f16): New.
25889 (vcmlaq_rot180_f16): New.
25890 (vcmla_rot180_f16): New.
25891 (vcmlaq_rot90_laneq_f16): New.
25892 (vcmlaq_rot270_laneq_f16): New.
25893 (vcmlaq_rot270_lane_f16): New.
25894 (vcmla_rot270_laneq_f16): New.
25895 (vcmlaq_rot270_f16): New.
25896 (vcmla_rot270_f16): New.
25897 (vcmlaq_rot180_laneq_f16): New.
25898 (vcmlaq_rot180_lane_f16): New.
25899 (vcmla_rot270_lane_f16): New.
25900 (vcadd_rot90_f32): New.
25901 (vcaddq_rot90_f32): New.
25902 (vcaddq_rot90_f64): New.
25903 (vcadd_rot270_f32): New.
25904 (vcaddq_rot270_f32): New.
25905 (vcaddq_rot270_f64): New.
25906 (vcmla_f32): New.
25907 (vcmlaq_f32): New.
25908 (vcmlaq_f64): New.
25909 (vcmla_lane_f32): New.
25910 (vcmla_laneq_f32): New.
25911 (vcmlaq_lane_f32): New.
25912 (vcmlaq_laneq_f32): New.
25913 (vcmla_rot90_f32): New.
25914 (vcmlaq_rot90_f32): New.
25915 (vcmlaq_rot90_f64): New.
25916 (vcmla_rot90_lane_f32): New.
25917 (vcmla_rot90_laneq_f32): New.
25918 (vcmlaq_rot90_lane_f32): New.
25919 (vcmlaq_rot90_laneq_f32): New.
25920 (vcmla_rot180_f32): New.
25921 (vcmlaq_rot180_f32): New.
25922 (vcmlaq_rot180_f64): New.
25923 (vcmla_rot180_lane_f32): New.
25924 (vcmla_rot180_laneq_f32): New.
25925 (vcmlaq_rot180_lane_f32): New.
25926 (vcmlaq_rot180_laneq_f32): New.
25927 (vcmla_rot270_f32): New.
25928 (vcmlaq_rot270_f32): New.
25929 (vcmlaq_rot270_f64): New.
25930 (vcmla_rot270_lane_f32): New.
25931 (vcmla_rot270_laneq_f32): New.
25932 (vcmlaq_rot270_lane_f32): New.
25933 (vcmlaq_rot270_laneq_f32): New.
25934 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25935 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25936 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25937 (FCADD, FCMLA): New.
25938 (rot): New.
25939 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25940
25941 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25942
25943 PR other/16615
25944
25945 * config/pa/pa.c: Change "can not" to "cannot".
25946 * gimple-ssa-evrp-analyze.c: Likewise.
25947 * ipa-icf.c: Likewise.
25948 * ipa-polymorphic-call.c: Likewise.
25949 * ipa-pure-const.c: Likewise.
25950 * lra-constraints.c: Likewise.
25951 * lra-remat.c: Likewise.
25952 * reload1.c: Likewise.
25953 * reorg.c: Likewise.
25954 * tree-ssa-uninit.c: Likewise.
25955
25956 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25957
25958 PR other/16615
25959
25960 * Makefile.in: Mechanically replace "can not" with "cannot".
25961 * alias.c: Likewise.
25962 * builtins.c: Likewise.
25963 * calls.c: Likewise.
25964 * cgraph.c: Likewise.
25965 * cgraph.h: Likewise.
25966 * cgraphclones.c: Likewise.
25967 * cgraphunit.c: Likewise.
25968 * combine-stack-adj.c: Likewise.
25969 * combine.c: Likewise.
25970 * common/config/i386/i386-common.c: Likewise.
25971 * config/aarch64/aarch64.c: Likewise.
25972 * config/alpha/sync.md: Likewise.
25973 * config/arc/arc.c: Likewise.
25974 * config/arc/predicates.md: Likewise.
25975 * config/arm/arm-c.c: Likewise.
25976 * config/arm/arm.c: Likewise.
25977 * config/arm/arm.h: Likewise.
25978 * config/arm/arm.md: Likewise.
25979 * config/arm/cortex-r4f.md: Likewise.
25980 * config/csky/csky.c: Likewise.
25981 * config/csky/csky.h: Likewise.
25982 * config/darwin-f.c: Likewise.
25983 * config/epiphany/epiphany.md: Likewise.
25984 * config/i386/i386.c: Likewise.
25985 * config/i386/sol2.h: Likewise.
25986 * config/m68k/m68k.c: Likewise.
25987 * config/mcore/mcore.h: Likewise.
25988 * config/microblaze/microblaze.md: Likewise.
25989 * config/mips/20kc.md: Likewise.
25990 * config/mips/sb1.md: Likewise.
25991 * config/nds32/nds32.c: Likewise.
25992 * config/nds32/predicates.md: Likewise.
25993 * config/pa/pa.c: Likewise.
25994 * config/rs6000/e300c2c3.md: Likewise.
25995 * config/rs6000/rs6000.c: Likewise.
25996 * config/s390/s390.h: Likewise.
25997 * config/sh/sh.c: Likewise.
25998 * config/sh/sh.md: Likewise.
25999 * config/spu/vmx2spu.h: Likewise.
26000 * cprop.c: Likewise.
26001 * dbxout.c: Likewise.
26002 * df-scan.c: Likewise.
26003 * doc/cfg.texi: Likewise.
26004 * doc/extend.texi: Likewise.
26005 * doc/fragments.texi: Likewise.
26006 * doc/gty.texi: Likewise.
26007 * doc/invoke.texi: Likewise.
26008 * doc/lto.texi: Likewise.
26009 * doc/md.texi: Likewise.
26010 * doc/objc.texi: Likewise.
26011 * doc/rtl.texi: Likewise.
26012 * doc/tm.texi: Likewise.
26013 * dse.c: Likewise.
26014 * emit-rtl.c: Likewise.
26015 * emit-rtl.h: Likewise.
26016 * except.c: Likewise.
26017 * expmed.c: Likewise.
26018 * expr.c: Likewise.
26019 * fold-const.c: Likewise.
26020 * genautomata.c: Likewise.
26021 * gimple-fold.c: Likewise.
26022 * hard-reg-set.h: Likewise.
26023 * ifcvt.c: Likewise.
26024 * ipa-comdats.c: Likewise.
26025 * ipa-cp.c: Likewise.
26026 * ipa-devirt.c: Likewise.
26027 * ipa-fnsummary.c: Likewise.
26028 * ipa-icf.c: Likewise.
26029 * ipa-inline-transform.c: Likewise.
26030 * ipa-inline.c: Likewise.
26031 * ipa-polymorphic-call.c: Likewise.
26032 * ipa-profile.c: Likewise.
26033 * ipa-prop.c: Likewise.
26034 * ipa-pure-const.c: Likewise.
26035 * ipa-reference.c: Likewise.
26036 * ipa-split.c: Likewise.
26037 * ipa-visibility.c: Likewise.
26038 * ipa.c: Likewise.
26039 * ira-build.c: Likewise.
26040 * ira-color.c: Likewise.
26041 * ira-conflicts.c: Likewise.
26042 * ira-costs.c: Likewise.
26043 * ira-int.h: Likewise.
26044 * ira-lives.c: Likewise.
26045 * ira.c: Likewise.
26046 * ira.h: Likewise.
26047 * loop-invariant.c: Likewise.
26048 * loop-unroll.c: Likewise.
26049 * lower-subreg.c: Likewise.
26050 * lra-assigns.c: Likewise.
26051 * lra-constraints.c: Likewise.
26052 * lra-eliminations.c: Likewise.
26053 * lra-lives.c: Likewise.
26054 * lra-remat.c: Likewise.
26055 * lra-spills.c: Likewise.
26056 * lra.c: Likewise.
26057 * lto-cgraph.c: Likewise.
26058 * lto-streamer-out.c: Likewise.
26059 * postreload-gcse.c: Likewise.
26060 * predict.c: Likewise.
26061 * profile-count.h: Likewise.
26062 * profile.c: Likewise.
26063 * recog.c: Likewise.
26064 * ree.c: Likewise.
26065 * reload.c: Likewise.
26066 * reload1.c: Likewise.
26067 * reorg.c: Likewise.
26068 * resource.c: Likewise.
26069 * rtl.def: Likewise.
26070 * rtl.h: Likewise.
26071 * rtlanal.c: Likewise.
26072 * sched-deps.c: Likewise.
26073 * sched-ebb.c: Likewise.
26074 * sched-rgn.c: Likewise.
26075 * sel-sched-ir.c: Likewise.
26076 * sel-sched.c: Likewise.
26077 * shrink-wrap.c: Likewise.
26078 * simplify-rtx.c: Likewise.
26079 * symtab.c: Likewise.
26080 * target.def: Likewise.
26081 * toplev.c: Likewise.
26082 * tree-call-cdce.c: Likewise.
26083 * tree-cfg.c: Likewise.
26084 * tree-complex.c: Likewise.
26085 * tree-core.h: Likewise.
26086 * tree-eh.c: Likewise.
26087 * tree-inline.c: Likewise.
26088 * tree-loop-distribution.c: Likewise.
26089 * tree-nrv.c: Likewise.
26090 * tree-profile.c: Likewise.
26091 * tree-sra.c: Likewise.
26092 * tree-ssa-alias.c: Likewise.
26093 * tree-ssa-dce.c: Likewise.
26094 * tree-ssa-dom.c: Likewise.
26095 * tree-ssa-forwprop.c: Likewise.
26096 * tree-ssa-loop-im.c: Likewise.
26097 * tree-ssa-loop-ivcanon.c: Likewise.
26098 * tree-ssa-loop-ivopts.c: Likewise.
26099 * tree-ssa-loop-niter.c: Likewise.
26100 * tree-ssa-phionlycprop.c: Likewise.
26101 * tree-ssa-phiopt.c: Likewise.
26102 * tree-ssa-propagate.c: Likewise.
26103 * tree-ssa-threadedge.c: Likewise.
26104 * tree-ssa-threadupdate.c: Likewise.
26105 * tree-ssa-uninit.c: Likewise.
26106 * tree-ssanames.c: Likewise.
26107 * tree-streamer-out.c: Likewise.
26108 * tree.c: Likewise.
26109 * tree.h: Likewise.
26110 * vr-values.c: Likewise.
26111
26112 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26113
26114 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26115 (ix86_split_xorsign): Ditto.
26116 * config/i386/i386.c (ix86_expand_xorsign): New function.
26117 (ix86_split_xorsign): Ditto.
26118 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26119 (xorsign<mode>3): New expander.
26120 (xorsign<mode>3_1): New insn_and_split pattern.
26121 * config/i386/sse.md (xorsign<mode>3): New expander.
26122
26123 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26124
26125 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26126 (*tablejump_sp64): Likewise.
26127 (*tablejump<P:mode>): ...this.
26128 (*call_address_sp32): Merge into...
26129 (*call_address_sp64): Likewise.
26130 (*call_address<P:mode>): ...this.
26131 (*call_symbolic_sp32): Merge into...
26132 (*call_symbolic_sp64): Likewise.
26133 (*call_symbolic<P:mode>): ...this.
26134 (call_value): Remove constraint and add predicate.
26135 (*call_value_address_sp32): Merge into...
26136 (*call_value_address_sp64): Likewise.
26137 (*call_value_address<P:mode>): ...this.
26138 (*call_value_symbolic_sp32): Merge into...
26139 (*call_value_symbolic_sp64): Likewise.
26140 (*call_value_symbolic<P:mode>): ...this.
26141 (*sibcall_symbolic_sp32): Merge into...
26142 (*sibcall_symbolic_sp64): Likewise.
26143 (*sibcall_symbolic<P:mode>): ...this.
26144 (sibcall_value): Remove constraint and add predicate.
26145 (*sibcall_value_symbolic_sp32): Merge into...
26146 (*sibcall_value_symbolic_sp64): Likewise.
26147 (*sibcall_value_symbolic<P:mode>): ...this.
26148 (window_save): Minor tweak.
26149 (*branch_sp32): Merge into...
26150 (*branch_sp64): Likewise.
26151 (*branch<P:mode>): ...this.
26152
26153 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26154 James Clarke <jrtc27@jrtc27.com>
26155
26156 PR target/84010
26157 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26158 consistently in TLS address generation and adjust code to the renaming
26159 of patterns. Mark calls to __tls_get_addr as const.
26160 * config/sparc/sparc.md (tgd_hi22): Turn into...
26161 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26162 (tgd_lo10): Turn into...
26163 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26164 (tgd_add32): Merge into...
26165 (tgd_add64): Likewise.
26166 (tgd_add<P:mode>): ...this and use Pmode throughout.
26167 (tldm_hi22): Turn into...
26168 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26169 (tldm_lo10): Turn into...
26170 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26171 (tldm_add32): Merge into...
26172 (tldm_add64): Likewise.
26173 (tldm_add<P:mode>): ...this and use Pmode throughout.
26174 (tldm_call32): Merge into...
26175 (tldm_call64): Likewise.
26176 (tldm_call<P:mode>): ...this and use Pmode throughout.
26177 (tldo_hix22): Turn into...
26178 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26179 (tldo_lox10): Turn into...
26180 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26181 (tldo_add32): Merge into...
26182 (tldo_add64): Likewise.
26183 (tldo_add<P:mode>): ...this and use Pmode throughout.
26184 (tie_hi22): Turn into...
26185 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26186 (tie_lo10): Turn into...
26187 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26188 (tie_ld64): Use DImode throughout.
26189 (tie_add32): Merge into...
26190 (tie_add64): Likewise.
26191 (tie_add<P:mode>): ...this and use Pmode throughout.
26192 (tle_hix22_sp32): Merge into...
26193 (tle_hix22_sp64): Likewise.
26194 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26195 (tle_lox22_sp32): Merge into...
26196 (tle_lox22_sp64): Likewise.
26197 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26198 (*tldo_ldub_sp32): Merge into...
26199 (*tldo_ldub_sp64): Likewise.
26200 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26201 (*tldo_ldub1_sp32): Merge into...
26202 (*tldo_ldub1_sp64): Likewise.
26203 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26204 (*tldo_ldub2_sp32): Merge into...
26205 (*tldo_ldub2_sp64): Likewise.
26206 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26207 (*tldo_ldsb1_sp32): Merge into...
26208 (*tldo_ldsb1_sp64): Likewise.
26209 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26210 (*tldo_ldsb2_sp32): Merge into...
26211 (*tldo_ldsb2_sp64): Likewise.
26212 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26213 (*tldo_ldub3_sp64): Use DImode throughout.
26214 (*tldo_ldsb3_sp64): Likewise.
26215 (*tldo_lduh_sp32): Merge into...
26216 (*tldo_lduh_sp64): Likewise.
26217 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26218 (*tldo_lduh1_sp32): Merge into...
26219 (*tldo_lduh1_sp64): Likewise.
26220 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26221 (*tldo_ldsh1_sp32): Merge into...
26222 (*tldo_ldsh1_sp64): Likewise.
26223 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26224 (*tldo_lduh2_sp64): Use DImode throughout.
26225 (*tldo_ldsh2_sp64): Likewise.
26226 (*tldo_lduw_sp32): Merge into...
26227 (*tldo_lduw_sp64): Likewise.
26228 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26229 (*tldo_lduw1_sp64): Use DImode throughout.
26230 (*tldo_ldsw1_sp64): Likewise.
26231 (*tldo_ldx_sp64): Likewise.
26232 (*tldo_stb_sp32): Merge into...
26233 (*tldo_stb_sp64): Likewise.
26234 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26235 (*tldo_sth_sp32): Merge into...
26236 (*tldo_sth_sp64): Likewise.
26237 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26238 (*tldo_stw_sp32): Merge into...
26239 (*tldo_stw_sp64): Likewise.
26240 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26241 (*tldo_stx_sp64): Use DImode throughout.
26242
26243 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26244
26245 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26246 check configure option to set BTI and Return Address Signing.
26247 * configure.ac: Add --enable-standard-branch-protection and
26248 --disable-standard-branch-protection.
26249 * configure: Regenerated.
26250 * doc/install.texi: Document the same.
26251
26252 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26253 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26254
26255 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26256 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26257 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26258 if bti is enabled.
26259 * config/aarch64/aarch64-bti-insert.c: New file.
26260 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26261 pass.
26262 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26263 new bti pass.
26264 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26265 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26266 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26267 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26268
26269 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26270
26271 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26272 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26273 Disable bti for -mbranch-protection=none.
26274 (aarch64_handle_standard_branch_protection): Enable bti for
26275 -mbranch-protection=standard.
26276 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26277 -mbranch-protection.
26278 (aarch64_bti_enabled): Check if bti is enabled.
26279 * config/aarch64/aarch64.opt: Declare target variable.
26280 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26281
26282 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26283
26284 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26285 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26286 (aarch64_expand_epilogue): Likewise.
26287 (aarch64_output_mi_thunk): Likewise.
26288 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26289 TAILCALL_ADDR_REGS to x16 and x17.
26290 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26291
26292 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26293
26294 * config/aarch64/aarch64-option-extensions.def: Define
26295 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26296 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26297 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26298 (AARCH64_FL_PREDRES): New.
26299 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26300 AARCH64_FL_PREDRES by default.
26301 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26302
26303 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26304
26305 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26306 ARMv8.5-A.
26307 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26308 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26309 * doc/invoke.texi: Document ARMv8.5-A.
26310
26311 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26312
26313 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26314 (xorsign<mode>3): Likewise.
26315
26316 2019-01-09 Jelinek <jakub@redhat.com>
26317
26318 PR middle-end/88758
26319 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26320 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26321
26322 PR rtl-optimization/88331
26323 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26324 not currently_expanding_to_rtl.
26325
26326 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26327
26328 * doc/invoke.texi (-Os): Remove trailing spaces.
26329 (-finline-functions): Remove reference to -O2.
26330
26331 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26332
26333 PR rtl-optimization/79593
26334 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26335
26336 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26337 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26338
26339 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26340
26341 PR bootstrap/88721
26342 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26343 to -1 on entry.
26344
26345 PR debug/88723
26346 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26347 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26348
26349 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26350
26351 PR target/88717
26352 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26353 ix86_avx_u128_mode_entry.
26354
26355 2019-01-08 Martin Liska <mliska@suse.cz>
26356
26357 PR tree-optimization/88753
26358 * tree-switch-conversion.c (switch_conversion::build_one_array):
26359 Come up with local variable constructor. Convert first to
26360 type of constructor values.
26361
26362 2019-01-08 Richard Biener <rguenther@suse.de>
26363
26364 PR tree-optimization/86554
26365 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26366 rpo_avail): Move earlier.
26367 (visit_nary_op): When value-numbering to expressions
26368 with different overflow behavior make sure there's an
26369 available expression on the path.
26370
26371 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26372
26373 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26374 aarch64_parse_branch_protection,
26375 struct aarch64_branch_protect_type,
26376 aarch64_handle_no_branch_protection,
26377 aarch64_handle_standard_branch_protection,
26378 aarch64_validate_mbranch_protection,
26379 aarch64_handle_pac_ret_protection,
26380 aarch64_handle_attr_branch_protection,
26381 accepted_branch_protection_string,
26382 aarch64_pac_ret_subtypes,
26383 aarch64_branch_protect_types,
26384 aarch64_handle_pac_ret_leaf): Define.
26385 (aarch64_override_options_after_change_1, aarch64_override_options):
26386 Add check for accepted_branch_protection_string.
26387 (aarch64_option_save): Save accepted_branch_protection_string.
26388 (aarch64_option_restore): Save accepted_branch_protection_string.
26389 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26390 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26391 msign-return-address.
26392 * doc/invoke.texi: Add mbranch-protection.
26393
26394 2019-01-08 Alan Modra <amodra@gmail.com>
26395
26396 PR target/88614
26397 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26398 Delete "unknownp" parameter. Adjust callers. Handle
26399 CONST_INT, PLUS, MINUS, and MULT.
26400 (attr_value_aligned): Renamed from or_attr_value.
26401 (min_attr_value): Return INT_MIN for unhandled rtl case..
26402 (min_fn): ..and translate to INT_MAX here.
26403 (write_length_unit_log): Modify to cope without "unknown".
26404 (write_attr_value): Handle IF_THEN_ELSE.
26405
26406 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26407
26408 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26409 optimization for masked stores.
26410
26411 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26412
26413 PR middle-end/88567
26414 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26415 output vector directly to duplicate_and_interleave instead of
26416 going through a temporary. Postpone insertion of ctor_seq to
26417 the end of the loop.
26418
26419 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26420
26421 PR target/86891
26422 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26423 unsigned_p. Handle signed and unsigned overflow correction as
26424 required.
26425 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26426 prototype.
26427 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26428 for operand 2.
26429 (add<mode>3_compareV_imm): Make this callable for expanding.
26430 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26431 aarch64_plus_operand for operand 2.
26432 (subv<GPI:mode>_insn): New insn pattern.
26433 (subv<GPI:mode>_imm): Likewise.
26434 (negv<GPI:mode>3): New expand pattern.
26435 (negv<GPI:mode>_insn): New insn pattern.
26436 (negv<GPI:mode>_cmp_only): Likewise.
26437 (cmpv<GPI:mode>_insn): Likewise.
26438 (subvti4): Use register_operand for operand 1. Update call to
26439 aarch64_expand_subvti.
26440 (usubvti4): Likewise.
26441 (negvti3): New expand pattern.
26442 (negdi_carryout): New insn pattern.
26443 (negvdi_carryinV): New insn pattern.
26444 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26445 version the named version.
26446 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26447 operands.
26448 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26449 patterns.
26450 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26451 patterns.
26452 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26453 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26454 (sub<mode>3_carryinCV): Delete.
26455 (sub<GPI:mode>3_carryinV): New expand pattern.
26456 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26457
26458 2019-01-07 Richard Biener <rguenther@suse.de>
26459
26460 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26461 of tree_operand_hash.
26462
26463 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26464
26465 PR tree-optimization/88598
26466 * tree.h (single_nonzero_element): Declare.
26467 * tree.c (single_nonzero_element): New function.
26468 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26469 if I is the only nonzero element of CST.
26470
26471 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26472
26473 PR tree-optimization/88598
26474 * tree.h (initializer_each_zero_or_onep): Declare.
26475 * tree.c (initializer_each_zero_or_onep): New function.
26476 (signed_or_unsigned_type_for): Handle float types too.
26477 (unsigned_type_for, signed_type_for): Update comments accordingly.
26478 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26479 x & { 0 or -1, 0 or -1, ... }.
26480
26481 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26482
26483 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26484 with x86_64-pc-linux-gnu.
26485
26486 2019-01-07 Tom de Vries <tdevries@suse.de>
26487
26488 PR target/85486
26489 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26490 function.
26491 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26492 routines.
26493
26494 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26495
26496 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26497 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26498 TARGET_AVX512F as condition.
26499
26500 PR debug/88723
26501 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26502 const_not_ok_for_debug_p target hook.
26503 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26504 on UNSPEC and subexpressions thereof if all subexpressions of the
26505 UNSPEC are CONSTANT_P.
26506
26507 PR tree-optimization/88676
26508 * tree-ssa-phiopt.c (two_value_replacement): New function.
26509 (tree_ssa_phiopt_worker): Call it.
26510
26511 PR sanitizer/88619
26512 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26513 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26514
26515 PR c++/85052
26516 * tree-vect-generic.c: Include insn-config.h and recog.h.
26517 (expand_vector_piecewise): Add defaulted ret_type argument,
26518 if non-NULL, use that in preference to type for the result type.
26519 (expand_vector_parallel): Formatting fix.
26520 (do_vec_conversion, do_vec_narrowing_conversion,
26521 expand_vector_conversion): New functions.
26522 (expand_vector_operations_1): Call expand_vector_conversion
26523 for VEC_CONVERT ifn calls.
26524 * internal-fn.def (VEC_CONVERT): New internal function.
26525 * internal-fn.c (expand_VEC_CONVERT): New function.
26526 * fold-const-call.c (fold_const_vec_convert): New function.
26527 (fold_const_call): Use it for CFN_VEC_CONVERT.
26528 * doc/extend.texi (__builtin_convertvector): Document.
26529
26530 2019-01-07 Tom de Vries <tdevries@suse.de>
26531
26532 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26533 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26534 vector_red_partition, vector_red_sym): New global variables.
26535 (nvptx_option_override): Initialize vector_red_sym.
26536 (nvptx_declare_function_name): Restore red_partition register.
26537 (nvptx_file_end): Emit code to declare the vector reduction variables.
26538 (nvptx_output_red_partition): New function.
26539 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26540 large vector reductions.
26541 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26542 (nvptx_init_builtins): Add VECTOR_ADDR.
26543 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26544 Handle nvptx_expand_shared_addr.
26545 (nvptx_get_shared_red_addr): Add vector argument and handle large
26546 vectors.
26547 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26548 large vectors.
26549 (nvptx_goacc_reduction_init): Likewise.
26550 (nvptx_goacc_reduction_fini): Likewise.
26551 (nvptx_goacc_reduction_teardown): Likewise.
26552 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26553 init,fini,teardown}.
26554 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26555 (nvptx_set_current_function): Init vector_red_partition.
26556 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26557 (nvptx_red_partition): New insn.
26558 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26559
26560 2019-01-07 Tom de Vries <tdevries@suse.de>
26561
26562 PR target/85381
26563 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26564 empty loops.
26565
26566 2019-01-07 Tom de Vries <tdevries@suse.de>
26567
26568 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26569 (nvptx_option_override): Init oacc_bcast_partition.
26570 (nvptx_init_oacc_workers): New function.
26571 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26572 (nvptx_needs_shared_bcast): New function.
26573 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26574 to propagate state.
26575 (nvptx_shared_propagate): Initialize vector bcast partition and
26576 synchronization state.
26577 (nvptx_single): Generalize to enable vectors to use shared-memory
26578 to propagate state.
26579 (nvptx_process_pars): Likewise.
26580 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26581 * config/nvptx/nvptx.h (struct machine_function): Add
26582 bcast_partition and sync_bar members.
26583
26584 2019-01-07 Tom de Vries <tdevries@suse.de>
26585
26586 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26587 (nvptx_apply_dim_limits): New function.
26588 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26589 PTX_WARP_SIZE.
26590
26591 2019-01-07 Tom de Vries <tdevries@suse.de>
26592
26593 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26594 as late as possible.
26595
26596 2019-01-07 Tom de Vries <tdevries@suse.de>
26597
26598 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26599 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26600 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26601 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26602 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26603
26604 2019-01-07 Tom de Vries <tdevries@suse.de>
26605
26606 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26607
26608 2019-01-07 Tom de Vries <tdevries@suse.de>
26609
26610 * omp-offload.c (oacc_get_min_dim): New function.
26611 * omp-offload.h (oacc_get_min_dim): Declare.
26612
26613 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26614
26615 PR target/88521
26616 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26617 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26618
26619 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26620
26621 PR tree-opt/86020
26622 Revert:
26623 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26624
26625 * ipa-inline.c (edge_badness): Use inlined_time instead of
26626 inline_summaries->get.
26627
26628 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26629
26630 * opts.c (enable_fdo_optimizations): Enable
26631 version-loops-for-strides, loop-interchange, unrol-and-jam
26632 and tree-loop-distribution.
26633 * invoke.texi: Document newly enabled options.
26634
26635 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26636
26637 * doc/invoke.texi (max-inline-insns-small): New parameters.
26638 * ipa-inline.c (want_early_inline_function_p): simplify.
26639 (want_inline_small_function_p): Fix pasto from previous patch;
26640 use max-inline-insns-small bound.
26641 * params.def (max-inline-insns-small): New param.
26642 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26643 variables correctly.
26644
26645 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26646
26647 * doc/invoke.texi: Document max-inline-insns-size,
26648 uninlined-function-insns, uninlined-function-time,
26649 uninlined-thunk-insns and uninlined-thunk-time.
26650 * params.def: Add max-inline-insns-size,
26651 uninlined-function-insns, uninlined-function-time,
26652 uninlined-thunk-insns and uninlined-thunk-time.
26653 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26654 new parameters.
26655 * ipa-inline.c (can_inline_edge_by_limits_p,
26656 want_inline_small_function_p): Use new parameters.
26657
26658 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26659
26660 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26661
26662 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26663
26664 PR middle-end/82564
26665 PR target/88620
26666 * expr.c (expand_assignment): For calls returning VLA structures
26667 if to_rtx is not a MEM, force it into a stack temporary.
26668
26669 PR debug/88635
26670 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26671 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26672 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26673 subexpressions of both operands.
26674 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26675 subrtxes are CONSTANT_P.
26676 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26677 2018-11-09 changes.
26678
26679 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26680
26681 * params.def (hot-bb-count-ws-permille): Set to 990.
26682
26683 2019-01-04 Martin Sebor <msebor@redhat.com>
26684
26685 PR c/88546
26686 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26687 leaf.
26688
26689 2019-01-04 Martin Sebor <msebor@redhat.com>
26690
26691 PR c/88363
26692 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26693
26694 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26695
26696 * gdbinit.in: Turn off pagination for the skip commands, restore
26697 it to previous state afterwards.
26698
26699 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26700
26701 PR target/88594
26702 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26703 of GET_MODE (opN) as modes of the libcall arguments.
26704
26705 2019-01-04 Jan Beulich <jbeulich@suse.com>
26706
26707 * config/i386/sse.md
26708 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26709 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26710 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26711 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26712 avx512f_vmcmp<mode>3<round_saeonly_name>,
26713 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26714 avx512f_maskcmp<mode>3,
26715 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26716 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26717 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26718 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26719 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26720 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26721 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26722 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26723 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26724 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26725 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26726 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26727 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26728 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26729 avx512cd_maskb_vec_dup<mode>,
26730 avx512cd_maskw_vec_dup<mode>,
26731 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26732 avx512dq_vmfpclass<mode>,
26733 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26734 instead of =Yk.
26735
26736 2019-01-03 Martin Sebor <msebor@redhat.com>
26737
26738 PR tree-optimization/88659
26739 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26740
26741 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26742
26743 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26744 unaligned vsx and avoid lxvd2x/stxvd2x.
26745 (gen_lvx_v4si_move): New function.
26746
26747 2019-01-03 Tom de Vries <tdevries@suse.de>
26748
26749 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26750 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26751 function.
26752 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26753
26754 2019-01-03 Tom de Vries <tdevries@suse.de>
26755
26756 * config/nvptx/nvptx.c (struct offload_attrs): New.
26757 (populate_offload_attrs): New function. Factor mask extraction out of
26758 nvptx_reorg. Add extraction of dimensions.
26759 (nvptx_reorg): Use populate_offload_attrs.
26760
26761 2019-01-03 Tom de Vries <tdevries@suse.de>
26762
26763 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26764 cases for oacc_min_dims_p and routine_p. Add asserts for
26765 oacc_default_dims_p and offload_region_p.
26766
26767 2019-01-03 Tom de Vries <tdevries@suse.de>
26768
26769 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26770 factored out of ...
26771 (nvptx_goacc_validate_dims): ... here.
26772
26773 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26774
26775 PR tree-optimization/85574
26776 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26777 structure.
26778 (struct ssa_equip_hash_traits): Declare.
26779 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26780
26781 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26782
26783 PR debug/88644
26784 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26785 change it to qualified_type.
26786
26787 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26788
26789 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26790 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26791
26792 2019-01-02 Martin Sebor <msebor@redhat.com>
26793 Jeff Law <law@redhat.com>
26794
26795 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26796 (get_range_strlen_tree): Update appropriately.
26797 (get_range_strlen)
26798 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26799
26800 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26801 rather than set_range_info.
26802 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26803 maybe_set_strlen_range. Handle potentially boundary crossing
26804 cases more conservatively.
26805 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26806 Call set_strlen_range.
26807 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26808
26809 PR middle-end/88663
26810 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26811 need the flexp argument.
26812 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26813 from calls to get_range_strlen. Update comments. Just update
26814 VAL for an unterminated const char array and let the reset of the
26815 code handle it normally. No longer try to set *flexp. Adjust
26816 return value.
26817 (get_range_strlen): Update for the new get_range_strlen API.
26818 (get_maxval_strlen): Similarly.
26819 (gimple_fold_builtin_strlen): Handle update meaning of return value
26820 from get_range_strlen.
26821 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26822 get_range_strlen API.
26823
26824 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26825
26826 PR lto/88130
26827 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26828 false at WPA time when body was removed.
26829
26830 2019-01-02 Martin Liska <mliska@suse.cz>
26831
26832 PR tree-optimization/88650
26833 * predict.c (set_even_probabilities): Calculate probability
26834 remainer only when really used.
26835
26836 2019-01-02 Richard Biener <rguenther@suse.de>
26837
26838 PR middle-end/88651
26839 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26840 widest_ints when mangling max_stmt_execution results.
26841
26842 2019-01-02 Richard Biener <rguenther@suse.de>
26843
26844 PR tree-optimization/88621
26845 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26846 bitfields when canoncalizing.
26847
26848 2019-01-02 Richard Biener <rguenther@suse.de>
26849
26850 PR target/87545
26851 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26852 cost of cheap SSE instruction.
26853
26854 2019-01-02 Richard Biener <rguenther@suse.de>
26855
26856 PR ipa/85574
26857 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26858 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26859 function.
26860 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26861 set after UIDs before splitting them.
26862
26863 2019-01-01 Martin Sebor <msebor@redhat.com>
26864 Jeff Law <law@redhat.com>
26865
26866 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26867 length is optimistic. If it is, then arrange to compute the
26868 conservative length as well.
26869
26870 * gimple-fold.h (get_range_strlen): Update prototype.
26871 * builtins.c (check_access): Update call to get_range_strlen to use
26872 c_strlen_data pointer. Change various variable accesses to instead
26873 pull data from the c_strlen_data structure.
26874 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26875 * calls.c (maybe_warn_nonstring_arg): Likewise.
26876 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26877 minimum length if maximum lengh is unknown.
26878 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26879 that used c_strlen, it's no longer needed. Restructure slightly.
26880 (format_string): Set unlikely range appropriately.
26881 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26882 formatting issues.
26883 (get_range_strlen): Accept c_strlen_data pointer for external
26884 call sites as well. Pass through to call to internal get_range_strlen.
26885 Adjust minlen, maxlen and maxbound as needed.
26886 (get_maxval_strlen): Update comments.
26887 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26888 to use c_strlen_data pointer. Change variable accesses to instead
26889 use c_strlen_data data members.
26890
26891 * gimple-fold.c (get_range_strlen): Update prototype.
26892 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26893 local variables. Use pdata to return information to caller.
26894 Update calls to get_range_strlen. Update pdata->maxbound.
26895 (get_range_strlen -- static version): Similarly.
26896 (get_range_strlen -- extern version): Update for internal
26897 get_range_strlen API change. Convert to external data format.
26898 (get_maxval_strlen): Similarly.
26899
26900 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26901
26902 * coverage.c (get_coverage_counts): Use current_function_decl.
26903 * profile.c (read_thunk_profile): New function.
26904 (branch_prob): Add THUNK parameter.
26905 * tree-profile.c (tree_profiling): Handle thunks.
26906 * value-prof.c (init_node_map): Handle thunks.
26907 * value-prof.h (branch_prob): Upate prototype.
26908 (read_thunk_profile): Declare.
26909
26910 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26911
26912 Update copyright years.
26913
26914 * gcc.c (process_command): Update copyright notice dates.
26915 * gcov-dump.c (print_version): Ditto.
26916 * gcov.c (print_version): Ditto.
26917 * gcov-tool.c (print_version): Ditto.
26918 * gengtype.c (create_file): Ditto.
26919 * doc/cpp.texi: Bump @copying's copyright year.
26920 * doc/cppinternals.texi: Ditto.
26921 * doc/gcc.texi: Ditto.
26922 * doc/gccint.texi: Ditto.
26923 * doc/gcov.texi: Ditto.
26924 * doc/install.texi: Ditto.
26925 * doc/invoke.texi: Ditto.
26926 \f
26927 Copyright (C) 2019 Free Software Foundation, Inc.
26928
26929 Copying and distribution of this file, with or without modification,
26930 are permitted in any medium without royalty provided the copyright
26931 notice and this notice are preserved.