]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
018a0a1832d609cccec28bbb7e6b870538d50f08
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-16 Martin Sebor <msebor@redhat.com>
2
3 PR tree-optimization/91996
4 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5 information.
6 (compare_nonzero_chars): Add an overload.
7 (count_nonzero_bytes): Add an argument. Call overload above.
8 Handle non-constant lengths in some range.
9 (handle_store): Add an argument.
10 (check_and_optimize_stmt): Pass an argument to handle_store.
11
12 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
13
14 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
15
16 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17
18 * config/mips/mips.c (mips_expand_builtin_insn): Force the
19 operands which correspond to the same input-output register to
20 have the same pseudo assigned to them.
21
22 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
23
24 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
25
26 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
27
28 * config/aarch64/aarch64.c (aarch64_classify_symbol):
29 Apply reasonable limit to symbol offsets.
30
31 2019-10-16 Richard Biener <rguenther@suse.de>
32
33 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
34 (vect_is_simple_reduction): Delay checking to
35 vectorizable_reduction and relax the checking.
36 (vectorizable_reduction): Check we have a simple use. Check
37 for bogus condition reductions.
38 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
39 are looking at the last stmt in a pattern sequence when
40 filling in backedge PHI values.
41
42 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
43 Jiufu Guo <guojiufu@linux.ibm.com>
44
45 PR target/70010
46 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
47 the callee explicitly disables some isa_flags the caller is using.
48
49 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
50
51 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
52
53 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
54
55 * genmodes.c (mode_data::order): New field.
56 (blank_mode): Update accordingly.
57 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
58 (make_vector_modes): Likewise.
59 (VECTOR_MODES): Update use accordingly.
60 (cmp_modes): Sort by the new order field ahead of sorting by size.
61 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
62 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
63 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
64 (aarch64_classify_vector_mode): Handle the new partial modes.
65 (aarch64_vl_bytes): New function.
66 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
67 when counting the number of registers in an SVE mode.
68 (aarch64_class_max_nregs): Likewise.
69 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
70 in registers yet.
71 (aarch64_classify_address): Treat partial vectors analogously
72 to full vectors.
73 (aarch64_print_address_internal): Consolidate the printing of
74 MUL VL addresses, using aarch64_vl_bytes as the number of
75 bytes represented by "VL".
76 (aarch64_vector_mode_supported_p): Reject partial vector modes.
77
78 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
79
80 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
81 rather than known_lt when choosing frame layouts.
82
83 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
84
85 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
86 that all the adjustments add up to the full frame size.
87 Use crtl->outgoing_args_size directly as the final adjustment
88 where appropriate.
89
90 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
91
92 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
93 "frame" reference instead of always referring directly to
94 "cfun->machine->frame".
95
96 2019-10-16 Richard Biener <rguenther@suse.de>
97
98 PR tree-optimization/92119
99 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
100 against missing bswap lhs.
101
102 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
103
104 PR middle-end/92033
105 * poly-int.h (constant_lower_bound_with_limit): New function.
106 (constant_upper_bound_with_limit): Likewise.
107 * doc/poly-int.texi: Document them.
108 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
109 into the worst-case INTEGER_CST bounds.
110
111 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
112
113 PR ipa/91088
114 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
115 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
116 * ipa-predicat.h (struct expr_eval_op): New struct.
117 (expr_eval_ops): New typedef.
118 (struct condition): Add type and param_ops fields, remove size field.
119 (add_condition): Replace size parameter with type parameter, add
120 param_ops parameter.
121 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
122 (predicate::add_clause): Add comparisons on type and param_ops.
123 (dump_condition): Add debug dump for param_ops.
124 (remap_after_inlining): Adjust call arguments to add_condition.
125 (add_condition): Replace size parameter with type parameter, add
126 param_ops parameter. Unshare constant value used in conditions.
127 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
128 parameter expressions using param_ops.
129 (decompose_param_expr): New function.
130 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
131 to replace call to unmodified_parm_or_parm_agg_item.
132 (set_switch_stmt_execution_predicate): Likewise.
133 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
134 with type.
135 (inline_read_section): Read param_ops from summary stream.
136 (ipa_fn_summary_write): Write param_ops to summary stream.
137
138 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
139
140 PR rtl-optimization/92107
141 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
142 expression written.
143
144 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
145
146 * config/darwin.c: Update description of fix and continue.
147
148 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
149
150 * config/darwin.c (darwin_binds_local_p): Update to call
151 default_binds_local_p_3 () directly. amend comments.
152
153 2019-10-15 Richard Biener <rguenther@suse.de>
154
155 * lto-streamer-out.c (lto_variably_modified_type_p): New.
156 (tree_is_indexable): Use it.
157 * tree-streamer-out.c (pack_ts_type_common_value_fields):
158 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
159 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
160
161 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
162
163 * config/msp430/msp430.md (zero_extendqipsi2): New.
164 (zero_extendqisi2): Optimize case where src register and base dst
165 register are the same.
166 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
167 (zero_extendpsisi2): Optimize r->m case.
168 Add unnamed insn patterns to catch insns combine searches for when
169 optimizing pointer manipulation.
170
171 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
172
173 * config/msp430/msp430.md: Group zero_extend* insns together.
174
175 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
176
177 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
178 constraint.
179 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
180 POST_INC.
181 (msp430_subreg): Likewise.
182 (msp430_split_addsi): Likewise.
183 (msp430_print_operand_addr): Likewise.
184 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
185 (USE_STORE_POST_INCREMENT): Define.
186 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
187 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
188 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
189 (msp430_general_dst_operand): New.
190 (msp430_general_dst_nonv_operand): New.
191 (msp430_nonsubreg_operand): Remove.
192 (msp430_nonsubreg_dst_operand): New.
193 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
194 of defunct msp430_nonsubreg_operand.
195 (msp430_nonsubregnonpostinc_or_imm_operand): New.
196
197 2019-10-15 Richard Biener <rguenther@suse.de>
198
199 PR tree-optimization/91929
200 * tree-ssa-pre.c (pre_expr_d::loc): New member.
201 (get_or_alloc_expr_for_name): Initialize it.
202 (get_or_alloc_expr_for_constant): Likewise.
203 (phi_translate_1): Copy it.
204 (create_expression_by_pieces): Use the original location
205 of the expression for the inserted stmt.
206 (compute_avail): Record the location of the stmt for the
207 expressions created.
208
209 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
210
211 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
212 before using tree_to_uhwi.
213
214 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
215
216 * config/s390/s390.md: Run %a0:DI splitters only after reload.
217
218 2019-10-15 Richard Biener <rguenther@suse.de>
219
220 PR tree-optimization/92094
221 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
222 do not adjust the reduction definition def type.
223 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
224 defines the latch argument of the PHI.
225
226 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
227
228 PR target/92035
229 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
230 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
231 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
232 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
233 _mm_maskz_roundscale_round_sd): New intrinsics.
234 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
235 __builtin_ia32_rndscales?_mask_round builtins instead of
236 __builtin_ia32_rndscales?_round.
237 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
238 __builtin_ia32_rndscalesd_round): Remove.
239 (__builtin_ia32_rndscaless_mask_round,
240 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
241 * config/i386/sse.md
242 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
243 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
244 ... this, adjust and add subst atrributes to make it maskable.
245
246 2019-10-15 Richard Biener <rguenther@suse.de>
247
248 PR middle-end/92046
249 * common.opt (fallow-store-data-races): New.
250 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
251 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
252 * doc/invoke.texi (fallow-store-data-races): Document.
253 (--param allow-store-data-races): Remove docs.
254 * opts.c (default_options_table): Enable -fallow-store-data-races
255 at -Ofast.
256 (default_options_optimization): Do not enable --param
257 allow-store-data-races at -Ofast.
258 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
259 instead of PARAM_ALLOW_STORE_DATA_RACES.
260 * tree-ssa-loop-im.c (execute_sm): Likewise.
261
262 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
263
264 PR tree-optimization/92085
265 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
266 instead of calling it unconditionally after
267 delete_dead_or_redundant_assignment and fix indentation.
268
269 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
270
271 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
272 TARGET_VFP_DOUBLE.
273 (*fmsub<SDF:mode>4): Likewise.
274 *fnmsub<SDF:mode>4): Likewise.
275 (*fnmadd<SDF:mode>4): Likewise.
276
277 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
278
279 * doc/tree-ssa.texi: Update renamed macro name.
280
281 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
282
283 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
284 vector constants.
285
286 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
287
288 * config/darwin.c: Use unsigned ints for the picbase label
289 counters, initialise the vars explicitly.
290 (update_pic_label_number_if_needed): Move a variable declaration
291 to where it's needed.
292 (machopic_output_function_base_name): Use a more strict checking
293 assert, and and unsigned int for the picbase label counter.
294 (machopic_get_function_picbase): Likewise.
295
296 2019-10-14 Richard Biener <rguenther@suse.de>
297
298 PR middle-end/92046
299 * dse.c (scan_insn): Use param max_active_local_stores.
300 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
301 based on optimization level.
302 * loop-invariant.c (move_loop_invariants): Adjust
303 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
304 * opts.c (default_options_optimization): Do not adjust
305 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
306 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
307
308 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
309
310 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
311
312 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
313
314 * config/arm/arm.c (arm_option_override): Don't override sched
315 pressure algorithm.
316
317 2019-10-14 Richard Biener <rguenther@suse.de>
318
319 PR tree-optimization/92069
320 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
321 cycles do not set vect_nested_cycle on the latch definition.
322
323 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
324
325 * function-abi.h (expr_callee_abi): Declare.
326 * function-abi.cc (expr_callee_abi): New function.
327
328 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
329
330 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
331 into [1,MAX].
332 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
333 non-zero being represented as [1,MAX].
334
335 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
336
337 * tree-sra.c (dump_access): Add missing braces.
338
339 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
340
341 * config/darwin.c (machopic_indirection_name): Rework the
342 function to emit linker-visible symbols only for indirections
343 in the data section. Clean up the code and update comments.
344
345 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
346
347 * config/darwin.c (machopic_indirect_data_reference): Remove
348 redundant code.
349
350 2019-10-13 Nathan Sidwell <nathan@acm.org>
351
352 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
353
354 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355
356 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
357 c99_runtime.
358
359 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
360
361 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
362 so non-virutal are before virutals.
363 (output_function): Avoid body modifications.
364
365 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
366
367 * config/pa/pa.c (pa_output_call): Load descriptor address to register
368 %r22. Load function address before global pointer.
369 (pa_attr_length_indirect_call): Adjust length of inline versions of
370 $$dyncall.
371 (pa_output_indirect_call): Remove fast inline version of $$dyncall
372 before normal cases. Update inline $$dyncall sequences to preserve
373 function descriptor address in register %r22.
374 (TRAMPOLINE_CODE_SIZE): Adjust.
375 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
376 register %r22 contains trampoline address.
377 (pa_trampoline_init): Adjust offsets.
378 (pa_trampoline_adjust_address): Likewise.
379 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
380
381 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
382
383 PR target/67183
384 * config/darwin.c (machopic_indirection): New field to flag
385 non-lazy-symbol-pointers in the data section.
386 (machopic_indirection_name): Compute if an indirection should
387 appear in the data section.
388 (machopic_output_data_section_indirection): New callback split
389 from machopic_output_indirection.
390 (machopic_output_stub_indirection): Likewise.
391 (machopic_output_indirection): Retain the code for non-lazy
392 symbol pointers in their regular section.
393 (machopic_finish): Use the new callbacks to order the indirection
394 output.
395
396 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
397
398 * config/darwin-protos.h (machopic_finish): Delete.
399 * config/darwin.c (machopic_finish): Make static.
400
401 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
402
403 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
404 sections when building kernel extension code.
405
406 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
407
408 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
409 later standard."
410
411 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
412
413 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
414 from warning.
415
416 2019-10-12 Jakub Jelinek <jakub@redhat.com>
417
418 PR middle-end/92063
419 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
420 <case VEC_COND_EXPR>: Return false with *handled = false.
421 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
422 recursing on the first operand.
423 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
424 instead of tree_could_trap_p.
425 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
426
427 2019-10-11 Jim Wilson <jimw@sifive.com>
428
429 PR rtl-optimization/91860
430 * combine.c (subst): If new_rtx is a constant, also check for
431 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
432
433 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
434
435 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
436 INTVAL when calling store_bit_field.
437
438 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
439
440 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
441 size.
442
443 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
444
445 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
446 vectorizable_live_operation.
447 (vectorizable_live_operation): Adjust parameters.
448 * tree-vect-stmts.c (vect_init_vector,
449 vect_gen_widened_results_half): Fix typo in function comment.
450 (can_vectorize_live_stmts): Adjust function comment.
451 Adjust parameters. Adjust call to vectorizable_live_operation.
452 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
453 (vect_transform_stmt): Adjust function comment. Adjust call to
454 can_vectorize_live_stmts.
455 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
456
457 2019-10-11 Richard Biener <rguenther@suse.de>
458
459 PR tree-optimization/90883
460 PR tree-optimization/91091
461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
462 alias-sets both for recording VN table entries and continuing
463 walking after translating through copies. Handle same-sized
464 reads from SSA names by returning the plain SSA name.
465 (eliminate_dom_walker::eliminate_stmt): Properly handle
466 non-size precision stores in redundant store elimination.
467
468 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
469
470 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
471 (ggc_collect): Dump later to not interfere with release_page dump.
472 (ggc_trim): New function.
473 * ggc-none.c (ggc_trim): New.
474 * ggc.h (ggc_trim): Declare.
475
476 2019-10-11 Richard Biener <rguenther@suse.de>
477
478 PR tree-optimization/92066
479 PR tree-optimization/92046
480 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
481 Fix bogus cost model check.
482
483 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
484
485 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
486 (LANG_HOOKS_DECLS): Add it.
487 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
488 update comment for omp_is_optional_argument.
489 * omp-general.c (omp_is_allocatable_or_ptr): New.
490 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
491 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
492 Fortran's optional arguments and allocatable/pointer scalars
493 with use_device_addr.
494
495 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
496
497 PR target/77918
498 * config/s390/2827.md: Add new opcodes.
499 * config/s390/2964.md: Likewise.
500 * config/s390/3906.md: Likewise.
501 * config/s390/8561.md: Likewise.
502 * config/s390/s390-builtins.def (s390_vfchesb): Use
503 the new vec_cmpgev4sf_quiet_nocc.
504 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
505 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
506 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
507 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
508 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
509 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
510 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
511 * config/s390/s390-modes.def (CCSFPS): New mode.
512 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
513 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
514 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
515 (s390_expand_vec_compare): Use non-signaling patterns where
516 necessary.
517 (s390_reverse_condition): Support CCSFPS.
518 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
519 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
520 (asm_fcmp_op): Likewise.
521 (*smaxv2df3_vx): Use pattern for quiet comparison.
522 (*sminv2df3_vx): Likewise.
523 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
524 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
525 (vec_cmpgt<mode>_quiet_nocc): Likewise.
526 (vec_cmplt<mode>_quiet_nocc): New expander.
527 (vec_cmpge<mode>_quiet_nocc): New pattern.
528 (vec_cmple<mode>_quiet_nocc): New expander.
529 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
530 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
531 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
532 (*vec_cmpge<mode>_signaling_nocc): Likewise.
533 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
534 (vec_cmpungt<mode>): New expander.
535 (vec_cmpunge<mode>): Likewise.
536 (vec_cmpuneq<mode>): Use quiet patterns.
537 (vec_cmpltgt<mode>): Allow only on z14+.
538 (vec_cmpordered<mode>): Use quiet patterns.
539 (vec_cmpunordered<mode>): Likewise.
540 (VEC_CMP_EXPAND): Add ungt and unge.
541
542 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
543
544 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
545 parameter.
546 * lto-streamer-out.c: Include tree-dfa.h.
547 (output_cfg): Do not use cfun.
548 (lto_prepare_function_for_streaming): New.
549 (output_function): Do not push cfun; do not initialize loop optimizer.
550 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
551 * passes.c (ipa_write_summaries): Use it.
552 (ipa_write_optimization_summaries): Do not modify bodies.
553 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
554 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
555 * tree-ssa-dse.c (pass_dse::execute): Update use of
556 renumber_gimple_stmt_uids.
557 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
558
559 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
560
561 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
562 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
563
564 2019-10-10 Joseph Myers <joseph@codesourcery.com>
565
566 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
567 macros.
568 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
569 Also define DFP macros for these conditions.
570 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
571 DEC128_SUBNORMAL_MIN): Do not define.
572 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
573 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
574
575 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
576 Sandra Loosemore <sandra@codesourcery.com>
577
578 PR middle-end/26241
579 * doc/lto.texi (IPA): Reference to the IPA passes.
580 * doc/passes.texi (Pass manager): Add node IPA passes and
581 description for each IPA pass.
582
583 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
584
585 * ipa-reference.c: Do not include splay-tree.h
586 (reference_vars_to_consider): Turn to hash map.
587 (get_static_name, ipa_init, analyze_function, propagate,
588 stream_out_bitmap, ipa_reference_write_optimization_summary,
589 ipa_reference_write_optimization_summary): Update.
590
591 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
592
593 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
594
595 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
596
597 * config/darwin.c: Lookup Objective C metadata and force indirection
598 for IVAR refs.
599
600 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
601
602 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
603 addresses.
604 (mem_operand_gpr): Add check for prefixed addresses.
605 (mem_operand_ds_form): Add check for prefixed addresses.
606 (rs6000_legitimate_offset_address_p): If we support prefixed
607 addresses, check for a 34-bit offset instead of 16-bit.
608 (rs6000_legitimate_address_p): Add check for prefixed addresses.
609 Do not allow load/store with update if the address is prefixed.
610 (rs6000_mode_dependent_address): If we support prefixed
611 addresses, check for a 34-bit offset instead of 16-bit.
612
613 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
614
615 PR target/77918
616 * config/s390/vector.md (vcond_comparison_operator): New
617 predicate.
618 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
619
620 2019-10-10 David Malcolm <dmalcolm@redhat.com>
621
622 PR 87488
623 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
624 -D.
625 * configure.ac (--with-documentation-root-url): New option.
626 * configure: Regenerate.
627 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
628 option URL, add it as a new string field of the diagnostic option.
629 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
630 (print_option_information): If get_option_url is non-NULL, call
631 it, and if the result is non-NULL, potentially emit an escape
632 sequence to markup the option text with the resulting URL.
633 * diagnostic.h (diagnostic_context::get_option_url): New callback.
634 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
635 example of JSON output.
636 * opts-diagnostic.h (get_option_url): New decl.
637 * opts.c (get_option_url): New function.
638 * toplev.c (general_init): Initialize the get_option_url callback.
639
640 2019-10-10 David Malcolm <dmalcolm@redhat.com>
641
642 PR 87488
643 * common.opt (fdiagnostics-urls=): New option.
644 (diagnostic-url.h): Add SourceInclude.
645 (diagnostic_url_rule): New enum.
646 * diagnostic-color.c: Include "diagnostic-url.h".
647 (diagnostic_urls_enabled_p): New function.
648 * diagnostic-url.h: New file.
649 * diagnostic.c: Include "diagnostic-url.h".
650 (diagnostic_urls_init): New function.
651 * diagnostic.h (diagnostic_urls_init): New decl.
652 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
653 -fdiagnostics-urls to the list.
654 (-fdiagnostics-urls): New option.
655 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
656 (driver::global_initializations): Call diagnostic_urls_init.
657 * opts-global.c (init_options_once): Likewise.
658 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
659 * pretty-print.c (pretty_printer::pretty_printer): Initialize
660 show_urls.
661 (pp_begin_url): New function.
662 (pp_end_url): New function.
663 (selftest::test_urls): New selftest.
664 (selftest::pretty_print_c_tests): Call it.
665 * pretty-print.h (pretty_printer::show_urls): New field.
666 (pp_begin_url): New decl.
667 (pp_end_url): New decl.
668
669 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
670
671 PR target/92022
672 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
673
674 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
675
676 PR target/88630
677 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
678 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
679 also for TARGET_FPU_SH4_300.
680 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
681 TARGET_SH4_300.
682 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
683 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
684 (*negsf2_i): Split into ...
685 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
686 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
687 (**abssf2_i): Split into ...
688 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
689 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
690 (*negdf2_i): Split into ...
691 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
692 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
693 (**abssf2_i): Split into ...
694 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
695
696 2019-10-10 Richard Biener <rguenther@suse.de>
697
698 PR middle-end/92046
699 * opts.c (finish_options): Do not influence global --params
700 from options that are adjustable per function.
701 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
702 Apply --param adjustment based on active cost-model.
703 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
704 further store-sinking when vectorization or if-conversion
705 are not enabled.
706
707 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
708
709 PR middle-end/92037
710 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
711 rather than ggc_alloc_cleared to alloc symbol table.
712 * toplev.c (general_init): Likewise.
713 * cgraph.h (symbol_table): Explicitly construct every field.
714
715 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
716
717 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
718 (PF_Z15): ... this.
719 * config.gcc: Add z15 as option for --with-arch and --with-tune
720 configure switches.
721 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
722 error reporting for unsupported builtins.
723 * config/s390/s390-opts.h (enum processor_type): Rename
724 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
725 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
726 * config/s390/driver-native.c (s390_host_detect_local_cpu):
727 Likewise.
728 * config/s390/s390-builtins.def: Likewise.
729 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
730 (s390_expand_builtin): Add missing check for unsupported builtins.
731 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
732 (s390_rtx_costs): Likewise.
733 (s390_get_sched_attrmask): Rename arch13 to z15.
734 (s390_get_unit_mask): Likewise.
735 (s390_is_fpd): Likewise.
736 (s390_is_fxd): Likewise.
737 * config/s390/s390.h (enum processor_flags): Likewise.
738 * config/s390/s390.md: Likewise.
739 * config/s390/vector.md: Likewise.
740 * config/s390/vx-builtins.md: Likewise.
741 * config/s390/s390.opt: Add z15 to processor_type value.
742
743 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
744
745 PR target/91035
746 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
747 prototype.
748 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
749 ("split_stack_data", "split_stack_call")
750 ("split_stack_call_<mode>", "split_stack_cond_call")
751 ("split_stack_cond_call_<mode>"): Remove.
752 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
753 insn definition.
754 * config/s390/s390.c (s390_output_split_stack_data): New function.
755 (s390_expand_split_stack_prologue): Use the merged expander.
756
757 2019-10-09 Martin Sebor <msebor@redhat.com>
758
759 PR tree-optimization/90879
760 * builtins.c (check_access): Avoid using maxbound when null.
761 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
762 * doc/invoke.texi (-Wstring-compare): Document new warning option.
763 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
764 conditional.
765 (get_range_strlen): Overwrite initial maxbound when non-null.
766 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
767 changes.
768 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
769 (used_only_for_zero_equality): New function.
770 (handle_builtin_memcmp): Call it.
771 (determine_min_objsize): Return an integer instead of tree.
772 (get_len_or_size, strxcmp_eqz_result): New functions.
773 (maybe_warn_pointless_strcmp): New function.
774 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
775 between a longer string and a smaller array.
776 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
777
778 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
779
780 * config/darwin.c (darwin_override_options): Make the check for
781 Objective-C ABI version more specific for 64bit code.
782
783 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
784
785 * config/darwin.c (machopic_indirect_data_reference): Set flag to
786 indicate that the new symbol is an indirection.
787 (machopic_indirect_call_target): Likewise.
788 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
789 (MACHO_SYMBOL_INDIRECTION_P): New.
790 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
791
792 2019-10-08 Jason Merrill <jason@redhat.com>
793
794 * doc/invoke.texi: Document -fconcepts-ts.
795
796 2019-10-09 Richard Biener <rguenther@suse.de>
797
798 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
799 allow stmts other than GIMPLE_ASSIGN in nested cycles.
800
801 2019-10-08 Richard Biener <rguenther@suse.de>
802
803 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
804 (_stmt_vec_info::force_single_cycle): Likewise.
805 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
806 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
807 * tree-vect-loop.c (vectorizable_reduction): Set
808 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
809 (vect_transform_reduction): Use them to remove redundant code.
810 (vect_transform_cycle_phi): Likewise.
811
812 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
813
814 PR tree-optimization/90836
815 * gcc/match.pd (popcount): New pattern.
816
817 2019-10-08 Martin Sebor <msebor@redhat.com>
818
819 PR middle-end/92026
820 PR middle-end/92014
821 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
822 again once nbytes has been set. Set the access size when not yet set.
823
824 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
825
826 * config/darwin.c (machopic_select_section): Remove dead code for
827 old Objective-C section selection method, replace with unreachable.
828
829 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
830
831 * config/darwin.c (machopic_indirect_data_reference): Check for
832 required indirections before making direct access to defined
833 values.
834 (machopic_output_indirection): Place the indirected pointes for
835 required indirections into the non-lazy symbol pointers section.
836 (darwin_encode_section_info):
837 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
838 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
839
840 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
841
842 PR target/91994
843 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
844 instead of ALL_SSE_REG to check if function call preserves some
845 256-bit SSE registers.
846
847 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
848
849 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
850 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
851 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
852
853 2019-10-08 Richard Biener <rguenther@suse.de>
854
855 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
856 (_stmt_vec_info::is_reduc_info): Add.
857 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
858 (vectorizable_condition): Remove.
859 (vectorizable_shift): Likewise.
860 (vectorizable_reduction): Adjust.
861 (info_for_reduction): New.
862 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
863 (vect_analyze_scalar_cycles_1): ... here.
864 (vect_analyze_loop_operations): Adjust.
865 (needs_fold_left_reduction_p): Simplify for single caller.
866 (vect_is_simple_reduction): Likewise. Remove stmt restriction
867 for nested cycles not part of double reductions.
868 (vect_model_reduction_cost): Pass in the reduction type.
869 (info_for_reduction): New function.
870 (vect_create_epilog_for_reduction): Use it, access reduction
871 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
872 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
873 (vectorize_fold_left_reduction): Remove pointless assert.
874 (vectorizable_reduction): Analyze the full reduction when
875 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
876 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
877 stmt code-generation to vectorizable_* in most cases. Verify
878 code-generation only for cases handled by
879 vect_transform_reductuon.
880 (vect_transform_reduction): Use info_for_reduction to get at
881 reduction meta. Simplify.
882 (vect_transform_cycle_phi): Likewise.
883 (vectorizable_live_operation): Likewise.
884 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
885 at the PHI node for STMT_VINFO_REDUC_TYPE.
886 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
887 longer necessary code.
888 * tree-vect-stmts.c (vectorizable_shift): Make static again.
889 (vectorizable_condition): Likewise. Get at reduction related
890 info via info_for_reduction.
891 (vect_analyze_stmt): Adjust.
892 (vect_transform_stmt): Likewise.
893 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
894 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
895
896 2019-10-08 Joseph Myers <joseph@codesourcery.com>
897
898 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
899 -fno-fp-int-builtin-inexact default for C2X.
900
901 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
902 Richard Biener <rguenther@suse.de>
903
904 PR tree-optimization/91532
905 * tree-if-conv.c: Include tree-ssa-dse.h.
906 (ifcvt_local_dce): Change param from bb to loop,
907 and call dse_classify_store.
908 (tree_if_conversion): Pass loop instead of loop->header as arg
909 to ifcvt_local_dce.
910 * tree-ssa-dse.c: Include tree-ssa-dse.h.
911 (delete_dead_or_redundant_assignment): Remove static qualifier from
912 declaration, and add prototype in tree-ssa-dse.h.
913 (dse_store_status): Move to tree-ssa-dse.h.
914 (dse_classify_store): Remove static qualifier and add new tree param
915 stop_at_vuse, and add prototype in tree-ssa-dse.h.
916 * tree-ssa-dse.h: New header.
917
918 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
919
920 * config/darwin.c (machopic_output_indirection): Don't put
921 hidden symbol indirections into the .data section, use the
922 non-lazy symbol pointers section as normal.
923 (darwin_encode_section_info): Record if a symbol is hidden.
924 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
925 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
926
927 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
928
929 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
930 predicates instead of accessing bits directly.
931 (machopic_indirect_call_target): Likewise.
932 (machopic_output_indirection): Likewise.
933 (darwin_encode_section_info): Improve description. Use renamed
934 symbol flags. Use predicate macros for variables and functions.
935 * config/darwin.h:
936 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
937 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
938 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
939 (MACHO_SYMBOL_VARIABLE_P): New.
940 (MACHO_SYMBOL_DEFINED_P):New.
941 (MACHO_SYMBOL_STATIC_P): New.
942 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
943 (SYMBOL_FLAG_SUBT_DEP): New.
944 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
945
946 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
947
948 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
949 (msp430_expand_epilogue): Likewise.
950 * config/msp430/predicates.md: Likewise.
951 * config/msp430/msp430.md: Likewise.
952 Replace blocks of 8 spaces with tabs.
953
954 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
955
956 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
957 * config/msp430/msp430.c (msp430_split_addsi): New.
958 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
959 a block of C code for splitting addsi.
960
961 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
962
963 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
964 ix86_expand_rounddf_32): Reorder functions.
965 * config/i386/i386-protos.h: Update.
966
967 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
968
969 * config.in: Regenerate.
970 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
971 Add new "Yx" constraint.
972 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
973 function.
974 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
975 prototype.
976 * config/msp430/msp430.c (msp430_option_override): Allow the lower
977 code/data region to be selected in the small memory model.
978 (msp430_section_attr): Don't warn if the "section" and "lower"
979 attributes are used together.
980 (msp430_handle_generic_attribute): Likewise.
981 (msp430_var_in_low_mem): New function.
982 (TARGET_ENCODE_SECTION_INFO): Define.
983 (msp430_encode_section_info): New function.
984 (gen_prefix): Return early in the small memory model.
985 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
986 ".lower" prefix if -m{code,data}-region=lower have been passed.
987 (msp430_output_aligned_decl_common): Emit common symbols when
988 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
989 set.
990 (TARGET_ASM_FILE_END): Define.
991 (msp430_file_end): New function.
992 (msp430_do_not_relax_short_jumps): Allow relaxation when
993 function will be in the lower region.
994 (msp430_op_not_in_high_mem): New function.
995 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
996 the 'X' operand selector.
997 Clarify comment for 'x' operand selector.
998 * config/msp430/msp430.h (LINK_SPEC): Propagate
999 -m{code,data}-region to the linker via spec function
1000 msp430_propagate_region_opt.
1001 (msp430_propagate_region_opt): New prototype.
1002 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1003 (SYMBOL_FLAG_LOW_MEM): Define.
1004 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1005 selector.
1006 (zero_extendqihi2): Fix operand number used by "%X" selector.
1007 (zero_extendqisi2): Likewise.
1008 (zero_extendhisi2): Likewise.
1009 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1010 (movhi): Likewise.
1011 (addqi3): Likewise.
1012 (addhi3): Likewise.
1013 (addsi3): Likewise.
1014 (addhi3_cy): Likewise.
1015 (addchi4_cy): Likewise.
1016 (subqi3): Likewise.
1017 (subhi3): Likewise.
1018 (subsi3): Likewise.
1019 (bic<mode>3): Likewise.
1020 (and<mode>3): Likewise.
1021 (ior<mode>3): Likewise.
1022 (xor<mode>3): Likewise.
1023 (slli_1): Add missing "%X" operand selector.
1024 (slll_1): Likewise.
1025 (slll_2): Likewise.
1026 (srai_1): Likewise.
1027 (sral_1): Likewise.
1028 (sral_2): Likewise.
1029 (srli_1): Likewise.
1030 (srll_1): Likewise.
1031 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1032 selector.
1033 (cbranchhi4_real): Likewise.
1034 (cbranchqi4_reversed): Likewise.
1035 (cbranchhi4_reversed): Likewise.
1036 (*bitbranch<mode>4): Likewise.
1037 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1038 * config/msp430/msp430.opt (mcode-region=): Set default to
1039 MSP430_REGION_LOWER. Improve docstring.
1040 (mdata-region=): Likewise.
1041 (muse-lower-region-prefix): New option.
1042 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1043 mdata-region=none multilib.
1044 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1045 mdata-region=none multilib.
1046 MULTILIB_EXCEPTIONS: Remove.
1047 MULTILIB_REQUIRED: Define.
1048 * configure: Regenerate.
1049 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1050 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1051 * doc/extend.texi: Clarify comment for {upper,lower,either}
1052 function attributes.
1053 Add separate description for "lower" variable attribute.
1054
1055 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1056
1057 PR target/77918
1058 * optabs-tree.c (vcond_icode_p): New function.
1059 (vcond_eq_icode_p): Likewise.
1060 (expand_vec_cond_expr_p): Use vcond_icode_p and
1061 vcond_eq_icode_p.
1062 * optabs.c (can_vcond_compare_p): New function.
1063 * optabs.h (can_vcond_compare_p): Likewise.
1064
1065 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1066
1067 PR target/77918
1068 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1069 caller passes a non-trapping condition.
1070 (is_gimple_condexpr): Allow trapping conditions.
1071 (is_gimple_condexpr_1): New helper function.
1072 (is_gimple_condexpr_for_cond): New function, acts like old
1073 is_gimple_condexpr.
1074 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1075 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1076 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1077 * gimplify.c (gimplify_cond_expr): Use
1078 is_gimple_condexpr_for_cond.
1079 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1080 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1081 VEC_COND_EXPR.
1082 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1083 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1084 is_gimple_condexpr_for_cond, remove pointless tmp check
1085 (forward_propagate_into_cond): Remove pointless tmp check.
1086
1087 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1088
1089 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1090 match that of other gsi_next_* functions. Adjust the comment.
1091 (gsi_start_nonvirtual_phis): New function.
1092 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1093 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1094
1095 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1096
1097 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1098 setjmp situation here. Fix a verb's ending: "the exact variables or
1099 elements for which there are warnings depends" -> "... depend".
1100
1101 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1102
1103 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1104
1105 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1106
1107 * ipa-prop.c (ipa_vr::nonzero_p): New.
1108 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1109 non-zero range.
1110 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1111 * tree-vrp.c (range_has_numeric_bounds_p): New.
1112 (range_int_cst_p): Use range_has_numeric_bounds_p.
1113 (get_range_op_handler): New.
1114 (supported_types_p): New.
1115 (defined_ranges_p): New.
1116 (drop_undefines_to_varying): New.
1117 (range_fold_binary_symbolics_p): New.
1118 (range_fold_unary_symbolics_p): New.
1119 (range_fold_unary_expr): Extract out into above functions.
1120 (range_fold_binary_expr): Same.
1121 (value_range_base::normalize_addresses): New.
1122 (value_range_base::normalize_symbolics): Normalize addresses.
1123 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1124
1125 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1126
1127 * tree-vrp.c (value_range_base::singleton_p): Use
1128 value_range_base::num_pairs instead of vrp_val_is* to check
1129 if a range has one sub-range.
1130
1131 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1132
1133 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1134 DEF is not a true earlyclobber but is tied to a specific input
1135 operand, and so is effectively earlyclobber wrt inputs that have
1136 different values.
1137 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1138
1139 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1140
1141 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1142 (pod_mode): Mark operators likewise.
1143 (scalar_int_mode): Mark non-default constructors and
1144 operators with CONSTEXPR.
1145 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1146 (fixed_size_mode): Likewise.
1147
1148 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1149
1150 PR target/91994
1151 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1152 and wrap the unspec_volatile in a parallel.
1153 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1154 the unspec_volatile.
1155 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1156 unspec_volatile to be wrapped in a parallel.
1157 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1158 (ix86_add_reg_usage_to_vzerouppers): New functions.
1159 (rest_of_handle_insert_vzeroupper): Use them to add register
1160 usage information to the vzeroupper instructions.
1161
1162 2019-10-07 Richard Biener <rguenther@suse.de>
1163
1164 PR tree-optimization/91975
1165 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1166 handle invariants.
1167
1168 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1169
1170 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1171 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1172
1173 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1174
1175 * config/darwin.c (darwin_override_options): Adjust objective-c
1176 ABI version error messages to avoid punctuation and contracted
1177 negations.
1178
1179 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1180
1181 * ipa-inline.c: Fix type; compute size rather than self_size
1182 for size of caller function.
1183
1184 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1185
1186 PR target/59888
1187 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1188 choose const_data section for constants with relocations.
1189 (machopic_select_section): Pass relocation flag to
1190 darwin_rodata_section ().
1191
1192 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1193
1194 PR tree-optimization/91734
1195 * generic-match-head.c: Include fold-const-call.h.
1196 * match.pd (sqrt(x) cmp c): Check the boundary value and
1197 in case inexact computation of c*c affects comparison of the boundary,
1198 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1199 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1200 for -frounding-math. For c2, try the next smaller or larger floating
1201 point constant depending on comparison code and if it has the same
1202 sqrt as c2, use it instead of c2.
1203
1204 2019-10-04 Martin Sebor <msebor@redhat.com>
1205
1206 PR middle-end/91977
1207 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1208 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1209 uninitialized objects.
1210
1211 2019-10-04 Martin Sebor <msebor@redhat.com>
1212
1213 * builtins.c (compute_objsize): Add an argument.
1214 * tree-object-size.c (addr_object_size): Same.
1215 (compute_builtin_object_size): Same.
1216 * tree-object-size.h (compute_builtin_object): Same.
1217
1218 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1219
1220 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1221
1222 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1223
1224 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1225
1226 2019-10-04 Martin Jambor <mjambor@suse.cz>
1227
1228 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1229 fntype when switching to calling memcpy instead of memset.
1230
1231 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1232
1233 * hash-table.h (hash_table::empty_slow): Don't assign
1234 size_t values to int variables.
1235
1236 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1237
1238 * expr.c (convert_mode_scalar): Remove shadowing local var.
1239 (emit_block_move): Rename local vars.
1240 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1241 (emit_push_insn): Rename local vars.
1242 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1243 shadowing local vars.
1244 (store_constructor): Remove shadowing local vars. Rename local var.
1245 (store_field, expand_cond_expr_using_cmove,
1246 expand_expr_real_2): Remove shadowing local vars.
1247 (expand_expr_real_1,
1248 do_store_flag): Remove shadowing local vars. Rename local vars.
1249
1250 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1251
1252 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1253
1254 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1255
1256 * genmatch.c (commutate): Rename local var.
1257 (lower_cond): Reuse local var.
1258 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1259 dt_operand::gen, dt_operand::gen_gimple_expr,
1260 dt_simplify::gen): Add a param. Rename generated vars.
1261 (decision_tree::insert_operand,
1262 (capture_info::walk_match, capture_info::walk_result,
1263 capture_info::walk_c_expr): Rename local vars.
1264 (expr::gen_transform): Rename generated vars.
1265 Use snprintf. Rename local vars.
1266 (capture::gen_transform, dt_operand::get_name,
1267 dt_operand::gen_opname): Rename generated vars.
1268 (write_predicate): Adjust call to gen_kids.
1269 (parser::get_internal_capture_id): Rename generated vars.
1270 (parser::parse_expr): Rename local vars.
1271 (parser::parse_if): Remove local var.
1272 (parser::parse_pattern, add_operator): Rename local vars.
1273
1274 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1275
1276 * builtins.def (DEF_C2X_BUILTIN): New macro.
1277 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1278 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1279 (strndup): Use DEF_C2X_BUILTIN.
1280 * coretypes.h (enum function_class): Add function_c2x_misc.
1281
1282 2019-10-04 Maya Rashish <coypu@sdf.org>
1283
1284 * ira-color.c (update_costs_from_allocno): Call
1285 ira_init_register_move_cost_if_necessary.
1286
1287 2019-10-04 Jeff Law <law@redhat.com>
1288
1289 * config/h8300/h8300.md (cpymemsi): Disable.
1290 (movmd, movmd_internal_<mode>, movstr, movsd):
1291 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1292 (movmd splitter, movsd splitter): Likewise.
1293
1294 * range-op.cc (range_tests): Avoid two tests when ints and
1295 shorts are the same size.
1296
1297 2019-10-04 Richard Biener <rguenther@suse.de>
1298
1299 PR lto/91968
1300 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1301 BLOCK_VARS.
1302
1303 2019-10-04 Richard Biener <rguenther@suse.de>
1304
1305 PR tree-optimization/91982
1306 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1307 against EXTRACT_LAST_REDUCTION.
1308 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1309
1310 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1311
1312 * range-op.o (value_range_from_overflowed_bounds): Rename from
1313 adjust_overflow_bound.
1314 (value_range_with_overflow): Rename from
1315 create_range_with_overflow.
1316 (create_possibly_reversed_range): Adjusted for above renames.
1317 (operator_*::wi_fold): Same.
1318 (cross_product_operator::wi_cross_productor): Same.
1319
1320 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1321
1322 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1323 -Wshadow=compatible-local): Fix description.
1324 Add an example where -Wshadow=compatible-local does not
1325 warn.
1326
1327 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1328
1329 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1330
1331 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1332 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1333
1334 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1335
1336 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1337 can_move_by_pieces issue.
1338
1339 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1340
1341 PR target/87243
1342 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1343 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1344 is available and the user has not set one on the command line.
1345
1346 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1347
1348 PR target/91769
1349 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1350 instead of REGNO equality check on addr.reg.
1351
1352 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1353
1354 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1355 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1356 * doc/invoke.texi (inline-heuristics-hint-percent,
1357 inline-heuristics-hint-percent-O2): Document.
1358 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1359 hint attribute.
1360 (can_inline_edge_by_limits_p): Use it.
1361
1362 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1363
1364 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1365 to print CONST_DOUBLEs.
1366
1367 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1368
1369 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1370 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1371 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1372
1373 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1374
1375 * Makefile.in (OBJS): Add range.o and range-op.o.
1376 Remove wide-int-range.o.
1377 * function-tests.c (test_ranges): New.
1378 (function_tests_c_tests): Call test_ranges.
1379 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1380 range_fold_unary_expr instead of extract_range_from_unary_expr.
1381 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1382 * range-op.cc: New file.
1383 * range-op.h: New file.
1384 * range.cc: New file.
1385 * range.h: New file.
1386 * selftest.h (range_tests): New prototype.
1387 * ssa.h: Include range.h.
1388 * tree-vrp.c (value_range_base::value_range_base): New
1389 constructors.
1390 (value_range_base::singleton_p): Do not call
1391 ranges_from_anti_range until sure we will need to.
1392 (value_range_base::type): Rename gcc_assert to
1393 gcc_checking_assert.
1394 (vrp_val_is_max): New argument.
1395 (vrp_val_is_min): Same.
1396 (wide_int_range_set_zero_nonzero_bits): Move from
1397 wide-int-range.cc.
1398 (extract_range_into_wide_ints): Remove.
1399 (extract_range_from_multiplicative_op): Remove.
1400 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1401 from extract_range_from_binary_expr.
1402 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1403 from extract_range_from_binary_expr.
1404 (extract_range_from_binary_expr): Remove.
1405 (normalize_for_range_ops): New.
1406 (range_fold_binary_expr): New.
1407 (range_fold_unary_expr): New.
1408 (value_range_base::num_pairs): New.
1409 (value_range_base::lower_bound): New.
1410 (value_range_base::upper_bound): New.
1411 (value_range_base::upper_bound): New.
1412 (value_range_base::contains_p): New.
1413 (value_range_base::invert): New.
1414 (value_range_base::union_): New.
1415 (value_range_base::intersect): New.
1416 (range_compatible_p): New.
1417 (value_range_base::operator==): New.
1418 (determine_value_range_1): Call range_fold_*expr instead of
1419 extract_range_from_*expr.
1420 * tree-vrp.h (class value_range_base): Add new constructors.
1421 Add methods for union_, intersect, operator==, contains_p,
1422 num_pairs, lower_bound, upper_bound, invert.
1423 (vrp_val_is_min): Add handle_pointers argument.
1424 (vrp_val_is_max): Same.
1425 (extract_range_from_unary_expr): Remove.
1426 (extract_range_from_binary_expr): Remove.
1427 (range_fold_unary_expr): New.
1428 (range_fold_binary_expr): New.
1429 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1430 range_fold_binary_expr instead of extract_range_from_binary_expr.
1431 (vr_values::extract_range_basic): Same.
1432 (vr_values::extract_range_from_unary_expr): Call
1433 range_fold_unary_expr instead of extract_range_from_unary_expr.
1434 * wide-int-range.cc: Remove.
1435 * wide-int-range.h: Remove.
1436
1437 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1438
1439 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1440 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1441 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1442 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1443 macro.
1444
1445 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1446
1447 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1448 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1449 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1450 * glimits.h: Likewise.
1451
1452 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1453
1454 PR rtl-optimization/91976
1455 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1456 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1457 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1458
1459 2019-10-02 Martin Sebor <msebor@redhat.com>
1460
1461 PR tree-optimization/80936
1462 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1463
1464 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1465
1466 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1467 instead of reg_class_contents[ALL_REGS].
1468
1469 2019-09-30 Jason Merrill <jason@redhat.com>
1470
1471 Add some hash_map_safe_* functions like vec_safe_*.
1472 * hash-map.h (default_hash_map_size): New variable.
1473 (create_ggc): Use it as default argument.
1474 (hash_map_maybe_create, hash_map_safe_get)
1475 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1476
1477 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1478
1479 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1480 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1481 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1482 (can_inline_edge_by_limits_p): Use it.
1483 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1484 (want_inline_small_function_p): Use O2 bounds.
1485 (edge_badness): LIkewise.
1486 * opts.c (default_options): Add OPT_finline_functions.
1487 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1488 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1489 New parameters.
1490 * doc/invoke.texi (-finline-functions): Update documentation.
1491 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1492 inline-min-speedup-O2): Document.
1493 (early-inlining-insns-O2): Simplify docs.
1494
1495 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1496
1497 PR rtl-optimization/87047
1498 * ifcvt.c (average_cost): New static function. Use it...
1499 (noce_process_if_block): ... here.
1500
1501 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1502
1503 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1504 * config/rs6000/rs6000-string.c (expand_block_move): Add
1505 might_overlap parm.
1506 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1507 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1508
1509 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1510
1511 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1512 (expand_builtin_memcpy): Use might_overlap parm.
1513 (expand_builtin_mempcpy_args): Use might_overlap parm.
1514 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1515 (expand_builtin_memory_copy_args): Add might_overlap parm.
1516 * expr.c (emit_block_move_via_cpymem): Rename to
1517 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1518 or movmem optab as appropriate.
1519 (emit_block_move_hints): Add might_overlap parm, do the right
1520 thing for might_overlap==true.
1521 * expr.h (emit_block_move_hints): Update prototype.
1522
1523 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1524
1525 * tree-eh.h (unsplit_eh_edges): Declare.
1526 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1527 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1528 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1529 (struct store_immediate_info): Add lp_nr field.
1530 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1531 initialize lp_nr with it.
1532 (struct merged_store_group): Add lp_nr and only_constants fields.
1533 (merged_store_group::merged_store_group): Initialize them.
1534 (merged_store_group::can_be_merged_into): Deal with them.
1535 (pass_store_merging): Rename terminate_and_release_chain into
1536 terminate_and_process_chain.
1537 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1538 renaming and remove useless assertions.
1539 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1540 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1541 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1542 instead of always recomputing it and compare lp_nr.
1543 (imm_store_chain_info::output_merged_store): If the group is in an
1544 active EH region, register new stores if they can throw. Moreover,
1545 if the insertion has created new basic blocks, adjust the PHI nodes
1546 of the post landing pad.
1547 (imm_store_chain_info::output_merged_stores): If the original stores
1548 are in an active EH region, deregister them.
1549 (lhs_valid_for_store_merging_p): Prettify.
1550 (adjust_bit_pos): New function extracted from...
1551 (mem_valid_for_store_merging): ...here. Use it for the base address
1552 and also for the offset if it is the addition of a constant.
1553 (lp_nr_for_store): New function.
1554 (pass_store_merging::process_store): Change return type to bool.
1555 Call lp_nr_for_store to initialize the store info. Propagate the
1556 return status of various called functions to the return value.
1557 (store_valid_for_store_merging_p): New predicate.
1558 (enum basic_block_status): New enumeration.
1559 (get_status_for_store_merging): New function.
1560 (pass_store_merging::execute): If the function can throw and catch
1561 non-call exceptions, unsplit the EH edges on entry and clean up the
1562 CFG on exit if something changed. Call get_status_for_store_merging
1563 for every basic block and keep the chains open across basic blocks
1564 when possible. Terminate and process open chains at the end, if any.
1565
1566 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1567
1568 * reginfo.c (globalize_reg): Fix shadowed variable in
1569 function_abis walk.
1570
1571 2019-10-02 Martin Jambor <mjambor@suse.cz>
1572
1573 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1574 do not compute some stuff when set.
1575 (cgraph_node::create_edge): Likewise.
1576 (cgraph_node::create_indirect_edge): Renamed last parameter to
1577 coning_p and flipped its meaning, don't even calculate
1578 inline_failed when set.
1579 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1580 (symbol_table::::create_edge): Likewise.
1581 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1582 the default value.
1583 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1584 call graph edge creating functions.
1585
1586 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1587
1588 PR c++/91222
1589 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1590 namespace types.
1591
1592 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1593
1594 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1595
1596 2019-10-02 Richard Biener <rguenther@suse.de>
1597
1598 * tree-vectorizer.h (vect_transform_reduction): Declare.
1599 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1600 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1601 stmt transform to ...
1602 (vect_transform_reduction): ... this.
1603
1604 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1605
1606 * omp-low.c (lower_omp_target): Dereference optional argument
1607 to work with the right pointer.
1608
1609 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1610
1611 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1612 false.
1613 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1614 * langhooks.h (omp_is_optional_argument): New hook.
1615 * omp-general.c (omp_is_optional_argument): New.
1616 * omp-general.h (omp_is_optional_argument): New declaration.
1617 * omp-low.c (lower_omp_target): Create temporary for received value
1618 and take the address for new_var if the original variable was a
1619 DECL_BY_REFERENCE. Use size of referenced object when a
1620 pass-by-reference optional argument used as argument to firstprivate.
1621
1622 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1623
1624 PR tree-optimization/91940
1625 * tree-vect-patterns.c: Include tree-vector-builder.h and
1626 vec-perm-indices.h.
1627 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1628 unpromoting the argument back to uint16_t, or by converting into a
1629 rotate, or into shifts plus ior.
1630
1631 2019-10-02 Richard Biener <rguenther@suse.de>
1632
1633 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1634 New.
1635 (vect_transform_cycle_phi): Declare.
1636 * tree-vect-stmts.c (vect_transform_stmt): Call
1637 vect_transform_cycle_phi.
1638 * tree-vect-loop.c (vectorizable_reduction): Split out
1639 PHI transformation stage to ...
1640 (vect_transform_cycle_phi): ... here.
1641
1642 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1643
1644 PR middle-end/91957
1645 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1646 eliminable registers.
1647 (make_hard_regno_live): Likewise, and don't make them live.
1648
1649 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1650
1651 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1652 Call pp_emit_prefix.
1653 (layout::print_source_line): Likewise.
1654 (layout::start_annotation_line): Likewise.
1655 (diagnostic_show_locus): Remove call to temporarily clear the
1656 prefix.
1657 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1658 interaction of pp_set_prefix with rulers and fix-it hints.
1659 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1660 prefix when calling diagnostic_show_locus, rather than destroying
1661 it afterwards.
1662 (print_parseable_fixits): Temporarily clear prefix.
1663 * pretty-print.c (pp_format): Save and restore line_length, rather
1664 than assuming it is zero.
1665 (pp_output_formatted_text): Remove assertion that line_length is
1666 zero.
1667
1668 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1669
1670 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1671 Rename to ...
1672 (nonoverlapping_refs_since_match_p): ... this; handle also
1673 ARRAY_REFs.
1674 (alias_stats): Update stats.
1675 (dump_alias_stats): Likewise.
1676 (cheap_array_ref_low_bound): New function.
1677 (aliasing_matching_component_refs_p): Add partial_overlap
1678 argument;
1679 pass it to nonoverlapping_refs_since_match_p.
1680 (aliasing_component_refs_walk): Update call of
1681 aliasing_matching_component_refs_p
1682 (nonoverlapping_array_refs_p): New function.
1683 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1684 indirect_refs_may_alias_p): Update calls of
1685 nonoverlapping_refs_since_match_p.
1686
1687 2019-10-01 Maya Rashish <coypu@sdf.org>
1688
1689 PR target/85401
1690 * ira-color.c (allocno_copy_cost_saving): Call
1691 ira_init_register_move_cost_if_necessary.
1692
1693 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1694
1695 * Makefile.in (gnat_install_lib): New variable.
1696 * configure.ac: Substitute it.
1697 * configure: Regenerate.
1698
1699 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1700
1701 PR lto/91222
1702 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1703 is matched with non-C++ type
1704
1705 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1706
1707 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1708 after local CSE.
1709
1710 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1711
1712 * doc/invoke.texi (early-inlining-insns-O2): Document.
1713 (early-inlining-insns): Update.
1714 * params.def (early-inlining-insns-O2): New bound.
1715 (early-inlining-insns): Update docs.
1716 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1717
1718 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1719
1720 PR target/88562
1721 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1722 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1723 a memory access insn.
1724
1725 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1726
1727 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1728 vpmsumd.
1729
1730 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1731
1732 PR target/77918
1733 * config/s390/s390.c (s390_expand_vec_compare): Use
1734 gen_vec_cmpordered and gen_vec_cmpunordered.
1735 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1736 vec_unordered): Delete.
1737 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1738 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1739 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1740 (vec_cmp<code>): Generic dispatcher.
1741
1742 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1743
1744 PR target/77918
1745 * config/s390/vector.md (V_HW): Add V1TI in order to make
1746 vcond$a$b generate vcondv1tiv1tf.
1747
1748 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1749
1750 PR rtl-optimization/91948
1751 * ira-build.c (ira_create_allocno): Initialize
1752 ALLOCNO_CROSSED_CALLS_ABIS.
1753 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1754 than regno to ira_need_caller_save_p.
1755
1756 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1757
1758 * config/i386/i386-options.c
1759 (ix86_recompute_optlev_based_flags): New, moved out of...
1760 (ix86_option_override_internal): ... this. Call it.
1761 (ix86_override_options_after_change): Call it here too.
1762
1763 PR debug/91507
1764 * dwarf2out.c (override_type_for_decl_p): New.
1765 (gen_variable_die): Use it.
1766
1767 2019-10-01 Richard Biener <rguenther@suse.de>
1768
1769 * tree-vect-loop.c (vectorizable_reduction): Move variables
1770 to where they are used.
1771
1772 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1773
1774 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1775 (build_def_use): Use PC instead of CC0 in a comment.
1776
1777 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1778
1779 * rtl.def (CLOBBER_HIGH): Delete.
1780 * doc/rtl.texi (clobber_high): Remove documentation.
1781 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1782 (reg_is_clobbered_by_clobber_high): Delete.
1783 (gen_hard_reg_clobber_high): Likewise.
1784 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1785 * cfgexpand.c (expand_gimple_stmt): Likewise.
1786 * combine-stack-adj.c (single_set_for_csa): Likewise.
1787 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1788 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1789 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1790 * cse.c (invalidate_reg): Remove clobber_high parameter.
1791 (invalidate): Update call accordingly.
1792 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1793 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1794 (count_reg_usage, insn_live_p): Likewise.
1795 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1796 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1797 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1798 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1799 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1800 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1801 (mark_nonreg_stores_2): Likewise.
1802 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1803 (df_get_call_refs): Likewise.
1804 * dwarf2out.c (mem_loc_descriptor): Likewise.
1805 * emit-rtl.c (verify_rtx_sharing): Likewise.
1806 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1807 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1808 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1809 * genemit.c (gen_exp, gen_insn): Likewise.
1810 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1811 * haifa-sched.c (haifa_classify_rtx): Likewise.
1812 * ira-build.c (create_insn_allocnos): Likewise.
1813 * ira-costs.c (scan_one_insn): Likewise.
1814 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1815 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1816 * jump.c (mark_jump_label_1): Likewise.
1817 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1818 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1819 handling.
1820 (mark_not_eliminable): Likewise.
1821 * lra-lives.c (process_bb_lives): Likewise.
1822 * lra.c (new_insn_reg): Remove clobber_high parameter.
1823 (collect_non_operand_hard_regs): Likewise. Update call to new
1824 insn_reg. Remove CLOBBER_HIGH handling.
1825 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1826 to collect_non_operand_hard_regs.
1827 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1828 Update call to new_insn_reg.
1829 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1830 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1831 (move2add_note_store): Likewise.
1832 * print-rtl.c (print_pattern): Likewise.
1833 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1834 (if_test_bypass_p): Likewise.
1835 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1836 * reginfo.c (reg_scan_mark_refs): Likewise.
1837 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1838 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1839 (forget_old_reloads_1): Likewise.
1840 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1841 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1842 (dbr_schedule): Likewise.
1843 * resource.c (update_live_status, mark_referenced_resources)
1844 (mark_set_resources): Likewise.
1845 * rtl.c (copy_rtx): Likewise.
1846 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1847 (note_pattern_stores): Likewise.
1848 (reg_is_clobbered_by_clobber_high): Delete.
1849 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1850 CLOBBER_HIGH handling.
1851
1852 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1853
1854 PR target/91452
1855 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1856 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1857 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1858 Handle ARM_PCS_TLSDESC.
1859 (aarch64_tlsdesc_abi_id): New function.
1860 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1861 rtx instead of a list of clobbers and clobber_highs.
1862 (tlsdesc_small_<mode>): Update accordingly.
1863
1864 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1865
1866 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1867 extra callee_abi argument.
1868 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1869 Insert a CALLEE_ABI unspec into the call pattern as the second
1870 element in the PARALLEL.
1871 (aarch64_simd_call_p): Delete.
1872 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1873 the new CALLEE_ABI element of the PARALLEL.
1874 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1875 from the function type, if given.
1876 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1877 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1878 when passed the function_arg_info end marker.
1879 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1880 final argument of gen_sibcall.
1881 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1882 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1883 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1884 pattern.
1885 (call_value): Likewise operand 3.
1886 (sibcall): Likewise operand 2. Place the unspec before rather than
1887 after the return.
1888 (sibcall_value): Likewise operand 3.
1889 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1890 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1891 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1892 constraint strings.
1893 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1894
1895 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1896
1897 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1898 choose_hard_reg_mode.
1899 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1900
1901 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1902
1903 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1904 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1905 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1906
1907 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1908
1909 * diagnostic-show-locus.c (line_label::line_label): Initialize
1910 m_has_vbar.
1911 (line_label::comparator): Reverse the sort order by m_state_idx,
1912 so that when the list is walked backwards the labels appear in
1913 order of insertion into the rich_location.
1914 (line_label::m_has_vbar): New field.
1915 (layout::print_any_labels): When dealing with multiple labels at
1916 the same line and column, only print vertical bars for the one
1917 with the highest label_line.
1918 (selftest::test_one_liner_labels): Update test for multiple labels
1919 to expect the labels to be in the order of insertion into the
1920 rich_location. Add a test for many such labels, where the column
1921 numbers are out-of-order relative to the insertion order.
1922
1923 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1924
1925 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1926 (ix86_frame::expensive_count): Likewise.
1927 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1928 of use_fast_prologue_epilogue robust against incidental changes
1929 in function size.
1930
1931 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1932
1933 PR target/77918
1934 * config/s390/vector.md (vec_unordered<mode>): Call
1935 gen_vec_ordered<mode>.
1936
1937 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1938
1939 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1940 New pattern for ASRD.
1941 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1942 * internal-fn.def (IFN_DIV_POW2): New internal function.
1943 * optabs.def (sdiv_pow2_optab): New optab.
1944 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1945 Modify pattern to support new operation.
1946 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1947 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1948 Document new target selector.
1949
1950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1953 to test whether we're compiling a vector PCS function and to test
1954 whether the function needs to save a particular register.
1955 Remove the vector PCS handling of df_set_regs_ever_live.
1956 (aarch64_components_for_bb): Use crtl->abi to test whether
1957 the function needs to save a particular register.
1958 (aarch64_process_components): Use crtl->abi to test whether
1959 we're compiling a vector PCS function.
1960 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1961 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1962
1963 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1964
1965 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1966 Delete.
1967 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1968 whether the block calls a function that clobbers more registers
1969 than the current function is allowed to.
1970 (aarch64_use_simple_return_insn_p): Delete.
1971 * config/aarch64/aarch64.md (simple_return): Remove condition.
1972
1973 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1974
1975 * function-abi.h (function_abi_aggregator): New class.
1976 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1977 function.
1978 * ira.c (update_equiv_regs_prescan): New function. Call
1979 set_paradoxical_subreg here rather than...
1980 (update_equiv_regs): ...here.
1981 (ira): Call update_equiv_regs_prescan.
1982
1983 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1984
1985 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1986 IN_TARGET_CODE.
1987 (call_used_or_fixed_regs): Likewise.
1988 (call_used_or_fixed_reg_p): Likewise.
1989 * reginfo.c (regs_invalidated_by_call): New macro.
1990
1991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1992
1993 * shrink-wrap.c: Include function-abi.h.
1994 (requires_stack_frame_p): Use crtl->abi to test whether the
1995 current function can use a register without saving it first.
1996
1997 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 * sel-sched-ir.h (_def::crosses_call): Replace with...
2000 (_def::crossed_call_abis): ..this new field.
2001 (def_list_add): Take a mask of ABIs instead of a crosses_call
2002 boolean.
2003 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2004 of _def accordingly.
2005 * sel-sched.c: Include function-abi.h.
2006 (hard_regs_data::regs_for_call_clobbered): Delete.
2007 (reg_rename::crosses_call): Replace with...
2008 (reg_rename::crossed_call_abis): ...this new field.
2009 (fur_static_params::crosses_call): Replace with...
2010 (fur_static_params::crossed_call_abis): ...this new field.
2011 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2012 (init_hard_regs_data): Use crtl->abi to test which registers the
2013 current function would need to save before it uses them.
2014 (mark_unavailable_hard_regs): Update handling of call-clobbered
2015 registers, using call_clobbers_in_region to find out which registers
2016 might be call-clobbered (but without taking -fipa-ra into account
2017 for now). Remove separate handling of partially call-clobbered
2018 registers.
2019 (verify_target_availability): Use crossed_call_abis instead of
2020 crosses_call.
2021 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2022 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2023
2024 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2025
2026 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2027 function to test whether a register is fully or partly clobbered.
2028
2029 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * rtlanal.c: Include function-abi.h.
2032 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2033 function and clobbers_reg_p to test whether the register
2034 is call-clobbered.
2035 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2036 to get the ABI of the called function and full_reg_clobbers to
2037 get the set of fully call-clobbered registers. Warn about the
2038 pitfalls of using this mode.
2039
2040 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2041
2042 * reload.c: Include function-abi.h.
2043 (find_equiv_reg): Use clobbers_reg_p to test whether either
2044 of the equivalent registers is clobbered by a call.
2045 * reload1.c: Include function-abi.h.
2046 (reg_reloaded_call_part_clobbered): Delete.
2047 (reload): Use crtl->abi to test which registers would need
2048 saving in the prologue before use.
2049 (find_reg): Likewise.
2050 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2051 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2052 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2053
2054 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2055
2056 * regrename.h (du_head::call_clobber_mask): New field.
2057 (du_head::need_caller_save_reg): Replace with...
2058 (du_head::call_abis): ...this new field.
2059 * regrename.c: Include function-abi.h.
2060 (call_clobbered_in_chain_p): New function.
2061 (check_new_reg_p): Use crtl->abi when deciding whether a register
2062 is free for use after RA. Use call_clobbered_in_chain_p to test
2063 whether a candidate register would be clobbered by a call.
2064 (find_rename_reg): Don't add call-clobber conflicts here.
2065 (rename_chains): Check call_abis instead of need_caller_save_reg.
2066 (merge_chains): Update for changes to du_head.
2067 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2068 target. Record the ABI identifier in call_abis and the set of
2069 fully or partially clobbered registers in call_clobber_mask.
2070 Add fully-clobbered registers to hard_conflicts here rather
2071 than in find_rename_reg.
2072 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2073 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2074 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2075 function-abi.h.
2076 * config/c6x/c6x.c: Likewise.
2077
2078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2081 mode of the register when deciding whether it is no longer
2082 available after a call.
2083
2084 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2085
2086 * recog.c: Include function-abi.h.
2087 (peep2_find_free_register): Use crtl->abi when deciding whether
2088 a register is free for use after RA.
2089
2090 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * postreload-gcse.c: Include regs.h and function-abi.h.
2093 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2094 call insn target. Conservatively assume that partially-clobbered
2095 registers are altered.
2096
2097 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2098
2099 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2100 when deciding whether a register is free for use after RA.
2101 (reload_combine): Remove unnecessary use of fixed_reg_set.
2102 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2103 call insn target. Use reg_mode when testing whether a register
2104 is no longer available.
2105
2106 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2107
2108 * target.def (return_call_with_max_clobbers): Delete.
2109 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2110 * doc/tm.texi: Regenerate.
2111 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2112 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2113 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2114 (lra_reg::call_insn): Delete.
2115 * lra.c: Include function-abi.h.
2116 (initialize_lra_reg_info_element): Don't initialize the fields above.
2117 (lra): Use crtl->abi to test whether the current function needs to
2118 save a register in the prologue. Remove special pre-inheritance
2119 lra_create_live_ranges pass for flag_ipa_ra.
2120 * lra-assigns.c: Include function-abi.h
2121 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2122 function needs to save a register in the prologue.
2123 (lra_assign): Assert that registers aren't allocated to a
2124 conflicting register, rather than checking only for overlaps
2125 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2126 and for registers that are not live across a call.
2127 * lra-constraints.c (last_call_for_abi): New variable.
2128 (full_and_partial_call_clobbers): Likewise.
2129 (setup_next_usage_insn): Remove the register from
2130 full_and_partial_call_clobbers.
2131 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2132 whether the register needs a caller save.
2133 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2134 of call_used_or_fixed_regs.
2135 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2136 full_and_partial_call_clobbers.
2137 * lra-lives.c (check_pseudos_live_through_calls): Replace
2138 last_call_used_reg_set and call_insn arguments with an abi argument.
2139 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2140 as the set of conflicting registers.
2141 (calls_have_same_clobbers_p): Delete.
2142 (process_bb_lives): Track the ABI of the last call instead of an
2143 insn/HARD_REG_SET pair. Update calls to
2144 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2145 the set of registers that could be clobbered by an EH edge.
2146 Include partially-clobbered as well as fully-clobbered registers.
2147 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2148 * lra-remat.c: Include function-abi.h.
2149 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2150 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2151 registers and bitmap_view to combine them into dead_regs.
2152 (call_used_input_regno_present_p): Take a function_abi argument
2153 and use it to test whether a register is call-clobbered.
2154 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2155 call insn target. Update tje call to call_used_input_regno_present_p.
2156 (do_remat): Likewise.
2157 (lra_remat): Remove the initialization of call_used_regs_arr_len
2158 and call_used_regs_arr.
2159
2160 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2161
2162 * loop-iv.c: Include regs.h and function-abi.h.
2163 (simplify_using_initial_values): Use insn_callee_abi to get the
2164 ABI of the call insn target. Conservatively assume that
2165 partially-clobbered registers are altered.
2166
2167 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * function-abi.h (call_clobbers_in_region): Declare.
2170 (call_clobbered_in_region_p): New function.
2171 * function-abi.cc (call_clobbers_in_region): Likewise.
2172 * ira-int.h: Include function-abi.h.
2173 (ira_allocno::crossed_calls_abis): New field.
2174 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2175 (ira_need_caller_save_regs): New function.
2176 (ira_need_caller_save_p): Likewise.
2177 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2178 of call_used_or_fixed_regs.
2179 (do_reload): Use crtl->abi to test whether the current function
2180 needs to save a register in the prologue. Count registers that
2181 need to be saved rather than registers that don't.
2182 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2183 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2184 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2185 (propagate_some_info_from_allocno): Likewise.
2186 (copy_info_to_removed_store_destinations): Likewise.
2187 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2188 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2189 (ira_build): Use ira_need_caller_save_regs instead of
2190 call_used_or_fixed_regs.
2191 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2192 whether the current function would need to save a register
2193 before using it.
2194 (calculate_spill_cost): Likewise.
2195 (allocno_reload_assign): Use ira_need_caller_save_regs and
2196 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2197 * ira-conflicts.c (ira_build_conflicts): Use
2198 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2199 as the set of call-clobbered registers. Remove the
2200 call_used_or_fixed_regs mask from the calculation of
2201 temp_hard_reg_set and mask its use instead. Remove special
2202 handling of partially-clobbered registers.
2203 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2204 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2205 calculate the set of conflicting registers for calls that
2206 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2207 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2208 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2209 Use eh_edge_abi to calculate the set of registers that could
2210 be clobbered by an EH edge. Include partially-clobbered as
2211 well as fully-clobbered registers.
2212
2213 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2214
2215 * haifa-sched.c: Include function-abi.h.
2216 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2217 the function would need to save a register before using it.
2218
2219 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2220
2221 * gcse.c: Include function-abi.h.
2222 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2223 the call insn target. Invalidate partially call-clobbered
2224 registers as well as fully call-clobbered ones.
2225
2226 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2227
2228 * function.c (aggregate_value_p): Work out which ABI the
2229 function is using before testing which registers are at least
2230 partly preserved by a call.
2231
2232 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2233
2234 * early-remat.c: Include regs.h and function-abi.h.
2235 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2236 registers here.
2237 (early_remat::restrict_remat_for_unavail_regs): New function.
2238 (early_remat::restrict_remat_for_call): Likewise.
2239 (early_remat::process_block): Before calling emit_remat_insns
2240 for a previous call in the block, invalidate any candidates
2241 that would clobber call-preserved registers.
2242 (early_remat::emit_remat_insns_for_block): Likewise for the
2243 final call in a block. Do the same thing for live-in registers
2244 when calling emit_remat_insns at the head of a block.
2245
2246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2247
2248 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2249 whether the current function needs to save at least part of a
2250 register before using it.
2251 (df_get_exit_block_use_set): Likewise for epilogue restores.
2252
2253 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2254
2255 * df-problems.c: Include regs.h and function-abi.h.
2256 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2257 sparse_invalidated_by_eh and dense_invalidated_by_call to
2258 dense_invalidated_by_eh.
2259 (df_print_bb_index): Update accordingly.
2260 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2261 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2262 that are clobbered by an EH edge. Clobber partially-clobbered
2263 registers as well as fully-clobbered ones.
2264 (df_md_confluence_n): Likewise.
2265 (df_rd_local_compute): Likewise. Update for changes to
2266 df_rd_problem_data.
2267 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2268 of registers that are clobbered by an EH edge. Includde partially-
2269 clobbered registers as well as fully-clobbered ones.
2270
2271 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2272
2273 * cselib.c (cselib_process_insn): If we know what mode a
2274 register was set in, check whether it is clobbered in that
2275 mode by a call. Only fall back to reg_raw_mode if that fails.
2276
2277 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2278
2279 * cse.c: Include regs.h and function-abi.h.
2280 (invalidate_for_call): Take the call insn as an argument.
2281 Use insn_callee_abi to get the ABI of the call and invalidate
2282 partially clobbered registers as well as fully clobbered ones.
2283 (cse_insn): Update call accordingly.
2284
2285 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2286
2287 * combine.c: Include function-abi.h.
2288 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2289 of the target of call insns. Invalidate partially-clobbered
2290 registers as well as fully-clobbered ones.
2291
2292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2293
2294 * cfgloopanal.c: Include regs.h and function-abi.h.
2295 (init_set_costs): Use default_function_abi to test whether
2296 a general register is call-clobbered.
2297
2298 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2299
2300 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2301 instead of the call-clobbered sets.
2302
2303 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2304
2305 * caller-save.c (setup_save_areas): Remove redundant |s of
2306 fixed_reg_set.
2307 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2308 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2309 value is useful.
2310
2311 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2312
2313 * rtl.h (predefined_function_abi): Declare.
2314 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2315 instead of a boolean call_save flag.
2316 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2317 accordingly.
2318 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2319 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2320 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2321 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2322 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2323 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2324 * reginfo.c (init_reg_modes_target): Likewise.
2325 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2326 instead of a boolean call_save flag.
2327 * targhooks.c: Include function-abi.h.
2328 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2329 using eh_edge_abi to choose the mode.
2330
2331 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2332
2333 * target.def (hard_regno_call_part_clobbered): Take an ABI
2334 identifier instead of an rtx_insn.
2335 * doc/tm.texi: Regenerate.
2336 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2337 (hook_bool_uint_uint_mode_false): New function.
2338 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2339 (hook_bool_uint_uint_mode_false): New function.
2340 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2341 Take an ABI identifier instead of an rtx_insn.
2342 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2343 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2344 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2345 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2346 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2347 Likewise.
2348 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2349 * cselib.c: Include function-abi.h.
2350 (cselib_process_insn): Update call to
2351 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2352 to get the appropriate ABI identifier.
2353 * function-abi.cc (predefined_function_abi::initialize): Update call
2354 to targetm.hard_regno_call_part_clobbered.
2355 * ira-conflicts.c (ira_build_conflicts): Likewise.
2356 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2357 * lra-constraints.c: Include function-abi.h.
2358 (need_for_call_save_p): Update call to
2359 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2360 to get the appropriate ABI identifier.
2361 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2362 * regcprop.c (copyprop_hardreg_forward_1): Update call
2363 to targetm.hard_regno_call_part_clobbered.
2364 * reginfo.c (choose_hard_reg_mode): Likewise.
2365 * regrename.c (check_new_reg_p): Likewise.
2366 * reload.c (find_equiv_reg): Likewise.
2367 * reload1.c (emit_reload_insns): Likewise.
2368 * sched-deps.c: Include function-abi.h.
2369 (deps_analyze_insn): Update call to
2370 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2371 to get the appropriate ABI identifier.
2372 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2373 call to targetm.hard_regno_call_part_clobbered.
2374 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2375
2376 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2377
2378 * config/i386/i386.c: Include function-abi.h.
2379 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2380 if they preserve some 256-bit or 512-bit SSE registers.
2381
2382 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2383
2384 * target.def (insn_callee_abi): New hook.
2385 (remove_extra_call_preserved_regs): Delete.
2386 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2387 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2388 * doc/tm.texi: Regenerate.
2389 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2390 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2391 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2392 insn argument.
2393 (aarch64_remove_extra_call_preserved_regs): Delete.
2394 (aarch64_insn_callee_abi): New function.
2395 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2396 (TARGET_INSN_CALLEE_ABI): New macro.
2397 * rtl.h (get_call_fndecl): Declare.
2398 (cgraph_rtl_info): Fix formatting. Tweak comment for
2399 function_used_regs. Remove function_used_regs_valid.
2400 * rtlanal.c (get_call_fndecl): Moved from final.c
2401 * function-abi.h (insn_callee_abi): Declare.
2402 (target_function_abi_info): Mention insn_callee_abi.
2403 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2404 way to get_call_reg_set_usage did.
2405 (insn_callee_abi): New function.
2406 * regs.h (get_call_reg_set_usage): Delete.
2407 * final.c: Include function-abi.h.
2408 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2409 function_used_regs before the main loop rather than afterwards.
2410 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2411 if function_used_regs ends up not being useful.
2412 (get_call_fndecl): Move to rtlanal.c
2413 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2414 * caller-save.c: Include function-abi.h.
2415 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2416 instead of get_call_reg_set_usage.
2417 * cfgcleanup.c: Include function-abi.h.
2418 (old_insns_match_p): Use insn_callee_abi instead of
2419 get_call_reg_set_usage.
2420 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2421 a tree.
2422 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2423 function_used_regs.
2424 * df-scan.c: Include function-abi.h.
2425 (df_get_call_refs): Use insn_callee_abi instead of
2426 get_call_reg_set_usage.
2427 * ira-lives.c: Include function-abi.h.
2428 (process_bb_node_lives): Use insn_callee_abi instead of
2429 get_call_reg_set_usage.
2430 * lra-lives.c: Include function-abi.h.
2431 (process_bb_lives): Use insn_callee_abi instead of
2432 get_call_reg_set_usage.
2433 * postreload.c: Include function-abi.h.
2434 (reload_combine): Use insn_callee_abi instead of
2435 get_call_reg_set_usage.
2436 * regcprop.c: Include function-abi.h.
2437 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2438 get_call_reg_set_usage.
2439 * resource.c: Include function-abi.h.
2440 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2441 instead of get_call_reg_set_usage.
2442 * var-tracking.c: Include function-abi.h.
2443 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2444 get_call_reg_set_usage.
2445
2446 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2447
2448 * target.def (fntype_abi): New target hook.
2449 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2450 * doc/tm.texi: Regenerate.
2451 * target.h (predefined_function_abi): Declare.
2452 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2453 if defined.
2454 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2455 * config/aarch64/aarch64.c: Include function-abi.h.
2456 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2457 (TARGET_FNTYPE_ABI): Define.
2458
2459 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2460
2461 * Makefile.in (OBJS): Add function-abi.o.
2462 (GTFILES): Add function-abi.h.
2463 * function-abi.cc: New file.
2464 * function-abi.h: Likewise.
2465 * emit-rtl.h (rtl_data::abi): New field.
2466 * function.c: Include function-abi.h.
2467 (prepare_function_start): Initialize crtl->abi.
2468 * read-rtl-function.c: Include regs.h and function-abi.h.
2469 (read_rtl_function_body): Initialize crtl->abi.
2470 (read_rtl_function_body_from_file_range): Likewise.
2471 * reginfo.c: Include function-abi.h.
2472 (init_reg_sets_1): Initialize default_function_abi.
2473 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2474 when making a register global.
2475 * target-globals.h (this_target_function_abi_info): Declare.
2476 (target_globals::function_abi_info): New field.
2477 (restore_target_globals): Copy it.
2478 * target-globals.c: Include function-abi.h.
2479 (default_target_globals): Initialize the function_abi_info field.
2480 (target_globals): Allocate it.
2481 (save_target_globals): Free it.
2482
2483 2019-09-30 Nick Clifton <nickc@redhat.com>
2484
2485 PR target/85978
2486 * config/frv/frv.c (frv_register_move_cost): Add break statements
2487 to avoid falling through to the wrong cases. Tidy code.
2488
2489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2490
2491 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2492 For multi-registers modes, test how big each register part is.
2493
2494 2019-09-30 Nick Clifton <nickc@redhat.com>
2495
2496 PR target/59205
2497 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2498 (TARGET_ASM_SELECT_SECTION): Remove definition.
2499 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2500
2501 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2502
2503 * emit-rtl.c (init_raw_REG): New function.
2504 (gen_raw_REG): Use init_raw_REG.
2505 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2506 macros.
2507 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2508 * rtl.h (rtx_init): New function.
2509 (rtx_alloca): New function.
2510 (init_raw_REG): New function.
2511 (alloca_raw_REG): New macro.
2512
2513 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2514
2515 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2516 (pcrel_local_address): Replace pcrel_address predicate, use the
2517 new function address_to_insn_form.
2518 (pcrel_external_address): Replace with new implementation using
2519 address_to_insn_form..
2520 (prefixed_mem_operand): Delete predicate which is now unused.
2521 (pcrel_external_mem_operand): Delete predicate which is now
2522 unused.
2523 * config/rs6000/rs6000-protos.h (enum insn_form): New
2524 enumeration.
2525 (enum non_prefixed_form): New enumeration.
2526 (address_to_insn_form): New declaration.
2527 (prefixed_load_p): New declaration.
2528 (prefixed_store_p): New declaration.
2529 (prefixed_paddi_p): New declaration.
2530 (rs6000_asm_output_opcode): New declaration.
2531 (rs6000_final_prescan_insn): Move declaration and update calling
2532 signature.
2533 (address_is_prefixed): New helper inline function.
2534 * config/rs6000/rs6000.c(print_operand_address): Check for either
2535 PC-relative local symbols or PC-relative external symbols.
2536 (rs6000_emit_move): Support loading PC-relative addresses.
2537 (mode_supports_prefixed_address_p): Delete, no longer used.
2538 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2539 (address_to_insn_form): New function to decode an address format.
2540 (reg_to_non_prefixed): New function to identify what the
2541 non-prefixed memory instruction format is for a register.
2542 (prefixed_load_p): New function to identify prefixed loads.
2543 (prefixed_store_p): New function to identify prefixed stores.
2544 (prefixed_paddi_p): New function to identify prefixed load
2545 immediates.
2546 (next_insn_prefixed_p): New static state variable.
2547 (rs6000_final_prescan_insn): New function to determine if an insn
2548 uses a prefixed instruction.
2549 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2550 prefixed instruction.
2551 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2552 (ASM_OUTPUT_OPCODE): New target hook.
2553 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2554 prefixed instructions.
2555 (prefixed_length): New insn attribute for the size of prefixed
2556 instructions.
2557 (non_prefixed_length): New insn attribute for the size of
2558 non-prefixed instructions.
2559 (pcrel_local_addr): New insn to load up a local PC-relative
2560 address.
2561 (pcrel_extern_addr): New insn to load up an external PC-relative
2562 address.
2563 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2564 GPR and loading a 128-bit floating point type to a GPR.
2565
2566 2019-09-30 Richard Biener <rguenther@suse.de>
2567
2568 * gimple.c (gimple_get_lhs): For PHIs return the result.
2569 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2570 SLP instance as argument.
2571 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2572 double-reduction PHIs with vectorizable_lc_phi.
2573 (vect_analyze_loop_operations): Adjust.
2574 (vect_create_epilog_for_reduction): Remove all code not dealing
2575 with reduction LC PHI or epilogue generation.
2576 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2577 for live stmts of reductions.
2578 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2579 do not handle defs that are not vect_internal_def.
2580 (can_vectorize_live_stmts): Adjust.
2581 (vect_analyze_stmt): When the vectorized stmt defined a value
2582 used on backedges adjust the backedge uses of vectorized PHIs.
2583
2584 2019-09-30 Martin Jambor <mjambor@suse.cz>
2585
2586 PR ipa/91853
2587 * tree-inline.c (force_value_to_type): New function.
2588 (setup_one_parameter): Use force_value_to_type to convert type.
2589 * tree-inline.c (force_value_to_type): Declare.
2590 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2591 with register type mismatches.
2592
2593 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2594
2595 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2596 32-bit PowerPC.
2597 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2598 * config/rs6000/t-freebsd64: Make use of the above define and build
2599 the 32-bit libraries with secure-plt.
2600
2601 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2602
2603 PR target/91931
2604 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2605 gen_int_mode instead of GEN_INT.
2606
2607 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2608
2609 * config/darwin.c (gen_macho_low): Amend to include the mode
2610 argument.
2611 (machopic_indirect_data_reference): Amend gen_macho_low call
2612 to include mode argument
2613 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2614 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2615 the macho_high expander and two define_insn entries.
2616
2617 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2618
2619 PR bootstrap/90543
2620 * optc-save-gen.awk: Fix up printing string option differences.
2621
2622 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2623
2624 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2625 vec_perm cost to 1 for non-Power7 VSX architectures.
2626
2627 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2628
2629 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2630 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2631 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2632
2633 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2634
2635 * config/darwin.c (gen_macho_high): Amend to include the mode
2636 argument.
2637 (machopic_indirect_data_reference): Amend gen_macho_high call
2638 to include mode argument.
2639 (machopic_legitimize_pic_address): Likewise.
2640 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2641 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2642 the macho_high expander and two define_insn entries.
2643
2644 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2645
2646 PR target/86805
2647 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2648
2649 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2650
2651 PR target/80672
2652 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2653 std::string::compare instead of std::string::find.
2654
2655 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2656
2657 * configure: Regenerate.
2658
2659 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2660
2661 PR middle-end/91920
2662 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2663 variables as shared.
2664
2665 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2666
2667 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2668 replaces the expander and two define_insn entries.
2669 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2670 call.
2671 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2672
2673 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2674
2675 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2676 (fibonacci_heap::nodes): Likewise.
2677 (fibonacci_heap::min_key): Likewise.
2678 (fibonacci_heap::min): Likewise.
2679
2680 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2681
2682 * cgraph.c (cgraph_node::get_fun): Make const.
2683 * cgraph.h (cgraph_node::get_fun): Likewise.
2684
2685 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2686
2687 PR target/91919
2688 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2689 of SImode MULT.
2690
2691 2019-09-27 Richard Biener <rguenther@suse.de>
2692
2693 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2694 (STMT_VINFO_REDUC_FN): Likewise.
2695 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2696 STMT_VINFO_REDUC_FN.
2697 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2698 for condition reductions.
2699 (vect_create_epilog_for_reduction): Compute all required state
2700 from the stmt to be vectorized.
2701 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2702 invocation and remove then dead code. For single def-use chains
2703 record only a single vector stmt.
2704
2705 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2706
2707 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2708 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2709 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2710 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2711 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2712 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2713 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2714 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2715 (aarch64_general_builtin_rsqrt): Declare.
2716 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2717 New function.
2718 (aarch64_mangle_builtin_type): Rename to...
2719 (aarch64_general_mangle_builtin_type): ...this.
2720 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2721 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2722 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2723 aarch64_general_add_builtin instead of add_builtin_function.
2724 (aarch64_init_builtins): Rename to...
2725 (aarch64_general_init_builtins): ...this. Use
2726 aarch64_general_add_builtin instead of add_builtin_function.
2727 (aarch64_builtin_decl): Rename to...
2728 (aarch64_general_builtin_decl): ...this and remove the unused
2729 arguments.
2730 (aarch64_expand_builtin): Rename to...
2731 (aarch64_general_expand_builtin): ...this and remove the unused
2732 arguments.
2733 (aarch64_builtin_rsqrt): Rename to...
2734 (aarch64_general_builtin_rsqrt): ...this.
2735 (aarch64_fold_builtin): Rename to...
2736 (aarch64_general_fold_builtin): ...this. Take the function subcode
2737 and return type as arguments. Remove the "ignored" argument.
2738 (aarch64_gimple_fold_builtin): Rename to...
2739 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2740 subcode and gcall as arguments, and return the new function call.
2741 * config/aarch64/aarch64.c (aarch64_init_builtins)
2742 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2743 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2744 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2745 instead of aarch64_builtin_rsqrt.
2746 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2747 instead of aarch64_mangle_builtin_type.
2748
2749 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2750
2751 * target.def (check_builtin_call): New target hook.
2752 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2753 * doc/tm.texi: Regenerate.
2754
2755 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2756
2757 PR tree-optimization/91909
2758 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2759 reduc_index parameter. When handling COND_REDUCTION, make sure
2760 that the reduction phi operand is in the correct arm of the
2761 VEC_COND_EXPR.
2762 (vectorizable_reduction): Pass reduc_index to the above.
2763
2764 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2765
2766 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2767 New combine pattern.
2768
2769 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2770
2771 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2772 loop instruction into new basic block before the loop when basic
2773 block that precedes the loop is empty.
2774
2775 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2776
2777 * function.c (gimplify_parameters): Use build_clobber function.
2778 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2779 * tree-inline.c (expand_call_inline): Likewise.
2780 * tree-sra.c (clobber_subtree): Likewise.
2781 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2782 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2783 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2784 lower_omp_target): Likewise.
2785 * omp-expand.c (expand_omp_for_generic): Likewise.
2786 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2787
2788 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2789
2790 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2791 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2792 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2793 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2794 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2795 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2796 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2797 LD_ELEMREV_V16QI): Use the PURE attribute.
2798
2799 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2800
2801 * config/rs6000/darwin.md: Replace the expanders for
2802 load_macho_picbase and reload_macho_picbase with use of '@'
2803 and <mode> in their respective define_insns.
2804 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2805 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2806 Pmode to gen_load_macho_picbase.
2807 * config/rs6000/rs6000.md: Likewise.
2808
2809 2019-09-25 Richard Biener <rguenther@suse.de>
2810
2811 PR tree-optimization/91896
2812 * tree-vect-loop.c (vectorizable_reduction): The single
2813 def-use cycle optimization cannot apply when there's more
2814 than one pattern stmt involved.
2815
2816 2019-09-26 Richard Biener <rguenther@suse.de>
2817
2818 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2819 loop-closed PHIs that are vect_internal_def.
2820 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2821 Simplify.
2822 (vectorizable_lc_phi): New.
2823 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2824 (vect_transform_stmt): Likewise.
2825 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2826 (vectorizable_lc_phi): Declare.
2827
2828 2019-09-26 Richard Biener <rguenther@suse.de>
2829
2830 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2831 vectorizable_reduction for vect_double_reduction_def.
2832 (vect_transform_loop): Likewise.
2833 (vect_create_epilog_for_reduction): Move double-reduction
2834 PHI creation and preheader argument setting of PHIs ...
2835 (vectorizable_reduction): ... here. Also process
2836 vect_double_reduction_def PHIs, creating the vectorized
2837 PHI nodes, remembering the scalar adjustment computed for
2838 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2839 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2840 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2841 Initialize STMT_VINFO_REDUC_CODE.
2842 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2843 (_stmt_vec_info::reduc_code): Likewise.
2844 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2845 (STMT_VINFO_REDUC_CODE): Likewise.
2846
2847 2019-09-26 Matt Turner <mattst88@gmail.com>
2848
2849 PR driver/69471
2850 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2851 (mtune=): Add Negative(mtune=).
2852 (mcpu=): Add Negative(mcpu=).
2853 * config/arm/arm.opt: Likewise.
2854
2855 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2856
2857 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2858 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2859 Define.
2860 * config/arm/arm_acle.h: Define builtins for the above.
2861 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2862 (simd32_op): Handle the above.
2863 * config/arm/unspecs.md: Define unspecs for the above.
2864
2865 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866
2867 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2868 (arm_<sup>xtb16): Likewise.
2869 (arm_usada8): Likewise.
2870 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2871 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2872 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2873 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2874 __sxtb16, __uxtab16, __uxtb16): Define.
2875 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2876 * config/arm/unspecs.md: Define unspecs for the above.
2877 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2878 (USXTB16): Likewise.
2879 (simd32_op): New int_attribute.
2880 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2881 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2882
2883 2019-09-26 Martin Jambor <mjambor@suse.cz>
2884
2885 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2886 internal_error.
2887
2888 2019-09-26 Martin Jambor <mjambor@suse.cz>
2889
2890 * ipa-sra.c (process_scan_results): Fix continue condition.
2891
2892 2019-09-26 Martin Liska <mliska@suse.cz>
2893
2894 PR tree-optimization/91885
2895 * tree-vectorizer.c (try_vectorize_loop_1): Add
2896 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2897
2898 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2899
2900 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2901 aarch64_plus_immediate rather than aarch64_uimm12_shift
2902 to test for valid PLUS immediates.
2903
2904 2019-09-25 Martin Jambor <mjambor@suse.cz>
2905
2906 * tree-sra.c (no_accesses_p): Remove.
2907 (no_accesses_representant): Likewise.
2908
2909 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2910
2911 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2912 consistenly.
2913 (vaba_s16): Likewise.
2914 (vaba_s32): Likewise.
2915 (vaba_u8): Likewise.
2916 (vaba_u16): Likewise.
2917 (vaba_u32): Likewise.
2918 (vabal_high_s8): Likewise.
2919 (vabal_high_s16): Likewise.
2920 (vabal_high_s32): Likewise.
2921 (vabal_high_u8): Likewise.
2922 (vabal_high_u16): Likewise.
2923 (vabal_high_u32): Likewise.
2924 (vabal_s8): Likewise.
2925 (vabal_s16): Likewise.
2926 (vabal_s32): Likewise.
2927 (vabal_u8): Likewise.
2928 (vabal_u16): Likewise.
2929 (vabal_u32): Likewise.
2930 (vabaq_s8): Likewise.
2931 (vabaq_s16): Likewise.
2932 (vabaq_s32): Likewise.
2933 (vabaq_u8): Likewise.
2934 (vabaq_u16): Likewise.
2935 (vabaq_u32): Likewise.
2936 (vabd_s8): Likewise.
2937 (vabd_s16): Likewise.
2938 (vabd_s32): Likewise.
2939 (vabd_u8): Likewise.
2940 (vabd_u16): Likewise.
2941 (vabd_u32): Likewise.
2942 (vabdl_high_s8): Likewise.
2943 (vabdl_high_s16): Likewise.
2944 (vabdl_high_s32): Likewise.
2945 (vabdl_high_u8): Likewise.
2946 (vabdl_high_u16): Likewise.
2947 (vabdl_high_u32): Likewise.
2948 (vabdl_s8): Likewise.
2949 (vabdl_s16): Likewise.
2950 (vabdl_s32): Likewise.
2951 (vabdl_u8): Likewise.
2952 (vabdl_u16): Likewise.
2953 (vabdl_u32): Likewise.
2954 (vabdq_s8): Likewise.
2955 (vabdq_s16): Likewise.
2956 (vabdq_s32): Likewise.
2957 (vabdq_u8): Likewise.
2958 (vabdq_u16): Likewise.
2959 (vabdq_u32): Likewise.
2960 (vaddlv_s8): Likewise.
2961 (vaddlv_s16): Likewise.
2962 (vaddlv_u8): Likewise.
2963 (vaddlv_u16): Likewise.
2964 (vaddlvq_s8): Likewise.
2965 (vaddlvq_s16): Likewise.
2966 (vaddlvq_s32): Likewise.
2967 (vaddlvq_u8): Likewise.
2968 (vaddlvq_u16): Likewise.
2969 (vaddlvq_u32): Likewise.
2970 (vcvtx_f32_f64): Likewise.
2971 (vcvtx_high_f32_f64): Likewise.
2972 (vcvtxd_f32_f64): Likewise.
2973 (vmla_n_f32): Likewise.
2974 (vmla_n_s16): Likewise.
2975 (vmla_n_s32): Likewise.
2976 (vmla_n_u16): Likewise.
2977 (vmla_n_u32): Likewise.
2978 (vmla_s8): Likewise.
2979 (vmla_s16): Likewise.
2980 (vmla_s32): Likewise.
2981 (vmla_u8): Likewise.
2982 (vmla_u16): Likewise.
2983 (vmla_u32): Likewise.
2984 (vmlal_high_n_s16): Likewise.
2985 (vmlal_high_n_s32): Likewise.
2986 (vmlal_high_n_u16): Likewise.
2987 (vmlal_high_n_u32): Likewise.
2988 (vmlal_high_s8): Likewise.
2989 (vmlal_high_s16): Likewise.
2990 (vmlal_high_s32): Likewise.
2991 (vmlal_high_u8): Likewise.
2992 (vmlal_high_u16): Likewise.
2993 (vmlal_high_u32): Likewise.
2994 (vmlal_n_s16): Likewise.
2995 (vmlal_n_s32): Likewise.
2996 (vmlal_n_u16): Likewise.
2997 (vmlal_n_u32): Likewise.
2998 (vmlal_s8): Likewise.
2999 (vmlal_s16): Likewise.
3000 (vmlal_s32): Likewise.
3001 (vmlal_u8): Likewise.
3002 (vmlal_u16): Likewise.
3003 (vmlal_u32): Likewise.
3004 (vmlaq_n_f32): Likewise.
3005 (vmlaq_n_s16): Likewise.
3006 (vmlaq_n_s32): Likewise.
3007 (vmlaq_n_u16): Likewise.
3008 (vmlaq_n_u32): Likewise.
3009 (vmlaq_s8): Likewise.
3010 (vmlaq_s16): Likewise.
3011 (vmlaq_s32): Likewise.
3012 (vmlaq_u8): Likewise.
3013 (vmlaq_u16): Likewise.
3014 (vmlaq_u32): Likewise.
3015 (vmls_n_f32): Likewise.
3016 (vmls_n_s16): Likewise.
3017 (vmls_n_s32): Likewise.
3018 (vmls_n_u16): Likewise.
3019 (vmls_n_u32): Likewise.
3020 (vmls_s8): Likewise.
3021 (vmls_s16): Likewise.
3022 (vmls_s32): Likewise.
3023 (vmls_u8): Likewise.
3024 (vmls_u16): Likewise.
3025 (vmls_u32): Likewise.
3026 (vmlsl_high_n_s16): Likewise.
3027 (vmlsl_high_n_s32): Likewise.
3028 (vmlsl_high_n_u16): Likewise.
3029 (vmlsl_high_n_u32): Likewise.
3030 (vmlsl_high_s8): Likewise.
3031 (vmlsl_high_s16): Likewise.
3032 (vmlsl_high_s32): Likewise.
3033 (vmlsl_high_u8): Likewise.
3034 (vmlsl_high_u16): Likewise.
3035 (vmlsl_high_u32): Likewise.
3036 (vmlsl_n_s16): Likewise.
3037 (vmlsl_n_s32): Likewise.
3038 (vmlsl_n_u16): Likewise.
3039 (vmlsl_n_u32): Likewise.
3040 (vmlsl_s8): Likewise.
3041 (vmlsl_s16): Likewise.
3042 (vmlsl_s32): Likewise.
3043 (vmlsl_u8): Likewise.
3044 (vmlsl_u16): Likewise.
3045 (vmlsl_u32): Likewise.
3046 (vmlsq_n_f32): Likewise.
3047 (vmlsq_n_s16): Likewise.
3048 (vmlsq_n_s32): Likewise.
3049 (vmlsq_n_u16): Likewise.
3050 (vmlsq_n_u32): Likewise.
3051 (vmlsq_s8): Likewise.
3052 (vmlsq_s16): Likewise.
3053 (vmlsq_s32): Likewise.
3054 (vmlsq_u8): Likewise.
3055 (vmlsq_u16): Likewise.
3056 (vmlsq_u32): Likewise.
3057 (vmovl_high_s8): Likewise.
3058 (vmovl_high_s16): Likewise.
3059 (vmovl_high_s32): Likewise.
3060 (vmovl_high_u8): Likewise.
3061 (vmovl_high_u16): Likewise.
3062 (vmovl_high_u32): Likewise.
3063 (vmovl_s8): Likewise.
3064 (vmovl_s16): Likewise.
3065 (vmovl_s32): Likewise.
3066 (vmovl_u8): Likewise.
3067 (vmovl_u16): Likewise.
3068 (vmovl_u32): Likewise.
3069 (vmovn_high_s16): Likewise.
3070 (vmovn_high_s32): Likewise.
3071 (vmovn_high_s64): Likewise.
3072 (vmovn_high_u16): Likewise.
3073 (vmovn_high_u32): Likewise.
3074 (vmovn_high_u64): Likewise.
3075 (vmovn_s16): Likewise.
3076 (vmovn_s32): Likewise.
3077 (vmovn_s64): Likewise.
3078 (vmovn_u16): Likewise.
3079 (vmovn_u32): Likewise.
3080 (vmovn_u64): Likewise.
3081 (vmull_high_n_s16): Likewise.
3082 (vmull_high_n_s32): Likewise.
3083 (vmull_high_n_u16): Likewise.
3084 (vmull_high_n_u32): Likewise.
3085 (vmull_high_p8): Likewise.
3086 (vmull_high_s8): Likewise.
3087 (vmull_high_s16): Likewise.
3088 (vmull_high_s32): Likewise.
3089 (vmull_high_u8): Likewise.
3090 (vmull_high_u16): Likewise.
3091 (vmull_high_u32): Likewise.
3092 (vmull_n_s16): Likewise.
3093 (vmull_n_s32): Likewise.
3094 (vmull_n_u16): Likewise.
3095 (vmull_n_u32): Likewise.
3096 (vmull_p8): Likewise.
3097 (vmull_s8): Likewise.
3098 (vmull_s16): Likewise.
3099 (vmull_s32): Likewise.
3100 (vmull_u8): Likewise.
3101 (vmull_u16): Likewise.
3102 (vmull_u32): Likewise.
3103 (vpadal_s8): Likewise.
3104 (vpadal_s16): Likewise.
3105 (vpadal_s32): Likewise.
3106 (vpadal_u8): Likewise.
3107 (vpadal_u16): Likewise.
3108 (vpadal_u32): Likewise.
3109 (vpadalq_s8): Likewise.
3110 (vpadalq_s16): Likewise.
3111 (vpadalq_s32): Likewise.
3112 (vpadalq_u8): Likewise.
3113 (vpadalq_u16): Likewise.
3114 (vpadalq_u32): Likewise.
3115 (vpaddl_s8): Likewise.
3116 (vpaddl_s16): Likewise.
3117 (vpaddl_s32): Likewise.
3118 (vpaddl_u8): Likewise.
3119 (vpaddl_u16): Likewise.
3120 (vpaddl_u32): Likewise.
3121 (vpaddlq_s8): Likewise.
3122 (vpaddlq_s16): Likewise.
3123 (vpaddlq_s32): Likewise.
3124 (vpaddlq_u8): Likewise.
3125 (vpaddlq_u16): Likewise.
3126 (vpaddlq_u32): Likewise.
3127 (vpaddq_s8): Likewise.
3128 (vpaddq_s16): Likewise.
3129 (vpaddq_s32): Likewise.
3130 (vpaddq_s64): Likewise.
3131 (vpaddq_u8): Likewise.
3132 (vpaddq_u16): Likewise.
3133 (vpaddq_u32): Likewise.
3134 (vpaddq_u64): Likewise.
3135 (vqdmulh_n_s16): Likewise.
3136 (vqdmulh_n_s32): Likewise.
3137 (vqdmulhq_n_s16): Likewise.
3138 (vqdmulhq_n_s32): Likewise.
3139 (vqmovn_high_s16): Likewise.
3140 (vqmovn_high_s32): Likewise.
3141 (vqmovn_high_s64): Likewise.
3142 (vqmovn_high_u16): Likewise.
3143 (vqmovn_high_u32): Likewise.
3144 (vqmovn_high_u64): Likewise.
3145 (vqmovun_high_s16): Likewise.
3146 (vqmovun_high_s32): Likewise.
3147 (vqmovun_high_s64): Likewise.
3148 (vqrdmulh_n_s16): Likewise.
3149 (vqrdmulh_n_s32): Likewise.
3150 (vqrdmulhq_n_s16): Likewise.
3151 (vqrdmulhq_n_s32): Likewise.
3152 (vrsqrte_u32): Likewise.
3153 (vrsqrteq_u32): Likewise.
3154 (vtst_p8): Likewise.
3155 (vtst_p16): Likewise.
3156 (vtst_p64): Likewise.
3157 (vtstq_p8): Likewise.
3158 (vtstq_p16): Likewise.
3159 (vtstq_p64): Likewise.
3160 (vaddlv_s32): Likewise.
3161 (vaddlv_u32): Likewise.
3162 (vqtbl1_p8): Likewise.
3163 (vqtbl1_s8): Likewise.
3164 (vqtbl1_u8): Likewise.
3165 (vqtbl1q_p8): Likewise.
3166 (vqtbl1q_s8): Likewise.
3167 (vqtbl1q_u8): Likewise.
3168 (vqtbx1_s8): Likewise.
3169 (vqtbx1_u8): Likewise.
3170 (vqtbx1_p8): Likewise.
3171 (vqtbx1q_s8): Likewise.
3172 (vqtbx1q_u8): Likewise.
3173 (vqtbx1q_p8): Likewise.
3174 (vtbl1_s8): Likewise.
3175 (vtbl1_u8): Likewise.
3176 (vtbl1_p8): Likewise.
3177 (vtbl2_s8): Likewise.
3178 (vtbl2_u8): Likewise.
3179 (vtbl2_p8): Likewise.
3180 (vtbl3_s8): Likewise.
3181 (vtbl3_u8): Likewise.
3182 (vtbl3_p8): Likewise.
3183 (vtbl4_s8): Likewise.
3184 (vtbl4_u8): Likewise.
3185 (vtbl4_p8): Likewise.
3186 (vtbx2_s8): Likewise.
3187 (vtbx2_u8): Likewise.
3188 (vtbx2_p8): Likewise.
3189 (vld1_f32): Likewise.
3190 (vld1_f64): Likewise.
3191 (vld1_p8): Likewise.
3192 (vld1_p16): Likewise.
3193 (vld1_p64): Likewise.
3194 (vld1_s8): Likewise.
3195 (vld1_s16): Likewise.
3196 (vld1_s32): Likewise.
3197 (vld1_s64): Likewise.
3198 (vld1_u8): Likewise.
3199 (vld1_u16): Likewise.
3200 (vld1_u32): Likewise.
3201 (vld1_u64): Likewise.
3202 (vld1q_f32): Likewise.
3203 (vld1q_f64): Likewise.
3204 (vld1q_p8): Likewise.
3205 (vld1q_p16): Likewise.
3206 (vld1q_p64): Likewise.
3207 (vld1q_s8): Likewise.
3208 (vld1q_s16): Likewise.
3209 (vld1q_s32): Likewise.
3210 (vld1q_s64): Likewise.
3211 (vld1q_u8): Likewise.
3212 (vld1q_u16): Likewise.
3213 (vld1q_u32): Likewise.
3214 (vld1q_u64): Likewise.
3215 (vpmax_s8): Likewise.
3216 (vpmax_s16): Likewise.
3217 (vpmax_s32): Likewise.
3218 (vpmax_u8): Likewise.
3219 (vpmax_u16): Likewise.
3220 (vpmax_u32): Likewise.
3221 (vpmaxq_s8): Likewise.
3222 (vpmaxq_s16): Likewise.
3223 (vpmaxq_s32): Likewise.
3224 (vpmaxq_u8): Likewise.
3225 (vpmaxq_u16): Likewise.
3226 (vpmaxq_u32): Likewise.
3227 (vpmax_f32): Likewise.
3228 (vpmaxq_f32): Likewise.
3229 (vpmaxq_f64): Likewise.
3230 (vpmaxqd_f64): Likewise.
3231 (vpmaxs_f32): Likewise.
3232 (vpmaxnm_f32): Likewise.
3233 (vpmaxnmq_f32): Likewise.
3234 (vpmaxnmq_f64): Likewise.
3235 (vpmaxnmqd_f64): Likewise.
3236 (vpmaxnms_f32): Likewise.
3237 (vpmin_s8): Likewise.
3238 (vpmin_s16): Likewise.
3239 (vpmin_s32): Likewise.
3240 (vpmin_u8): Likewise.
3241 (vpmin_u16): Likewise.
3242 (vpmin_u32): Likewise.
3243 (vpminq_s8): Likewise.
3244 (vpminq_s16): Likewise.
3245 (vpminq_s32): Likewise.
3246 (vpminq_u8): Likewise.
3247 (vpminq_u16): Likewise.
3248 (vpminq_u32): Likewise.
3249 (vpmin_f32): Likewise.
3250 (vpminq_f32): Likewise.
3251 (vpminq_f64): Likewise.
3252 (vpminqd_f64): Likewise.
3253 (vpmins_f32): Likewise.
3254 (vpminnm_f32): Likewise.
3255 (vpminnmq_f32): Likewise.
3256 (vpminnmq_f64): Likewise.
3257 (vpminnmqd_f64): Likewise.
3258 (vpminnms_f32): Likewise.
3259 (vmla_f32): Likewise.
3260 (vmlaq_f32): Likewise.
3261 (vmlaq_f64): Likewise.
3262 (vmls_f32): Likewise.
3263 (vmlsq_f32): Likewise.
3264 (vmlsq_f64): Likewise.
3265 (vqtbl2_s8): Likewise.
3266 (vqtbl2_u8): Likewise.
3267 (vqtbl2_p8): Likewise.
3268 (vqtbl2q_s8): Likewise.
3269 (vqtbl2q_u8): Likewise.
3270 (vqtbl2q_p8): Likewise.
3271 (vqtbl3_s8): Likewise.
3272 (vqtbl3_u8): Likewise.
3273 (vqtbl3_p8): Likewise.
3274 (vqtbl3q_s8): Likewise.
3275 (vqtbl3q_u8): Likewise.
3276 (vqtbl3q_p8): Likewise.
3277 (vqtbl4_s8): Likewise.
3278 (vqtbl4_u8): Likewise.
3279 (vqtbl4_p8): Likewise.
3280 (vqtbl4q_s8): Likewise.
3281 (vqtbl4q_u8): Likewise.
3282 (vqtbl4q_p8): Likewise.
3283 (vqtbx2_s8): Likewise.
3284 (vqtbx2_u8): Likewise.
3285 (vqtbx2_p8): Likewise.
3286 (vqtbx2q_s8): Likewise.
3287 (vqtbx2q_u8): Likewise.
3288 (vqtbx2q_p8): Likewise.
3289 (vqtbx3_s8): Likewise.
3290 (vqtbx3_u8): Likewise.
3291 (vqtbx3_p8): Likewise.
3292 (vqtbx3q_s8): Likewise.
3293 (vqtbx3q_u8): Likewise.
3294 (vqtbx3q_p8): Likewise.
3295 (vqtbx4_s8): Likewise.
3296 (vqtbx4_u8): Likewise.
3297 (vqtbx4_p8): Likewise.
3298 (vqtbx4q_s8): Likewise.
3299 (vqtbx4q_u8): Likewise.
3300 (vqtbx4q_p8): Likewise.
3301 (vrev16_p8): Likewise.
3302 (vrev16_s8): Likewise.
3303 (vrev16_u8): Likewise.
3304 (vrev16q_p8): Likewise.
3305 (vrev16q_s8): Likewise.
3306 (vrev16q_u8): Likewise.
3307 (vrev32_p8): Likewise.
3308 (vrev32_p16): Likewise.
3309 (vrev32_s8): Likewise.
3310 (vrev32_s16): Likewise.
3311 (vrev32_u8): Likewise.
3312 (vrev32_u16): Likewise.
3313 (vrev32q_p8): Likewise.
3314 (vrev32q_p16): Likewise.
3315 (vrev32q_s8): Likewise.
3316 (vrev32q_s16): Likewise.
3317 (vrev32q_u8): Likewise.
3318 (vrev32q_u16): Likewise.
3319 (vrev64_f32): Likewise.
3320 (vrev64_p8): Likewise.
3321 (vrev64_p16): Likewise.
3322 (vrev64_s8): Likewise.
3323 (vrev64_s16): Likewise.
3324 (vrev64_s32): Likewise.
3325 (vrev64_u8): Likewise.
3326 (vrev64_u16): Likewise.
3327 (vrev64_u32): Likewise.
3328 (vrev64q_f32): Likewise.
3329 (vrev64q_p8): Likewise.
3330 (vrev64q_p16): Likewise.
3331 (vrev64q_s8): Likewise.
3332 (vrev64q_s16): Likewise.
3333 (vrev64q_s32): Likewise.
3334 (vrev64q_u8): Likewise.
3335 (vrev64q_u16): Likewise.
3336 (vrev64q_u32): Likewise.
3337 (vsha1cq_u32): Likewise.
3338 (vsha1mq_u32): Likewise.
3339 (vsha1pq_u32): Likewise.
3340 (vsha1h_u32): Likewise.
3341 (vsha1su0q_u32): Likewise.
3342 (vsha1su1q_u32): Likewise.
3343 (vsha256hq_u32): Likewise.
3344 (vsha256h2q_u32): Likewise.
3345 (vsha256su0q_u32): Likewise.
3346 (vsha256su1q_u32): Likewise.
3347 (vmull_p64): Likewise.
3348 (vmull_high_p64): Likewise.
3349 (vsqrt_f32): Likewise.
3350 (vsqrtq_f32): Likewise.
3351 (vsqrt_f64): Likewise.
3352 (vsqrtq_f64): Likewise.
3353 (vst1_f32): Likewise.
3354 (vst1_f64): Likewise.
3355 (vst1_p8): Likewise.
3356 (vst1_p16): Likewise.
3357 (vst1_p64): Likewise.
3358 (vst1_s8): Likewise.
3359 (vst1_s16): Likewise.
3360 (vst1_s32): Likewise.
3361 (vst1_s64): Likewise.
3362 (vst1_u8): Likewise.
3363 (vst1_u16): Likewise.
3364 (vst1_u32): Likewise.
3365 (vst1_u64): Likewise.
3366 (vst1q_f32): Likewise.
3367 (vst1q_f64): Likewise.
3368 (vst1q_p8): Likewise.
3369 (vst1q_p16): Likewise.
3370 (vst1q_p64): Likewise.
3371 (vst1q_s8): Likewise.
3372 (vst1q_s16): Likewise.
3373 (vst1q_s32): Likewise.
3374 (vst1q_s64): Likewise.
3375 (vst1q_u8): Likewise.
3376 (vst1q_u16): Likewise.
3377 (vst1q_u32): Likewise.
3378 (vst1q_u64): Likewise.
3379 (vst1_s64_x2): Likewise.
3380 (vst1_u64_x2): Likewise.
3381 (vst1_f64_x2): Likewise.
3382 (vst1_s8_x2): Likewise.
3383 (vst1_p8_x2): Likewise.
3384 (vst1_s16_x2): Likewise.
3385 (vst1_p16_x2): Likewise.
3386 (vst1_s32_x2): Likewise.
3387 (vst1_u8_x2): Likewise.
3388 (vst1_u16_x2): Likewise.
3389 (vst1_u32_x2): Likewise.
3390 (vst1_f16_x2): Likewise.
3391 (vst1_f32_x2): Likewise.
3392 (vst1_p64_x2): Likewise.
3393 (vst1q_s8_x2): Likewise.
3394 (vst1q_p8_x2): Likewise.
3395 (vst1q_s16_x2): Likewise.
3396 (vst1q_p16_x2): Likewise.
3397 (vst1q_s32_x2): Likewise.
3398 (vst1q_s64_x2): Likewise.
3399 (vst1q_u8_x2): Likewise.
3400 (vst1q_u16_x2): Likewise.
3401 (vst1q_u32_x2): Likewise.
3402 (vst1q_u64_x2): Likewise.
3403 (vst1q_f16_x2): Likewise.
3404 (vst1q_f32_x2): Likewise.
3405 (vst1q_f64_x2): Likewise.
3406 (vst1q_p64_x2): Likewise.
3407 (vst1_s64_x3): Likewise.
3408 (vst1_u64_x3): Likewise.
3409 (vst1_f64_x3): Likewise.
3410 (vst1_s8_x3): Likewise.
3411 (vst1_p8_x3): Likewise.
3412 (vst1_s16_x3): Likewise.
3413 (vst1_p16_x3): Likewise.
3414 (vst1_s32_x3): Likewise.
3415 (vst1_u8_x3): Likewise.
3416 (vst1_u16_x3): Likewise.
3417 (vst1_u32_x3): Likewise.
3418 (vst1_f16_x3): Likewise.
3419 (vst1_f32_x3): Likewise.
3420 (vst1_p64_x3): Likewise.
3421 (vst1q_s8_x3): Likewise.
3422 (vst1q_p8_x3): Likewise.
3423 (vst1q_s16_x3): Likewise.
3424 (vst1q_p16_x3): Likewise.
3425 (vst1q_s32_x3): Likewise.
3426 (vst1q_s64_x3): Likewise.
3427 (vst1q_u8_x3): Likewise.
3428 (vst1q_u16_x3): Likewise.
3429 (vst1q_u32_x3): Likewise.
3430 (vst1q_u64_x3): Likewise.
3431 (vst1q_f16_x3): Likewise.
3432 (vst1q_f32_x3): Likewise.
3433 (vst1q_f64_x3): Likewise.
3434 (vst1q_p64_x3): Likewise.
3435 (vst2_s64): Likewise.
3436 (vst2_u64): Likewise.
3437 (vst2_f64): Likewise.
3438 (vst2_s8): Likewise.
3439 (vst2_p8): Likewise.
3440 (vst2_s16): Likewise.
3441 (vst2_p16): Likewise.
3442 (vst2_s32): Likewise.
3443 (vst2_u8): Likewise.
3444 (vst2_u16): Likewise.
3445 (vst2_u32): Likewise.
3446 (vst2_f16): Likewise.
3447 (vst2_f32): Likewise.
3448 (vst2_p64): Likewise.
3449 (vst2q_s8): Likewise.
3450 (vst2q_p8): Likewise.
3451 (vst2q_s16): Likewise.
3452 (vst2q_p16): Likewise.
3453 (vst2q_s32): Likewise.
3454 (vst2q_s64): Likewise.
3455 (vst2q_u8): Likewise.
3456 (vst2q_u16): Likewise.
3457 (vst2q_u32): Likewise.
3458 (vst2q_u64): Likewise.
3459 (vst2q_f16): Likewise.
3460 (vst2q_f32): Likewise.
3461 (vst2q_f64): Likewise.
3462 (vst2q_p64): Likewise.
3463 (vst3_s64): Likewise.
3464 (vst3_u64): Likewise.
3465 (vst3_f64): Likewise.
3466 (vst3_s8): Likewise.
3467 (vst3_p8): Likewise.
3468 (vst3_s16): Likewise.
3469 (vst3_p16): Likewise.
3470 (vst3_s32): Likewise.
3471 (vst3_u8): Likewise.
3472 (vst3_u16): Likewise.
3473 (vst3_u32): Likewise.
3474 (vst3_f16): Likewise.
3475 (vst3_f32): Likewise.
3476 (vst3_p64): Likewise.
3477 (vst3q_s8): Likewise.
3478 (vst3q_p8): Likewise.
3479 (vst3q_s16): Likewise.
3480 (vst3q_p16): Likewise.
3481 (vst3q_s32): Likewise.
3482 (vst3q_s64): Likewise.
3483 (vst3q_u8): Likewise.
3484 (vst3q_u16): Likewise.
3485 (vst3q_u32): Likewise.
3486 (vst3q_u64): Likewise.
3487 (vst3q_f16): Likewise.
3488 (vst3q_f32): Likewise.
3489 (vst3q_f64): Likewise.
3490 (vst3q_p64): Likewise.
3491 (vst4_s64): Likewise.
3492 (vst4_u64): Likewise.
3493 (vst4_f64): Likewise.
3494 (vst4_s8): Likewise.
3495 (vst4_p8): Likewise.
3496 (vst4_s16): Likewise.
3497 (vst4_p16): Likewise.
3498 (vst4_s32): Likewise.
3499 (vst4_u8): Likewise.
3500 (vst4_u16): Likewise.
3501 (vst4_u32): Likewise.
3502 (vst4_f16): Likewise.
3503 (vst4_f32): Likewise.
3504 (vst4_p64): Likewise.
3505 (vst4q_s8): Likewise.
3506 (vst4q_p8): Likewise.
3507 (vst4q_s16): Likewise.
3508 (vst4q_p16): Likewise.
3509 (vst4q_s32): Likewise.
3510 (vst4q_s64): Likewise.
3511 (vst4q_u8): Likewise.
3512 (vst4q_u16): Likewise.
3513 (vst4q_u32): Likewise.
3514 (vst4q_u64): Likewise.
3515 (vst4q_f16): Likewise.
3516 (vst4q_f32): Likewise.
3517 (vst4q_f64): Likewise.
3518 (vst4q_p64): Likewise.
3519 (vtbx4_s8): Likewise.
3520 (vtbx4_u8): Likewise.
3521 (vtbx4_p8): Likewise.
3522 (vtrn_f32): Likewise.
3523 (vtrn_p8): Likewise.
3524 (vtrn_p16): Likewise.
3525 (vtrn_s8): Likewise.
3526 (vtrn_s16): Likewise.
3527 (vtrn_s32): Likewise.
3528 (vtrn_u8): Likewise.
3529 (vtrn_u16): Likewise.
3530 (vtrn_u32): Likewise.
3531 (vtrnq_f32): Likewise.
3532 (vtrnq_p8): Likewise.
3533 (vtrnq_p16): Likewise.
3534 (vtrnq_s8): Likewise.
3535 (vtrnq_s16): Likewise.
3536 (vtrnq_s32): Likewise.
3537 (vtrnq_u8): Likewise.
3538 (vtrnq_u16): Likewise.
3539 (vtrnq_u32): Likewise.
3540 (vrsqrte_f16): Likewise.
3541 (vrsqrteq_f16): Likewise.
3542 (vsqrt_f16): Likewise.
3543 (vsqrtq_f16): Likewise.
3544 (vabd_f16): Likewise.
3545 (vabdq_f16): Likewise.
3546 (vpadd_f16): Likewise.
3547 (vpaddq_f16): Likewise.
3548 (vpmax_f16): Likewise.
3549 (vpmaxq_f16): Likewise.
3550 (vpmaxnm_f16): Likewise.
3551 (vpmaxnmq_f16): Likewise.
3552 (vpmin_f16): Likewise.
3553 (vpminq_f16): Likewise.
3554 (vpminnm_f16): Likewise.
3555 (vpminnmq_f16): Likewise.
3556 (vrsqrts_f16): Likewise.
3557 (vrsqrtsq_f16): Likewise.
3558
3559 2019-09-25 Richard Biener <rguenther@suse.de>
3560
3561 PR tree-optimization/91896
3562 * tree-vect-loop.c (vectorizable_reduction): The single
3563 def-use cycle optimization cannot apply when there's more
3564 than one pattern stmt involved.
3565
3566 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3567
3568 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3569 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3570 (reload_macho_picbase_<mode>): Likewise.
3571
3572 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3573
3574 * config/rs6000/rs6000.md: Move darwin.md include until
3575 after the definition of the mode iterators.
3576
3577 2019-09-23 Martin Sebor <msebor@redhat.com>
3578
3579 PR tree-optimization/91570
3580 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3581 non-constant minlen, maxlen and maxbound.
3582
3583 2019-09-24 Richard Biener <rguenther@suse.de>
3584
3585 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3586 Rename to...
3587 (_stmt_vec_info::cond_reduc_code): ... this.
3588 (_stmt_vec_info::induc_cond_initial_val): Add.
3589 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3590 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3591 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3592 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3593 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3594 the reduction code.
3595 (vect_create_epilog_for_reduction): Drop special
3596 induction condition reduction params, pass in reduction code
3597 and simplify.
3598 (vectorizable_reduction): Perform condition reduction kind
3599 selection only at analysis time. Adjust passing on state.
3600
3601 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3602
3603 * config/aarch64/aarch64.md (mov<mode>): Don't call
3604 aarch64_split_dimode_const_store on volatile MEM.
3605
3606 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3607
3608 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3609 Update hwcap string for fp16fml.
3610
3611 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3612
3613 PR middle-end/91866
3614 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3615 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3616
3617 2019-09-24 Martin Liska <mliska@suse.cz>
3618
3619 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3620 instead of if-elseif-elseif-...
3621 * gimple-expr.c (extract_ops_from_tree): Likewise.
3622 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3623 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3624
3625 2019-09-24 Martin Jambor <mjambor@suse.cz>
3626
3627 PR ipa/91831
3628 * ipa-param-manipulation.c (carry_over_param): Make a method of
3629 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3630 in case of a context mismatch.
3631 (ipa_param_body_adjustments::common_initialization): Adjust call to
3632 carry_over_param.
3633 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3634 private method carry_over_param.
3635
3636 2019-09-24 Martin Jambor <mjambor@suse.cz>
3637
3638 PR ipa/91832
3639 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3640
3641 2019-09-24 Richard Biener <rguenther@suse.de>
3642
3643 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3644 base.
3645
3646 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3647
3648 * config/arm/t-arm (arm-builtins.o): Add dependency on
3649 arm_acle_builtins.def.
3650
3651 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3652
3653 PR target/91823
3654 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3655 canonical CONST_INTs. Use gen_rtvec.
3656
3657 2019-09-23 Richard Biener <rguenther@suse.de>
3658
3659 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3660 avoid adjusting by + 0 or * 1.
3661 (vect_create_epilog_for_reduction): Get reduction code only
3662 when necessary. Deal with adjustment_def only when necessary.
3663
3664 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3665
3666 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3667 memmodel index.
3668
3669 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3670
3671 PR ipa/91835
3672 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3673 "ipa-sra".
3674
3675 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3676
3677 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3678 code. Merge code blocks with common conditionals. Use declared
3679 macro instead of a magic number for PIC level.
3680
3681 2019-09-21 Martin Sebor <msebor@redhat.com>
3682
3683 PR middle-end/91830
3684 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3685 Simplify computation of the offset of the referenced subobject.
3686
3687 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3688
3689 * config/darwin.c (machopic_legitimize_pic_address): Check
3690 for lra not reload.
3691
3692 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3693
3694 * ira-conflicts.c (can_use_same_reg_p): New function.
3695 (process_reg_shuffles): Take an insn parameter. Ignore cases
3696 in which input operand op_num could seemingly never be allocated
3697 to the same register as the destination.
3698 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3699
3700 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3701
3702 * simplify-rtx.c (neg_const_int): Replace with...
3703 (neg_poly_int_rtx): ...this new function.
3704 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3705 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3706 (simplify_plus_minus): Likewise for constant terms here.
3707
3708 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3709
3710 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3711 HOST_WIDE_PRINT_UNSIGNED.
3712
3713 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3714
3715 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3716 character.
3717
3718 2019-09-20 Maya Rashish <coypu@sdf.org>
3719
3720 PR target/86811
3721 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3722 Define to speculation_safe_value_not_needed.
3723
3724 2019-09-20 Richard Biener <rguenther@suse.de>
3725 Uros Bizjak <ubizjak@gmail.com>
3726
3727 PR target/91814
3728 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3729 previous change.
3730 (general_scalar_chain::convert_op): Force not suitable memory
3731 operands to a register.
3732
3733 2019-09-20 Richard Biener <rguenther@suse.de>
3734
3735 PR tree-optimization/91821
3736 * tree-vect-loop.c (check_reduction_path): Check we can compute
3737 reduc_idx.
3738 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3739 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3740 operands in canonical order.
3741 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3742 STMT_VINFO_REDUC_IDX.
3743 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3744 (STMT_VINFO_REDUC_IDX): Likewise.
3745
3746 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3747
3748 PR target/91269
3749 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3750
3751 2019-09-20 Richard Biener <rguenther@suse.de>
3752
3753 PR tree-optimization/91822
3754 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3755 parameter.
3756 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3757 for reduc_index in nested cycles, adjust vectorizable_condition
3758 calls.
3759 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3760 parameter.
3761 (vect_analyze_stmt): Adjust.
3762 (vect_transform_stmt): Likewise.
3763
3764 2019-09-20 Richard Biener <rguenther@suse.de>
3765
3766 PR target/91767
3767 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3768 Ensure there's a sequence point between allocating the new register
3769 and passing a reference to a reg via regno_reg_rtx.
3770
3771 2019-09-20 Martin Jambor <mjambor@suse.cz>
3772
3773 * coretypes.h (cgraph_edge): Declare.
3774 * ipa-param-manipulation.c: Rewrite.
3775 * ipa-param-manipulation.h: Likewise.
3776 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3777 (OBJS): Added ipa-sra.o.
3778 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3779 and ref_p, added fields param_adjustments and performed_splits.
3780 (struct cgraph_clone_info): Remove ags_to_skip and
3781 combined_args_to_skip, new field param_adjustments.
3782 (cgraph_node::create_clone): Changed parameters to use
3783 ipa_param_adjustments.
3784 (cgraph_node::create_virtual_clone): Likewise.
3785 (cgraph_node::create_virtual_clone_with_body): Likewise.
3786 (tree_function_versioning): Likewise.
3787 (cgraph_build_function_type_skip_args): Removed.
3788 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3789 using ipa_param_adjustments.
3790 (clone_of_p): Likewise.
3791 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3792 (build_function_decl_skip_args): Likewise.
3793 (duplicate_thunk_for_node): Adjust parameters using
3794 ipa_param_body_adjustments, copy param_adjustments instead of
3795 args_to_skip.
3796 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3797 (cgraph_node::create_virtual_clone): Likewise.
3798 (cgraph_node::create_version_clone_with_body): Likewise.
3799 (cgraph_materialize_clone): Likewise.
3800 (symbol_table::materialize_all_clones): Likewise.
3801 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3802 ipa_replace_map check.
3803 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3804 (initialize_node_lattices): Make aware that some parameters might have
3805 already been removed.
3806 (want_remove_some_param_p): New function.
3807 (create_specialized_node): Convert to using ipa_param_adjustments and
3808 deal with possibly pre-existing adjustments.
3809 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3810 (output_node_opt_summary): Do not stream removed fields. Stream
3811 parameter adjustments instead of argumetns to skip.
3812 (input_node_opt_summary): Likewise.
3813 (input_node_opt_summary): Likewise.
3814 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3815 * lto-streamer.h (lto_section_type): Likewise.
3816 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3817 param_body_adjs.
3818 (copy_decl_to_var): Declare.
3819 * tree-inline.c (update_clone_info): Do not remap old_tree.
3820 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3821 statements, walk all extra generated statements and remap their
3822 operands.
3823 (redirect_all_calls): Add killed SSA names to a hash set.
3824 (remap_ssa_name): Do not remap killed SSA names.
3825 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3826 half of functionality moved to ipa_param_body_adjustments.
3827 (copy_decl_to_var): Make exported.
3828 (copy_body): Destroy killed_new_ssa_names hash set.
3829 (expand_call_inline): Remap performed splits.
3830 (update_clone_info): Likewise.
3831 (tree_function_versioning): Simplify tree_map processing. Updated to
3832 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3833 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3834 for the new interface.
3835 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3836 (simd_clone_compute_base_data_type): Likewise.
3837 (simd_clone_init_simd_arrays): Adjust for the new interface.
3838 (simd_clone_adjust_argument_types): Likewise.
3839 (struct modify_stmt_info): Likewise.
3840 (ipa_simd_modify_stmt_ops): Likewise.
3841 (ipa_simd_modify_function_body): Likewise.
3842 (simd_clone_adjust): Likewise.
3843 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3844 (type_internals_preclude_sra_p): Make public.
3845 * tree-sra.h: New file.
3846 * ipa-inline-transform.c (save_inline_function_body): Update to
3847 refelct new tree_function_versioning signature.
3848 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3849 ipa_param_adjustments to get current parameter indices.
3850 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3851 (ipcp_update_bits): Likewise.
3852 (ipcp_update_vr): Likewise.
3853 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3854 * ipa-sra.c: New file.
3855 * multiple_target.c (create_target_clone): Update to reflet new type
3856 of create_version_clone_with_body.
3857 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3858 tree_function_versioning.
3859 (modify_function): Update to reflect new type of
3860 tree_function_versioning.
3861 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3862 * passes.def: Remove old IPA-SRA and add new one.
3863 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3864 (make_pass_ipa_sra): Declare.
3865 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3866 ipa_sra_retvalues.
3867 * doc/invoke.texi (ipa-sra-max-replacements): New.
3868
3869 2019-09-19 Martin Sebor <msebor@redhat.com>
3870
3871 PR middle-end/91631
3872 * builtins.c (component_size): Correct trailing array computation,
3873 rename to component_ref_size and move...
3874 (compute_objsize): Adjust.
3875 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3876 (builtin_access::strict): Do not consider memmove.
3877 (builtin_access::write_off): New function.
3878 (builtin_memref::builtin_memref): Initialize refsize.
3879 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3880 refsize.
3881 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3882 Handle refsize.
3883 (builtin_access::builtin_access): Initialize dstoff to destination
3884 refeence offset here instead of in maybe_diag_overlap. Adjust
3885 referencess even to unrelated objects. Adjust sizrange of bounded
3886 string functions to reflect bound. For strcat, adjust destination
3887 sizrange by that of source.
3888 (builtin_access::strcat_overlap): Adjust offsets and sizes
3889 to reflect the increase in destination sizrange above.
3890 (builtin_access::overlap): Do not set dstoff here but instead
3891 in builtin_access::builtin_access.
3892 (check_bounds_or_overlap): Use builtin_access::write_off.
3893 (maybe_diag_access_bounds): Add argument. Add informational notes.
3894 (dump_builtin_memref, dump_builtin_access): New functions.
3895 * tree.c (component_ref_size): ...to here.
3896 * tree.h (component_ref_size): Declare.
3897 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3898 nul in the size of the source string.
3899
3900 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3901
3902 PR c/67224
3903 * doc/cpp.texi: Document support for extended characters in
3904 identifiers.
3905 * doc/cppopts.texi: Likewise.
3906
3907 2019-09-19 Richard Biener <rguenther@suse.de>
3908
3909 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3910 (check_reduction_path): New overload having the path as result.
3911 (vect_is_simple_reduction): From the detected reduction
3912 path build a SLP reduction chain if possible.
3913
3914 2019-09-19 Richard Biener <rguenther@suse.de>
3915
3916 PR target/91814
3917 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3918 Force operand to a register if it isn't nonimmediate_operand.
3919
3920 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3921
3922 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3923 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3924 (logical_op): Remove code attribute.
3925 (logical_OP): Likewise.
3926
3927 2019-09-19 Martin Liska <mliska@suse.cz>
3928
3929 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3930 Use proper casting.
3931
3932 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3933
3934 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3935 registers with %R.
3936
3937 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3938 for NE comparison of TImode values.
3939 (aarch64_emit_load_exclusive): Add support for TImode.
3940 (aarch64_emit_store_exclusive): Likewise.
3941 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3942 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3943 Change iterator from ALLI to ALLI_TI.
3944 (@atomic_compare_and_swap<JUST_TI>): New.
3945 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3946 (aarch64_load_exclusive_pair): New.
3947 (aarch64_store_exclusive_pair): New.
3948 * config/aarch64/iterators.md (JUST_TI): New.
3949
3950 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3951 strong_zero_p for aarch64_track_speculation; unify some code paths;
3952 use aarch64_gen_compare_reg instead of open-coding.
3953
3954 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3955 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3956 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3957 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3958 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3959 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3960 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3961 (atomic_<atomic_op><ALLI>): Likewise.
3962 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3963 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3964 * doc/invoke.texi: Document -moutline-atomics.
3965
3966 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3967
3968 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3969 trivial predicate for condition branch.
3970 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3971 for switch case.
3972 (compute_bb_predicates): Update predicate based on post-dominating
3973 relationship.
3974 (analyze_function_body): Calculate post-dominating information.
3975
3976 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3977
3978 * tree-vectorizer.h (vectorizable_condition): Take an int
3979 reduction index instead of a boolean flag.
3980 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3981 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3982 reductions if the reduction accumulator is the "then" rather
3983 than the "else" value.
3984 (vect_analyze_stmt): Update call accordingly.
3985 (vect_transform_stmt): Likewise.
3986 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3987 asserting that the index is > 0.
3988
3989 2019-09-19 Martin Liska <mliska@suse.cz>
3990
3991 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3992 (sort_congruence_classes_by_decl_uid): Likewise.
3993 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3994 easier sorting.
3995 (sem_item_optimizer::merge_classes): Likewise.
3996
3997 2019-09-19 Richard Biener <rguenther@suse.de>
3998
3999 PR tree-optimization/91812
4000 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4001 volatile loads.
4002
4003 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4004
4005 * defaults.h (TARGET_UNIT): New macro.
4006 (target_unit): New type.
4007 * rtl.h (native_encode_rtx, native_decode_rtx)
4008 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4009 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4010 * rtlanal.c (subreg_lsb_1): Delete.
4011 (subreg_size_lsb): New function.
4012 * simplify-rtx.c: Include rtx-vector-builder.h
4013 (simplify_immed_subreg): Delete.
4014 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4015 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4016 functions.
4017 (simplify_subreg): Use them.
4018 (test_vector_subregs_modes, test_vector_subregs_repeating)
4019 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4020 (test_vector_subregs): New functions.
4021 (test_vector_ops): Call test_vector_subregs for integer vector
4022 modes with at least 2 elements.
4023
4024 2019-09-19 Richard Biener <rguenther@suse.de>
4025
4026 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4027 LOOP_VINFO_OPERANDS_SWAPPED.
4028 (parloops_is_simple_reduction): Likewise.
4029 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4030 initialize operands_swapped.
4031 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4032 (vect_is_slp_reduction): Do not swap operands.
4033 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4034 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4035
4036 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4037
4038 PR target/87007
4039 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4040 Add avx_partial_xmm_update.
4041
4042 2019-09-18 Jim Wilson <jimw@sifive.com>
4043
4044 PR target/91683
4045 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4046 (riscv_move_integer): Likewise.
4047 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4048 riscv_move_integer arg.
4049 (riscv_legitimize_move): Likewise.
4050 (riscv_force_temporary): New parameter in_splitter. Don't call
4051 force_reg if true.
4052 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4053 arg.
4054 (riscv_add_offset): Likewise.
4055 (riscv_split_symbol): New parameter in_splitter. Pass to
4056 riscv_force_temporary.
4057 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4058 arg.
4059 (riscv_move_integer): New parameter in_splitter. New local
4060 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4061 in_splitter TRUE.
4062 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4063 riscv_split_symbol, and riscv_force_temporary args.
4064 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4065 riscv_move_integer arg.
4066 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4067
4068 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4069
4070 PR target/90878
4071 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4072 hard register store cost to 6.
4073
4074 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4075
4076 PR target/91446
4077 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4078 pseudo register store cost from 3 to 6 to make it the same as
4079 QImode and HImode.
4080
4081 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4082
4083 PR target/91738
4084 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4085 (one_cmpldi2): Likewise.
4086 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4087 of the constant parts is simple.
4088 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4089 (logical_op): Add new code attribute.
4090 (logical_OP): Likewise.
4091 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4092 (arm_iordi_operand): Add predicate.
4093 (arm_xordi_operand): Add predicate.
4094
4095 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4096
4097 * config/arm/arm.md (maddsidi4): Remove expander.
4098 (mulsidi3adddi): Remove pattern.
4099 (mulsidi3adddi_v6): Likewise.
4100 (mulsidi3_nov6): Likewise.
4101 (mulsidi3_v6): Likewise.
4102 (umulsidi3): Remove expander.
4103 (umulsidi3_nov6): Remove pattern.
4104 (umulsidi3_v6): Likewise.
4105 (umulsidi3adddi): Likewise.
4106 (umulsidi3adddi_v6): Likewise.
4107 (<Us>mulsidi3): Add combined expander.
4108 (<Us>maddsidi4): Likewise.
4109 (<US>mull): Add combined umull and smull pattern.
4110 (<US>mlal): Likewise.
4111 * config/arm/iterators.md (Us): Add new iterator.
4112
4113 2019-09-18 Richard Biener <rguenther@suse.de>
4114
4115 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4116 swapping.
4117 (vectorize_fold_left_reduction): Remove assert.
4118 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4119 operand in position 2. Remove assert.
4120
4121 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4122
4123 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4124 (smulsi3_highpart_nov6): Remove pattern.
4125 (smulsi3_highpart_v6): Likewise.
4126 (umulsi3_highpart): Likewise.
4127 (umulsi3_highpart_nov6): Likewise.
4128 (umulsi3_highpart_v6): Likewise.
4129 (<US>mull_high): Add new combined multiply pattern.
4130
4131 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4132
4133 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4134 (arm_mulsi3_v6): Likewise.
4135 (mulsi3addsi_v6): Likewise.
4136 (mulsi3subsi): Likewise.
4137 (mul): Add new multiply pattern.
4138 (mla): Likewise.
4139 (mls): Likewise.
4140
4141 2019-09-18 Richard Biener <rguenther@suse.de>
4142
4143 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4144 (parloops_valid_reduction_input_p): Copy from
4145 valid_reduction_input_p.
4146 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4147 (parloops_needs_fold_left_reduction_p): Copy from
4148 needs_fold_left_reduction_p.
4149 (parloops_is_simple_reduction): Copy from
4150 vect_is_simple_reduction.
4151 (parloops_force_simple_reduction): Copy from
4152 vect_force_simple_reduction.
4153 (gather_scalar_reductions): Adjust.
4154 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4155 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4156
4157 2019-09-18 Richard Biener <rguenther@suse.de>
4158
4159 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4160 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4161 static.
4162 (vect_create_epilog_for_reduction): Remove dead code.
4163
4164 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4165
4166 * varasm.c (assemble_real): Generate canonical const_ints.
4167
4168 2019-09-18 Richard Biener <rguenther@suse.de>
4169
4170 PR lto/91763
4171 * lto-streamer-in.c (input_eh_regions): Move EH init to
4172 lto_materialize_function.
4173 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4174 Likewise.
4175
4176 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4177
4178 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4179 are INTEGER_CSTs.
4180
4181 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4182
4183 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4184 of checking specifically for INTEGER_CST.
4185
4186 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4187
4188 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4189 sizes instead of uhwi sizes.
4190
4191 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4192
4193 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4194 (add_const_value_attribute): Handle CONST_POLY_INT.
4195
4196 2019-09-18 Martin Liska <mliska@suse.cz>
4197
4198 * dbgcnt.def (store_merging): New counter.
4199 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4200 Use it in store merging.
4201
4202 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4203
4204 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4205 function.
4206 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4207 * config/arm/arm.c (arm_sched_variable_issue): New function.
4208 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4209
4210 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4211
4212 * config/arm/types.md (no_reservation): New reservation.
4213 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4214 no_insn here.
4215 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4216 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4217 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4218 * config/arm/arm1020e.md (1020alu_op): Likewise.
4219 * config/arm/arm1026ejs.md (alu_op): Likewise.
4220 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4221 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4222 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4223 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4224 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4225 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4226 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4227 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4228 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4229 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4230 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4231 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4232 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4233 * config/arm/fa526.md (526_alu_op): Likewise.
4234 * config/arm/fa606te.md (606te_alu_op): Likewise.
4235 * config/arm/fa626te.md (626te_alu_op): Likewise.
4236 * config/arm/fa726te.md (726te_alu_op): Likewise.
4237 * config/arm/xgene1.md (xgene1_nop): Likewise.
4238
4239 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4240
4241 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4242 "no_insn" to "branch".
4243
4244 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4245
4246 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4247
4248 2019-09-17 Richard Biener <rguenther@suse.de>
4249
4250 PR debug/91772
4251 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4252 was missing generate locations only once.
4253
4254 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4255
4256 PR ipa/91089
4257 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4258 option.
4259 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4260 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4261 for switch default case using range analysis information.
4262
4263 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4264
4265 PR target/91749
4266 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4267 mode attributed is supported by FDPIC.
4268
4269 2019-09-17 Richard Biener <rguenther@suse.de>
4270
4271 PR tree-optimization/91790
4272 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4273 use the correct DR for setting up realignment.
4274
4275 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4276
4277 PR target/91719
4278 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4279 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4280 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4281 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4282
4283 2019-09-16 Jason Merrill <jason@redhat.com>
4284
4285 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4286
4287 2019-09-16 Martin Liska <mliska@suse.cz>
4288
4289 * gimple-fold.c (or_comparisons_1): Remove rules moved
4290 to ...
4291 * match.pd: ... here.
4292
4293 2019-09-16 Martin Liska <mliska@suse.cz>
4294
4295 * gimple-fold.c (or_comparisons_1): Remove rules
4296 moved to ...
4297 * match.pd: ... here.
4298
4299 2019-09-16 Martin Liska <mliska@suse.cz>
4300
4301 * genmatch.c (dt_node::append_simplify): Do not print
4302 warning when we have duplicate patterns belonging
4303 to a same simplify rule.
4304 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4305 (maybe_fold_comparisons_from_match_pd): Handle
4306 tcc_comparison as a results.
4307 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4308
4309 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4310 Qi Feng <ffengqi@linux.ibm.com>
4311
4312 PR middle-end/88784
4313 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4314 (x > y && x == XXX_MIN): Optimize into 'false'.
4315 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4316 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4317 (x < y && x == XXX_MAX): Optimize into 'false'.
4318 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4319 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4320 (x <= y || x != XXX_MIN): Optimize into 'true'.
4321 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4322 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4323 (x >= y || x != XXX_MAX): Optimize into 'true'.
4324 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4325
4326 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4327 Martin Liska <mliska@suse.cz>
4328
4329 * gimple-fold.c (and_comparisons_1): Add type as first
4330 argument.
4331 (and_var_with_comparison): Likewise.
4332 (and_var_with_comparison_1): Likewise.
4333 (or_comparisons_1): Likewise.
4334 (or_var_with_comparison): Likewise.
4335 (or_var_with_comparison_1): Likewise.
4336 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4337 (maybe_fold_or_comparisons): Likewise.
4338 (maybe_fold_comparisons_from_match_pd): New.
4339 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4340 (maybe_fold_or_comparisons): Likewise.
4341 * gimple.c (gimple_size): Make it public and add num_ops argument.
4342 (gimple_init): New function.
4343 (gimple_alloc): Call gimple_init.
4344 * gimple.h (gimple_size): New.
4345 (gimple_init): Likewise.
4346 * tree-if-conv.c (fold_or_predicates): Pass type.
4347 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4348 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4349 (optimize_vec_cond_expr): Likewise.
4350 (ovce_extract_ops): Return type of conditional expression.
4351 * tree-ssanames.c (init_ssa_name_imm_use): New.
4352 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4353 * tree-ssanames.h (init_ssa_name_imm_use): New.
4354
4355 2019-09-16 Richard Biener <rguenther@suse.de>
4356
4357 PR tree-optimization/91756
4358 PR tree-optimization/87132
4359 * tree-ssa-alias.h (enum translate_flags): New.
4360 (get_continuation_for_phi): Use it instead of simple bool flag.
4361 (walk_non_aliased_vuses): Likewise.
4362 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4363 (get_continuation_for_phi): When looking across backedges only
4364 disallow valueization.
4365 (walk_non_aliased_vuses): Adjust.
4366 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4367 if requested.
4368
4369 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4370
4371 PR middle-end/80791
4372 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4373 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4374 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4375 * target.def (have_count_reg_decr_p): New hook.
4376 (doloop_cost_for_generic): Likewise.
4377 (doloop_cost_for_address): Likewise.
4378 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4379 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4380 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4381 * doc/tm.texi: Regenerate.
4382 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4383 addend.
4384 (record_group): Init doloop_p.
4385 (add_candidate_1): Add optional argument doloop, change the handlings
4386 accordingly.
4387 (add_candidate): Likewise.
4388 (generic_predict_doloop_p): Update attribute.
4389 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4390 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4391 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4392 MIN_EXPR.
4393 (get_computation_cost): Update for doloop IV cand extra cost.
4394 (determine_group_iv_cost_cond): Update for doloop IV cand.
4395 (determine_iv_cost): Likewise.
4396 (ivopts_estimate_reg_pressure): Likewise.
4397 (may_eliminate_iv): Update handlings for doloop IV cand.
4398 (add_iv_candidate_for_doloop): New function.
4399 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4400 (iv_ca_set_no_cp): Update for doloop IV cand.
4401 (iv_ca_set_cp): Likewise.
4402 (iv_ca_dump): Dump register cost.
4403 (find_doloop_use): New function.
4404 (analyze_and_mark_doloop_use): Likewise.
4405 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4406
4407 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4408
4409 PR middle-end/91708
4410 * cse.c (cse_insn): Do not replace anything with a
4411 MEM.
4412
4413 2019-09-13 Ian Lance Taylor <iant@golang.org>
4414
4415 * doc/invoke.texi (Optimize Options): Fix typo.
4416
4417 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4418
4419 PR tree-optimization/89386
4420 * config/i386/sse.md (smulhrs<mode>3): New expander.
4421 (smulhrsv4hi3): Ditto.
4422
4423 2019-09-12 Richard Biener <rguenther@suse.de>
4424
4425 PR tree-optimization/91750
4426 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4427 in the type of the evolution.
4428
4429 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4430
4431 PR tree-optimization/89386
4432 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4433 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4434 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4435 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4436 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4437 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4438 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4439 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4440 (su, r): Handle the unspecs above.
4441 (bt): New int attribute.
4442 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4443 * internal-fn.c (first_commutative_argument): Commutativity info for
4444 above.
4445 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4446 (umulhrs_optab): New optabs.
4447 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4448 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4449 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4450 function.
4451 (vect_vect_recog_func_ptrs): Add it.
4452
4453 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4454
4455 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4456 code.
4457
4458 2019-09-11 Nathan Sidwell <nathan@acm.org>
4459
4460 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4461 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4462
4463 2019-09-11 Richard Biener <rguenther@suse.de>
4464
4465 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4466 * lto-wrapper.c (merge_and_complain): Pick up -g.
4467 (append_compiler_options): Likewise.
4468 (run_gcc): Re-instantiate handling -g0 at link-time.
4469 * doc/invoke.texi (flto): Document debug info generation.
4470
4471 2019-09-11 Richard Biener <rguenther@suse.de>
4472
4473 PR tree-optimization/90387
4474 * vr-values.c (vr_values::extract_range_basic): After inlining
4475 simplify non-constant __builtin_constant_p to false.
4476
4477 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4478
4479 PR rtl-optimization/89795
4480 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4481 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4482
4483 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4484
4485 PR tree-optimization/91723
4486 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4487 instead of pointer equality when checking if argument vectypes are
4488 the same.
4489
4490 PR middle-end/91725
4491 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4492 of get_nonzero_bits, only call it for integral types.
4493
4494 2019-09-11 Richard Biener <rguenther@suse.de>
4495
4496 Revert
4497 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4498
4499 * match.pd: Add flag_unsafe_math_optimizations check
4500 before deciding on the widest type in a binary math operation.
4501
4502 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4503
4504 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4505 and CALL_REALLY_USED_REGISTERS must be defined, and that
4506 CALL_REALLY_USED_REGISTERS is preferred.
4507 * doc/tm.texi: Regenerate.
4508 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4509 (call_really_used_regs): Likewise.
4510 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4511 CALL_REALLY_USED_REGISTERS are defined.
4512 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4513 initial value if defined.
4514 (initial_call_really_used_regs): Delete.
4515 (saved_call_really_used_regs): Likewise.
4516 (CALL_REALLY_USED_REGNO_P): Likewise.
4517 (init_reg_sets): Remove handling of call_really_used_regs.
4518 (save_register_info, restore_register_info, globalize_reg): Likewise.
4519 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4520 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4521 outside operand_reg_set.
4522 (fix_register): Don't change call_used_regs if
4523 CALL_REALLY_USED_REGISTERS is defined.
4524 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4525 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4526 instead of call_really_used_regs.
4527 (csky_conditional_register_usage): Remove the old handling of
4528 call_used_regs and change the handling of call_really_used_regs
4529 to use call_used_regs instead.
4530 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4531 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4532 making a register fixed.
4533 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4534 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4535 instead of call_really_used_regs.
4536 (m32r_conditional_register_usage): Don't set call_used_regs when
4537 making a register fixed.
4538 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4539 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4540 instead of call_really_used_regs.
4541 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4542 (mips_cfun_call_saved_reg_p): Likewise.
4543 (mips_swap_registers): Remove the old handling of call_used_regs
4544 and change the handling of call_really_used_regs to use call_used_regs
4545 instead.
4546 (mips_conditional_register_usage): Likewise.
4547 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4548 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4549 instead of call_really_used_regs.
4550 (mn10300_get_live_callee_saved_regs): Likewise.
4551 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4552 (mn10300_conditional_register_usage): Don't set call_used_regs when
4553 making a register fixed.
4554 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4555 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4556 Remove the old handling of call_used_regs and change the handling
4557 of call_really_used_regs to use call_used_regs instead.
4558 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4559 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4560 instead of call_really_used_regs.
4561 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4562 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4563 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4564 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4565 (s390_conditional_register_usage): Remove the old handling of
4566 call_used_regs and change the handling of call_really_used_regs
4567 to use call_used_regs instead.
4568 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4569 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4570 (sh_fix_range, reg_unused_after): Likewise.
4571 (sh_conditional_register_usage): Remove the old handling of
4572 call_used_regs and change the handling of call_really_used_regs
4573 to use call_used_regs instead.
4574 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4575 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4576 call_used_regs when making a register fixed.
4577 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4578 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4579 call_used_regs when making a register fixed.
4580 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4581 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4582 set call_used_regs when making a register fixed.
4583 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4584 * config/visium/visium.c (visium_conditional_register_usage): Remove
4585 the old handling of call_used_regs and change the handling of
4586 call_really_used_regs to use call_used_regs instead.
4587
4588 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4589
4590 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4591 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4592 * reginfo.c (call_used_regs): New macro.
4593
4594 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4595
4596 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4597 fixed_regs test.
4598 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4599 (bpf_expand_epilogue): Likewise.
4600 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4601 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4602 (ft32_expand_epilogue): Likewise.
4603 * config/i386/i386.c (ix86_save_reg): Likewise.
4604 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4605 (moxie_expand_epilogue): Likewise.
4606 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4607 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4608 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4609
4610 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4611
4612 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4613 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4614 instead of testing call_used_regs directly.
4615 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4616 (aarch64_components_for_bb): Likewise.
4617 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4618 * config/arc/arc.c (arc_must_save_register): Likewise.
4619 (arc_epilogue_uses): Likewise.
4620 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4621 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4622 (arm_compute_save_reg0_reg12_mask): Likewise.
4623 (arm_compute_save_core_reg_mask): Likewise.
4624 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4625 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4626 (cmse_nonsecure_entry_clear_before_return): Likewise.
4627 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4628 (arm_expand_epilogue): Likewise.
4629 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4630 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4631 (_reg_unused_after): Likewise.
4632 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4633 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4634 (add_to_reg, hwloop_optimize): Likewise.
4635 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4636 (bpf_expand_epilogue): Likewise.
4637 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4638 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4639 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4640 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4641 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4642 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4643 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4644 * config/frv/frv.c (frv_stack_info): Likewise.
4645 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4646 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4647 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4648 (move_callee_saved_registers): Likewise.
4649 * config/h8300/h8300.c (byte_reg): Likewise.
4650 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4651 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4652 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4653 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4654 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4655 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4656 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4657 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4658 * config/m32c/m32c.c (need_to_save): Likewise.
4659 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4660 * config/mcore/mcore.c (calc_live_regs): Likewise.
4661 * config/microblaze/microblaze.c (microblaze_must_save_register):
4662 Likewise.
4663 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4664 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4665 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4666 (mmix_expand_epilogue): Likewise.
4667 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4668 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4669 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4670 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4671 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4672 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4673 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4674 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4675 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4676 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4677 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4678 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4679 * config/rl78/rl78.c (need_to_save): Likewise.
4680 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4681 (rs6000_stack_info, generate_set_vrsave): Likewise.
4682 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4683 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4684 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4685 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4686 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4687 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4688 (save_local_or_in_reg_p): Likewise.
4689 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4690 (xstormy16_epilogue_uses): Likewise.
4691 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4692 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4693 * config/v850/v850.c (compute_register_save_size): Likewise.
4694 * config/vax/vax.c (vax_expand_prologue): Likewise.
4695 * config/visium/visium.c (visium_save_reg_p): Likewise.
4696 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4697 * cselib.c (cselib_process_insn): Likewise.
4698 * df-scan.c (df_get_entry_block_def_set): Likewise.
4699 * function.c (aggregate_value_p): Likewise.
4700 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4701 * ira-lives.c (process_bb_node_lives): Likewise.
4702 * ira.c (do_reload): Likewise.
4703 * lra-lives.c (process_bb_lives): Likewise.
4704 * lra-remat.c (lra_remat): Likewise.
4705 * lra.c (lra): Likewise.
4706 * postreload.c (reload_combine_recognize_pattern): Likewise.
4707 (reload_cse_move2add): Likewise.
4708 * recog.c (peep2_find_free_register): Likewise.
4709 * regrename.c (check_new_reg_p): Likewise.
4710 * reload.c (find_equiv_reg): Likewise.
4711 * reload1.c (reload, find_reg): Likewise.
4712 * sel-sched.c (init_hard_regs_data): Likewise.
4713
4714 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4715
4716 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4717 regs_invalidated_by_call & ~fixed_reg_set instead of
4718 call_used_or_fixed_regs & ~fixed_reg_set.
4719 * config/sh/sh.c (output_stack_adjust): Likewise.
4720
4721 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4722
4723 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4724 (call_used_reg_set): Delete.
4725 (call_used_or_fixed_regs): New macro.
4726 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4727 of call_used_reg_set.
4728 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4729 instead of call_used_regs.
4730 (save_call_clobbered_regs): Likewise.
4731 * cfgcleanup.c (old_insns_match_p): Likewise.
4732 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4733 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4734 Likewise.
4735 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4736 * config/sh/sh.c (output_stack_adjust): Likewise.
4737 * final.c (collect_fn_hard_reg_usage): Likewise.
4738 * ira-build.c (ira_build): Likewise.
4739 * ira-color.c (calculate_saved_nregs): Likewise.
4740 (allocno_reload_assign, calculate_spill_cost): Likewise.
4741 * ira-conflicts.c (ira_build_conflicts): Likewise.
4742 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4743 * ira-lives.c (process_bb_node_lives): Likewise.
4744 * ira.c (setup_reg_renumber): Likewise.
4745 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4746 * lra-constraints.c (need_for_call_save_p): Likewise.
4747 (need_for_split_p, inherit_in_ebb): Likewise.
4748 * lra-lives.c (process_bb_lives): Likewise.
4749 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4750 * postreload.c (reload_combine): Likewise.
4751 * regrename.c (find_rename_reg): Likewise.
4752 * reload1.c (reload_as_needed): Likewise.
4753 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4754 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4755 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4756
4757 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4758
4759 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4760 (no_caller_save_reg_set): Delete.
4761 * caller-save.c (init_caller_save): Don't initialize it.
4762 * ira-conflicts.c (ira_build_conflicts): Calculate
4763 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4764
4765 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4766
4767 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4768 (target_hard_regs::x_savable_regs): New field.
4769 (call_fixed_reg_set): Delete.
4770 (savable_regs): New macro,
4771 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4772 (init_reg_sets_1): Likewise. Initialize savable_regs.
4773 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4774 for all registers. Set savable_regs instead of call_fixed_reg_set.
4775 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4776 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4777 * config/sh/sh.c (output_stack_adjust): Likewise.
4778
4779 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4780
4781 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4782 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4783 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4784
4785 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4786
4787 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4788 * rtlanal.c (get_call_rtx_from): Likewise.
4789 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4790 than the pattern to get_call_rtx_from.
4791 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4792 an rtx_insn * instead of an rtx.
4793 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4794
4795 2019-09-10 Martin Liska <mliska@suse.cz>
4796
4797 * common.opt: Use newly added WarnRemoved.
4798 * config/aarch64/aarch64.opt: Likewise.
4799 * config/arm/arm.opt: Likewise.
4800 * config/i386/i386.opt: Likewise.
4801 * config/ia64/ia64.opt: Likewise.
4802 * config/rs6000/rs6000.opt: Likewise.
4803 * doc/options.texi: Document WarnRemoved properly.
4804 * dwarf2out.c (gen_producer_string): Handle renamed
4805 OPT_SPECIAL_warn_removed.
4806 * lto-opts.c (lto_write_options): Likewise.
4807 * lto-wrapper.c (merge_and_complain): Likewise.
4808 * opts-common.c (decode_cmdline_option): Likewise.
4809 (prune_options): Likewise.
4810 (read_cmdline_option): Likewise.
4811 (control_warning_option): Likewise.
4812 * opts.c (print_filtered_help): Likewise.
4813 * optc-gen.awk: Parse for WarnRemoved and make usage
4814 of Deprecated an error.
4815 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4816
4817 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4818
4819 * doc/install.texi: Fix syntax for html generation.
4820
4821 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4822
4823 PR middle-end/91680
4824 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4825 the shift type to type.
4826
4827 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4828
4829 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4830 FDPIC mode.
4831 (stack_protect_combined_test_insn): Likewise.
4832
4833 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4834 Mickaël Guêné <mickael.guene@st.com>
4835
4836 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4837 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4838 (load_tp_soft_fdpic): New pattern.
4839 (load_tp_soft): Disable in FDPIC mode.
4840
4841 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4842 Mickaël Guêné <mickael.guene@st.com>
4843
4844 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4845 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4846 (arm_call_tls_get_addr): Add FDPIC support.
4847 (legitimize_tls_address): Likewise.
4848 (arm_emit_tls_decoration): Likewise.
4849
4850 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4851 Mickaël Guêné <mickael.guene@st.com>
4852
4853 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4854 support.
4855 (arm_trampoline_init): Likewise.
4856 (arm_trampoline_adjust_address): Likewise.
4857 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4858
4859 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4860 Mickaël Guêné <mickael.guene@st.com>
4861
4862 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4863 (legitimize_pic_address): Enforce binding rules on function
4864 pointers in FDPIC mode.
4865 (arm_assemble_integer): Likewise.
4866
4867 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4868 Mickaël Guêné <mickael.guene@st.com>
4869
4870 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4871 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4872 FDPIC.
4873
4874 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4875 Mickaël Guêné <mickael.guene@st.com>
4876
4877 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4878 field.
4879
4880 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4881 Mickaël Guêné <mickael.guene@st.com>
4882
4883 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4884 in FDPIC mode.
4885 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4886 new function.
4887 * config/arm/arm.c (arm_option_override): Define pic register to
4888 FDPIC_REGNUM.
4889 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4890 have no decl or go through PLT.
4891 (calculate_pic_address_constant): New function.
4892 (legitimize_pic_address): Call calculate_pic_address_constant.
4893 (arm_load_pic_register): Handle TARGET_FDPIC.
4894 (arm_is_segment_info_known): New function.
4895 (arm_pic_static_addr): Add support for FDPIC.
4896 (arm_load_function_descriptor): New function.
4897 (arm_emit_call_insn): Add support for FDPIC.
4898 (arm_assemble_integer): Add support for FDPIC.
4899 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4900 Define. (FDPIC_REGNUM): New define.
4901 * config/arm/arm.md (call): Add support for FDPIC.
4902 (call_value): Likewise.
4903 (restore_pic_register_after_call): New pattern.
4904 (untyped_call): Disable if FDPIC.
4905 (untyped_return): Likewise.
4906 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4907
4908 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4909 Mickaël Guêné <mickael.guene@st.com>
4910
4911 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4912 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4913 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4914 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4915 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4916 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4917 * config/arm/uclinuxfdpiceabi.h: New file.
4918
4919 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4920
4921 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4922
4923 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4924 Mickaël Guêné <mickael.guene@st.com>
4925
4926 * config/arm/arm.opt: Add -mfdpic option.
4927 * doc/invoke.texi: Add documentation for -mfdpic.
4928
4929 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4930
4931 * expmed.c (extract_bit_field): Update function comment
4932 regarding alt_rtl.
4933 * expr.c (expand_expr_real): Update function comment
4934 regarding alt_rtl.
4935 (expand_misaligned_mem_ref): New helper function.
4936 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4937 Remove duplicate assignment to "base" at case MEM_REF.
4938 Remove a shadowed variable "unsignedp" at case VCE.
4939
4940 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4941
4942 * regset.h (regs_invalidated_by_call_regset): Delete.
4943 (fixed_reg_set_regset): Likewise.
4944 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4945 (fixed_reg_set_regset, persistent_obstack): Likewise.
4946 (init_reg_sets_1, globalize_reg): Update accordingly.
4947 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4948 instead of a bitmap.
4949 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4950 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4951 instead of regs_invalidated_by_call_regset.
4952 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4953 * df-scan.c (df_scan_start_dump): Likewise.
4954 * dse.c (copy_fixed_regs): Likewise.
4955 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4956
4957 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4958
4959 * array-traits.h: New file.
4960 * coretypes.h (array_traits, bitmap_view): New types.
4961 * bitmap.h: Include "array-traits.h"
4962 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4963 (base_bitmap_view, bitmap_view): New classes.
4964 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4965 * hard-reg-set.h: Include array-traits.h.
4966 (array_traits<HARD_REG_SET>): New struct.
4967 * regset.h (IOR_REG_SET_HRS): New macro.
4968 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4969 rather than iterating over each hard register.
4970 * sched-deps.c (sched_analyze_insn): Likewise.
4971 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4972
4973 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4974
4975 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4976 instead of a HARD_REG_SET *.
4977 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4978 (ira_build): Update call accordingly.
4979 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4980
4981 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4982
4983 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4984 (HARD_REG_SET::operator!=): Likewise.
4985 (hard_reg_set_equal_p): Delete.
4986 * cfgcleanup.c (old_insns_match_p): Use == instead of
4987 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4988 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4989 (add_allocno_hard_regs_to_forest): Likewise.
4990 (setup_allocno_available_regs_num): Likewise.
4991 * ira.c (setup_pressure_classes): Likewise.
4992 (setup_allocno_and_important_classes): Likewise.
4993 (setup_reg_class_relations): Likewise.
4994 * lra-lives.c (process_bb_lives): Likewise.
4995 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4996
4997 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4998
4999 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5000 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5001 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5002 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5003 Likewise.
5004 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5005 * ira.c (setup_reg_renumber): Likewise.
5006 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5007 * regrename.c (regrename_find_superclass): Likewise.
5008 * reload1.c (find_reg): Likewise.
5009
5010 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5011
5012 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5013 * caller-save.c (setup_save_areas): Use "&~" instead of
5014 AND_COMPL_HARD_REG_SET.
5015 (save_call_clobbered_regs): Likewise.
5016 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5017 Likewise.
5018 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5019 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5020 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5021 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5022 (mips_conditional_register_usage): Likewise.
5023 * config/sh/sh.c (output_stack_adjust): Likewise.
5024 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5025 (setup_profitable_hard_regs): Likewise.
5026 (get_conflict_and_start_profitable_regs): Likewise.
5027 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5028 (ira_build_conflicts): Likewise.
5029 * ira-costs.c (restrict_cost_classes): Likewise.
5030 (setup_regno_cost_classes_by_aclass): Likewise.
5031 * ira-lives.c (process_bb_node_lives): Likewise.
5032 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5033 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5034 (setup_allocno_and_important_classes, setup_class_translate_array)
5035 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5036 Likewise.
5037 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5038 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5039 (process_alt_operands, inherit_in_ebb): Likewise.
5040 * lra-eliminations.c (update_reg_eliminate): Likewise.
5041 * lra-lives.c (process_bb_lives): Likewise.
5042 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5043 * resource.c (find_dead_or_set_registers): Likewise.
5044 (mark_target_live_regs): Likewise.
5045 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5046 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5047 (implicit_clobber_conflict_p): Likewise.
5048 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5049 (try_shrink_wrapping): Likewise.
5050
5051 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5052
5053 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5054 (HARD_REG_SET::operator|=): Likewise.
5055 (IOR_HARD_REG_SET): Delete.
5056 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5057 IOR_HARD_REG_SET.
5058 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5059 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5060 * final.c (collect_fn_hard_reg_usage): Likewise.
5061 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5062 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5063 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5064 (propagate_some_info_from_allocno): Likewise.
5065 (copy_info_to_removed_store_destinations): Likewise.
5066 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5067 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5068 (fast_allocation): Likewise.
5069 * ira-conflicts.c (ira_build_conflicts): Likewise.
5070 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5071 (process_bb_node_lives): Likewise.
5072 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5073 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5074 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5075 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5076 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5077 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5078 (process_bb_lives): Likewise.
5079 * lra-spills.c (assign_spill_hard_regs): Likewise.
5080 * postreload.c (reload_combine): Likewise.
5081 * reginfo.c (init_reg_sets_1): Likewise.
5082 * regrename.c (merge_overlapping_regs, find_rename_reg)
5083 (merge_chains): Likewise.
5084 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5085 (find_reload_regs, finish_spills, choose_reload_regs_init)
5086 (emit_reload_insns): Likewise.
5087 * reorg.c (redundant_insn): Likewise.
5088 * resource.c (find_dead_or_set_registers, mark_set_resources)
5089 (mark_target_live_regs): Likewise.
5090 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5091 * sched-deps.c (sched_analyze_insn): Likewise.
5092 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5093 (find_best_reg_for_expr): Likewise.
5094 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5095
5096 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5097
5098 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5099 (HARD_REG_SET::operator&): Likewise.
5100 (AND_HARD_REG_SET): Delete.
5101 * caller-save.c (setup_save_areas): Use "&" instead of
5102 AND_HARD_REG_SET.
5103 (save_call_clobbered_regs): Likewise.
5104 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5105 * config/m32c/m32c.c (reduce_class): Likewise.
5106 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5107 * final.c (get_call_reg_set_usage): Likewise.
5108 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5109 (setup_left_conflict_sizes_p): Likewise.
5110 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5111 (ira_build_conflicts): Likewise.
5112 * ira-costs.c (restrict_cost_classes): Likewise.
5113 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5114 (setup_reg_class_relations): Likewise.
5115 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5116 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5117 * resource.c (find_dead_or_set_registers): Likewise.
5118 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5119
5120 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5121
5122 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5123 (COMPL_HARD_REG_SET): Delete.
5124 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5125 of COMPL_HARD_REG_SET.
5126 (try_rename_operands): Likewise.
5127 * config/sh/sh.c (push_regs): Likewise.
5128 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5129 * lra-constraints.c (contains_reg_p): Likewise.
5130 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5131
5132 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5133
5134 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5135 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5136 of COPY_HARD_REG_SET.
5137 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5138 (epiphany_conditional_register_usage): Likewise.
5139 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5140 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5141 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5142 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5143 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5144 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5145 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5146 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5147 * config/sh/sh.c (output_stack_adjust): Likewise.
5148 * final.c (collect_fn_hard_reg_usage): Likewise.
5149 (get_call_reg_set_usage): Likewise.
5150 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5151 (ira_flattening): Likewise.
5152 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5153 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5154 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5155 (ira_reassign_pseudos): Likewise.
5156 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5157 (ira_build_conflicts): Likewise.
5158 * ira-costs.c (restrict_cost_classes): Likewise.
5159 (setup_regno_cost_classes_by_aclass): Likewise.
5160 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5161 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5162 (setup_stack_reg_pressure_class, setup_pressure_classes)
5163 (setup_allocno_and_important_classes, setup_class_translate_array)
5164 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5165 (ira_setup_eliminable_regset): Likewise.
5166 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5167 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5168 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5169 (process_alt_operands, inherit_in_ebb): Likewise.
5170 * lra-lives.c (process_bb_lives): Likewise.
5171 * lra-spills.c (assign_spill_hard_regs): Likewise.
5172 * lra.c (lra): Likewise.
5173 * mode-switching.c (new_seginfo): Likewise.
5174 * postreload.c (reload_combine): Likewise.
5175 * reg-stack.c (straighten_stack): Likewise.
5176 * reginfo.c (save_register_info, restore_register_info): Likewise.
5177 (init_reg_sets_1, record_subregs_of_mode): Likewise
5178 * regrename.c (create_new_chain, rename_chains): Likewise.
5179 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5180 (find_reload_regs): Likewise.
5181 * resource.c (find_dead_or_set_registers): Likewise.
5182 (mark_target_live_regs): Likewise.
5183 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5184
5185 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5186
5187 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5188 (note_pattern_stores): Declare.
5189 (note_stores): Take an rtx_insn *.
5190 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5191 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5192 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5193 (note_stores): Take an rtx_insn * as argument and process
5194 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5195 (note_pattern_stores): ...this.
5196 (find_first_parameter_load): Pass the insn rather than
5197 its pattern to note_stores.
5198 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5199 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5200 (insert_one_insn): Likewise.
5201 * combine.c (combine_instructions): Likewise.
5202 (likely_spilled_retval_p): Likewise.
5203 (try_combine): Use note_pattern_stores instead of note_stores.
5204 (record_dead_and_set_regs): Pass the insn rather than its pattern
5205 to note_stores.
5206 (reg_dead_at_p): Likewise.
5207 * config/bfin/bfin.c (workaround_speculation): Likewise.
5208 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5209 rather than an rtx.
5210 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5211 instead of note_stores.
5212 (frv_optimize_membar_local): Pass the insn rather than its pattern
5213 to note_stores.
5214 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5215 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5216 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5217 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5218 (mips_reorg_process_insns): Likewise.
5219 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5220 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5221 rather than rtxes.
5222 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5223 its pattern to note_stores.
5224 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5225 of note_stores.
5226 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5227 the insn to note_stores.
5228 (prescan_insns_for_dce): Update call accordingly.
5229 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5230 to note_stores.
5231 * df-problems.c (can_move_insns_across): Likewise.
5232 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5233 * function.c (assign_parm_setup_reg): Likewise.
5234 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5235 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5236 (single_set_gcse): Likewise.
5237 * ira.c (validate_equiv_mem): Likewise.
5238 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5239 for no_equiv.
5240 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5241 pattern to note_stores.
5242 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5243 * loop-iv.c (simplify_using_initial_values): Likewise.
5244 * mode-switching.c (optimize_mode_switching): Likewise.
5245 * optabs.c (emit_libcall_block_1): Likewise.
5246 (expand_atomic_compare_and_swap): Likewise.
5247 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5248 (record_opr_changes): Likewise. Remove explicit handling of
5249 CALL_INSN_FUNCTION_USAGE.
5250 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5251 * regcprop.c (kill_clobbered_values): Likewise.
5252 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5253 to note_stores.
5254 * regrename.c (build_def_use): Likewise.
5255 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5256 for mark_not_eliminable.
5257 (reload_as_needed): Pass the insn rather than its pattern
5258 to note_stores.
5259 (emit_output_reload_insns): Likewise.
5260 * resource.c (mark_target_live_regs): Likewise.
5261 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5262 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5263 instead of note_stores.
5264 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5265 its pattern to note_stores.
5266 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5267 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5268
5269 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5270
5271 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5272 than a #define. Use a structure rather than an array as the
5273 fallback definition. Remove special cases for low array sizes.
5274 (const_hard_reg_set): New typedef.
5275 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5276 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5277 (hard_reg_set_empty_p): Likewise.
5278 (SET_HARD_REG_BIT): Use a function rather than a macro to
5279 handle the case in which HARD_REG_SET is a structure.
5280 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5281 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5282 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5283 (IOR_COMPL_HARD_REG_SET): Likewise.
5284 (hard_reg_set_iterator::pset): Constify the pointer target.
5285 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5286 of a "const HARD_REG_SET". Update the handling of non-integer
5287 HARD_REG_SETs.
5288 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5289 * reload.h: Likewise.
5290 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5291 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5292 of a "const HARD_REG_SET".
5293 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5294 (range_in_hard_reg_set_p): Likewise.
5295 * ira-costs.c (restrict_cost_classes): Likewise.
5296 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5297 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5298 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5299 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5300 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5301 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5302 take an unsigned int and open-code the HARD_REG_SET operations.
5303
5304 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5305
5306 * Makefile.in (OBJS): Remove bt-load.o.
5307 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5308 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5309 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5310 document that the option no longer does anything.
5311 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5312 * target.def (branch_target_register_class): Delete.
5313 (branch_target_register_callee_saved): Likewise.
5314 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5315 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5316 * doc/tm.texi: Regenerate.
5317 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5318 (make_pass_branch_target_load_optimize2): Likewise.
5319 * passes.def (pass_branch_target_load_optimize1): Likewise.
5320 (pass_branch_target_load_optimize2): Likewise.
5321 * targhooks.h (default_branch_target_register_class): Likewise.
5322 * targhooks.c (default_branch_target_register_class): Likewise.
5323 * opt-suggestions.c (test_completion_valid_options): Remove
5324 -fbtr-bb-exclusive from the list of test options.
5325 * bt-load.c: Remove.
5326
5327 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5328
5329 * match.pd: Add flag_unsafe_math_optimizations check
5330 before deciding on the widest type in a binary math operation.
5331
5332 2019-09-09 Martin Liska <mliska@suse.cz>
5333
5334 * config/i386/i386.opt: Update comment of removed
5335 options that are preserved only for backward
5336 compatibility.
5337
5338 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5339
5340 PR target/87853
5341 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5342 instead of __v16qs.
5343
5344 PR target/91704
5345 * config/i386/avxintrin.h (__v32qs): New typedef.
5346 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5347 instead of __v32qi.
5348
5349 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5350
5351 * doc/invoke.texi (Option Summary): Cover eBPF.
5352 (eBPF Options): New section.
5353 * doc/extend.texi (BPF Built-in Functions): Likewise.
5354 (BPF Kernel Helpers): Likewise.
5355
5356 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5357
5358 * config.gcc: Support for bpf-*-* targets.
5359 * common/config/bpf/bpf-common.c: New file.
5360 * config/bpf/t-bpf: Likewise.
5361 * config/bpf/predicates.md: Likewise.
5362 * config/bpf/constraints.md: Likewise.
5363 * config/bpf/bpf.opt: Likewise.
5364 * config/bpf/bpf.md: Likewise.
5365 * config/bpf/bpf.h: Likewise.
5366 * config/bpf/bpf.c: Likewise.
5367 * config/bpf/bpf-protos.h: Likewise.
5368 * config/bpf/bpf-opts.h: Likewise.
5369 * config/bpf/bpf-helpers.h: Likewise.
5370 * config/bpf/bpf-helpers.def: Likewise.
5371
5372 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5373
5374 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5375 indirect_calls.
5376
5377 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5378
5379 * opt-functions.awk (integer_range_info): Make sure values are in
5380 numeric context before operating with them.
5381
5382 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5383
5384 * genemit.c (gen_split): Print the filename and line number where the
5385 splitter (or peephole2) was defined, to the dump file.
5386
5387 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5388
5389 PR tree-optimization/91665
5390 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5391 incompatible with the type of PHI result.
5392
5393 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5394
5395 PR target/91684
5396 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5397 gen_unaligned_storedi for 4-byte aligned addresses.
5398
5399 2019-09-06 Jim Wilson <jimw@sifive.com>
5400
5401 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5402 change.
5403
5404 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5405
5406 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5407
5408 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5409
5410 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5411 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5412
5413 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5414
5415 PR target/91654
5416 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5417 cost of SSE->integer and integer->SSE moves from 2 to 6.
5418 (core_cost): Ditto.
5419
5420 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5421
5422 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5423 before testing TYPE_TRANSPARENT_AGGR.
5424 * calls.c (initialize_argument_information, load_register_parameters):
5425 Likewise.
5426
5427 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5428
5429 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5430 high regs.
5431 (cmp_ior): Likewise.
5432
5433 2019-09-06 Martin Liska <mliska@suse.cz>
5434
5435 * doc/match-and-simplify.texi: Separate tuples with ;.
5436
5437 2019-09-06 Martin Liska <mliska@suse.cz>
5438
5439 PR c++/91125
5440 * Makefile.in: Remove tlink.o.
5441 * collect2.c (do_link): New function isolated
5442 from do_tlink.
5443 (main): Use.
5444 * collect2.h (do_tlink): Remove declaration of do_tlink.
5445 * doc/extend.texi: Remove documentation of -frepo.
5446 * doc/invoke.texi: Likewise.
5447 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5448 * tlink.c: Remove.
5449
5450 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5451 Jim Wilson <jimw@sifive.com>
5452
5453 PR target/91635
5454 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5455 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5456 paradoxical_subreg_p (operands[0]).
5457 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5458 use as intermediate value.
5459
5460 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5461
5462 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5463 (sync_compare_and_swap<mode>_insn): Likewise.
5464
5465 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5466
5467 PR middle-end/91615
5468 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5469 without movmisalign optab.
5470
5471 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5472
5473 PR middle-end/91001
5474 PR middle-end/91105
5475 PR middle-end/91106
5476 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5477 types, use type of their first field instead of type of
5478 args[i].tree_value.
5479
5480 2019-09-05 Richard Biener <rguenther@suse.de>
5481
5482 PR rtl-optimization/91656
5483 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5484 of early out.
5485
5486 2019-09-05 Richard Biener <rguenther@suse.de>
5487
5488 PR middle-end/90501
5489 * tree-inline.c (declare_return_variable): Mark the return
5490 slot as addressable after building an address of it.
5491
5492 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5493
5494 * doc/install.texi: Update and clarify requirements to build GNAT.
5495
5496 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5497
5498 PR middle-end/91577
5499 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5500 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5501 call to be in memory.
5502 (pass_expand::execute): Call discover_nonconstant_array_refs before
5503 setting currently_expanding_to_rtl.
5504
5505 2019-09-04 Caroline Tice <cmtice@google.com>
5506
5507 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5508 specified together.
5509
5510 2019-09-04 Marek Polacek <polacek@redhat.com>
5511
5512 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5513
5514 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5515
5516 PR target/32413
5517 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5518 for QI and HImode moves between SSE and general registers.
5519
5520 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5521
5522 PR c/78736
5523 * doc/invoke.texi: Document -Wenum-conversion.
5524
5525 2019-09-04 Richard Biener <rguenther@suse.de>
5526
5527 PR rtl-optimization/36262
5528 * postreload-gcse.c: Include intl.h and gcse.h.
5529 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5530 to avoid linear list walk.
5531 (record_last_mem_set_info): Gate off if not computing transparentness.
5532 (get_bb_avail_insn): If transparentness isn't computed give up
5533 early.
5534 (gcse_after_reload_main): Skip compute_transp and extended PRE
5535 if gcse_or_cprop_is_too_expensive says so.
5536
5537 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5538
5539 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5540 noinit section.
5541 (msp430_select_section): Handle decls with the "noinit" attribute with
5542 default_elf_select_section.
5543 Handle SECCAT_RODATA_MERGE_* section types with
5544 default_elf_select_section.
5545 Add comments about handling of unsupported section types.
5546 (msp430_section_type_flags): Remove handling of the noinit section.
5547
5548 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5549
5550 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5551 conflicting msp430-specific attributes.
5552 (msp430_section_attr): Likewise.
5553 Add warnings about conflicts with generic "noinit" and "section"
5554 attributes.
5555 Fix grammar in -mlarge error message.
5556 (msp430_data_attr): Rename to msp430_persist_attr.
5557 Add warnings about conflicts with generic "noinit" and "section"
5558 attributes.
5559 Add warning for when variable is not initialized.
5560 Chain conditionals which prevent the attribute being added.
5561 (ATTR_EXCL): New helper.
5562 (attr_reent_exclusions): New exclusion table.
5563 (attr_naked_exclusions): Likewise.
5564 (attr_crit_exclusions): Likewise.
5565 (attr_lower_exclusions): Likewise.
5566 (attr_upper_exclusions): Likewise.
5567 (attr_either_exclusions): Likewise.
5568 (attr_persist_exclusions): Likewise.
5569 (msp430_attribute_table): Update with exclusion rules.
5570 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5571 has a section.
5572
5573 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5574
5575 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5576 (msp430_handle_generic_attribute): New function.
5577 * doc/tm.texi: Regenerate.
5578 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5579 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5580 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5581 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5582
5583 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5584
5585 PR tree-optimization/91504
5586 * match.pd: Add ((~a & b) ^a) --> (a | b).
5587
5588 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5589
5590 PR target/91604
5591 * config/i386/i386-expand.c (split_double_mode): If there is more than
5592 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5593 already split matching MEM operand instead of calling adjust_address
5594 again.
5595
5596 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5597
5598 * config.gcc: Obsolete spu target. Remove references to spu.
5599 * configure.ac: Remove references to spu.
5600 * configure: Regenerate.
5601 * config/spu/: Remove directory.
5602 * common/config/spu/: Remove directory.
5603
5604 * doc/extend.texi: Remove references to spu.
5605 * doc/invoke.texi: Likewise.
5606 * doc/md.texi: Likewise.
5607 * doc/sourcebuild.texi: Likewise.
5608
5609 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5610
5611 PR middle-end/91603
5612 PR middle-end/91612
5613 PR middle-end/91613
5614 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5615 and SSA_NAME referring to CONSTANT_P correctly.
5616
5617 2019-09-03 Richard Biener <rguenther@suse.de>
5618
5619 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5620 (vn_nary_op_insert): Likewise.
5621 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5622 (vn_nary_op_lookup): Likewise.
5623 (vn_nary_op_insert): Likewise.
5624
5625 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5626
5627 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5628 (*op0, 1) instead of XEXP (*op1, 0).
5629
5630 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5631
5632 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5633 (aarch64_fjcvtzs): New define_insn.
5634 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5635 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5636 Add AARCH64_JSCVT.
5637 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5638 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5639 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5640 __ARM_FEATURE_JCVT where appropriate.
5641 * config/aarch64/arm_acle.h (__jcvt): Define.
5642
5643 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5644
5645 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5646 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5647 (aarch64_<frintnzs_op><mode>): New define_insn.
5648 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5649 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5650 __ARM_FEATURE_FRINT when appropriate.
5651 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5652 frint32x, frint64z, frint64x.
5653 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5654 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5655 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5656 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5657 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5658 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5659 * config/aarch64/iterators.md (VSFDF): Define.
5660 (FRINTNZX): Likewise.
5661 (frintnzs_op): Likewise.
5662
5663 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5664
5665 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5666 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5667 Cortex-A34.
5668 * config/aarch64/aarch64-tune.md: Regenerated.
5669 * doc/invoke.texi: Document the new processors.
5670
5671 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5672
5673 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5674 string.
5675 (ssbs): Likewise.
5676 (sve2): Likewise.
5677 (sve2-sm4): Likewise.
5678 (sveaes): Likewise.
5679 (svesha3): Likewise.
5680 (svebitperm): Likewise.
5681
5682 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5683 Richard Biener <rguenther@suse.de>
5684
5685 PR tree-optimization/91597
5686 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5687 BIT_AND_EXPR optimization for pointers, even if both operand
5688 ranges don't include NULL, the result can be NULL.
5689
5690 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5691
5692 PR middle-end/91605
5693 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5694 (non_mem_decl_p): ...this.
5695 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5696 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5697 unconditionally as before.
5698
5699 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5700
5701 PR target/91323
5702 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5703 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5704 * tree.def (LTGT_EXPR): Likewise.
5705 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5706
5707 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR go/91617
5710 * fold-const.c (range_check_type): For enumeral and boolean
5711 type, pass 1 to type_for_size langhook instead of
5712 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5713 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5714 (build_range_check): Don't call unsigned_type_for for pointer types.
5715 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5716 range_check_type result.
5717
5718 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5719
5720 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5721 (replace_ref): Do not replace a chain of only two candidates which are
5722 valid memory references.
5723
5724 2019-09-02 Martin Liska <mliska@suse.cz>
5725
5726 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5727 Bail out when we'll end up with the same number of clusters as
5728 at the beginning.
5729 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5730 (jump_table_cluster::can_be_handled): Remove the guard
5731 as it's already handled in ::is_enabled. Allocate output
5732 after early bail out.
5733
5734 2019-09-02 Martin Liska <mliska@suse.cz>
5735
5736 PR gcov-profile/91601
5737 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5738 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5739 also negative edges.
5740 (circuit): Handle also negative edges as they can happen
5741 in some situations.
5742
5743 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5744
5745 PR target/91472
5746 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5747 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5748 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5749
5750 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5751
5752 PR middle-end/91623
5753 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5754 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5755 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5756 zero vector.
5757
5758 PR lto/91572
5759 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5760 GIMPLE_ASM TREE_LIST operands.
5761
5762 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5763
5764 * doc/generic.texi (Unary and Binary Expressions): Mark up
5765 an instance of TYPE_MIN.
5766
5767 2019-08-31 Stafford Horne <shorne@gmail.com>
5768
5769 * config/or1k/constraints.md (t): New constraint.
5770 * config/or1k/or1k.h (GOT_REGS): New register class.
5771 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5772
5773 2019-08-30 Jim Wilson <jimw@sifive.com>
5774
5775 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5776 and -fpic and -mplt then disable -msave-restore and warn.
5777
5778 2019-08-30 Martin Sebor <msebor@redhat.com>
5779
5780 PR middle-end/91599
5781 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5782 the statement doesn't have one.
5783 * gimple-pretty-print.c (percent_G_format): Same.
5784
5785 PR middle-end/91584
5786 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5787 before using them to validate MEM_REF offset.
5788
5789 2019-08-30 Marek Polacek <polacek@redhat.com>
5790
5791 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5792
5793 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5794
5795 * config/arm/arm.md (unaligned_loaddi,
5796 unaligned_storedi): New unspec insn patterns.
5797 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5798 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5799 and unaligned_storedi for 4-byte aligned memory.
5800 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5801 4-byte aligned memory.
5802
5803 2019-08-30 Martin Jambor <mjambor@suse.cz>
5804
5805 tree-optimization/91579
5806 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5807 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5808 appropriate.
5809 (arg_needs_copy_p): Removed.
5810 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5811 arg_needs_copy_p.
5812 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5813
5814 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5815
5816 * config/i386/i386-features.c
5817 (general_scalar_chain::compute_convert_gain):
5818 Correct cost for double-word shifts.
5819 (general_scalar_to_vector_candidate_p): Reject count operands
5820 greater or equal to mode bitsize.
5821
5822 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5823
5824 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5825 for moves between SSE and non-general registers and between
5826 mask and non-general registers.
5827 (ix86_register_move_cost): Remove stalled comment.
5828
5829 2019-08-29 Richard Biener <rguenther@suse.de>
5830
5831 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5832 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5833
5834 2019-08-29 Richard Biener <rguenther@suse.de>
5835
5836 PR bootstrap/91580
5837 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5838 Do not emit scalar copies for debug-insns, instead replace
5839 their uses with the reg copy used in the chain or reset them
5840 if there is a reaching definition outside of the chain as well.
5841
5842 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5843
5844 PR target/91560
5845 * config/i386/i386-expand.c (expand_vec_perm_movs,
5846 expand_vec_perm_blend, expand_vec_perm_vpermil,
5847 expand_vec_perm_pshufb, expand_vec_perm_1,
5848 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5849 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5850 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5851 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5852 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5853 comments - replace ix86_expand_vec_perm_builtin_1 with
5854 ix86_expand_vec_perm_const_1.
5855 (expand_vec_perm2_vperm2f128_vblend): New function.
5856 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5857 expand_vec_perm2_vperm2f128_vblend as last resort.
5858 (canonicalize_perm): Formatting fix.
5859
5860 PR tree-optimization/91351
5861 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5862 unsigned_type_for.
5863 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5864 range_check_type returns NULL.
5865 * tree-switch-conversion.c (switch_conversion::build_one_array):
5866 Use range_check_type instead of unsigned_type_for, don't perform
5867 linear opt if it returns NULL.
5868 (bit_test_cluster::find_bit_tests): Formatting fix.
5869 (bit_test_cluster::emit): Use range_check_type instead of
5870 unsigned_type_for.
5871 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5872 returns NULL.
5873
5874 2019-08-29 Richard Biener <rguenther@suse.de>
5875
5876 PR tree-optimization/91568
5877 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5878 (vect_update_max_nunits): Add overload for poly_uint64.
5879 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5880 (vect_build_slp_tree): Record max_nunits into the subtree
5881 and merge it upwards.
5882 (vect_print_slp_tree): Print max_nunits.
5883
5884 2019-08-28 Marek Polacek <polacek@redhat.com>
5885
5886 Implement P1152R4: Deprecating some uses of volatile.
5887 PR c++/91361
5888 * doc/invoke.texi: Document -Wvolatile.
5889
5890 2019-08-28 Marek Polacek <polacek@redhat.com>
5891
5892 PR c++/91360 - Implement C++20 P1143R2: constinit.
5893 * doc/invoke.texi: Document -Wc++20-compat.
5894
5895 2019-08-28 Martin Sebor <msebor@redhat.com>
5896
5897 PR tree-optimization/91457
5898 * builtins.c (component_size): New function.
5899 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5900 * builtins.h (compute_objsize): Add argument.
5901 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5902 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5903 (vrp_prop::check_mem_ref): Same.
5904 (vrp_prop::search_for_addr_array): Set no-warning bit.
5905 (check_array_bounds): Same.
5906
5907 2019-08-28 Martin Sebor <msebor@redhat.com>
5908
5909 PR driver/80545
5910 * opts-common.c (option_enabled): Correct checking for language
5911 options.
5912
5913 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5914
5915 * config/i386/i386.c (ix86_register_move_cost): Do not
5916 limit the cost of moves to/from XMM register to minimum 8.
5917
5918 2019-08-28 Martin Jambor <mjambor@suse.cz>
5919
5920 PR ipa/91468
5921 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5922 checking assert a normal assert to test it really is redundant.
5923 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5924 redundant test.
5925 (update_jump_functions_after_inlining): Removed combining unary
5926 arithmetic operations with an ancestor jump function.
5927 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5928 instead of t.
5929
5930 2019-08-28 Richard Biener <rguenther@suse.de>
5931
5932 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5933 add the MD problem.
5934
5935 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5936 Richard Biener <rguenther@suse.de>
5937
5938 * expr.c (expand_assignment): Handle misaligned DECLs.
5939 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5940 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5941 too.
5942 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5943 * varasm.c (build_constant_desc): Align constants of misaligned types.
5944 * config/arm/predicates.md (aligned_operand): New predicate.
5945 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5946 aligned_operand to check restrictions on memory addresses.
5947 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5948 * config/arm/vec-common.md (mov<VALL>): Likewise.
5949
5950 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5951
5952 PR libgomp/91530
5953 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5954 V_128 iterator instead of VI_128.
5955
5956 2019-08-28 Martin Liska <mliska@suse.cz>
5957
5958 PR tree-optimization/90970
5959 * builtins.c (check_access): Remove assignment to maxread
5960 as it hasn't been used since when it was introduced in r255755.
5961
5962 2019-08-27 Martin Sebor <msebor@redhat.com>
5963
5964 PR tree-optimization/91567
5965 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5966 of unknown strings.
5967 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5968 to PTRDIFF_MAX - 2.
5969
5970 2019-08-27 Jeff Law <law@redhat.com>
5971
5972 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5973 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5974
5975 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5976
5977 PR target/91528
5978 * config/i386/i386-features.c (convert_scalars_to_vector):
5979 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5980 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5981 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5982 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5983
5984 2019-08-27 Richard Biener <rguenther@suse.de>
5985
5986 * config/i386/i386-features.h
5987 (general_scalar_chain::~general_scalar_chain): Add.
5988 (general_scalar_chain::insns_conv): New bitmap.
5989 (general_scalar_chain::n_sse_to_integer): New.
5990 (general_scalar_chain::n_integer_to_sse): Likewise.
5991 (general_scalar_chain::make_vector_copies): Adjust signature.
5992 * config/i386/i386-features.c
5993 (general_scalar_chain::general_scalar_chain): Outline,
5994 initialize new members.
5995 (general_scalar_chain::~general_scalar_chain): New.
5996 (general_scalar_chain::mark_dual_mode_def): Record insns
5997 we need to insert conversions at and count them.
5998 (general_scalar_chain::compute_convert_gain): Account
5999 for conversion instructions at chain boundary.
6000 (general_scalar_chain::make_vector_copies): Generate a single
6001 copy for a def by a specific insn.
6002 (general_scalar_chain::convert_registers): First populate
6003 defs_map, then make copies at out-of chain insns.
6004
6005 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6006
6007 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6008 comment.
6009 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6010
6011 2019-08-27 Martin Liska <mliska@suse.cz>
6012
6013 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6014 loop.
6015 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6016 Enclose in anonymous namespace.
6017 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6018 hard_register initialization in braces.
6019 * tree-vrp.h (value_range_base::supports_type_p): Return false
6020 for function with boolean return type.
6021
6022 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6023
6024 * config/i386/i386.c (emit_i387_cw_initialization)
6025 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6026
6027 2019-08-26 Martin Sebor <msebor@redhat.com>
6028
6029 PR c++/83431
6030 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6031 (sprintf_dom_walker): Remove class.
6032 (get_int_range): Make argument const.
6033 (directive::fmtfunc, directive::set_precision): Same.
6034 (format_none): Same.
6035 (build_intmax_type_nodes): Same.
6036 (adjust_range_for_overflow): Same.
6037 (format_floating): Same.
6038 (format_character): Same.
6039 (format_string): Same.
6040 (format_plain): Same.
6041 (get_int_range): Cast away constness.
6042 (format_integer): Same.
6043 (get_string_length): Call get_range_strlen_dynamic. Handle
6044 null lendata.maxbound.
6045 (should_warn_p): Adjust argument scope qualifier.
6046 (maybe_warn): Same.
6047 (format_directive): Same.
6048 (parse_directive): Same.
6049 (is_call_safe): Same.
6050 (try_substitute_return_value): Same.
6051 (sprintf_dom_walker::handle_printf_call): Rename...
6052 (handle_printf_call): ...to this. Initialize target to host charmap
6053 here instead of in pass_sprintf_length::execute.
6054 (struct call_info): Make global.
6055 (sprintf_dom_walker::compute_format_length): Make global.
6056 (sprintf_dom_walker::handle_gimple_call): Same.
6057 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6058 * print-rtl.c (print_pattern): Reduce the number of spaces to
6059 avoid -Wformat-truncation.
6060 * tree-pass.h (make_pass_warn_printf): New function.
6061 * tree-ssa-strlen.c (strlen_optimize): New variable.
6062 (get_string_length): Add comments.
6063 (get_range_strlen_dynamic): New function.
6064 (check_and_optimize_call): New function.
6065 (handle_integral_assign): New function.
6066 (strlen_check_and_optimize_stmt): Factor code out into
6067 strlen_check_and_optimize_call and handle_integral_assign.
6068 (strlen_dom_walker::evrp): New member.
6069 (strlen_dom_walker::before_dom_children): Use evrp member.
6070 (strlen_dom_walker::after_dom_children): Use evrp member.
6071 (printf_strlen_execute): New function.
6072 (pass_strlen::gate): Update to handle printf calls.
6073 (dump_strlen_info): New function.
6074 (pass_data_warn_printf): New variable.
6075 (pass_warn_printf): New class.
6076 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6077 (handle_printf_call): Same.
6078 * tree-vrp.c (value_range_base::type): Adjust assertion.
6079 * vr-values.c (vr_values::update_value_range): Use type of the first
6080 argument rather than the second.
6081
6082 2019-08-26 Richard Biener <rguenther@suse.de>
6083
6084 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6085 Remove.
6086 (convert_scalars_to_vector): Do not call it.
6087
6088 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6089 Uros Bizjak <ubizjak@gmail.com>
6090
6091 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6092 CASE_MATHFN_FLOATN for roundeven.
6093 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6094 I387_ROUNDEVEN.
6095 (ix86_mode_needed): Likewise.
6096 (ix86_mode_after): Likewise.
6097 (ix86_mode_entry): Likewise.
6098 (ix86_mode_exit): Likewise.
6099 (ix86_emit_mode_set): Likewise.
6100 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6101 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6102 (ix86_entity): Add I387_ROUNDEVEN.
6103 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6104 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6105 (define_int_iterator): Likewise.
6106 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6107 (define_constant): Define ROUND_ROUNDEVEN mode.
6108 (define_attr): Add roundeven mode for i387_cw.
6109 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6110 * internal-fn.def (ROUNDEVEN): New builtin function.
6111 * optabs.def (roundeven_optab): New optab.
6112
6113 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6114
6115 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6116 for ROUNDEVEN.
6117 * builtins.def: Added function definitions for roundeven function
6118 variants.
6119 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6120 function call. Adjust condition for floor, ceil, trunc and round.
6121 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6122 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6123 (integer_valued_real_call_p): Added case for roundeven function.
6124 * real.c (is_even): New function. Returns true if real number is even,
6125 otherwise returns false.
6126 (is_halfway_below): New function. Returns true if real number is
6127 halfway between two integers, else return false.
6128 (real_roundeven): New function. Round real number to nearest integer,
6129 rounding halfway cases towards even.
6130 * real.h (real_value): Added descriptive comments. Added function
6131 declaration for roundeven function.
6132 * doc/extend.texi (Other Builtins): List roundeven variants among
6133 functions which can be handled as builtins.
6134
6135 2019-08-26 Richard Biener <rguenther@suse.de>
6136
6137 PR target/91522
6138 PR target/91527
6139 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6140 New member.
6141 (general_scalar_chain::replace_with_subreg): Remove.
6142 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6143 (general_scalar_chain::convert_reg): Adjust signature.
6144 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6145 iterate over all defs of a reg.
6146 (general_scalar_chain::replace_with_subreg): Remove.
6147 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6148 (general_scalar_chain::make_vector_copies): Populate defs_map,
6149 place copy only after defs that are used as vectors in the chain.
6150 (general_scalar_chain::convert_reg): Emit a copy for a specific
6151 def in a specific instruction.
6152 (general_scalar_chain::convert_op): All reg uses are converted here.
6153 (general_scalar_chain::convert_insn): Emit copies for scalar
6154 uses of defs here. Replace uses with the copies we created.
6155 Replace and convert the def. Adjust REG_DEAD notes, remove
6156 REG_EQUIV/EQUAL notes.
6157 (general_scalar_chain::convert_registers): Only handle copies
6158 into the chain here.
6159
6160 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6161
6162 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6163
6164 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6165
6166 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6167 Add nop_convert case.
6168 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6169 Fold all statements if requested.
6170 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6171 Allow to fold all statements.
6172 * tree-vrp.c (class vrp_folder):
6173 Let substitute_and_fold_engine fold all statements.
6174
6175 2019-08-26 Richard Biener <rguenther@suse.de>
6176
6177 PR tree-optimization/91526
6178 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6179 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6180 TODO_update_address_taken.
6181
6182 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6183
6184 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6185 __STDC_HOSTED__.
6186
6187 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6188
6189 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6190 machine mode for unspec_volatile operand.
6191
6192 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6193
6194 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6195 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6196 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6197 (prefer_neon_for_64bits): Remove.
6198 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6199 (tune_params): Remove PREF_NEON_64_FALSE uses.
6200 (arm_option_override): Remove prefer_neon selection code.
6201 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6202 * gcc/config/arm/arm-protos.h (tune_params): Remove
6203 prefer_neon_for_64bits.
6204 (prefer_neon_for_64bits): Remove.
6205
6206 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6207
6208 PR pch/61250
6209 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6210 and issue any diagnostics needed before collecting the pre-PCH
6211 state.
6212
6213 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6214
6215 PR middle-end/91283
6216 * common.opt (fexcess-precision=): Add Optimization flag. Use
6217 flag_excess_precision variable instead of
6218 flag_excess_precision_cmdline.
6219 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6220 member.
6221 (flag_excess_precision): Don't define.
6222 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6223 flag_excess_precision_cmdline. Remove comment.
6224 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6225 and x_flag_excess_precision instead of
6226 frontend_set_flag_excess_precision_cmdline and
6227 x_flag_excess_precision_cmdline.
6228 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6229 x_flag_excess_precision_cmdline.
6230 * toplev.c (init_excess_precision): Remove.
6231 (lang_dependent_init_target): Don't call it.
6232
6233 2019-08-23 Martin Liska <mliska@suse.cz>
6234
6235 * lto-wrapper.c (run_gcc): When setting jobserver
6236 set also parallel to 1. This was done so before r273908.
6237
6238 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6239
6240 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6241 (cortex-a76ae): Likewise.
6242 (cortex-a77): Likewise
6243 * config/arm/arm-tables.opt: Regenerate.
6244 * config/arm/arm-tune.md: Likewise.
6245 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6246 cortex-a77 CPU options.
6247
6248 2019-08-23 Martin Liska <mliska@suse.cz>
6249
6250 * profile.c (instrument_values): Do not set
6251 0 as last argument.
6252 * tree-profile.c (gimple_gen_interval_profiler): Remove
6253 last argument.
6254 (gimple_gen_pow2_profiler): Likewise.
6255 (gimple_gen_topn_values_profiler): Likewise.
6256 (gimple_gen_ic_profiler): Likewise.
6257 (gimple_gen_time_profiler): Likewise.
6258 (gimple_gen_average_profiler): Likewise.
6259 (gimple_gen_ior_profiler): Likewise.
6260 * value-prof.c (dump_histogram_value): Use default
6261 in switch statement instead of HIST_TYPE_MAX.
6262 (stream_in_histogram_value): Likewise.
6263 (gimple_duplicate_stmt_histograms): Do not
6264 use NULL for implicitly set arguments.
6265 (gimple_divmod_values_to_profile): Do not use
6266 reserve+quick_push.
6267 (gimple_indirect_call_to_profile): Likewise.
6268 (gimple_find_values_to_profile): Use implicit
6269 function call arguments.
6270 * value-prof.h (gimple_alloc_histogram_value):
6271 Set default values.
6272 (gimple_gen_interval_profiler): Remove last argument.
6273 (gimple_gen_pow2_profiler): Likewise.
6274 (gimple_gen_topn_values_profiler): Likewise.
6275 (gimple_gen_ic_profiler): Likewise.
6276 (gimple_gen_time_profiler): Likewise.
6277 (gimple_gen_average_profiler): Likewise.
6278 (gimple_gen_ior_profiler): Likewise.
6279
6280 2019-08-22 Martin Sebor <msebor@redhat.com>
6281
6282 PR middle-end/91490
6283 * builtins.c (c_strlen): Rename argument and introduce new local.
6284 Set no-warning bit on original argument.
6285 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6286 Fold empty and zero constructors into empty strings.
6287 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6288 for missing initializers.
6289 * tree.c (build_string_literal): Handle optional argument.
6290 * tree.h (build_string_literal): Add defaulted argument.
6291 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6292 no-warning bit on original expression.
6293
6294 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6295
6296 PR target/91481
6297 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6298 and UNSPEC_DARN_RAW.
6299 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6300 UNSPECV_DARN_RAW.
6301 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6302 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6303 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6304
6305 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6306
6307 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6308 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6309 * config/rs6000/rs6000.md (unspec): ... here.
6310 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6311 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6312 cmpeqb, *cmpeqb_internal): Delete, move to...
6313 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6314 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6315 cmpeqb, *cmpeqb_internal): ... here.
6316
6317 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318
6319 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6320 intrinsics if __ARM_FP.
6321 Use __ARM_FEATURE_CRC32 ifdef guard.
6322
6323 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6324
6325 * config/arm/arm.md (neon_for_64bits): Remove.
6326 (avoid_neon_for_64bits): Remove.
6327 (arm_adddi3): Always split early.
6328 (arm_subdi3): Always split early.
6329 (negdi2): Remove Neon expansion.
6330 (split zero_extend): Split before reload.
6331 (split sign_extend): Split before reload.
6332
6333 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6334
6335 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6336 (qhs_extenddi_cstr): Likewise.
6337 * config/arm/arm.md (ashldi3): Always expand early.
6338 (ashlsi3): Likewise.
6339 (ashrsi3): Likewise.
6340 (zero_extend<mode>di2): Remove Neon variants.
6341 (extend<mode>di2): Likewise.
6342 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6343 (signed_shift_di3_neon): Likewise.
6344 (unsigned_shift_di3_neon): Likewise.
6345 (ashrdi3_neon_imm_noclobber): Likewise.
6346 (lshrdi3_neon_imm_noclobber): Likewise.
6347 (<shift>di3_neon): Likewise.
6348 (split extend): Remove DI extend split patterns.
6349
6350 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6351
6352 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6353 (split not): Add DImode not splitter.
6354 (anddi3): Remove pattern.
6355 (anddi3_insn): Likewise.
6356 (anddi_zesidi_di): Likewise.
6357 (anddi_sesdi_di): Likewise.
6358 (anddi_notdi_di): Likewise.
6359 (anddi_notzesidi_di): Likewise.
6360 (anddi_notsesidi_di): Likewise.
6361 (iordi3): Likewise.
6362 (iordi3_insn): Likewise.
6363 (iordi_zesidi_di): Likewise.
6364 (iordi_sesidi_di): Likewise.
6365 (xordi3): Likewise.
6366 (xordi3_insn): Likewise.
6367 (xordi_sesidi_di): Likewise.
6368 (xordi_zesidi_di): Likewise.
6369 (one_cmpldi2): Likewise.
6370 (one_cmpldi2_insn): Likewise.
6371 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6372 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6373 alternative.
6374 (iwmmxt_xordi3): Likewise.
6375 (iwmmxt_anddi3): Likewise.
6376 * config/arm/neon.md (orndi3_neon): Remove pattern.
6377 (anddi_notdi_di): Likewise.
6378 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6379 (arm_iordi_operand_neon): Likewise.
6380 (arm_xordi_operand_neon): Likewise.
6381 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6382 (iordi_notzesidi_di): Likewise.
6383 (iordi_notdi_zesidi): Likewise.
6384 (iordi_notsesidi_di): Likewise.
6385
6386 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6387
6388 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6389 insn.
6390 (iorsi3_compare0_scratch): Likewise.
6391
6392 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6393
6394 * config/aarch64/aarch64-simd-builtins.def:
6395 (ld1x4): New.
6396 (st1x4): Likewise.
6397 * config/aarch64/aarch64-simd.md:
6398 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6399 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6400 (aarch64_ld1_x4_<mode>): Likewise.
6401 (aarch64_st1_x4_<mode>): Likewise.
6402 * config/aarch64/arm_neon.h:
6403 (vld1_s8_x4): New function.
6404 (vld1q_s8_x4): Likewise.
6405 (vld1_s16_x4): Likewise.
6406 (vld1q_s16_x4): Likewise.
6407 (vld1_s32_x4): Likewise.
6408 (vld1q_s32_x4): Likewise.
6409 (vld1_u8_x4): Likewise.
6410 (vld1q_u8_x4): Likewise.
6411 (vld1_u16_x4): Likewise.
6412 (vld1q_u16_x4): Likewise.
6413 (vld1_u32_x4): Likewise.
6414 (vld1q_u32_x4): Likewise.
6415 (vld1_f16_x4): Likewise.
6416 (vld1q_f16_x4): Likewise.
6417 (vld1_f32_x4): Likewise.
6418 (vld1q_f32_x4): Likewise.
6419 (vld1_p8_x4): Likewise.
6420 (vld1q_p8_x4): Likewise.
6421 (vld1_p16_x4): Likewise.
6422 (vld1q_p16_x4): Likewise.
6423 (vld1_s64_x4): Likewise.
6424 (vld1_u64_x4): Likewise.
6425 (vld1_p64_x4): Likewise.
6426 (vld1q_s64_x4): Likewise.
6427 (vld1q_u64_x4): Likewise.
6428 (vld1q_p64_x4): Likewise.
6429 (vld1_f64_x4): Likewise.
6430 (vld1q_f64_x4): Likewise.
6431 (vst1_s8_x4): Likewise.
6432 (vst1q_s8_x4): Likewise.
6433 (vst1_s16_x4): Likewise.
6434 (vst1q_s16_x4): Likewise.
6435 (vst1_s32_x4): Likewise.
6436 (vst1q_s32_x4): Likewise.
6437 (vst1_u8_x4): Likewise.
6438 (vst1q_u8_x4): Likewise.
6439 (vst1_u16_x4): Likewise.
6440 (vst1q_u16_x4): Likewise.
6441 (vst1_u32_x4): Likewise.
6442 (vst1q_u32_x4): Likewise.
6443 (vst1_f16_x4): Likewise.
6444 (vst1q_f16_x4): Likewise.
6445 (vst1_f32_x4): Likewise.
6446 (vst1q_f32_x4): Likewise.
6447 (vst1_p8_x4): Likewise.
6448 (vst1q_p8_x4): Likewise.
6449 (vst1_p16_x4): Likewise.
6450 (vst1q_p16_x4): Likewise.
6451 (vst1_s64_x4): Likewise.
6452 (vst1_u64_x4): Likewise.
6453 (vst1_p64_x4): Likewise.
6454 (vst1q_s64_x4): Likewise.
6455 (vst1q_u64_x4): Likewise.
6456 (vst1q_p64_x4): Likewise.
6457 (vst1_f64_x4): Likewise.
6458 (vst1q_f64_x4): Likewise.
6459
6460 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6461
6462 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6463
6464 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6465 Richard Sandiford <richard.sandiford@arm.com>
6466
6467 PR target/88839
6468 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6469 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6470
6471 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6472
6473 PR target/90724
6474 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6475 in reg if it fails aarch64_plus_operand predicate.
6476
6477 2019-08-21 Richard Biener <rguenther@suse.de>
6478
6479 PR tree-optimization/91482
6480 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6481 BUILT_IN_ASSUME_ALIGNED calls.
6482
6483 2019-08-21 Richard Biener <rguenther@suse.de>
6484
6485 PR target/91498
6486 PR target/91503
6487 * config/i386/i386-features.c
6488 (general_scalar_chain::make_vector_copies): Copy stack temporary
6489 rtx when using it multiple times.
6490 (general_scalar_chain::convert_reg): Likewise.
6491
6492 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6493
6494 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6495
6496 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6497
6498 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6499 catch more redundant zero initialization cases.
6500 (dse_dom_walker::dse_optimize_stmt): Likewise.
6501
6502 2019-08-20 Richard Biener <rguenther@suse.de>
6503
6504 PR lto/91307
6505 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6506 by collect2 when targetm.have_ctors_dtors which avoids dragging
6507 in temporary filenames from LTO input objects.
6508
6509 2019-08-20 Richard Biener <rguenther@suse.de>
6510
6511 PR tree-optimization/37242
6512 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6513 to (T)a + (T)b if we know that a + b does not overflow.
6514
6515 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6516
6517 PR rtl-optimization/91347
6518 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6519 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6520
6521 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6522
6523 * calls.h (function_arg_info): Add a pass_by_reference field,
6524 defaulting to false.
6525 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6526 when applying pass-by-reference semantics.
6527 (initialize_argument_information): Likewise.
6528 (emit_library_call_value_1): Likewise.
6529 * function.c (assign_parm_data_one): Remove passed_pointer field.
6530 (assign_parm_find_data_types): Don't set it.
6531 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6532 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6533 arg.pass_by_reference instead of passed_pointer.
6534
6535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6536
6537 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6538 into a single function_arg_info, updating its fields when we
6539 apply pass-by-reference and promotion semantics. Use the
6540 function_arg_info to track the mode rather than keeping it in
6541 a separate local variable.
6542 (initialize_argument_information): Likewise. Base the final
6543 arg_to_skip on this new function_arg_info rather than creating
6544 a new one from scratch.
6545
6546 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6547
6548 * function.c (assign_parm_data_one): Replace passed_type,
6549 promoted_mode and named_arg with a function_arg_info field.
6550 (assign_parm_find_data_types): Remove local variables and
6551 assign directly to "data". Make data->passed_mode shadow
6552 data->arg.mode until promotion, then assign the promoted
6553 mode to data->arg.mode.
6554 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6555 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6556 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6557 (assign_parm_setup_block, assign_parm_setup_reg)
6558 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6559 arg.mode instead of promoted_mode, arg.type instead of passed_type
6560 and arg.named instead of named_arg. Use data->arg for
6561 function_arg_info structures that had the field values passed_type,
6562 promoted_mode and named_arg. Base other function_arg_infos on
6563 data->arg, changing the necessary properties.
6564
6565 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6566
6567 * calls.h (apply_pass_by_reference_rules): Declare.
6568 * calls.c (apply_pass_by_reference_rules): New function.
6569 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6570 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6571 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6572 * function.c (assign_parm_find_data_types): Likewise.
6573 * var-tracking.c (prepare_call_arguments): Likewise.
6574
6575 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6576
6577 * target.def (must_pass_in_stack): Take a function_arg_info instead
6578 of a mode and a type.
6579 * doc/tm.texi: Regenerate.
6580 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6581 instead of a mode and a type.
6582 (must_pass_in_stack_var_size_or_pad): Likewise.
6583 * calls.c (must_pass_in_stack_var_size): Likewise.
6584 (must_pass_in_stack_var_size_or_pad): Likewise.
6585 (initialize_argument_information): Update call to
6586 targetm.calls.must_pass_in_stack.
6587 (must_pass_va_arg_on_stack): Likewise.
6588 * function.c (assign_parm_find_entry_rtl): Likewise.
6589 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6590 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6591 (alpha_function_arg_advance): Likewise.
6592 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6593 (cr16_function_arg_advance): Likewise.
6594 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6595 (cris_arg_partial_bytes): Likewise.
6596 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6597 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6598 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6599 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6600 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6601 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6602 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6603 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6604 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6605 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6606 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6607 instead of a mode and a type.
6608 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6609 (fr30_num_arg_regs): Likewise.
6610 (fr30_setup_incoming_varargs): Update calls accordingly.
6611 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6612 (fr30_function_arg_advance): Likewise.
6613 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6614 instead of a mode and a type.
6615 * config/gcn/gcn.c (num_arg_regs): Likewise.
6616 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6617 num_arg_regs and targetm.calls.must_pass_in_stack.
6618 (gcn_arg_partial_bytes): Likewise.
6619 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6620 function_arg_info instead of a mode and a type.
6621 (classify_argument): Update call accordingly.
6622 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6623 function_arg_info instead of a mode and a type.
6624 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6625 Likewise.
6626 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6627 (rs6000_parm_needs_stack): Update call accordingly.
6628 (setup_incoming_varargs): Likewise.
6629
6630 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6631
6632 * target.def (callee_copies): Take a function_arg_info instead
6633 of a mode, type and named flag.
6634 * doc/tm.texi: Regenerate.
6635 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6636 instead of a mode, type and named flag.
6637 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6638 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6639 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6640 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6641 instead of a mode, type and named flag.
6642 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6643 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6644 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6645 * calls.h (reference_callee_copied): Take a function_arg_info
6646 instead of a mode, type and named flag.
6647 * calls.c (reference_callee_copied): Likewise.
6648 (initialize_argument_information): Update call accordingly.
6649 (emit_library_call_value_1): Likewise.
6650 * function.c (gimplify_parameters): Likewise.
6651 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6652 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6653 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6654 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6655 (TARGET_CALLEE_COPIES): Define to
6656 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6657 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6658 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6659 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6660 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6661 instead of a mode, type and named flag.
6662 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6663 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6664 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6665 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6666 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6667 (TARGET_CALLEE_COPIES): Define to
6668 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6669 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6670 instead of a mode, type and named flag.
6671 * config/sh/sh.c (sh_callee_copies): Likewise.
6672 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6673 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6674 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6675
6676 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6677
6678 * target.def (function_arg_advance): Take a function_arg_info instead
6679 of a mode, type and named flag.
6680 * doc/tm.texi: Regenerate.
6681 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6682 instead of a mode, type and named flag.
6683 * targhooks.c (default_function_arg_advance): Likewise.
6684 * calls.c (initialize_argument_information): Update call to
6685 targetm.calls.function_arg_advance.
6686 (emit_library_call_value_1): Likewise.
6687 * dse.c (get_call_args): Likewise.
6688 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6689 * function.c (assign_parms, gimplify_parameters): Likewise.
6690 * var-tracking.c (prepare_call_arguments): Likewise.
6691 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6692 function_arg_info instead of a mode, type and named flag.
6693 (aarch64_setup_incoming_varargs): Update call accordingly.
6694 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6695 function_arg_info instead of a mode, type and named flag.
6696 (alpha_setup_incoming_varargs): Update call accordingly.
6697 * config/arc/arc.c (arc_function_arg_advance): Take a
6698 function_arg_info instead of a mode, type and named flag.
6699 (arc_setup_incoming_varargs): Update call accordingly.
6700 * config/arm/arm.c (arm_function_arg_advance): Take a
6701 function_arg_info instead of a mode, type and named flag.
6702 (cmse_func_args_or_return_in_stack): Update call accordingly.
6703 (arm_function_ok_for_sibcall): Likewise.
6704 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6705 * config/avr/avr.c (avr_function_arg_advance): Take a
6706 function_arg_info instead of a mode, type and named flag.
6707 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6708 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6709 (c6x_call_saved_register_used): Update call accordingly.
6710 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6711 function_arg_info instead of a mode, type and named flag.
6712 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6713 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6714 (csky_setup_incoming_varargs): Update call accordingly.
6715 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6716 function_arg_info instead of a mode, type and named flag.
6717 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6718 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6719 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6720 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6721 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6722 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6723 (ix86_setup_incoming_varargs): Update call accordingly.
6724 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6725 function_arg_info instead of a mode, type and named flag.
6726 (ia64_setup_incoming_varargs): Update call accordingly.
6727 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6728 function_arg_info instead of a mode, type and named flag.
6729 (iq2000_expand_prologue): Update call accordingly.
6730 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6731 function_arg_info instead of a mode, type and named flag.
6732 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6733 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6734 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6735 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6736 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6737 Likewise.
6738 (microblaze_expand_prologue): Update call accordingly.
6739 * config/mips/mips.c (mips_function_arg_advance): Take a
6740 function_arg_info instead of a mode, type and named flag.
6741 (mips_setup_incoming_varargs): Update call accordingly.
6742 (mips_output_args_xfer): Likewise.
6743 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6744 function_arg_info instead of a mode, type and named flag.
6745 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6746 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6747 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6748 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6749 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6750 (nios2_setup_incoming_varargs): Update call accordingly.
6751 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6752 function_arg_info instead of a mode, type and named flag.
6753 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6754 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6755 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6756 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6757 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6758 (riscv_setup_incoming_varargs): Update call accordingly.
6759 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6760 function_arg_info instead of a mode, type and named flag.
6761 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6762 Likewise.
6763 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6764 (rs6000_parm_needs_stack): Update call accordingly.
6765 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6766 instead of a mode, type and named flag.
6767 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6768 (s390_call_saved_register_used): Update call accordingly.
6769 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6770 instead of a mode, type and named flag.
6771 (sh_output_mi_thunk): Update call accordingly.
6772 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6773 function_arg_info instead of a mode, type and named flag.
6774 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6775 (spu_setup_incoming_varargs): Update call accordingly.
6776 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6777 function_arg_info instead of a mode, type and named flag.
6778 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6779 (tilegx_setup_incoming_varargs): Update call accordingly.
6780 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6781 function_arg_info instead of a mode, type and named flag.
6782 (tilegx_setup_incoming_varargs): Update call accordingly.
6783 * config/v850/v850.c (v850_function_arg_advance): Take a
6784 function_arg_info instead of a mode, type and named flag.
6785 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6786 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6787 (visium_setup_incoming_varargs): Update call accordingly.
6788 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6789 function_arg_info instead of a mode, type and named flag.
6790
6791 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6792
6793 * target.def (function_arg, function_incoming_arg): Take a
6794 function_arg_info instead of a mode, tree and named flag.
6795 * doc/tm.texi: Regenerate.
6796 * targhooks.h (default_function_arg): Take a function_arg_info
6797 instead of a mode, tree and named flag.
6798 (default_function_incoming_arg): Likewise.
6799 * targhooks.c (default_function_arg): Likewise.
6800 (default_function_incoming_arg): Likewise.
6801 * calls.h (function_arg_info::end_marker_p): New function.
6802 (function_arg_info::end_marker): Likewise.
6803 * calls.c (prepare_call_address, initialize_argument_information)
6804 (expand_call, emit_library_call_value_1): Update calls to
6805 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6806 * dse.c: Include calls.h.
6807 (get_call_args): Update call to targetm.calls.function_arg.
6808 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6809 * var-tracking.c (prepare_call_arguments): Likewise.
6810 * function.c (assign_parm_find_entry_rtl): Update call to
6811 targetm.calls.function_incoming_arg.
6812 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6813 function_arg_info instead of a mode, tree and named flag.
6814 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6815 * config/arc/arc.c (arc_function_arg): Likewise.
6816 * config/arm/arm.c (arm_function_arg): Likewise.
6817 (cmse_func_args_or_return_in_stack): Update call accordingly.
6818 (arm_function_ok_for_sibcall): Likewise.
6819 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6820 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6821 instead of a mode, tree and named flag.
6822 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6823 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6824 (c6x_call_saved_register_used): Update call accordingly.
6825 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6826 instead of a mode, tree and named flag.
6827 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6828 (cris_function_arg_1): Likewise.
6829 * config/csky/csky.c (csky_function_arg): Likewise.
6830 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6831 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6832 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6833 (frv_function_arg_1): Likewise.
6834 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6835 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6836 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6837 * config/i386/i386.c (ix86_function_arg): Likewise.
6838 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6839 (ia64_function_arg_1): Likewise.
6840 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6841 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6842 accordingly.
6843 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6844 instead of a mode, tree and named flag.
6845 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6846 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6847 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6848 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6849 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6850 (microblaze_expand_prologue): Update call accordingly.
6851 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6852 instead of a mode, tree and named flag.
6853 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6854 (mmix_function_arg_1): Likewise.
6855 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6856 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6857 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6858 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6859 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6860 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6861 (nvptx_function_incoming_arg): Likewise.
6862 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6863 * config/pa/pa.c (pa_function_arg): Likewise.
6864 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6865 * config/pru/pru.c (pru_function_arg): Likewise.
6866 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6867 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6868 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6869 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6870 (rs6000_parm_needs_stack): Update call accordingly.
6871 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6872 instead of a mode, tree and named flag.
6873 * config/s390/s390.c (s390_function_arg): Likewise.
6874 (s390_call_saved_register_used): Update call accordingly.
6875 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6876 instead of a mode, tree and named flag.
6877 (sh_output_mi_thunk): Update call accordingly.
6878 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6879 (sparc_function_incoming_arg): Take a function_arg_info instead of
6880 a mode, tree and named flag.
6881 * config/spu/spu.c (spu_function_arg): Likewise.
6882 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6883 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6884 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6885 * config/v850/v850.c (v850_function_arg): Likewise.
6886 * config/vax/vax.c (vax_function_arg): Likewise.
6887 * config/visium/visium.c (visium_function_arg): Likewise.
6888 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6889 (xtensa_function_incoming_arg): Likewise.
6890
6891 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6892
6893 * target.def (setup_incoming_varargs): Take a function_arg_info
6894 instead of a mode and tree.
6895 * doc/tm.texi: Regenerate.
6896 * targhooks.h (default_setup_incoming_varargs): Take a
6897 function_arg_info instead of a mode and tree.
6898 * targhooks.c (default_setup_incoming_varargs): Likewise.
6899 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6900 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6901 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6902 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6903 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6904 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6905 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6906 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6907 Likewise.
6908 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6909 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6910 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6911 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6912 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6913 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6914 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6915 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6916 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6917 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6918 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6919 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6920 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6921 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6922 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6923 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6924 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6925 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6926 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6927 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6928 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6929 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6930 * function.c (assign_parms_setup_varargs): Update call to
6931 targetm.calls.setup_incoming_varargs.
6932
6933 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6934
6935 * target.def (pass_by_reference): Take a function_arg_info instead
6936 of a mode, type and named flag.
6937 * doc/tm.texi: Regenerate.
6938 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6939 accordingly.
6940 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6941 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6942 function_arg_info instead of a mode, type and named flag.
6943 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6944 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6945 mode, type and named flag.
6946 * calls.c (pass_by_reference): Likewise.
6947 (pass_va_arg_by_reference): Update call accordingly.
6948 (initialize_argument_information): Likewise.
6949 (emit_library_call_value_1): Likewise.
6950 * function.c (assign_parm_find_data_types): Likewise.
6951 * var-tracking.c (prepare_call_arguments): Likewise.
6952 * stor-layout.c: Include calls.h.
6953 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6954 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6955 function_arg_info instead of a mode, type and named flag.
6956 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6957 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6958 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6959 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6960 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6961 (c6x_call_saved_register_used): Update call to pass_by_reference.
6962 * config/cris/cris.c (cris_pass_by_reference): Take a
6963 function_arg_info instead of a mode, type and named flag.
6964 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6965 function_arg_info instead of a mode, type and named flag.
6966 (epiphany_arg_partial_bytes): Update call accordingly.
6967 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6968 function_arg_info instead of a mode, type and named flag.
6969 (ft32_arg_partial_bytes): Update call accordingly.
6970 * config/i386/i386.c (ix86_pass_by_reference): Take a
6971 function_arg_info instead of a mode, type and named flag.
6972 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6973 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6974 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6975 (m32r_return_in_memory): Update call accordingly.
6976 * config/mips/mips.c (mips_pass_by_reference): Take a
6977 function_arg_info instead of a mode, type and named flag.
6978 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6979 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6980 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6981 (moxie_arg_partial_bytes): Update call accordingly.
6982 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6983 function_arg_info instead of a mode, type and named flag.
6984 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6985 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6986 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6987 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6988 (riscv_return_in_memory): Update call accordingly.
6989 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6990 function_arg_info instead of a mode, type and named flag.
6991 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6992 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6993 * config/s390/s390.c (s390_pass_by_reference): Take a
6994 function_arg_info instead of a mode, type and named flag.
6995 (s390_call_saved_register_used): Update call accordingly.
6996 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6997 instead of a mode, type and named flag.
6998 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6999 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7000 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7001 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7002 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7003 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7004
7005 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7006
7007 * target.def (arg_partial_bytes): Take a function_arg_info instead
7008 of a mode, type and named flag.
7009 * doc/tm.texi: Regenerate.
7010 * target.h (function_arg_info): Declare.
7011 * calls.h (function_arg_info): New class.
7012 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7013 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7014 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7015 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7016 * calls.c (initialize_argument_information): Update call to
7017 targetm.calls.partial_bytes.
7018 (emit_library_call_value_1): Likewise.
7019 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7020 * function.c (assign_parm_find_entry_rtl): Likewise.
7021 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7022 function_arg_info instead of a mode, type and named flag.
7023 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7024 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7025 (cmse_func_args_or_return_in_stack): Update accordingly.
7026 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7027 function_arg_info instead of a mode, type and named flag.
7028 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7029 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7030 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7031 * config/fr30/fr30.c: Include calls.h.
7032 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7033 type and named flag.
7034 * config/frv/frv.c: Include calls.h.
7035 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7036 type and named flag.
7037 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7038 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7039 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7040 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7041 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7042 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7043 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7044 Likewise.
7045 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7046 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7047 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7048 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7049 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7050 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7051 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7052 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7053 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7054 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7055 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7056 (rs6000_parm_needs_stack): Update call accordingly.
7057 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7058 function_arg_info instead of a mode, type and named flag.
7059 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7060 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7061
7062 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7063
7064 * calls.h (must_pass_va_arg_in_stack): Declare.
7065 * calls.c (must_pass_va_arg_in_stack): New function.
7066 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7067 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7068 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7069 Likewise.
7070 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7071
7072 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7073
7074 * calls.h (pass_va_arg_by_reference): Declare.
7075 * calls.c (pass_va_arg_by_reference): New function.
7076 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7077 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7078 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7079 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7080 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7081 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7082 (mips_gimplify_va_arg_expr): Likewise.
7083 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7084 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7085 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7086 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7087 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7088 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7089 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7090 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7091 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7092 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7093 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7094
7095 2019-08-20 Richard Biener <rguenther@suse.de>
7096
7097 PR target/91498
7098 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7099 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7100 (convert_scalars_to_vector): Add timode_p parameter and use it
7101 to guard TImode-only operation.
7102 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7103 (pass_stv::execute): Pass down timode_p.
7104
7105 2019-08-20 Lili Cui <lili.cui@intel.com>
7106
7107 * common/config/i386/i386-common.c
7108 (processor_names): Add tigerlake and cooperlake.
7109 (processor_alias_table): Add tigerlake and cooperlake.
7110 * config.gcc: Add -march=tigerlake and cooperlake.
7111 * config/i386/driver-i386.c
7112 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7113 Add "has_avx" to classify processor.
7114 * config/i386/i386-builtins.c (processor_model) :
7115 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7116 (arch_names_table): Add tigerlake and cooperlake.
7117 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7118 and PROCESSOR_COOPERLAKE.
7119 * config/i386/i386-c.c
7120 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7121 * config/i386/i386-options.c
7122 (m_TIGERLAKE) : Define.
7123 (m_COOPERLAKE) : Ditto.
7124 (m_CORE_AVX512): Ditto.
7125 (processor_cost_table): Add cascadelake.
7126 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7127 * config/i386/i386.h
7128 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7129 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7130 (PTA_MOVDIRI): Ditto.
7131 (PTA_MOVDIR64B): Ditto.
7132 (PTA_COOPERLAKE) : Ditto.
7133 (PTA_TIGERLAKE) : Ditto.
7134 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7135 * doc/extend.texi: Add tigerlake and cooperlake.
7136 * doc/invoke.texi: Add tigerlake and cooperlake.
7137
7138 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7139
7140 * doc/install.texi (Specific, alpha): Remove note to use
7141 binutils 2.11.2 or later.
7142
7143 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7144
7145 PR middle-end/89544
7146 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7147 when possible.
7148
7149 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7150
7151 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7152 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7153 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7154 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7155 * config/aarch64/constraints.md (Dt): New constraint
7156 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7157
7158 2019-08-19 Richard Biener <rguenther@suse.de>
7159
7160 PR tree-optimization/91403
7161 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7162 cases we can handle with tail-recursion...
7163 (follow_ssa_edge_expr): ... here. Do so.
7164
7165 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7166
7167 PR target/91441
7168 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7169 implemented for -fsanitize=kernel-address, and merge check logic
7170 with -fsanitize=address.
7171
7172 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7173
7174 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7175 for cpu and machine. Factor 64/32b builtins.
7176
7177 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7178
7179 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7180 gone, point to sourceforge.net.
7181
7182 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7183
7184 * doc/ux.texi (User Experience Guidelines): Update reference.
7185
7186 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7187
7188 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7189 not LGPL".
7190
7191 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7192
7193 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7194 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7195
7196 2019-08-16 Martin Sebor <msebor@redhat.com>
7197
7198 * tree.def (TYPE_SIZE): Clarify.
7199 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7200
7201 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7202
7203 PR tree-optimization/91109
7204 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7205 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7206 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7207
7208 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7209
7210 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7211 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7212 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7213 (uavg<mode>3_ceil): New expander.
7214 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7215 mode iterator when creating CONST1_RTX.
7216 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7217 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7218 mode iterator for const1_operand predicate.
7219
7220 2019-08-16 Richard Biener <rguenther@suse.de>
7221
7222 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7223 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7224 follow_ssa_edge.
7225 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7226 (analyze_evolution_in_loop): Likewise.
7227 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7228 (follow_ssa_edge_expr): ... here. Refactor code.
7229
7230 2019-08-16 Richard Biener <rguenther@suse.de>
7231
7232 PR target/91469
7233 * config/i386/i386-features.c
7234 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7235
7236 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7237
7238 PR other/91255
7239 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7240 only if subst_name matches curr_attr string.
7241
7242 2019-08-16 Richard Biener <rguenther@suse.de>
7243
7244 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7245 stmt at gsi_p, instead replace it with a NOP removed later.
7246 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7247 that became dead because of that.
7248
7249 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7250
7251 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7252 for which we can't represent a range.
7253 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7254 set_varying.
7255 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7256 Set VR_UNDEFINED if type is not supported.
7257 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7258 * tree-vrp.c (value_range_base::check): Assert that a varying has
7259 min/max set.
7260 (value_range_base::equal_p): Early bail for undefines.
7261 (value_range_base::set_varying): Accept a type.
7262 (value_range::set_varying): Same.
7263 (value_range_base::type): VARYING can have a type, while UNDEFINE
7264 is typeless.
7265 (value_range_base::dump): Print type for VARYING nodes.
7266 (value_range_base::set): Add type to VARYING.
7267 (extract_range_from_multiplicative_op): Pass type to set_varying.
7268 (extract_range_from_binary_expr): Same.
7269 (value_range_base::intersect_helper): Same.
7270 (value_range_base::union_helper): Same.
7271 (value_range_base::normalize_symbolics): Same.
7272 (determine_value_range_1): Same.
7273 * tree-vrp.h (class value_range_base): Add type to set_varying.
7274 Add prototype for dump(void).
7275 Add prototype for supports_type_p.
7276 (class value_range): Add type to set_varying.
7277 Add prototype for dump(void).
7278 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7279 set_varying.
7280 (vr_values::get_lattice_entry): Set varying even if propagation
7281 finished.
7282 Pass type to set_varying.
7283 (vr_values::get_value_range): Remove vr_const_varying.
7284 Reallocate the lattice if needed.
7285 (vr_values::update_value_range): Pass type to set_varying.
7286 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7287 (vr_values::extract_range_from_binary_expr): Same.
7288 (vr_values::extract_range_from_unary_expr): Same.
7289 (vr_values::extract_range_from_cond_expr): Same.
7290 (vr_values::check_for_binary_op_overflow): Same.
7291 (vr_values::extract_range_basic): Same.
7292 (vr_values::extract_range_from_assignment): Same.
7293 (vr_values::vr_values): Increase size of num_vr_values.
7294 (vr_values::extract_range_from_phi_node): Pass type to
7295 set_varying.
7296
7297 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7298
7299 PR target/90878
7300 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7301 for costs of hard register moves.
7302 (ix86_register_move_cost): Likewise.
7303 * config/i386/i386.h (processor_costs): Move costs of hard
7304 register moves to hard_register. Add int_load, int_store,
7305 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7306 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7307 for costs of RTL expressions.
7308 * config/i386/x86-tune-costs.h: Move costs of hard register
7309 moves to hard_register. Duplicate int_load, int_store,
7310 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7311 sse_load, sse_store for costs of RTL expressions.
7312
7313 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7314
7315 * target.def (setup_incoming_vararg_bounds): Remove.
7316 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7317 * doc/tm.texi: Regenerate.
7318 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7319 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7320 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7321 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7322
7323 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7324
7325 MSP430: Fix lines over 80 characters long in
7326 config/msp430/*.{c,h} files
7327
7328 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7329 specifier in string.
7330 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7331 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7332 redundant old comment.
7333 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7334 Split line more than 80 characters long.
7335 * config/msp430/msp430.c (msp430_option_override): Likewise.
7336 (msp430_return_in_memory): Likewise.
7337 (msp430_gimplify_va_arg_expr): Likewise.
7338 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7339 (msp430_legitimate_constant): Likewise.
7340 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7341 (msp430_attr): Likewise.
7342 (msp430_data_attr): Likewise.
7343 (msp430_start_function): Likewise.
7344 (gen_prefix): Likewise.
7345 (msp430_init_sections): Likewise.
7346 (msp430_select_section): Likewise.
7347 (msp430_function_section): Likewise.
7348 (msp430_unique_section): Likewise.
7349 (msp430_output_aligned_decl_common): Likewise.
7350 (msp430_do_not_relax_short_jumps): Likewise.
7351 (msp430_init_builtins): Likewise.
7352 (msp430_expand_delay_cycles): Likewise.
7353 (msp430_expand_prologue): Likewise.
7354 (msp430_expand_epilogue): Likewise.
7355 (msp430_expand_helper): Likewise.
7356 (msp430_split_movsi): Likewise.
7357 (msp430_print_operand): Likewise.
7358 (msp430_return_addr_rtx): Likewise.
7359 (msp430x_extendhisi): Likewise.
7360 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7361 (ASM_SPEC): Likewise.
7362 Remove very obvious comments.
7363 (LIB_SPEC): Split line more than 80 characters long.
7364 (EH_RETURN_HANDLER_RTX): Likewise.
7365 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7366
7367 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7368
7369 MSP430: Fix whitespace errors and incorrect indentation in
7370 config/msp430/*.{c,h} files
7371
7372 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7373 (msp430_select_hwmult_lib): Likewise.
7374 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7375 (msp430_extract_mcu_data): Likewise.
7376 (struct t_msp430_mcu_data): Likewise.
7377 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7378 before left square bracket.
7379 (msp430_option_override): Fix indentation.
7380 (msp430_hard_regno_nregs_with_padding): Likewise.
7381 (msp430_initial_elimination_offset): Likewise.
7382 (msp430_special_register_convention_p): Remove whitespace before left
7383 square bracket and after exclamation mark.
7384 (msp430_evaluate_arg): Likewise.
7385 (msp430_callee_copies): Fix indentation.
7386 (msp430_gimplify_va_arg_expr): Likewise.
7387 (msp430_function_arg_advance): Remove whitespace before left square
7388 bracket.
7389 (reg_ok_for_addr): Likewise.
7390 (msp430_preserve_reg_p): Likewise.
7391 (msp430_compute_frame_info): Likewise.
7392 (msp430_asm_output_addr_const_extra): Add space between function name
7393 and open parenthesis.
7394 (has_section_name): Fix indentation.
7395 (msp430_attr): Remove trailing whitespace.
7396 (msp430_section_attr): Likewise.
7397 (msp430_data_attr): Likewise.
7398 (struct msp430_attribute_table): Fix comment and whitespace.
7399 (msp430_start_function): Remove whitespace before left square bracket.
7400 Add space between function name and open parenthesis.
7401 (msp430_select_section): Remove trailing whitespace.
7402 (msp430_section_type_flags): Remove trailing whitespace.
7403 (msp430_unique_section): Remove space before closing parenthesis.
7404 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7405 (msp430_builtins): Remove whitespace before left square bracket.
7406 (msp430_init_builtins): Fix indentation.
7407 (msp430_expand_prologue): Remove whitespace before left square bracket.
7408 Remove space before closing parenthesis.
7409 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7410 (msp430_split_movsi): Remove space before closing parenthesis.
7411 (helper_function_name_mappings): Fix indentation.
7412 (msp430_use_f5_series_hwmult): Fix whitespace.
7413 (use_32bit_hwmult): Likewise.
7414 (msp430_no_hwmult): Likewise.
7415 (msp430_output_labelref): Remove whitespace before left square bracket.
7416 (msp430_print_operand_raw): Likewise.
7417 (msp430_print_operand_addr): Likewise.
7418 (msp430_print_operand): Add two spaces after '.' in comment.
7419 Fix trailing whitespace.
7420 (msp430x_extendhisi): Fix indentation.
7421 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7422 tab.
7423 (PC_REGNUM): Likewise.
7424 (STACK_POINTER_REGNUM): Likewise.
7425 (CC_REGNUM): Likewise.
7426
7427 2019-08-15 Richard Biener <rguenther@suse.de>
7428
7429 PR target/91454
7430 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7431 helper.
7432 (general_scalar_chain::make_vector_copies): Use it.
7433
7434 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7435
7436 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7437
7438 2019-08-15 Martin Liska <mliska@suse.cz>
7439
7440 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7441 operators with no arguments.
7442 (eliminate_unnecessary_stmts): Likewise here.
7443
7444 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7445
7446 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7447 <case COMPARE>: Revert 2019-08-14 change.
7448 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7449 for (TARGET_64BIT || mode != DImode).
7450
7451 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7452
7453 * tree-vrp.c (value_range_base::set): Merge in code from
7454 value_range_base::set_and_canonicalize.
7455 Enforce canonicalization at set time.
7456 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7457 (value_range_base::set_undefined): Inline call to set().
7458 (value_range_base::set_varying): Same.
7459 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7460 (vrp_val_max): New argument handle_pointers.
7461 (vrp_val_min): Same.
7462 (ranges_from_anti_range): Same.
7463 (extract_range_into_wide_ints): Use tree argument instead of sign
7464 and precision.
7465 (extract_range_from_multiplicative_op): Take in tree type instead
7466 of precision and sign. Adapt function for canonicalized ranges.
7467 (extract_range_from_binary_expr): Pass type to
7468 extract_range_from_multiplicative_op.
7469 Adapt for canonicalized ranges.
7470 (extract_range_from_unary_expr): Same.
7471 (value_range_base::intersect_helper): Adjust for canonicalized
7472 ranges.
7473 (value_range_base::union_helper): Same.
7474 (value_range_base::normalize_symbolics): New.
7475 * tree-vrp.h (class value_range_base): Remove
7476 set_and_canonicalize.
7477 New prototype for normalize_symbolics.
7478 (class value_range): Remove set_and_canonicalize.
7479 (vrp_val_min): Adjust prototype.
7480 (vrp_val_max): Same.
7481 * vr-values.c
7482 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7483 instead of set_and_canonicalize.
7484
7485 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7486
7487 PR middle-end/91444
7488 * tree-vect-stmts.c (vectorizable_call): Check that the function
7489 is a BUILT_IN_MD function before passing it to
7490 targetm.vectorize.builtin_md_vectorized_function.
7491
7492 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7495 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7496 (aarch64_select_early_remat_modes): Use it.
7497
7498 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7499
7500 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7501 16 for SVE predicates even if they are fixed-length.
7502
7503 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7504
7505 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7506 operand order match the MOV /Z alias.
7507
7508 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7509
7510 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7511 the vector pattern as an aarch64_svpattern argument. Update the
7512 overloaded caller accordingly.
7513 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7514 (aarch64_output_sve_vector_inc_dec): Likewise.
7515
7516 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7517
7518 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7519 multiplication case, try to compute VG * (lowest set bit) directly
7520 rather than always basing the multiplication on VG. Use
7521 expand_mult for the multiplication if we can.
7522
7523 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7524
7525 * config/aarch64/aarch64-protos.h
7526 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7527 (aarch64_sve_inc_dec_immediate_p): Rename to...
7528 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7529 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7530 (aarch64_output_sve_scalar_inc_dec): Declare.
7531 (aarch64_output_sve_inc_dec_immediate): Rename to...
7532 (aarch64_output_sve_vector_inc_dec): ...this.
7533 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7534 (aarch64_output_sve_scalar_inc_dec): New functions.
7535 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7536 arguments. Only handle true ADDVL and ADDPL instructions;
7537 don't emit an INC or DEC.
7538 (aarch64_sve_inc_dec_immediate_p): Rename to...
7539 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7540 (aarch64_output_sve_inc_dec_immediate): Rename to...
7541 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7542 aarch64_sve_vector_inc_dec_immediate_p.
7543 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7544 (aarch64_sve_plus_immediate): New predicates.
7545 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7546 rather than aarch64_sve_addvl_addpl_immediate.
7547 (aarch64_sve_inc_dec_immediate): Rename to...
7548 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7549 aarch64_sve_vector_inc_dec_immediate_p.
7550 (aarch64_sve_add_operand): Update accordingly.
7551 * config/aarch64/constraints.md (Uai): New constraint.
7552 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7553 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7554 operand into a register if it satisfies aarch64_sve_plus_immediate.
7555 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7556 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7557 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7558 aarch64_output_sve_vector_inc_dec instead of
7559 aarch64_output_sve_inc_dec_immediate.
7560
7561 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7562
7563 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7564 (UNSPEC_REVW): New constants.
7565 (elem_bits): New mode attribute.
7566 (SVE_INT_UNARY): New int iterator.
7567 (optab): Handle UNSPEC_REV[BHW].
7568 (sve_int_op): New int attribute.
7569 (min_elem_bits): Handle VNx16QI and the predicate modes.
7570 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7571 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7572 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7573 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7574 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7575 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7576 unspecs based on the total width of the reversed data.
7577 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7578 reinterpret followed by a subreg on big-endian targets.
7579
7580 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7581 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7582
7583 * config/aarch64/aarch64-sve.md
7584 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7585 alternatives in which one of the inputs is in the same register
7586 as the output.
7587
7588 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7589
7590 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7591 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7592
7593 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7594
7595 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7596 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7597
7598 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7599 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7600
7601 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7602 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7603 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7604
7605 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7606 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7607
7608 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7609 Add an alternative that uses reversed shifts.
7610
7611 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7612
7613 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7614 struct.
7615
7616 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7617
7618 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7619 a commutativity marker.
7620
7621 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7622 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7623
7624 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7625 (aarch64_prepare_sve_cond_int_fma): Declare.
7626 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7627 (aarch64_prepare_sve_int_fma): New functions.
7628 (aarch64_prepare_sve_cond_int_fma): Likewise.
7629 * config/aarch64/aarch64-sve.md
7630 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7631 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7632 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7633 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7634 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7635 (*madd<mode>): Rename to...
7636 (*fma<mode>4): ...this.
7637 (*msub<mode>): Rename to...
7638 (*fnma<mode>4): ...this.
7639
7640 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7641 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7642
7643 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7644 Print 2.0 naturally.
7645 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7646 * config/aarch64/predicates.md
7647 (aarch64_sve_float_negated_arith_immediate): New predicate,
7648 renamed from aarch64_sve_float_arith_with_sub_immediate.
7649 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7650 positive and negative constants.
7651 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7652 or an aarch64_sve_float_arith_with_sub_immediate.
7653 * config/aarch64/constraints.md (vsN): Use
7654 aarch64_sve_float_negated_arith_immediate.
7655 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7656 iterator.
7657 (sve_pred_fp_rhs2_immediate): New int attribute.
7658 * config/aarch64/aarch64-sve.md
7659 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7660 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7661 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7662 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7663 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7664 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7665
7666 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7667 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7668
7669 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7670 (*aarch64_cond_abd<SVE_F:mode>_3)
7671 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7672
7673 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7674 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7675
7676 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7677 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7678
7679 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7680 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7681
7682 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7683 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7684 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7685 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7686 optabs.
7687 * optabs.h (create_convert_operand_from): Expand comment.
7688 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7689 when mapping scalar rtxes to vector operands.
7690 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7691 ashiftrt and lshiftrt.
7692 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7693 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7694 (*cond_<optab><mode>_any_const): New patterns.
7695
7696 2019-08-15 Martin Liska <mliska@suse.cz>
7697
7698 PR ipa/91438
7699 * cgraph.c (cgraph_node::remove): When setting
7700 n->origin = NULL for all nested functions, reset
7701 also next_nested.
7702
7703 2019-08-15 Martin Liska <mliska@suse.cz>
7704
7705 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7706 and next_nested.
7707
7708 2019-08-15 Martin Liska <mliska@suse.cz>
7709
7710 PR ipa/91404
7711 * passes.c (order): Remove.
7712 (uid_hash_t): Likewise).
7713 (remove_cgraph_node_from_order): Remove from set
7714 of pointers (cgraph_node *).
7715 (insert_cgraph_node_to_order): New.
7716 (duplicate_cgraph_node_to_order): New.
7717 (do_per_function_toporder): Register all 3 cgraph hooks.
7718 Skip removed_nodes now as we know about all of them.
7719
7720 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7721
7722 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7723 <case E_V8QImode>: Use vector_set path for
7724 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7725 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7726 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7727
7728 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7729
7730 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7731
7732 2019-08-14 Martin Sebor <msebor@redhat.com>
7733
7734 PR tree-optimization/91294
7735 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7736 source length as exact.
7737
7738 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7739
7740 * doc/extend.texi: Add "noinit" attribute documentation.
7741 * doc/sourcebuild.texi: Add noinit effective target documentation.
7742 * varasm.c (default_section_type_flags): Add support for "noinit"
7743 section.
7744 (default_elf_select_section): Add support for "noinit" attribute.
7745 * config/msp430/msp430.c (msp430_attribute_table): Remove
7746 "noinit" entry.
7747
7748 2019-08-14 Richard Biener <rguenther@suse.de>
7749 Uroš Bizjak <ubizjak@gmail.com>
7750
7751 PR target/91154
7752 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7753 mode arguments.
7754 (scalar_chain::smode): New member.
7755 (scalar_chain::vmode): Likewise.
7756 (dimode_scalar_chain): Rename to...
7757 (general_scalar_chain): ... this.
7758 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7759 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7760 base with TImode and V1TImode.
7761 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7762 (general_scalar_chain::vector_const_cost): Adjust for SImode
7763 chains.
7764 (general_scalar_chain::compute_convert_gain): Likewise. Add
7765 {S,U}{MIN,MAX} support.
7766 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7767 (general_scalar_chain::make_vector_copies): Likewise. Handle
7768 non-DImode chains appropriately.
7769 (general_scalar_chain::convert_reg): Likewise.
7770 (general_scalar_chain::convert_op): Likewise.
7771 (general_scalar_chain::convert_insn): Likewise. Add
7772 fatal_insn_not_found if the result is not recognized.
7773 (convertible_comparison_p): Pass in the scalar mode and use that.
7774 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7775 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7776 (scalar_to_vector_candidate_p): Remove by inlining into single
7777 caller.
7778 (general_remove_non_convertible_regs): Rename from
7779 dimode_remove_non_convertible_regs.
7780 (remove_non_convertible_regs): Remove by inlining into single caller.
7781 (convert_scalars_to_vector): Handle SImode and DImode chains
7782 in addition to TImode chains.
7783 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7784 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7785 (*<maxmin>di3_doubleword): Likewise.
7786
7787 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7788 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7789
7790 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7791 (*cond_bic<mode>_any): New patterns.
7792
7793 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7794
7795 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7796 take the equivalent mask, as well as a bit count.
7797 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7798 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7799 (aarch64_sve_pred_and_operand): New predicates.
7800 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7801 code attribute.
7802 * config/aarch64/aarch64-sve.md
7803 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7804 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7805
7806 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7807
7808 * config/aarch64/aarch64-sve.md
7809 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7810 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7811 New patterns.
7812
7813 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7814 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7815
7816 * config/aarch64/aarch64-sve.md
7817 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7818 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7819
7820 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7821 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7822
7823 * config/aarch64/aarch64-sve.md
7824 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7825 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7826
7827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7828
7829 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7830 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7831 New pattern.
7832
7833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7834 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7835
7836 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7837
7838 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7839 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7840
7841 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7842 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7843 (aarch64_print_operand): Add support for %I.
7844 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7845 Bitcast floating-point constants to the corresponding integer constant.
7846 (aarch64_float_const_representable_p): Handle vectors as well
7847 as scalars.
7848 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7849 for the new vcond_mask_<mode><vpred> expander.
7850 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7851 test aarch64_float_const_representable_p.
7852 (aarch64_sve_reg_or_dup_imm): New predicate.
7853 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7854 gen_vcond_mask_<mode><vpred> instead of
7855 gen_aarch64_sve_dup<mode>_const.
7856 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7857 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7858 for operands 1 and 2 respectively. Force operand 2 into a
7859 register if operand 1 is a register. Fold old define_insn...
7860 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7861 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7862 floating-point constants that can be moved as integers. Add
7863 alternatives for MOV /M and FMOV /M.
7864 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7865 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7866 1 and 2 respectively.
7867 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7868 as scalars.
7869 (vss): New constraint.
7870
7871 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7872
7873 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7874 (aarch64_sve_float_maxmin_operand): New predicates.
7875 * config/aarch64/constraints.md (vsB): New constraint.
7876 (vsM): Fix typo.
7877 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7878 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7879 UNSPEC_COND_FMINNM.
7880 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7881 Use aarch64_sve_float_maxmin_operand for operand 2.
7882 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7883 Add alternatives for the constant forms.
7884
7885 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7886
7887 * config/aarch64/constraints.md (vsb): New constraint.
7888 (vsm): Generalize description.
7889 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7890 iterator.
7891 (sve_imm_con): Handle smax, smin, umax and umin.
7892 (sve_imm_prefix): New code attribute.
7893 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7894 (aarch64_sve_vsb_operand): New predicates.
7895 (aarch64_sve_mul_immediate): Rename to...
7896 (aarch64_sve_vsm_immediate): ...this.
7897 (aarch64_sve_mul_operand): Rename to...
7898 (aarch64_sve_vsm_operand): ...this.
7899 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7900 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7901 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7902 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7903 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7904 add movprfx support for the immediate alternatives.
7905 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7906 of the above.
7907 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7908 for operand 3.
7909
7910 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7911
7912 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7913 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7914 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7915
7916 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7917
7918 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7919 (optab, sve_int_op): Handle them.
7920 * config/aarch64/aarch64-sve.md: Expand comment.
7921
7922 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7923
7924 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7925 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7926 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7927
7928 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7929
7930 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7931 (aarch64_expand_sve_const_pred_trn): New functions.
7932 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7933 use the above functions when the parameter is true.
7934 (aarch64_expand_sve_const_pred): Update call accordingly.
7935 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7936 Rename to...
7937 (@aarch64_sve_<perm_insn><mode>): ...this.
7938
7939 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7940
7941 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7942 Declare.
7943 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7944 (aarch64_sve_emit_int_cmp): New functions.
7945 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7946 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7947 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7948 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7949 (UNSPEC_PRED_Z): New unspec.
7950 (set_clobber_cc_nzc): Delete.
7951 * config/aarch64/aarch64-sve.md: Add a block comment about
7952 UNSPEC_PRED_Z.
7953 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7954 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7955 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7956 UNSPEC_MERGE_PTRUE.
7957 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7958 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7959 check for compatible predicates.
7960 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7961 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7962 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7963 comparisons above.
7964
7965 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7966
7967 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7968 * config/aarch64/aarch64-sve.md: Add a section describing it.
7969 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7970 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7971 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7972 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7973 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7974 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7975 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7976 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7977 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7978 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7979 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7980 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7981 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7982 (aarch64_evpc_rev_local): Update accordingly.
7983
7984 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7985
7986 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7987 iterators.
7988 (SVE_BHSI, SVE_SDI): Tweak comment.
7989 (SVE_HSDI): Likewise. Fix definition.
7990 (SVE_SDF): New mode iterator.
7991 (elem_bits): New mode attribute.
7992 (SVE_COND_FCVT): New int iterator.
7993 * config/aarch64/aarch64-sve.md
7994 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7995 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7996 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7997 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7998 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7999 ...these new patterns.
8000 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8001 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8002 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8003 Merge into...
8004 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8005 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8006 ...these new patterns.
8007 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8008 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8009 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8010 ...this new pattern.
8011 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8012 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8013 ...this new pattern.
8014 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8015
8016 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8017
8018 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8019 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8020 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8021 unspecs.
8022 (optab, su): Handle them.
8023 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8024 * config/aarch64/aarch64-sve.md
8025 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8026 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8027 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8028 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8029 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8030 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8031 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8032 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8033 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8034 FIXUORS.
8035 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8036 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8037 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8038 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8039 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8040 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8041 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8042 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8043 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8044 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8045 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8046 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8047 of UNSPEC_FLOAT_CONVERT.
8048 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8049 aarch64_sve_extend<mode><Vwide>2.
8050
8051 2019-08-14 Richard Biener <rguenther@suse.de>
8052
8053 PR target/91154
8054 * config/i386/i386-features.c
8055 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8056 individual instruction gain. Fix reg-reg copy GRP cost. Use
8057 ix86_cost->sse_op for vector instruction costs.
8058
8059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8060
8061 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8062 (cmp_op): Handle it.
8063 (SVE_COND_FP_CMP): Rename to...
8064 (SVE_COND_FP_CMP_I0): ...this.
8065 (SVE_FP_CMP): Remove.
8066 * config/aarch64/aarch64-sve.md
8067 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8068 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8069 using unspecs to represent the comparison.
8070 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8071 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8072 accordingly.
8073 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8074 (aarch64_unspec_cond_code): Move after integer code. Handle
8075 UNORDERED.
8076 (aarch64_emit_sve_predicated_cond): Replace with...
8077 (aarch64_emit_sve_fp_cond): ...this new function.
8078 (aarch64_emit_sve_or_conds): Replace with...
8079 (aarch64_emit_sve_or_fp_conds): ...this new function.
8080 (aarch64_emit_sve_inverted_cond): Replace with...
8081 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8082 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8083
8084 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8085
8086 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8087 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8088 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8089 SVE_HSD instead of SVE_SD.
8090
8091 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8092 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8093
8094 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8095 iterator.
8096 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8097 attributes.
8098 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8099 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8100 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8101 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8102 (*div<SVE_F:mode>3): Generalize to...
8103 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8104
8105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8106 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8107
8108 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8109 constants.
8110 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8111 predicate.
8112 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8113 Declare.
8114 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8115 function.
8116 * config/aarch64/aarch64-sve.md: Add a block comment about the
8117 handling of predicated FP operations.
8118 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8119 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8120 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8121 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8122 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8123 operand.
8124 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8125 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8126 operand.
8127 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8128 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8129 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8130 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8131 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8132 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8133 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8134 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8135 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8136 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8137 strictness operands. Use aarch64_sve_pred_dominates_p to check
8138 whether the predicate on the conditional operation is suitable
8139 for merging. Split patterns into the canonical equal-predicate form.
8140 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8141 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
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 (add<mode>3, *add<mode>3)
8147 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8148 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8149 rtx codes.
8150 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8151 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8152 unspecs.
8153
8154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8155 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8156
8157 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8158 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8159 actually has, rather than relying on REG_EQUAL notes.
8160 Make the insn operand order match the SVE operand order.
8161 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8162 the SVE operand order.
8163
8164 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8165
8166 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8167 (aarch64_emit_set_immediate): Likewise.
8168 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8169 (aarch64_pfalse_reg): Likewise.
8170 (aarch64_convert_sve_data_to_pred): New function.
8171 (aarch64_sve_move_pred_via_while): Take an optional target register
8172 and the required register mode.
8173 (aarch64_expand_sve_const_pred_1): New function.
8174 (aarch64_expand_sve_const_pred): Likewise.
8175 (aarch64_expand_mov_immediate): Build an all-true predicate
8176 if the significant bits of the immediate are all true. Use
8177 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8178 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8179 before register allocation.
8180 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8181 a VNx16BI PTRUE when splitting the memory alternative.
8182 (vec_duplicate<mode>): Update accordingly.
8183 (*pred_cmp<cmp_op><mode>): Rename to...
8184 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8185
8186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8187
8188 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8189 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8190 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8191 (UNSPEC_PTEST): New unspec.
8192 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8193 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8194 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8195 * config/aarch64/aarch64-sve.md: Add a new section describing the
8196 handling of UNSPEC_PTEST.
8197 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8198 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8199 (ptest_ptrue<mode>): Replace with...
8200 (aarch64_ptest<mode>): ...this new pattern.
8201 (cbranch<mode>4): Update after above changes.
8202 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8203 UNSPEC_PTEST_PTRUE.
8204 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8205 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8206 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8207
8208 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8209
8210 PR lto/91287
8211 * builtins.c (builtin_with_linkage_p): New function.
8212 * builtins.h (builtin_with_linkage_p): New function.
8213 * symtab.c (write_symbol): Remove redundant assert.
8214 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8215 Remove FIXME and use builtin_with_linkage_p.
8216
8217 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8218
8219 PR middle-end/91421
8220 * tree-core.h (function_decl::function_code): Change type to
8221 unsigned int.
8222 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8223 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8224 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8225 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8226 is BUILT_IN_NORMAL.
8227 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8228 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8229 (fndecl_built_in_p): Change the type of the "name" argument to
8230 unsigned int.
8231 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8232 after check for DECL_BUILT_IN_CLASS.
8233 * cgraphclones.c (build_function_decl_skip_args): Use
8234 set_decl_built_in_function.
8235 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8236 * ipa-split.c (split_function): Likewise.
8237 * langhooks.c (add_builtin_function_common): Likewise.
8238 * omp-simd-clone.c (simd_clone_create): Likewise.
8239 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8240 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8241 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8242 DECL_FUNCTION_CODE.
8243 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8244 instead of DECL_FUNCTION_CODE.
8245 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8246 instead of DECL_FUNCTION_CODE.
8247 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8248 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8249 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8250 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8251 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8252 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8253 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8254 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8255 (alpha_gimple_fold_builtin): Likewise.
8256 * config/arc/arc.c (arc_expand_builtin): Likewise.
8257 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8258 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8259 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8260 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8261 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8262 * config/frv/frv.c (frv_expand_builtin): Likewise.
8263 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8264 (gcn_expand_builtin): Likewise.
8265 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8266 (fold_builtin_cpu): Likewise.
8267 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8268 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8269 (ix86_gimple_fold_builtin): Likewise.
8270 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8271 (ia64_expand_builtin): Likewise.
8272 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8273 * config/mips/mips.c (mips_expand_builtin): Likewise.
8274 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8275 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8276 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8277 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8278 * config/pa/pa.c (pa_expand_builtin): Likewise.
8279 * config/pru/pru.c (pru_expand_builtin): Likewise.
8280 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8281 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8282 Likewise.
8283 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8284 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8285 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8286 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8287 (rs6000_builtin_reciprocal): Likewise.
8288 * config/rx/rx.c (rx_expand_builtin): Likewise.
8289 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8290 * config/s390/s390.c (s390_expand_builtin): Likewise.
8291 * config/sh/sh.c (sh_expand_builtin): Likewise.
8292 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8293 (sparc_fold_builtin): Likewise.
8294 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8295 * config/spu/spu.c (spu_expand_builtin): Likewise.
8296 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8297 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8298 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8299 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8300 (xtensa_expand_builtin): Likewise.
8301
8302 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8303
8304 PR middle-end/91421
8305 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8306 before the DECL_FUNCTION_CODE.
8307 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8308 to check for a BUILT_IN_ALLOCA call.
8309 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8310 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8311 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8312 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8313 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8314 for BUILT_IN_NORMAL functions.
8315 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8316 test for BUILT_IN_TM_ABORT.
8317 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8318 to check for a BUILT_IN_STACK_RESTORE call.
8319 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8320 * tree-ssa-threadedge.c
8321 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8322 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8323 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8324 test for a BUILT_IN_NORMAL call instead of a negative test for
8325 an internal function call.
8326
8327 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8328
8329 * tree.h (build_vector_a_then_b): Declare.
8330 * tree.c (build_vector_a_then_b): New function.
8331 * fold-const-call.c (fold_while_ult): Likewise.
8332 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8333 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8334 (aarch64_svpattern): New enum.
8335 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8336 constants through aarch64_expand_mov_immediate.
8337 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8338 than general_operand as the predicate for operand 1.
8339 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8340 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8341 insn_type.
8342 (simd_immediate_info::simd_immediate_info): New overload that
8343 takes a scalar_int_mode and an svpattern.
8344 (simd_immediate_info::u): Add a "pattern" field.
8345 (svpattern_token): New function.
8346 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8347 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8348 (aarch64_sve_move_pred_via_while): New functions.
8349 (aarch64_expand_mov_immediate): Try using
8350 aarch64_sve_move_pred_via_while for predicates that contain N ones
8351 followed by M zeros but that do not correspond to a VLnnn pattern.
8352 (aarch64_sve_pred_valid_immediate): New function.
8353 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8354 with PTRUE and PFALSE.
8355 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8356 forms.
8357
8358 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8359
8360 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8361 flag.
8362 (darwin_override_options): Likewise.
8363 * config/darwin.h: Likewise.
8364 * config/darwin.opt: Likewise.
8365 * config/i386/i386.c (output_pic_addr_const): Likewise.
8366 * config/rs6000/darwin.h: Likewise.
8367 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8368 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8369 ... this TARGET_MACHO_SYMBOL_STUBS.
8370 (FUNCTION_PROFILER):Likewise.
8371 * config/i386/i386.h: Likewise.
8372
8373 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8374
8375 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8376 <case E_V2SImode>: Use vec_extr path for
8377 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8378 <case E_V8QImode>: Ditto.
8379 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8380 Use SWI48 mode iterator. Use %k to output operand 0.
8381 (*mmx_pextrw): New insn pattern.
8382 (*mmx_pextrb): Ditto.
8383 (*mmx_pextrb_zext): Ditto.
8384
8385 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8386
8387 * target.def (libc_has_function, libc_has_fast_function): Improve
8388 documentation strings.
8389 * doc/tm.texi: Regenerate.
8390
8391 2019-08-13 Caroline Tice <cmtice@google.com>
8392
8393 PR other/91396
8394 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8395 vtv_end.o or vtv_end_preinit.o files if !static.
8396
8397 2019-08-13 Olivier Hainque <hainque@adacore.com>
8398
8399 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8400
8401 2019-08-13 Olivier Hainque <hainque@adacore.com>
8402
8403 * rtlanal.c (tablejump_casesi_pattern): New function, to
8404 determine if a tablejump insn is a casesi dispatcher. Extracted
8405 from patch_jump_insn.
8406 * rtl.h (tablejump_casesi_pattern): Declare.
8407 * cfgrtl.c (patch_jump_insn): Use it.
8408 * dwarf2cfi.c (create_trace_edges): Use it.
8409
8410 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8411
8412 PR target/81800
8413 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8414 operand is larger than a long int.
8415
8416 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8417
8418 * machmode.h (opt_mode::else_mode): New function.
8419 (opt_mode::else_blk): Use it.
8420 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8421 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8422 (aarch64_gen_stepped_int_parallel): Likewise.
8423 (aarch64_stepped_int_parallel_p): Likewise.
8424 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8425 argument.
8426 * config/aarch64/aarch64.c
8427 (aarch64_expand_sve_widened_duplicate): Delete.
8428 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8429 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8430 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8431 argument. Use early returns in the !CONST_INT_P handling.
8432 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8433 than handling some inline.
8434 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8435 from...
8436 (aarch64_simd_container_mode): ...here.
8437 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8438 (aarch64_sve_ld1rq_operand_p): New functions.
8439 * config/aarch64/predicates.md (descending_int_parallel)
8440 (aarch64_sve_ld1rq_operand): New predicates.
8441 * config/aarch64/constraints.md (UtQ): New constraint.
8442 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8443 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8444 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8445 (@aarch64_sve_reinterpret<mode>): New expander.
8446 (*aarch64_sve_reinterpret<mode>): New pattern.
8447 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8448 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8449 (*sve_ld1rq<Vesize>): Replace with...
8450 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8451
8452 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8453
8454 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8455 16:12.
8456
8457 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8458
8459 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8460 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8461 (msp430_check_path_for_devices): New.
8462 (parse_devices_csv_1): New.
8463 (parse_devices_csv): New.
8464 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8465 MCU data in devices.csv before using the hard-coded data.
8466 Warn if devices.csv isn't found and the MCU wasn't found in the
8467 hard-coded data either.
8468 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8469 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8470 Search for devices.csv on -I and -L paths.
8471 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8472 msp430_set_driver_var.
8473 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8474 -mdevices-csv-loc=.
8475 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8476 searched for devices.csv.
8477 (mwarn-devices-csv): Document option.
8478
8479 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8480
8481 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8482 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8483 Use a single Dn alternative instead of separate Dz and Dm
8484 alternatives. Use aarch64_output_sve_move_immediate.
8485 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8486 function.
8487 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8488 for predicates too.
8489 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8490 (aarch64_output_ptrue): Delete.
8491
8492 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8493
8494 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8495 INDEX.
8496 (simd_immediate_info::value, simd_immediate_info::step)
8497 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8498 with...
8499 (simd_immediate_info::u): ...this new union.
8500 (simd_immediate_info::simd_immediate_info): Update accordingly.
8501 (aarch64_output_simd_mov_immediate): Likewise.
8502 (aarch64_output_sve_mov_immediate): Likewise.
8503
8504 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8505
8506 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8507 extra_gcc_objs.
8508 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8509 (msp430_select_cpu): New spec function.
8510 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8511 MCU data.
8512 * config/msp430/msp430-devices.c: New file.
8513 * config/msp430/msp430-devices.h: New file.
8514 * config/msp430/msp430.c: Remove msp430_mcu_data.
8515 (msp430_option_override): Use msp430_extract_mcu_data to extract
8516 MCU data.
8517 (msp430_use_f5_series_hwmult): Likewise.
8518 (use_32bit_hwmult): Likewise.
8519 (msp430_no_hwmult): Likewise.
8520 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8521 assembler.
8522 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8523 and -mcpu option.
8524 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8525 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8526 Remove hard-coded MCU multilib data.
8527
8528 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8529
8530 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8531 based on the mode instead of testing properties of it.
8532
8533 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8534
8535 * doc/md.texi: Document the x and y constraints for AArch64.
8536 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8537 (FP_LO8_REGS): New reg_class.
8538 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8539 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8540 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8541 * config/aarch64/predicates.md (aarch64_simd_register): Use
8542 FP_REGNUM_P instead of checking the classes manually.
8543 * config/aarch64/constraints.md (y): New constraint.
8544
8545 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8546
8547 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8548 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8549 * config/aarch64/aarch64-simd.md
8550 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8551 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8552 from the asm template.
8553 * config/aarch64/aarch64-sve.md
8554 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8555 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8556 from the asm template.
8557 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8558 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8559 from the asm template.
8560 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8561
8562 2019-08-13 Martin Liska <mliska@suse.cz>
8563
8564 * value-prof.c (gimple_ic_transform): Add new line.
8565 Print details with MSG_NOTE.
8566
8567 2019-08-13 Martin Liska <mliska@suse.cz>
8568
8569 * doc/invoke.texi: Document automatic detection of jobserver.
8570 * lto-wrapper.c (run_gcc): Detect jobserver always.
8571
8572 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8573
8574 * config/i386/i386-expand.c (ix86_expand_vector_set)
8575 <case E_V2SImode>: Use vec_merge path for
8576 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8577 <case E_V8QImode>: Ditto.
8578 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8579 (*mmx_pinsrb): Ditto.
8580
8581 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8582
8583 PR target/83250
8584 PR target/91340
8585 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8586 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8587 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8588 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8589 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8590
8591 2019-08-12 Richard Biener <rguenther@suse.de>
8592
8593 PR lto/91375
8594 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8595 flag_devirtualize.
8596
8597 2019-08-12 Richard Biener <rguenther@suse.de>
8598
8599 PR driver/91130
8600 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8601 lang_mask option, always use CL_DRIVER.
8602 (get_options_from_collect_gcc_options): Adjust.
8603 (find_and_merge_options): Likewise.
8604 (run_gcc): Likewise.
8605
8606 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8607
8608 * ipa-predicate.c (add_condition): Restore inverted test.
8609
8610 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8611
8612 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8613 (enum omp_clause_device_type_kind): New enum.
8614 (struct tree_omp_clause): Add subcode.device_type_kind.
8615 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8616 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8617 for device_type clause.
8618 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8619 * tree-pretty-print.c (dump_omp_clause): Likewise.
8620
8621 PR target/91408
8622 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8623 vector_operand.
8624
8625 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8626
8627 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8628 handling spilled pseudos.
8629
8630 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8631
8632 PR target/91386
8633 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8634 to preserve the contents of the original insns.
8635
8636 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8637
8638 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8639 (addsi3_compare_op2): Likewise.
8640
8641 2019-08-09 Martin Liska <mliska@suse.cz>
8642
8643 * alias.c (alias_ptr_types_compatible_p): Strengten
8644 type comparison in LTO mode.
8645
8646 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8647
8648 PR middle-end/90313
8649 * tree-tailcall.c (find_tail_calls): Reject calls that might
8650 read from an escaped RESULT_DECL.
8651
8652 2019-08-09 Martin Liska <mliska@suse.cz>
8653
8654 * doc/invoke.texi: Document the option value.
8655 * lto-wrapper.c (run_gcc): Set auto_parallel
8656 only with -flto=auto.
8657
8658 2019-08-09 Martin Liska <mliska@suse.cz>
8659
8660 * opts.c (common_handle_option): Error for an invalid argument
8661 to -flto=.
8662
8663 2019-08-09 Martin Liska <mliska@suse.cz>
8664
8665 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8666 use dump_printf to report optimization.
8667 (sem_variable::merge): Likwise.
8668 (sem_item_optimizer::merge_classes): Use dump_printf to report
8669 ICF hits.
8670
8671 2019-08-09 Martin Liska <mliska@suse.cz>
8672
8673 * value-prof.c (gimple_divmod_fixed_value_transform):
8674 Use dump_printf_loc.
8675 (gimple_mod_pow2_value_transform): Likewise.
8676 (gimple_mod_subtract_transform): Likewise.
8677 (init_node_map): Likewise.
8678 (gimple_ic_transform): Likewise.
8679 (gimple_stringops_transform): Likewise.
8680
8681 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8682
8683 * doc/extend.texi: Add const qualifier to ld intrinsics.
8684
8685 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8686
8687 * config/rs6000/dfp.md (D64_D128): Rename to ...
8688 (DDTD): ... this, throughout.
8689 (dfp_suffix): Rename to ...
8690 (q): ... this, throughout.
8691
8692 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8693
8694 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8695 (dfp_suffix): Ditto.
8696 (adddd3, addtd3): Merge to ...
8697 (add<mode>3 for D64_D128): ... this.
8698 (subdd3, subtd3): Merge to ...
8699 (sub<mode>3 for D64_D128): ... this.
8700 (muldd3, multd3): Merge to ...
8701 (mul<mode>3 for D64_D128): ... this.
8702 (divdd3, divtd3): Merge to ...
8703 (div<mode>3 for D64_D128): ... this.
8704 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8705 (*cmp<mode>_internal1 for D64_D128): ... this.
8706 (ftruncdd2, ftrunctd2): Merge to ...
8707 (ftrunc<mode>2 for D64_D128): ... this.
8708 (fixdddi2, fixtddi2): Merge to ...
8709 (fix<mode>di2 for D64_D128): ... this.
8710
8711 2019-08-08 Jim Wilson <jimw@sifive.com>
8712
8713 PR target/91229
8714 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8715 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8716 Pass into recursive call.
8717 (riscv_flatten_aggregate_argument): New arg. Pass to
8718 riscv_flatten_aggregate_field.
8719 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8720 riscv_flatten_aggregate_argument twice, with false and true as last
8721 arg. Process result twice. Compare results and warn if different.
8722 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8723
8724 2019-08-08 Martin Liska <mliska@suse.cz>
8725
8726 PR bootstrap/91352
8727 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8728 * lto-wrapper.c (jobserver_active_p): Likewise.
8729
8730 2019-08-08 Martin Liska <mliska@suse.cz>
8731
8732 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8733 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8734 (create_version_clone_with_body): Likewise.
8735
8736 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8737
8738 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8739 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8740 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8741 GOVD_EXPLICIT flags.
8742 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8743 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8744 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8745 call install_var_field with mask 11 instead of 3.
8746 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8747 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8748
8749 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8750
8751 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8752 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8753
8754 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8755
8756 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8757 MOVPRFX alternatives. Make the GPR alternatives more expensive
8758 than the FPR ones.
8759
8760 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8761
8762 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8763 Disparage the GPR alternative relative to the FPR one.
8764 Fix handling of 8-bit and 16-bit FPR values.
8765
8766 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8767
8768 * config/aarch64/iterators.md (BITWISEV): Delete.
8769 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8770 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8771 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8772 UNSPEC_FMINNMV, UNSPEC_FMINV.
8773 (bit_reduc_op): Delete.
8774 (sve_int_op): New int attribute.
8775 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8776 UNSPEC_FMINNMV, UNSPEC_FMINV.
8777 * config/aarch64/aarch64-sve.md
8778 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8779 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8780 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8781 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8782 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8783 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8784 new patterns.
8785 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8786 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8787 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8788 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8789 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8790 new patterns.
8791
8792 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8795 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8796 (fms<mode>4, *fms<mode>4): Replace with...
8797 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8798 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8799 Use unspecs instead of rtx codes.
8800 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8801 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8802
8803 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8804
8805 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8806 int iterator.
8807 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8808 * config/aarch64/aarch64-sve.md
8809 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8810 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8811 use a single unspec for the rhs.
8812 (*<su><maxmin><mode>3): Delete.
8813 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8814
8815 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8816
8817 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8818 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8819 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8820 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8821 (optab, sve_fp_op): Handle them.
8822 (SVE_FP_UNARY): Delete.
8823 (optab): Remove sqrt entry.
8824 (sve_fp_op): Remove neg, abs and sqrt entries.
8825 (SVE_COND_FP_UNARY): New int iterator.
8826 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8827 (*<frint_pattern><mode>2): Delete.
8828 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8829 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8830 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8831 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8832
8833 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8834
8835 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8836
8837 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8838
8839 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8840 (UNSPEC_COND_FADD): ...this.
8841 (UNSPEC_COND_SUB): Rename to...
8842 (UNSPEC_COND_FSUB): ...this.
8843 (UNSPEC_COND_MUL): Rename to...
8844 (UNSPEC_COND_FMUL): ...this.
8845 (UNSPEC_COND_DIV): Rename to...
8846 (UNSPEC_COND_FDIV): ...this.
8847 (UNSPEC_COND_MAX): Rename to...
8848 (UNSPEC_COND_FMAXNM): ...this.
8849 (UNSPEC_COND_MIN): Rename to...
8850 (UNSPEC_COND_FMINNM): ...this.
8851 (UNSPEC_COND_LT): Rename to...
8852 (UNSPEC_COND_FCMLT): ...this.
8853 (UNSPEC_COND_LE): Rename to...
8854 (UNSPEC_COND_FCMLE): ...this.
8855 (UNSPEC_COND_EQ): Rename to...
8856 (UNSPEC_COND_FCMEQ): ...this.
8857 (UNSPEC_COND_NE): Rename to...
8858 (UNSPEC_COND_FCMNE): ...this.
8859 (UNSPEC_COND_GE): Rename to...
8860 (UNSPEC_COND_FCMGE): ...this.
8861 (UNSPEC_COND_GT): Rename to...
8862 (UNSPEC_COND_FCMGT): ...this.
8863 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8864 (sve_fp_op_rev): Update accordingly.
8865 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8866
8867 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8868
8869 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8870 banner comments.
8871 * config/aarch64/check-sve-md.awk: New file.
8872 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8873 (insn-conditions.md): Depend on it.
8874
8875 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8876
8877 PR target/91385
8878 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8879 (*negsi2_cmpz_zext): Ditto.
8880
8881 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8882
8883 * config/aarch64/iterators.md (commutative): Remove.
8884
8885 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8886
8887 PR driver/91130
8888 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8889 processing COLLECT_GCC_OPTIONS.
8890 (run_gcc): Likewise.
8891
8892 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8893
8894 PR tree-optimization/91109
8895 * lra-remat.c (update_scratch_ops): Remove assignment of the
8896 hard register.
8897
8898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8899
8900 * data-streamer.h (streamer_write_poly_uint64): Declare.
8901 (streamer_read_poly_uint64): Likewise.
8902 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8903 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8904 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8905 (add_condition): Take a poly_int64 size.
8906 * ipa-predicate.c (add_condition): Likewise.
8907 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8908 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8909 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8910 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8911 condition::size as a poly_int64.
8912 (unmodified_parm_1): Take a poly_int64 size pointer.
8913 (unmodified_parm): Likewise.
8914 (unmodified_parm_or_parm_agg_item): Likewise.
8915 (set_cond_stmt_execution_predicate): Update accordingly.
8916 (set_switch_stmt_execution_predicate): Likewise.
8917 (will_be_nonconstant_expr_predicate): Likewise.
8918 (will_be_nonconstant_predicate): Likewise.
8919 (inline_read_section): Stream condition::size as a poly_int.
8920 (ipa_fn_summary_write): Likewise.
8921
8922 2019-08-07 Martin Liska <mliska@suse.cz>
8923
8924 * fold-const.c (twoval_comparison_p): Replace int
8925 with bool as a return type.
8926 (simple_operand_p): Likewise.
8927 (operand_equal_p): Replace int with bool as a return type.
8928 * fold-const.h (operand_equal_p): Likewise.
8929
8930 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8931
8932 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8933 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8934 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8935 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8936 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8937 * tree-pretty-print.c (dump_omp_clause): Likewise.
8938 * tree-nested.c (convert_nonlocal_omp_clauses,
8939 convert_local_omp_clauses): Likewise.
8940 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8941 Likewise.
8942 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8943 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8944 clause with array or reference to array types, no matter what type
8945 except for reference it has.
8946
8947 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8948
8949 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8950
8951 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8952
8953 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8954 (arch_canonicalize): Support rv32g and rv64g and fix error
8955 handling.
8956
8957 2019-08-06 Martin Liska <mliska@suse.cz>
8958
8959 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8960 and DECL_IS_OPERATOR_DELETE_P.
8961
8962 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8963
8964 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8965 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8966 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8967 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8968 (gimplify_omp_for): Don't do C++ random access iterator clause
8969 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8970 don't predetermine the artificial iterator in case of C++ random
8971 access iterators as lastprivate, but private. For OMP_LOOP, force
8972 bind expr around simd body and force for_pre_body before the
8973 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8974 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8975 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8976 diff var of C++ random access iterators. Handle
8977 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8978 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8979 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8980 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8981 * omp-low.c (lower_rec_input_clauses): For
8982 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8983 variables instead of default constructing them.
8984 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8985 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8986 is_taskloop_ctx check from the assert to the guarding condition.
8987
8988 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8989
8990 * config/riscv/multilib-generator: (canonical_order): New.
8991 (arch_canonicalize): Dito.
8992 Apply arch_canonicalize for alts.
8993
8994 2019-08-05 Martin Sebor <msebor@redhat.com>
8995
8996 * doc/extend.texi (Common Variable Attributes): Document alias
8997 attribute.
8998
8999 2019-08-05 Marek Polacek <polacek@redhat.com>
9000
9001 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9002 * doc/invoke.texi: Document -Wcomma-subscript.
9003
9004 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9005
9006 * tree-core.h (tree_function_decl): Make function_code an
9007 independent field. Group the remaining bitfields into bytes
9008 and move decl_type so that it contines to be at a byte boundary.
9009 Leave 12 bits for future expansion.
9010
9011 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9012
9013 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9014 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9015 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9016 IFN_MASK_STORE.
9017
9018 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9019
9020 * gimple.h (gimple_move_vops): Declare.
9021 * gimple.c (gimple_move_vops): New function
9022 * gimple-fold.c (replace_call_with_call_and_fold)
9023 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9024 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9025 (gimple_fold_call): Use it.
9026 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9027 * tree-call-cdce.c (use_internal_fn): Likewise.
9028 * tree-if-conv.c (predicate_load_or_store): Likewise.
9029 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9030 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9031 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9032 (update_call_from_tree): Likewise.
9033 * tree-vect-stmts.c (vectorizable_load): Likewise.
9034 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9035
9036 2019-08-05 Martin Liska <mliska@suse.cz>
9037
9038 PR c++/91334
9039 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9040 with not arguments.
9041 (eliminate_unnecessary_stmts): Likewise.
9042
9043 2019-08-05 Richard Biener <rguenther@suse.de>
9044
9045 PR middle-end/91169
9046 * fold-const.c (get_array_ctor_element_at_index): Create
9047 offset_ints according to the sign of the index type and treat
9048 that as signed if it is obviously so.
9049
9050 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9051
9052 PR target/91341
9053 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9054 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9055 _mm256_storeu2_m128i): New function.
9056
9057 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9058
9059 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9060 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9061
9062 2019-08-05 Alan Modra <amodra@gmail.com>
9063
9064 PR target/91349
9065 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9066 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9067
9068 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9069
9070 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9071 bug that was fixed in Tcl 8.6.1.
9072
9073 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9074
9075 * config/rs6000/future.md: New file.
9076 * config/rs6000/rs6000.md: Include future.md.
9077 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9078
9079 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9080
9081 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9082 check to use targetm.slow_unaligned_access instead.
9083
9084 * function.c (assign_param_data_one): Remove unused data members.
9085
9086 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9087
9088 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9089 build_distinct_type_copy.
9090 (simd_clone_adjust_argument_types): Ditto.
9091 (simd_clone_adjust): Call build_distinct_type_copy here.
9092 (expand_simd_clones): Ditto.
9093
9094 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9095
9096 PR target/91201
9097 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9098
9099 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9100
9101 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9102 from 'const void *'.
9103 (sort_locs_in_loop_postorder_cmp): Likewise.
9104
9105 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9106
9107 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9108 (hot-bb-count-ws-permille): Likewise.
9109 (hot-bb-frequency-fraction): Likewise.
9110 (unlikely-bb-count-fraction): Likewise.
9111 * params.def (hot-bb-count-fraction): Rework description.
9112 (hot-bb-count-ws-permille): Likewise.
9113 (hot-bb-frequency-fraction): Likewise.
9114 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9115 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9116
9117 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9118
9119 PR target/91323
9120 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9121 Return false.
9122
9123 2019-08-02 Richard Biener <rguenther@suse.de>
9124
9125 * vec.h (vec::sort): Add gcc_qsort_r support.
9126 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9127 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9128 to gcc_qsort_r style callback.
9129 (sort_locs_in_loop_postorder_cmp): Likewise.
9130 (analyze_memory_references): Use gcc_sort_r interfaces.
9131 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9132
9133 2019-08-02 Martin Liska <mliska@suse.cz>
9134
9135 PR lto/91313
9136 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9137 to detect working job server.
9138 (driver::detect_jobserver): Test whether jobserver
9139 is active from GCC driver. That will prevent situation where
9140 GCC is invoked from a LD plugin and the linker already uses
9141 file descriptors suggested by make. That leads to a wrong
9142 detection.
9143 * gcc.h (driver): Add detect_jobserver.
9144 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9145 not scanning for --jobserver-auth prefix.
9146
9147 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9148
9149 PR tree-optimization/91201
9150 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9151 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9152 extraction.
9153
9154 2019-08-01 Martin Sebor <msebor@redhat.com>
9155
9156 PR c++/90947
9157 * tree.c (type_initializer_zero_p): Define.
9158 * tree.h (type_initializer_zero_p): New function.
9159
9160 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9161
9162 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9163
9164 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9165
9166 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9167 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9168 * predict.c (maybe_hot_count_p): Likewise.
9169 (maybe_hot_bb_p): Tweak comment.
9170 (maybe_hot_edge_p): Likewise.
9171 (probably_never_executed): Likewise. Minor tweak.
9172 (probably_never_executed_bb_p): Likewise.
9173 (unlikely_executed_edge_p): Likewise.
9174 (probably_never_executed_edge_p): Likewise.
9175 (optimize_function_for_size_p): Likewise.
9176 (optimize_function_for_speed_p): Likewise.
9177 (function_optimization_type): Likewise.
9178 (optimize_bb_for_size_p): Likewise.
9179 (optimize_bb_for_speed_p): Likewise.
9180 (bb_optimization_type): Likewise.
9181 (optimize_edge_for_size_p): Likewise.
9182 (optimize_edge_for_speed_p): Likewise.
9183 (optimize_insn_for_size_p): Likewise.
9184 (optimize_insn_for_speed_p): Likewise.
9185 (optimize_loop_for_size_p): Likewise.
9186 (optimize_loop_for_speed_p): Likewise.
9187 (optimize_loop_nest_for_speed_p): Likewise.
9188 (optimize_loop_nest_for_size_p): Likewise.
9189 (predictable_edge_p): Likewise.
9190 (handle_missing_profiles): Minor tweak.
9191
9192 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9193
9194 * config/rs6000/predicates.md (pcrel_external_address): Update
9195 comment.
9196
9197 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9198
9199 PR target/85693
9200 * config/i386/mmx.md (usadv8qi): New expander.
9201
9202 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9203
9204 PR c++/90590
9205 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9206 with reserved names that are in a system header.
9207
9208 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9209
9210 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9211 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9212 (*vec_extractv2si_0_zext): Ditto.
9213 (*vec_extractv2si_1): Add (rm,x) alternative.
9214 (*vec_extractv2si_1_zext): New insn pattern.
9215 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9216 insn constraint.
9217
9218 2019-08-01 Richard Biener <rguenther@suse.de>
9219
9220 * domwalk.c (bb_postorder): Remove static variable.
9221 (cmp_bb_postorder): Adjust.
9222 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9223 (dom_walker::walk): Adjust.
9224
9225 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9226
9227 * sort.cc (sort_r_ctx): New struct.
9228 (reorder23): Make templated on context type.
9229 (reorder45): Ditto.
9230 (cmp1): Ditto. Adjust signature.
9231 (netsort): Ditto.
9232 (mergesort): Ditto.
9233 [CHECKING_P] (cmp2to3): New static function. Use it...
9234 (gcc_qsort) [CHECKING_P]: ...here.
9235 (gcc_sort_r): New function.
9236 * system.h (sort_r_cmp_fn): New function typedef.
9237 (qsort_chk): Adjust signature.
9238 (gcc_sort_r): Declare.
9239 * vec.c (qsort_chk_error): Adjust.
9240 (qsort_chk): Adjust.
9241
9242 2019-08-01 Richard Biener <rguenther@suse.de>
9243
9244 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9245 (compute_antic): Localize it here.
9246
9247 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9248
9249 * common/config/riscv/riscv-common.c: Check -march string ends
9250 with null.
9251
9252 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9253
9254 * ipa-devirt.c (type_warning_cmp): Make static.
9255 (decl_warning_cmp): Ditto.
9256
9257 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9258
9259 PR target/91050
9260 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9261 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9262 use of deleted rs6000_dejagnu_cpu_index variable.
9263 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9264 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9265 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9266 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9267 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9268 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9269
9270 2019-07-31 Richard Biener <rguenther@suse.de>
9271
9272 PR tree-optimization/91280
9273 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9274 Decompose MEM_REF manually for offset handling.
9275
9276 2019-07-31 Richard Biener <rguenther@suse.de>
9277
9278 PR tree-optimization/91293
9279 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9280 of reduction stmts.
9281
9282 2019-07-31 Matt Thomas <matt@3am-software.com>
9283 Nick Hudson <nick@nthcliff.demon.co.uk>
9284 Matthew Green <mrg@eterna.com.au>
9285 Maya Rashish <coypu@sdf.org>
9286
9287 * config.gcc (hppa*-*-netbsd*): New target.
9288 * config/pa/pa-netbsd.h: New file.
9289 * config/pa/pa32-netbsd.h: New file.
9290
9291 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9292
9293 PR tree-optimization/91201
9294 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9295
9296 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9297
9298 * config/gcn/gcn-valu.md
9299 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9300 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9301 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9302 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9303 struct ilist. Add nops for delayeduse insns.
9304 * config/gcn/gcn.md (delayeduse): New attribute.
9305 (*movbi): Remove s_waitcnt from stores.
9306 (*mov<mode>_insn): Likewise.
9307 (*movti_insn): Likewise. Add delayeduse attribute.
9308 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9309 (atomic_store<mode>): Remove or adjust s_waitcnt.
9310
9311 2019-07-31 Richard Biener <rguenther@suse.de>
9312
9313 * vr-values.h (vr_values::swap_vr_value): New.
9314 (vr_values::free_value_range): likewise.
9315 * vr-values.c (vr_values::swap_vr_value): Implement.
9316 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9317 Do not return a range or take a var.
9318 (evrp_range_analyzer::stack): Change back to recording a non-const
9319 value_range *.
9320 * gimple-ssa-evrp-analyze.c
9321 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9322 value-range.
9323 (evrp_range_analyzer::pop_to_marker): Adjust.
9324 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9325 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9326 no longer needed value-range.
9327
9328 2019-07-31 Martin Liska <mliska@suse.cz>
9329
9330 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9331 have size and (or) alignment as 2nd and later arguments.
9332 Mark all of them as necessary.
9333
9334 2019-07-31 Richard Biener <rguenther@suse.de>
9335
9336 PR tree-optimization/91178
9337 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9338 Use tail-recursion.
9339
9340 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9341
9342 PR tree-optimization/91201
9343 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9344 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9345 TARGET_AVX512F.
9346 (reduc_plus_scal_<mode>): Improve formatting by introducing
9347 a temporary.
9348
9349 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9350
9351 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9352 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9353 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9354 (aarch64_init_tme_builtins): New.
9355 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9356 (aarch64_expand_builtin_tme): New.
9357 (aarch64_expand_builtin): Handle TME builtins.
9358 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9359 __ARM_FEATURE_TME when enabled.
9360 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9361 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9362 (TARGET_TME): New.
9363 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9364 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9365 UNSPECV_TCANCEL.
9366 (tstart, ttest, tcommit, tcancel): New instructions.
9367 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9368 (__tcancel, __ttest): New.
9369 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9370 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9371 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9372 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9373 * config/arm/types.md: Add new tme type attr.
9374 * doc/invoke.texi: Document "tme".
9375
9376 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9377
9378 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9379 warn_unused_result attribute.
9380 (cmse_check_address_range): Add warn_unused_result attribute.
9381
9382 2019-07-31 Richard Biener <rguenther@suse.de>
9383
9384 PR tree-optimization/91257
9385 * tree-vrp.c (union_ranges): Unify equality and less tests
9386 by using compare_values. Re-order cheap tests first.
9387
9388 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9389
9390 PR middle-end/91301
9391 * gimplify.c (gimplify_omp_for): If for class iterator on
9392 distribute parallel for there is no data sharing clause
9393 on inner_for_stmt, look for private clause on combined
9394 parallel too and if found, move it to inner_for_stmt.
9395
9396 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9397
9398 * lra-int.h (lra_operand_data): Remove early_clobber field.
9399 (lra_insn_reg): Likewise.
9400 * lra.c (debug_operand_data): Update accordingly.
9401 (setup_operand_alternative): Likewise.
9402 (new_insn_reg): Likewise. Remove early_clobber parameter.
9403 (collect_non_operand_hard_regs): Update call accordingly.
9404 Don't assign to lra_insn_reg::early_clobber.
9405 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9406 and update calls to new_insn_reg.
9407 (lra_update_insn_regno_info): Update calls accordingly.
9408 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9409 alternative number as a parameter and test whether the operand
9410 is earlyclobbered in that particular alternative.
9411 (process_alt_operands): Update call accordingly. Use per-alternative
9412 checks for earyclobber here too.
9413 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9414 against zero for IRA_UNKNOWN_ALT.
9415
9416 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9417
9418 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9419
9420 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9421
9422 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9423 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9424
9425 2019-07-30 Martin Liska <mliska@suse.cz>
9426
9427 PR ipa/89330
9428 * cgraph.c (cgraph_edge::make_direct): Use
9429 edge->indirect_unknown_callee as edge->resolve_speculation can
9430 deallocate edge which is this pointer.
9431
9432 2019-07-30 Richard Biener <rguenther@suse.de>
9433
9434 PR tree-optimization/91257
9435 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9436
9437 2019-07-30 Martin Liska <mliska@suse.cz>
9438
9439 * doc/invoke.texi: Document new behavior.
9440 * lto-wrapper.c (cpuset_popcount): New function
9441 is a copy of libgomp/config/linux/proc.c.
9442 (init_num_threads): Likewise.
9443 (run_gcc): Automatically detect core count for -flto.
9444 (jobserver_active_p): New function.
9445
9446 2019-07-30 Richard Biener <rguenther@suse.de>
9447
9448 PR tree-optimization/91257
9449 * bitmap.h (bitmap_ior_into_and_free): Declare.
9450 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9451 whether to add the unliked element to the freelist.
9452 (bitmap_list_insert_element_after): Add defaulted param for
9453 an already allocated element.
9454 (bitmap_ior_into_and_free): New function.
9455 * tree-ssa-structalias.c (condense_visit): Reduce the
9456 ponts-to and edge bitmaps of the SCC members in a
9457 logarithmic fashion rather than all to one.
9458
9459 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9460
9461 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9462 parameter. When nonnull, make sure that the addition or subtraction
9463 has the same condition.
9464 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9465 for CFN_COND_MUL too.
9466
9467 2019-07-30 Richard Biener <rguenther@suse.de>
9468
9469 PR tree-optimization/91291
9470 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9471 constant values.
9472
9473 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9474
9475 PR middle-end/91216
9476 * omp-low.c (global_nonaddressable_vars): New variable.
9477 (use_pointer_for_field): For global decls, if they are non-addressable,
9478 remember it in the global_nonaddressable_vars bitmap, if they are
9479 addressable and in the global_nonaddressable_vars bitmap, ignore their
9480 TREE_ADDRESSABLE bit.
9481 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9482 vars in global_nonaddressable_vars bitmap.
9483 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9484
9485 PR target/91150
9486 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9487 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9488 comparison to unsigned HOST_WIDE_INT before shifting it left.
9489
9490 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9491
9492 * config/i386/i386.md (movstrict<mode>): Use register_operand
9493 predicate for operand 0. Add expander condition. Assert that
9494 operand 0 is a SUBREG RTX.
9495 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9496 Update operand constraints and insn condition.
9497 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9498 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9499 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9500 Update operand 0 constraints.
9501 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9502
9503 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9504
9505 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9506 when -m{code,data}-region are used without -mlarge.
9507 * config/msp430/msp430.c (msp430_option_override): Error when a
9508 non-default code or data region is used without -mlarge.
9509 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9510 attributes when they are used without -mlarge.
9511
9512 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9513
9514 PR target/70320
9515 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9516
9517 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9518
9519 PR middle-end/91242
9520 * wide-int.h (generic_wide_int::sext_elt): New function.
9521 * inchash.h (hash::add_wide_int): Use it instead of elt.
9522
9523 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9524
9525 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9526 CODE_FOR_arm_##.
9527 * config/arm/arm.md (<crc_variant>): Rename to...
9528 (arm_<crc_variant>): ... This.
9529 (<cdp>): Rename to...
9530 (arm_<cdp>): ... This.
9531 (<ldc>): Rename to...
9532 (arm_<ldc>): ... This.
9533 (<stc>): Rename to...
9534 (arm_<stc>): ... This.
9535 (<mcr>): Rename to...
9536 (arm_<mcr>): ... This.
9537 (<mrc>): Rename to...
9538 (arm_<mrc>): ... This.
9539 (<mcrr>): Rename to...
9540 (arm_<mcrr>): ... This.
9541 (<mrrc>): Rename to...
9542 (arm_<mrrc>): ... This.
9543
9544 2019-07-29 Richard Biener <rguenther@suse.de>
9545
9546 PR tree-optimization/91257
9547 * tree-ssa-sccvn.h (struct vn_avail): New.
9548 (struct vn_ssa_aux): Add avail member.
9549 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9550 member, add m_avail_freelist one.
9551 (rpo_elim::~rpo_elim): Remove.
9552 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9553 data structure.
9554 (rpo_elim::eliminate_push_avail): Likewise.
9555 (do_unwind): Likewise.
9556 (do_rpo_vn): Likewise.
9557
9558 2019-07-29 Richard Biener <rguenther@suse.de>
9559
9560 PR tree-optimization/91257
9561 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9562 most cases, instead call compare_values which handles the
9563 symbolic ranges we handle specially.
9564 (compare_values_warnv): Do not call operand_less_p but open-code
9565 the effective fold calls. Avoid converting so much.
9566
9567 2019-07-29 Martin Liska <mliska@suse.cz>
9568
9569 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9570 remove LHS of operator new call. It's handled latter.
9571
9572 2019-07-29 Richard Biener <rguenther@suse.de>
9573
9574 PR tree-optimization/91267
9575 * vr-values.c (vr_values::update_value_range): Add early return
9576 for effectively VARYING lattice entry.
9577
9578 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9579
9580 PR debug/86638
9581 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9582 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9583 necessary if keep_all_vdefs_p is true.
9584 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9585 that keep_all_vdefs_p is false.
9586 (mark_all_reaching_defs_necessary): Likewise.
9587 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9588
9589 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9590
9591 * common.opt (Og): Change the initial value of flag_dse to 0.
9592 * opts.c (default_options_table): Move OPT_ftree_dse from
9593 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9594 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9595 entry before the OPT_ftree_sra entry.
9596 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9597 of flags disabled by Og.
9598
9599 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9600
9601 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9602 variables for -Og.
9603
9604 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9605
9606 * doc/sourcebuild.texi (check-function-bodies): Document.
9607
9608 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9609
9610 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9611 VEC_DUPLICATE of a fixed-length vector even if the result
9612 is variable-length. Likewise fold a duplicate of a
9613 variable-length vector if the variable-length vector is
9614 itself a duplicate of a fixed-length sequence.
9615 (test_vector_ops_duplicate): Test more cases.
9616
9617 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9618
9619 * vector-builder.h (vector_builder): Add a shape template parameter.
9620 (vector_builder::new_unary_operation): New function, generalizing
9621 the old tree_vector_builder function.
9622 (vector_builder::new_binary_operation): Likewise.
9623 (vector_builder::binary_encoded_nelts): Likewise.
9624 * int-vector-builder.h (int_vector_builder): Update template
9625 parameters to vector_builder.
9626 (int_vector_builder::shape_nelts): New function.
9627 * rtx-vector-builder.h (rtx_vector_builder): Update template
9628 parameters to vector_builder.
9629 (rtx_vector_builder::shape_nelts): New function.
9630 (rtx_vector_builder::nelts_of): Likewise.
9631 (rtx_vector_builder::npatterns_of): Likewise.
9632 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9633 * tree-vector-builder.h (tree_vector_builder): Update template
9634 parameters to vector_builder.
9635 (tree_vector_builder::shape_nelts): New function.
9636 (tree_vector_builder::nelts_of): Likewise.
9637 (tree_vector_builder::npatterns_of): Likewise.
9638 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9639 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9640 (tree_vector_builder::new_binary_operation): Delete.
9641 (tree_vector_builder::binary_encoded_nelts): Likewise.
9642 * simplify-rtx.c: Include rtx-vector-builder.h.
9643 (distributes_over_addition_p): New function.
9644 (simplify_const_unary_operation)
9645 (simplify_const_binary_operation): Generalize handling of vector
9646 constants to include variable-length vectors.
9647 (test_vector_ops_series): Add more tests.
9648
9649 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9650
9651 PR lto/91222
9652 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9653 than INDENTIFIER_POINTER.
9654
9655 2019-07-28 Martin Liska <mliska@suse.cz>
9656
9657 PR ipa/89330
9658 * cgraph.c (symbol_table::create_edge): Always allocate
9659 a cgraph_edge.
9660 (symbol_table::free_edge): Store summary_id to
9661 edge_released_summary_ids if != -1;
9662 * cgraph.h (NEXT_FREE_NODE): Remove.
9663 (SET_NEXT_FREE_NODE): Likewise.
9664 (NEXT_FREE_EDGE): Likewise.
9665 (symbol_table::release_symbol): Store summary_id to
9666 cgraph_released_summary_ids if != -1;
9667 (symbol_table::allocate_cgraph_symbol): Always allocate
9668 a cgraph_node.
9669
9670 2019-07-28 Alan Modra <amodra@gmail.com>
9671
9672 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9673 gen_sibcall.
9674
9675 2019-07-28 Alan Modra <amodra@gmail.com>
9676
9677 PR target/91135
9678 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9679 define.
9680 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9681 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9682 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9683
9684 2019-07-28 Alan Modra <amodra@gmail.com>
9685
9686 PR target/91050
9687 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9688 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9689 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9690 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9691 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9692 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9693 in asm_default spec.
9694 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9695 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9696
9697 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9698
9699 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9700
9701 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9702
9703 PR target/89517
9704 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9705 * config/aarch64/aarch64-option-extensions.def: Add new comments
9706 and restore easier to read options.
9707
9708 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9709
9710 * convert.c (convert_to_real_1): Move part of conversion code...
9711 * match.pd: ...To here.
9712
9713 2019-07-26 Martin Jambor <mjambor@suse.cz>
9714
9715 PR ipa/89330
9716 * ipa-inline-transform.c (check_speculations_1): New function.
9717 (push_all_edges_in_set_to_vec): Likewise.
9718 (check_speculations): Use check_speculations_1, new parameter
9719 new_edges.
9720 (inline_call): Pass new_edges to check_speculations.
9721 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9722 NULL.
9723 (speculation_useful_p): Early return true if edge is inlined, remove
9724 later checks for inline_failed.
9725
9726 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9727
9728 PR rtl-optimization/91223
9729 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9730 matching with INOUT operand.
9731
9732 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9733
9734 * stmt.c (expand_case): Try to narrow the index type if it's larger
9735 than a word. Tidy up.
9736
9737 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9738
9739 * cif-code.def (NEVER_CALL): New code.
9740 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9741 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9742
9743 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9744
9745 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9746 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9747
9748 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9749
9750 * ipa-devirt.c (add_type_duplicate): Fix return value.
9751
9752 2019-07-25 Richard Biener <rguenther@suse.de>
9753
9754 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9755 type parameter and use it instead of guessing expression
9756 type from the first operand.
9757 (extract_range_from_binary_expr): Pass expr_type down.
9758
9759 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9760
9761 * config/arm/arm.md (SATrev): Change to code attribute.
9762 (*satsi_<SAT:code>): Adjust for the above.
9763 (*satsi_<SAT:code>_shift): Likewise.
9764
9765 2019-07-25 Richard Biener <rguenther@suse.de>
9766
9767 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9768 Make value_range * temporary const.
9769 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9770 Likewise.
9771 (evrp_range_analyzer::record_ranges_from_): Likewise.
9772 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9773 deal with having recorded a const one.
9774 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9775 Return a const value_range *.
9776 (evrp_range_analyzer::pop_value_range): Likewise.
9777 (evrp_range_analyzer::stack): Record const value_range *s.
9778 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9779 Adjust.
9780 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9781 (format_integer): Likewise.
9782 (sprintf_dom_walker::handle_gimple_call): Likewise.
9783 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9784 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9785 (vrp_prop::get_value_range): Adjust.
9786 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9787 modifying the lattice in-place.
9788 (vrp_prop::visit_stmt): Likewise.
9789 * vr-values.c (vr_values::get_lattice_entry): New private method.
9790 (vr_values::get_value_range): Wrap it and return a const
9791 value_range *.
9792 (vr_values::set_def_to_varying): New.
9793 (vr_values::set_defs_to_varying): Use it.
9794 (vr_values::update_value_range): Likewise.
9795 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9796 (values::op_with_constant_singleton_va): Likewise.
9797 (vr_values::extract_range_for_var_from_co): Likewise.
9798 (vr_values::extract_range_from_ssa_name): Likewise.
9799 (vr_values::extract_range_from_cond_expr): Likewise.
9800 (vr_values::extract_range_basic): Likewise.
9801 (compare_ranges): Take const value_range *, adjust.
9802 (compare_range_with_value): Likewise.
9803 (vrp_valueize): Adjust.
9804 (vrp_valueize_1): Likewise.
9805 (vr_values::get_vr_for_comparison): Return a const value_range *.
9806 (vr_values::compare_name_with_value): Adjust.
9807 (vr_values::compare_names): Likewise.
9808 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9809 Likewise.
9810 (vr_values::vrp_evaluate_conditional): Likewise.
9811 (find_case_label_ranges): Take a const value_range *.
9812 (vr_values::vrp_visit_switch_stmt): Adjust.
9813 (vr_values::extract_range_from_phi_node): Likewise.
9814 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9815 (vr_values::simplify_abs_using_ranges): Likewise.
9816 (test_for_singularity): Take a const value_range *.
9817 (range_fits_type_p): Likewise.
9818 (vr_values::simplify_cond_using_ranges_1): Adjust.
9819 (vr_values::simplify_cond_using_ranges_2): Likewise.
9820 (vr_values::simplify_switch_using_ranges): Likewise.
9821 (vr_values::simplify_float_conversion_usi): Likewise.
9822 (vr_values::two_valued_val_range_p): Likewise.
9823 * vr-values.h (vr_values::get_value_range): Return a const
9824 value_range *.
9825 (vr_values::set_def_to_varying): New.
9826 (vr_values::get_lattice_entry): New private method.
9827 (vr_values::get_vr_for_comparison): Return a const value_range *.
9828
9829 2019-07-25 Martin Liska <mliska@suse.cz>
9830 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9831
9832 PR c++/23383
9833 * common.opt: Add -fallocation-dce
9834 * gimple.c (gimple_call_operator_delete_p): New.
9835 * gimple.h (gimple_call_operator_delete_p): Likewise.
9836 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9837 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9838 DECL_IS_OPERATOR_DELETE_P.
9839 (mark_all_reaching_defs_necessary_1): Likewise.
9840 (propagate_necessity): Likewise.
9841 (eliminate_unnecessary_stmts): Handle
9842 gimple_call_operator_delete_p.
9843 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9844 Add packing of OPERATOR_DELETE.
9845 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9846 Similarly here.
9847 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9848 (DECL_SET_IS_OPERATOR_DELETE): New.
9849 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9850
9851 2019-07-25 Martin Liska <mliska@suse.cz>
9852
9853 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9854 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9855 * coverage.c (coverage_begin_function): Likewise.
9856 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9857 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9858 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9859 (sem_item::hash_referenced_symbol_properties): Likewise.
9860 * lto-streamer-out.c (hash_tree): Likewise.
9861 * predict.c (expr_expected_value_1): Likewise.
9862 * tree-inline.c (expand_call_inline): Likewise.
9863 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9864 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9865 * tree-core.h (enum function_decl_type): New enum.
9866 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9867 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9868 (set_function_decl_type): Likewise.
9869 (DECL_IS_OPERATOR_NEW_P): New.
9870 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9871 (DECL_LAMBDA_FUNCTION): Likewise.
9872 (DECL_LAMBDA_FUNCTION_P): Likewise.
9873 (DECL_IS_OPERATOR_NEW): Remove.
9874 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9875
9876 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9877
9878 * ipa-profile.c (get_most_common_single_value): Use
9879 get_nth_most_common_value.
9880 * profile.c (sort_hist_value): New function.
9881 (compute_value_histograms): Call sort_hist_value to sort the
9882 values after loading from disk.
9883 * value-prof.c (get_most_common_single_value): Rename to ...
9884 get_nth_most_common_value. Add input params n, return
9885 the n_th value and count.
9886 (gimple_divmod_fixed_value_transform): Use
9887 get_nth_most_common_value.
9888 (gimple_ic_transform): Likewise.
9889 (gimple_stringops_transform): Likewise.
9890 * value-prof.h (get_most_common_single_value): Add input params
9891 n, default to 0.
9892
9893 2019-07-25 Richard Biener <rguenther@suse.de>
9894
9895 PR tree-optimization/91236
9896 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9897 size of CONSTRUCTOR write. Fix buffer size we pass to
9898 native_encode_expr.
9899
9900 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9901
9902 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9903 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9904 r273773.
9905
9906 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9907
9908 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9909 explicitly disabled with --disable-initfini-array.
9910
9911 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9912
9913 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9914 if-exists.
9915
9916 2019-07-24 Martin Sebor <msebor@redhat.com>
9917
9918 PR tree-optimization/91183
9919 PR tree-optimization/86688
9920 * builtins.c (compute_objsize): Handle MEM_REF.
9921 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9922 (get_min_string_length): Remove.
9923 (count_nonzero_bytes): New function.
9924 (handle_char_store): Rename...
9925 (handle_store): to this. Handle multibyte stores via integer types.
9926 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9927 function name.
9928
9929 2019-07-24 Martin Sebor <msebor@redhat.com>
9930
9931 PR driver/80545
9932 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9933 (diagnostic_report_diagnostic): Same.
9934 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9935 (diagnostic_context::lang_mask): New data member.
9936 * ipa-pure-const.c (suggest_attribute): Use
9937 lang_hooks.option_lang_mask ().
9938 * opts-common.c (option_enabled): Handle new argument.
9939 (get_option_state): Pass an additional argument.
9940 * opts.c (print_filtered_help): Print supported languages for
9941 unsupported options. Adjust printing of current state.
9942 * opts.h (option_enabled): Add argument.
9943 * toplev.c (print_switch_values): Use lang_mask.
9944 (general_init): Set global_dc->lang_mask.
9945
9946 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9947
9948 PR bootstrap/87030
9949 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9950
9951 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9952
9953 * cgraphunit.c (symbol_table::compile): Start and stop
9954 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9955 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9956
9957 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9958
9959 * gimplify.c (flag_instrument_functions_exclude_p): Include
9960 namespace/class information in the printable name.
9961 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9962 to tokens entered into the vector.
9963
9964 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9965
9966 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9967 (get_static_chain): Call it instead of build_simple_mem_ref.
9968 (get_frame_field): Likewise.
9969 (get_nonlocal_debug_decl): Likewise.
9970 (convert_nonlocal_reference_op): Likewise.
9971
9972 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9973
9974 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9975 declaration.
9976 (arc_compute_frame_size): Millicode is disabled when compiling
9977 ISR.
9978 (arc_return_address_register): Likewise.
9979 (arc_compute_function_type): Likewise.
9980 (arc_compute_frame_size): Likewise.
9981 (secondary_reload_info): Likewise.
9982 (arc_get_unalign): Likewise.
9983 (arc_can_use_return_insn): Declare.
9984 * config/arc/arc.c (AUX_LP_START): Define
9985 (AUX_LP_END): Likewise.
9986 (arc_frame_info): Update gmask member to 64-bit datum.
9987 (GMASK_LEN): Update.
9988 (arc_compute_function_type): Make it static, move it forward.
9989 (arc_must_save_register): Update, consider the extra regs.
9990 (arc_compute_millicode_save_restore_regs): Update to use the 64
9991 bit gmask.
9992 (arc_compute_frame_size): Likewise.
9993 (arc_enter_leave_p): Likewise.
9994 (arc_save_callee_saves): Likewise.
9995 (arc_restore_callee_saves): Likewise.
9996 (arc_save_callee_enter): Likewise.
9997 (arc_restore_callee_leave): Likewise.
9998 (arc_save_callee_milli): Likewise.
9999 (arc_restore_callee_milli): Likewise.
10000 (arc_expand_prologue): Add new interrupt handling.
10001 (arc_return_address_register): Make it static, move it forward.
10002 (arc_expand_epilogue): Add new interrupt handling.
10003 (arc_get_unalign): Delete.
10004 (arc_epilogue_uses): Make sure we do not remove the extra
10005 saved/restored registers when interrupt.
10006 (arc_can_use_return_insn): New function.
10007 (push_reg): Likewise.
10008 (pop_reg): Likewise.
10009 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10010 procedures.
10011 (arc_restore_callee_saves): Likewise, but restoring.
10012 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10013 (R33_REG): Likewise.
10014 (R34_REG): Likewise.
10015 (R35_REG): Likewise.
10016 (R36_REG): Likewise.
10017 (R37_REG): Likewise.
10018 (R38_REG): Likewise.
10019 (R39_REG): Likewise.
10020 (R45_REG): Likewise.
10021 (R46_REG): Likewise.
10022 (R47_REG): Likewise.
10023 (R48_REG): Likewise.
10024 (R49_REG): Likewise.
10025 (R50_REG): Likewise.
10026 (R51_REG): Likewise.
10027 (R52_REG): Likewise.
10028 (R53_REG): Likewise.
10029 (R54_REG): Likewise.
10030 (R55_REG): Likewise.
10031 (R56_REG): Likewise.
10032 (R58_REG): Likewise.
10033 (type): Add rtie attribute.
10034 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10035 (movsi_insn): Accept moves to lp_count.
10036 (rtie): Update pattern.
10037 (simple_return): Simplify it, don't use this pattern as a return
10038 from an interrupt.
10039 (arc600_rtie): New pattern.
10040 (p_return_i): Clean up.
10041 (return): Likewise.
10042 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10043 family CPUs.
10044 * config/arc/predicates.md (move_src_operand): Consider lp_count
10045 as a register.
10046
10047 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10048
10049 * config/s390/predicates.md (addv_const_operand): New predicate.
10050 * config/s390/s390-modes.def (CCO): New condition code mode.
10051 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10052 (s390_branch_condition_mask): Likewise.
10053 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10054 ("mulv<mode>4"): New expanders.
10055 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10056 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10057 pattern definitions.
10058
10059 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10060
10061 PR middle-end/91166
10062 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10063 (define_predicates): Add entry for uniform_vector_p.
10064 (vec_same_elem_p): New match pattern.
10065
10066 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10067
10068 PR bootstrap/87030
10069 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10070 * config/i386/darwin32-biarch.h .. to here.
10071 * config/i386/darwin64-biarch.h: Adjust comments.
10072 * config/rs6000/darwin32-biarch.h: Likewise.
10073 * config/rs6000/darwin64-biarch.h: Likewise.
10074 * config.gcc: Missed commit from r273746
10075 (*-*-darwin*): Don't include CPU t-darwin here.
10076 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10077 an error message if i686-darwin configuration is attempted for
10078 Darwin >= 18.
10079
10080 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10081
10082 PR bootstrap/87030
10083 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10084 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10085 an error message if i686-darwin configuration is attempted for
10086 Darwin >= 18.
10087 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10088 (powerpc-*-darwin*): Use biarch files where needed.
10089 (powerpc64-*-darwin*): Likewise.
10090 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10091 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10092 arch case.
10093 * config/i386/darwin32-biarch.h: New.
10094 * config/i386/darwin64.h: Rename.
10095 * config/i386/darwin64-biarch.h: To this.
10096 * config/i386/t-darwin: Rename.
10097 * config/i386/t-darwin32-biarch: To this.
10098 * config/i386/t-darwin64: Rename.
10099 * config/i386/t-darwin64-biarch: To this.
10100 * config/rs6000/darwin32-biarch.h: New.
10101 * config/rs6000/darwin64.h: Rename.
10102 * config/rs6000/darwin64-biarch.h: To this.
10103 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10104 arch case.
10105 * config/rs6000/t-darwin8: Rename.
10106 * config/rs6000/t-darwin32-biarch: To this.
10107 * config/rs6000/t-darwin64 Rename.
10108 * config/rs6000/t-darwin64-biarch: To this.
10109
10110 2019-07-23 Martin Sebor <msebor@redhat.com>
10111
10112 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10113
10114 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10115
10116 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10117 (rh): New alias for it.
10118
10119 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10120
10121 * gdbhooks.py: Pass replace=True to
10122 gdb.printing.register_pretty_printer.
10123
10124 2019-07-23 Richard Biener <rguenther@suse.de>
10125
10126 PR debug/91231
10127 * lto-streamer-in.c (input_function): Drop inline-entry markers
10128 that ended up with an unknown location block.
10129
10130 2019-07-23 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/83518
10133 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10134 init from a constant even when partial defs are already recorded.
10135
10136 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10137
10138 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10139 * config/i386/znver1.md: Enable patterns for znver2 and add store
10140 variants which use extra AGU unit.
10141
10142 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10143
10144 * config/i386/i386-options.c (ix86_option_override_internal): Default
10145 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10146 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10147 for ZNVER2.
10148
10149 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10150
10151 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10152 (znver2_costs): Update 256 bit SSE costs and multiplication.
10153
10154 2019-07-23 Jan Beulich <jbeulich@suse.com>
10155
10156 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10157 Require only AVX512F.
10158 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10159 alternative expanding to vpternlog.
10160
10161 2019-07-23 Martin Liska <mliska@suse.cz>
10162
10163 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10164 to -flto in dwarf producer string.
10165
10166 2019-07-23 Richard Biener <rguenther@suse.de>
10167
10168 * tree-cfg.c (label_for_bb): Remove global var.
10169 (main_block_label): Take label_for_bb as argument.
10170 (cleanup_dead_labels_eh): Likewise, adjust.
10171 (cleanup_dead_labels): Adjust.
10172
10173 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10174
10175 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10176 Configurations): Add documentation for __builtin_mtfsf.
10177
10178 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10179
10180 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10181 * config/riscv/riscv.c (riscv_constant_alignment): Use
10182 riscv_align_data_type.
10183 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10184 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10185 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10186 * config/riscv/riscv.opt (malign-data): New.
10187 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10188
10189 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10190
10191 * cgraph.c (dump_graphviz): New function.
10192 * cgraph.h (dump_graphviz): New function.
10193 * symtab.c (dump_graphviz): New function.
10194
10195 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10196
10197 * config/aarch64/aarch64-simd.md
10198 (*aarch64_simd_sra<mode>): New.
10199 * config/aarch64/iterators.md
10200 (SHIFTRT): New iterator.
10201 (sra_op): New attribute.
10202
10203 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10204
10205 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10206 callee-saved regs R4->R10 in an interrupt function that calls another
10207 function.
10208
10209 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10210
10211 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10212 (_mm_blendv_epi8): New.
10213
10214 2019-07-22 Richard Biener <rguenther@suse.de>
10215
10216 PR tree-optimization/91221
10217 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10218 restrict partial-def handling of empty constructors and
10219 memset to refs with known offset.
10220
10221 2019-07-22 Jan Beulich <jbeulich@suse.com>
10222
10223 * config/i386/sse.md (ternlogsuffix): New.
10224 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10225 AVX512F is in use.
10226 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10227
10228 2019-07-22 Martin Liska <mliska@suse.cz>
10229
10230 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10231 comment.
10232 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10233
10234 2019-07-22 Martin Liska <mliska@suse.cz>
10235
10236 * lto-section-in.c (lto_get_section_data):
10237 Use new function get_compression.
10238 * lto-streamer-out.c (produce_lto_section): Use
10239 set_compression to encode compression algorithm.
10240 * lto-streamer.h (struct lto_section): Do not
10241 use bitfields in the format.
10242
10243 2019-07-22 Martin Liska <mliska@suse.cz>
10244
10245 PR driver/91172
10246 * opts-common.c (decode_cmdline_option): Decode
10247 argument of -Werror and check it for a wrong language.
10248 * opts-global.c (complain_wrong_lang): Remove such case.
10249
10250 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10251
10252 * config/arc/arc.c (prepare_move_operands): Always use an
10253 intermediate register when storing a TLS symbols.
10254
10255 2019-07-22 Stafford Horne <shorne@gmail.com>
10256
10257 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10258 force_reg.
10259
10260 2019-07-22 Stafford Horne <shorne@gmail.com>
10261
10262 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10263 and munordered-float validations.
10264 * config/or1k/constraints.md (d): New register constraint.
10265 * config/or1k/predicates.md (fp_comparison_operator): New.
10266 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10267 operands.
10268 (or1k_expand_compare): Normalize unordered comparisons.
10269 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10270 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10271 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10272 * config/or1k/or1k.md (type): Add fpu.
10273 (fpu): New instruction reservation.
10274 (F, f, fr, fi, FI, FOP, fop): New.
10275 (<fop><F:mode>3): New ALU instruction definition.
10276 (float<fi><F:mode>2): New conversion instruction definition.
10277 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10278 (fpcmpcc): New code iterator.
10279 (*sf_fp_insn): New instruction definition.
10280 (cstore<F:mode>4): New expand definition.
10281 (cbranch<F:mode>4): New expand definition.
10282 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10283 munordered-float): New options.
10284 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10285 munordered-float.
10286
10287 2019-07-22 Stafford Horne <shorne@gmail.com>
10288
10289 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10290 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10291 documenation to be more clear.
10292 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10293 more clear.
10294 * config/or1k/or1k.opt (mrori): New option.
10295 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10296 msfimm, mshftimm): Rewrite documentation to be more clear.
10297 * config/or1k/or1k.md (insn_support): Add ror and rori.
10298 (enabled): Add conditions for ror and rori.
10299 (rotrsi3): Replace condition for shftimm with ror and rori.
10300
10301 2019-07-22 Stafford Horne <shorne@gmail.com>
10302
10303 PR target/90363
10304 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10305 (extend<mode>si2): Update predicate.
10306 * config/or1k/predicates.md (volatile_mem_operand): New.
10307 (reg_or_mem_operand): New.
10308
10309 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10310
10311 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10312 * config/rs6000/rs6000-call.c: ... to here.
10313
10314 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10315
10316 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10317 memory.
10318
10319 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10320
10321 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10322
10323 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10324
10325 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10326
10327 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10328
10329 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10330 (any_memory_operand): New predicate.
10331 (reg_or_mem_operand): Use it.
10332
10333 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR target/91204
10336 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10337
10338 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10339
10340 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10341 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10342
10343 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10344
10345 * tree.def (OMP_LOOP): New tree code.
10346 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10347 (enum omp_clause_bind_kind): New enum.
10348 (struct tree_omp_clause): Add subcode.bind_kind.
10349 * tree.h (OMP_LOOP_CHECK): Rename to ...
10350 (OMP_LOOPING_CHECK): ... this.
10351 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10352 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10353 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10354 (OMP_CLAUSE_BIND_KIND): Define.
10355 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10356 bind clause entries.
10357 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10358 * tree-pretty-print.c (dump_omp_clause): Likewise.
10359 (dump_generic_node): Handle OMP_LOOP.
10360 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10361 (in_omp_construct): New variable.
10362 (is_gimple_stmt): Handle OMP_LOOP.
10363 (gimplify_scan_omp_clauses): For lastprivate don't set
10364 check_non_private if code == OMP_LOOP. For reduction clause
10365 on OMP_LOOP combined with parallel or teams propagate as shared
10366 on the combined construct. Handle OMP_CLAUSE_BIND.
10367 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10368 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10369 for constructs from a loop construct to gimplify_scan_omp_clauses.
10370 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10371 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10372 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10373 to match the implicit ORT_TARGET construct around whole body.
10374 Temporarily clear in_omp_construct when processing body.
10375 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10376 etc. temporarily set in_omp_construct when processing body.
10377 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10378 * omp-low.c (struct omp_context): Add loop_p.
10379 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10380 in that the original var might be private.
10381 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10382 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10383 addition of loop construct.
10384 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10385
10386 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10387 lastprivate non-addressable iterator of a collapse(1) simd.
10388
10389 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10390
10391 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10392 as in rs6000.c.
10393
10394 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10395
10396 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10397 refer to default conditions. Warn for the 'y' spec which is ignored
10398 by current linkers.
10399
10400 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10401
10402 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10403 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10404 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10405 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10406 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10407 init_cumulative_args, rs6000_promote_function_mode,
10408 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10409 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10410 rs6000_function_arg_boundary, rs6000_parm_offset,
10411 rs6000_parm_start, rs6000_arg_size,
10412 rs6000_darwin64_record_arg_advance_flush,
10413 rs6000_darwin64_record_arg_advance_recurse,
10414 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10415 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10416 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10417 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10418 rs6000_finish_function_arg, rs6000_function_arg,
10419 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10420 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10421 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10422 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10423 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10424 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10425 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10426 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10427 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10428 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10429 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10430 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10431 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10432 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10433 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10434 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10435 get_element_number, altivec_expand_vec_set_builtin,
10436 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10437 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10438 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10439 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10440 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10441 rs6000_expand_builtin, rs6000_vector_type,
10442 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10443 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10444 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10445 to rs6000-call.c.
10446 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10447 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10448 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10449 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10450 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10451 init_cumulative_args, rs6000_promote_function_mode,
10452 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10453 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10454 rs6000_function_arg_boundary, rs6000_parm_offset,
10455 rs6000_parm_start, rs6000_arg_size,
10456 rs6000_darwin64_record_arg_advance_flush,
10457 rs6000_darwin64_record_arg_advance_recurse,
10458 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10459 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10460 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10461 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10462 rs6000_finish_function_arg, rs6000_function_arg,
10463 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10464 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10465 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10466 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10467 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10468 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10469 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10470 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10471 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10472 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10473 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10474 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10475 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10476 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10477 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10478 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10479 get_element_number, altivec_expand_vec_set_builtin,
10480 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10481 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10482 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10483 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10484 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10485 rs6000_expand_builtin, rs6000_vector_type,
10486 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10487 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10488 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10489 to here from rs6000.c.
10490 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10491 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10492 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10493 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10494 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10495 rs6000_return_in_memory, rs6000_return_in_msb,
10496 rs6000_pass_by_reference, setup_incoming_varargs,
10497 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10498 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10499 rs6000_function_arg_padding, rs6000_function_arg,
10500 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10501 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10502 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10503 rs6000_passes_long_double, rs6000_passes_vector,
10504 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10505 altivec_builtin_mask_for_load) Add declarations.
10506 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10507 * config/config.gcc: Add new source file rs6000-call.c to garbage
10508 collector and extra_objs.
10509
10510 2019-07-19 Jeff Law <law@redhat.com>
10511
10512 PR tree-optimization/86061
10513 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10514 strncpy. Drop some trivial dead code.
10515 (maybe_trim_memstar_call): Handle strncpy.
10516
10517 2019-07-19 Richard Biener <rguenther@suse.de>
10518
10519 PR tree-optimization/91211
10520 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10521 memset encoding size.
10522
10523 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10524
10525 PR target/91204
10526 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10527
10528 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10529
10530 PR ipa/91194
10531 * ipa-inline.c (recursive_inlining): Fix limits check.
10532
10533 2019-07-19 Richard Biener <rguenther@suse.de>
10534
10535 PR tree-optimization/91200
10536 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10537 no PHI nodes in middle-bb.
10538
10539 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10540
10541 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10542 to +sve-bitperm.
10543 * config/aarch64/aarch64-option-extensions.def: Likewise.
10544
10545 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10546
10547 PR middle-end/91190
10548 * function.c (insert_temp_slot_address): Store into the hash table
10549 a copy of address to avoid RTL sharing issues.
10550
10551 2019-07-19 Richard Biener <rguenther@suse.de>
10552
10553 PR tree-optimization/91207
10554 Revert
10555 2019-07-17 Richard Biener <rguenther@suse.de>
10556
10557 PR tree-optimization/91178
10558 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10559 loads with a gap larger than the vector size always use
10560 VMAT_STRIDED_SLP.
10561 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10562 avoid loading vectors that are only contained in the gap
10563 and thus are not needed.
10564
10565 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10566
10567 * config/i386/i386.md (*addqi_2_slp): Remove.
10568 (*<code>qi_2_slp): Ditto.
10569
10570 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10571
10572 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10573 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10574 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10575 Rename function from rs6000_prefixed_address.
10576 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10577 TARGET_HAS_TOC.
10578 (TARGET_TOC): Likewise.
10579 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10580 rs6000.h.
10581 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10582 TARGET_HAS_TOC.
10583 (TARGET_TOC): Likewise.
10584 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10585 rs6000.h.
10586 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10587 TARGET_HAS_TOC.
10588 (TARGET_TOC): Likewise.
10589 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10590 check to require -mcmodel=medium for pc-relative addressing.
10591 (create_TOC_reference): Add assertion for TARGET_TOC.
10592 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10593 TARGET_NO_TOC.
10594 (rs6000_emit_move): Likewise.
10595 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10596 to 'TOC_alias_set'.
10597 (get_TOC_alias_set): Likewise.
10598 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10599 TARGET_NO_TOC.
10600 (rs6000_can_eliminate): Likewise.
10601 (rs6000_prefixed_address_mode_p): Rename function from
10602 rs6000_prefixed_address.
10603 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10604 TARGET_HAS_TOC and not pc-relative.
10605 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10606 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10607 TARGET_HAS_TOC.
10608 (TARGET_TOC): Likewise.
10609 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10610 rs6000.h.
10611
10612 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10613
10614 PR target/91188
10615 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10616 for operand 0. Do not use (match_dup) to match operand 1 with
10617 operand 0. Add check in insn constraint that either input operand
10618 matches operand 0. Use SWI12 mode iterator to also handle
10619 HImode operands.
10620 (*and<mode>_1_slp): Ditto.
10621 (*<code>qi_1_slp): Ditto.
10622 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10623 Do not use (match_dup) to match operand 1 with operand 0. Add
10624 check in insn constraint that operand 1 matches operand 0.
10625 Use SWI12 mode iterator to also handle HImode operands.
10626 (*ashl<mode>3_1_slp): Ditto.
10627 (*<shift_insn><mode>3_1_slp): Ditto.
10628 (*<rotate_insn><mode>3_1_slp): Ditto.
10629
10630 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10631
10632 * config/arm/arm-builtins.c
10633 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10634 (arm_expand_unop_builtin): Likewise.
10635 * config/arm/crypto.md
10636 (crypto_sha1h): Convert from define_insn to define_expand.
10637 (crypto_<crypto_pattern>): Likewise.
10638 (crypto_sha1h_lb): New define_insn.
10639 (crypto_<crypto_pattern>_lb): Likewise.
10640
10641 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10642
10643 PR target/90317
10644 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10645 (vsha1cq_u32): Likewise.
10646 (vsha1pq_u32): Likewise.
10647 (vsha1mq_u32): Likewise.
10648 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10649 vec select.
10650 (crypto_sha1c): Correct vec select.
10651 (crypto_sha1m): Likewise.
10652 (crypto_sha1p): Likewise.
10653
10654 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10655
10656 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10657 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10658 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10659 (subdi_zesidi_zesidi): Likewise.
10660 (negdi2_compare, negdi2_insn): Likewise.
10661 (negdi_extensidi): Likewise.
10662 (negdi_zero_extendsidi): Likewise.
10663 (arm_cmpdi_insn): Likewise.
10664 (subsi3_carryin): Use arm_borrow_operation.
10665 (subsi3_carryin_const): Likewise.
10666 (subsi3_carryin_const0): Likewise.
10667 (subsi3_carryin_compare): Likewise.
10668 (subsi3_carryin_compare_const): Likewise.
10669 (subsi3_carryin_compare_const0): Likewise.
10670 (subsi3_carryin_shift): Likewise.
10671 (rsbsi3_carryin_shift): Likewise.
10672 (negsi2_carryin_compare): Likewise.
10673
10674 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10675
10676 PR tree-optimization/91137
10677 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10678 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10679 Init, use and fini the above new field.
10680 (determine_base_object_1): New function.
10681 (determine_base_object): Reimplement using walk_tree.
10682
10683 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10684
10685 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10686 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10687 CLEANUP_FORCE_FAST_DCE is set.
10688 * ifcvt.c (rest_of_handle_if_conversion): Pass
10689 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10690 if-conversion succeeded.
10691
10692 2019-07-18 Richard Biener <rguenther@suse.de>
10693
10694 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10695 branches to make code less indented.
10696
10697 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10698
10699 PR middle-end/81824
10700 * attribs.c (decls_mismatched_attributes): Simplify the logic
10701 that avoids duplicates and false positives.
10702
10703 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10704
10705 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10706 data into data section when generating PIC code.
10707 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10708 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10709 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10710 return 2 for SOM and 0 for other targets.
10711
10712 2019-07-17 Jeff Law <law@redhat.com>
10713
10714 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10715 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10716 avoid unexpected switch statement fallthru.
10717
10718 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10719
10720 * config/i386/i386.md (*add<dwi>3_doubleword):
10721 Remove redundant constraints.
10722 (*add<mode>_1): Ditto.
10723 (*addhi_1): Ditto.
10724 (*addqi_1): Ditto.
10725 (*addqi_1_slp): Ditto.
10726 (*add<mode>_2): Ditto.
10727 (*addv<mode>4): Ditto.
10728 (*sub<dwi>3_doubleword): Ditto.
10729 (*sub<mode>_1): Ditto.
10730 (*subqi_1_slp): Ditto.
10731 (*sub<mode>_2): Ditto.
10732 (*subv<mode>4): Ditto.
10733 (*sub<mode>_3): Ditto.
10734 (@add<mode>3_carry): Ditto.
10735 (@sub<mode>3_carry): Ditto.
10736 (*add<mode>3_cc_overflow_1): Ditto.
10737 (*add<mode>3_zext_cc_overflow_2): Ditto.
10738 (*anddi_1): Ditto.
10739 (*and<mode>_1): Ditto.
10740 (*andqi_1): Ditto.
10741 (*andqi_1_slp): Ditto.
10742 (*anddi_2): Ditto.
10743 (*andqi_2_maybe_si): Ditto.
10744 (*and<mode>_2): Ditto.
10745 (*andqi_2_slp): Ditto.
10746 (*<code><mode>_1): Ditto.
10747 (*<code>qi_1): Ditto.
10748 (*<code>qi_1_slp): Ditto.
10749 (*<code><mode>_2): Ditto.
10750 (*<code>qi_2_slp): Ditto.
10751
10752 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10753
10754 * alias.c (record_component_aliases): Do not simplify pointed-to
10755 types of ODR types.
10756
10757 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10758
10759 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10760 partial reg stall on alternative 2.
10761
10762 2019-07-17 Richard Biener <rguenther@suse.de>
10763
10764 PR tree-optimization/91178
10765 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10766 lower SSA names to avoid quadratic behavior in the common case.
10767 * tree-data-ref.c (split_constant_offset): Add limit argument
10768 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10769 (split_constant_offset_1): Add limit argument and use it to
10770 limit SSA def walking. Optimize the common plus/minus case.
10771
10772 2019-07-17 Richard Biener <rguenther@suse.de>
10773
10774 PR tree-optimization/91178
10775 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10776 loads with a gap larger than the vector size always use
10777 VMAT_STRIDED_SLP.
10778 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10779 avoid loading vectors that are only contained in the gap
10780 and thus are not needed.
10781
10782 2019-07-17 Richard Biener <rguenther@suse.de>
10783
10784 PR tree-optimization/91180
10785 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10786 computation for memset partial defs.
10787
10788 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10789
10790 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10791 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10792 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10793 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10794 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10795 * omp-grid.c (grid_process_grid_body,
10796 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10797 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10798 == GF_OMP_FOR_KIND_SIMD.
10799 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10800 check_omp_nesting_restrictions, scan_omp_1_stmt,
10801 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10802 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10803 omp_find_scan): Likewise.
10804 * omp-expand.c (expand_omp_for): Likewise.
10805 * omp-general.c (omp_extract_for_data): Likewise.
10806
10807 PR tree-optimization/91157
10808 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10809 a vector boolean with scalar mode.
10810 (expand_vector_condition): Handle first operand being a vector boolean
10811 with scalar mode.
10812 (expand_vector_operations_1): For comparisons, don't bail out early
10813 if the return type is vector boolean with scalar mode, but comparison
10814 operand type is not.
10815
10816 2019-07-17 Richard Biener <rguenther@suse.de>
10817
10818 PR tree-optimization/91181
10819 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10820 IFN_LOADs as calls.
10821
10822 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10823
10824 * config/i386/i386.md (*testdi_1): Match CCZmode for
10825 constants that might have the SImode sign bit set.
10826 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10827 Use correct constraints for pentium pairing.
10828 (*test<mode>_1): Ditto.
10829
10830 2019-07-16 Jeff Law <law@redhat.com>
10831
10832 PR rtl-optimization/91173
10833 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10834 SSA_NAME with a constant value, fold its value into the offset
10835 and clear the base before calling gen_addr_rtx.
10836
10837 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10838
10839 PR rtl-optimization/91164
10840 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10841 invalidate dominance info.
10842
10843 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10844
10845 * read-md.h (md_reader::record_potential_iterator_use): Add a
10846 file_location parameter.
10847 * read-rtl.c (attribute_use::loc): New field.
10848 (map_attr_string): Take a file_location parameter. Report cases
10849 in which attributes map to multiple distinct values.
10850 (apply_attribute_uses): Update call accordingly.
10851 (md_reader::handle_overloaded_name): Likewise.
10852 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10853 nonnull strings.
10854 (record_attribute_use): Take a file_location parameter.
10855 Initialize attribute_use::loc.
10856 (md_reader::record_potential_iterator_use): Take a file_location
10857 parameter. Update call to record_attribute_use.
10858 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10859 (rtx_reader::read_rtx_code): Likewise.
10860 (rtx_reader::read_rtx_operand): Likewise. Record a location
10861 for implicitly-expanded empty strings.
10862
10863 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10864
10865 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10866 Use file_location instead of separate fields.
10867 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10868 separate filename and line number.
10869 * read-md.c (ptr_loc): As above.
10870 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10871 (md_reader::fprint_md_ptr_loc): Likewise.
10872 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10873 instead of a separate filename and line number.
10874 (md_reader::read_string): Update call accordingly.
10875
10876 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10877
10878 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10879 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10880 leaving the choice between SFDF and P implicit.
10881 (*mov<mode>_update2): Likewise.
10882 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10883 rather than leaving the choice betweem IBM128 and GPR implicit.
10884 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10885 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10886 QHSI implicit.
10887 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10888 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10889 * config/rs6000/vsx.md
10890 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10891 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10892 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10893 and VSX_EXTRACT_I implicit.
10894
10895 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10896
10897 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10898 Explicitly use <MOVEP1:MODE> for the mode attribute.
10899
10900 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10901
10902 PR bootstrap/91176
10903 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10904
10905 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10906
10907 PR target/91050
10908 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10909 .machine directive.
10910
10911 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10912
10913 * config/i386/i386.md (@test<mode>_ccno_1):
10914 Rename from test<mode>_ccno_1.
10915 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10916 (*testqi_1_maybe_si): Remove modrm attribute.
10917 (*test<mode>_1): Ditto.
10918 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10919 gen_test_ccno_1 and gen_extend_insn.
10920
10921 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10922
10923 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10924 to 0.
10925
10926 2019-07-15 Richard Biener <rguenther@suse.de>
10927
10928 PR middle-end/91162
10929 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10930 node make sure to replace all uses with something valid.
10931
10932 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10933
10934 PR tree-optimization/88497
10935 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10936 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10937 function undistribute_bitref_for_vector.
10938 (undistribute_bitref_for_vector): New function.
10939 (cleanup_vinfo_map): Likewise.
10940 (sort_by_mach_mode): Likewise.
10941
10942 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10943
10944 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10945 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10946 and testdi_ccno_1 using SWI48 mode attribute.
10947 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10948 x86_64_szext_general_operand.
10949 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10950 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10951 instead of genera_operand mode attribute.
10952
10953 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10954
10955 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10956 fopen and fclose to their respective types.
10957 (DotFn.invoke): Ditto.
10958
10959 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10960
10961 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10962 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10963 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10964 (array_index_predicate): Remove.
10965 (analyze_function_body): Account cost for variable ofsetted array
10966 indexing.
10967 (estimate_node_size_and_time): Do not compute array index hint.
10968 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10969 (inline_read_section): Do not read array index hint.
10970 (ipa_fn_summary_write): Do not write array index hint.
10971 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10972 * ipa-cp.c (hint_time_bonus): Remove.
10973 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10974 (ipa_fnsummary): Remove array_index.
10975 * ipa-inline.c (want_inline_small_function_p): Do not use
10976 array_index.
10977 (edge_badness): Likewise.
10978 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10979
10980 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10981
10982 PR target/91148
10983 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10984 superfluous "builtin function" phrasing.
10985
10986 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10987
10988 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10989 Break out from ...
10990 (aliasing_component_refs_walk): Break out from ...
10991 (aliasing_component_refs_p): ... here.
10992
10993 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10994
10995 PR target/91148
10996 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10997 "builtin function" phrasing.
10998
10999 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11000
11001 PR target/90723
11002 * recog.h (temporary_volatile_ok): New class.
11003 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11004 volatile_ok temporarily to true using temporary_volatile_ok.
11005 * expr.c (emit_block_move_via_cpymem): Likewise.
11006 * optabs.c (maybe_legitimize_operand): Likewise.
11007
11008 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11009
11010 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11011 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11012 uses inside of order(concurrent) constructs.
11013 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11014 OMP_CLAUSE_ORDER is seen.
11015 * omp-low.c (struct omp_context): Add order_concurrent member.
11016 (scan_sharing_clauses): Set ctx->order_concurrent if
11017 OMP_CLAUSE_ORDER is seen.
11018 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11019 of simd order(concurrent). Diagnose constructs not allowed inside of
11020 for order(concurrent).
11021 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11022 complaining about static double setjmp (double); or class static
11023 methods or non-global namespace setjmps.
11024 (omp_runtime_api_call): New function.
11025 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11026 order(concurrent) loops.
11027
11028 2019-07-12 Martin Sebor <msebor@redhat.com>
11029
11030 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11031 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11032 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11033 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11034
11035 2019-07-12 Jan Hubicka <jh@suse.cz>
11036
11037 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11038 (indirect_refs_may_alias_p): ... here.
11039 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11040 mem refs in the access paths.
11041
11042 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11043
11044 PR tree-optimization/89430
11045 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11046 store elimination for local variable without address escape.
11047
11048 2019-07-12 Jeff Law <law@redhat.com>
11049
11050 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11051 for the ".far" section.
11052
11053 2019-07-12 Richard Biener <rguenther@suse.de>
11054
11055 PR tree-optimization/91145
11056 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11057 chain check.
11058
11059 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11060
11061 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11062 rather than this_state as the lowering context for the ELSE
11063 seq in a GIMPLE_EH_ELSE.
11064
11065 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11066
11067 * vector-builder.h (vector_builder::elt): Allow already-supplied
11068 elements to be read back before building is complete.
11069
11070 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11071
11072 PR rtl-optimization/91136
11073 * df-core.c (ACCESSING REFS): Fix typos in comment.
11074 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11075 the beginning of the block to the initial set of live registers.
11076
11077 2019-07-12 Richard Biener <rguenther@suse.de>
11078
11079 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11080 * fold-const.c (get_array_ctor_element_at_index): Add
11081 ctor_idx output parameter informing the caller where in
11082 the constructor the element was (not) found. Add early exit
11083 for when the ctor is sorted.
11084 * gimple-fold.c (fold_array_ctor_reference): Support constant
11085 folding across multiple array elements.
11086
11087 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11088
11089 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11090 doesn't have location, set the current location to the function's end.
11091
11092 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11093
11094 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11095 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11096 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11097 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11098 * config/aarch64/aarch64-simd.md
11099 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11100 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11101 * config/aarch64/aarch64-sve.md
11102 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11103 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11104
11105 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11106
11107 * doc/md.texi: Document that @ patterns can have different
11108 numbers of operands.
11109 * genemit.c (handle_overloaded_gen): Handle this case.
11110 * genopinit.c (handle_overloaded_gen): Likewise.
11111 * gensupport.c (replace_operands_with_dups): Iterate over
11112 the new rtx's format rather than the old one's.
11113
11114 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11115
11116 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11117 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11118 order clause entries.
11119 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11120 * tree-pretty-print.c (dump_omp_clause): Likewise.
11121 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11122 Likewise.
11123 * omp-low.c (scan_sharing_clauses): Likewise.
11124 * tree-nested.c (convert_nonlocal_omp_clauses,
11125 convert_local_omp_clauses): Likewise.
11126
11127 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11128
11129 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11130 fallthrough target of current basic block isn't the placed
11131 right next.
11132
11133 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11134
11135 PR target/90980
11136 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11137 (_mm512_storeu_epi64): Likewise.
11138 (_mm512_loadu_epi32): Likewise.
11139 (_mm512_storeu_epi32): Likewise.
11140 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11141 (_mm_storeu_epi64): Likewise.
11142 (_mm256_storeu_epi32): Likewise.
11143 (_mm_storeu_epi32): Likewise.
11144
11145 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11146
11147 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11148
11149 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11150
11151 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11152 Handle Modula-2.
11153
11154 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11155
11156 PR target/91124
11157 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11158 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11159 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11160 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11161 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11162 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11163 define_insns.
11164 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11165 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11166 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11167 define_insns.
11168 (sse2_cvttpd2dq<mask_name>): Change into ...
11169 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11170 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11171 (*sse2_cvtpd2dq<mask_name>): Change into ...
11172 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11173 Add "C" constraint to const0_operand.
11174 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11175 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11176 changes.
11177
11178 PR target/91124
11179 * config/i386/i386-builtin-types.def
11180 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11181 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11182 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11183 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11184 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11185 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11186 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11187 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11188 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11189 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11190 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11191 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11192 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11193 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11194 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11195 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11196 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11197 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11198 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11199 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11200 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11201 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11202 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11203 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11204 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11205 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11206 __builtin_ia32_vpdpbusd_v4si_maskz,
11207 __builtin_ia32_vpdpbusds_v16si_mask,
11208 __builtin_ia32_vpdpbusds_v16si_maskz,
11209 __builtin_ia32_vpdpbusds_v8si_mask,
11210 __builtin_ia32_vpdpbusds_v8si_maskz,
11211 __builtin_ia32_vpdpbusds_v4si_mask,
11212 __builtin_ia32_vpdpbusds_v4si_maskz,
11213 __builtin_ia32_vpdpwssd_v16si_mask,
11214 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11215 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11216 __builtin_ia32_vpdpwssd_v4si_maskz,
11217 __builtin_ia32_vpdpwssds_v16si_mask,
11218 __builtin_ia32_vpdpwssds_v16si_maskz,
11219 __builtin_ia32_vpdpwssds_v8si_mask,
11220 __builtin_ia32_vpdpwssds_v8si_maskz,
11221 __builtin_ia32_vpdpwssds_v4si_mask,
11222 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11223 suffixed types rather than *_INT.
11224 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11225 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11226 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11227 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11228 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11229 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11230
11231 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11232
11233 * tree-vrp.c (intersect_ranges): If we know the intersection is
11234 empty, there is no need to conservatively add anything else to
11235 the set.
11236
11237 2019-07-11 Richard Biener <rguenther@suse.de>
11238
11239 PR middle-end/91131
11240 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11241 when the object is volatile and we have not cleared it even though
11242 there are no nonzero elements.
11243
11244 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11245
11246 * config/rs6000/predicates.md (cint34_operand): Update
11247 SIGNED_34BIT_OFFSET_P call.
11248 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11249 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11250 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11251 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11252 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11253 argument.
11254 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11255 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11256 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11257 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11258 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11259
11260 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11261
11262 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11263 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11264 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11265 (DEF_MIN_OSX_VERSION): New.
11266
11267 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11268
11269 * fold-const.c (fold_relational_const): Fix folding of
11270 vector-to-scalar NE_EXPRs.
11271 (test_vector_folding): Add more tests.
11272
11273 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11274
11275 PR target/91060
11276 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11277 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11278 (vec_setv2di_internal): Reexpress as...
11279 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11280 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11281 rather than gen_neon_vset_lane<mode>.
11282
11283 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11284
11285 PR target/91102
11286 * lra-constraints.c (process_alt_operands): Don't match user
11287 defined regs only if they are early clobbers.
11288
11289 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11290
11291 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11292
11293 2019-07-10 Richard Biener <rguenther@suse.de>
11294
11295 PR tree-optimization/91126
11296 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11297 native encoding offset for BYTES_BIG_ENDIAN.
11298 (vn_reference_lookup_3): Likewise.
11299
11300 2019-07-10 Richard Biener <rguenther@suse.de>
11301
11302 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11303 LHS whenever possible.
11304
11305 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11306
11307 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11308 from ...; work also on duplicated types.
11309 (nonoverlapping_component_refs_since_match): ... here
11310 (ncr_type_uid): Break out from ...
11311 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11312 available.
11313 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11314 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11315
11316 2019-07-09 Martin Sebor <msebor@redhat.com>
11317
11318 PR tree-optimization/90989
11319 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11320 optimization to just single character stores.
11321
11322 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11323
11324 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11325 Swap operands only once.
11326
11327 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11328
11329 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11330 for both call instructions.
11331
11332 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11333
11334 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11335 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11336
11337 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11338
11339 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11340 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11341 function from rs6000-logue.c back to rs6000.c.
11342 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11343
11344 2019-07-09 Martin Sebor <msebor@redhat.com>
11345
11346 PR c++/61339
11347 * auto-profile.c: Change class-key of PODs to struct and others
11348 to class.
11349 * basic-block.h: Same.
11350 * bitmap.c (bitmap_alloc): Same.
11351 * bitmap.h: Same.
11352 * builtins.c (expand_builtin_prefetch): Same.
11353 (expand_builtin_interclass_mathfn): Same.
11354 (expand_builtin_strlen): Same.
11355 (expand_builtin_mempcpy_args): Same.
11356 (expand_cmpstr): Same.
11357 (expand_builtin___clear_cache): Same.
11358 (expand_ifn_atomic_bit_test_and): Same.
11359 (expand_builtin_thread_pointer): Same.
11360 (expand_builtin_set_thread_pointer): Same.
11361 * caller-save.c (setup_save_areas): Same.
11362 (replace_reg_with_saved_mem): Same.
11363 (insert_restore): Same.
11364 (insert_save): Same.
11365 (add_used_regs): Same.
11366 * cfg.c (get_bb_copy): Same.
11367 (set_loop_copy): Same.
11368 * cfg.h: Same.
11369 * cfganal.h: Same.
11370 * cfgexpand.c (alloc_stack_frame_space): Same.
11371 (add_stack_var): Same.
11372 (add_stack_var_conflict): Same.
11373 (add_scope_conflicts_1): Same.
11374 (update_alias_info_with_stack_vars): Same.
11375 (expand_used_vars): Same.
11376 * cfghooks.c (redirect_edge_and_branch_force): Same.
11377 (delete_basic_block): Same.
11378 (split_edge): Same.
11379 (make_forwarder_block): Same.
11380 (force_nonfallthru): Same.
11381 (duplicate_block): Same.
11382 (lv_flush_pending_stmts): Same.
11383 * cfghooks.h: Same.
11384 * cfgloop.c (flow_loops_cfg_dump): Same.
11385 (flow_loop_nested_p): Same.
11386 (superloop_at_depth): Same.
11387 (get_loop_latch_edges): Same.
11388 (flow_loop_dump): Same.
11389 (flow_loops_dump): Same.
11390 (flow_loops_free): Same.
11391 (flow_loop_nodes_find): Same.
11392 (establish_preds): Same.
11393 (flow_loop_tree_node_add): Same.
11394 (flow_loop_tree_node_remove): Same.
11395 (flow_loops_find): Same.
11396 (find_subloop_latch_edge_by_profile): Same.
11397 (find_subloop_latch_edge_by_ivs): Same.
11398 (mfb_redirect_edges_in_set): Same.
11399 (form_subloop): Same.
11400 (merge_latch_edges): Same.
11401 (disambiguate_multiple_latches): Same.
11402 (disambiguate_loops_with_multiple_latches): Same.
11403 (flow_bb_inside_loop_p): Same.
11404 (glb_enum_p): Same.
11405 (get_loop_body_with_size): Same.
11406 (get_loop_body): Same.
11407 (fill_sons_in_loop): Same.
11408 (get_loop_body_in_dom_order): Same.
11409 (get_loop_body_in_custom_order): Same.
11410 (release_recorded_exits): Same.
11411 (get_loop_exit_edges): Same.
11412 (num_loop_branches): Same.
11413 (remove_bb_from_loops): Same.
11414 (find_common_loop): Same.
11415 (delete_loop): Same.
11416 (cancel_loop): Same.
11417 (verify_loop_structure): Same.
11418 (loop_preheader_edge): Same.
11419 (loop_exit_edge_p): Same.
11420 (single_exit): Same.
11421 (loop_exits_to_bb_p): Same.
11422 (loop_exits_from_bb_p): Same.
11423 (get_loop_location): Same.
11424 (record_niter_bound): Same.
11425 (get_estimated_loop_iterations_int): Same.
11426 (max_stmt_executions_int): Same.
11427 (likely_max_stmt_executions_int): Same.
11428 (get_estimated_loop_iterations): Same.
11429 (get_max_loop_iterations): Same.
11430 (get_max_loop_iterations_int): Same.
11431 (get_likely_max_loop_iterations): Same.
11432 * cfgloop.h (simple_loop_desc): Same.
11433 (get_loop): Same.
11434 (loop_depth): Same.
11435 (loop_outer): Same.
11436 (loop_iterator::next): Same.
11437 (loop_outermost): Same.
11438 * cfgloopanal.c (mark_irreducible_loops): Same.
11439 (num_loop_insns): Same.
11440 (average_num_loop_insns): Same.
11441 (expected_loop_iterations_unbounded): Same.
11442 (expected_loop_iterations): Same.
11443 (mark_loop_exit_edges): Same.
11444 (single_likely_exit): Same.
11445 * cfgloopmanip.c (fix_bb_placement): Same.
11446 (fix_bb_placements): Same.
11447 (remove_path): Same.
11448 (place_new_loop): Same.
11449 (add_loop): Same.
11450 (scale_loop_frequencies): Same.
11451 (scale_loop_profile): Same.
11452 (create_empty_if_region_on_edge): Same.
11453 (create_empty_loop_on_edge): Same.
11454 (loopify): Same.
11455 (unloop): Same.
11456 (fix_loop_placements): Same.
11457 (copy_loop_info): Same.
11458 (duplicate_loop): Same.
11459 (duplicate_subloops): Same.
11460 (loop_redirect_edge): Same.
11461 (can_duplicate_loop_p): Same.
11462 (duplicate_loop_to_header_edge): Same.
11463 (mfb_keep_just): Same.
11464 (has_preds_from_loop): Same.
11465 (create_preheader): Same.
11466 (create_preheaders): Same.
11467 (lv_adjust_loop_entry_edge): Same.
11468 (loop_version): Same.
11469 * cfgloopmanip.h: Same.
11470 * cgraph.h: Same.
11471 * cgraphbuild.c: Same.
11472 * combine.c (make_extraction): Same.
11473 * config/i386/i386-features.c: Same.
11474 * config/i386/i386-features.h: Same.
11475 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11476 (ix86_emit_outlined_ms2sysv_restore): Same.
11477 (ix86_noce_conversion_profitable_p): Same.
11478 (ix86_init_cost): Same.
11479 (ix86_simd_clone_usable): Same.
11480 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11481 Wstruct-not-pod.
11482 * coretypes.h: Same.
11483 * data-streamer-in.c (string_for_index): Change class-key of PODs
11484 to struct and others to class.
11485 (streamer_read_indexed_string): Same.
11486 (streamer_read_string): Same.
11487 (bp_unpack_indexed_string): Same.
11488 (bp_unpack_string): Same.
11489 (streamer_read_uhwi): Same.
11490 (streamer_read_hwi): Same.
11491 (streamer_read_gcov_count): Same.
11492 (streamer_read_wide_int): Same.
11493 * data-streamer.h (streamer_write_bitpack): Same.
11494 (bp_unpack_value): Same.
11495 (streamer_write_char_stream): Same.
11496 (streamer_write_hwi_in_range): Same.
11497 (streamer_write_record_start): Same.
11498 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11499 (add_cross_iteration_register_deps): Same.
11500 (build_intra_loop_deps): Same.
11501 * df-core.c (df_analyze): Same.
11502 (loop_post_order_compute): Same.
11503 (loop_inverted_post_order_compute): Same.
11504 * df-problems.c (df_rd_alloc): Same.
11505 (df_rd_simulate_one_insn): Same.
11506 (df_rd_local_compute): Same.
11507 (df_rd_init_solution): Same.
11508 (df_rd_confluence_n): Same.
11509 (df_rd_transfer_function): Same.
11510 (df_rd_free): Same.
11511 (df_rd_dump_defs_set): Same.
11512 (df_rd_top_dump): Same.
11513 (df_lr_alloc): Same.
11514 (df_lr_reset): Same.
11515 (df_lr_local_compute): Same.
11516 (df_lr_init): Same.
11517 (df_lr_confluence_n): Same.
11518 (df_lr_free): Same.
11519 (df_lr_top_dump): Same.
11520 (df_lr_verify_transfer_functions): Same.
11521 (df_live_alloc): Same.
11522 (df_live_reset): Same.
11523 (df_live_init): Same.
11524 (df_live_confluence_n): Same.
11525 (df_live_finalize): Same.
11526 (df_live_free): Same.
11527 (df_live_top_dump): Same.
11528 (df_live_verify_transfer_functions): Same.
11529 (df_mir_alloc): Same.
11530 (df_mir_reset): Same.
11531 (df_mir_init): Same.
11532 (df_mir_confluence_n): Same.
11533 (df_mir_free): Same.
11534 (df_mir_top_dump): Same.
11535 (df_word_lr_alloc): Same.
11536 (df_word_lr_reset): Same.
11537 (df_word_lr_init): Same.
11538 (df_word_lr_confluence_n): Same.
11539 (df_word_lr_free): Same.
11540 (df_word_lr_top_dump): Same.
11541 (df_md_alloc): Same.
11542 (df_md_simulate_one_insn): Same.
11543 (df_md_reset): Same.
11544 (df_md_init): Same.
11545 (df_md_free): Same.
11546 (df_md_top_dump): Same.
11547 * df-scan.c (df_insn_delete): Same.
11548 (df_insn_rescan): Same.
11549 (df_notes_rescan): Same.
11550 (df_sort_and_compress_mws): Same.
11551 (df_install_mws): Same.
11552 (df_refs_add_to_chains): Same.
11553 (df_ref_create_structure): Same.
11554 (df_ref_record): Same.
11555 (df_def_record_1): Same.
11556 (df_find_hard_reg_defs): Same.
11557 (df_uses_record): Same.
11558 (df_get_conditional_uses): Same.
11559 (df_get_call_refs): Same.
11560 (df_recompute_luids): Same.
11561 (df_get_entry_block_def_set): Same.
11562 (df_entry_block_defs_collect): Same.
11563 (df_get_exit_block_use_set): Same.
11564 (df_exit_block_uses_collect): Same.
11565 (df_mws_verify): Same.
11566 (df_bb_verify): Same.
11567 * df.h (df_scan_get_bb_info): Same.
11568 * doc/tm.texi: Same.
11569 * dse.c (record_store): Same.
11570 * dumpfile.h: Same.
11571 * emit-rtl.c (const_fixed_hasher::equal): Same.
11572 (set_mem_attributes_minus_bitpos): Same.
11573 (change_address): Same.
11574 (adjust_address_1): Same.
11575 (offset_address): Same.
11576 * emit-rtl.h: Same.
11577 * except.c (dw2_build_landing_pads): Same.
11578 (sjlj_emit_dispatch_table): Same.
11579 * explow.c (allocate_dynamic_stack_space): Same.
11580 (emit_stack_probe): Same.
11581 (probe_stack_range): Same.
11582 * expmed.c (store_bit_field_using_insv): Same.
11583 (store_bit_field_1): Same.
11584 (store_integral_bit_field): Same.
11585 (extract_bit_field_using_extv): Same.
11586 (extract_bit_field_1): Same.
11587 (emit_cstore): Same.
11588 * expr.c (emit_block_move_via_cpymem): Same.
11589 (expand_cmpstrn_or_cmpmem): Same.
11590 (set_storage_via_setmem): Same.
11591 (emit_single_push_insn_1): Same.
11592 (expand_assignment): Same.
11593 (store_constructor): Same.
11594 (expand_expr_real_2): Same.
11595 (expand_expr_real_1): Same.
11596 (try_casesi): Same.
11597 * flags.h: Same.
11598 * function.c (try_fit_stack_local): Same.
11599 (assign_stack_local_1): Same.
11600 (assign_stack_local): Same.
11601 (cut_slot_from_list): Same.
11602 (insert_slot_to_list): Same.
11603 (max_slot_level): Same.
11604 (move_slot_to_level): Same.
11605 (temp_address_hasher::equal): Same.
11606 (remove_unused_temp_slot_addresses): Same.
11607 (assign_temp): Same.
11608 (combine_temp_slots): Same.
11609 (update_temp_slot_address): Same.
11610 (preserve_temp_slots): Same.
11611 * function.h: Same.
11612 * fwprop.c: Same.
11613 * gcc-rich-location.h: Same.
11614 * gcov.c: Same.
11615 * genattrtab.c (check_attr_test): Same.
11616 (check_attr_value): Same.
11617 (convert_set_attr_alternative): Same.
11618 (convert_set_attr): Same.
11619 (check_defs): Same.
11620 (copy_boolean): Same.
11621 (get_attr_value): Same.
11622 (expand_delays): Same.
11623 (make_length_attrs): Same.
11624 (min_fn): Same.
11625 (make_alternative_compare): Same.
11626 (simplify_test_exp): Same.
11627 (tests_attr_p): Same.
11628 (get_attr_order): Same.
11629 (clear_struct_flag): Same.
11630 (gen_attr): Same.
11631 (compares_alternatives_p): Same.
11632 (gen_insn): Same.
11633 (gen_delay): Same.
11634 (find_attrs_to_cache): Same.
11635 (write_test_expr): Same.
11636 (walk_attr_value): Same.
11637 (write_attr_get): Same.
11638 (eliminate_known_true): Same.
11639 (write_insn_cases): Same.
11640 (write_attr_case): Same.
11641 (write_attr_valueq): Same.
11642 (write_attr_value): Same.
11643 (write_dummy_eligible_delay): Same.
11644 (next_comma_elt): Same.
11645 (find_attr): Same.
11646 (make_internal_attr): Same.
11647 (copy_rtx_unchanging): Same.
11648 (gen_insn_reserv): Same.
11649 (check_tune_attr): Same.
11650 (make_automaton_attrs): Same.
11651 (handle_arg): Same.
11652 * genextract.c (gen_insn): Same.
11653 (VEC_char_to_string): Same.
11654 * genmatch.c (print_operand): Same.
11655 (lower): Same.
11656 (parser::parse_operation): Same.
11657 (parser::parse_capture): Same.
11658 (parser::parse_c_expr): Same.
11659 (parser::parse_simplify): Same.
11660 (main): Same.
11661 * genoutput.c (output_operand_data): Same.
11662 (output_get_insn_name): Same.
11663 (compare_operands): Same.
11664 (place_operands): Same.
11665 (process_template): Same.
11666 (validate_insn_alternatives): Same.
11667 (validate_insn_operands): Same.
11668 (gen_expand): Same.
11669 (note_constraint): Same.
11670 * genpreds.c (write_one_predicate_function): Same.
11671 (add_constraint): Same.
11672 (process_define_register_constraint): Same.
11673 (write_lookup_constraint_1): Same.
11674 (write_lookup_constraint_array): Same.
11675 (write_insn_constraint_len): Same.
11676 (write_reg_class_for_constraint_1): Same.
11677 (write_constraint_satisfied_p_array): Same.
11678 * genrecog.c (optimize_subroutine_group): Same.
11679 * gensupport.c (process_define_predicate): Same.
11680 (queue_pattern): Same.
11681 (remove_from_queue): Same.
11682 (process_rtx): Same.
11683 (is_predicable): Same.
11684 (change_subst_attribute): Same.
11685 (subst_pattern_match): Same.
11686 (alter_constraints): Same.
11687 (alter_attrs_for_insn): Same.
11688 (shift_output_template): Same.
11689 (alter_output_for_subst_insn): Same.
11690 (process_one_cond_exec): Same.
11691 (subst_dup): Same.
11692 (process_define_cond_exec): Same.
11693 (mnemonic_htab_callback): Same.
11694 (gen_mnemonic_attr): Same.
11695 (read_md_rtx): Same.
11696 * ggc-page.c: Same.
11697 * gimple-loop-interchange.cc (dump_reduction): Same.
11698 (dump_induction): Same.
11699 (loop_cand::~loop_cand): Same.
11700 (free_data_refs_with_aux): Same.
11701 (tree_loop_interchange::interchange_loops): Same.
11702 (tree_loop_interchange::map_inductions_to_loop): Same.
11703 (tree_loop_interchange::move_code_to_inner_loop): Same.
11704 (compute_access_stride): Same.
11705 (compute_access_strides): Same.
11706 (proper_loop_form_for_interchange): Same.
11707 (tree_loop_interchange_compute_ddrs): Same.
11708 (prune_datarefs_not_in_loop): Same.
11709 (prepare_data_references): Same.
11710 (pass_linterchange::execute): Same.
11711 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11712 (unroll_jam_possible_p): Same.
11713 (fuse_loops): Same.
11714 (adjust_unroll_factor): Same.
11715 (tree_loop_unroll_and_jam): Same.
11716 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11717 (loop_versioning::expensive_stmt_p): Same.
11718 (loop_versioning::version_for_unity): Same.
11719 (loop_versioning::dump_inner_likelihood): Same.
11720 (loop_versioning::find_per_loop_multiplication): Same.
11721 (loop_versioning::analyze_term_using_scevs): Same.
11722 (loop_versioning::record_address_fragment): Same.
11723 (loop_versioning::analyze_expr): Same.
11724 (loop_versioning::analyze_blocks): Same.
11725 (loop_versioning::prune_conditions): Same.
11726 (loop_versioning::merge_loop_info): Same.
11727 (loop_versioning::add_loop_to_queue): Same.
11728 (loop_versioning::decide_whether_loop_is_versionable): Same.
11729 (loop_versioning::make_versioning_decisions): Same.
11730 (loop_versioning::implement_versioning_decisions): Same.
11731 * gimple-ssa-evrp-analyze.c
11732 (evrp_range_analyzer::record_ranges_from_phis): Same.
11733 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11734 (count_multiple_uses): Same.
11735 (split_group): Same.
11736 (imm_store_chain_info::output_merged_store): Same.
11737 (pass_store_merging::process_store): Same.
11738 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11739 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11740 (is_max): Same.
11741 (alloca_call_type): Same.
11742 (pass_walloca::execute): Same.
11743 * gimple-streamer-in.c (input_phi): Same.
11744 (input_gimple_stmt): Same.
11745 * gimple-streamer.h: Same.
11746 * godump.c (go_force_record_alignment): Same.
11747 (go_format_type): Same.
11748 (go_output_type): Same.
11749 (go_output_fndecl): Same.
11750 (go_output_typedef): Same.
11751 (keyword_hash_init): Same.
11752 (find_dummy_types): Same.
11753 * graph.c (draw_cfg_nodes_no_loops): Same.
11754 (draw_cfg_nodes_for_loop): Same.
11755 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11756 * hsa-brig.c: Same.
11757 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11758 * hsa-dump.c (dump_hsa_cfun): Same.
11759 * hsa-gen.c (gen_function_def_parameters): Same.
11760 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11761 * input.c (dump_line_table_statistics): Same.
11762 (test_lexer): Same.
11763 * input.h: Same.
11764 * internal-fn.c (get_multi_vector_move): Same.
11765 (expand_load_lanes_optab_fn): Same.
11766 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11767 (expand_GOMP_SIMT_EXIT): Same.
11768 (expand_GOMP_SIMT_LAST_LANE): Same.
11769 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11770 (expand_GOMP_SIMT_VOTE_ANY): Same.
11771 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11772 (expand_GOMP_SIMT_XCHG_IDX): Same.
11773 (expand_addsub_overflow): Same.
11774 (expand_neg_overflow): Same.
11775 (expand_mul_overflow): Same.
11776 (expand_call_mem_ref): Same.
11777 (expand_mask_load_optab_fn): Same.
11778 (expand_scatter_store_optab_fn): Same.
11779 (expand_gather_load_optab_fn): Same.
11780 * ipa-cp.c (ipa_get_parm_lattices): Same.
11781 (print_all_lattices): Same.
11782 (ignore_edge_p): Same.
11783 (build_toporder_info): Same.
11784 (free_toporder_info): Same.
11785 (push_node_to_stack): Same.
11786 (ipcp_lattice<valtype>::set_contains_variable): Same.
11787 (set_agg_lats_to_bottom): Same.
11788 (ipcp_bits_lattice::meet_with): Same.
11789 (set_single_call_flag): Same.
11790 (initialize_node_lattices): Same.
11791 (ipa_get_jf_ancestor_result): Same.
11792 (ipcp_verify_propagated_values): Same.
11793 (propagate_scalar_across_jump_function): Same.
11794 (propagate_context_across_jump_function): Same.
11795 (propagate_bits_across_jump_function): Same.
11796 (ipa_vr_operation_and_type_effects): Same.
11797 (propagate_vr_across_jump_function): Same.
11798 (set_check_aggs_by_ref): Same.
11799 (set_chain_of_aglats_contains_variable): Same.
11800 (merge_aggregate_lattices): Same.
11801 (agg_pass_through_permissible_p): Same.
11802 (propagate_aggs_across_jump_function): Same.
11803 (call_passes_through_thunk_p): Same.
11804 (propagate_constants_across_call): Same.
11805 (devirtualization_time_bonus): Same.
11806 (good_cloning_opportunity_p): Same.
11807 (context_independent_aggregate_values): Same.
11808 (gather_context_independent_values): Same.
11809 (perform_estimation_of_a_value): Same.
11810 (estimate_local_effects): Same.
11811 (value_topo_info<valtype>::add_val): Same.
11812 (add_all_node_vals_to_toposort): Same.
11813 (value_topo_info<valtype>::propagate_effects): Same.
11814 (ipcp_propagate_stage): Same.
11815 (ipcp_discover_new_direct_edges): Same.
11816 (same_node_or_its_all_contexts_clone_p): Same.
11817 (cgraph_edge_brings_value_p): Same.
11818 (gather_edges_for_value): Same.
11819 (create_specialized_node): Same.
11820 (find_more_scalar_values_for_callers_subset): Same.
11821 (find_more_contexts_for_caller_subset): Same.
11822 (copy_plats_to_inter): Same.
11823 (intersect_aggregates_with_edge): Same.
11824 (find_aggregate_values_for_callers_subset): Same.
11825 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11826 (decide_about_value): Same.
11827 (decide_whether_version_node): Same.
11828 (spread_undeadness): Same.
11829 (identify_dead_nodes): Same.
11830 (ipcp_store_vr_results): Same.
11831 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11832 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11833 (redirect_to_unreachable): Same.
11834 (edge_set_predicate): Same.
11835 (evaluate_conditions_for_known_args): Same.
11836 (evaluate_properties_for_edge): Same.
11837 (ipa_fn_summary_t::duplicate): Same.
11838 (ipa_call_summary_t::duplicate): Same.
11839 (dump_ipa_call_summary): Same.
11840 (ipa_dump_fn_summary): Same.
11841 (eliminated_by_inlining_prob): Same.
11842 (set_cond_stmt_execution_predicate): Same.
11843 (set_switch_stmt_execution_predicate): Same.
11844 (compute_bb_predicates): Same.
11845 (will_be_nonconstant_expr_predicate): Same.
11846 (phi_result_unknown_predicate): Same.
11847 (analyze_function_body): Same.
11848 (compute_fn_summary): Same.
11849 (estimate_edge_devirt_benefit): Same.
11850 (estimate_edge_size_and_time): Same.
11851 (estimate_calls_size_and_time): Same.
11852 (estimate_node_size_and_time): Same.
11853 (remap_edge_change_prob): Same.
11854 (remap_edge_summaries): Same.
11855 (ipa_merge_fn_summary_after_inlining): Same.
11856 (ipa_fn_summary_generate): Same.
11857 (inline_read_section): Same.
11858 (ipa_fn_summary_read): Same.
11859 (ipa_fn_summary_write): Same.
11860 * ipa-fnsummary.h: Same.
11861 * ipa-hsa.c (ipa_hsa_read_section): Same.
11862 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11863 * ipa-icf.c (sem_function::param_used_p): Same.
11864 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11865 * ipa-inline.c (edge_badness): Same.
11866 (inline_small_functions): Same.
11867 * ipa-polymorphic-call.c
11868 (ipa_polymorphic_call_context::stream_out): Same.
11869 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11870 (predicate::remap_after_inlining): Same.
11871 (predicate::stream_out): Same.
11872 * ipa-predicate.h: Same.
11873 * ipa-profile.c (ipa_profile_read_summary): Same.
11874 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11875 (count_formal_params): Same.
11876 (ipa_dump_param): Same.
11877 (ipa_alloc_node_params): Same.
11878 (ipa_print_node_jump_functions_for_edge): Same.
11879 (ipa_print_node_jump_functions): Same.
11880 (ipa_load_from_parm_agg): Same.
11881 (get_ancestor_addr_info): Same.
11882 (ipa_compute_jump_functions_for_edge): Same.
11883 (ipa_analyze_virtual_call_uses): Same.
11884 (ipa_analyze_stmt_uses): Same.
11885 (ipa_analyze_params_uses_in_bb): Same.
11886 (update_jump_functions_after_inlining): Same.
11887 (try_decrement_rdesc_refcount): Same.
11888 (ipa_impossible_devirt_target): Same.
11889 (update_indirect_edges_after_inlining): Same.
11890 (combine_controlled_uses_counters): Same.
11891 (ipa_edge_args_sum_t::duplicate): Same.
11892 (ipa_write_jump_function): Same.
11893 (ipa_write_indirect_edge_info): Same.
11894 (ipa_write_node_info): Same.
11895 (ipa_read_edge_info): Same.
11896 (ipa_prop_read_section): Same.
11897 (read_replacements_section): Same.
11898 * ipa-prop.h (ipa_get_param_count): Same.
11899 (ipa_get_param): Same.
11900 (ipa_get_type): Same.
11901 (ipa_get_param_move_cost): Same.
11902 (ipa_set_param_used): Same.
11903 (ipa_get_controlled_uses): Same.
11904 (ipa_set_controlled_uses): Same.
11905 (ipa_get_cs_argument_count): Same.
11906 * ipa-pure-const.c (analyze_function): Same.
11907 (pure_const_read_summary): Same.
11908 * ipa-ref.h: Same.
11909 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11910 * ipa-split.c (test_nonssa_use): Same.
11911 (dump_split_point): Same.
11912 (dominated_by_forbidden): Same.
11913 (split_part_set_ssa_name_p): Same.
11914 (find_split_points): Same.
11915 * ira-build.c (finish_loop_tree_nodes): Same.
11916 (low_pressure_loop_node_p): Same.
11917 * ira-color.c (ira_reuse_stack_slot): Same.
11918 * ira-int.h: Same.
11919 * ira.c (setup_reg_equiv): Same.
11920 (print_insn_chain): Same.
11921 (ira): Same.
11922 * loop-doloop.c (doloop_condition_get): Same.
11923 (add_test): Same.
11924 (record_reg_sets): Same.
11925 (doloop_optimize): Same.
11926 * loop-init.c (loop_optimizer_init): Same.
11927 (fix_loop_structure): Same.
11928 * loop-invariant.c (merge_identical_invariants): Same.
11929 (compute_always_reached): Same.
11930 (find_exits): Same.
11931 (may_assign_reg_p): Same.
11932 (find_invariants_bb): Same.
11933 (find_invariants_body): Same.
11934 (replace_uses): Same.
11935 (can_move_invariant_reg): Same.
11936 (free_inv_motion_data): Same.
11937 (move_single_loop_invariants): Same.
11938 (change_pressure): Same.
11939 (mark_ref_regs): Same.
11940 (calculate_loop_reg_pressure): Same.
11941 * loop-iv.c (biv_entry_hasher::equal): Same.
11942 (iv_extend_to_rtx_code): Same.
11943 (check_iv_ref_table_size): Same.
11944 (clear_iv_info): Same.
11945 (latch_dominating_def): Same.
11946 (iv_get_reaching_def): Same.
11947 (iv_constant): Same.
11948 (iv_subreg): Same.
11949 (iv_extend): Same.
11950 (iv_neg): Same.
11951 (iv_add): Same.
11952 (iv_mult): Same.
11953 (get_biv_step): Same.
11954 (record_iv): Same.
11955 (analyzed_for_bivness_p): Same.
11956 (record_biv): Same.
11957 (iv_analyze_biv): Same.
11958 (iv_analyze_expr): Same.
11959 (iv_analyze_def): Same.
11960 (iv_analyze_op): Same.
11961 (iv_analyze): Same.
11962 (iv_analyze_result): Same.
11963 (biv_p): Same.
11964 (eliminate_implied_conditions): Same.
11965 (simplify_using_initial_values): Same.
11966 (shorten_into_mode): Same.
11967 (canonicalize_iv_subregs): Same.
11968 (determine_max_iter): Same.
11969 (check_simple_exit): Same.
11970 (find_simple_exit): Same.
11971 (get_simple_loop_desc): Same.
11972 * loop-unroll.c (report_unroll): Same.
11973 (decide_unrolling): Same.
11974 (unroll_loops): Same.
11975 (loop_exit_at_end_p): Same.
11976 (decide_unroll_constant_iterations): Same.
11977 (unroll_loop_constant_iterations): Same.
11978 (compare_and_jump_seq): Same.
11979 (unroll_loop_runtime_iterations): Same.
11980 (decide_unroll_stupid): Same.
11981 (unroll_loop_stupid): Same.
11982 (referenced_in_one_insn_in_loop_p): Same.
11983 (reset_debug_uses_in_loop): Same.
11984 (analyze_iv_to_split_insn): Same.
11985 * lra-eliminations.c (lra_debug_elim_table): Same.
11986 (setup_can_eliminate): Same.
11987 (form_sum): Same.
11988 (lra_get_elimination_hard_regno): Same.
11989 (lra_eliminate_regs_1): Same.
11990 (eliminate_regs_in_insn): Same.
11991 (update_reg_eliminate): Same.
11992 (init_elimination): Same.
11993 (lra_eliminate): Same.
11994 * lra-int.h: Same.
11995 * lra-lives.c (initiate_live_solver): Same.
11996 * lra-remat.c (create_remat_bb_data): Same.
11997 * lra-spills.c (lra_spill): Same.
11998 * lra.c (lra_set_insn_recog_data): Same.
11999 (lra_set_used_insn_alternative_by_uid): Same.
12000 (init_reg_info): Same.
12001 (expand_reg_info): Same.
12002 * lto-cgraph.c (output_symtab): Same.
12003 (read_identifier): Same.
12004 (get_alias_symbol): Same.
12005 (input_node): Same.
12006 (input_varpool_node): Same.
12007 (input_ref): Same.
12008 (input_edge): Same.
12009 (input_cgraph_1): Same.
12010 (input_refs): Same.
12011 (input_symtab): Same.
12012 (input_offload_tables): Same.
12013 (output_cgraph_opt_summary): Same.
12014 (input_edge_opt_summary): Same.
12015 (input_cgraph_opt_section): Same.
12016 * lto-section-in.c (lto_free_raw_section_data): Same.
12017 (lto_create_simple_input_block): Same.
12018 (lto_free_function_in_decl_state_for_node): Same.
12019 * lto-streamer-in.c (lto_tag_check_set): Same.
12020 (lto_location_cache::revert_location_cache): Same.
12021 (lto_location_cache::input_location): Same.
12022 (lto_input_location): Same.
12023 (stream_input_location_now): Same.
12024 (lto_input_tree_ref): Same.
12025 (lto_input_eh_catch_list): Same.
12026 (input_eh_region): Same.
12027 (lto_init_eh): Same.
12028 (make_new_block): Same.
12029 (input_cfg): Same.
12030 (fixup_call_stmt_edges): Same.
12031 (input_struct_function_base): Same.
12032 (input_function): Same.
12033 (lto_read_body_or_constructor): Same.
12034 (lto_read_tree_1): Same.
12035 (lto_read_tree): Same.
12036 (lto_input_scc): Same.
12037 (lto_input_tree_1): Same.
12038 (lto_input_toplevel_asms): Same.
12039 (lto_input_mode_table): Same.
12040 (lto_reader_init): Same.
12041 (lto_data_in_create): Same.
12042 * lto-streamer-out.c (output_cfg): Same.
12043 * lto-streamer.h: Same.
12044 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12045 (generate_prolog_epilog): Same.
12046 (mark_loop_unsched): Same.
12047 (dump_insn_location): Same.
12048 (loop_canon_p): Same.
12049 (sms_schedule): Same.
12050 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12051 (expand_omp_for_generic): Same.
12052 (expand_omp_for_static_nochunk): Same.
12053 (expand_omp_for_static_chunk): Same.
12054 (expand_omp_simd): Same.
12055 (expand_omp_taskloop_for_inner): Same.
12056 (expand_oacc_for): Same.
12057 (expand_omp_atomic_pipeline): Same.
12058 (mark_loops_in_oacc_kernels_region): Same.
12059 * omp-offload.c (oacc_xform_loop): Same.
12060 * omp-simd-clone.c (simd_clone_adjust): Same.
12061 * optabs-query.c (get_traditional_extraction_insn): Same.
12062 * optabs.c (expand_vector_broadcast): Same.
12063 (expand_binop_directly): Same.
12064 (expand_twoval_unop): Same.
12065 (expand_twoval_binop): Same.
12066 (expand_unop_direct): Same.
12067 (emit_indirect_jump): Same.
12068 (emit_conditional_move): Same.
12069 (emit_conditional_neg_or_complement): Same.
12070 (emit_conditional_add): Same.
12071 (vector_compare_rtx): Same.
12072 (expand_vec_perm_1): Same.
12073 (expand_vec_perm_const): Same.
12074 (expand_vec_cond_expr): Same.
12075 (expand_vec_series_expr): Same.
12076 (maybe_emit_atomic_exchange): Same.
12077 (maybe_emit_sync_lock_test_and_set): Same.
12078 (expand_atomic_compare_and_swap): Same.
12079 (expand_atomic_load): Same.
12080 (expand_atomic_store): Same.
12081 (maybe_emit_op): Same.
12082 (valid_multiword_target_p): Same.
12083 (create_integer_operand): Same.
12084 (maybe_legitimize_operand_same_code): Same.
12085 (maybe_legitimize_operand): Same.
12086 (create_convert_operand_from_type): Same.
12087 (can_reuse_operands_p): Same.
12088 (maybe_legitimize_operands): Same.
12089 (maybe_gen_insn): Same.
12090 (maybe_expand_insn): Same.
12091 (maybe_expand_jump_insn): Same.
12092 (expand_insn): Same.
12093 * optabs.h (create_expand_operand): Same.
12094 (create_fixed_operand): Same.
12095 (create_output_operand): Same.
12096 (create_input_operand): Same.
12097 (create_convert_operand_to): Same.
12098 (create_convert_operand_from): Same.
12099 * optinfo.h: Same.
12100 * poly-int.h: Same.
12101 * predict.c (optimize_insn_for_speed_p): Same.
12102 (optimize_loop_for_size_p): Same.
12103 (optimize_loop_for_speed_p): Same.
12104 (optimize_loop_nest_for_speed_p): Same.
12105 (get_base_value): Same.
12106 (predicted_by_loop_heuristics_p): Same.
12107 (predict_extra_loop_exits): Same.
12108 (predict_loops): Same.
12109 (predict_paths_for_bb): Same.
12110 (predict_paths_leading_to): Same.
12111 (propagate_freq): Same.
12112 (pass_profile::execute): Same.
12113 * predict.h: Same.
12114 * profile-count.c (profile_count::differs_from_p): Same.
12115 (profile_probability::differs_lot_from_p): Same.
12116 * profile-count.h: Same.
12117 * profile.c (branch_prob): Same.
12118 * regrename.c (free_chain_data): Same.
12119 (mark_conflict): Same.
12120 (create_new_chain): Same.
12121 (merge_overlapping_regs): Same.
12122 (init_rename_info): Same.
12123 (merge_chains): Same.
12124 (regrename_analyze): Same.
12125 (regrename_do_replace): Same.
12126 (scan_rtx_reg): Same.
12127 (record_out_operands): Same.
12128 (build_def_use): Same.
12129 * regrename.h: Same.
12130 * reload.h: Same.
12131 * reload1.c (init_reload): Same.
12132 (maybe_fix_stack_asms): Same.
12133 (copy_reloads): Same.
12134 (count_pseudo): Same.
12135 (count_spilled_pseudo): Same.
12136 (find_reg): Same.
12137 (find_reload_regs): Same.
12138 (select_reload_regs): Same.
12139 (spill_hard_reg): Same.
12140 (fixup_eh_region_note): Same.
12141 (set_reload_reg): Same.
12142 (allocate_reload_reg): Same.
12143 (compute_reload_subreg_offset): Same.
12144 (reload_adjust_reg_for_icode): Same.
12145 (emit_input_reload_insns): Same.
12146 (emit_output_reload_insns): Same.
12147 (do_input_reload): Same.
12148 (inherit_piecemeal_p): Same.
12149 * rtl.h: Same.
12150 * sanopt.c (maybe_get_dominating_check): Same.
12151 (maybe_optimize_ubsan_ptr_ifn): Same.
12152 (can_remove_asan_check): Same.
12153 (maybe_optimize_asan_check_ifn): Same.
12154 (sanopt_optimize_walker): Same.
12155 * sched-deps.c (add_dependence_list): Same.
12156 (chain_to_prev_insn): Same.
12157 (add_insn_mem_dependence): Same.
12158 (create_insn_reg_set): Same.
12159 (maybe_extend_reg_info_p): Same.
12160 (sched_analyze_reg): Same.
12161 (sched_analyze_1): Same.
12162 (get_implicit_reg_pending_clobbers): Same.
12163 (chain_to_prev_insn_p): Same.
12164 (deps_analyze_insn): Same.
12165 (deps_start_bb): Same.
12166 (sched_free_deps): Same.
12167 (init_deps): Same.
12168 (init_deps_reg_last): Same.
12169 (free_deps): Same.
12170 * sched-ebb.c: Same.
12171 * sched-int.h: Same.
12172 * sched-rgn.c (add_branch_dependences): Same.
12173 (concat_insn_mem_list): Same.
12174 (deps_join): Same.
12175 (sched_rgn_compute_dependencies): Same.
12176 * sel-sched-ir.c (reset_target_context): Same.
12177 (copy_deps_context): Same.
12178 (init_id_from_df): Same.
12179 (has_dependence_p): Same.
12180 (change_loops_latches): Same.
12181 (bb_top_order_comparator): Same.
12182 (make_region_from_loop_preheader): Same.
12183 (sel_init_pipelining): Same.
12184 (get_loop_nest_for_rgn): Same.
12185 (make_regions_from_the_rest): Same.
12186 (sel_is_loop_preheader_p): Same.
12187 * sel-sched-ir.h (inner_loop_header_p): Same.
12188 (get_all_loop_exits): Same.
12189 * selftest.h: Same.
12190 * sese.c (sese_build_liveouts): Same.
12191 (sese_insert_phis_for_liveouts): Same.
12192 * sese.h (defined_in_sese_p): Same.
12193 * sreal.c (sreal::stream_out): Same.
12194 * sreal.h: Same.
12195 * streamer-hooks.h: Same.
12196 * target-globals.c (save_target_globals): Same.
12197 * target-globals.h: Same.
12198 * target.def: Same.
12199 * target.h: Same.
12200 * targhooks.c (default_has_ifunc_p): Same.
12201 (default_empty_mask_is_expensive): Same.
12202 (default_init_cost): Same.
12203 * targhooks.h: Same.
12204 * toplev.c: Same.
12205 * tree-affine.c (aff_combination_mult): Same.
12206 (aff_combination_expand): Same.
12207 (aff_combination_constant_multiple_p): Same.
12208 * tree-affine.h: Same.
12209 * tree-cfg.c (build_gimple_cfg): Same.
12210 (replace_loop_annotate_in_block): Same.
12211 (replace_uses_by): Same.
12212 (remove_bb): Same.
12213 (dump_cfg_stats): Same.
12214 (gimple_duplicate_sese_region): Same.
12215 (gimple_duplicate_sese_tail): Same.
12216 (move_block_to_fn): Same.
12217 (replace_block_vars_by_duplicates): Same.
12218 (move_sese_region_to_fn): Same.
12219 (print_loops_bb): Same.
12220 (print_loop): Same.
12221 (print_loops): Same.
12222 (debug): Same.
12223 (debug_loops): Same.
12224 * tree-cfg.h: Same.
12225 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12226 (chrec_fold_multiply_poly_poly): Same.
12227 (chrec_evaluate): Same.
12228 (chrec_component_in_loop_num): Same.
12229 (reset_evolution_in_loop): Same.
12230 (is_multivariate_chrec): Same.
12231 (chrec_contains_symbols): Same.
12232 (nb_vars_in_chrec): Same.
12233 (chrec_convert_1): Same.
12234 (chrec_convert_aggressive): Same.
12235 * tree-chrec.h: Same.
12236 * tree-core.h: Same.
12237 * tree-data-ref.c (dump_data_dependence_relation): Same.
12238 (canonicalize_base_object_address): Same.
12239 (data_ref_compare_tree): Same.
12240 (prune_runtime_alias_test_list): Same.
12241 (get_segment_min_max): Same.
12242 (create_intersect_range_checks): Same.
12243 (conflict_fn_no_dependence): Same.
12244 (object_address_invariant_in_loop_p): Same.
12245 (analyze_ziv_subscript): Same.
12246 (analyze_siv_subscript_cst_affine): Same.
12247 (analyze_miv_subscript): Same.
12248 (analyze_overlapping_iterations): Same.
12249 (build_classic_dist_vector_1): Same.
12250 (add_other_self_distances): Same.
12251 (same_access_functions): Same.
12252 (build_classic_dir_vector): Same.
12253 (subscript_dependence_tester_1): Same.
12254 (subscript_dependence_tester): Same.
12255 (access_functions_are_affine_or_constant_p): Same.
12256 (get_references_in_stmt): Same.
12257 (loop_nest_has_data_refs): Same.
12258 (graphite_find_data_references_in_stmt): Same.
12259 (find_data_references_in_bb): Same.
12260 (get_base_for_alignment): Same.
12261 (find_loop_nest_1): Same.
12262 (find_loop_nest): Same.
12263 * tree-data-ref.h (dr_alignment): Same.
12264 (ddr_dependence_level): Same.
12265 * tree-if-conv.c (fold_build_cond_expr): Same.
12266 (add_to_predicate_list): Same.
12267 (add_to_dst_predicate_list): Same.
12268 (phi_convertible_by_degenerating_args): Same.
12269 (idx_within_array_bound): Same.
12270 (all_preds_critical_p): Same.
12271 (pred_blocks_visited_p): Same.
12272 (predicate_bbs): Same.
12273 (build_region): Same.
12274 (if_convertible_loop_p_1): Same.
12275 (is_cond_scalar_reduction): Same.
12276 (predicate_scalar_phi): Same.
12277 (remove_conditions_and_labels): Same.
12278 (combine_blocks): Same.
12279 (version_loop_for_if_conversion): Same.
12280 (versionable_outer_loop_p): Same.
12281 (ifcvt_local_dce): Same.
12282 (tree_if_conversion): Same.
12283 (pass_if_conversion::gate): Same.
12284 * tree-if-conv.h: Same.
12285 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12286 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12287 (free_rdg): Same.
12288 (stmt_has_scalar_dependences_outside_loop): Same.
12289 (copy_loop_before): Same.
12290 (create_bb_after_loop): Same.
12291 (const_with_all_bytes_same): Same.
12292 (generate_memset_builtin): Same.
12293 (generate_memcpy_builtin): Same.
12294 (destroy_loop): Same.
12295 (build_rdg_partition_for_vertex): Same.
12296 (compute_access_range): Same.
12297 (data_ref_segment_size): Same.
12298 (latch_dominated_by_data_ref): Same.
12299 (compute_alias_check_pairs): Same.
12300 (fuse_memset_builtins): Same.
12301 (finalize_partitions): Same.
12302 (find_seed_stmts_for_distribution): Same.
12303 (prepare_perfect_loop_nest): Same.
12304 * tree-parloops.c (lambda_transform_legal_p): Same.
12305 (loop_parallel_p): Same.
12306 (reduc_stmt_res): Same.
12307 (add_field_for_name): Same.
12308 (create_call_for_reduction_1): Same.
12309 (replace_uses_in_bb_by): Same.
12310 (transform_to_exit_first_loop_alt): Same.
12311 (try_transform_to_exit_first_loop_alt): Same.
12312 (transform_to_exit_first_loop): Same.
12313 (num_phis): Same.
12314 (gen_parallel_loop): Same.
12315 (gather_scalar_reductions): Same.
12316 (get_omp_data_i_param): Same.
12317 (try_create_reduction_list): Same.
12318 (oacc_entry_exit_single_gang): Same.
12319 (parallelize_loops): Same.
12320 * tree-pass.h: Same.
12321 * tree-predcom.c (determine_offset): Same.
12322 (last_always_executed_block): Same.
12323 (split_data_refs_to_components): Same.
12324 (suitable_component_p): Same.
12325 (valid_initializer_p): Same.
12326 (find_looparound_phi): Same.
12327 (insert_looparound_copy): Same.
12328 (add_looparound_copies): Same.
12329 (determine_roots_comp): Same.
12330 (predcom_tmp_var): Same.
12331 (initialize_root_vars): Same.
12332 (initialize_root_vars_store_elim_1): Same.
12333 (initialize_root_vars_store_elim_2): Same.
12334 (finalize_eliminated_stores): Same.
12335 (initialize_root_vars_lm): Same.
12336 (remove_stmt): Same.
12337 (determine_unroll_factor): Same.
12338 (execute_pred_commoning_cbck): Same.
12339 (base_names_in_chain_on): Same.
12340 (combine_chains): Same.
12341 (pcom_stmt_dominates_stmt_p): Same.
12342 (try_combine_chains): Same.
12343 (prepare_initializers_chain_store_elim): Same.
12344 (prepare_initializers_chain): Same.
12345 (prepare_initializers): Same.
12346 (prepare_finalizers_chain): Same.
12347 (prepare_finalizers): Same.
12348 (insert_init_seqs): Same.
12349 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12350 (compute_overall_effect_of_inner_loop): Same.
12351 (add_to_evolution_1): Same.
12352 (add_to_evolution): Same.
12353 (follow_ssa_edge_binary): Same.
12354 (follow_ssa_edge_expr): Same.
12355 (backedge_phi_arg_p): Same.
12356 (follow_ssa_edge_in_condition_phi_branch): Same.
12357 (follow_ssa_edge_in_condition_phi): Same.
12358 (follow_ssa_edge_inner_loop_phi): Same.
12359 (follow_ssa_edge): Same.
12360 (analyze_evolution_in_loop): Same.
12361 (analyze_initial_condition): Same.
12362 (interpret_loop_phi): Same.
12363 (interpret_condition_phi): Same.
12364 (interpret_rhs_expr): Same.
12365 (interpret_expr): Same.
12366 (interpret_gimple_assign): Same.
12367 (analyze_scalar_evolution_1): Same.
12368 (analyze_scalar_evolution): Same.
12369 (analyze_scalar_evolution_for_address_of): Same.
12370 (get_instantiated_value_entry): Same.
12371 (loop_closed_phi_def): Same.
12372 (instantiate_scev_name): Same.
12373 (instantiate_scev_poly): Same.
12374 (instantiate_scev_binary): Same.
12375 (instantiate_scev_convert): Same.
12376 (instantiate_scev_not): Same.
12377 (instantiate_scev_r): Same.
12378 (instantiate_scev): Same.
12379 (resolve_mixers): Same.
12380 (initialize_scalar_evolutions_analyzer): Same.
12381 (scev_reset_htab): Same.
12382 (scev_reset): Same.
12383 (derive_simple_iv_with_niters): Same.
12384 (simple_iv_with_niters): Same.
12385 (expression_expensive_p): Same.
12386 (final_value_replacement_loop): Same.
12387 * tree-scalar-evolution.h (block_before_loop): Same.
12388 * tree-ssa-address.h: Same.
12389 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12390 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12391 (record_edge_info): Same.
12392 * tree-ssa-live.c (var_map_base_fini): Same.
12393 (remove_unused_locals): Same.
12394 * tree-ssa-live.h: Same.
12395 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12396 (pass_ch_vect::execute): Same.
12397 (pass_ch::process_loop_p): Same.
12398 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12399 (movement_possibility): Same.
12400 (outermost_invariant_loop): Same.
12401 (stmt_cost): Same.
12402 (determine_max_movement): Same.
12403 (invariantness_dom_walker::before_dom_children): Same.
12404 (move_computations): Same.
12405 (may_move_till): Same.
12406 (force_move_till_op): Same.
12407 (force_move_till): Same.
12408 (memref_free): Same.
12409 (record_mem_ref_loc): Same.
12410 (set_ref_stored_in_loop): Same.
12411 (mark_ref_stored): Same.
12412 (sort_bbs_in_loop_postorder_cmp): Same.
12413 (sort_locs_in_loop_postorder_cmp): Same.
12414 (analyze_memory_references): Same.
12415 (mem_refs_may_alias_p): Same.
12416 (find_ref_loc_in_loop_cmp): Same.
12417 (rewrite_mem_ref_loc::operator): Same.
12418 (first_mem_ref_loc_1::operator): Same.
12419 (sm_set_flag_if_changed::operator): Same.
12420 (execute_sm_if_changed_flag_set): Same.
12421 (execute_sm): Same.
12422 (hoist_memory_references): Same.
12423 (ref_always_accessed::operator): Same.
12424 (refs_independent_p): Same.
12425 (record_dep_loop): Same.
12426 (ref_indep_loop_p_1): Same.
12427 (ref_indep_loop_p): Same.
12428 (can_sm_ref_p): Same.
12429 (find_refs_for_sm): Same.
12430 (loop_suitable_for_sm): Same.
12431 (store_motion_loop): Same.
12432 (store_motion): Same.
12433 (fill_always_executed_in): Same.
12434 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12435 (estimated_unrolled_size): Same.
12436 (loop_edge_to_cancel): Same.
12437 (remove_exits_and_undefined_stmts): Same.
12438 (remove_redundant_iv_tests): Same.
12439 (unloop_loops): Same.
12440 (estimated_peeled_sequence_size): Same.
12441 (try_peel_loop): Same.
12442 (canonicalize_loop_induction_variables): Same.
12443 (canonicalize_induction_variables): Same.
12444 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12445 (name_info): Same.
12446 (stmt_after_inc_pos): Same.
12447 (contains_abnormal_ssa_name_p): Same.
12448 (niter_for_exit): Same.
12449 (find_bivs): Same.
12450 (mark_bivs): Same.
12451 (find_givs_in_bb): Same.
12452 (find_induction_variables): Same.
12453 (find_interesting_uses_cond): Same.
12454 (outermost_invariant_loop_for_expr): Same.
12455 (idx_find_step): Same.
12456 (add_candidate_1): Same.
12457 (add_iv_candidate_derived_from_uses): Same.
12458 (alloc_use_cost_map): Same.
12459 (prepare_decl_rtl): Same.
12460 (generic_predict_doloop_p): Same.
12461 (computation_cost): Same.
12462 (determine_common_wider_type): Same.
12463 (get_computation_aff_1): Same.
12464 (get_use_type): Same.
12465 (determine_group_iv_cost_address): Same.
12466 (iv_period): Same.
12467 (difference_cannot_overflow_p): Same.
12468 (may_eliminate_iv): Same.
12469 (determine_set_costs): Same.
12470 (cheaper_cost_pair): Same.
12471 (compare_cost_pair): Same.
12472 (iv_ca_cand_for_group): Same.
12473 (iv_ca_recount_cost): Same.
12474 (iv_ca_set_remove_invs): Same.
12475 (iv_ca_set_no_cp): Same.
12476 (iv_ca_set_add_invs): Same.
12477 (iv_ca_set_cp): Same.
12478 (iv_ca_add_group): Same.
12479 (iv_ca_cost): Same.
12480 (iv_ca_compare_deps): Same.
12481 (iv_ca_delta_reverse): Same.
12482 (iv_ca_delta_commit): Same.
12483 (iv_ca_cand_used_p): Same.
12484 (iv_ca_delta_free): Same.
12485 (iv_ca_new): Same.
12486 (iv_ca_free): Same.
12487 (iv_ca_dump): Same.
12488 (iv_ca_extend): Same.
12489 (iv_ca_narrow): Same.
12490 (iv_ca_prune): Same.
12491 (cheaper_cost_with_cand): Same.
12492 (iv_ca_replace): Same.
12493 (try_add_cand_for): Same.
12494 (get_initial_solution): Same.
12495 (try_improve_iv_set): Same.
12496 (find_optimal_iv_set_1): Same.
12497 (create_new_iv): Same.
12498 (rewrite_use_compare): Same.
12499 (remove_unused_ivs): Same.
12500 (determine_scaling_factor): Same.
12501 * tree-ssa-loop-ivopts.h: Same.
12502 * tree-ssa-loop-manip.c (create_iv): Same.
12503 (compute_live_loop_exits): Same.
12504 (add_exit_phi): Same.
12505 (add_exit_phis): Same.
12506 (find_uses_to_rename_use): Same.
12507 (find_uses_to_rename_def): Same.
12508 (find_uses_to_rename_in_loop): Same.
12509 (rewrite_into_loop_closed_ssa): Same.
12510 (check_loop_closed_ssa_bb): Same.
12511 (split_loop_exit_edge): Same.
12512 (ip_end_pos): Same.
12513 (ip_normal_pos): Same.
12514 (copy_phi_node_args): Same.
12515 (gimple_duplicate_loop_to_header_edge): Same.
12516 (can_unroll_loop_p): Same.
12517 (determine_exit_conditions): Same.
12518 (scale_dominated_blocks_in_loop): Same.
12519 (niter_for_unrolled_loop): Same.
12520 (tree_transform_and_unroll_loop): Same.
12521 (rewrite_all_phi_nodes_with_iv): Same.
12522 * tree-ssa-loop-manip.h: Same.
12523 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12524 (number_of_iterations_ne): Same.
12525 (assert_no_overflow_lt): Same.
12526 (assert_loop_rolls_lt): Same.
12527 (number_of_iterations_lt): Same.
12528 (adjust_cond_for_loop_until_wrap): Same.
12529 (tree_simplify_using_condition): Same.
12530 (simplify_using_initial_conditions): Same.
12531 (simplify_using_outer_evolutions): Same.
12532 (loop_only_exit_p): Same.
12533 (ssa_defined_by_minus_one_stmt_p): Same.
12534 (number_of_iterations_popcount): Same.
12535 (number_of_iterations_exit): Same.
12536 (find_loop_niter): Same.
12537 (finite_loop_p): Same.
12538 (chain_of_csts_start): Same.
12539 (get_val_for): Same.
12540 (loop_niter_by_eval): Same.
12541 (derive_constant_upper_bound_ops): Same.
12542 (do_warn_aggressive_loop_optimizations): Same.
12543 (record_estimate): Same.
12544 (get_cst_init_from_scev): Same.
12545 (record_nonwrapping_iv): Same.
12546 (idx_infer_loop_bounds): Same.
12547 (infer_loop_bounds_from_ref): Same.
12548 (infer_loop_bounds_from_array): Same.
12549 (infer_loop_bounds_from_pointer_arith): Same.
12550 (infer_loop_bounds_from_signedness): Same.
12551 (bound_index): Same.
12552 (discover_iteration_bound_by_body_walk): Same.
12553 (maybe_lower_iteration_bound): Same.
12554 (estimate_numbers_of_iterations): Same.
12555 (estimated_loop_iterations): Same.
12556 (estimated_loop_iterations_int): Same.
12557 (max_loop_iterations): Same.
12558 (max_loop_iterations_int): Same.
12559 (likely_max_loop_iterations): Same.
12560 (likely_max_loop_iterations_int): Same.
12561 (estimated_stmt_executions_int): Same.
12562 (max_stmt_executions): Same.
12563 (likely_max_stmt_executions): Same.
12564 (estimated_stmt_executions): Same.
12565 (stmt_dominates_stmt_p): Same.
12566 (nowrap_type_p): Same.
12567 (loop_exits_before_overflow): Same.
12568 (scev_var_range_cant_overflow): Same.
12569 (scev_probably_wraps_p): Same.
12570 (free_numbers_of_iterations_estimates): Same.
12571 * tree-ssa-loop-niter.h: Same.
12572 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12573 (idx_analyze_ref): Same.
12574 (analyze_ref): Same.
12575 (gather_memory_references_ref): Same.
12576 (mark_nontemporal_store): Same.
12577 (emit_mfence_after_loop): Same.
12578 (may_use_storent_in_loop_p): Same.
12579 (mark_nontemporal_stores): Same.
12580 (should_unroll_loop_p): Same.
12581 (volume_of_dist_vector): Same.
12582 (add_subscript_strides): Same.
12583 (self_reuse_distance): Same.
12584 (insn_to_prefetch_ratio_too_small_p): Same.
12585 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12586 (patch_loop_exit): Same.
12587 (find_or_create_guard_phi): Same.
12588 (easy_exit_values): Same.
12589 (connect_loop_phis): Same.
12590 (connect_loops): Same.
12591 (compute_new_first_bound): Same.
12592 (split_loop): Same.
12593 (tree_ssa_split_loops): Same.
12594 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12595 (is_maybe_undefined): Same.
12596 (tree_may_unswitch_on): Same.
12597 (simplify_using_entry_checks): Same.
12598 (tree_unswitch_single_loop): Same.
12599 (tree_unswitch_loop): Same.
12600 (tree_unswitch_outer_loop): Same.
12601 (empty_bb_without_guard_p): Same.
12602 (used_outside_loop_p): Same.
12603 (get_vop_from_header): Same.
12604 (hoist_guard): Same.
12605 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12606 (get_lsm_tmp_name): Same.
12607 * tree-ssa-loop.h: Same.
12608 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12609 (build_and_add_sum): Same.
12610 (no_side_effect_bb): Same.
12611 (get_ops): Same.
12612 (linearize_expr): Same.
12613 (should_break_up_subtract): Same.
12614 (linearize_expr_tree): Same.
12615 * tree-ssa-scopedtables.c: Same.
12616 * tree-ssa-scopedtables.h: Same.
12617 * tree-ssa-structalias.c (condense_visit): Same.
12618 (label_visit): Same.
12619 (dump_pred_graph): Same.
12620 (perform_var_substitution): Same.
12621 (move_complex_constraints): Same.
12622 (remove_preds_and_fake_succs): Same.
12623 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12624 (determine_bb_domination_status): Same.
12625 (duplicate_thread_path): Same.
12626 (thread_through_all_blocks): Same.
12627 * tree-ssa-threadupdate.h: Same.
12628 * tree-streamer-in.c (streamer_read_string_cst): Same.
12629 (input_identifier): Same.
12630 (unpack_ts_type_common_value_fields): Same.
12631 (unpack_ts_block_value_fields): Same.
12632 (unpack_ts_translation_unit_decl_value_fields): Same.
12633 (unpack_ts_omp_clause_value_fields): Same.
12634 (streamer_read_tree_bitfields): Same.
12635 (streamer_alloc_tree): Same.
12636 (lto_input_ts_common_tree_pointers): Same.
12637 (lto_input_ts_vector_tree_pointers): Same.
12638 (lto_input_ts_poly_tree_pointers): Same.
12639 (lto_input_ts_complex_tree_pointers): Same.
12640 (lto_input_ts_decl_minimal_tree_pointers): Same.
12641 (lto_input_ts_decl_common_tree_pointers): Same.
12642 (lto_input_ts_decl_non_common_tree_pointers): Same.
12643 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12644 (lto_input_ts_field_decl_tree_pointers): Same.
12645 (lto_input_ts_function_decl_tree_pointers): Same.
12646 (lto_input_ts_type_common_tree_pointers): Same.
12647 (lto_input_ts_type_non_common_tree_pointers): Same.
12648 (lto_input_ts_list_tree_pointers): Same.
12649 (lto_input_ts_vec_tree_pointers): Same.
12650 (lto_input_ts_exp_tree_pointers): Same.
12651 (lto_input_ts_block_tree_pointers): Same.
12652 (lto_input_ts_binfo_tree_pointers): Same.
12653 (lto_input_ts_constructor_tree_pointers): Same.
12654 (lto_input_ts_omp_clause_tree_pointers): Same.
12655 (streamer_read_tree_body): Same.
12656 * tree-streamer.h: Same.
12657 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12658 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12659 (vect_analyze_possibly_independent_ddr): Same.
12660 (vect_analyze_data_ref_dependence): Same.
12661 (vect_compute_data_ref_alignment): Same.
12662 (vect_enhance_data_refs_alignment): Same.
12663 (vect_analyze_data_ref_access): Same.
12664 (vect_check_gather_scatter): Same.
12665 (vect_find_stmt_data_reference): Same.
12666 (vect_create_addr_base_for_vector_ref): Same.
12667 (vect_setup_realignment): Same.
12668 (vect_supportable_dr_alignment): Same.
12669 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12670 (adjust_phi_and_debug_stmts): Same.
12671 (vect_set_loop_mask): Same.
12672 (add_preheader_seq): Same.
12673 (vect_maybe_permute_loop_masks): Same.
12674 (vect_set_loop_masks_directly): Same.
12675 (vect_set_loop_condition_masked): Same.
12676 (vect_set_loop_condition_unmasked): Same.
12677 (slpeel_duplicate_current_defs_from_edges): Same.
12678 (slpeel_add_loop_guard): Same.
12679 (slpeel_can_duplicate_loop_p): Same.
12680 (create_lcssa_for_virtual_phi): Same.
12681 (iv_phi_p): Same.
12682 (vect_update_ivs_after_vectorizer): Same.
12683 (vect_gen_vector_loop_niters_mult_vf): Same.
12684 (slpeel_update_phi_nodes_for_loops): Same.
12685 (slpeel_update_phi_nodes_for_guard1): Same.
12686 (find_guard_arg): Same.
12687 (slpeel_update_phi_nodes_for_guard2): Same.
12688 (slpeel_update_phi_nodes_for_lcssa): Same.
12689 (vect_do_peeling): Same.
12690 (vect_create_cond_for_alias_checks): Same.
12691 (vect_loop_versioning): Same.
12692 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12693 (vect_inner_phi_in_double_reduction_p): Same.
12694 (vect_analyze_scalar_cycles_1): Same.
12695 (vect_fixup_scalar_cycles_with_patterns): Same.
12696 (vect_get_loop_niters): Same.
12697 (bb_in_loop_p): Same.
12698 (vect_get_max_nscalars_per_iter): Same.
12699 (vect_verify_full_masking): Same.
12700 (vect_compute_single_scalar_iteration_cost): Same.
12701 (vect_analyze_loop_form_1): Same.
12702 (vect_analyze_loop_form): Same.
12703 (vect_active_double_reduction_p): Same.
12704 (vect_analyze_loop_operations): Same.
12705 (neutral_op_for_slp_reduction): Same.
12706 (vect_is_simple_reduction): Same.
12707 (vect_model_reduction_cost): Same.
12708 (get_initial_def_for_reduction): Same.
12709 (get_initial_defs_for_reduction): Same.
12710 (vect_create_epilog_for_reduction): Same.
12711 (vectorize_fold_left_reduction): Same.
12712 (vectorizable_reduction): Same.
12713 (vectorizable_induction): Same.
12714 (vectorizable_live_operation): Same.
12715 (loop_niters_no_overflow): Same.
12716 (vect_get_loop_mask): Same.
12717 (vect_transform_loop_stmt): Same.
12718 (vect_transform_loop): Same.
12719 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12720 (vect_determine_precisions): Same.
12721 (vect_pattern_recog_1): Same.
12722 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12723 * tree-vect-stmts.c (stmt_vectype): Same.
12724 (process_use): Same.
12725 (vect_init_vector_1): Same.
12726 (vect_truncate_gather_scatter_offset): Same.
12727 (get_group_load_store_type): Same.
12728 (vect_build_gather_load_calls): Same.
12729 (vect_get_strided_load_store_ops): Same.
12730 (vectorizable_simd_clone_call): Same.
12731 (vectorizable_store): Same.
12732 (permute_vec_elements): Same.
12733 (vectorizable_load): Same.
12734 (vect_transform_stmt): Same.
12735 (supportable_widening_operation): Same.
12736 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12737 (vec_info::free_stmt_vec_info): Same.
12738 (vect_free_loop_info_assumptions): Same.
12739 (vect_loop_vectorized_call): Same.
12740 (set_uid_loop_bbs): Same.
12741 (vectorize_loops): Same.
12742 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12743 * tree.c (add_tree_to_fld_list): Same.
12744 (fld_type_variant_equal_p): Same.
12745 (fld_decl_context): Same.
12746 (fld_incomplete_type_of): Same.
12747 (free_lang_data_in_binfo): Same.
12748 (need_assembler_name_p): Same.
12749 (find_decls_types_r): Same.
12750 (get_eh_types_for_runtime): Same.
12751 (find_decls_types_in_eh_region): Same.
12752 (find_decls_types_in_node): Same.
12753 (assign_assembler_name_if_needed): Same.
12754 * value-prof.c (stream_out_histogram_value): Same.
12755 * value-prof.h: Same.
12756 * var-tracking.c (use_narrower_mode): Same.
12757 (prepare_call_arguments): Same.
12758 (vt_expand_loc_callback): Same.
12759 (resolve_expansions_pending_recursion): Same.
12760 (vt_expand_loc): Same.
12761 * varasm.c (const_hash_1): Same.
12762 (compare_constant): Same.
12763 (tree_output_constant_def): Same.
12764 (simplify_subtraction): Same.
12765 (get_pool_constant): Same.
12766 (output_constant_pool_2): Same.
12767 (output_constant_pool_1): Same.
12768 (mark_constants_in_pattern): Same.
12769 (mark_constant_pool): Same.
12770 (get_section_anchor): Same.
12771 * vr-values.c (compare_range_with_value): Same.
12772 (vr_values::extract_range_from_phi_node): Same.
12773 * vr-values.h: Same.
12774 * web.c (unionfind_union): Same.
12775 * wide-int.h: Same.
12776
12777 2019-07-09 Martin Sebor <msebor@redhat.com>
12778
12779 PR c++/61339
12780 * align.h: Change class-key from class to struct and vice versa
12781 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12782 * alloc-pool.h: Same.
12783 * asan.c (shadow_mem_size): Same.
12784 * auto-profile.c: Same.
12785 * basic-block.h: Same.
12786 * bitmap.h: Same.
12787 * cfgexpand.c (set_rtl): Same.
12788 (expand_one_stack_var_at): Same.
12789 * cfghooks.h: Same.
12790 * cfgloop.h: Same.
12791 * cgraph.h: Same.
12792 * config/i386/i386.h: Same.
12793 * df-problems.c (df_print_bb_index): Same.
12794 * df-scan.c: Same.
12795 * df.h (df_single_use): Same.
12796 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12797 (layout::annotation_line_showed_range_p): Same.
12798 (get_printed_columns): Same.
12799 (correction::ensure_terminated): Same.
12800 (line_corrections::~line_corrections): Same.
12801 * dojump.h: Same.
12802 * dse.c: Same.
12803 * dump-context.h: Same.
12804 * dumpfile.h: Same.
12805 * dwarf2out.c: Same.
12806 * edit-context.c: Same.
12807 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12808 * flags.h: Same.
12809 * function.c (assign_stack_local): Same.
12810 * function.h: Same.
12811 * gcc.c: Same.
12812 * gcov.c (block_info::block_info): Same.
12813 * genattrtab.c: Same.
12814 * genextract.c: Same.
12815 * genmatch.c (comparison_code_p): Same.
12816 (id_base::id_base): Same.
12817 (decision_tree::print): Same.
12818 * genoutput.c: Same.
12819 * genpreds.c (write_one_predicate_function): Same.
12820 * genrecog.c (validate_pattern): Same.
12821 (find_operand_positions): Same.
12822 (optimize_subroutine_group): Same.
12823 (merge_pattern_transition::merge_pattern_transition): Same.
12824 (merge_pattern_info::merge_pattern_info): Same.
12825 (merge_state_result::merge_state_result): Same.
12826 (merge_into_state): Same.
12827 * gensupport.c: Same.
12828 * gensupport.h: Same.
12829 * ggc-common.c (init_ggc_heuristics): Same.
12830 * ggc-tests.c (test_union): Same.
12831 * gimple-loop-interchange.cc (dump_induction): Same.
12832 * gimple-loop-versioning.cc: Same.
12833 * gimple-match.h (gimple_match_cond::any_else): Same.
12834 * gimple-ssa-backprop.c: Same.
12835 * gimple-ssa-sprintf.c: Same.
12836 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12837 Same.
12838 (store_immediate_info::store_immediate_info): Same.
12839 (merged_store_group::apply_stores): Same.
12840 (get_location_for_stmts): Same.
12841 * gimple-ssa-strength-reduction.c: Same.
12842 * gimple-ssa-warn-alloca.c: Same.
12843 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12844 * godump.c (go_type_decl): Same.
12845 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12846 * hash-map.h: Same.
12847 * hash-set-tests.c (test_set_of_strings): Same.
12848 * hsa-brig.c: Same.
12849 * hsa-common.h: Same.
12850 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12851 * input.c (assert_loceq): Same.
12852 * input.h: Same.
12853 * ipa-cp.c: Same.
12854 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12855 * ipa-fnsummary.h: Same.
12856 * ipa-inline.h: Same.
12857 * ipa-prop.h: Same.
12858 * ipa-split.c (visit_bb): Same.
12859 * ira-int.h (minmax_set_iter_next): Same.
12860 * loop-invariant.c: Same.
12861 * loop-iv.c: Same.
12862 * lra-eliminations.c: Same.
12863 * lra-int.h: Same.
12864 * lra-lives.c (mark_regno_dead): Same.
12865 * lra-remat.c: Same.
12866 * lra-spills.c: Same.
12867 * lto-streamer.h: Same.
12868 * mem-stats.h: Same.
12869 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12870 * omp-low.c (omp_clause_aligned_alignment): Same.
12871 * optabs-query.h (get_vcond_eq_icode): Same.
12872 * optabs.h: Same.
12873 * opts.c (wrap_help): Same.
12874 * poly-int.h: Same.
12875 * predict.c (predict_paths_leading_to_edge): Same.
12876 * pretty-print.h: Same.
12877 * profile-count.h: Same.
12878 * read-md.h: Same.
12879 * read-rtl-function.c: Same.
12880 * ree.c: Same.
12881 * reginfo.c: Same.
12882 * regrename.c: Same.
12883 * regrename.h: Same.
12884 * reload.h: Same.
12885 * rtl-iter.h: Same.
12886 * rtl.h (costs_add_n_insns): Same.
12887 * sanopt.c: Same.
12888 * sched-int.h: Same.
12889 * sel-sched-ir.h: Same.
12890 * selftest.h: Same.
12891 * sese.h (vec_find): Same.
12892 * stmt.c: Same.
12893 * target-globals.h: Same.
12894 * tree-affine.c (aff_combination_find_elt): Same.
12895 * tree-affine.h: Same.
12896 * tree-data-ref.h: Same.
12897 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12898 * tree-predcom.c: Same.
12899 * tree-scalar-evolution.c (find_var_scev_info): Same.
12900 * tree-ssa-alias.h: Same.
12901 * tree-ssa-ccp.c: Same.
12902 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12903 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12904 (rewrite_mem_refs): Same.
12905 (execute_sm_if_changed): Same.
12906 (hoist_memory_references): Same.
12907 * tree-ssa-loop-ivopts.c (operator<=): Same.
12908 * tree-ssa-loop.h: Same.
12909 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12910 * tree-ssa-structalias.c: Same.
12911 * tree-switch-conversion.h (cluster::cluster): Same.
12912 (simple_cluster::simple_cluster): Same.
12913 * tree-vect-patterns.c (type_conversion_p): Same.
12914 * tree-vectorizer.c (dump_stmt_cost): Same.
12915 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12916 * tree.c (protected_set_expr_location): Same.
12917 * tree.h (desired_pro_or_demotion_p): Same.
12918 (fndecl_built_in_p): Same.
12919 * unique-ptr-tests.cc: Same.
12920 * var-tracking.c (delete_variable_part): Same.
12921 * varasm.c (assemble_real): Same.
12922 (tree_output_constant_def): Same.
12923 * vec.c: Same.
12924 * wide-int-bitmask.h: Same.
12925 * wide-int.h (decompose): Same.
12926
12927 2019-07-09 Richard Biener <rguenther@suse.de>
12928
12929 PR tree-optimization/91114
12930 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12931 find a vector type isn't fatal.
12932
12933 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12934
12935 * config/aarch64/aarch64-simd.md
12936 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12937 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12938 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12939 (*aarch64_crypto_aese_fused,
12940 *aarch64_crypto_aesd_fused): Update to new definition.
12941 * config/aarch64/aarch64.c
12942 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12943
12944 2019-07-09 Richard Biener <rguenther@suse.de>
12945
12946 * gimple-match.h (gimple_match_op::resimplify): New.
12947 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12948 gimple_resimplify4, gimple_resimplify5): Remove.
12949 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12950 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12951 Make static.
12952 (gimple_match_op::resimplify): New.
12953 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12954 according to availability. Use gimple_match_op::resimplify.
12955
12956 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12957
12958 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12959
12960 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12961
12962 * config/arm/crypto.md:
12963 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12964 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12965 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12966 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12967 * config/arm/arm.c
12968 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12969 * config/arm/aarch-common-protos.h
12970 (aarch_crypto_can_dual_issue): Remove.
12971 * config/arm/aarch-common.c
12972 (aarch_crypto_can_dual_issue): Likewise.
12973 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12974 * config/arm/cortex-a53.md: Likewise.
12975 * config/arm/cortex-a57.md: Likewise.
12976 * config/arm/iterators.md:
12977 (CRYPTO_BINARY): Redefine.
12978 (CRYPTO_UNARY): Removed.
12979 (CRYPTO_AES, CRYPTO_AESMC): New.
12980
12981 2019-07-09 Richard Biener <rguenther@suse.de>
12982
12983 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12984 (vn_reference_lookup_3): If the main ref has no access path recorded
12985 but orig_ref has use it to do access-path based disambiguation.
12986 (vn_reference_lookup_pieces): Adjust.
12987 (vn_reference_lookup): Pass down original ref if we valueized.
12988
12989 2019-07-09 Martin Liska <mliska@suse.cz>
12990
12991 * doc/extend.texi: Document influence on loop
12992 optimizers.
12993
12994 2019-07-09 Martin Liska <mliska@suse.cz>
12995
12996 * lto-compress.c (lto_normalized_zstd_level): Do not use
12997 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12998 of libzstd. One can use 0 as a default compression level.
12999
13000 2019-07-09 Martin Liska <mliska@suse.cz>
13001
13002 * doc/invoke.texi: Add link from -fprofile-dir option.
13003 Use better wording for 'gcno filename'.
13004
13005 2019-07-08 Martin Sebor <msebor@redhat.com>
13006
13007 PR middle-end/71924
13008 PR middle-end/90549
13009 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13010 comment.
13011 (args_loc_t): New type.
13012 (args_loc_t, locmap_t): same.
13013 (diag_returned_locals): New function.
13014 (is_addr_local): Same.
13015 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13016 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13017 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13018
13019 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13020
13021 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13022 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13023 and casts in offset when different, both through gimple stmts
13024 and through trees. Rewritten using loops to minimize code duplication
13025 for each operand.
13026
13027 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13028
13029 * emit-rtl.c (set_insn_locations): New function moved from...
13030 * function.c (set_insn_locations): ...here.
13031 * ira-emit.c (emit_moves): Propagate location of the first instruction
13032 to the inserted move instructions.
13033 * reg-stack.c (compensate_edge): Set the location if the sequence is
13034 inserted on the edge.
13035 * rtl.h (set_insn_locations): Declare.
13036
13037 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13038
13039 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13040 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13041 .machine string.
13042
13043 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13044
13045 PR rtl-optimization/88233
13046 * common.opt (fsplit-wide-types-early): New option.
13047 * common/config/rs6000/rs6000-common.c
13048 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13049 OPT_LEVELS_ALL.
13050 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13051 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13052 flag_split_wide_types_early.
13053 (pass_data_lower_subreg3): New.
13054 (pass_lower_subreg3): New.
13055 (make_pass_lower_subreg3): New.
13056 * passes.def (pass_lower_subreg2): Move after the loop passes.
13057 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13058 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13059 the pass pipeline; its previous place is taken by ...
13060 (make_pass_lower_subreg3): ... this.
13061
13062 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13063
13064 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13065 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13066
13067 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13068
13069 * config/s390/constraints.md: Add new jsc constraint.
13070 * config/s390/predicates.md: New predicates.
13071 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13072 * config/s390/s390.c (s390_valid_shift_count): New function.
13073 (print_shift_count_operand): Use s390_valid_shift_count.
13074 (print_operand): Likewise.
13075 * config/s390/s390.md: Use new predicate.
13076 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13077 * config/s390/vector.md: Use new predicate.
13078
13079 2019-07-08 Andrew Waterman <andrew@sifive.com>
13080 Jim Wilson <jimw@sifive.com>
13081
13082 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13083 bitsize instead of BITS_PER_WORD.
13084
13085 2019-07-08 Martin Liska <mliska@suse.cz>
13086
13087 * collect2.c (defined): Revert to before r254460.
13088 (scan_prog_file): Revert to before r254460.
13089
13090 2019-07-08 Richard Biener <rguenther@suse.de>
13091
13092 PR tree-optimization/83518
13093 * tree-ssa-sccvn.c: Include splay-tree.h.
13094 (struct pd_range, struct pd_data): New.
13095 (struct vn_walk_cb_data): Add data to track partial definitions.
13096 (vn_walk_cb_data::~vn_walk_cb_data): New.
13097 (vn_walk_cb_data::push_partial_def): New.
13098 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13099 (vn_reference_lookup_2): When partial defs are registered give up.
13100 (vn_reference_lookup_3): Track partial defs for memset and
13101 constructor zeroing and for defs from constants.
13102
13103 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13104
13105 * doc/install.texi (bootstrap-Og): Document.
13106
13107 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13108
13109 * config/riscv/pic.md (*local_pic_load_s<mode>)
13110 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13111 referenced by <mode>, giving...
13112 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13113 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13114 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13115 use <X:MODE> for the mode attribute.
13116
13117 2019-07-07 Jeff Law <law@redhat.com>
13118
13119 PR tree-optimization/91090
13120 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13121 in handling of ranges to simplify switch statements.
13122
13123 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13124
13125 * config/darwin.c (darwin_override_options): Make a final check on PIC
13126 options.
13127
13128 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13129
13130 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13131 on for kernel code.
13132
13133 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13134
13135 PR target/91068
13136 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13137 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13138 instead of matching them to "l" output operands.
13139
13140 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13141
13142 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13143 and check whether addr.reg is nonnull before using it.
13144
13145 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13146
13147 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13148 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13149 variable(s). For conditional lastprivate look through outer
13150 GIMPLE_OMP_SCAN context.
13151 (lower_omp_1): For conditional lastprivate look through outer
13152 GIMPLE_OMP_SCAN context.
13153
13154 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13155 member to combined_into_simd_safelen1.
13156 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13157 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13158 clauses if ctx->combined_into_simd_safelen1 put statements after the
13159 predicate conditionalized block rather than into it.
13160
13161 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13162
13163 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13164 operand 1.
13165 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13166 Make the choice of <mode> explicit, giving...
13167 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13168
13169 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13170
13171 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13172 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13173 of .md attributes.
13174 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13175 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13176 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13177 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13178 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13179 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13180 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13181 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13182 (*avx512f_scatterdi<mode>): Likewise.
13183 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13184
13185 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13186
13187 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13188 specify the mode iterator referenced by <mode>, giving...
13189 (*push1_h8300hs_<QHI:mode>): ...this.
13190
13191 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13192
13193 * config/gcn/gcn-valu.md
13194 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13195 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13196 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13197 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13198 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13199 but using the _exec comparison patterns.
13200 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13201 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13202 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13203 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13204 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13205 but using the _exec comparison patterns.
13206
13207 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13208
13209 * config/arm/sync.md
13210 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13211 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13212 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13213 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13214 <SIDI:cas_cmp_str>.
13215
13216 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13217
13218 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13219 (maybe_lookup_ctx): Add forward declaration.
13220 (omp_find_scan): Likewise. Walk into body of simd if composited
13221 with worksharing loop.
13222 (scan_omp_simd_scan): New function.
13223 (scan_omp_1_stmt): Call it.
13224 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13225 ctx->for_simd_scan_phase.
13226 (lower_rec_input_clauses): Do much less work for inscan reductions
13227 in ctx->for_simd_scan_phase is_simd regions.
13228 (lower_omp_scan): Set is_simd also on simd constructs composited
13229 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13230 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13231 emit their body after in simd constructs composited with worksharing
13232 loop.
13233 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13234
13235 * omp-low.c (omp_find_scan): Make static.
13236 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13237 the second loop, var2 represents the first partial sum and so needs
13238 to go before rprivb[ivar].
13239
13240 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13241
13242 * config/rs6000/rs6000-logue.c: Remove unused code.
13243
13244 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13245
13246 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13247
13248 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13249
13250 PR target/90712
13251 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13252 check with a frame laid out check.
13253
13254 2019-07-05 Richard Biener <rguenther@suse.de>
13255
13256 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13257 when comparing against a store with possibly the same value.
13258
13259 2019-07-05 Richard Biener <rguenther@suse.de>
13260
13261 PR tree-optimization/91091
13262 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13263 (walk_non_aliased_vuses): Likewise.
13264 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13265 (get_continuation_for_phi): New tbaa_p parameter and pass
13266 it down.
13267 (walk_non_aliased_vuses): Likewise.
13268 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13269 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13270 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13271 Likewise.
13272 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13273 (adjust_offsets_for_equal_base_address): New function.
13274 (vn_reference_lookup_3): Use it to catch more base equivalences.
13275 Handle and pass down tbaa_p flag.
13276 (vn_reference_lookup_pieces): Adjust.
13277 (vn_reference_lookup): Remove alias-set altering, instead pass
13278 down false as tbaa_p.
13279
13280 2019-07-05 Richard Biener <rguenther@suse.de>
13281
13282 PR tree-optimization/91091
13283 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13284 accesses can happen with -fno-strict-aliasing.
13285
13286 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13287
13288 * tree-ssa-alias.c (alias_stats): Add
13289 nonoverlapping_component_refs_since_match_p_must_overlap.
13290 (dump_alias_stats): Print it.
13291 (nonoverlapping_component_refs_since_match_p): Add early exit.
13292 (nonoverlapping_component_refs_p): Do not account early exit.
13293
13294 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13295
13296 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13297 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13298 (emit_eh_dispatch): Delete.
13299 (lower_catch): Emit the eh_dispatch manually and set the location of
13300 the first catch statement onto it.
13301 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13302 (lower_eh_dispatch): Propagate location.
13303 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13304 (eliminate_build): Likewise.
13305
13306 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13307
13308 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13309 phi nodes if possible.
13310 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13311 location info on the newly created statement.
13312 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13313 newly created increment if needed.
13314
13315 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13316
13317 PR middle-end/78884
13318 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13319 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13320 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13321 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13322 ctx->add_safelen1 is set.
13323
13324 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13325 GOMP_loop_start at the start of second worksharing loop in a scan.
13326 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13327 worksharing loop in a scan even if there are conditional lastprivates,
13328 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13329
13330 2019-07-04 Jan Hubicka <jh@suse.cz>
13331
13332 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13333 Fix check for match in the ref walk.
13334
13335 2019-07-04 Martin Liska <mliska@suse.cz>
13336
13337 * tree-ssa-loop-niter.c
13338 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13339 (estimate_numbers_of_iterations):
13340 Support __builtin_expect_with_probability for analysis
13341 of # of loop iterations.
13342
13343 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13344
13345 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13346 * except.c: Likewise.
13347 * expr.c (expand_expr_real_1): Reject it.
13348 * gimplify.c (gimplify_expr): Gimplify it, within
13349 TRY_FINALLY_EXPR.
13350 * tree-dump.c (dequeue_and_dump): Dump it.
13351 * tree-pretty-print.c (dump_generic_node): Likewise.
13352 * tree.c (block_may_fallthru): Handle it.
13353 * tree.def (EH_ELSE_EXPR): Introduce it.
13354 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13355 with GIMPLE_EH_ELSE as try/finally/else.
13356
13357 2019-07-04 Richard Biener <rguenther@suse.de>
13358
13359 PR ipa/91062
13360 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13361 parameter whether to disable GC collection.
13362 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13363 honor it.
13364 (execute_all_ipa_transforms): Likewise and pass it down.
13365 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13366 collection from applying IPA transforms.
13367 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13368 from applying IPA transforms.
13369
13370 2019-07-04 Richard Biener <rguenther@suse.de>
13371
13372 PR tree-optimization/90911
13373 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13374 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13375 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13376 scalar_loop_scaling.
13377 (vect_transform_loop): Scale scalar loop profile if needed.
13378 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13379 the loop copy from if-conversion adjust edge probabilities
13380 and scale the vectorized loop body profile, queue the scalar
13381 profile for updating after peeling.
13382
13383 2019-07-04 Jan Hubicka <jh@suse.cz>
13384
13385 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13386 parameters; return early for must-alias.
13387 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13388 outer types match, try nonoverlapping_component_refs
13389 if must-alias is not obvious.
13390 (indirect_refs_may_alias_p): Likewise.
13391 (refs_may_alias_p_2): Likewise.
13392
13393 2019-07-04 Richard Biener <rguenther@suse.de>
13394
13395 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13396 argument.
13397 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13398 globals into...
13399 (struct vn_walk_cb_data): New callback data struct.
13400 (vn_reference_lookup_2): Adjust.
13401 (vn_reference_lookup_3): Likewise.
13402 (vn_reference_lookup_pieces): Likewise.
13403 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13404 (visit_reference_op_load): Adjust.
13405
13406 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13407
13408 PR tree-optimization/91063
13409 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13410 stmt from stmts sequence before calling vect_init_vector_1.
13411 Formatting fix.
13412
13413 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13414
13415 PR target/88833
13416 * fwprop.c (reg_single_def_p): New function.
13417 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13418 (forward_propagate_into): New parameter reg_prop_only
13419 with default value false.
13420 Propagate def's src into loop only if SET_SRC and SET_DEST
13421 of def_set have single definitions.
13422 Likewise if reg_prop_only is set to true.
13423 (fwprop): New param fwprop_addr_p.
13424 Integrate fwprop_addr into fwprop.
13425 (fwprop_addr): Remove.
13426 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13427 to true.
13428 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13429 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13430 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13431
13432 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13433
13434 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13435 in worksharing loop scans.
13436
13437 PR tree-optimization/91074
13438 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13439 temporary.
13440
13441 PR rtl-optimization/90756
13442 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13443 for VECTOR_TYPE_P.
13444
13445 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13446
13447 * config/aarch64/aarch64.md: Remove redundant constraints from
13448 define_expand but keep some patterns untouched if they are
13449 specially selected by TARGET_SECONDARY_RELOAD hook.
13450 * config/aarch64/aarch64-sve.md: Likewise.
13451 * config/aarch64/atomics.md: Remove redundant constraints from
13452 define_expand.
13453 * config/aarch64/aarch64-simd.md: Likewise.
13454
13455 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13456
13457 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13458 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13459 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13460 clauses.
13461 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13462 DARWIN_NOPIE_SPEC.
13463
13464 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13465
13466 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13467 (STARTFILE_SPEC): Split crt3 into a separate spec.
13468 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13469 (DARWIN_CRT2_SPEC): New.
13470 (DARWIN_CRT3_SPEC): New.
13471 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13472 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13473 (DARWIN_CRT3_SPEC): New.
13474
13475 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13476
13477 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13478 Change the RTL attribute "length" from "4" to "*" to allow the
13479 length attribute to be adjusted automatically for prefixed load,
13480 store, and add immediate instructions.
13481 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13482 Likewise.
13483 (extendsi<mode>2, EXTSI iterator): Likewise.
13484 (movsi_internal1): Likewise.
13485 (movsi_from_sf): Likewise.
13486 (movdi_from_sf_zero_ext): Likewise.
13487 (mov<mode>_internal): Likewise.
13488 (movcc_internal1, QHI iterator): Likewise.
13489 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13490 (movsf_from_si): Likewise.
13491 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13492 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13493 (mov<mode>, FMOVE128 iterator): Likewise.
13494 (movdi_internal64): Likewise.
13495 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13496 Likewise.
13497 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13498 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13499 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13500 (vsx_splat_v4sf): Likewise.
13501
13502 2019-07-03 Mark Wielaard <mark@klomp.org>
13503
13504 PR debug/90981
13505 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13506 DW_AT_addr_base if there is actually a .debug_addr section with
13507 addresses.
13508 (output_addr_table): Add DWARF5 table header generation here after
13509 checking there are actually any addresses from...
13510 (dwarf2out_finish): ...here.
13511
13512 2019-07-03 Richard Biener <rguenther@suse.de>
13513
13514 PR middle-end/91069
13515 * match.pd (vec_perm -> bit_insert): Fix element read from
13516 first vector.
13517
13518 2019-07-03 Martin Liska <mliska@suse.cz>
13519
13520 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13521 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13522 condition.
13523 * generic-match-head.c: Include dbgcnt.h.
13524 * gimple-match-head.c: Likewise.
13525
13526 2019-07-03 Martin Liska <mliska@suse.cz>
13527
13528 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13529 (GCOV_COUNTER_V_TOPN): New.
13530 (GCOV_COUNTER_V_INDIR): Use _topn.
13531 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13532 (GCOV_TOPN_VALUES): New.
13533 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13534 (GCOV_TOPN_VALUES_COUNTERS): New.
13535 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13536 * tree-profile.c:
13537 (gimple_init_gcov_profiler): Rename variables from one_value
13538 to topn_values.
13539 (gimple_gen_one_value_profiler): Remove.
13540 (gimple_gen_topn_values_profiler): New function.
13541 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13542 names instead of SINGLE_VALUE.
13543 (stream_out_histogram_value): Likewise.
13544 (stream_in_histogram_value): Likewise.
13545 (get_most_common_single_value): Likewise.
13546 (gimple_divmod_fixed_value_transform): Likewise.
13547 (gimple_stringops_transform): Likewise.
13548 (gimple_divmod_values_to_profile): Likewise.
13549 (gimple_stringops_values_to_profile): Likewise.
13550 (gimple_find_values_to_profile): Likewise.
13551 * value-prof.h (enum hist_type): Rename to TOPN.
13552 (gimple_gen_one_value_profiler): Remove.
13553 (gimple_gen_topn_values_profiler): New.
13554
13555 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13556
13557 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13558 if it has the DW_AT_data_member_location attribute.
13559
13560 2019-07-03 Richard Biener <rguenther@suse.de>
13561
13562 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13563 dumping.
13564
13565 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13566
13567 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13568 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13569 (tlsdesc_small_sve_<mode>): Likewise.
13570
13571 2019-07-03 Martin Liska <mliska@suse.cz>
13572
13573 * Makefile.in: Define ZSTD_LIB.
13574 * common.opt: Adjust compression level
13575 to support also zstd levels.
13576 * config.in: Regenerate.
13577 * configure: Likewise.
13578 * configure.ac: Add --with-zstd and --with-zstd-include options
13579 and detect ZSTD.
13580 * doc/install.texi: Mention zstd dependency.
13581 * gcc.c: Print supported LTO compression algorithms.
13582 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13583 (lto_compression_zstd): Likewise.
13584 (lto_uncompression_zstd): Likewise.
13585 (lto_end_compression): Dispatch in between zlib and zstd.
13586 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13587 (lto_uncompression_zlib): Make it static.
13588 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13589 * lto-section-in.c (lto_get_section_data): Pass info
13590 about used compression.
13591 * lto-streamer-out.c: By default use zstd when possible.
13592 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13593 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13594
13595 2019-07-03 Martin Liska <mliska@suse.cz>
13596
13597 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13598 * lto-section-out.c (lto_destroy_simple_output_block): Never
13599 compress LTO_section_lto section.
13600 * lto-streamer-out.c (produce_asm): Do not set major_version
13601 and minor_version.
13602 (lto_output_toplevel_asms): Likewise.
13603 (produce_lto_section): New function.
13604 (lto_output): Call produce_lto_section.
13605 (lto_write_mode_table): Do not set major_version and
13606 minor_version.
13607 (produce_asm_for_decls): Likewise.
13608 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13609 type.
13610 (struct lto_header): Remove.
13611 (struct lto_section): New struct.
13612 (struct lto_simple_header): Do not inherit from lto_header.
13613 (struct lto_file_decl_data): Add lto_section_header field.
13614
13615 2019-07-03 Martin Liska <mliska@suse.cz>
13616
13617 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13618 dead assignemts.
13619 * reg-stack.c (check_asm_stack_operands): Likewise.
13620 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13621 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13622 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13623 force_expand_binop.
13624
13625 2019-07-03 Martin Liska <mliska@suse.cz>
13626
13627 PR tree-optimization/90892
13628 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13629 in string constants.
13630
13631 2019-07-03 Martin Liska <mliska@suse.cz>
13632
13633 PR middle-end/90899
13634 * multiple_target.c (create_dispatcher_calls): Add to comdat
13635 group only if set for ifunc.
13636
13637 2019-07-03 Martin Liska <mliska@suse.cz>
13638
13639 PR target/88056
13640 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13641 Define local_object_name in outer scope in order to handle
13642 use-after-scope issue.
13643
13644 2019-07-03 Martin Liska <mliska@suse.cz>
13645
13646 * common.opt: Add fprofile-note.
13647 * coverage.c (coverage_init): Append the option
13648 to bbg_file_name.
13649 * doc/invoke.texi: Document -fprofile-note.
13650
13651 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13652
13653 PR tree-optimization/91033
13654 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13655 vect_analyze_data_refs): Add bool * arguments.
13656 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13657 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13658 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13659 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13660 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13661 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13662 vect_analyze_data_refs caller.
13663
13664 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13665 clause.
13666 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13667 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13668 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13669 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13670 OMP_CLAUSE__SCANTEMP_ entry.
13671 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13672 * tree-pretty-print.c (dump_omp_clause): Likewise.
13673 * tree-nested.c (convert_nonlocal_omp_clauses,
13674 convert_local_omp_clauses): Likewise.
13675 * omp-general.h (struct omp_for_data): Add have_scantemp and
13676 have_nonctrl_scantemp members.
13677 * omp-general.c (omp_extract_for_data): Initialize them.
13678 * omp-low.c (struct omp_context): Add scan_exclusive member.
13679 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13680 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13681 ctx->scan_exclusive.
13682 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13683 of !ctx->scan_inclusive.
13684 (lower_rec_input_clauses): Simplify gimplification of dtors using
13685 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13686 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13687 loops. Don't add barrier for reduction_omp_orig_ref if
13688 ctx->scan_??xclusive.
13689 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13690 (lower_omp_scan): Use ctx->scan_exclusive instead
13691 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13692 reductions. Use new_vard != new_var instead of repeated
13693 omp_is_reference calls.
13694 (omp_find_scan, lower_omp_for_scan): New functions.
13695 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13696 inscan reductions.
13697 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13698 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13699 and fd->have_scantemp.
13700
13701 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13702 on worksharing loop propagate it as shared clause to containing
13703 combined parallel.
13704
13705 * omp-expand.c (expand_omp_for_static_nochunk,
13706 expand_omp_for_static_chunk): For nowait worksharing loop with
13707 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13708 at the end.
13709
13710 2019-07-02 qing zhao <qing.zhao@oracle.com>
13711
13712 PR preprocessor/90581
13713 * doc/cppopts.texi: Add document for -fmax-include-depth.
13714 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13715
13716 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13717
13718 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13719 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13720 (mmx_packssdw): Ditto.
13721 (mmx_punpckhbw): Ditto.
13722 (mmx_punpcklbw): Ditto.
13723 (mmx_punpckhwd): Ditto.
13724 (mmx_punpcklwd): Ditto.
13725 (mmx_punpckhdq): Ditto.
13726 (mmx_punpckldq): Ditto.
13727 (*vec_dupv4hi): Ditto.
13728 (*vec_dupv2si): Ditto.
13729 (mmx_pmovmskb): Ditto.
13730 * config/i386/sse.md (sse_cvtpi2ps): Use
13731 TARGET_SSE2 && SSE_REG_P in split condition.
13732 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13733 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13734 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13735 (ssse3_pshufbv8qi3): Ditto.
13736 (ssse3_palignrdi): Ditto.
13737
13738 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13739
13740 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13741 with inlined save and restore.
13742
13743 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13744
13745 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13746 to be inserted on single successor edge of the entry block. Then call
13747 commit_edge_insertions instead of inserting the instructions manually.
13748 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13749 RTL expansion and rebuild jump labels chain.
13750
13751 2019-07-02 Richard Biener <rguenther@suse.de>
13752
13753 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13754 TI_CHREC_KNOWN.
13755 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13756 Define here.
13757 * tree.c (build_common_tree_nodes): Initialize them.
13758 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13759 Make declarations comments.
13760 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13761 chrec_known): Remove definitions.
13762 (initialize_scalar_evolutions_analyzer): Remove.
13763 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13764 * tree-streamer.c (preload_common_nodes): Do not preload
13765 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13766
13767 2019-07-02 Jan Hubicka <jh@suse.cz>
13768
13769 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13770 sanity check.
13771
13772 2019-07-02 Jan Hubicka <jh@suse.cz>
13773
13774 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13775 to ..
13776 (nonoverlapping_component_refs_since_match_p): ... this one;
13777 handle also non-decl bases; return -1 if search gave up.
13778 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13779 nonoverlapping_component_refs_of_decl_p_no_alias to
13780 nonoverlapping_component_refs_since_match_p_may_alias,
13781 nonoverlapping_component_refs_since_match_p_no_alias.
13782 (dump_alias_stats): Update dumping.
13783 (aliasing_matching_component_refs_p): Break out from ...;
13784 dispatch to nonoverlapping_component_refs_for_decl_p
13785 and nonoverlapping_component_refs_since_match_p.
13786 (aliasing_component_refs_p): ... here; call
13787 nonoverlapping_component_refs_p in scenarios where we can not
13788 precisely determine base match.
13789 (decl_refs_may_alias_p): Use
13790 nonoverlapping_component_refs_since_match_p.
13791 (indirect_ref_may_alias_decl_p): Do not call
13792 nonoverlapping_component_refs_p.
13793 (indirect_refs_may_alias_p): Likewise.
13794
13795 2019-07-02 Jan Hubicka <jh@suse.cz>
13796
13797 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13798 to clobber of return value.
13799
13800 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13801
13802 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13803 for is_neon_type instructions that have not already been categorized.
13804
13805 2019-07-02 Richard Biener <rguenther@suse.de>
13806
13807 PR tree-optimization/58483
13808 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13809 for MEM_REF base hashing.
13810 (equal_mem_array_ref_p): Likewise for base comparison.
13811
13812 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13813
13814 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13815 parameterized name.
13816 (signbit<mode>2): Use that name. Simplify.
13817
13818 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13819
13820 PR middle-end/66726
13821 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13822 Tune heuristic from PR71016 to allow MIN / MAX.
13823
13824 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13825
13826 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13827 parameterized name.
13828 (abs<mode>2): Use that name. Simplify.
13829
13830 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13831
13832 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13833 parameterized name.
13834 (neg<mode>2): Use that name. Simplify.
13835
13836 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13837
13838 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13839 name.
13840 (abs<mode>2): Use that name. Simplify.
13841
13842 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13843
13844 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13845 name.
13846 (neg<mode>2): Use that name. Simplify.
13847
13848 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13849
13850 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13851 ("enabled" attribute): Handle sse_noavx isa attribute.
13852 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13853 Use TARGET_SSE && SSE_REGNO_P in split condition.
13854 (*vec_dupv2sf): Ditto.
13855
13856 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13857
13858 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13859 name.
13860 (floatsi<mode>2): Use that name. Simplify.
13861
13862 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13863
13864 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13865 parameterized name.
13866 (extenddf<mode>2_vsx): Make this a parameterized name.
13867 (extenddf<mode>2): Use those names. Simplify.
13868
13869 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13870
13871 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13872 name.
13873 (eh_return): Use that name. Simplify.
13874
13875 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13876
13877 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13878 (doloop_end): Use that name. Simplify.
13879
13880 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13881
13882 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13883 parameterized name.
13884 (indirect_jump): Use that name. Simplify.
13885
13886 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13887
13888 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13889 parameterized name.
13890 (abs<mode>2): Use that name. Simplify.
13891
13892 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13893
13894 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13895 parameterized name.
13896 (fix_trunc<mode>si2): Use that name. Simplify.
13897
13898 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13899
13900 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13901 (allocate_stack): Use that name. Simplify.
13902
13903 2019-07-01 Martin Sebor <msebor@redhat.com>
13904
13905 PR middle-end/90923
13906 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13907 (hash_map::get_or_insert): Same. Reformat comment.
13908 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13909 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13910 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13911 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13912 (hash_table::hash_table (const hash_table&)): Use copy ctor
13913 instead of assignment to copy elements.
13914
13915 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13916 John David Anglin <danglin@gcc.gnu.org>
13917
13918 PR target/90963
13919 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13920 using saved frame pointer.
13921
13922 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13923
13924 PR middle-end/64242
13925 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13926 Add frame clobber and schedule blockage.
13927
13928 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13929
13930 * doc/invoke.texi (Link Options): Further editorial changes to
13931 -flinker-output docs.
13932
13933 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13934
13935 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13936 Load both operands of a PLUS into registers separately.
13937
13938 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13939
13940 * config/s390/vector.md: Fix shift count operand printing.
13941
13942 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13943
13944 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13945
13946 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13947
13948 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13949 Use recog_data to test for an output operand.
13950
13951 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13952
13953 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13954 exclude any others that are disparaged or that are bound to need
13955 a reload or spill.
13956 (ira_get_dup_out_num): Expand comment.
13957
13958 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13959
13960 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13961 constraint string for each operand/alternative combo. Only handle
13962 '%' at the start of constraint strings, and look for it outside
13963 the main loop.
13964
13965 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13966
13967 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13968 alternative_mask instead of HARD_REG_SET to represent a
13969 bitmask of alternatives.
13970 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13971 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13972
13973 2019-07-01 Martin Liska <mliska@suse.cz>
13974
13975 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13976 use () for a constructor call.
13977 (test_applying_fixits_line_out_of_range): Likewise.
13978 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13979 argument.
13980 (free_page): Likewise.
13981
13982 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13983
13984 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13985 parameter names to match usage (no functional change).
13986 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13987
13988 2019-07-01 Richard Biener <rguenther@suse.de>
13989
13990 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13991 pass parameter.
13992 (pass_fre::execute): Honor it.
13993 * passes.def: Adjust pass_fre invocations to allow iterating,
13994 add non-iterating pass_fre before late threading/dom.
13995
13996 2019-07-01 Richard Biener <rguenther@suse.de>
13997
13998 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13999 TARGET_MEM_REF handling to also handle address-taken ones.
14000
14001 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14002
14003 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14004 hardware attributes): Document avx512vp2intersect.
14005
14006 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14007
14008 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14009 (abs<mode>2): New expander.
14010 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14011 Use CODE_FOR_ssse3_absv8qi2.
14012 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14013 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14014
14015 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14016
14017 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14018 to sse, sse_noavx and avx. Update all uses.
14019
14020 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14021
14022 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14023 (*mmx_<plusminus_insn><mode>3): Ditto.
14024 (*mmx_mulv4hi3"): Ditto.
14025 (*mmx_smulv4hi3_highpart): Ditto.
14026 (*mmx_umulv4hi3_highpart): Ditto.
14027 (*mmx_pmaddwd): Ditto.
14028 (*sse2_umulv1siv1di3): Ditto.
14029 (*mmx_<code>v4hi3): Ditto.
14030 (*mmx_<code>v8qi3): Ditto.
14031 (mmx_ashr<mode>3): Ditto.
14032 ("mmx_<shift_insn><mode>3): Ditto.
14033 (*mmx_eq<mode>3): Ditto.
14034 (mmx_gt<mode>3): Ditto.
14035 (mmx_andnot<mode>3): Ditto.
14036 (*mmx_<code><mode>3): Ditto.
14037 (*mmx_pinsrw): Ditto.
14038 (*mmx_pextrw): Ditto.
14039 (mmx_pshufw_1): Ditto.
14040 (*mmx_uavgv8qi3): Ditto.
14041 (*mmx_uavgv4hi3): Ditto.
14042 ("mmx_psadbw): Ditto.
14043 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14044 (sse_cvttps2pi): Ditto.
14045 (ssse3_pmaddubsw): Ditto.
14046 (*ssse3_pmulhrswv4hi3): Ditto.
14047 (ssse3_psign<mode>3): Ditto.
14048
14049 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14050
14051 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14052 adjustment for bit-fields to all aggregate types.
14053
14054 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14055
14056 * config/rs6000/predicates.md (pcrel_address): Use
14057 SYMBOL_REF_LOCAL_P to determine if a label is local.
14058 (pcrel_external_address): New predicate.
14059 (non_prefixed_mem_operand): Delete, predicate not used.
14060 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14061 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14062 addressing.
14063 (SYMBOL_REF_PCREL_P): Likewise.
14064
14065 PR target/91009
14066 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14067 alternative.
14068 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14069 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14070 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14071
14072 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14073
14074 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14075 override on extra_headers.
14076
14077 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14078
14079 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14080 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14081 from warning.
14082 (darwin_driver_init): Likewise.
14083
14084 2019-06-28 Jan Beulich <jbeulich@suse.com>
14085
14086 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14087 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14088 Eliminate redundant alternative.
14089
14090 2019-06-28 Jan Beulich <jbeulich@suse.com>
14091
14092 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14093 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14094 Use vector_operand.
14095
14096 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14097
14098 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14099 having a lower cost regardless of the speed option.
14100
14101 2019-06-28 Jan Beulich <jbeulich@suse.com>
14102
14103 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14104 vector_operand plus, on both alternatives, "Bm" constraint.
14105
14106 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14107
14108 * config/arm/arm.md: Remove redundant constraints from
14109 define_expand but leave reload_inm and reload_outm patterns
14110 untouched since they need special constraints to work.
14111 * config/arm/arm-fixed.md: Remove redundant constraints from
14112 define_expand.
14113 * config/arm/iwmmxt.md: Likewise.
14114 * config/arm/neon.md: Likewise.
14115 * config/arm/sync.md: Likewise.
14116 * config/arm/thumb1.md: Likewise.
14117 * config/arm/vec-common.md: Likewise.
14118
14119 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14120
14121 * doc/install.texi: Document --disable-tm-clone-registry.
14122
14123 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14124
14125 PR c++/91024
14126 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14127 statements.
14128
14129 PR tree-optimization/91010
14130 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14131 return true. Otherwise, don't call operand_equal_p if offset1 or
14132 offset2 is NULL and just return false.
14133
14134 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14135
14136 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14137 user-specified float mode choice for kernel mode code.
14138
14139 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14140
14141 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14142 spec.
14143
14144 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14145
14146 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14147 use longcall for 64b code.
14148
14149 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14150
14151 * builtins.c (get_memory_rtx): Fix comment.
14152 * optabs.def (movmem_optab): Change to cpymem_optab.
14153 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14154 (emit_block_move_hints): Change movmem to cpymem.
14155 * defaults.h: Change movmem to cpymem.
14156 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14157 (default_use_by_pieces_infrastructure_p): Ditto.
14158 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14159 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14160 to cpymem.
14161 * config/aarch64/aarch64.h: Change movmem to cpymem.
14162 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14163 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14164 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14165 movmem to cpymem.
14166 * config/arc/arc-protos.h: Change movmem to cpymem.
14167 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14168 * config/arc/arc.h: Change movmem to cpymem in comment.
14169 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14170 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14171 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14172 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14173 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14174 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14175 * config/avr/avr-protos.h: Change movmem to cpymem.
14176 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14177 avr_out_movmem): Change movmem to cpymem.
14178 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14179 Change movmem to cpymem.
14180 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14181 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14182 Change movmem to cpymem.
14183 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14184 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14185 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14186 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14187 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14188 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14189 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14190 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14191 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14192 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14193 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14194 expand_small_cpymem_or_setmem,
14195 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14196 expand_set_or_cpymem_constant_prologue,
14197 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14198 * config/i386/i386-protos.h: Change movmem to cpymem.
14199 * config/i386/i386.h: Change movmem to cpymem in comment.
14200 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14201 (setmem<mode>): Change expansion function name.
14202 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14203 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14204 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14205 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14206 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14207 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14208 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14209 to cpymem.
14210 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14211 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14212 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14213 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14214 Change movmem to cpymem.
14215 * config/mips/mips.h: Change movmem to cpymem.
14216 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14217 * config/nds32/nds32-memory-manipulation.c
14218 (nds32_expand_movmemsi_loop_unknown_size,
14219 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14220 nds32_expand_movmemsi_unroll,
14221 nds32_expand_movmemsi): Change movmem to cpymem.
14222 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14223 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14224 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14225 (pa_adjust_insn_length): Change call to compute_movmem_length.
14226 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14227 movmemdi, movmemdi_prereload,
14228 movmemdi_postreload): Change movmem to cpymem.
14229 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14230 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14231 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14232 * config/riscv/riscv.h: Change movmem to cpymem.
14233 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14234 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14235 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14236 movmem to cpymem.
14237 * config/s390/s390-protos.h: Change movmem to cpymem.
14238 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14239 s390_expand_insv): Change movmem to cpymem.
14240 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14241 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14242 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14243 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14244 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14245 for nonexistent function.
14246 * config/vax/vax.h: Change movmem to cpymem in comment.
14247 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14248 * config/visium/visium.h: Change movmem to cpymem in comment.
14249 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14250 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14251 * doc/md.texi: Change movmem to cpymem and update description to match.
14252 * doc/rtl.texi: Change movmem to cpymem.
14253 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14254 * doc/tm.texi: Regenerate.
14255
14256 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14257
14258 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14259 -fvariable-expansion-in-unroller by default.
14260 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14261 default for Power.
14262
14263 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14264
14265 Revert
14266 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14267 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14268
14269 * config.gcc(rs6000-*-*): Define target_gtfiles.
14270
14271 2019-06-27 Jan Hubicka <jh@suse.cz>
14272
14273 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14274 (add_type_duplicate): When odr hash is not allocated, to nothing.
14275 (odr_based_tbaa_p): New function.
14276 (set_type_canonical_for_odr_type): New function.
14277 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14278 set_type_canonical_for_odr_type): New.
14279 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14280 ODR based TBAA are not equivalent to non-ODR types.
14281
14282 2019-06-27 Martin Liska <mliska@suse.cz>
14283
14284 PR tree-optimization/90974
14285 PR rtl-optimization/90975
14286 PR rtl-optimization/90976
14287 PR target/91016
14288 PR tree-optimization/91017
14289 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14290 unused tmp.
14291 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14292 initial commit of IRA.
14293 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14294 of op0 and op1.
14295 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14296 Remove unused mode1.
14297 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14298 to new_stmt_info.
14299
14300 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14301
14302 PR target/90991
14303 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14304 instead of register_operand for operands[1], add m to its constraints
14305 if operands[2] uses "C" constraint. Ensure in condition that if
14306 operands[2] is not 0, then operands[1] is not a MEM. For last two
14307 alternatives, use unaligned loads instead of aligned if operands[1] is
14308 misaligned_operand.
14309
14310 2019-06-27 Martin Liska <mliska@suse.cz>
14311
14312 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14313 dead assignments.
14314 * bt-load.c (move_btr_def): Likewise.
14315 * builtins.c (expand_builtin_apply_args_1): Likewise.
14316 (expand_builtin_apply): Likewise.
14317 * cfgexpand.c (expand_asm_stmt): Likewise.
14318 (construct_init_block): Likewise.
14319 * cfghooks.c (verify_flow_info): Likewise.
14320 * cfgloopmanip.c (remove_path): Likewise.
14321 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14322 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14323 * combine.c (simplify_if_then_else): Likewise.
14324 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14325 (choose_basereg): Likewise.
14326 (ix86_expand_prologue): Likewise.
14327 (ix86_preferred_output_reload_class): Likewise.
14328 * cselib.c (cselib_record_sets): Likewise.
14329 * df-scan.c (df_scan_alloc): Likewise.
14330 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14331 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14332 * emit-rtl.c (try_split): Likewise.
14333 * graphite-scop-detection.c (assign_parameter_index_in_region):
14334 Likewise.
14335 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14336 * ira-color.c (setup_profitable_hard_regs): Likewise.
14337 * ira.c (rtx_moveable_p): Likewise.
14338 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14339 * read-rtl.c (read_subst_mapping): Likewise.
14340 * regrename.c (scan_rtx): Likewise.
14341 * reorg.c (fill_slots_from_thread): Likewise.
14342 * tree-inline.c (tree_function_versioning): Likewise.
14343 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14344 * tree-ssa-sink.c (statement_sink_location): Likewise.
14345 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14346 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14347 (vect_create_epilog_for_reduction): Likewise.
14348 * tree.c (build_nonstandard_integer_type): Likewise.
14349
14350 2019-06-27 Richard Biener <rguenther@suse.de>
14351
14352 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14353
14354 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14355
14356 PR tree-optimization/89772
14357 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14358 out-of-bound accesses checking.
14359
14360 2019-06-27 Martin Liska <mliska@suse.cz>
14361
14362 PR tree-optimization/91014
14363 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14364 when LHS is NULL_TREE.
14365
14366 2019-06-27 Martin Liska <mliska@suse.cz>
14367
14368 * symbol-summary.h (traverse): Pass
14369 argument a to the call of callback.
14370 (gt_ggc_mx): Mark arguments as unused.
14371 (gt_pch_nx): Likewise.
14372
14373 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14374
14375 PR target/62147
14376 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14377 finiteness.
14378
14379 2019-06-26 Jeff Law <law@redhat.com>
14380
14381 PR tree-optimization/90883
14382 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14383 (delete_dead_or_redundant_assignment): Likewise.
14384
14385 PR tree-optimization/90883
14386 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14387 * tree-ssa-dse.c: Update various comments to distinguish between
14388 dead and redundant stores.
14389 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14390 (dse_optimize_redundant_stores): New function.
14391 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14392 Distinguish between dead and redundant calls in dump output. All
14393 callers updated.
14394 (delete_dead_or_redundant_assignment): Similarly for assignments.
14395 (dse_optimize_stmt): Handle _CHK variants. For statements which
14396 store 0 into multiple memory locations, try to prove a subsequent
14397 store is redundant.
14398
14399 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14400
14401 PR target/89021
14402 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14403 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14404
14405 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14406
14407 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14408 (branch_islands): New extern.
14409 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14410 * config/rs6000/rs6000.c: .. here.
14411
14412 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14413
14414 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14415 (powerpc*-*-*) ... to here.
14416
14417 2019-06-26 Jeff Law <law@redhat.com>
14418
14419 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14420 memcpy, memmove and memset builtins.
14421 (maybe_trim_memstar_call): Likewise.
14422
14423 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14424
14425 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14426
14427 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14428
14429 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14430
14431 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14432
14433 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14434 declaration.
14435 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14436 "static".
14437 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14438 declaration.
14439
14440 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14441
14442 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14443
14444 2019-06-26 Richard Biener <rguenther@suse.de>
14445
14446 PR ipa/90982
14447 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14448
14449 2019-06-26 Richard Biener <rguenther@suse.de>
14450
14451 * lto-streamer.h (lto_bitmap_alloc): Remove.
14452 (lto_bitmap_free): Likewise.
14453 * lto-streamer.c (lto_bitmap_alloc): Remove.
14454 (lto_bitmap_free): Likewise.
14455 (lto_obstack): Likewise.
14456 (lto_obstack_initialized): Likewise.
14457 * lto-streamer-out.c (lto_output): Use own obstack for local
14458 bitmap, free it consistently.
14459
14460 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14461
14462 PR target/90991
14463 * config/i386/sse.md
14464 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14465 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14466 insns if operands[2] is misaligned_operand.
14467
14468 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14469
14470 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14471 TARGET_POWERPC64.
14472 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14473 to GPR.
14474
14475 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14476
14477 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14478
14479 2019-06-26 Martin Liska <mliska@suse.cz>
14480
14481 PR tree-optimization/90973
14482 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14483 epilogue_cost_vec instead of prologue_cost_vec for
14484 a epilogue cost.
14485
14486 2019-06-26 Martin Liska <mliska@suse.cz>
14487
14488 * bb-reorder.c (connect_better_edge_p): Add missing else
14489 statement in the middle of if-else statements.
14490
14491 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14492 H.J. Lu <hongjiu.lu@intel.com>
14493 Olga Makhotina <olga.makhotina@intel.com>
14494
14495 * common/config/i386/i386-common.c
14496 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14497 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14498 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14499 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14500 (ix86_handle_option): Handle -mavx512vp2intersect.
14501 * config/i386/avx512vp2intersectintrin.h: New.
14502 * config/i386/avx512vp2intersectvlintrin.h: New.
14503 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14504 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14505 AVX512VP2INTERSECT.
14506 * config/i386/i386-builtin-types.def: Add new types.
14507 * config/i386/i386-builtin.def: Add new builtins.
14508 * config/i386/i386-builtins.c: (enum processor_features): Add
14509 F_AVX512VP2INTERSECT.
14510 (static const _isa_names_table isa_names_table): Ditto.
14511 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14512 __AVX512VP2INTERSECT__.
14513 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14514 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14515 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14516 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14517 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14518 * config/i386/i386-options.c (ix86_target_string): Add
14519 -mavx512vp2intersect.
14520 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14521 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14522 P2HImode and P2QImode.
14523 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14524 number for P2QImode and P2HImode.
14525 (ix86_regmode_natural_size): New function.
14526 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14527 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14528 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14529 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14530 * config/i386/i386.opt: Add -mavx512vp2intersect.
14531 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14532 avx512vp2intersectvlintrin.h.
14533 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14534 (define_mode_iterator VI48_AVX512VP2VL): New.
14535 (avx512vp2intersect_2intersect<mode>,
14536 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14537 * config.gcc: Add avx512vp2intersectvlintrin.h and
14538 avx512vp2intersectintrin.h to extra_headers.
14539 * doc/invoke.texi: Document -mavx512vp2intersect.
14540
14541 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14542
14543 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14544
14545 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14546
14547 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14548 savres_routine_syms, savres_routine_name, morestack_ref,
14549 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14550 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14551 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14552 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14553 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14554 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14555 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14556 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14557 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14558 get_stack_clash_protection_probe_interval,
14559 get_stack_clash_protection_guard_size,
14560 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14561 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14562 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14563 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14564 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14565 gen_frame_mem_offset, rs6000_savres_routine_name,
14566 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14567 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14568 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14569 rs6000_global_entry_point_prologue_needed_p,
14570 rs6000_get_separate_components, rs6000_components_for_bb,
14571 rs6000_disqualify_components, rs6000_emit_prologue_components,
14572 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14573 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14574 rs6000_output_savres_externs, rs6000_output_function_prologue,
14575 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14576 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14577 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14578 rs6000_output_function_epilogue, gen_add3_const,
14579 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14580 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14581 to rs6000-logue.c.
14582 (machine_function): Moved to rs6000.h.
14583 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14584 rs6000-internal.h.
14585 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14586 savres_routine_syms, savres_routine_name, morestack_ref,
14587 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14588 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14589 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14590 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14591 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14592 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14593 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14594 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14595 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14596 get_stack_clash_protection_probe_interval,
14597 get_stack_clash_protection_guard_size,
14598 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14599 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14600 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14601 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14602 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14603 gen_frame_mem_offset, rs6000_savres_routine_name,
14604 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14605 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14606 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14607 rs6000_global_entry_point_prologue_needed_p,
14608 rs6000_get_separate_components, rs6000_components_for_bb,
14609 rs6000_disqualify_components, rs6000_emit_prologue_components,
14610 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14611 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14612 rs6000_output_savres_externs, rs6000_output_function_prologue,
14613 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14614 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14615 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14616 rs6000_output_function_epilogue, gen_add3_const,
14617 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14618 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14619 to here from rs6000.c.
14620 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14621 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14622 quad_address_offset_p) Moved to here from rs6000.c.
14623 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14624 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14625 collector.
14626
14627 2019-06-25 Martin Liska <mliska@suse.cz>
14628
14629 * hash-table.c (hashtab_chk_error): Move here from ...
14630 * hash-table.h (hashtab_chk_error): ... here.
14631
14632 2019-06-25 Martin Liska <mliska@suse.cz>
14633
14634 PR tree-optimization/90978
14635 * df-scan.c (df_update_entry_block_defs): Remove dead else
14636 branch.
14637 (df_update_exit_block_uses): Likewise.
14638
14639 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14640 Andrew Stubbs <ams@codesourcery.com>
14641
14642 * config.gcc (thread_file): Set to gcn for AMD GCN.
14643 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14644 (TARGET_EMUTLS_VAR_INIT): New hook.
14645
14646 2019-06-25 Martin Jambor <mjambor@suse.cz>
14647
14648 PR ipa/90939
14649 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14650
14651 2019-06-25 Richard Biener <rguenther@suse.de>
14652
14653 PR tree-optimization/90930
14654 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14655 into parallel form in the last pass instance.
14656
14657 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14658
14659 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14660 (arc_legitimize_pic_address): Simplify and cleanup the function.
14661 (SYMBOLIC_CONST): Remove.
14662 (prepare_pic_move): Likewise.
14663 (prepare_move_operands): Handle complex mov cases here.
14664 (arc_legitimize_address_0): Remove call to
14665 arc_legitimize_pic_address.
14666 (arc_legitimize_address): Remove call to
14667 arc_legitimize_tls_address.
14668 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14669 (movhi_insn): Likewise.
14670
14671 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14672
14673 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14674 PTRDIFF_TYPE.
14675 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14676 format of "__intN" types for UINTMAX_TYPE.
14677 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14678 format of "__intN" types for SIZETYPE.
14679 * tree.c (build_common_tree_nodes): Accept "__intN__"
14680 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14681 * doc/invoke.texi: Document that __intN__ disables pedantic
14682 warnings.
14683
14684 2019-06-25 Jan Hubicka <jh@suse.cz>
14685
14686 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14687 base2_alias_set is non-zero before doing TBAA based disambiguation.
14688
14689 2019-06-25 Martin Liska <mliska@suse.cz>
14690
14691 PR tree-optimization/90973
14692 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14693 of prologue and epilogue.
14694
14695 2019-06-24 Jan Hubicka <jh@suse.cz>
14696
14697 * ipa-utils.h (type_with_linkage_p): Verify that type is
14698 CXX_ODR_P.
14699 (odr_type_p): Remove extra return.
14700 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14701 hash STRING_FLAG only for arrays and integers.
14702 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14703 Update analogously.
14704 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14705 Likewise.
14706 * print-tree.c (print_node): Print cxx-odr-p
14707 and string-flag.
14708 * tree.c (need_assembler_name_p): Also check that type
14709 is CXX_ODR_TYPE_P
14710 (verify_type_variant): Update verification of SRING_FLAG;
14711 also check CXX_ODR_P.
14712 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14713 (TYPE_STRING_FLAG): Use it.
14714 (TYPE_CXX_ODR_P): New macro.
14715 * dwarf2out.c (gen_array_type_die): First check that type
14716 is an array and then test string flag.
14717
14718 2019-06-24 Richard Biener <rguenther@suse.de>
14719
14720 PR tree-optimization/90972
14721 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14722 in common code, dealing with STRING_CST properly.
14723
14724 2019-06-24 Richard Biener <rguenther@suse.de>
14725
14726 PR tree-optimization/90930
14727 PR tree-optimization/90316
14728 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14729 decrement of limit.
14730
14731 2019-06-24 Martin Sebor <msebor@redhat.com>
14732
14733 * tree-pretty-print.h: Remove unnecessary punctuation characters
14734 from a diagnostic.
14735 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14736
14737 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14738
14739 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14740 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14741 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14742
14743 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14744
14745 * config/rs6000/darwin.h: Handle GCC target pragma.
14746
14747 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14748
14749 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14750
14751 2019-06-22 Jeff Law <law@redhat.com>
14752
14753 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14754
14755 2019-06-22 Jan Hubicka <jh@suse.cz>
14756
14757 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14758 give up on bitfields; continue searching for different refs
14759 appearing later.
14760
14761 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14762
14763 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14764 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14765 containing the offset as possible simd lane access. Look through
14766 widening conversion. Move the
14767 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14768
14769 2019-06-21 Richard Biener <rguenther@suse.de>
14770
14771 PR tree-optimization/90930
14772 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14773 flag on new stmts to avoid re-processing them.
14774
14775 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14776
14777 PR c++/90875 - added -Wswitch-outside-range option
14778 * doc/invoke.texi (Wswitch-outside-range): Document.
14779
14780 2019-06-21 Jeff Law <law@redhat.com>
14781
14782 PR tree-optimization/90949
14783 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14784 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14785
14786 2019-06-21 Richard Biener <rguenther@suse.de>
14787
14788 PR debug/90914
14789 * dwarf2out.c (prune_unused_types_walk): Always consider
14790 function-local extern declarations as used.
14791
14792 2019-06-21 Richard Biener <rguenther@suse.de>
14793
14794 PR tree-optimization/90913
14795 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14796 the scalar variant of if-conversion versioning.
14797
14798 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14799
14800 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14801 create another "omp scan inscan exclusive" array if
14802 !ctx->scan_inclusive.
14803 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14804 (lower_omp_scan): Likewise.
14805 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14806 2-bit bitfield for simd_lane_access_p member.
14807 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14808 aux == (void *)-4 as simd lane access.
14809 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14810 comment with permutations to show the canonical permutation order.
14811 (vectorizable_scan_store): Handle exclusive scan.
14812 (vectorizable_store): Call vectorizable_scan_store even for
14813 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14814
14815 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14816 "omp simd array" arrays with one byte elements.
14817
14818 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14819
14820 * config/alpha/alpha.md (@unaligned_store<mode>):
14821 Rename from unaligned_store<mode>.
14822 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14823 * config/alpha/sync.md (@load_locked_<mode>): Rename
14824 from load_locked_<mode>.
14825 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14826 (@atomic_compare_and_swap<mode>_1): Rename
14827 from atomic_compare_and_swap<mode>_1.
14828 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14829 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14830 Use gen_reload_in_aligned and gen_unaligned_store.
14831 (emit_load_locked): Remove.
14832 (emit_store_conditional): Ditto.
14833 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14834 (alpha_split_compare_and_swap): Ditto.
14835 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14836 (alpha_split_compare_and_swap_12): Use gen_load_locked
14837 and gen_store_conditional.
14838 (alpha_split_atomic_exchange): Ditto.
14839 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14840 (alpha_split_atomic_exchange_12): Use gen_load_locked
14841 and gen_store_conditional.
14842
14843 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14844
14845 * config/aarch64/aarch64-errata.h: New file.
14846 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14847 (CA53_ERR_843419_SPEC): Delete.
14848 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14849 * config/aarch64/aarch64-linux.h: Likewise.
14850 * config/aarch64/aarch64-netbsd.h: Likewise.
14851 * config/aarch64/aarch64-freebsd.h: Likewise.
14852
14853 2019-06-20 Marek Polacek <polacek@redhat.com>
14854
14855 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14856
14857 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14858
14859 * config/rs6000/rs6000.md (isa attribute): Add support for
14860 for a future processor.
14861
14862 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14863
14864 PR target/54855
14865 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14866 standard scalar operation pattern for V2DF.
14867 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14868 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14869 (*ieee_<ieee_maxmin><mode>3): Likewise.
14870 (vec_setv2df_0): Likewise.
14871
14872 2019-06-20 Jan Hubicka <jh@suse.cz>
14873
14874 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14875 parameter; it has no use in gimple memory model.
14876 (indirect_ref_may_alias_decl_p): Update.
14877
14878 2019-06-20 Martin Liska <mliska@suse.cz>
14879
14880 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14881 to 10.
14882
14883 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14884
14885 * tree-vect-stmts.c (enum scan_store_kind): New type.
14886 (scan_store_can_perm_p): Change last argument from int * to
14887 vec<enum scan_store_kind> *, record precisely which permutations
14888 need whole vector left shift or that plus VEC_COND_EXPR.
14889 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14890 and additional VEC_COND_EXPR only for those iterations that need it.
14891
14892 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14893
14894 * config.gcc: Fix ARM --with-fpu checking and error message.
14895
14896 2019-06-19 Marek Polacek <polacek@redhat.com>
14897
14898 PR c++/60364 - noreturn after first decl not diagnosed.
14899 * attribs.c (get_attribute_namespace): No longer static.
14900 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14901 attributes.
14902 (attr_noreturn_exclusions): Make it extern.
14903 * attribs.h (get_attribute_namespace): Declare.
14904 * tree-inline.c (function_attribute_inlinable_p): Use
14905 get_attribute_name.
14906
14907 2019-06-19 Martin Sebor <msebor@redhat.com>
14908
14909 PR tree-optimization/90626
14910 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14911
14912 PR tree-optimization/90626
14913 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14914 (handle_builtin_string_cmp): Call it.
14915
14916 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14917
14918 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14919 and DARWIN_NOPIE_SPEC.
14920 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14921 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14922 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14923 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14924 (DARWIN_EXPORT_DYNAMIC): Delete.
14925 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14926 and pie options processing to darwin.h.
14927 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14928
14929 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14930
14931 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14932 in computing the number of options to be moved.
14933
14934 2019-06-19 Maya Rashish <coypu@sdf.org>
14935
14936 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14937 (CLEAR_INSN_CACHE) Use it.
14938
14939 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14940
14941 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14942
14943 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14944
14945 PR middle-end/84521
14946 * builtins.c (expand_builtin_setjmp_setup): Save
14947 hard_frame_pointer_rtx.
14948 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14949 restore fp.
14950 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14951 non-local goto.
14952 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14953 elimination code.
14954 (remove_reg_equal_offset_note): Remove unused function.
14955 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14956 code.
14957 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14958 (arc_builtin_setjmp_frame_value): Remove function.
14959 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14960 (avr_builtin_setjmp_frame_value): Remove function.
14961 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14962 (ix86_builtin_setjmp_frame_value): Remove function.
14963 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14964 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14965 (sparc_builtin_setjmp_frame_value): Remove function.
14966 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14967 (vax_builtin_setjmp_frame_value): Remove function.
14968 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14969 pointer if has_nonlocal_label.
14970
14971 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14972
14973 * doc/md.texi: Document vec_shl_<mode> pattern.
14974 * optabs.def (vec_shl_optab): New optab.
14975 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14976 argument, if == vec_shl_optab, check for left whole vector shift
14977 pattern rather than right shift.
14978 (expand_vec_perm_const): Add vec_shl_optab support.
14979 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14980 in the comment.
14981 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14982 can be handled by vec_shl_optab.
14983 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14984 (check_scan_store): Use it.
14985 (vectorizable_scan_store): If target can't do normal permutations,
14986 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14987 after it.
14988 * config/i386/sse.md (vec_shl_<mode>): New expander.
14989
14990 * omp-low.c (lower_rec_input_clauses): Handle references properly
14991 in inscan clauses.
14992 (lower_omp_scan): Likewise.
14993
14994 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14995
14996 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14997 mem_mode is BLKmode.
14998
14999 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15000
15001 PR target/90922
15002 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15003 pointer adjustment for the case of no callee-saved registers and
15004 stack frame bigger than 128 bytes.
15005
15006 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15007
15008 PR middle-end/90862
15009 * omp-low.c (check_omp_nesting_restrictions): Handle
15010 GF_OMP_TARGET_KIND_OACC_DECLARE.
15011
15012 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15013
15014 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15015 (@add<mode>3_carry): Rename from add<mode>3_carry.
15016 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15017 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15018 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15019 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15020 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15021 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15022 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15023 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15024 (cmpstrnsi): Use gen_cmp_1.
15025 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15026 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15027 (@umonitor_<mode>): Rename from umonitor_<mode>.
15028 * config/i386/i386-expand.c (ix86_expand_copysign):
15029 Use gen_copysign3_const and gen_copysign3_var.
15030 (ix86_expand_xorsign): Use gen_xorsign3_1.
15031 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15032 gen_sub3_carry_ccgz and gen_cmp1.
15033 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15034 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15035 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15036 (ix86_split_lshr): Ditto.
15037 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15038
15039 2019-06-18 Jason Merrill <jason@redhat.com>
15040
15041 * tree.c (build_constructor): Add MEM_STAT_DECL.
15042
15043 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15044
15045 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15046 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15047 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15048 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15049 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15050 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15051 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15052 Use CC_NZC instead of CC.
15053 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15054 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15055 (aarch64_print_operand): Handle E_CC_NZCmode.
15056 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15057 of gen_set_clobber_cc.
15058
15059 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15060
15061 * config/aarch64/aarch64-sve.md: Tabify file.
15062
15063 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15064
15065 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15066 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15067 * config/aarch64/aarch64-sve.md: Use it.
15068
15069 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15070
15071 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15072 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15073 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15074 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15075 (aarch64_expand_sve_vec_cmp_int): Use it.
15076 (aarch64_expand_sve_vec_cmp_float): Likewise.
15077 * config/aarch64/aarch64-sve.md: Likewise throughout.
15078
15079 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15080 Kugan Vivekanandarajah <kuganv@linaro.org>
15081
15082 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15083 (*cond_<optab><mode>_z): Fold into...
15084 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15085 operand 4 can be tied to operand 0 (either inherently or via RA).
15086
15087 2019-06-18 Richard Biener <rguenther@suse.de>
15088
15089 PR debug/90900
15090 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15091 as if optimized away.
15092
15093 2019-06-18 Tom de Vries <tdevries@suse.de>
15094
15095 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15096 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15097 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15098 Rename to ...
15099 (define_insn "@set_softstack_<mode>"): ... this.
15100 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15101 (define_insn "@omp_simt_enter_<mode>"): ... this.
15102 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15103 (define_insn "@omp_simt_exit_<mode>"): ... this.
15104
15105 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15106
15107 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15108 vf parameter. Restore the previous iv step of nscalars_step,
15109 but give it iv_type rather than compare_type. Tweak code order
15110 to match the comments.
15111 (vect_set_loop_condition_masked): Update accordingly.
15112 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15113 for iv_precision. Tweak comment formatting.
15114
15115 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15116
15117 * config/darwin.c: Strip trailing whitespace.
15118
15119 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15120
15121 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15122 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15123
15124 2019-06-18 Martin Jambor <mjambor@suse.cz>
15125
15126 PR ipa/90889
15127 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15128 caller does not have flag_ipa_cp set.
15129
15130 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15131
15132 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15133 from "*fold_left_plus_<mode>", updated operands order.
15134 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15135 * internal-fn.c (mask_fold_left_direct): New define.
15136 (expand_mask_fold_left_optab_fn): Likewise.
15137 (direct_mask_fold_left_optab_supported_p): Likewise.
15138 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15139 * optabs.def (mask_fold_left_plus_optab): New optab.
15140 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15141 masked internal_fn for a reduction ifn.
15142 (vectorize_fold_left_reduction): Add support for masking reductions.
15143
15144 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15145
15146 PR middle-end/80791
15147 * target.def (predict_doloop_p): New hook.
15148 * targhooks.h (default_predict_doloop_p): New declaration.
15149 * targhooks.c (default_predict_doloop_p): New function.
15150 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15151 * doc/tm.texi: Regenerate.
15152 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15153 (TARGET_PREDICT_DOLOOP_P): New macro.
15154 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15155
15156 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15157
15158 * omp-low.c (struct omp_context): Add scan_inclusive field.
15159 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15160 if inclusive scan.
15161 (struct omplow_simd_context): Add lastlane member.
15162 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15163 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15164 1 or 2 argument.
15165 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15166 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15167 (lower_omp_scan): New function.
15168 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15169 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15170 check 3rd argument if present rather than 2nd.
15171 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15172 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15173 2-bit bitfield.
15174 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15175 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15176 than 2nd.
15177 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15178 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15179 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15180 init.
15181 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15182 IFN_GOMP_SIMD_LANE argument.
15183 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15184 encoded ->aux value.
15185 * tree-vect-stmts.c: Include attribs.h.
15186 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15187 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15188 functions.
15189 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15190 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15191
15192 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15193
15194 PR target/62055
15195 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15196 (*nabs<mode>2_1): Ditto.
15197 (nabs sse-reg splitter): New splitter.
15198 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15199
15200 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15201
15202 PR bootstrap/90873.
15203 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15204 TMR index check.
15205
15206 2019-06-17 Tom de Vries <tdevries@suse.de>
15207
15208 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15209 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15210 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15211 ...
15212 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15213 match_operand 0.
15214 (define_insn "omp_simt_enter_insn"): Rename to ...
15215 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15216 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15217 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15218 gen_omp_simt_enter_si.
15219 (define_expand "omp_simt_exit"): New.
15220 (define_insn "omp_simt_exit"): Rename to ...
15221 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15222 match_operand 0.
15223
15224 2019-06-17 Matthew Green <mrg@eterna.com.au>
15225 Maya Rashish <coypu@sdf.org>
15226
15227 * config.gcc (aarch64*-*-netbsd*): New target.
15228 * config/aarch64/aarch64-netbsd.h: New file.
15229 * config/aarch64/t-aarch64-netbsd: Likewise.
15230
15231 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15232
15233 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15234 the access path from base to first VIEW_CONVERT_EXPR or
15235 BIT_FIELD_REF.
15236
15237 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15238
15239 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15240 access path on BIT_FIELD_REFs.
15241
15242 2019-06-17 Martin Liska <mliska@suse.cz>
15243
15244 PR ipa/90874
15245 * ipa-utils.h (odr_type_p): Remove dead code.
15246
15247 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15248
15249 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15250 alternative Solaris 11.4 format.
15251 * configure: Regenerate.
15252
15253 2019-06-17 Tom de Vries <tdevries@suse.de>
15254
15255 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15256 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15257 match_operand 0.
15258 (define_insn "call_value_insn"): Rename to ...
15259 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15260 match_operand 0.
15261 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15262 DI.
15263
15264 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15265
15266 PR middle-end/64242
15267 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15268 frame clobbers and schedule block.
15269 (builtin_longjmp): Likewise.
15270
15271 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15272
15273 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15274 describe how to perform MSPABI compliant 64-bit shift.
15275 * config/msp430/msp430.md (ashldi3): New define_expand.
15276 (ashrdi3): New define_expand.
15277 (lshrdi3): New define_expand.
15278
15279 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15280
15281 * doc/sourcebuild.texi: Document new effective target keyword
15282 longlong64.
15283
15284 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15285
15286 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15287 indirect_refs_may_alias_p): Revert accidental commits.
15288
15289 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15290 at the end of structures.
15291
15292 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15293
15294 * config/darwin.c (machopic_indirect_call_target): Use renamed
15295 darwin_picsymbol_stubs to decide on output.
15296 (darwin_override_options): Handle darwin_picsymbol_stubs.
15297 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15298 (LD64_VERSION): Revise default.
15299 * config/darwin.opt: (mpic-symbol-stubs): New option.
15300 (darwin_picsymbol_stubs): New variable.
15301 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15302 rename to TARGET_MACHO_PICSYM_STUBS.
15303 * config/i386/i386.c (output_pic_addr_const): Likewise.
15304 * config/i386/i386.h Likewise.
15305 * config/rs6000/darwin.h: Likewise.
15306 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15307 darwin_picsymbol_stubs.
15308
15309 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15310
15311 * config/darwin.opt (prebind, noprebind, seglinkedit,
15312 noseglinkedit): Add RejectNegative.
15313
15314 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15315
15316 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15317 in my previous patch.
15318
15319 2019-06-16 Tom de Vries <tdevries@suse.de>
15320
15321 PR tree-optimization/89376
15322 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15323
15324 2019-06-15 Maya Rashish <coypu@sdf.org>
15325
15326 * doc/invoke.texi (Spec Files): Update location of the
15327 Fortran spec file.
15328
15329 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15330
15331 * doc/extend.texi (Common Function Attributes): Clarify
15332 no_sanitize. Fix grammar.
15333
15334 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15335
15336 * tree-ssa-alias.c (alias_stats): Add
15337 nonoverlapping_component_refs_p_may_alias,
15338 nonoverlapping_component_refs_p_no_alias,
15339 nonoverlapping_component_refs_of_decl_p_may_alias,
15340 nonoverlapping_component_refs_of_decl_p_no_alias.
15341 (dump_alias_stats): Dump them.
15342 (nonoverlapping_component_refs_of_decl_p): Add stats.
15343 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15344 ARRAY_REF.
15345
15346 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15347
15348 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15349 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15350 only.
15351 (*anddi3_doubleword): Split before reload. Merge with
15352 anddi->zext pre-reload splitter.
15353 (*andndi3_doubleword): Split before reload.
15354 (*<code>di3_doubleword): Ditto.
15355 (*one_cmpldi2_doubleword): Ditto.
15356
15357 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15358
15359 PR middle-end/90779
15360 * gimplify.c: Include omp-offload.h and context.h.
15361 (gimplify_bind_expr): Add "omp declare target" attributes
15362 to static block scope variables inside of target region or target
15363 functions.
15364
15365 2019-06-15 Tom de Vries <tdevries@suse.de>
15366
15367 PR tree-optimization/90009
15368 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15369 Return NULL if bb contains IFN_UNIQUE.
15370
15371 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15372
15373 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15374 (un): New define_mode_attr.
15375 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15376 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15377 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15378 merge into ...
15379 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15380
15381 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15382
15383 * config/darwin.opt: Add RejectNegative where needed, reorder
15384 and add minimal functional descriptions.
15385
15386 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15387
15388 PR rtl-optimization/90765
15389 * calls.c (update_stack_alignment_for_call): New function.
15390 (expand_call): Call update_stack_alignment_for_call when
15391 outgoing parameter is passed in the stack.
15392 (emit_library_call_value_1): Likewise.
15393 * function.c (locate_and_pad_parm): Don't update
15394 stack_alignment_needed and preferred_stack_boundary.
15395
15396 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15397
15398 PR target/90877
15399 * config/i386/i386-features.c
15400 (dimode_scalar_chain::compute_convert_gain): Replace
15401 mmxsse_to_integer with sse_to_integer.
15402 * config/i386/i386.c (ix86_register_move_cost): Verify that
15403 moves between MMX and non-MMX units require secondary memory.
15404 Correct costs of moves between SSE and integer units.
15405 * config/i386/i386.h (processor_costs): Rename cost of moving
15406 SSE register to integer to sse_to_integer. Rename cost of
15407
15408 2019-06-14 Matt Thomas <matt@3am-software.com>
15409 Matthew Green <mrg@eterna.com.au>
15410 Nick Hudson <skrll@netbsd.org>
15411 Maya Rashish <coypu@sdf.org>
15412 Richard Earnshaw <rearnsha@arm.com>
15413
15414 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15415 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15416 * config/arm/netbsd-eabi.h: New file.
15417 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15418 redefining.
15419 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15420 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15421 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15422 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15423
15424 2019-06-14 Richard Biener <rguenther@suse.de>
15425
15426 * tree-loop-distribution.c (classify_partition): Return
15427 whether a reduction appeared in all partitions and do not
15428 stop builtin detection because of this.
15429 (distribute_loop): Sort a non-builtin partition last if
15430 there's a reduction in all partitions and make sure the
15431 partition prevailing as last is not a builtin.
15432
15433 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15434
15435 PR ipa/90401
15436 * ipa-prop.c (add_to_agg_contents_list): New function.
15437 (clobber_by_agg_contents_list_p): Likewise.
15438 (extract_mem_content): Likewise.
15439 (get_place_in_agg_contents_list): Delete.
15440 (determine_known_aggregate_parts): Renamed from
15441 determine_locally_known_aggregate_parts. New parameter
15442 aa_walk_budget_p.
15443
15444 2019-06-13 Martin Sebor <msebor@redhat.com>
15445
15446 PR tree-optimization/90662
15447 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15448 to the same type.
15449
15450 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15451
15452 PR bootstrap/90873
15453 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15454 dbase is not TARGET_MEM_REF.
15455
15456 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15457
15458 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15459 Update all uses.
15460 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15461 Do not generate DImode extends for 32bit targets.
15462 (and->zext post-reload splitter): Use gen_extend_insn
15463 instead of indirect functions.
15464 (anddi->zext pre-reload splitter): New.
15465 (*zext<mode>_doubleword_and): Remove.
15466 (*zext<mode>_doubleword): Ditto.
15467 (*zextsi_doubleword): Dittto.
15468
15469 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15470
15471 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15472 Use gen_sub3_insn instead of indirect function.
15473 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15474 indirect function.
15475 (ix86_adjust_counter): Ditto.
15476
15477 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15478 Lijia He <helijia@linux.ibm.com>
15479
15480 PR tree-optimization/77820
15481 * tree-ssa-threadedge.c
15482 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15483 function.
15484 (thread_across_edge): Add call to
15485 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15486
15487 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15488
15489 * config/darwin-driver.c (validate_macosx_version_min): New.
15490 (darwin_default_min_version): Cleanup and validate supplied version.
15491 (darwin_driver_init): Likewise and push cleaned version into opts.
15492
15493 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15494
15495 PR tree-optimization/90869
15496 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15497 converts in MEM_REF referencing decl rather than view converts
15498 from decl type to MEM_REF type.
15499
15500 2019-06-13 Richard Biener <rguenther@suse.de>
15501
15502 PR tree-optimization/90856
15503 * tree-sra.c (build_ref_for_model): Only use
15504 build_reconstructed_reference when address-spaces are the same.
15505
15506 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15507
15508 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15509 wrap ei variable name in the declaration in ()s.
15510 (nvptx_single): Actually use mode_label variable. Formatting fix.
15511
15512 2019-06-13 Richard Biener <rguenther@suse.de>
15513
15514 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15515 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15516 also return the condition stmt.
15517 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15518 loop we can version and version that, reusing the loop version
15519 created by if-conversion instead of versioning again.
15520
15521 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15522
15523 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15524 may_contain_p.
15525 * tree-vrp (value_range_base::may_contain_p): Call into
15526 value_inside_range.
15527 (value_inside_range): Make private inside value_range_base class.
15528 Take min/max from *this.
15529 (range_includes_p): Remove.
15530 * tree-vrp.h (value_range_base): Add value_inside_range.
15531 (range_includes_p): Remove.
15532 (range_includes_zero_p): Call may_contain_p.
15533 * vr-values.c (compare_range_with_value): Same.
15534
15535 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15536
15537 * doc/extend.texi (ARC Function Attributes): Update info.
15538
15539 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15540
15541 PR tree-optimization/89713
15542 * doc/invoke.texi (-ffinite-loops): Document new option.
15543 * common.opt (-ffinite-loops): New option.
15544 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15545 IFN_GOACC_LOOP calls as necessary.
15546 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15547 is finite.
15548 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15549 IFN_GOACC_LOOP call is not used.
15550 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15551
15552 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15553
15554 PR target/88838
15555 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15556 compare_type is not with Pmode size, we will create an IV with
15557 Pmode size with truncated use (i.e. converted to the correct type).
15558 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15559 (vect_iv_limit_for_full_masking): New. Factored out of
15560 vect_set_loop_condition_masked.
15561 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15562 (vect_iv_limit_for_full_masking): Declare.
15563
15564 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15565
15566 PR target/88834
15567 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15568 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15569 (get_alias_ptr_type_for_ptr_address): Likewise.
15570 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15571 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15572 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15573 allow_reg_index_p.
15574
15575 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15576
15577 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15578
15579 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15580
15581 * common/config/pru/pru-common.c: New file.
15582 * config.gcc: Add PRU target.
15583 * config/pru/alu-zext.md: New file.
15584 * config/pru/constraints.md: New file.
15585 * config/pru/predicates.md: New file.
15586 * config/pru/pru-opts.h: New file.
15587 * config/pru/pru-passes.c: New file.
15588 * config/pru/pru-pragma.c: New file.
15589 * config/pru/pru-protos.h: New file.
15590 * config/pru/pru.c: New file.
15591 * config/pru/pru.h: New file.
15592 * config/pru/pru.md: New file.
15593 * config/pru/pru.opt: New file.
15594 * config/pru/t-pru: New file.
15595 * doc/extend.texi: Document PRU pragmas.
15596 * doc/invoke.texi: Document PRU-specific options.
15597 * doc/md.texi: Document PRU asm constraints.
15598
15599 2019-06-12 Martin Sebor <msebor@redhat.com>
15600
15601 PR middle-end/90676
15602 * tree-pretty-print.c (dump_mem_ref): New function. Include
15603 MEM_REF type in output when different size than operand.
15604 (dump_generic_node): Move code to dump_mem_ref and call it.
15605
15606 2019-06-12 Martin Sebor <msebor@redhat.com>
15607
15608 PR tree-optimization/90662
15609 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15610 to arrays.
15611
15612 2019-06-12 Tom de Vries <tdevries@suse.de>
15613
15614 PR tree-optimization/90009
15615 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15616
15617 2019-06-12 Martin Liska <mliska@suse.cz>
15618
15619 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15620 the created map.
15621 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15622 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15623 Do not sanitize created maps.
15624
15625 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15626
15627 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15628 value_range::singleton_p.
15629 * tree-vrp.c (value_range_constant_singleton): Remove.
15630 * tree-vrp.h (value_range_constant_singleton): Remove.
15631 * vr-values.c (vr_values::singleton): Use
15632 value_range::singleton_p.
15633
15634 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15635
15636 PR target/90811
15637 * cfgexpand.c (align_local_variable): Add really_expand argument,
15638 don't SET_DECL_ALIGN if it is false.
15639 (add_stack_var): Add really_expand argument, pass it through to
15640 align_local_variable.
15641 (expand_one_stack_var_1): Pass true as really_expand to
15642 align_local_variable.
15643 (expand_one_ssa_partition): Pass true as really_expand to
15644 add_stack_var.
15645 (expand_one_var): Pass really_expand through to add_stack_var.
15646
15647 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15648
15649 * config/arm/iterators.md (VABAL): New int iterator.
15650 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15651 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15652 UNSPEC_VABAL_U values.
15653
15654 2019-06-12 Martin Liska <mliska@suse.cz>
15655
15656 * value-prof.c (stream_out_histogram_value): Only first value
15657 can't be negative.
15658
15659 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15660
15661 PR c/90760
15662 * symtab.c (symtab_node::set_section): Allow being called on aliases
15663 as long as they aren't analyzed yet.
15664
15665 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15666
15667 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15668 to `mips_set_text_contents_type' to indicate whether a
15669 non-debug insn follows.
15670
15671 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15672
15673 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15674 enabling -mpcrel by default.
15675 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15676 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15677 that the test against -mcpu=future is done first. Then test if
15678 -mprefixed-addr is on for -mpcrel.
15679 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15680
15681 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15682
15683 PR target/90811
15684 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15685 instead of and.u%d.
15686
15687 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15688
15689 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15690
15691 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15692
15693 PR c++/90449 - add -Winaccessible-base option.
15694 * doc/invoke.texi (Winaccessible-base): Document.
15695
15696 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15697
15698 PR tree-optimization/62041
15699 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15700
15701 2019-06-11 Jason Merrill <jason@redhat.com>
15702
15703 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15704 * tree.c (get_tree_code_name): Likewise.
15705 * print-tree.c (print_node): Only briefly print a node with an
15706 invalid code.
15707
15708 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15709
15710 PR bootstrap/90819
15711 * trans-mem.c (tm_memopt_compute_available): Add assertion
15712 that blocks is not empty. Formatting fix.
15713
15714 2019-06-11 Martin Liska <mliska@suse.cz>
15715
15716 PR c++/87847
15717 * hash-table.h: Extend create_gcc, add one parameter
15718 that is passed into hash_table::hash_table.
15719
15720 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15721
15722 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15723 New prototype.
15724 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15725 Emit clobber also for non-sse operations.
15726 (ix86_split_fp_absneg_operator): New function.
15727 * config/i386/i386.md (SSEMODEF): New mode iterator.
15728 (ssevecmodef): New mode attribute.
15729 (<code>tf2): Use absneg code iterator.
15730 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15731 Add three-operand AVX alternatives.
15732 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15733 Use absneg code iterator and X87MODEF mode iterator.
15734 (absneg fp_reg non-sse splitter): Call absneg code iterator
15735 and X87MODEF mode iterator.
15736 (absneg general_reg non-sse splitter): Use absneg code iterator
15737 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15738 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15739 code iterator. Add three-operand AVX alternative.
15740 (absneg sse_reg splitter): Use absneg code iterator
15741 and SSEMODEF mode iterator. Handle AVX operands.
15742 (absneg fp_reg splitter): Use absneg code iterator
15743 and MODEF mode iterator.
15744 (absneg general_reg splitter): Merge splitters using MODEF mode
15745 iterator. Use absneg code iterator. Call
15746 ix86_split_fp_absneg_operator.
15747 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15748 Do not enable for non-sse modes before reload.
15749 (CSGNMODE): Remove.
15750 (CSGNVMODE): Ditto.
15751 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15752 ssevecmodef mode attribute instaed of CSGNVMODE.
15753 (copysign<mode>3_const): Ditto.
15754 (copysign<mode>3_var): Ditto.
15755 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15756 Use absneg code iterator. Simplify code using std::swap.
15757 * config/i386/predicates.md (absneg_operator): Remove.
15758
15759 2019-06-10 Martin Sebor <msebor@redhat.com>
15760
15761 * gimple-fold.c (get_range_strlen): Update comment that didn't
15762 make it into r267503 or related commits.
15763
15764 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15765
15766 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15767 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15768
15769 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15770
15771 * tree.def (OMP_SCAN): New tree code.
15772 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15773 OMP_CLAUSE_EXCLUSIVE.
15774 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15775 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15776 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15777 OMP_CLAUSE_{IN,EX}CLUSIVE.
15778 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15779 * tree-nested.c (convert_nonlocal_reference_stmt,
15780 convert_local_reference_stmt, convert_gimple_call): Handle
15781 GIMPLE_OMP_SCAN.
15782 * tree-pretty-print.c (dump_omp_clause): Handle
15783 OMP_CLAUSE_{IN,EX}CLUSIVE.
15784 (dump_generic_node): Handle OMP_SCAN.
15785 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15786 * gimple.h (gomp_scan): New type.
15787 (is_a_helper <gomp_scan *>::test,
15788 is_a_helper <const gomp_scan *>::test): New templates.
15789 (gimple_build_omp_scan): Declare.
15790 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15791 gimple_omp_scan_set_clauses): New inline functions.
15792 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15793 * gimple.c (gimple_build_omp_scan): New function.
15794 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15795 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15796 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15797 GIMPLE_OMP_TASKGROUP.
15798 (dump_gimple_omp_scan): New function.
15799 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15800 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15801 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15802 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15803 (is_gimple_stmt): Handle OMP_SCAN.
15804 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15805 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15806 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15807 mentioned in nested #pragma omp scan. Handle
15808 OMP_CLAUSE_{IN,EX}CLUSIVE.
15809 (gimplify_expr): Handle OMP_SCAN.
15810 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15811 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15812 simd constructs.
15813 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15814 GIMPLE_OMP_SCAN.
15815
15816 2019-06-10 Martin Liska <mliska@suse.cz>
15817
15818 * ipa-cp.c (ignore_edge_p): New function.
15819 (build_toporder_info): Use it.
15820 * ipa-inline.c (ignore_edge_p): New function.
15821 (inline_small_functions): Use it.
15822 * ipa-pure-const.c (ignore_edge_for_nothrow):
15823 Verify opt_for_fn for caller and callee.
15824 (ignore_edge_for_pure_const): Likewise.
15825 * ipa-reference.c (ignore_edge_p): Extend to check
15826 for opt_for_fn.
15827 * ipa-utils.c (searchc): Refactor.
15828 * ipa-utils.h: Fix coding style.
15829
15830 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15831
15832 * config/arc/arc.c (arc_rtx_costs): Update costs.
15833
15834 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15835
15836 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15837 (arc_split_ior): Likewise.
15838 (arc_check_mov_const): Likewise.
15839 (arc_split_mov_const): Likewise.
15840 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15841 (arc_rtx_costs): Replace check Crr with Cax constraint.
15842 (prepare_move_operands): Cleanup, remove unused code.
15843 (arc_split_ior): New function.
15844 (arc_check_ior_const): Likewise.
15845 (arc_split_mov_const): Likewise.
15846 (arc_check_mov_const): Likewise.
15847 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15848 in define_insn_and_split pattern.
15849 (iorsi3): Likewise.
15850 (mulsi3_v2): Add new matching variant.
15851 (andsi3_i): Cleanup pattern.
15852 (rotrsi3_cnt1): Update pattern.
15853 (rotrsi3_cnt8): New pattern.
15854 (ashlsi2_cnt8): Likewise.
15855 (ashlsi2_cnt16): Likewise.
15856 * config/arc/constraints.md (C0p): Update constraint.
15857 (Crr): Remove it.
15858 (C0x): New pattern.
15859 (Cax): New pattern.
15860
15861 2019-06-10 Martin Liska <mliska@suse.cz>
15862
15863 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15864 Update coding style.
15865 (sem_item_optimizer::dump_cong_classes):
15866 Print how many items are in a non-singular class. Improve
15867 coding style.
15868
15869 2019-06-10 Martin Liska <mliska@suse.cz>
15870
15871 * value-prof.c (dump_histogram_value): Change dump format.
15872 (gimple_mod_subtract_transform): Remove legacy comment.
15873
15874 2019-06-10 Martin Liska <mliska@suse.cz>
15875
15876 * value-prof.c (dump_histogram_value): Print histogram values
15877 only if present.
15878
15879 2019-06-10 Martin Liska <mliska@suse.cz>
15880
15881 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15882 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15883 * ipa-profile.c (ipa_profile_generate_summary):
15884 Use get_most_common_single_value.
15885 * tree-profile.c (gimple_init_gcov_profiler):
15886 Instrument with __gcov_one_value_profiler_v2
15887 and __gcov_indirect_call_profiler_v4.
15888 * value-prof.c (dump_histogram_value):
15889 Print all values for HIST_TYPE_SINGLE_VALUE.
15890 (stream_out_histogram_value): Update assert for
15891 N values.
15892 (stream_in_histogram_value): Set number of
15893 counters for HIST_TYPE_SINGLE_VALUE.
15894 (get_most_common_single_value): New.
15895 (gimple_divmod_fixed_value_transform):
15896 Use get_most_common_single_value.
15897 (gimple_ic_transform): Likewise.
15898 (gimple_stringops_transform): Likewise.
15899 (gimple_find_values_to_profile): Set number
15900 of counters for HIST_TYPE_SINGLE_VALUE.
15901 * value-prof.h (get_most_common_single_value): New.
15902
15903 2019-06-10 Martin Liska <mliska@suse.cz>
15904
15905 * hash-map.h: Pass default value to hash_table ctor.
15906 * hash-table.h: Add default value to call of a ctor.
15907
15908 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15909
15910 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15911 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15912
15913 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15914
15915 PR target/90751
15916 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15917 Call pa_output_function_label.
15918 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15919 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15920 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15921 to declaration.
15922 (pa_linux_output_function_prologue): Declare.
15923 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15924 (pa_output_function_label): New.
15925 (pa_output_function_prologue): Revise to use pa_output_function_label.
15926 (pa_linux_output_function_prologue): New.
15927 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15928
15929 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15930
15931 * tree-vrp.h (value_range_base::intersect): New.
15932 (value_range::intersect_helper): Move from here...
15933 (value_range_base::intersect_helper): ...to here.
15934 * tree-vrp.c (value_range::intersect_helper): Rename to...
15935 (value_range_base::intersect_helper): ...this, and rewrite to
15936 return a value instead of modifying THIS in place.
15937 Also, move equivalence handling...
15938 (value_range::intersect): ...here, while calling intersect_helper.
15939 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15940 calling intersect.
15941 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15942 Same.
15943 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15944
15945 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15946
15947 * Makefile.in (genprogerr): Add condmd.
15948 (genprog): Remove it here.
15949
15950 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15951
15952 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15953
15954 2019-06-07 Richard Biener <rguenther@suse.de>
15955
15956 PR debug/90574
15957 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15958 that appear after user labels.
15959
15960 2019-06-07 Martin Liska <mliska@suse.cz>
15961
15962 * cselib.c (cselib_init): Disable hash table
15963 sanitization.
15964 * hash-set.h: Pass new default argument to m_table.
15965 * hash-table.c: Add global variable with hash table
15966 sanitization limit.
15967 * hash-table.h (Allocator>::hash_table): Add new argument
15968 to ctor.
15969 (hashtab_chk_error): New.
15970 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15971 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15972 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15973
15974 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15975
15976 * common.opt (flto-odr-type-merging): Ignore.
15977 * invoke.texi (-flto-odr-type-merging): Remove.
15978 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15979 (can_be_vtable_hashed_p): Remove.
15980 (hash_odr_vtable): Remove.
15981 (odr_vtable_hasher::hash): Remove.
15982 (types_same_for_odr): Remove.
15983 (types_odr_comparable): Remove.
15984 (odr_vtable_hasher::equal): Remove.
15985 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15986 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15987 (get_odr_type): Do not use vtable hash.
15988 (dump_odr_type): Remove commented out code.
15989 (build_type_inheritance_graph): Do not allocate vtable hash.
15990 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15991 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15992 (odr_type_p): Likewise.
15993 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15994 test.
15995
15996 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15997
15998 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15999 immediately after same_types_for_tbaa_p returns -1 and continue
16000 looking for possible exact match; if matching types are arrays
16001 watch for partial overlaps.
16002 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16003 (indirect_refs_may_alias_p): Do type based disambiguation first;
16004 update comment.
16005
16006 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16007
16008 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16009
16010 2019-06-07 Martin Liska <mliska@suse.cz>
16011
16012 * doc/invoke.texi: Remove param.
16013 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16014 Remove.
16015 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16016 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16017 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16018 * profile.c (instrument_values): Remove
16019 HIST_TYPE_INDIR_CALL_TOPN.
16020 * tree-profile.c (init_ic_make_global_vars):
16021 Always build __gcov_indirect_call only.
16022 (gimple_init_gcov_profiler): Remove usage
16023 of PARAM_INDIR_CALL_TOPN_PROFILE.
16024 (gimple_gen_ic_profiler): Likewise.
16025 * value-prof.c (dump_histogram_value): Likewise.
16026 (stream_in_histogram_value): Likewise.
16027 (gimple_indirect_call_to_profile): Likewise.
16028 (gimple_find_values_to_profile): Likewise.
16029 * value-prof.h (enum hist_type): Likewise.
16030
16031 2019-06-07 Martin Liska <mliska@suse.cz>
16032
16033 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16034 function.
16035
16036 2019-06-07 Martin Liska <mliska@suse.cz>
16037
16038 PR tree-optimization/78902
16039 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16040 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16041 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16042 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16043 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16044 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16045 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16046 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16047 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16048 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16049 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16050 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16051 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16052 New.
16053 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16054 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16055 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16056 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16057 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16058 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16059 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16060 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16061 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16062 warn_unused_result attribute.
16063 (BUILT_IN_STRDUP): Likewise.
16064 (BUILT_IN_STRNDUP): Likewise.
16065 (BUILT_IN_ALLOCA): Likewise.
16066 (BUILT_IN_CALLOC): Likewise.
16067 (BUILT_IN_MALLOC): Likewise.
16068 (BUILT_IN_REALLOC): Likewise.
16069
16070 2019-06-06 Jim Wilson <jimw@sifive.com>
16071
16072 PR target/89955
16073 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16074 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16075 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16076
16077 2019-06-06 Martin Sebor <msebor@redhat.com>
16078
16079 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16080 (handle_builtin_malloc): Remove trailing spaces.
16081 (handle_builtin_memset): Same.
16082 (handle_builtin_memcmp): Same.
16083 (compute_string_length): Same.
16084 (determine_min_objsize): Same.
16085 (handle_builtin_string_cmp): Same.
16086 (handle_char_store): Same. Break up excessively long line.
16087
16088 2019-06-06 Martin Jambor <mjambor@suse.cz>
16089
16090 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16091 check.
16092
16093 2019-06-06 Martin Jambor <mjambor@suse.cz>
16094
16095 * tree-sra.c (struct access): New field grp_same_access_path.
16096 (dump_access): Dump it.
16097 (build_reconstructed_reference): New function.
16098 (build_ref_for_model): Use it if possible.
16099 (path_comparable_for_same_access): New function.
16100 (same_access_path_p): Likewise.
16101 (sort_and_splice_var_accesses): Set the new flag.
16102 (analyze_access_subtree): Likewise.
16103 (propagate_subaccesses_across_link): Propagate zero value of the new
16104 flag down the access tree.
16105
16106 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16107
16108 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16109 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16110 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16111 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16112 Add gfx906.
16113
16114 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16115
16116 PR tree-optimization/90332
16117 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16118 Handle VALS containing two vectors.
16119 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16120 to...
16121 (@aarch64_combinez<mode>): ... This.
16122 (*aarch64_combinez_be<mode>): Rename to...
16123 (@aarch64_combinez_be<mode>): ... This.
16124 (vec_init<mode><Vhalf>): New define_expand.
16125 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16126
16127 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16128
16129 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16130 library functions only when not optimizing for size.
16131 (ashlsi3): Likewise.
16132 (ashrhi3): Likewise.
16133 (ashrsi3): Likewise.
16134 (lshrhi3): Likewise.
16135 (lshrsi3): Likewise.
16136
16137 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16138
16139 PR rtl-optimization/88751
16140 * ira.c (ira): Use the number of the actually referenced registers
16141 when calculating the threshold.
16142
16143 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16144
16145 * configure: Regenerate.
16146
16147 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16148
16149 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16150 register if it is in memory, so the shift can be emulated with a rotate
16151 instruction.
16152 (ashrhi3): Likewise.
16153 (lshrhi3): Likewise.
16154
16155 2019-06-06 Martin Liska <mliska@suse.cz>
16156
16157 PR tree-optimization/87954
16158 * match.pd: Simplify mult where both arguments are 0 or 1.
16159
16160 2019-06-06 Richard Biener <rguenther@suse.de>
16161
16162 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16163 put equivalences on UNDEFINED ranges.
16164 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16165 Make sure to drop defs of stmts added during simplification
16166 to VARYING.
16167
16168 2019-06-06 Richard Biener <rguenther@suse.de>
16169
16170 * tree-ssa-structalias.c: Include tree-cfg.h.
16171 (make_heapvar): Do not make heap vars artificial.
16172 (find_func_aliases_for_builtin_call): Handle stack allocation
16173 functions.
16174 (find_func_aliases): Delay processing of simple enough returns
16175 in non-IPA mode.
16176 (set_uids_in_ptset): Adjust.
16177 (find_what_var_points_to): Likewise.
16178 (solve_constraints): Do not dump points-to sets here.
16179 (compute_points_to_sets): Post-process return statements,
16180 amending the escaped solution. Dump points-to sets afterwards.
16181 (ipa_pta_execute): Dump points-to sets.
16182
16183 2019-06-06 Martin Liska <mliska@suse.cz>
16184
16185 PR web/87933
16186 * doc/install.texi: Fix HTML headers and
16187 titles for 'Installing GCC' pages.
16188
16189 2019-06-06 Martin Liska <mliska@suse.cz>
16190
16191 * ipa-icf-gimple.h (dump_message_1): Remove.
16192 (dump_message): Likewise.
16193 (return_false_with_message_1): Print also file.
16194 (return_false_with_msg): Likewise.
16195 (return_with_result): Likewise.
16196 (return_with_debug): Likewise.
16197 * ipa-icf.c (sem_function::equals_private): Remove call
16198 to dump_message.
16199
16200 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16201
16202 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16203 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16204 memory operand for it.
16205 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16206
16207 2019-06-05 Martin Sebor <msebor@redhat.com>
16208
16209 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16210 Adjust quoting and hyphenation.
16211 * convert.c (convert_to_real_1): Same.
16212 * gcc.c (driver_wrong_lang_callback): Same.
16213 (driver::handle_unrecognized_options): Same.
16214 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16215 * opts-common.c (cmdline_handle_error): Same.
16216 (read_cmdline_option): Same.
16217 * opts-global.c (complain_wrong_lang): Same.
16218 (print_ignored_options): Same.
16219 (handle_common_deferred_options): Same.
16220 * pretty-print.h: Same.
16221 * print-rtl.c (debug_bb_n_slim): Same.
16222 * sched-rgn.c (make_pass_sched_fusion): Same.
16223 * tree-cfg.c (verify_gimple_assign_unary): Same.
16224 (verify_gimple_label): Same.
16225 * tree-ssa-operands.c (verify_ssa_operands): Same.
16226 * varasm.c (do_assemble_alias): Same.
16227 (assemble_alias): Same.
16228
16229 2019-06-05 Richard Henderson <rth@twiddle.net>
16230
16231 * config/alpha/alpha.c (direct_return): Move down after
16232 struct machine_function definition; use saved frame_size;
16233 return bool.
16234 (struct machine_function): Add sa_mask, sa_size, frame_size.
16235 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16236 (alpha_compute_frame_layout): ... new function.
16237 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16238 (alpha_initial_elimination_offset): Use saved sa_size.
16239 (alpha_vms_initial_elimination_offset): Likewise.
16240 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16241 (alpha_expand_prologue): Use saved frame data. Merge integer
16242 and fp register save loops.
16243 (alpha_expand_epilogue): Likewise.
16244 (alpha_start_function): Use saved frame data.
16245 * config/alpha/alpha-protos.h (direct_return): Update.
16246 (alpha_sa_size): Remove.
16247
16248 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16249
16250 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16251 multiplication by a power-of-two value.
16252 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16253 and turn the modulo operation into a masking operation.
16254
16255 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR debug/90733
16258 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16259 with VOIDmode inner operands.
16260
16261 2019-06-05 Richard Biener <rguenther@suse.de>
16262
16263 PR middle-end/90726
16264 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16265 turn an expression graph into a tree.
16266
16267 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16268
16269 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16270 member.
16271 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16272 treat it like explicit monotonic schedule modifier.
16273 (expand_omp_for): Initialize has_lastprivate_conditional.
16274 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16275 schedule modifier.
16276
16277 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16278 references, lookup in in hash map MEM_REF operand instead of the
16279 MEM_REF itself.
16280 (lower_omp_1): When looking for lastprivate conditional assignments,
16281 handle MEM_REFs with REFERENCE_TYPE operands.
16282
16283 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16284 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16285 and references a VLA. Handle references to non-VLAs if is_simd
16286 all privatization clauses like reductions.
16287 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16288 If omp_is_reference, use always omp simd arrays and set
16289 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16290 fails, emit reference initialization.
16291
16292 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16293
16294 PR target/89803
16295 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16296 _mm_mask_fpclass_sd_mask): New intrinsics.
16297 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16298 * config/i386/i386-builtin.def
16299 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16300 New builtins.
16301 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16302 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16303 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16304 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16305 case QI_FTYPE_V2SF_INT): Ditto.
16306 * config/i386/sse.md
16307 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16308 Extended to insnstructions with mask operands.
16309
16310 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16311
16312 * config/rs6000/constraints.md (define_register_constraint "wp"):
16313 Delete.
16314 (define_register_constraint "wq"): Delete.
16315 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16316 (rs6000_init_hard_regno_mode_ok): Adjust.
16317 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16318 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16319 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16320 (define_mode_attr VSa): Delete.
16321 (define_mode_attr VSisa): New.
16322 (rest of file): Adjust.
16323 * doc/md.texi (Machine Constraints): Adjust.
16324
16325 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16326
16327 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16328 (define_attr "enabled"): Handle those new isa values.
16329
16330 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16331
16332 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16333 (define_mode_attr VSr5): Delete.
16334 (define_mode_attr VStype_sqrt): Delete.
16335 (define_mode_iterator VSX_SPDP): Delete.
16336 (define_mode_attr VS_spdp_res): Delete.
16337 (define_mode_attr VS_spdp_insn): Delete.
16338 (define_mode_attr VS_spdp_type): Delete.
16339 (*vsx_sqrt<mode>2): Adjust.
16340 (vsx_<VS_spdp_insn>): Delete, split to...
16341 (vsx_xscvdpsp): ... this. New. And...
16342 (vsx_xvcvspdp): ... this. New. And...
16343 (vsx_xvcvdpsp): ... this. New.
16344
16345 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16346
16347 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16348 and V2DF.
16349 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16350 (rest of file): Adjust.
16351
16352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16353
16354 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16355 (vsx_extract_<mode>_var): Ditto.
16356
16357 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16358
16359 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16360 with just "wa".
16361
16362 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16363
16364 * config/rs6000/constraints.md (define_register_constraint "ww"):
16365 Delete.
16366 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16367 (rs6000_init_hard_regno_mode_ok): Adjust.
16368 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16369 RS6000_CONSTRAINT_ww.
16370 * config/rs6000/rs6000.md: Adjust.
16371 * config/rs6000/vsx.md: Adjust.
16372 * doc/md.texi (Machine Constraints): Adjust.
16373
16374 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16375
16376 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16377 (define_mode_attr sd): New.
16378 (define_mode_attr s): New.
16379 (define_mode_attr Ftrad): Delete.
16380 (define_mode_attr Fvsx): Delete.
16381 (define_mode_attr Fs): Delete.
16382 (rest of file): Use the new mode attributes.
16383 * config.rs6000/vsx.md: Use the new mode attributes.
16384
16385 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16386
16387 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16388 with just "wa".
16389
16390 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16391
16392 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16393 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16394 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16395
16396 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16397
16398 PR target/78263
16399 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16400 C++ with strict ANSI requirements.
16401
16402 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16403
16404 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16405 computations when step is 1.
16406
16407 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16408
16409 * config/rs6000/constraints.md (define_register_constraint "wf"):
16410 Delete.
16411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16412 (rs6000_init_hard_regno_mode_ok): Adjust.
16413 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16414 RS6000_CONSTRAINT_wf.
16415 * config/rs6000/rs6000.md: Adjust.
16416 * config/rs6000/vsx.md: Adjust.
16417 * doc/md.texi (Machine Constraints): Adjust.
16418
16419 2019-06-04 Andrew Pinski <apinski@marvell.com>
16420
16421 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16422 Fix ILP32 value.
16423
16424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16425
16426 * config/rs6000/constraints.md (define_register_constraint "wd"):
16427 Delete.
16428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16429 (rs6000_init_hard_regno_mode_ok): Adjust.
16430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16431 RS6000_CONSTRAINT_wd.
16432 * config/rs6000/rs6000.md: Adjust.
16433 * config/rs6000/vsx.md: Adjust.
16434 * doc/md.texi (Machine Constraints): Adjust.
16435
16436 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16437
16438 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16439 (rest of file): Adjust.
16440
16441 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16442
16443 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16444 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16445 (vsx_splat_<mode>_reg): Adjust.
16446
16447 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16448
16449 * config/rs6000/constraints.md (define_register_constraint "ws"):
16450 Delete.
16451 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16452 (rs6000_init_hard_regno_mode_ok): Adjust.
16453 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16454 RS6000_CONSTRAINT_ws.
16455 * config/rs6000/rs6000.md: Adjust.
16456 * config/rs6000/vsx.md: Adjust.
16457 * doc/md.texi (Machine Constraints): Adjust.
16458
16459 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16460
16461 * config/rs6000/constraints.md (define_register_constraint "wv"):
16462 Delete.
16463 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16464 (rs6000_init_hard_regno_mode_ok): Adjust.
16465 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16466 RS6000_CONSTRAINT_wv.
16467 * config/rs6000/rs6000.md: Adjust.
16468 * config/rs6000/vsx.md: Adjust.
16469 * doc/md.texi (Machine Constraints): Adjust.
16470
16471 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16472
16473 * config/rs6000/constraints.md (define_register_constraint "wi"):
16474 Delete.
16475 (define_register_constraint "wt"): Delete.
16476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16477 (rs6000_init_hard_regno_mode_ok): Adjust.
16478 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16479 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16480 * config/rs6000/rs6000.md: Adjust.
16481 * config/rs6000/vsx.md: Adjust.
16482 * doc/md.texi (Machine Constraints): Adjust.
16483
16484 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16485
16486 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16487 const.
16488 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16489 default_elf_asm_output_external.
16490
16491 2019-06-04 Martin Liska <mliska@suse.cz>
16492
16493 * ipa-icf.c (INCLUDE_LIST): Remove.
16494 (sem_item_optimizer::execute): Remove call to init_wpa.
16495 * ipa-icf.h (init_wpa): Remove.
16496
16497 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16498
16499 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16500 conditional on combined for simd.
16501 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16502 member.
16503 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16504 constructs, don't remove lastprivate_conditional_map, but instead set
16505 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16506 to parent construct temporaries.
16507 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16508 like !ctx->lastprivate_conditional_map.
16509 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16510 use up->outer context instead of up.
16511 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16512 gimple_omp_for_combined_p.
16513 (expand_omp_for_static_nochunk): Likewise.
16514 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16515 probably moved over into expand_omp_for_generic rather than being copied
16516 there.
16517
16518 2019-06-04 Martin Liska <mliska@suse.cz>
16519
16520 * value-prof.c (dump_histogram_value): Fix typo.
16521 (gimple_mod_subtract_transform): Likewise.
16522
16523 2019-06-04 Richard Biener <rguenther@suse.de>
16524
16525 PR middle-end/90726
16526 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16527 (tree_contains_chrecs): Likewise.
16528 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16529 exponential behaivor from ...
16530 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16531 ... here.
16532 (expression_expensive_p): Avoid exponential behavior and compute
16533 expanded size, rejecting any expansion.
16534 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16535 (idx_contains_abnormal_ssa_name_p): Likewise.
16536 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16537 (contains_abnormal_ssa_name_p): Simplify and use
16538 walk_tree_without_duplicates.
16539
16540 2019-06-04 Richard Biener <rguenther@suse.de>
16541
16542 PR tree-optimization/90738
16543 Revert
16544 2019-06-03 Richard Biener <rguenther@suse.de>
16545
16546 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16547 full reference tree and record in ref->ref.
16548 (vn_reference_lookup_3): Pass in original ref to
16549 ao_ref_init_from_vn_reference.
16550 (vn_reference_lookup): Likewise.
16551 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16552 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16553 Handle non-decl bases in the original reference.
16554
16555 2019-06-04 Martin Liska <mliska@suse.cz>
16556
16557 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16558 number of references.
16559 (sem_item_optimizer::do_congruence_step):
16560 (sem_item_optimizer::worklist_push): Dump how references
16561 a class has.
16562 (sem_item_optimizer::worklist_pop): Use heap.
16563 (sem_item_optimizer::process_cong_reduction): Likewise.
16564 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16565
16566 2019-06-04 Martin Liska <mliska@suse.cz>
16567
16568 * ipa-icf.h (struct sem_usage_pair_hash): New.
16569 (sem_usage_pair_hash::hash): Likewise.
16570 (sem_usage_pair_hash::equal): Likewise.
16571 (struct sem_usage_hash): Likewise.
16572 * ipa-icf.c (sem_item::sem_item): Initialize
16573 referenced_by_count.
16574 (sem_item::add_reference): Register a reference
16575 in ref_map and not in target->usages.
16576 (sem_item::setup): Remove initialization of
16577 dead vectors.
16578 (sem_item::~sem_item): Remove usage of dead vectors.
16579 (sem_item::dump): Remove dump of references.
16580 (sem_item_optimizer::sem_item_optimizer): Initialize
16581 m_references.
16582 (sem_item_optimizer::read_section): Remove useless
16583 dump.
16584 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16585 (sem_item_optimizer::build_graph): Pass m_references
16586 to ::add_reference.
16587 (sem_item_optimizer::verify_classes): Remove usage of dead
16588 vectors.
16589 (sem_item_optimizer::traverse_congruence_split): Return true
16590 when a class is split.
16591 (sem_item_optimizer::do_congruence_step_for_index): Use
16592 hash_map for look up of (sem_item *, index). That brings
16593 significant speed up.
16594 (sem_item_optimizer::do_congruence_step): Return true
16595 when a split is done.
16596 (congruence_class::is_class_used): Use referenced_by_count.
16597
16598 2019-06-04 Alan Modra <amodra@gmail.com>
16599
16600 PR target/90689
16601 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16602 error.
16603
16604 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16605
16606 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16607 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16608 (rs6000_secondary_reload_simple_move): Adjust.
16609 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16610 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16611 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16612 comment.
16613 (power6x): Adjust.
16614 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16615 (floatunssi<mode>2_lfiwzx): Adjust.
16616 (fix_trunc<mode>si2_stfiwx): Adjust.
16617 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16618 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16619 (mfpgpr): Mark as deprecated.
16620 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16621 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16622 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16623
16624 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16625
16626 * config/rs6000/constraints.md (define_register_constraint "wg"):
16627 Delete.
16628 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16629 RS6000_CONSTRAINT_wg.
16630 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16631 (rs6000_init_hard_regno_mode_ok): Adjust.
16632 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16633 Delete "wg" alternatives.
16634 * doc/md.texi (Machine Constraints): Adjust.
16635
16636 2019-06-03 Alan Modra <amodra@gmail.com>
16637
16638 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16639 (get_uncond_jump_length): Assert length less than INT_MAX and
16640 non-negative.
16641
16642 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16643
16644 PR middle-end/64242
16645 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16646 block.
16647 (expand_builtin_nonlocal_goto): Likewise.
16648
16649 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16650
16651 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16652 (aarch64_asm_output_external): Declare.
16653 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16654 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16655 (aarch64_asm_output_alias): New.
16656 (aarch64_asm_output_external): New.
16657 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16658 (ASM_OUTPUT_EXTERNAL): Define.
16659
16660 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16661 * tree-vrp.h (value_range_base::nonzero_p): New.
16662 (value_range_base::set_nonnull): Rename to...
16663 (value_range_base::set_nonzero): ...this.
16664 (value_range_base::set_null): Rename to...
16665 (value_range_base::set_zero): ...this.
16666 (value_range::set_nonnull): Remove.
16667 (value_range::set_null): Remove.
16668 * tree-vrp.c (range_is_null): Remove.
16669 (range_is_nonnull): Remove.
16670 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16671 instead of range_is_*null.
16672 (extract_range_from_unary_expr): Same.
16673 (value_range_base::set_nonnull): Rename to...
16674 (value_range_base::set_nonzero): ...this.
16675 (value_range::set_nonnull): Remove.
16676 (value_range_base::set_null): Rename to...
16677 (value_range_base::set_zero): ...this.
16678 (value_range::set_null): Remove.
16679 (extract_range_from_binary_expr): Rename set_*null uses to
16680 set_*zero.
16681 (extract_range_from_unary_expr): Same.
16682 (union_helper): Same.
16683 * vr-values.c (get_value_range): Use set_*zero instead of
16684 set_*null.
16685 (vr_values::extract_range_from_binary_expr): Same.
16686 (vr_values::extract_range_basic): Same.
16687
16688 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16689
16690 PR driver/90684
16691 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16692
16693 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16694
16695 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16696 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16697 Rename to...
16698 (aarch64_<su>abd<mode>_3): ... This.
16699 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16700
16701 2019-06-03 Richard Biener <rguenther@suse.de>
16702
16703 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16704 full reference tree and record in ref->ref.
16705 (vn_reference_lookup_3): Pass in original ref to
16706 ao_ref_init_from_vn_reference.
16707 (vn_reference_lookup): Likewise.
16708 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16709 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16710 Handle non-decl bases in the original reference.
16711
16712 2019-06-03 Martin Liska <mliska@suse.cz>
16713
16714 * doc/generic.texi: Remove Java Trees.
16715
16716 2019-06-03 Martin Liska <mliska@suse.cz>
16717
16718 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16719 returns 0 when operands are equal.
16720
16721 2019-06-03 Richard Biener <rguenther@suse.de>
16722
16723 PR tree-optimization/90716
16724 * tree-loop-distribution.c (destroy_loop): Process blocks in
16725 correct order.
16726
16727 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16728
16729 PR target/88837
16730 * vector-builder.h (vector_builder::count_dups): New method.
16731 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16732 Declare prototype.
16733 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16734 (vec_init<mode><Vel>): New pattern.
16735 * config/aarch64/aarch64.c (emit_insr): New function.
16736 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16737 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16738 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16739 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16740
16741 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16742
16743 PR tree-optimization/90681
16744 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16745 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16746 special case for SLP, but fail on non-groupped loads.
16747
16748 2019-06-03 Martin Liska <mliska@suse.cz>
16749
16750 * cfg.c (debug): Use TDF_DETAILS for debug and
16751 print edge info only once.
16752
16753 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16754
16755 PR fortran/90539
16756 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16757
16758 2019-06-01 Martin Sebor <msebor@redhat.com>
16759
16760 PR middle-end/90694
16761 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16762
16763 2019-05-31 Jan Hubicka <jh@suse.cz>
16764
16765 * alias.c: Include ipa-utils.h.
16766 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16767 * ipa-devirt.c (prevailing_odr_type): New.
16768 * ipa-utils.h (previaling_odr_type): Declare.
16769
16770 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16771 Hongtao Liu <hongtao.liu@intel.com>
16772
16773 PR target/89355
16774 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16775 NOTE_INSN_DELETED_LABEL check.
16776
16777 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16778 Robert Suchanek <robert.suchanek@mips.com>
16779
16780 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16781 and 3rd operands of the fmadd/fmsub/maddv builtin.
16782
16783 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16784
16785 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16786 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16787 on OMP_SIMD if not nested inside of worksharing loop that also has
16788 lastprivate conditional clause for the same decl.
16789 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16790 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16791 on simd.
16792 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16793 on simd construct.
16794 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16795 on simd construct.
16796 (lower_lastprivate_clauses): Likewise.
16797 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16798 calling lower_rec_input_clauses.
16799 (lower_omp_for): Likewise.
16800 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16801 clause on simd construct.
16802 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16803 OMP_CLAUSE__CONDTEMP_ clause is present.
16804
16805 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16806 ivar and lvar.
16807
16808 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16809
16810 PR c/43673
16811 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16812 TEX_D32, TEX_D64 or TEX_D128.
16813
16814 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16815
16816 * match.pd (~(vec?cst1:cst2)): New transformation.
16817
16818 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16819
16820 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16821 ((size_t)(A /[ex] B) CMP C): New transformation.
16822
16823 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16824
16825 * doc/md.texi: Document define_insn_and_rewrite.
16826 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16827 * gensupport.c (queue_elem): Update comment.
16828 (replace_operands_with_dups): New function.
16829 (gen_rewrite_sequence): Likewise.
16830 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16831 * read-rtl.c (apply_subst_iterator): Likewise.
16832 (add_condition_to_rtx, named_rtx_p): Likewise.
16833 (rtx_reader::read_rtx_operand): Likewise.
16834 * config/aarch64/aarch64-sve.md
16835 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16836 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16837 define_insn_and_rewrite.
16838 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16839 Remove separate define_split.
16840
16841 2019-05-31 Jan Hubicka <jh@suse.cz>
16842
16843 * tree-ssa-alias.c (type_has_components_p): New function.
16844 (aliasing_component_refs_p): Use it.
16845
16846 2019-05-31 Martin Liska <mliska@suse.cz>
16847
16848 * gdbhooks.py: Add const_tree to TreePrinter.
16849
16850 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16851
16852 PR debug/86964
16853 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16854 * doc/invoke.texi (Debugging Options): Document new default of
16855 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16856
16857 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16858
16859 PR tree-optimization/90671
16860 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16861 template_block used to be empty on the first call, don't use
16862 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16863 seq with bb_seq and set it with set_bb_seq.
16864
16865 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16866
16867 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16868
16869 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16870 Michael Meissner <meissner@linux.ibm.com>
16871
16872 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16873 (prefixed_mem_operand): Likewise.
16874 (non_prefixed_mem_operand): Likewise.
16875 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16876 prototype.
16877 * config/rs6000/rs6000.c (print_operand_address): Handle
16878 PC-relative addresses.
16879 (mode_supports_prefixed_address_p): New function.
16880 (rs6000_prefixed_address): New function.
16881 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16882 (SYMBOL_REF_PCREL_P): Likewise.
16883
16884 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16885
16886 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16887 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16888 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16889 is nested inside of parallel region, add _condtemp_ clause to both.
16890 * tree-nested.c (convert_nonlocal_omp_clauses,
16891 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16892 assertion failure.
16893 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16894 member.
16895 * omp-general.c (omp_extract_for_data): Compute it.
16896 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16897 (lower_rec_input_clauses): Likewise.
16898 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16899 clause is already present, just add one further one after it.
16900 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16901 (lower_send_shared_vars): Clear _condtemp_ vars.
16902 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16903 or section or taskgroup.
16904 * omp-expand.c (determine_parallel_type): Disallow combining only if
16905 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16906 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16907 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16908 expand_omp_for_static_chunk, expand_omp_for): Use
16909 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16910 determine if a special set of API routines are needed and if condtemp
16911 needs to be initialized, while always initialize cond_var if
16912 fd->lastprivate_conditional is non-zero.
16913
16914 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16915 Michael Meissner <meissner@linux.ibm.com>
16916
16917 * config/rs6000/constraints.md (eI): New constraint.
16918 * config/rs6000/predicates.md (cint34_operand): New predicate.
16919 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16920 (SIGNED_34BIT_OFFSET_P): Likewise.
16921 * doc/md.texi (eI): Document constraint.
16922
16923 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16924
16925 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16926
16927 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16928 Michael Meissner <meissner@linux.ibm.com>
16929
16930 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16931 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16932 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16933 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16934 (OTHER_FUTURE_MASKS): Likewise.
16935 (POWERPC_MASKS): Likewise.
16936 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16937 specified without -mprefixed-addr or -mcpu=future. Error if
16938 -mprefixed-addr is specified without -mcpu=future.
16939 (rs6000_opt_masks): Add entry for prefixed-addr.
16940 * rs6000.opt (mprefixed-addr): New option.
16941
16942 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16943
16944 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16945 cfun->is_thunk check.
16946
16947 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16948
16949 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16950 to length.
16951
16952 2019-05-30 Martin Liska <mliska@suse.cz>
16953
16954 * gdbinit.in: Fix 'ptc' command. Add trt
16955 that prints TREE_TYPE($).
16956
16957 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16958 Alan Modra <amodra@gmail.com>
16959
16960 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16961 calls here...
16962 (rs6000_indirect_call_template_1): ...and here.
16963 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16964 plt16_ha, plt16_lo, mtctr indirect calls. Use
16965 rs6000_pltseq_enum.
16966 (rs6000_decl_ok_for_sibcall): New function.
16967 (rs6000_function_ok_for_sibcall): Refactor.
16968 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16969 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16970 when pcrel. Reorganize.
16971 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16972 * rs6000.h (rs6000_pltseq_enum): New enum.
16973 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16974 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16975 (*pltseq_plt16_ha): Likewise.
16976 (*pltseq_plt16_lo): Likewise.
16977 (*pltseq_mtctr): Likewise.
16978 (*pltseq_plt_pcrel): New insn.
16979 (*call_local_aix): Handle @notoc calls.
16980 (*call_value_local_aix): Likewise.
16981 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16982 (*call_value_nonlocal_aix): Likewise.
16983 (*call_indirect_pcrel): New insn.
16984 (*call_value_indirect_pcrel): Likewise.
16985
16986 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16987
16988 * config/i386/sse.md (*save_multiple<mode>): Rename from
16989 save_multiple<mode>.
16990 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16991 (*restore_multiple_and_return<mode>): Rename from
16992 restore_multiple_and_return<mode>.
16993 (*restore_multiple_leave_return<mode>): Rename from
16994 restore_multiple_leave_return<mode>.
16995
16996 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16997
16998 * config.gcc (rx-*-linux*): New target.
16999 * config/rx/elf.opt: New file.
17000 * config/rx/linux.h: Likewise.
17001 * config/rx/t-linux: Likewise.
17002 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17003 make it zero.
17004 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17005 (ASM_APP_OFF): Likewise.
17006 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17007 moved elsewhere.
17008
17009 2019-05-29 Jan Hubicka <jh@suse.cz>
17010
17011 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17012 variants are pointer equivalent.
17013
17014 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17015
17016 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17017 * config/aarch64/aarch64-sve2.md: New file.
17018 (<u>avg<mode>3_floor): New pattern.
17019 (<u>avg<mode>3_ceil): Likewise.
17020 (*<sur>h<addsub><mode>): Likewise.
17021 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17022 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17023
17024 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17025
17026 PR bootstrap/90543
17027 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17028 for var_opt_string printing. In cl_optimization_print_diff, print
17029 (null) instead of invoking undefined behavior if one of the
17030 var_opt_string pointers is NULL and use && instead of first || in the
17031 guarding condition. For var_target_other options, handle const char *
17032 target variables similarly to const char * optimize node variables.
17033
17034 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17035
17036 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17037 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17038 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17039 Add autib1716 and pacib1716 initialisation.
17040 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17041 for autib1716 and pacib1716.
17042 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17043 aarch64_post_cfi_startproc): Define.
17044 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17045 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17046 aarch64_handle_pac_ret_protection): Set default sign key to A.
17047 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17048 aarch64_expand_prologue): Add check for b-key.
17049 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17050 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17051 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17052 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17053 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17054 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17055 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17056 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17057 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17058 pauth_hint_num_a with pauth_hint_num.
17059 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17060 pauth_hint_num_a with pauth_hint_num.
17061 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17062 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17063 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17064 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17065 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17066 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17067 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17068 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17069 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17070 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17071 UNSPEC_AUTIA1716 respectively.
17072 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17073 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17074 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17075 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17076 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17077 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17078
17079 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17080
17081 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17082 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17083 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17084 explicit clause on combined parallel into implicit shared clause.
17085 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17086 and firstprivate if the decl has one too from combined parallel to
17087 the worksharing construct.
17088
17089 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17090 Michael Meissner <meissner@linux.ibm.com>
17091
17092 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17093
17094 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17095
17096 * rtl.h (LABEL_REF_P): New #define.
17097
17098 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17099
17100 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17101
17102 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17103
17104 * internal-fn.c: Marked mask_load_direct as vectorizable.
17105 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17106 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17107 combined even if masks different with allow_slp_p param.
17108 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17109 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17110 dissolve SLP-only vectorizable groups when SLP has been discarded.
17111 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17112 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17113 masks.
17114 (vect_build_slp_tree_1): Fixed comment typo.
17115 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17116 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17117 loads for SLP only.
17118 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17119 vectorizable.
17120 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17121
17122 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17123
17124 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17125 Remove obsolete use_thunk reference.
17126 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17127 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17128 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17129 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17130 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17131 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17132 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17133 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17134 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17135
17136 2019-05-28 Nathan Sidwell <nathan@acm.org>
17137
17138 * tree.h (IDENTIFIER_ANON_P): New.
17139 (anon_aggrname_format, anon_aggname_p): Don't declare.
17140 (make_anon_name): Declare.
17141 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17142 (hash_tree): Likewise.
17143 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17144 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17145 (anon_cnt, make_anon_name): New.
17146
17147 2019-05-28 Martin Liska <mliska@suse.cz>
17148
17149 PR other/90315
17150 * opts-global.c (decode_options): Print help for all
17151 help_option_arguments.
17152 * opts.c (print_help): Add new argument.
17153 (common_handle_option): Remember all values into
17154 help_option_arguments.
17155 * opts.h (print_help): Add new argument.
17156
17157 2019-05-28 Martin Liska <mliska@suse.cz>
17158
17159 PR ipa/90555
17160 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17161 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17162 (func_checker::compare_bb): Call compare_loops.
17163
17164 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17165
17166 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17167 on sections construct.
17168 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17169 construct.
17170 (lower_omp_sections): Handle lastprivate conditional.
17171 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17172 lastprivate_conditional_map.
17173 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17174
17175 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17176 critical, taskgroup and section regions when looking for a region
17177 with non-NULL lastprivate_conditional_map.
17178
17179 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17180
17181 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17182 (*ix86_gen_sub3): Ditto.
17183 (*ix86_gen_sub3_carry): Ditto.
17184 (*ix86_gen_one_cmpl2): Ditto.
17185 (*ix86_gen_andsp): Ditto.
17186 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17187 (gen_and2_insn): New static function.
17188 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17189 Use gen_add3_insn instead of ix86_gen_add3.
17190 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17191 instead of ix86_gen_add3.
17192 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17193 Use gen_sub3_insn instead of ix86_gen_sub3.
17194 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17195 instead of ix86_gen_add3.
17196 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17197 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17198 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17199 * config/i386/i386-options.c (ix86_option_override_internal):
17200 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17201 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17202
17203 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17204
17205 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17206 and DW_OP_GNU_const_index opcodes.
17207
17208 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17209
17210 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17211
17212 2019-05-27 Richard Biener <rguenther@suse.de>
17213
17214 PR tree-optimization/90637
17215 * tree-ssa-sink.c (statement_sink_location): Honor the
17216 computed sink location for single-uses.
17217
17218 2019-05-27 Richard Biener <rguenther@suse.de>
17219
17220 PR middle-end/90610
17221 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17222 a bit-insert.
17223
17224 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17225
17226 * config/i386/i386.md (@sub<mode>3_carry): Rename
17227 from sub<mode>3_carry.
17228 (@leave_<mode>): New expander.
17229 (*leave): Rename from leave.
17230 (*leave_rex64): Rename from leave_rex64.
17231 (@monitorx_<mode>): Rename from monitorx_<mode>.
17232 (@clzero_<mode>): Rename from clzero_<mode>.
17233 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17234 from sse3_monitor_<mode>.
17235 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17236 (*ix86_gen_leave): Ditto.
17237 (*ix86_gen_monitor): Ditto.
17238 (*ix86_gen_monitorx): Ditto.
17239 (*ix86_gen_clzero): Ditto.
17240 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17241 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17242 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17243 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17244 Use gen_sse3_monitor instead of ix86_gen_monitor.
17245 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17246 instead of ix86_gen_monitorx.
17247 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17248 instead of ix86_gen_clzero.
17249 * config/i386/i386-options.c (ix86_option_override_internal):
17250 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17251 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17252
17253 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17254
17255 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17256 Rename from tls_global_dynamic_64_<mode>.
17257 (@tls_local_dynamic_base_64_<mode>): Rename from
17258 tls_local_dynamic_base_64_<mode>.
17259 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17260 Remove indirect function.
17261 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17262 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17263 instead of ix86_gen_tls_global_dynamic_64.
17264 Use gen_tls_local_dynamic_base_64 instead of
17265 ix86_gen_tls_local_dynamic_base_64.
17266 * config/i386/i386-options.c (ix86_option_override_internal):
17267 Do not initialize ix86_gen_tls_global_dynamic_64 and
17268 ix86_gen_tls_local_dynamic_base_64.
17269
17270 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17271
17272 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17273 Rename from pro_epilogue_adjust_stack_<mode>_add.
17274 (@pro_epilogue_adjust_stack_sub_<mode>)
17275 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17276 (@allocate_stack_worker_probe_<mode>):
17277 Rename from allocate_stack_worker_probe_<mode>.
17278 (allocate_stack): Use gen_allocate_stack_worker_probe.
17279 (probe_stack): Use gen_probe_stack_1.
17280 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17281 (@adjust_stack_and_probe_<mode>): Rename from
17282 adjust_stack_and_probe<mode>.
17283 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17284 (stack_protect_set): Use gen_stack_protect_set_1.
17285 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17286 (stack_protect_test): Use gen_stack_protect_test_1.
17287 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17288 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17289 Remove indirect function.
17290 (*ix86_gen_adjust_stack_and_probe): Ditto.
17291 (*ix86_gen_probe_stack_range): Ditto.
17292 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17293 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17294 (ix86_adjust_stack_and_probe_stack_clash): Use
17295 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17296 (ix86_adjust_stack_and_probe): Ditto.
17297 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17298 of ix86_gen_probe_stack_range.
17299 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17300 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17301 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17302 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17303 CODE_FOR_stack_protect_test_{si,di}.
17304 * config/i386/i386-options.c (ix86_option_override_internal):
17305 Do not initialize ix86_gen_allocate_stack_worker,
17306 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17307
17308 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17309
17310 * doc/invoke.texi (Link Options): Many editorial changes around
17311 -flinker-output.
17312
17313 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17314
17315 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17316 pre-Solaris 11 referene and most Studio compiler details.
17317
17318 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17319
17320 PR target/90530
17321 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17322 DImode to SImode in floating-point registers on 64-bit target.
17323 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17324 register_operand in xmpyu patterns.
17325
17326 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17327
17328 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17329 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17330 OMP_CLAUSE__REDUCTEMP_.
17331 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17332 OMP_CLAUSE__CONDTEMP_.
17333 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17334 * tree-pretty-print.c (dump_omp_clause): Likewise.
17335 * tree-nested.c (convert_nonlocal_omp_clauses,
17336 convert_local_omp_clauses): Likewise.
17337 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17338 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17339 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17340 on OMP_FOR.
17341 (gimplify_omp_for): Warn and disable conditional modifier from
17342 lastprivate on loop iterators.
17343 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17344 member.
17345 * omp-general.c (omp_extract_for_data): Initialize it.
17346 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17347 member.
17348 (delete_omp_context): Delete it.
17349 (lower_lastprivate_conditional_clauses): New function.
17350 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17351 handle lastprivate conditional clauses.
17352 (lower_reduction_clauses): Add CLIST argument, emit it into
17353 the critical section if any.
17354 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17355 lower_reduction_clauses callers.
17356 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17357 to lower_lastprivate_clauses.
17358 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17359 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17360 clist into a critical section if not emitted there already by
17361 lower_reduction_clauses.
17362 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17363 callers.
17364 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17365 conditional variables.
17366 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17367 clause is present.
17368 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17369 expand_omp_for_static_chunk): Handle lastprivate conditional.
17370 (expand_omp_for): Handle fd.lastprivate_conditional like
17371 fd.have_reductemp.
17372
17373 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17374
17375 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17376 kernel does not exit cleanly.
17377 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17378
17379 2019-05-24 Jason Merrill <jason@redhat.com>
17380
17381 Revert:
17382 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17383
17384 2019-05-24 Richard Biener <rguenther@suse.de>
17385
17386 PR testsuite/90607
17387 * tree-loop-distribution.c (struct partition): Add location
17388 member.
17389 (partition_alloc): Initialize all fields.
17390 (generate_memset_builtin): Use the location recorded in the
17391 partition for the generated call.
17392 (generate_memcpy_builtin): Likewise.
17393 (classify_partition): Record the location of a single store
17394 as location for the partition.
17395
17396 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17397
17398 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17399 for lo-part.
17400
17401 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17402
17403 PR target/90588
17404 * common/config/aarch64/aarch64-common.c
17405 (aarch64_rewrite_selected_cpu): Change local temporary variable
17406 type from unsigned long to uint64_t.
17407 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17408 aarch64_get_extension_string_for_isa_flags): Change declaration to
17409 match new definition by replacing unsigned long with uint64_t.
17410
17411 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17412
17413 PR target/90568
17414 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17415 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17416 Handle stack_protect_test_<mode> codegen similarly to corresponding
17417 sub instruction.
17418
17419 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17420
17421 * config/i386/darwin.h: Reject -mfentry*.
17422 * doc/sourcebuild.texi: Document mfentry target support.
17423
17424 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17425
17426 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17427 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17428 false for PC-relative functions.
17429 (rs6000_output_function_prologue): Change called function name to
17430 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17431 name,1" for PC-relative functions.
17432 (rs6000_elf_declare_function_name): Change called function name to
17433 rs6000_global_entry_point_prologue_needed_p.
17434
17435 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17436
17437 PR target/90552
17438 * config/i386/i386.c (gen_rtx_cost):
17439 Use ix86_tune_cost instead of ix86_cost.
17440
17441 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17442 Michael Meissner <meissner@linux.ibm.com>
17443 Segher Boessenkool <segher@kernel.crashing.org>
17444
17445 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17446 OPTION_MASK_PCREL.
17447 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17448 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17449 (rs6000_fndecl_pcrel_p): Likewise.
17450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17451 error if -mpcrel is requested without -mcpu=future.
17452 (rs6000_opt_masks): Add entry for pcrel.
17453 (rs6000_fndecl_pcrel_p): New function.
17454 (rs6000_pcrel_p): Likewise.
17455 * config/rs6000/rs6000.opt (mpcrel): New option.
17456 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17457
17458 2019-05-23 Jan Hubicka <jh@suse.cz>
17459 Martin Liska <mliska@suse.cz>
17460
17461 PR tree-optimization/90576
17462 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17463 poly_int_tree_p.
17464 (aliasing_component_refs_p): Fix three way size compare conditional;
17465 give up earlier in case we can not decide on equivalence.
17466
17467 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17468 Michael Meissner <meissner@linux.ibm.com>
17469 Segher Boessenkool <segher@kernel.crashing.org>
17470
17471 * config.gcc: Add future cpu.
17472 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17473 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17474 #define.
17475 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17476 (RS6000_CPU): New instantiation for future cpu.
17477 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17478 PROCESSOR_FUTURE.
17479 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17480 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17481 * config/rs6000/rs6000-tables.opt: Regenerate.
17482 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17483 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17484 (rs6000_machine_from_flags): Handle future cpu.
17485 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17486 PROCESSOR_POWER9 for now.
17487 (rs6000_adjust_cost): Likewise.
17488 (rs6000_issue_rate): Likewise.
17489 (rs6000_register_move_cost): Likewise.
17490 (rs6000_opt_masks): Add entry for future.
17491 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17492 (MASK_FUTURE): New #define.
17493 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17494 * config/rs6000/rs6000.opt (mfuture): New target option.
17495 * doc/invoke.texi (mcpu): Add future cpu.
17496
17497 2019-05-23 Martin Liska <mliska@suse.cz>
17498
17499 PR c++/90587
17500 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17501 operation points to a temporary (pointed via tree_to_wide_ref)
17502 that is out of scope after the &.
17503
17504 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17505
17506 PR c++/90592
17507 * doc/extend.texi (Function Names): Add missing word.
17508
17509 2019-05-23 Richard Biener <rguenther@suse.de>
17510
17511 PR tree-optimization/88440
17512 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17513 at -O[2s]+.
17514 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17515 generated call.
17516 (generate_memcpy_builtin): Likewise.
17517 (distribute_loop): Pass in whether to only distribute patterns.
17518 (prepare_perfect_loop_nest): Also allow size optimization.
17519 (pass_loop_distribution::execute): When optimizing a loop
17520 nest for size allow pattern replacement.
17521
17522 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17523
17524 PR target/90568
17525 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17526 of xor.
17527
17528 2019-05-23 Martin Liska <mliska@suse.cz>
17529
17530 PR sanitizer/90570
17531 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17532 expression similarly to gimplify_decl_expr.
17533
17534 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17535
17536 * cse.c (cse_dump_path): s/dump_file/f.
17537
17538 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17539
17540 PR c++/90462
17541 * diagnostic-format-json.cc: Include "selftest.h".
17542 (json_from_expanded_location): Only add "file" key for non-NULL
17543 file strings.
17544 (json_from_location_range): Don't add "start" and "finish"
17545 children if they are UNKNOWN_LOCATION.
17546 (selftest::test_unknown_location): New selftest.
17547 (selftest::test_bad_endpoints): New selftest.
17548 (selftest::diagnostic_format_json_cc_tests): New function.
17549 * json.cc (json::object::get): New function.
17550 (selftest::test_object_get): New selftest.
17551 (selftest::json_cc_tests): Call it.
17552 * json.h (json::object::get): New decl.
17553 * selftest-run-tests.c (selftest::run_tests): Call
17554 selftest::diagnostic_format_json_cc_tests.
17555 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17556 decl.
17557
17558 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17559 Andrew Stubbs <amd@codesourcery.com>
17560
17561 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17562 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17563 (kernel): Rename to...
17564 (main_kernel): ... this.
17565 (load_image): Load _init_array and _fini_array kernels.
17566 (run): Add argument for kernel to run.
17567 (main): Run init_array_kernel before main_kernel, and
17568 fini_array_kernel after.
17569 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17570 amdgpu_hsa_kernel attribute on functions.
17571 (gcn_disable_constructors): Delete.
17572 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17573 * config/gcn/crt0.c (size_t): Define.
17574 (_init_array, _fini_array): New.
17575 (__preinit_array_start, __preinit_array_end,
17576 __init_array_start, __init_array_end,
17577 __fini_array_start, __fini_array_end): Declare weak references.
17578
17579 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17580
17581 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17582
17583 2019-05-22 Jason Merrill <jason@redhat.com>
17584
17585 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17586
17587 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17588
17589 PR target/88483
17590 * config/i386/i386-options.c (ix86_init_machine_status): Set
17591 stack_frame_required to true.
17592 * config/i386/i386.c (ix86_get_frame_size): New function.
17593 (ix86_frame_pointer_required): Replace get_frame_size with
17594 ix86_get_frame_size.
17595 (ix86_compute_frame_layout): Likewise.
17596 (ix86_find_max_used_stack_alignment): Changed to void. Set
17597 stack_frame_required.
17598 (ix86_finalize_stack_frame_flags): Always call
17599 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17600 ix86_get_frame_size.
17601 * config/i386/i386.h (machine_function): Add stack_frame_required.
17602
17603 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17604
17605 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17606
17607 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17608
17609 * common/config/aarch64/aarch64-common.c
17610 (struct aarch64_option_extension, struct processor_name_to_arch,
17611 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17612 aarch64_contains_opt,
17613 aarch64_get_extension_string_for_isa_flags): Change type of
17614 variables storing flags to uint64_t.
17615 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17616 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17617 * config/aarch64/aarch64.c (struct processor,
17618 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17619 aarch64_validate_march, aarch64_override_options,
17620 aarch64_option_print, aarch64_handle_attr_isa_flags,
17621 aarch64_declare_function_name, aarch64_start_file): Make flag
17622 variables uint64_t.
17623 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17624 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17625 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17626 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17627 * config/aarch64/driver-aarch64.c
17628 (struct aarch64_arch_extension, struct aarch64_core_data,
17629 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17630 flag variables uint64_t.
17631 * doc/invoke.texi: Add documentation for new arguments.
17632
17633 2019-05-22 Richard Biener <rguenther@suse.de>
17634
17635 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17636 rewrite ...
17637 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17638
17639 2019-05-22 Martin Liska <mliska@suse.cz>
17640
17641 PR lto/90500
17642 * doc/extend.texi: Document the change.
17643
17644 2019-05-22 Richard Biener <rguenther@suse.de>
17645
17646 PR tree-optimization/90450
17647 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17648 (mem_ref_hasher::equal): Check it.
17649 (mem_ref_alloc): Initialize it.
17650 (gather_mem_refs_stmt): Set it.
17651
17652 2019-05-22 Richard Biener <rguenther@suse.de>
17653
17654 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17655 Add ABS_EXPR.
17656 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17657 as ABSU_EXPR.
17658
17659 2019-05-22 Alan Modra <amodra@gmail.com>
17660
17661 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17662 (ASM_CPU_SPEC): Conditionally add -many.
17663 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17664 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17665 (rs6000_file_start): ..extracted from here, and modified to
17666 test all ISA bits.
17667 (rs6000_output_function_prologue): Emit .machine as necessary.
17668
17669 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17670
17671 PR middle-end/90553
17672 * ira-lives.c (process_bb_node_lives): Consider defs
17673 for a call insn to be die before the call, not after.
17674
17675 * function.c (assign_parm_setup_block): Raise alignment of
17676 stacked parameter only for STRICT_ALIGNMENT targets.
17677
17678 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17679
17680 * config/rs6000/constraints.md (define_register_constraint "wz"):
17681 Delete.
17682 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17683 RS6000_CONSTRAINT_wz.
17684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17685 (rs6000_init_hard_regno_mode_ok): Adjust.
17686 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
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 "wl"):
17692 Delete.
17693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17694 RS6000_CONSTRAINT_wl.
17695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17696 (rs6000_init_hard_regno_mode_ok): Adjust.
17697 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
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 "wm"):
17703 Delete.
17704 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17705 RS6000_CONSTRAINT_wm.
17706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17707 (rs6000_init_hard_regno_mode_ok): Adjust.
17708 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" 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 "wk"):
17714 Delete.
17715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17716 RS6000_CONSTRAINT_wk.
17717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17718 (rs6000_init_hard_regno_mode_ok): Adjust.
17719 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17720 * doc/md.texi (Machine Constraints): Adjust.
17721
17722 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17723
17724 * config/rs6000/constraints.md (define_register_constraint "wj"):
17725 Delete.
17726 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17727 RS6000_CONSTRAINT_wj.
17728 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17729 (rs6000_init_hard_regno_mode_ok): Adjust.
17730 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17731 (VS_64dm): Delete.
17732 * config/rs6000/vsx.md: Ditto.
17733 * doc/md.texi (Machine Constraints): Adjust.
17734
17735 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17736
17737 * config/rs6000/constraints.md (define_register_constraint "wh"):
17738 Delete.
17739 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17740 RS6000_CONSTRAINT_wh.
17741 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17742 (rs6000_init_hard_regno_mode_ok): Adjust.
17743 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17744 * doc/md.texi (Machine Constraints): Adjust.
17745
17746 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17747
17748 PR target/90547
17749 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17750 Avoid calling gen_lowpart with CONST operand.
17751
17752 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17753
17754 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17755 field template_last_to_copy.
17756 (ssa_create_duplicates): Set it, and use it. Attempt to
17757 preserve more debug stmts.
17758
17759 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17760
17761 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17762 (signbit<mode>2): New expander
17763
17764 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17765
17766 PR bootstrap/87338
17767 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17768 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17769
17770 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17771
17772 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17773 %ebx and %ecx bafore calling cpuid with leaf 1 or
17774 non-constant leaf argument.
17775
17776 2019-05-21 Alan Modra <amodra@gmail.com>
17777
17778 PR target/90545
17779 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17780 power9 direct move cost.
17781
17782 2019-05-21 Richard Biener <rguenther@suse.de>
17783
17784 PR middle-end/90510
17785 * fold-const.c (fold_read_from_vector): New function.
17786 * fold-const.h (fold_read_from_vector): Declare.
17787 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17788 single-element insert permutations. Canonicalize selector
17789 further and fix issue with last commit.
17790
17791 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17792
17793 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17794 parameter with default value false to declaration.
17795 (split_edges_for_insertion): New inline function. Wrapper for
17796 split_critical_edges with for_edge_insertion_p = true.
17797 * tree-cfg.c (split_critical_edges): Don't split non-critical
17798 edges if for_edge_insertion_p is false. Fix whitespace.
17799 * tree-ssa-pre.c (pass_pre::execute): Call
17800 split_edges_for_insertion instead of split_critical_edges.
17801 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17802 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17803 (pass_data_sink_code): Update function name in the comment.
17804
17805 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17806
17807 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17808 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17809 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17810 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17811 positives.
17812
17813 2019-05-21 Martin Liska <mliska@suse.cz>
17814
17815 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17816 an extra newline.
17817 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17818 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17819 vec_lvsr.
17820 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17821 Quote a C type.
17822 (rs6000_function_arg): Likewise.
17823 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17824 (rs6000_expand_ternop_builtin): Use interval syntax.
17825 (get_element_number): Likewise.
17826 (altivec_expand_builtin): Likewise.
17827 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17828
17829 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17830
17831 PR c++/59813
17832 PR target/90418
17833 * function.h (struct function): Add calls_eh_return member.
17834 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17835 gimplifying __builtin_eh_return call.
17836 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17837 to cfun.
17838 (expand_call_inline): Or in src_cfun->calls_eh_return into
17839 dst_cfun->calls_eh_return.
17840 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17841 cfun->calls_eh_return.
17842 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17843 * lto-streamer-out.c (output_struct_function_base): Write
17844 calls_eh_return.
17845
17846 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17847
17848 PR rtl-optimization/43147
17849 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17850 IX86_BUILTIN_SHUFPD.
17851
17852 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17853
17854 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17855 (refs_may_alias_p_1): ... here; update stats.
17856 (refs_may_alias_p): Do not update stats here.
17857
17858 2019-05-20 Richard Biener <rguenther@suse.de>
17859
17860 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17861 doesn't produce pointers.
17862 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17863 the first operand points to.
17864
17865 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17866
17867 * tree-ssa-alias.c (compare_sizes): New function.
17868 (sompare_type_sizes): New function
17869 (aliasing_component_refs_p): Use it.
17870 (indirect_ref_may_alias_decl_p): Likewise.
17871
17872 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17873
17874 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17875
17876 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17877
17878 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17879 (LIBLSAN_EARLY_SPEC): Likewise.
17880 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17881
17882 2019-05-20 Martin Liska <mliska@suse.cz>
17883
17884 * config/i386/i386.c (ix86_libc_has_fast_function):
17885 Add ATTRIBUTE_UNUSED for the argument.
17886
17887 2019-05-20 Richard Biener <rguenther@suse.de>
17888
17889 * gimple-match-head.c: Include vec-perm-indices.h.
17890 * generic-match-head.c: Likewise.
17891 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17892 is included.
17893 * fold-const.c (fold_vec_perm): Export.
17894 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17895 (match.pd): ...here.
17896
17897 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17898
17899 * cfgloop.h (struct loop): Add simdlen member.
17900 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17901 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17902 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17903 as new argument to autovectorize_vector_sizes target hook. If
17904 loop->simdlen, pick up vector size where the vectorization factor
17905 is equal to loop->simd, and if there is none, fall back to the first
17906 successful one.
17907 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17908 caller.
17909 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17910 * omp-general.c (omp_max_vf): Likewise.
17911 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17912 * tree-vect-slp.c (vect_slp_bb): Likewise.
17913 * target.def (autovectorize_vector_sizes): Add ALL argument and
17914 document it.
17915 * doc/tm.texi: Adjust documentation.
17916 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17917 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17918 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17919 bool argument.
17920 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17921 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17922 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17923 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17924 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17925 preferred vector size is not 512-bit or 256-bit, just put those
17926 unpreferred ones last.
17927
17928 2019-05-20 Martin Liska <mliska@suse.cz>
17929
17930 * targhooks.c (default_libc_has_fast_function): New function.
17931 * targhooks.h (default_libc_has_fast_function): Likewise.
17932
17933 2019-05-20 Martin Liska <mliska@suse.cz>
17934
17935 PR middle-end/90263
17936 * builtins.c (expand_builtin_memory_copy_args): When having a
17937 target with fast mempcpy implementation do now use memcpy.
17938 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17939 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17940 * doc/tm.texi: Likewise.
17941 * doc/tm.texi.in: Likewise.
17942 * target.def:
17943 * expr.c (emit_block_move_hints): Add 2 new arguments.
17944 * expr.h (emit_block_move_hints): Bail out when libcall
17945 to memcpy would be used.
17946
17947 2019-05-20 Martin Liska <mliska@suse.cz>
17948
17949 * profile-count.c: Add vertical spacing in order
17950 to separate functions.
17951 * profile-count.h: Likewise.
17952
17953 2019-05-20 Martin Liska <mliska@suse.cz>
17954
17955 * profile-count.h: Do not use full qualified
17956 names if possible.
17957 * profile-count.c (profile_count::to_frequency): Likewise.
17958
17959 2019-05-20 Martin Liska <mliska@suse.cz>
17960
17961 * profile-count.h (enum profile_quality): Use capital letters
17962 for enum value names. Use the adjusted names.
17963 * profile-count.c: Use the adjusted names.
17964
17965 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17966
17967 * config/rs6000/constraints.md (define_register_constraint "wH"):
17968 Delete.
17969 (define_register_constraint "wI"): Delete.
17970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17971 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17973 (rs6000_init_hard_regno_mode_ok): Adjust.
17974 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17975 resp. "d", or with "wa" as appropriate, all with "p8v".
17976 * config/rs6000/vsx.md: Ditto.
17977 * doc/md.texi (Machine Constraints): Adjust.
17978
17979 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17980
17981 * config/rs6000/constraints.md (define_register_constraint "wy"):
17982 Delete.
17983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17984 RS6000_CONSTRAINT_wy.
17985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17986 (rs6000_init_hard_regno_mode_ok): Adjust.
17987 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17988 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17989 (define_mode_attr Fisa): New.
17990 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17991 * doc/md.texi (Machine Constraints): Adjust.
17992
17993 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17994
17995 * config/rs6000/constraints.md (define_register_constraint "wu"):
17996 Delete.
17997 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17998 RS6000_CONSTRAINT_wu.
17999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18000 (rs6000_init_hard_regno_mode_ok): Adjust.
18001 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18002 both with "p8v".
18003 (define_mode_attr Fa): Delete.
18004 * config/rs6000/vsx.md: Ditto.
18005 * doc/md.texi (Machine Constraints): Adjust.
18006
18007 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18008
18009 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18010 Delete.
18011 (define_register_constraint "wK"): Delete.
18012 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18013 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18015 (rs6000_init_hard_regno_mode_ok): Adjust.
18016 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18017 Replace "wK" constraint by "wH" with "p9v".
18018 * config/rs6000/vsx.md: Ditto.
18019 * doc/md.texi (Machine Constraints): Adjust.
18020
18021 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18022
18023 * config/rs6000/constraints.md (define_register_constraint "wb"):
18024 Delete.
18025 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18026 RS6000_CONSTRAINT_wb.
18027 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18028 (rs6000_init_hard_regno_mode_ok): Adjust.
18029 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18030 * config/rs6000/vsx.md: Ditto.
18031 * doc/md.texi (Machine Constraints): Adjust.
18032
18033 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18034
18035 * config/rs6000/constraints.md (define_register_constraint "wo"):
18036 Delete.
18037 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18038 RS6000_CONSTRAINT_wo.
18039 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18040 (rs6000_init_hard_regno_mode_ok): Adjust.
18041 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18042 * config/rs6000/altivec.md: Ditto.
18043 * doc/md.texi (Machine Constraints): Adjust.
18044
18045 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18046
18047 * config/darwin-c.c (darwin_register_objc_includes): Do not
18048 prepend the sysroot when building gnu-runtime header search
18049 paths.
18050
18051 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18052
18053 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18054 instead of direct output of the asm.
18055
18056 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18057
18058 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18059 argument to be type bool (was int before).
18060 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18061 at first use. Use type bool for some variables. Fix a theoretical
18062 eh_return bug for svr4.
18063
18064 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18065
18066 * config/rs6000/rs6000.md (isa): New attribute.
18067 (enabled): New attribute.
18068
18069 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18070
18071 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18072 assemble_start_function and assemble_end_function.
18073
18074 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18075
18076 PR middle-end/89433
18077 * omp-general.c (oacc_verify_routine_clauses): Change formal
18078 parameters. Add checking if already marked with an OpenACC
18079 'routine' directive. Adjust all users.
18080
18081 PR middle-end/89433
18082 * omp-general.c (oacc_build_routine_dims): Move some of its
18083 processing into...
18084 (oacc_verify_routine_clauses): ... this new function.
18085 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18086
18087 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18088
18089 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18090 formating of picbase labels to match other ports.
18091
18092 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18093
18094 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18095 in the generated code.
18096
18097 2019-05-16 Martin Sebor <msebor@redhat.com>
18098
18099 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18100 identifiers, keywords, operators, and types in diagnostics. Correct
18101 quoting, spelling, and sentence capitalization issues.
18102 (expand_builtin_atomic_is_lock_free): Same.
18103 (fold_builtin_next_arg): Same.
18104 * cfgexpand.c (expand_one_var): Same.
18105 (tree_conflicts_with_clobbers_p): Same.
18106 (expand_asm_stmt): Same.
18107 (verify_loop_structure): Same.
18108 * cgraphunit.c (process_function_and_variable_attributes): Same.
18109 * collect-utils.c (collect_execute): Same.
18110 * collect2.c (maybe_run_lto_and_relink): Same.
18111 (is_lto_object_file): Same.
18112 (scan_prog_file): Same.
18113 * convert.c (convert_to_real_1): Same.
18114 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18115 * except.c (verify_eh_tree): Same.
18116 * gcc.c (execute): Same.
18117 (eval_spec_function): Same.
18118 (run_attempt): Same.
18119 (driver::set_up_specs): Same.
18120 (compare_debug_auxbase_opt_spec_function): Same.
18121 * gcov-tool.c (unlink_gcda_file): Same.
18122 (do_merge): Same.
18123 (do_rewrite): Same.
18124 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18125 * gimplify.c (gimplify_asm_expr): Same.
18126 (gimplify_adjust_omp_clauses): Same.
18127 * hsa-gen.c (gen_hsa_addr_insns): Same.
18128 (gen_hsa_insns_for_load): Same.
18129 (gen_hsa_cmp_insn_from_gimple): Same.
18130 (gen_hsa_insns_for_operation_assignment): Same.
18131 (gen_get_level): Same.
18132 (gen_hsa_alloca): Same.
18133 (omp_simple_builtin::generate): Same.
18134 (gen_hsa_atomic_for_builtin): Same.
18135 (gen_hsa_insns_for_call): Same.
18136 * input.c (dump_location_info): Same.
18137 * ipa-devirt.c (compare_virtual_tables): Same.
18138 * ira.c (ira_setup_eliminable_regset): Same.
18139 * lra-assigns.c (lra_assign): Same.
18140 * lra-constraints.c (lra_constraints): Same.
18141 * lto-streamer-in.c (lto_input_mode_table): Same.
18142 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18143 (merge_and_complain): Same.
18144 (compile_offload_image): Same.
18145 (compile_images_for_offload_targets): Same.
18146 (debug_objcopy): Same.
18147 (run_gcc): Same.
18148 (main): Same.
18149 * opts.c (print_specific_help): Same.
18150 (parse_no_sanitize_attribute): Same.
18151 (print_help): Same.
18152 (handle_param): Same.
18153 * plugin.c (add_new_plugin): Same.
18154 (parse_plugin_arg_opt): Same.
18155 (try_init_one_plugin): Same.
18156 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18157 operators, and types in diagnostics. Correct quoting and spelling
18158 issues.
18159 * read-rtl-function.c (parse_edge_flag_token): Same.
18160 (function_reader::parse_enum_value): Same.
18161 * reg-stack.c (check_asm_stack_operands): Same.
18162 * regcprop.c (validate_value_data): Same.
18163 * sched-rgn.c (make_pass_sched_fusion): Same.
18164 * stmt.c (check_unique_operand_names): Same.
18165 * targhooks.c (default_target_option_pragma_parse): Same.
18166 * tlink.c (recompile_files): Same.
18167 * toplev.c (process_options): Same.
18168 (do_compile): Same.
18169 * trans-mem.c (diagnose_tm_1): Same.
18170 (ipa_tm_scan_irr_block): Same.
18171 (ipa_tm_diagnose_transaction): Same.
18172 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18173 format a tree code name in a diagnostic.
18174 (verify_types_in_gimple_min_lval): Same.
18175 (verify_types_in_gimple_reference): Same.
18176 (verify_gimple_call): Same.
18177 (verify_gimple_assign_unary): Same.
18178 (verify_gimple_assign_binary): Same.
18179 (verify_gimple_assign_ternary): Same.
18180 (verify_gimple_assign_single): Same.
18181 (verify_gimple_switch): Same.
18182 (verify_gimple_label): Same.
18183 (verify_gimple_phi): Same.
18184 (verify_gimple_in_seq): Same.
18185 (verify_eh_throw_stmt_node): Same.
18186 (collect_subblocks): Same.
18187 (gimple_verify_flow_info): Same.
18188 (do_warn_unused_result): Same.
18189 * tree-inline.c (expand_call_inline): Same.
18190 * tree-into-ssa.c (update_ssa): Same.
18191 * tree.c (tree_int_cst_elt_check_failed): Same.
18192 (tree_vec_elt_check_failed): Same.
18193 (omp_clause_operand_check_failed): Same.
18194 (verify_type_variant): Same.
18195 (verify_type): Same.
18196 * value-prof.c (verify_histograms): Same.
18197 * varasm.c (assemble_start_function): Same.
18198
18199 2019-05-16 Martin Sebor <msebor@redhat.com>
18200
18201 * config/i386/i386-expand.c (get_element_number): Quote keywords
18202 and other internal names in diagnostics. Adjust other diagnostic
18203 formatting issues noted by -Wformat-diag.
18204 * config/i386/i386-features.c
18205 (ix86_mangle_function_version_assembler_name): Same.
18206 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18207 * config/i386/i386.c (ix86_function_type_abi): Same.
18208 (ix86_function_ms_hook_prologue): Same.
18209 (classify_argument): Same.
18210 (ix86_expand_prologue): Same.
18211 (ix86_md_asm_adjust): Same.
18212 (ix86_memmodel_check): Same.
18213
18214 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18215
18216 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18217 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18218 and fpxx modes.
18219
18220 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18221
18222 PR target/90497
18223 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18224 intrinsics without SSE/SSE2/SSSE3.
18225 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18226 check.
18227 (*mmx_uavgv8qi3): Likewise.
18228
18229 2019-05-17 Richard Biener <rguenther@suse.de>
18230
18231 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18232 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18233
18234 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18235
18236 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18237 vec_sldw insn pattern.
18238
18239 2019-05-17 Richard Biener <rguenther@suse.de>
18240
18241 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18242
18243 2019-05-17 Martin Liska <mliska@suse.cz>
18244
18245 PR driver/90496
18246 * toplev.c (output_stack_usage): With LTO and sanitizer it
18247 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18248 has no file location.
18249
18250 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18251
18252 PR c++/90484
18253 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18254 sz0 is equal to sz1, instead return false in that case.
18255
18256 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18257 has non-constant expression, force sctx.lane and use two
18258 argument IFN_GOMP_SIMD_LANE instead of single argument.
18259 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18260 two argument IFN_GOMP_SIMD_LANE without lhs.
18261 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18262 member.
18263 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18264 Define.
18265 (LOOP_REQUIRES_VERSIONING): Or in
18266 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18267 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18268 simd_if_cond.
18269 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18270 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18271 from simd if clause if needed.
18272
18273 2019-05-16 Richard Biener <rguenther@suse.de>
18274
18275 * tree-affine.c (expr_to_aff_combination): New function split
18276 out from...
18277 (tree_to_aff_combination): ... here.
18278 (aff_combination_expand): Avoid building a GENERIC tree.
18279
18280 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18281
18282 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18283 assemble_start_function and assemble_end_function calls.
18284 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18285 assemble_start_function and assemble_end_function.
18286 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18287 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18288 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18289 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18290 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18291 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18292 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18293 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18294 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18295 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18296 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18297 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18298 Likewise.
18299 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18300 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18301 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18302 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18303 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18304 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18305 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18306 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18307 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18308 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18309 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18310 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18311 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18312 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18313 Likewise.
18314 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18315 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18316 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18317
18318 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18319
18320 * tree-ssa-alias.c (alias_stats): Add
18321 aliasing_component_refs_p_may_alias and
18322 aliasing_component_refs_p_no_alias.
18323 (dump_alias_stats): Print aliasing_component_refs_p stats.
18324 (aliasing_component_refs_p): Update stats.
18325
18326 2019-05-16 Martin Liska <mliska@suse.cz>
18327
18328 PR lto/90500
18329 * multiple_target.c (expand_target_clones): Do not allow
18330 target_clones being used with a symbol that is an alias.
18331
18332 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18333
18334 PR tree-optimization/90394
18335 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18336 positives rather than ICE for cases where (code2 == NE_EXPR
18337 && code1 == BIT_AND_EXPR).
18338
18339 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18340
18341 PR fortran/90329
18342 * tree-core.h (struct tree_decl_common): Document
18343 decl_nonshareable_flag for PARM_DECLs.
18344 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18345 * calls.c (expand_call): Don't try tail call if caller
18346 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18347 passed on the stack and callee needs to pass any arguments on the
18348 stack.
18349 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18350 else if instead of series of mutually exclusive ifs. Handle
18351 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18352 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18353
18354 * lto-streamer.h (LTO_major_version): Bump to 9.
18355
18356 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18357
18358 PR tree-optimization/90106
18359 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18360 new parameter as new internal function call, also move it to new
18361 basic block.
18362 (use_internal_fn): Pass internal function call to
18363 shrink_wrap_one_built_in_call_with_conds.
18364
18365 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18366
18367 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18368 max_vf to 1.
18369 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18370 safelen_int and set loop->dont_vectorize.
18371
18372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18373
18374 PR target/89021
18375 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18376 SSE/SSE2/SSSE3.
18377 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18378 Likewise.
18379 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18380 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18381 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18382 is defined.
18383
18384 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18385
18386 PR target/89021
18387 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18388 define_insn_and_split to support SSE emulation.
18389 (*vec_extractv2sf_0): Likewise.
18390 (*vec_extractv2sf_1): Likewise.
18391 (*vec_extractv2si_0): Likewise.
18392 (*vec_extractv2si_1): Likewise.
18393 (*vec_extractv2si_zext_mem): Likewise.
18394 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18395 (vec_extractv2sf_1 splitter): Likewise.
18396 (vec_extractv2sfsf): Likewise.
18397 (vec_setv2si): Likewise.
18398 (vec_extractv2si_1 splitter): Likewise.
18399 (vec_extractv2sisi): Likewise.
18400 (vec_setv4hi): Likewise.
18401 (vec_extractv4hihi): Likewise.
18402 (vec_setv8qi): Likewise.
18403 (vec_extractv8qiqi): Likewise.
18404 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18405 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18406 (vec_extractv2sisi): Likewise.
18407 (vec_extractv4hihi): Likewise.
18408 (vec_extractv8qiqi): Likewise.
18409 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18410 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18411 (vec_initv2sisi): Likewise.
18412 (vec_initv4hihi): Likewise.
18413 (vec_initv8qiqi): Likewise.
18414 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18415 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18416 (vec_setv4hi): Likewise.
18417 (vec_setv8qi): Likewise.
18418
18419 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18420
18421 PR target/89021
18422 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18423 TARGET_MMX_WITH_SSE.
18424 (MMXMODE:*mov<mode>_internal): Likewise.
18425 (MMXMODE:movmisalign<mode>): Likewise.
18426
18427 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18428
18429 PR target/89021
18430 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18431 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18432 (sse2_cvtpd2pi): Ditto.
18433 (sse2_cvttpd2pi): Ditto.
18434 (*vec_concatv2sf_sse4_1): Ditto.
18435 (*vec_concatv2sf_sse): Ditto.
18436 (*vec_concatv2si_sse4_1): Ditto.
18437 (*vec_concatv2si): Ditto.
18438 (*vec_concatv4si_0): Ditto.
18439 (*vec_concatv2di_0): Ditto.
18440
18441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18442
18443 PR target/89021
18444 * config/i386/sse.md (abs<mode>2): 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_palignrdi): Changed to
18450 define_insn_and_split to support SSE emulation.
18451
18452 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18453
18454 PR target/89021
18455 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18456
18457 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18458
18459 PR target/89021
18460 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18461 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18462 SSE emulation.
18463
18464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18465
18466 PR target/89021
18467 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18468 or TARGET_MMX_WITH_SSE.
18469 (*ssse3_pmulhrswv4hi3): Add 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_pmaddubsw): Add SSE emulation.
18475
18476 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18477
18478 PR target/89021
18479 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18480 Changed to define_insn_and_split to support SSE emulation.
18481
18482 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18483
18484 PR target/89021
18485 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18486 Changed to define_insn_and_split to support SSE emulation.
18487
18488 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18489
18490 PR target/89021
18491 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18492 (*mmx_<emms>): This.
18493 (mmx_<emms>): New expander.
18494
18495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18496
18497 PR target/89021
18498 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18499 support.
18500 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18501
18502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18503
18504 PR target/89021
18505 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18506
18507 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18508
18509 PR target/89021
18510 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18511
18512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18513
18514 PR target/89021
18515 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18516 TARGET_MMX_WITH_SSE.
18517 (*mmx_uavgv4hi3): Add SSE emulation.
18518
18519 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18520
18521 PR target/89021
18522 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18523 and TARGET_MMX_WITH_SSE.
18524 (*mmx_uavgv8qi3): Add SSE emulation.
18525
18526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18527
18528 PR target/89021
18529 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18530 maskmovdqu for __MMX_WITH_SSE__.
18531
18532 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18533
18534 PR target/89021
18535 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18536 TARGET_MMX and TARGET_MMX_WITH_SSE.
18537 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18538
18539 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18540
18541 PR target/89021
18542 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18543 define_insn_and_split to support SSE emulation.
18544
18545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18546
18547 PR target/89021
18548 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18549 and TARGET_MMX_WITH_SSE.
18550 (mmx_<code>v8qi3): Likewise.
18551 (smaxmin:<code>v4hi3): New.
18552 (umaxmin:<code>v8qi3): Likewise.
18553 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18554 (umaxmin:*mmx_<code>v8qi3): Likewise.
18555
18556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18557
18558 PR target/89021
18559 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18560 TARGET_MMX_WITH_SSE.
18561 (*mmx_pinsrw): Add SSE emulation.
18562
18563 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18564
18565 PR target/89021
18566 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18567
18568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18569
18570 PR target/89021
18571 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18572 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18573 SSE emulation.
18574
18575 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18576
18577 PR target/89021
18578 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18579 (sse_cvttps2pi): Likewise.
18580
18581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18582
18583 PR target/89021
18584 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18585 TARGET_MMX_WITH_SSE.
18586 (mmx_pshufw_1): Add SSE emulation.
18587 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18588 TARGET_MMX_WITH_SSE to support SSE emulation.
18589
18590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18591
18592 PR target/89021
18593 * config/i386/constraints.md (Yw): New constraint.
18594 * config/i386/mmx.md (*vec_dupv2si): Changed to
18595 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18596 support SSE emulation.
18597
18598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18599
18600 PR target/89021
18601 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18602 TARGET_MMX_WITH_SSE.
18603 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18604 support.
18605 (mmx_gt<mode>3): Likewise.
18606
18607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18608
18609 PR target/89021
18610 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18611 TARGET_MMX_WITH_SSE. Add SSE support.
18612
18613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18614
18615 PR target/89021
18616 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18617 TARGET_MMX_WITH_SSE.
18618 (any_logic:<code><mode>3): New.
18619 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18620 Add SSE support.
18621
18622 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18623
18624 PR target/89021
18625 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18626 TARGET_MMX_WITH_SSE. Add SSE emulation.
18627 (mmx_<shift_insn><mode>3): Likewise.
18628 (ashr<mode>3): New.
18629 (<shift_insn><mode>3): Likewise.
18630
18631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18632
18633 PR target/89021
18634 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18635 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18636
18637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18638
18639 PR target/89021
18640 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18641 TARGET_MMX_WITH_SSE.
18642 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18643 SSE support.
18644
18645 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18646
18647 PR target/89021
18648 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18649 TARGET_MMX_WITH_SSE.
18650 (mulv4hi3): New.
18651 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18652 support.
18653
18654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18655
18656 PR target/89021
18657 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18658 (plusminus:mmx_<plusminus_insn><mode>3): Check
18659 TARGET_MMX_WITH_SSE.
18660 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18661 (<plusminus_insn><mode>3): New.
18662 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18663 (*mmx_<plusminus_insn><mode>3): Likewise.
18664
18665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18666
18667 PR target/89021
18668 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18669 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18670 prototype.
18671 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18672 define_insn_and_split to support SSE emulation.
18673 (mmx_punpcklbw): Likewise.
18674 (mmx_punpckhwd): Likewise.
18675 (mmx_punpcklwd): Likewise.
18676 (mmx_punpckhdq): Likewise.
18677 (mmx_punpckldq): Likewise.
18678
18679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18680 Uros Bizjak <ubizjak@gmail.com>
18681
18682 PR target/89021
18683 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18684 New function.
18685 (ix86_split_mmx_pack): Likewise.
18686 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18687 New prototype.
18688 (ix86_split_mmx_pack): Likewise.
18689 * config/i386/i386.md (mmx_isa): New.
18690 (enabled): Also check mmx_isa.
18691 * config/i386/mmx.md (any_s_truncate): New code iterator.
18692 (s_trunsuffix): New code attr.
18693 (mmx_packsswb): Removed.
18694 (mmx_packssdw): Likewise.
18695 (mmx_packuswb): Likewise.
18696 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18697 MMX packsswb/packuswb with SSE2.
18698 (mmx_packssdw): Likewise.
18699 * config/i386/predicates.md (register_mmxmem_operand): New.
18700
18701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18702
18703 PR target/89021
18704 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18705 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18706 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18707 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18708 (ix86_vector_mode_supported_p): Likewise.
18709 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18710
18711 2019-05-15 Martin Liska <mliska@suse.cz>
18712
18713 PR middle-end/90478
18714 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18715 Check for overflow.
18716
18717 2019-05-15 Richard Biener <rguenther@suse.de>
18718
18719 * tree-into-ssa.c (pass_build_ssa::execute): Run
18720 update_address_taken before going into SSA.
18721
18722 2019-05-15 Richard Biener <rguenther@suse.de>
18723
18724 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18725 as __BIT_FIELD_REF with type with -gimple.
18726
18727 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18728
18729 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18730 semantically equivalent branches (left over after prior refactorings).
18731
18732 2019-05-15 Richard Biener <rguenther@suse.de>
18733
18734 PR tree-optimization/88828
18735 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18736 bogus check.
18737
18738 2019-05-14 Richard Biener <rguenther@suse.de>
18739
18740 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18741 as __VIEW_CONVERT with -gimple.
18742
18743 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18744
18745 PR target/82920
18746 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18747 Darwin.
18748
18749 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18750
18751 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18752 define_split to become a define_insn_and_split.
18753
18754 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18755
18756 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18757 arguments.
18758 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18759 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18760 (sibcall_epilogue): Adjust.
18761 (epilogue): Adjust.
18762
18763 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18764
18765 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18766 to unsupported ones.
18767 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18768 * config.host: Likewise.
18769 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18770 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18771 __svr4__]: Remove "brand" fallback.
18772 [!KSTAT_DATA_STRING]: Remove.
18773 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18774 to *-*-solaris2*.
18775 (comdat_group): Likewise.
18776 (set_have_as_tls): Likewise.
18777 (gcc_cv_target_dl_iterate_phdr): Likewise.
18778 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18779 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18780 * configure: Regenerate.
18781 * doc/install.texi: Simplify Solaris target triplets.
18782 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18783 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18784 Remove Solaris 10 references.
18785 Remove obsolete Solaris bug reference.
18786 (Specific, sparc-sun-solaris2.10): Remove.
18787
18788 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18789
18790 * config/i386/i386.md (any_div): New code iterator.
18791 (paired_mod): New code attribute.
18792 (sgnprefix): Handle DIV and UDIV RTXes.
18793 (u): Ditto.
18794 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18795 and udivmod<mode>4 patterns using any_div code iterator.
18796 (divmod splitters): Macroize splitters using any_div code iterator.
18797 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18798 (*udivmodsi4_pow2_zext_2): Ditto.
18799 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18800 and *udivmod<mode>4_noext patterns using any_div code iterator.
18801 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18802 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18803 patterns using any_div code iterator.
18804 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18805 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18806 patterns using any_div code iterator.
18807 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18808 udivmodhiqi3 patterns using any_extend code iterator.
18809
18810 2019-05-14 Richard Biener <rguenther@suse.de>
18811 H.J. Lu <hongjiu.lu@intel.com>
18812
18813 PR tree-optimization/88828
18814 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18815 permuting in a single non-constant element not extracted
18816 from a vector.
18817
18818 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18819
18820 * internal-fn.def (SIGNBIT): New.
18821 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18822 defined.
18823 (signbitv4sf2): Likewise.
18824
18825 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18826
18827 PR target/90357
18828 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18829 next insn when the SRC reg is dead.
18830
18831 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18832
18833 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18834 (alloc_cand_and_find_basis): Ditto.
18835 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18836 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18837 (create_add_imm_cand, slsr_process_cast): Ditto.
18838 (slsr_process_copy, replace_mult_candidate): Ditto.
18839 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18840 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18841 (pass_strength_reduction::execute): Init the first NULL element.
18842
18843 2019-05-13 Nathan Sidwell <nathan@acm.org>
18844
18845 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18846 (run_attempt): Reformat line break.
18847
18848 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18849
18850 PR target/90418
18851 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18852 data registers in sibcall epilogues.
18853 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18854
18855 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18856
18857 PR target/89221
18858 * configure.ac (--enable-frame-pointer):
18859 Disable by default for cygwin and mingw.
18860 * configure: Regenerate.
18861
18862 2019-05-13 Nathan Sidwell <nathan@acm.org>
18863
18864 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18865 piece of code.
18866 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18867 (gen_member_die): Move abstract origin check earlier. Only VARs
18868 can be static_inline_p. Simplify splicing control flow.
18869
18870 2019-05-13 Richard Biener <rguenther@suse.de>
18871
18872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18873 VIEW_CONVERT_EXPR.
18874 (vect_build_slp_tree_1): Likewise.
18875
18876 2019-05-13 Richard Biener <rguenther@suse.de>
18877
18878 PR tree-optimization/90402
18879 * tree-if-conv.c (tree_if_conversion): Value number only
18880 the loop body by making the latch an exit of the region
18881 as well.
18882 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18883 processing PHIs.
18884 (do_rpo_vn): Deal with multiple edges into the entry block
18885 that are not backedges inside the region by skipping PHIs
18886 of the entry block.
18887
18888 2019-05-13 Richard Biener <rguenther@suse.de>
18889
18890 PR tree-optimization/90316
18891 * tree-ssa-pre.c (insert_aux): Fold into ...
18892 (insert): ... this function. Use a RPO walk to reduce the
18893 number of required iterations.
18894
18895 2019-05-13 Martin Liska <mliska@suse.cz>
18896
18897 PR tree-optimization/90416
18898 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18899 string instead of passing the second part as va_arg argument.
18900
18901 2019-05-13 Martin Liska <mliska@suse.cz>
18902
18903 PR gcov-profile/90380
18904 * gcov.c (handle_cycle): Do not support zero cycle count,
18905 it should not be possible.
18906 (path_contains_zero_cycle_arc): New function.
18907 (circuit): Ignore zero cycle arc counts.
18908
18909 2019-05-13 Martin Liska <mliska@suse.cz>
18910
18911 PR gcov-profile/90380
18912 * gcov.c (enum loop_type): Remove the enum and
18913 the operator.
18914 (handle_cycle): Assert that we should not reach
18915 a negative count.
18916 (circuit): Use loop_found instead of a tri-state loop_type.
18917 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18918 happen.
18919
18920 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18921
18922 PR target/82920
18923 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18924 (ix86_output_indirect_branch_via_reg): Use output mechanism
18925 accounting for __USER_LABEL_PREFIX__.
18926 (ix86_output_indirect_branch_via_push): Likewise.
18927 (ix86_output_function_return): Likewise.
18928 (ix86_output_indirect_function_return): Likewise.
18929
18930 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18931
18932 * doc/md.texi: Document use of code attributes in rtx patterns.
18933 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18934 * read-rtl.c (find_code): Split out search loops into...
18935 (maybe_find_code): ...this new function.
18936 (check_code_iterator): Make the error message more informative.
18937 (check_code_attribute): New function.
18938 (rtx_reader::rtx_alloc_for_name): Likewise.
18939 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18940 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18941 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18942 <max_opp> directly as an rtx code instead of via a match_operator.
18943 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18944 (<su>abd<mode>_3): Update accordingly.
18945
18946 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18947
18948 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18949 is given, print the state of the EH "save world" computation for
18950 Darwin.
18951
18952 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18953
18954 PR c++/59813
18955 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18956 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18957
18958 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18959
18960 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18961 Use pinsrd for TARGET_SSE4_1.
18962 * config/i386/sse.md (movdi_to_sse): Ditto.
18963
18964 2019-05-10 Richard Biener <rguenther@suse.de>
18965
18966 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18967 (do_rpo_vn): Initialize next_value_id.
18968
18969 2019-05-10 Martin Liska <mliska@suse.cz>
18970
18971 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18972 Fix plural form.
18973
18974 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18975
18976 PR tree-optimization/90385
18977 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18978 arguments of the exit phis.
18979
18980 PR c++/90383
18981 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18982 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18983 id->do_not_fold.
18984 (copy_tree_body_r): Likewise.
18985 (copy_fn): Set id.do_not_fold to true.
18986
18987 2019-05-10 Martin Liska <mliska@suse.cz>
18988
18989 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18990 Reapply changes from r269790.
18991
18992 2019-05-10 Martin Liska <mliska@suse.cz>
18993
18994 PR middle-end/90340
18995 * doc/invoke.texi: New params.
18996 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18997 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18998 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18999 Use it.
19000 * tree-switch-conversion.h (struct jump_table_cluster):
19001 Likewise.
19002
19003 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19004
19005 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19006
19007 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19008
19009 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19010
19011 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19012
19013 PR rtl-optimization/88879
19014 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19015
19016 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19017
19018 PR target/90405
19019 * config/arm/arm.c (callee_saved_reg_p): Move before
19020 thumb_find_work_register.
19021 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19022 thumb_find_work_register. Only call df_get_live_out once.
19023 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19024 (thumb_find_work_register): Use
19025 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19026 algorithms to locate a spare call clobbered reg.
19027
19028 2019-05-09 Martin Liska <mliska@suse.cz>
19029
19030 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19031 and MAX_EXPR in GIMPLE FE format.
19032
19033 2019-05-09 Martin Liska <mliska@suse.cz>
19034
19035 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19036 * gimple-pretty-print.c (dump_gimple_bb_header):
19037 Dump BB count.
19038 (pp_cfg_jump): Dump edge probability.
19039 * profile-count.c (profile_quality_as_string): Simplify
19040 with a static array.
19041 (parse_profile_quality): New function.
19042 (profile_count::dump): Simplify with a static array.
19043 (profile_count::from_gcov_type): Add new argument.
19044 * profile-count.h (parse_profile_quality): Likewise.
19045 * predict.h (set_hot_bb_threshold): New.
19046 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19047 New param.
19048 * predict.c (get_hot_bb_threshold): Set from the new param.
19049 (set_hot_bb_threshold): New.
19050
19051 2019-05-09 Richard Biener <rguenther@suse.de>
19052
19053 PR tree-optimization/90395
19054 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19055 rewrite vector stores that throw internally.
19056
19057 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19058
19059 * cif-code.def (CHKP): Remove.
19060
19061 PR target/89221
19062 * configure.ac (--enable-frame-pointer): Disable by default for
19063 GNU systems.
19064 * configure: Regenerate.
19065
19066 2019-05-09 Alan Modra <amodra@gmail.com>
19067
19068 PR target/89271
19069 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19070 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19071 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19072 cost for general <-> vsx when direct moves are available.
19073 Cost union classes at minimal cost for any reg in the class.
19074 Correct calculation for moves between vsx, float, and altivec.
19075 Don't return a low cost for moves between special regs. Don't
19076 use hard coded register numbers.
19077 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19078 (rs6000_ira_change_pseudo_allocno_class): New function.
19079 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19080 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19081 alternatives.
19082 (movsi_internal1): Don't disparage vector alternatives.
19083 (mov<mode>_internal): Likewise, excepting alternative that
19084 will be split.
19085 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19086 we <- b alternative.
19087
19088 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19089
19090 PR c++/59813
19091 PR tree-optimization/89060
19092 * tree-ssa-live.h (live_vars_map): New typedef.
19093 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19094 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19095 (struct compute_live_vars_data): New type.
19096 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19097 live_vars_at_stmt, destroy_live_vars): New functions.
19098 * tree-tailcall.c: Include tree-ssa-live.h.
19099 (live_vars, live_vars_vec): New global variables.
19100 (find_tail_calls): Perform variable life analysis before punting.
19101 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19102 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19103 member.
19104 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19105 Perform variable life analysis to select variables that really need
19106 clobbers added.
19107 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19108 instead set id->eh_landing_pad_dest and assert it is the same.
19109 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19110
19111 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19112 Richard Earnshaw <rearnsha@arm.com>
19113
19114 PR target/88167
19115 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19116 function.
19117 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19118 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19119 register if both the epilogue and prologue can use call-clobbered
19120 regs.
19121 (thumb1_unexpanded_epilogue): Use
19122 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19123 picking temporaries for restoring high regs to match that of the
19124 prologue where possible.
19125 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19126 the list of work registers. Detect if the return address is still live
19127 at the end of the prologue and avoid using it for a work register if so.
19128 If the return address is not live, add LR to the list of pushable regs
19129 after the first pass.
19130
19131 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19132
19133 PR tree-optimization/90078
19134 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19135 (INFTY): Increase the value for infinite cost.
19136 (struct comp_cost): Promote type of members to int64_t.
19137 (infinite_cost): Don't set complexity in initialization.
19138 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19139 overflows to infinite_cost.
19140 (adjust_setup_cost): Promote type of parameter and cost computation
19141 to int64_t.
19142 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19143 int64_t.
19144 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19145 cost computation to int64_t.
19146 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19147 int64_t's format specifier in dump.
19148
19149 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19150
19151 PR tree-optimization/90240
19152 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19153 with respect to scaling factor pre-computed for each basic block.
19154 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19155 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19156 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19157 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19158 live range for array of loop's basic blocks. Cleanup aux field of
19159 loop's basic blocks.
19160
19161 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19162
19163 PR tree-optimization/90356
19164 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19165
19166 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19167
19168 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19169 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19170 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19171 (ix86_handle_option): Handle -mavx512bf16.
19172 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19173 to extra_headers.
19174 * config/i386/avx512bf16vlintrin.h: New.
19175 * config/i386/avx512bf16intrin.h: New.
19176 * config/i386/cpuid.h (bit_AVX512BF16): New.
19177 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19178 * config/i386/i386-builtin-types.def: Add new types.
19179 * config/i386/i386-builtin.def: Add new builtins.
19180 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19181 __AVX512BF16__.
19182 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19183 (ix86_option_override_internal): Handle BF16.
19184 (ix86_valid_target_attribute_inner_p): Ditto.
19185 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19186 * config/i386/i386-builtin.c (enum processor_features): Add
19187 F_AVX512BF16.
19188 (static const _isa_names_table isa_names_table): Ditto.
19189 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19190 (PTA_AVX512BF16): Ditto.
19191 * config/i386/i386.opt: Add -mavx512bf16.
19192 * config/i386/immintrin.h: Include avx512bf16intrin.h
19193 and avx512bf16vlintrin.h.
19194 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19195 avx512f_cvtneps2bf16_<mode><mask_name>,
19196 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19197 * config/i386/subst.md (mask_half): Add new subst.
19198 * doc/invoke.texi: Document -mavx512bf16.
19199
19200 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19201
19202 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19203 Delete declaration.
19204 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19205 (rs6000_debug_legitimize_reload_address): Delete.
19206 (rs6000_legitimize_reload_address_ptr): Delete.
19207 (rs6000_option_override_internal): Adjust.
19208 (mem_operand_gpr): Adjust comment.
19209 (legitimate_lo_sum_address_p): Ditto.
19210 (rs6000_legitimize_reload_address): Delete.
19211 (rs6000_debug_legitimize_reload_address): Delete.
19212 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19213
19214 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19215
19216 PR target/89765
19217 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19218 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19219 to compute vector element selector for both constant and variable
19220 operands.
19221
19222 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19223
19224 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19225 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19226 ashrdi3_cvt using SWI48 mode iterator.
19227
19228 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19229
19230 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19231 (aarch64_<su>abd<mode>_3): Likewise.
19232 (*aarch64_<su>abd<mode>_3): New define_insn.
19233 (<sur>sad<vsi2qi>): New define_expand.
19234 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19235 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19236 (build_vect_cond_expr): Likewise.
19237
19238 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19239
19240 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19241 clobbers outside of accessible_reg_set.
19242 * config/i386/i386.c (ix86_conditional_register_usage):
19243 Disable register sets by clearing corresponding bits in
19244 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19245 call_used_regs and don't clear corresponding reg_names array members.
19246
19247 2019-05-07 Richard Biener <rguenther@suse.de>
19248
19249 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19250 not specified still compute a comp_vectype for invariant
19251 compares.
19252
19253 2019-05-07 Richard Biener <rguenther@suse.de>
19254
19255 PR tree-optimization/90316
19256 * tree-ssa-pre.c (translate_vuse_through_block): When
19257 same_valid is NULL do not bother to search for a virtual
19258 PHI continuation.
19259 (phi_translate_1): When operands changed we cannot keep
19260 the same value-number so do not bother to ask whether
19261 that's possible from translate_vuse_through_block.
19262
19263 2019-05-07 Martin Liska <mliska@suse.cz>
19264
19265 * bitmap.c (bitmap_register): Come up with
19266 alloc_descriptor_max_uid and assign it for
19267 a new bitmap.
19268 (register_overhead): Use get_descriptor as
19269 a descriptor.
19270 (release_overhead): New.
19271 (bitmap_elem_to_freelist): Call it.
19272 (bitmap_elt_clear_from): Likewise.
19273 (bitmap_obstack_free): Likewise.
19274 (bitmap_move): Sensitively release memory.
19275 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19276 (bitmap_initialize): Initialize alloc_descriptor to zero.
19277 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19278
19279 2019-05-07 Richard Biener <rguenther@suse.de>
19280
19281 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19282 we build a SLP node. Remove max_size and limiting.
19283 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19284
19285 2019-05-07 Richard Biener <rguenther@suse.de>
19286
19287 PR tree-optimization/90316
19288 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19289 limit by reference.
19290 (walk_non_aliased_vuses): Take walking limit argument.
19291 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19292 walking if it is reached instead of just counting.
19293 (get_continuation_for_phi): Likewise.
19294 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19295 limiting to the callback.
19296 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19297 (vn_reference_lookup_3): Likewise.
19298 (vn_reference_lookup_pieces): Likewise.
19299 (vn_reference_lookup): Likewise.
19300 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19301 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19302 (avail_exprs_stack::lookup_avail_expr): Likewise.
19303
19304 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19305
19306 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19307 for comparaible types in the second direction even if first one
19308 hits incomparable type.
19309
19310 2019-05-07 Richard Biener <rguenther@suse.de>
19311
19312 PR lto/90369
19313 * lto-wrapper.c (debug_objcopy): Use the original filename
19314 including archive offset for the filename used for -save-temps.
19315
19316 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19317
19318 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19319 detection.
19320
19321 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19322 Hongtao Liu <hongtao.liu@intel.com>
19323
19324 PR target/89750
19325 PR target/86444
19326 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19327 Modified, original implementation isn't correct.
19328
19329 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19330
19331 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19332 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19333 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19334 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19335 (FRAME_POINTER_REGNUM): Change numbering.
19336 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19337 (alt_reg_names): Adjust.
19338 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19339 fixed.
19340 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19341 (DWARF_FRAME_REGISTERS): Delete.
19342 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19343 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19344 Adjust.
19345 (REG_ALLOC_ORDER): Adjust.
19346 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19347 (REG_CLASS_CONTENTS): Adjust.
19348 (RETURN_ADDR_RTX): Change comment.
19349 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19350 instead of 67.
19351 (REGISTER_NAMES): Adjust.
19352 (ADDITIONAL_REGISTER_NAMES): Adjust.
19353 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19354
19355 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19356
19357 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19358 Delete.
19359 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19360 (DWARF_FRAME_REGISTERS): Adjust.
19361 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19362 Adjust.
19363 (REG_ALLOC_ORDER): Adjust.
19364 (enum reg_class): Delete SPR_REGS.
19365 (REG_CLASS_NAMES): Delete SPR_REGS.
19366 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19367 (REGISTER_NAMES): Adjust.
19368 (ADDITIONAL_REGISTER_NAMES): Adjust.
19369 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19370 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19371 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19372 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19373 (htm_spr_regno): Delete.
19374 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19375 argument.
19376 (rs6000_dbx_register_number): Adjust.
19377
19378 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19379
19380 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19381
19382 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19383
19384 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19385 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19386
19387 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19388
19389 PR tree-optimization/88709
19390 PR tree-optimization/90271
19391 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19392 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19393 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19394 variable.
19395 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19396 of the store merging group is larger than
19397 PARAM_STORE_MERGING_MAX_SIZE parameter.
19398 (split_group): Add bzero_first argument. If set, always emit first
19399 the first store which must be = {} of the whole area and then for the
19400 rest of the stores consider all zero bytes as paddings.
19401 (imm_store_chain_info::output_merged_store): Check if first store
19402 is = {} of the whole area and if yes, determine which setting of
19403 bzero_first for split_group gives smaller number of stores. Adjust
19404 split_group callers.
19405 (lhs_valid_for_store_merging_p): Allow decls.
19406 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19407 no elts.
19408 (pass_store_merging::process_store): Likewise.
19409
19410 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19411
19412 PR target/89424
19413 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19414 handling of V1TImode.
19415
19416 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19417
19418 PR target/89221
19419 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19420 and enable_frame_pointer ...
19421 * configure.ac: ... here. Update help strings for
19422 --enable-frame-pointer.
19423 * configure: Regenerate.
19424 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19425 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19426 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19427 (USE_X86_64_FRAME_POINTER): Ditto.
19428
19429 2019-05-06 Martin Liska <mliska@suse.cz>
19430
19431 * config.gcc: Append to target_gtfiles and fix indentation.
19432
19433 2019-05-06 Richard Biener <rguenther@suse.de>
19434
19435 PR tree-optimization/90358
19436 * tree-vect-stmts.c (get_group_load_store_type): Properly
19437 detect unused upper half of load.
19438 (vectorizable_load): Likewise.
19439
19440 2019-05-06 Richard Biener <rguenther@suse.de>
19441
19442 PR tree-optimization/88828
19443 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19444 (simplify_vector_constructor): ...here. Handle constants in
19445 the constructor.
19446
19447 2019-05-06 Richard Biener <rguenther@suse.de>
19448
19449 PR tree-optimization/90328
19450 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19451 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19452 is valid in the loop nest before using it.
19453 (initialize_data_dependence_relation): Adjust.
19454 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19455 loop as loop-nest to dr_may_alias_p.
19456
19457 2019-05-06 Richard Biener <rguenther@suse.de>
19458
19459 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19460
19461 2019-05-06 Richard Biener <rguenther@suse.de>
19462
19463 PR tree-optimization/90316
19464 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19465 compute target on demand.
19466 (get_continuation_for_phi): Remove code walking stmts to
19467 get to a target virtual operand which could end up being
19468 quadratic.
19469
19470 2019-05-06 Martin Liska <mliska@suse.cz>
19471
19472 PR sanitizer/90312
19473 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19474 when -mabi is selected to a non-default version.
19475
19476 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19477 Martin Liska <mliska@suse.cz>
19478
19479 * Makefile.in: Add lto-dump.texi.
19480 * cgraph.h: Add new functions get_visibility_string and
19481 get_symtab_type_string.
19482 * doc/gcc.texi: Include lto-dump section.
19483 * doc/lto-dump.texi: New file.
19484 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19485 (parse_dump_option): Factor out this function.
19486 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19487 (parse_dump_option): Export the function.
19488 * symtab.c (symtab_node::get_visibility_string): New function.
19489 (symtab_node::get_symtab_type_string): Likewise.
19490
19491 2019-05-06 Martin Liska <mliska@suse.cz>
19492
19493 * config/i386/i386-builtins.c: New file.
19494 * config/i386/i386-builtins.h: New file.
19495 * config/i386/i386-expand.c: New file.
19496 * config/i386/i386-expand.h: New file.
19497 * config/i386/i386-features.c: New file.
19498 * config/i386/i386-features.h: New file.
19499 * config/i386/i386-options.c: New file.
19500 * config/i386/i386-options.h: New file.
19501 * config.gcc: Add new files into extra_objs and
19502 target_gtfiles.
19503 * config/i386/i386.c: Split content of the file
19504 into newly introduced files.
19505 * config/i386/i386.h: Declare common variables
19506 and macros.
19507 * config/i386/t-i386: Define dependencies for new files.
19508
19509 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19510
19511 PR target/89400
19512 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19513 Restrict 'all' variant to 32-bit configurations.
19514 (unaligned_loadhiu): Likewise.
19515 (unaligned_storehi): Likewise.
19516 (unaligned_storesi): Likewise.
19517 (unaligned_loadhis): Disable when compiling for thumb1.
19518
19519 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19520
19521 PR tree-optimization/90269
19522 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19523 Ignore clobbers.
19524
19525 2019-05-03 Martin Liska <mliska@suse.cz>
19526
19527 * hash-map.h: Add is_empty function.
19528 * hash-set.h: Likewise.
19529 * hash-table.h: Likewise.
19530 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19531 elements () == 0 (and similar usages).
19532 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19533 * gimplify.c (gimplify_bind_expr): Likewise.
19534 (gimplify_switch_expr): Likewise.
19535 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19536 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19537 * postreload-gcse.c (dump_hash_table): Likewise.
19538 (gcse_after_reload_main): Likewise.
19539 * predict.c (combine_predictions_for_bb): Likewise.
19540 * tree-parloops.c (reduction_phi): Likewise.
19541 (separate_decls_in_region): Likewise.
19542 (transform_to_exit_first_loop): Likewise.
19543 (gen_parallel_loop): Likewise.
19544 (gather_scalar_reductions): Likewise.
19545 (try_create_reduction_list): Likewise.
19546 * var-tracking.c (dump_vars): Likewise.
19547 (emit_notes_for_changes): Likewise.
19548 (vt_emit_notes): Likewise.
19549
19550 2019-05-03 Richard Biener <rguenther@suse.de>
19551
19552 PR tree-optimization/90316
19553 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19554 before running VN.
19555
19556 2019-05-03 Richard Biener <rguenther@suse.de>
19557
19558 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19559 peeling for gaps by loading only lower halves of vectors
19560 if possible.
19561 (vectorizable_load): Likewise.
19562
19563 2019-05-03 Richard Biener <rguenther@suse.de>
19564
19565 PR middle-end/89518
19566 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19567
19568 2019-05-03 Richard Biener <rguenther@suse.de>
19569
19570 PR middle-end/87314
19571 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19572 Handle STRING_CST vs DECL or STRING_CST.
19573
19574 2019-05-03 Richard Biener <rguenther@suse.de>
19575
19576 PR tree-optimization/88963
19577 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19578 vector loads feeding only BIT_FIELD_REFs to component
19579 loads. Rewrite stores fed by CONSTRUCTORs to component
19580 stores.
19581
19582 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19583
19584 * opts.h (finish_options): Remove lang_mask argument.
19585 (print_help, help_option_argument): Declare.
19586 * opts.c (print_help): Remove forward declaration, no longer static.
19587 (finish_options): Remove lang_mask argument, don't call print_help
19588 here.
19589 * opts-global.c (decode_options): Adjust finish_option caller, call
19590 print_help here.
19591
19592 PR tree-optimization/90303
19593 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19594 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19595
19596 2019-05-03 Richard Biener <rguenther@suse.de>
19597
19598 PR tree-optimization/89698
19599 * gimple-fold.c (canonicalize_constructor_val): Early out
19600 for constants, handle unfolded INTEGER_CSTs as they appear in
19601 C++ virtual table ctors.
19602
19603 2019-05-03 Richard Biener <rguenther@suse.de>
19604
19605 * passes.c (execute_function_todo): Remove dead code.
19606
19607 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19608
19609 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19610 the internal register number, for any "real" register.
19611
19612 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19613
19614 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19615 correct numbers for TFHAR, TFIAR, TEXASR.
19616
19617 2019-05-02 Richard Biener <rguenther@suse.de>
19618
19619 PR tree-optimization/89653
19620 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19621 update-address-taken before the pass.
19622 * passes.def (pass_tree_loop_init): Put comment before it.
19623
19624 2019-05-02 Richard Biener <rguenther@suse.de>
19625
19626 PR tree-optimization/89509
19627 * tree-ssa-structalias.c (compute_dependence_clique): Look
19628 at the first subvar when determining whether it is restrict.
19629
19630 2019-05-02 Richard Biener <rguenther@suse.de>
19631
19632 PR tree-optimization/90273
19633 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19634 useless debug stmts.
19635
19636 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19637
19638 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19639 ACLE branch.
19640 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19641 SVE ACLE branch.
19642 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19643 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19644 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19645 (vectorizable_reduction): Use the functions above to vectorize in a
19646 fully masked loop codes that don't have a conditional internal
19647 function.
19648
19649 2019-05-02 Martin Liska <mliska@suse.cz>
19650
19651 * cgraphclones.c: Call valid_attribute_p with 1 for
19652 target_clone.
19653 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19654 it's for target attribute.
19655 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19656 Add new boolean argument.
19657 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19658 Likewise.
19659 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19660 to ix86_valid_target_attribute_inner_p.
19661 (ix86_valid_target_attribute_p): Pass flags argument to
19662 ix86_valid_target_attribute_inner_p.
19663 (get_builtin_code_for_version): Use 0 as it's target attribute.
19664
19665 2019-05-02 Martin Liska <mliska@suse.cz>
19666
19667 * gcc.c (process_command): Add dummy file only
19668 if n_infiles == 0.
19669 * opts-global.c (decode_options): Pass lang_mask.
19670 * opts.c (print_help): New function.
19671 (finish_options): Print --help if help_option_argument
19672 is set.
19673 (common_handle_option): Factor out content of OPT__help_
19674 into print_help.
19675 * opts.h (finish_options): Add new argument.
19676
19677 2019-05-02 Martin Liska <mliska@suse.cz>
19678
19679 PR target/88809
19680 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19681 With -minline-all-stringops use inline expansion using 4B loop.
19682 * doc/invoke.texi: Document the change of
19683 -minline-all-stringops.
19684
19685 2019-05-01 Jeff Law <law@redhat.com>
19686
19687 PR tree-optimization/88797
19688 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19689 PHI feeds a conditional on the RHS of an assignment.
19690
19691 2019-04-30 Andrew Waterman <andrew@sifive.com>
19692 Jim Wilson <jimw@sifive.com>
19693
19694 * config/riscv/constraints.md (L): New.
19695 * config/riscv/predicates.md (lui_operand): New.
19696 (sfb_alu_operand): New.
19697 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19698 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19699 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19700 * config/riscv/risc.md (type): Add sfb_alu.
19701 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19702 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19703 (branch_zero<mode>): Delete.
19704 (mov<mode>cc): New.
19705 (mov<GPR:mode><X:mode>cc): Likewise.
19706 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19707
19708 2019-04-30 Nathan Sidwell <nathan@acm.org>
19709
19710 * tree.h (MARK_TS_EXP): New.
19711
19712 2019-04-30 Martin Liska <mliska@suse.cz>
19713
19714 * opts.c (enable_warning_as_error): Provide hints
19715 for unknown options.
19716
19717 2019-04-30 Martin Liska <mliska@suse.cz>
19718
19719 PR debug/90288
19720 * doc/invoke.texi: Add missing dash for gas-locview-support
19721 and gno-as-locview-support.
19722
19723 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19724
19725 PR target/89093
19726 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19727 whitespace at the start of target attribute string.
19728
19729 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19730
19731 PR target/86538
19732 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19733 Define __ARM_FEATURE_ATOMICS.
19734
19735 2019-04-30 Martin Liska <mliska@suse.cz>
19736
19737 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19738 into built_in_function enum. Remove code for endp == 2 and
19739 use BUILT_IN_* constants.
19740 (gimple_fold_builtin): Call the function with fcode.
19741
19742 2019-04-30 Martin Liska <mliska@suse.cz>
19743
19744 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19745 DECL_FUNCTION_CODE into ix86_builtins enum before
19746 the switch statement.
19747
19748 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19749
19750 PR tree-optimization/89475
19751 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19752 calls.
19753
19754 2019-04-30 Martin Liska <mliska@suse.cz>
19755
19756 PR translation/90274
19757 * opts.c (print_filtered_help): Wrap string in _(...).
19758
19759 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19760
19761 PR tree-optimization/90240
19762 Revert:
19763 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19764
19765 PR tree-optimization/90078
19766 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19767 checks for infinite_cost overflow.
19768
19769 2019-04-29 Jeff Law <law@redhat.com>
19770
19771 * passes.def: Move -Wrestrict pass after copy propagation.
19772
19773 2019-04-29 Maya Rashish <coypu@sdf.org>
19774
19775 * config.gcc (default_gnu_indirect_function): Default to yes
19776 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19777 sparc*-*-netbsd*, x86_64-*-netbsd*.
19778
19779 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19780
19781 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19782 where cond2 is NE_EXPR.
19783 (is_value_included_in): Update comment.
19784
19785 2019-04-29 Richard Biener <rguenther@suse.de>
19786
19787 PR tree-optimization/90278
19788 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19789 EH on comparison simplification.
19790
19791 2019-04-29 Jason Merrill <jason@redhat.com>
19792
19793 PR c++/82081 - tail call optimization breaks noexcept
19794 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19795 nothrow function to a might-throw function into a tail call.
19796
19797 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19798
19799 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19800 (DDR_INNER_LOOP): Likewise.
19801 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19802 (initialize_data_dependence_relation): Likewise.
19803 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19804
19805 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19806
19807 PR rtl-optimization/90257
19808 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19809 return value.
19810
19811 Revert the revert:
19812 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19813
19814 PR target/90178
19815 Revert:
19816 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19817
19818 Revert the revert:
19819 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19820
19821 Revert:
19822 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19823
19824 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19825
19826 2019-04-29 Richard Biener <rguenther@suse.de>
19827
19828 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19829 rhs issue a reset.
19830
19831 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19832
19833 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19834 varasm.h, and netbsd-protos.h.
19835
19836 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19837
19838 PR target/89261
19839 * config/i386/i386-protos.h (ix86_data_alignment): Change
19840 the second argument type to unsigned int.
19841 * config/i386/i386.c (ix86_data_alignment): Change "align"
19842 argument type to unsigned int.
19843
19844 2019-04-27 Martin Liska <mliska@suse.cz>
19845
19846 PR middle-end/90258
19847 * opt-suggestions.c (option_proposer::build_option_suggestions):
19848 When get_valid_option_values returns empty values, add the
19849 misspelling candidate.
19850
19851 2019-04-26 Jim Wilson <jimw@sifive.com>
19852
19853 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19854 parameter.
19855 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19856 Pass orig_mode to riscv_build_integer.
19857 (riscv_split_integer): Pass mode to riscv_move_integer.
19858 (riscv_legitimize_const_move): Likewise.
19859 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19860 promoted_mode. Replace force_reg call with code to load constant into
19861 promoted reg and then subreg it for the store.
19862 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19863 riscv_move_integer.
19864
19865 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19866
19867 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19868 corrupt codes.
19869
19870 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19871
19872 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19873 commentary about the encoding of precision.
19874
19875 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19876
19877 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19878 * config/i386/t-freebsd64: New file.
19879 * config.gcc: Add the t-freebsd64 for multilib support.
19880
19881 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19882
19883 * doc/extend.texi (vector_size): Add missing comma after @xref.
19884
19885 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19886
19887 * BASE-VER: Set to 10.0.0.
19888
19889 2019-04-25 Richard Biener <rguenther@suse.de>
19890
19891 PR middle-end/89765
19892 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19893 VIEW_CONVERT_EXPR into one operating on an rvalue.
19894
19895 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19896
19897 PR target/89929
19898 * config/i386/i386.c (feature_priority): Moved to file scope.
19899 (processor_features): Likewise.
19900 (processor_model): Likewise.
19901 (_arch_names_table): Likewise.
19902 (arch_names_table): Likewise.
19903 (_feature_list): Removed.
19904 (feature_list): Likewise.
19905 (_isa_names_table): Moved to file scope. Add priority.
19906 (isa_names_table): Likewise.
19907 (get_builtin_code_for_version): Replace feature_list with
19908 isa_names_table. Update error message for P_ZERO priority.
19909
19910 2019-04-25 Richard Biener <rguenther@suse.de>
19911
19912 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19913 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19914
19915 2019-04-24 Jeff Law <law@redhat.com>
19916
19917 PR tree-optimization/90037
19918 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19919 * passes.def: Replace all instance of phi-only cprop with the
19920 lattice propagator. Move propagation pass from after erroneous
19921 path isolation to before erroneous path isolation.
19922 * tree-ssa-phionlycprop.c: Remove.
19923
19924 2019-04-24 Richard Biener <rguenther@suse.de>
19925
19926 PR middle-end/90213
19927 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19928 by size and BITS_PER_UNIT on poly-wide-ints.
19929
19930 2019-04-25 Richard Biener <rguenther@suse.de>
19931
19932 PR middle-end/90194
19933 * match.pd: Add pattern to simplify view-conversion of an
19934 empty constructor.
19935
19936 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19937
19938 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19939 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19940 for Go on 32 bit AIX.
19941 * config/rs6000/aix72.h: Likewise.
19942
19943 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19944
19945 PR target/90193
19946 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19947 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19948
19949 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19950
19951 PR target/89952
19952 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19953 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19954 for restored hard frame pointer.
19955 (s390_sched_dependencies_evaluation): Implement new target hook.
19956 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19957
19958 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19959
19960 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19961 * config/arc/arc.c (arc_init): Cleanup warning message.
19962 (arc_override_options): Likewise.
19963
19964 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19965
19966 PR target/90187
19967 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19968 a register if both if_true and if_false are MEMs.
19969
19970 PR tree-optimization/90208
19971 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19972 after labels of new_bb, not before them.
19973
19974 PR tree-optimization/90211
19975 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19976 which are not SSA_NAMEs.
19977
19978 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19979
19980 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19981 AArch64.
19982 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19983
19984 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19985
19986 PR rtl-optimization/87979
19987 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19988 not equal zero.
19989
19990 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19991
19992 PR rtl-optimization/84032
19993 * modulo-sched.c (ps_insn_find_column): Change condition so that
19994 branch will always be the last insn in a row inside partial
19995 schedule.
19996
19997 2019-04-23 Richard Biener <rguenther@suse.de>
19998
19999 PR debug/90131
20000 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20001 dest_single_pred_p argument.
20002 (remove_forwarder_block): Adjust.
20003 (remove_forwarder_block_with_phi): Likewise.
20004
20005 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20006 Bernd Edlinger <bernd.edlinger@hotmail.de>
20007 Jakub Jelinek <jakub@redhat.com>
20008
20009 PR target/89093
20010 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20011 if used with general-regs-only.
20012 (arm_conditional_register_usage): Don't add non-general regs if
20013 general-regs-only.
20014 (arm_valid_target_attribute_rec): Handle general-regs-only.
20015 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20016 general-regs-only.
20017 (TARGET_HARD_FLOAT_SUB): Define.
20018 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20019 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20020 (TARGET_REALLY_IWMMXT2): Likewise.
20021 * config/arm/arm.opt: Add -mgeneral-regs-only.
20022 * doc/extend.texi: Document ARM general-regs-only target.
20023 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20024
20025 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20026
20027 PR tree-optimization/90078
20028 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20029 checks for infinite_cost overflow.
20030
20031 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20032
20033 PR tree-optimization/90021
20034 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20035 and check univariate against it.
20036 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20037 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20038
20039 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20040
20041 PR target/90178
20042 Revert:
20043 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20044
20045 Revert the revert:
20046 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20047
20048 Revert:
20049 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20050
20051 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20052
20053 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20054
20055 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20056 names using operand format, rather than hard-wired.
20057 (speculation_barrier): Likewise.
20058
20059 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20060
20061 PR tree-optimization/88055
20062 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20063 (gen_one_condition): Use it if !HONOR_NANS.
20064
20065 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20066
20067 PR middle-end/90139
20068 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20069 assign_temp instead of gen_reg_rtx.
20070
20071 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20072
20073 PR translation/90118
20074 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20075 Add missing space before %<.
20076
20077 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20078
20079 PR rtl-optimization/87871
20080 * ira-lives.c (make_object_dead): Don't add conflicts to
20081 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20082
20083 2019-04-18 Martin Sebor <msebor@redhat.com>
20084
20085 PR middle-end/89797
20086 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20087 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20088 assuming type size fits in SHWI.
20089
20090 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20091
20092 PR ipa/85051
20093 * ipa-inline.c (flatten_function): New parameter UPDATE.
20094 (ipa_inline, early_inliner): Use it.
20095
20096 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20097
20098 * fold-const.c (int_const_binop): Return early on failure.
20099
20100 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20101
20102 PR middle-end/85164
20103 * combine.c (force_int_to_mode): Cast the argument rather than
20104 the result of known_alignment.
20105 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20106
20107 2019-04-18 Richard Biener <rguenther@suse.de>
20108
20109 PR debug/90131
20110 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20111 out from ...
20112 (remove_forwarder_block): ... here.
20113 (remove_forwarder_block_with_phi): Also move debug stmts here.
20114
20115 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20116
20117 PR translation/79183
20118 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20119 inform where appropriate.
20120
20121 2019-04-18 Richard Biener <rguenther@suse.de>
20122
20123 * tree.c (get_qualified_type): Put found type variants at the
20124 head of the variant list.
20125
20126 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20127
20128 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20129
20130 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20131
20132 PR target/90125
20133 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20134 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20135 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20136 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20137 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20138
20139 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20140
20141 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20142 even for allocno's with no conflicts.
20143 (print_conflicts): Print an extra newline.
20144
20145 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20146
20147 * auto-inc-dec.c (attempt_change): Set the alignment of the
20148 temporary memory to that of the original.
20149
20150 2019-04-17 Joao Moreira <jmoreira@suse.de>
20151
20152 * targhooks.c (default_print_patchable_function_entry): Emit
20153 __patchable_function_entries section with writable flags to allow
20154 relocation resolution.
20155
20156 2019-04-17 Jonny Grant <jg@jguk.org>
20157
20158 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20159
20160 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20161
20162 PR middle-end/90095
20163 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20164 on lowpart SUBREGs.
20165
20166 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20167
20168 * config/arc/arc.c (arc_init): Format diagnostic string.
20169 (arc_override_options): Likewise.
20170 (check_if_valid_regno_const): Likewise.
20171 (arc_reorg): Likewise.
20172
20173 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20174
20175 PR target/17108
20176 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20177 name.
20178 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20179 name.
20180 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20181 (*movdi_update1): Use Pmode.
20182 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20183 (movdi_<mode>_update_stack): Rename to ...
20184 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20185 use Pmode.
20186 (*movsi_update1): Use Pmode.
20187 (*movsi_update2): Use Pmode.
20188 (movsi_update): Rename to ...
20189 (movsi_<mode>_update): ... this. Use Pmode.
20190 (movsi_update_stack): Fix condition.
20191 (*movhi_update1): Use Pmode. Fix argument to
20192 avoiding_indexed_address_p.
20193 (*movhi_update2): Ditto.
20194 (*movhi_update3): Ditto.
20195 (*movhi_update4): Ditto.
20196 (*movqi_update1): Ditto.
20197 (*movqi_update2): Ditto.
20198 (*movqi_update3): Ditto.
20199 (*movsf_update1, *movdf_update1): Merge, rename to...
20200 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20201 avoiding_indexed_address_p. Add "size" attribute.
20202 (*movsf_update2, *movdf_update2): Merge, rename to...
20203 (*mov<mode>_update2): This. Ditto.
20204 (*movsf_update3): Use Pmode. Fix argument to
20205 avoiding_indexed_address_p.
20206 (*movsf_update4): Ditto.
20207 (allocate_stack): Simplify condition. Adjust pattern names.
20208
20209 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20210
20211 PR target/89093
20212 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20213 whitespace at the start of target attribute string.
20214
20215 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20216
20217 PR target/84369
20218 * config/rs6000/power9.md: Add store forwarding bypass.
20219
20220 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20221
20222 PR debug/89528
20223 * valtrack.c (dead_debug_insert_temp): Reset debug references
20224 to the return value of a call being removed.
20225
20226 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20227
20228 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20229 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20230 implement target hook.
20231 (arc_memory_move_cost): New function.
20232 (TARGET_REGISTER_MOVE_COST): Define.
20233 (TARGET_MEMORY_MOVE_COST): Likewise.
20234 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20235 (MEMORY_MOVE_COST): Likewise.
20236
20237 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20238
20239 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20240 (sibcall_value_insn): Likewise.
20241 * config/arc/constraints.md (Rs5): Remove.
20242
20243 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20244
20245 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20246 for last two fake registers.
20247 (arc_conditional_register_usage): Make sure fake frame and arg
20248 pointer regs are in general regs class.
20249 (FRAME_POINTER_MASK): Remove.
20250 (RETURN_ADDR_MASK): Remove.
20251 (arc_must_save_register): Use hard frame regnum.
20252 (frame_restore_reg): Use hard_frame_pointer_rtx.
20253 (arc_save_callee_saves): Likewise.
20254 (arc_restore_callee_saves): Likewise.
20255 (arc_save_callee_enter): Likewise.
20256 (arc_restore_callee_leave): Likewise.
20257 (arc_save_callee_milli): Likewise.
20258 (arc_eh_return_address_location): Likewise.
20259 (arc_check_multi): Use hard frame regnum.
20260 (arc_can_eliminate): Likewise.
20261 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20262 for register allocator.
20263 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20264 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20265 (FRAME_POINTER_REGNUM): Change it to a fake register.
20266 (HARD_FRAME_POINTER_REGNUM): Defined.
20267 (ARG_POINTER_REGNUM): Change it to a new fake register.
20268 (ELIMINABLE_REGS): Update.
20269 (REGISTER_NAMES): Update names.
20270 * config/arc/arc.md (LP_START): Remove.
20271 (LP_END): Likewise.
20272 (shift_si3_loop): Update pattern.
20273
20274 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20275
20276 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20277 to avoid delay slot scheduling.
20278 (arc_must_save_register): Don't save SP.
20279 * config/arc/arc.md (stack_tie): Remove.
20280 (UNSPEC_ARC_STKTIE): Likewise.
20281
20282 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20283 Shiva Chen <shiva0217@gmail.com>
20284
20285 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20286 code gen with large shift amount.
20287
20288 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20289
20290 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20291 subreg.
20292
20293 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20294
20295 PR target/90096
20296 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20297 print -m64/-mx32/-m32 if it is true.
20298 (ix86_debug_options, ix86_function_specific_print): Pass true as
20299 ADD_ABI_P to ix86_target_string.
20300 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20301 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20302 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20303
20304 PR rtl-optimization/90082
20305 * dce.c (can_delete_call): New function.
20306 (deletable_insn_p, mark_insn): Use it.
20307
20308 PR tree-optimization/90090
20309 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20310 throw internally.
20311 (is_division_by_square): Likewise. Formatting fix.
20312
20313 2019-04-16 Richard Biener <rguenther@suse.de>
20314
20315 PR tree-optimization/56049
20316 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20317 equality check if alias-set zero will prevail.
20318
20319 2019-04-15 Jeff Law <law@redhat.com>
20320
20321 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20322 size and alignment as unsigned.
20323
20324 2019-04-15 Richard Biener <rguenther@suse.de>
20325
20326 PR debug/90074
20327 * tree-loop-distribution.c (destroy_loop): Preserve correct
20328 debug info.
20329
20330 2019-04-15 Richard Biener <rguenther@suse.de>
20331
20332 PR tree-optimization/90071
20333 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20334 abnormal operands from def stmts.
20335
20336 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20337
20338 PR rtl-optimization/89794
20339 * combine.c (count_auto_inc): New function.
20340 (try_combine): Count how many auto_inc expressions there were in the
20341 original instructions. Ensure we have the same number in the new
20342 instructions. Remove the code that tried to ensure auto_inc side
20343 effects on i1 and i0 are not lost.
20344
20345 2019-04-15 Richard Biener <rguenther@suse.de>
20346
20347 PR ipa/88936
20348 * tree.h (auto_var_p): Declare.
20349 * tree.c (auto_var_p): New function, split out from ...
20350 (auto_var_in_fn_p): ... here.
20351 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20352 member.
20353 (new_var_info): Initialize it.
20354 (set_uids_in_ptset): Also set the shadow variable uid if required.
20355 (ipa_pta_execute): Postprocess points-to solutions assigning
20356 shadow variable uids for locals that may reach their containing
20357 function recursively.
20358 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20359 assert but instead check whether the points-to solution is
20360 a singleton.
20361
20362 2019-04-15 Martin Jambor <mjambor@suse.cz>
20363
20364 PR ipa/pr89693
20365 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20366 the thunk chain.
20367
20368 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20369
20370 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20371
20372 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20373 Kito Cheng <kito.cheng@gmail.com>
20374 Shiva Chen <shiva0217@gmail.com>
20375
20376 * config/nds32/nds32-md-auxiliary.c
20377 (nds32_legitimize_pic_address): Use new PIC pattern.
20378 (nds32_legitimize_tls_address): Use new TLS pattern.
20379 (nds32_output_symrel): New.
20380 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20381 (nds32_alloc_relax_group_id): Ditto.
20382 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20383 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20384 relax_group_id.
20385 (nds32_group_tls_insn): Ditto.
20386 (nds32_group_float_insns): Ditto.
20387 * config/nds32/nds32.md (tls_le): New.
20388 (sym_got): Ditto.
20389
20390 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20391
20392 * configure: Add nds32 target for dwarf2 debug_line checking.
20393 * configure.ac: Regenerated.
20394
20395 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20396
20397 PR lto/89358
20398 * ipa-devirt.c (skip_in_fields_list_p): New.
20399 (odr_types_equivalent_p): Use it.
20400
20401 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20402
20403 PR target/89093
20404 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20405 instead of strncmp when checking for thumb and arm. Formatting fixes.
20406
20407 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20408
20409 * doc/install.texi: Document --with-target-system-zlib.
20410
20411 2019-04-12 Martin Sebor <msebor@redhat.com>
20412
20413 PR c/88383
20414 PR c/89288
20415 PR c/89798
20416 PR c/89797
20417 * targhooks.c (default_vector_alignment): Avoid assuming
20418 argument fits in SHWI.
20419 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20420 a shift expression.
20421 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20422
20423 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20424
20425 PR rtl-optimization/89965
20426 * dce.c: Include rtl-iter.h.
20427 (struct check_argument_load_data): New type.
20428 (check_argument_load): New function.
20429 (find_call_stack_args): Check for loads from stack slots still tracked
20430 in sp_bytes and punt if any is found.
20431
20432 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20433
20434 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20435
20436 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20437 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20438
20439 2019-04-12 Martin Liska <mliska@suse.cz>
20440
20441 PR middle-end/89970
20442 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20443 in error message.
20444 (separate_attrs): Handle multiple 'default's.
20445 (expand_target_clones): Rework error handling code.
20446
20447 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20448
20449 PR target/87532
20450 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20451 mode of vector rather than mode of destination for move instruction.
20452 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20453 Use QI inner mode with V16QI vector mode.
20454
20455 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20456
20457 PR target/52726
20458 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20459 "invalid %%t operand" in output_operand_lossage message.
20460
20461 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20462
20463 * config/s390/predicates.md (permute_pattern_operand): New
20464 predicate.
20465 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20466 operand for the permute pattern.
20467 ("*vec_perm<mode>"): New insn definition.
20468 ("bswap<mode>"): Generate the permute pattern operand in the
20469 expander and perform the operand reloads for pre arch13 level
20470 already.
20471 ("*bswap<mode>_emu"): Rename to ...
20472 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20473 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20474 Add the USE operand for the permute pattern.
20475 ("*vec_set_bswap_vec<mode>"): Likewise.
20476
20477 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20478
20479 PR c/89946
20480 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20481 and gcc_unreachable if it fails, just call tree_to_uhwi which
20482 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20483 Start warning message with a lower-case letter. Formatting fixes.
20484
20485 PR rtl-optimization/90026
20486 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20487 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20488 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20489 in cfglayout mode, use emit_barrier_after_bb.
20490
20491 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20492
20493 PR rtl-optimization/87763
20494 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20495 New Instruction.
20496
20497 2019-04-11 Tom de Vries <tdevries@suse.de>
20498
20499 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20500 max macro using statement expression.
20501
20502 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20503
20504 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20505 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20506 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20507 read_only_private_data_section using xcoff_private_rodata_section_name.
20508 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20509
20510 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20511
20512 PR target/90016
20513 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20514
20515 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20516
20517 PR rtl-optimization/89965
20518 * dce.c (sp_based_mem_offset): New function.
20519 (find_call_stack_args): Use sp_based_mem_offset.
20520
20521 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20522
20523 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20524
20525 2019-04-11 Richard Biener <rguenther@suse.de>
20526
20527 PR tree-optimization/90020
20528 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20529 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20530 * tree-ssa-pre.c (compute_avail): Use it to not put
20531 possibly trapping references after a call that might not
20532 return into EXP_GEN.
20533 * gcse.c (compute_hash_table_work): Do not elide
20534 marking a block containing a call if the call might not
20535 return.
20536
20537 2019-04-11 Richard Biener <rguenther@suse.de>
20538
20539 PR tree-optimization/90018
20540 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20541 Test both SLP and interleaving variants.
20542
20543 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20544
20545 * config/s390/8561.md: New file.
20546 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20547 Add arch13 cpu model.
20548 * config/s390/s390-opts.h (enum processor_type): Likewise.
20549 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20550 (s390_get_unit_mask): Likewise.
20551 (s390_is_fpd): Likewise.
20552 (s390_is_fxd): Likewise.
20553 * config/s390/s390.h (s390_tune_attr): Likewise.
20554 * config/s390/s390.md: Include arch13 pipeline description.
20555 * config/s390/s390.opt: Add arch13.
20556
20557 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20558
20559 PR rtl-optimization/87763
20560 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20561 New prototype.
20562 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20563 New function.
20564 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20565 New instruction.
20566 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20567 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20568 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20569 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20570
20571 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20572
20573 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20574 "Although" in -fipa-icf documentation.
20575
20576 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20577 of using multiple -g options.
20578
20579 2019-04-10 Martin Liska <mliska@suse.cz>
20580
20581 PR gcov-profile/89959
20582 * doc/gcov.texi: Make documentation of -x option
20583 more precise.
20584
20585 2019-04-10 Richard Biener <rguenther@suse.de>
20586
20587 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20588 member.
20589 (DR_GROUP_SAME_DR_STMT): Remove.
20590 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20591 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20592 replace with assert.
20593 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20594 (vect_record_grouped_load_vectors): Remove unreachable code.
20595
20596 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20597
20598 PR target/90016
20599 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20600 obsolete reference to N.
20601
20602 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20603
20604 PR middle-end/90025
20605 * expr.c (store_expr): Set properly size on the MEM passed to
20606 clear_storage.
20607
20608 PR c++/90010
20609 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20610 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20611 translation is needed, and when translation is needed, only append
20612 ... if the string length is hostsz or more bytes long. Avoid using
20613 strncpy or strcat.
20614
20615 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20616
20617 PR target/90024
20618 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20619 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20620 into three.
20621 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20622 differences directly.
20623 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20624
20625 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20626
20627 PR translation/90011
20628 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20629 from diagnostics.
20630 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20631 diagnostics.
20632 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20633 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20634 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20635 trailing space from -gsplit-dwarf diagnostics.
20636
20637 PR tree-optimization/89998
20638 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20639 instead of integer_type_node if possible, don't add ranges if return
20640 type is not compatible with int.
20641 * gimple-fold.c (gimple_fold_builtin_sprintf,
20642 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20643 integer_type_node.
20644
20645 2019-04-09 Martin Liska <mliska@suse.cz>
20646
20647 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20648 * doc/install.texi: Document the new config.
20649
20650 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20651
20652 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20653 use gimple_expr_type for load and store calls. Skip over the
20654 condition argument in a conditional internal function.
20655 Protect use of TREE_INT_CST_LOW.
20656
20657 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20658
20659 PR target/90015
20660 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20661 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20662 trailing period from it too.
20663
20664 2019-04-08 wu yuan <wuyuan5@huawei.com>
20665
20666 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20667 * config/aarch64/aarch64.md : Add "tsv110.md"
20668 * config/aarch64/tsv110.md: New file.
20669
20670 2019-04-08 Richard Biener <rguenther@suse.de>
20671
20672 PR tree-optimization/90006
20673 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20674 calls like lrint.
20675
20676 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20677
20678 PR target/83033
20679 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20680 construction.
20681 (fma_root_node): Likewise.
20682 (func_fma_steering): Likewise.
20683
20684 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20685
20686 PR rtl-optimization/89865
20687 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20688
20689 PR rtl-optimization/89865
20690 * config/i386/i386.md
20691 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20692 numbers not to clash with the additional operands[4].
20693 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20694 with extra register copy in the middle.
20695
20696 2019-04-08 Martin Liska <mliska@suse.cz>
20697
20698 PR gcov-profile/89961
20699 * doc/gcov.texi: Document data_file.
20700 * gcov.c (generate_results): Add data_info into JSON output.
20701
20702 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20703
20704 PR tree-optimization/89725
20705 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20706 loop's chrec as invariant symbol.
20707 * tree-chrec.h (chrec_contains_symbols): New parameter.
20708 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20709 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20710 function of loops not in DDR's loop_nest.
20711 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20712
20713 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20714
20715 PR target/89623
20716 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20717 Mask.
20718
20719 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20720
20721 PR target/89945
20722 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20723 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20724
20725 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20726
20727 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20728 targetm.fixed_condition_code_regs.
20729
20730 2019-04-05 Richard Biener <rguenther@suse.de>
20731
20732 PR debug/89892
20733 PR debug/89905
20734 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20735 debug bind stmts but reset them if they are not valid at the
20736 destination.
20737
20738 2019-04-05 Martin Liska <mliska@suse.cz>
20739
20740 PR translation/89936
20741 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20742 order to wrap keywords or arguments.
20743 * collect2.c (main): Likewise.
20744 (scan_prog_file): Likewise.
20745 (scan_libraries): Likewise.
20746 * common/config/riscv/riscv-common.c
20747 (riscv_subset_list::parsing_subset_version): Likewise.
20748 (riscv_subset_list::parse_std_ext): Likewise.
20749 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20750 Likewise.
20751 * config/arm/arm.c (arm_option_override): Likewise.
20752 * config/cris/cris.c (cris_print_operand): Likewise.
20753 * config/darwin-c.c (darwin_pragma_options): Likewise.
20754 (darwin_pragma_unused): Likewise.
20755 (darwin_pragma_ms_struct): Likewise.
20756 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20757 * config/i386/i386.c (print_reg): Likewise.
20758 (ix86_print_operand): Likewise.
20759 * config/i386/xm-djgpp.h: Likewise.
20760 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20761 * config/m32c/m32c.c (m32c_option_override): Likewise.
20762 * config/msp430/msp430.c (msp430_option_override): Likewise.
20763 * config/nds32/nds32.c (nds32_option_override): Likewise.
20764 * config/nvptx/mkoffload.c (main): Likewise.
20765 * config/rx/rx.c (rx_print_operand): Likewise.
20766 (valid_psw_flag): Likewise.
20767 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20768 (vms_pragma_nomember_alignment): Likewise.
20769 (vms_pragma_extern_model): Likewise.
20770 * lto-wrapper.c (compile_offload_image): Likewise.
20771 * omp-offload.c (oacc_parse_default_dims): Likewise.
20772 * symtab.c (symtab_node::verify_base): Likewise.
20773 * tlink.c (recompile_files): Likewise.
20774 (start_tweaking): Likewise.
20775 * tree-profile.c (parse_profile_filter): Likewise.
20776
20777 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20778
20779 PR tree-optimization/89956
20780 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20781 multiple negates of the same value.
20782
20783 2019-04-04 Martin Sebor <msebor@redhat.com>
20784
20785 PR middle-end/89957
20786 PR middle-end/89911
20787 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20788 have the same precision since the function crashes otherwise.
20789 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20790 has non-zero arguments.
20791
20792 2019-04-04 Martin Sebor <msebor@redhat.com>
20793
20794 PR middle-end/89934
20795 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20796 out if the number of arguments is less than expected.
20797
20798 2019-04-04 Jeff Law <law@redhat.com>
20799
20800 PR rtl-optimization/89399
20801 * ree.c (combine_set_extension): Use single_set rather than
20802 digging into PATTERN for items on the candidate list.
20803 (combine_reaching_defs): Likewise.
20804
20805 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20806
20807 PR rtl-optimization/46590
20808 * loop-invariant.c (find_defs): Move df_remove_problem and
20809 df_process_deferred_rescans to move_invariants.
20810 Move df_live_add_problem and df_live_set_all_dirty calls
20811 to move_invariants.
20812 (move_invariants): Likewise.
20813 (move_loop_invariants): Likewise, making the df_live calls
20814 conditional on -O. Remove the problem again if we added it
20815 locally.
20816
20817 2019-04-03 qing zhao <qing.zhao@oracle.com>
20818
20819 PR tree-optimization/89730
20820 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20821 -flive-patching=inline-only-static.
20822 (can_inline_edge_by_limits_p): Add the checking for
20823 -flive-patching=inline-only-static and grant always_inline
20824 even when -flive-patching=inline-only-static is specified.
20825
20826 2019-04-03 Jeff Law <law@redhat.com>
20827
20828 PR rtl-optimization/81025
20829 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20830
20831 2019-04-03 Richard Biener <rguenther@suse.de>
20832
20833 PR tree-optimization/84101
20834 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20835 regs.h for hard_regno_nregs.
20836 (cfun_returns): New helper.
20837 (vect_model_store_cost): When vectorizing a store to a decl
20838 we return and the function ABI returns in a multi-reg location
20839 account for the possible spilling that will happen.
20840
20841 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20842
20843 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20844 displacement addresses for vector mode operands.
20845
20846 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20847
20848 * config/arc/arc.c (GMASK_LEN): Define.
20849 (arc_restore_callee_saves): Restore first blink when
20850 !optimize_size.
20851
20852 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20853
20854 * doc/extend.texi: Add deprecated comment on sign-return-address
20855 function attribute and add mbranch-protection.
20856 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20857
20858 2019-04-03 Richard Biener <rguenther@suse.de>
20859
20860 PR lto/89896
20861 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20862 the all target phony.
20863
20864 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20865
20866 PR target/89902
20867 PR target/89903
20868 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20869 Return false for variable DImode shifts.
20870 (dimode_scalar_chain::compute_convert_gain): Do not handle
20871 register count operand in variable DImode shifts.
20872 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20873 count argument of a variable shift instruction to a vector register.
20874 (dimode_scalar_chain::convert_reg): Remove support to convert
20875 count argument of a variable shift instruction.
20876
20877 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20878
20879 PR rtl-optimization/84206
20880 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20881 iterating over loop headers.
20882
20883 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20884
20885 PR rtl-optimization/85876
20886 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20887 beyond the original fence.
20888
20889 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20890
20891 * config.gcc: Mark spu* targets as deprecated/obsolete.
20892
20893 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20894
20895 * config/s390/s390-builtin-types.def: New builtin function type
20896 definitions. Remove unused types.
20897 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20898 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20899 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20900 overloaded builtins.
20901 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20902 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20903 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20904 (vec_double, vec_signed, vec_unsigned): Define to use the new
20905 overloaded builtins.
20906 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20907 Remove expanders.
20908
20909 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20910
20911 * config/s390/s390-builtin-types.def: New builtin function type
20912 definitions.
20913 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20914 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20915 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20916 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20917 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20918 constant definitions.
20919 * config/s390/vecintrin.h (vec_search_string_cc)
20920 (vec_search_string_until_zero_cc): New builtin name definitions.
20921 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20922 expanders.
20923 ("vec_vstrs<mode>"): New insn definition.
20924
20925 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20926
20927 * config/s390/s390-builtin-types.def: Add new builtin function
20928 types.
20929 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20930 New overloaded builtins.
20931 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20932 s390_vsrd.
20933 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20934 (UNSPEC_VEC_SLDBYTE): ... this.
20935 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20936 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20937 definitions.
20938 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20939 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20940 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20941
20942 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20943
20944 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20945 New insn definition.
20946 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20947 * config/s390/vector.md (V_HW_HSD): ... here.
20948
20949 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20950
20951 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20952 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20953 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20954 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20955 New insn definitions.
20956
20957 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20958
20959 * config/s390/s390-builtin-types.def: Add new builtin function type.
20960 * config/s390/s390-builtins.def: Add overloaded builtin
20961 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20962 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20963 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20964 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20965 ("eltswap<mode>"): New expander.
20966 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20967 insn definitions.
20968
20969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20970
20971 * config/s390/s390-builtin-types.def: Add new builtin function types.
20972 * config/s390/s390-builtins.def: Add overloaded builtin
20973 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20974 instructions.
20975 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20976 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20977 ("bswap<mode>"): New expander.
20978 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20979
20980 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20981
20982 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20983 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20984 vector builtin version number in __VEC__.
20985
20986 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20987
20988 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20989 iterators.
20990 (SFSI): New mode attribute.
20991 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20992 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20993 rename to ...
20994 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20995 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20996 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20997 ("floatsi<mode>2"): Add wcefb instruction.
20998
20999 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21000
21001 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21002 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21003 mode iterators.
21004 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21005 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21006 support 32 bit fp-int conversions. Rename to ...
21007 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21008 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21009 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21010 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21011 ... to these.
21012
21013 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21014
21015 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21016 if-then-else constructs if we can use the select instruction.
21017 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21018
21019 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21020
21021 * config/s390/s390.md ("*popcountdi_arch13_cc")
21022 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21023 definition.
21024 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21025 Append _z196 to make it ...
21026 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21027 ("popcounthi2_z196"): ... this.
21028 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21029 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21030
21031 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21032
21033 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21034 certain compares for arch13 in order to make use of the condition
21035 code result produced by the new instructions.
21036 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21037 nxrk, and nxgrk instruction patterns.
21038 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21039 (inv_no): Add new code iterator together with some attributes.
21040 ("*andc_split_<mode>"): Disable splitter for arch13.
21041 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21042 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21043 ("*<ANDOR:bitops_name>c<GPR:mode>")
21044 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21045 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21046 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21047 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21048
21049 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21050
21051 * common/config/s390/s390-common.c (processor_flags_table): New
21052 entry for arch13.
21053 * config.gcc: Support arch13 with the --with-arch= configure flag.
21054 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21055 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21056 * config/s390/s390.c (s390_get_sched_attrmask)
21057 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21058 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21059 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21060 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21061 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21062 definitions.
21063 * config/s390/s390.opt: Support arch13 as processor type in
21064 command line options.
21065
21066 2019-04-02 Martin Liska <mliska@suse.cz>
21067
21068 PR translation/89912
21069 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21070 Fix param description of graphite-max-arrays-per-scop.
21071
21072 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21073
21074 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21075 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21076 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21077
21078 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21079
21080 PR rtl-optimization/85412
21081 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21082 sel_sched_region_1, not after.
21083
21084 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21085
21086 PR rtl-optimization/86928
21087 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21088 compute_live if necessary.
21089 (sel_redirect_edge_and_branch): Likewise.
21090
21091 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21092
21093 PR rtl-optimization/89865
21094 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21095 register if it is a part of small class.
21096
21097 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21098
21099 PR rtl-optimization/87273
21100 * sel-sched-ir.c (merge_fences): Remove assert.
21101
21102 2019-04-01 Richard Biener <rguenther@suse.de>
21103
21104 PR tree-optimization/46590
21105 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21106 (dom_walker::m_reachability): Add in place of...
21107 (dom_walker::m_skip_unreachable_blocks): ...this.
21108 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21109 Move complex initialization ...
21110 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21111 lazily and initialize edge flags on each invocation.
21112 (dom_walker::bb_reachable): Use m_reachability.
21113
21114 2019-04-01 Martin Liska <mliska@suse.cz>
21115
21116 PR driver/89861
21117 * opt-suggestions.c (option_proposer::build_option_suggestions):
21118 Add variant without any argument in order to provide better
21119 hints.
21120
21121 2019-04-01 Richard Biener <rguenther@suse.de>
21122
21123 PR c/71598
21124 * gimple.c: Include langhooks.h.
21125 (gimple_get_alias_set): Treat enumeral types as the underlying
21126 integer type.
21127
21128 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21129 Eric Botcazou <ebotcazou@adacore.com>
21130
21131 PR rtl-optimization/89862
21132 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21133 that operates on the full registers for WORD_REGISTER_OPERATIONS
21134 architectures.
21135
21136 2019-03-29 Jim Wilson <jimw@sifive.com>
21137
21138 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21139 Clear MASK_RVC and then set if C subset supported.
21140
21141 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR c/89872
21144 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21145 non-addressable complit into its initializer if it is volatile.
21146
21147 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21148
21149 * opts-common.c (integral_argument): Set errno properly in one case.
21150
21151 2019-03-29 Martin Liska <mliska@suse.cz>
21152
21153 * doc/invoke.texi: Remove -Wchkp from documentation.
21154
21155 2019-03-29 Martin Liska <mliska@suse.cz>
21156
21157 * dbgcnt.c (print_limit_reach): New function.
21158 (dbg_cnt): Use it.
21159
21160 2019-03-29 Martin Liska <mliska@suse.cz>
21161
21162 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21163 (dbg_cnt_process_opt): Parse first tokens aas
21164 dbg_cnt_process_single_pair is also using strtok.
21165
21166 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21167
21168 PR rtl-optimization/87485
21169 * function.c (expand_function_end): Move stack_protect_epilogue
21170 before loading of return value into hard register(s).
21171
21172 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21173
21174 PR middle-end/89621
21175 * tree-inline.h (struct copy_body_data): Add
21176 dont_remap_vla_if_no_change flag.
21177 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21178 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21179 and remap_type_2 returns false.
21180 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21181 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21182 only from where it is copied to nested contexts.
21183
21184 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21185
21186 PR target/89865
21187 * config/i386/i386.md (RMW operation with LEA peephole):
21188 Use LEAMODE mode attribute instead of SWI mode iterator for
21189 LEA pattern.
21190
21191 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21192
21193 PR target/89848
21194 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21195 Also process XEXP (src, 0) of a shift insn.
21196
21197 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21198
21199 PR middle-end/89725
21200 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21201 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21202
21203 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21204
21205 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21206 test.
21207 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21208 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21209 immediately after first one with df_analyze in between, but rather
21210 process all bbs, queueing ones that need second pass in a worklist,
21211 df_analyze, process queued debug insn changes and if second pass is
21212 needed, process bbs from worklist, df_analyze, process queued debug
21213 insns again.
21214
21215 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21216 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21217 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21218
21219 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21220
21221 PR c/79022
21222 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21223 definition.
21224
21225 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21226
21227 PR target/85667
21228 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21229 function for 32-bit MS_ABI.
21230 (function_value_ms_32): New function.
21231
21232 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21233
21234 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21235 (movdi): Call gen_movdi_symbol_save_scc.
21236 (gen_movdi_symbol_save_scc): New insn and split.
21237
21238 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21239
21240 PR rtl-optimization/89313
21241 * function.c (matching_constraint_num): New static function.
21242 (match_asm_constraints_1): Use it. Fixup white space and comment.
21243 Don't replace inputs with non-matching constraints which conflict
21244 with early clobber outputs.
21245
21246 2019-03-27 Jeff Law <law@redhat.com>
21247
21248 PR rtl-optimization/87761
21249 PR rtl-optimization/89826
21250 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21251 slightly later.
21252 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21253 note problem to get REG_DEAD/REG_UNUSED notes updated.
21254
21255 2019-03-27 Richard Biener <rguenther@suse.de>
21256
21257 PR tree-optimization/89463
21258 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21259 queue edges to remove.
21260 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21261 dead stmts. Delay edge removal until PHIs are removed to
21262 make debug-stmt creation not confused by seemingly degenerate
21263 PHIs.
21264
21265 2019-03-27 Alan Modra <amodra@gmail.com>
21266
21267 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21268 throughout file.
21269 * config/rs6000/darwin.h: Likewise.
21270 * config/rs6000/rs6000.c: Likewise.
21271
21272 2019-03-27 Alan Modra <amodra@gmail.com>
21273
21274 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21275 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21276
21277 2019-03-26 Andrew Waterman <andrew@sifive.com>
21278 Jim Wilson <jimw@sifive.com>
21279
21280 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21281 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21282 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21283 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21284 (generic_alu): Add auipc to type list.
21285 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21286 (riscv_microarchitecture): Declare.
21287 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21288 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21289 field.
21290 (riscv_microarchitecture): New.
21291 (sifive_7_tune_info): New.
21292 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21293 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21294 entries.
21295 (riscv_store_data_bypass_p): New.
21296 (riscv_option_override): Set riscv_microarchitecture from
21297 cpu->microarchitecture.
21298 * config/riscv/riscv.md: Include sifive-7.md.
21299 (type): Add auipc.
21300 (tune): New.
21301 (auipc<mode>): Change type to auipc.
21302 (restore_stack_nonlocal): New.
21303 * config/riscv/sifive-7.md: New.
21304 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21305
21306 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21307
21308 PR target/89827
21309 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21310 Also process XEXP (src, 0) of a shift insn.
21311
21312 2019-03-26 Richard Biener <rguenther@suse.de>
21313
21314 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21315 (copy_debug_stmt): Likewise.
21316 (expand_call_inline): Likewise.
21317 (copy_bb): Avoid redundant lookup & set of gimple_block.
21318 * gimple-low.c (lower_gimple_return): Likewise.
21319 (lower_builtin_setjmp): Likewise.
21320
21321 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21322
21323 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21324 is constant 0, turn into static const data member initialized to false.
21325 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21326 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21327
21328 2019-03-26 Jason Merrill <jason@redhat.com>
21329 Jakub Jelinek <jakub@redhat.com>
21330
21331 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21332 method.
21333 (mem_alloc_description::release_object_overhead): Fix comment typos.
21334 * hash-table.h (hash_table::~hash_table): Call
21335 release_instance_overhead only if m_entries is non-NULL, otherwise
21336 call unregister_descriptor.
21337
21338 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21339
21340 PR tree-optimization/81740
21341 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21342 In case of outer loop vectorization, check for backward dependence
21343 at the inner loop if outer loop dependence is reversed.
21344
21345 2019-03-26 Alan Modra <amodra@gmail.com>
21346
21347 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21348 rs6000_vector_mem init. Correct wI and wJ comment.
21349
21350 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21351
21352 PR rtl-optimization/88347
21353 PR rtl-optimization/88423
21354 * sched-deps.c (sched_analyze_insn): Take into account that for
21355 tablejumps the barrier appears after a label and a jump_table_data.
21356
21357 2019-03-25 Martin Sebor <msebor@redhat.com>
21358
21359 PR c/89812
21360 * c-common.c (check_user_alignment): Rename local. Correct maximum
21361 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21362 convert it to UHWI when it fits.
21363
21364 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21365
21366 PR debug/86964
21367 * dwarf2out.c (premark_used_variables): New function.
21368 (prune_unused_types_walk): Do not mark not premarked external
21369 variables.
21370 (prune_unused_types): Call premark_used_variables.
21371
21372 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21373
21374 PR rtl-optimization/89676
21375 * lra-constraints.c (curr_insn_transform): Do match reload for
21376 early clobbers when the match was successful only for different
21377 registers.
21378
21379 2019-03-25 Martin Sebor <msebor@redhat.com>
21380
21381 * doc/extend.texi (Common Type Attributes): Document vector_size.
21382 (Common Variable Attributes): Mention size constraint. Correct
21383 quoting and typos.
21384 (Vector Extensions): Use @dfn when defining bas type. Clarify
21385 base type and size constraints.
21386
21387 2019-03-25 Richard Biener <rguenther@suse.de>
21388
21389 PR tree-optimization/89789
21390 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21391 changes from non-undefined back to undefined.
21392
21393 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21394
21395 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21396 heap string and a gc string, but since this variable is unknown to
21397 ggc the gc string might get reused and corrupted. Fixed by always
21398 using a heap string.
21399
21400 2019-03-25 Richard Biener <rguenther@suse.de>
21401
21402 PR tree-optimization/89779
21403 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21404 to remove IV defs, delay actual removal.
21405 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21406 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21407 very end, properly also reset loop control IV information.
21408
21409 2019-03-25 Richard Biener <rguenther@suse.de>
21410
21411 PR tree-optimization/89802
21412 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21413 move EH data to folded stmt.
21414
21415 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21416
21417 * config/s390/s390-builtin-types.def: Remove few unused types and
21418 fix sort order for others.
21419
21420 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21421
21422 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21423 expected and found types with -mdebug during builtin matching.
21424
21425 2019-03-25 Richard Biener <rguenther@suse.de>
21426
21427 PR middle-end/89790
21428 * fold-const.c (operand_equal_p): Revert last change with
21429 updated comment.
21430
21431 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21432
21433 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21434 notes for the result of the __tls_get_addr calls.
21435 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21436
21437 2019-03-24 Jeff Law <law@redhat.com>
21438
21439 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21440
21441 PR rtl-optimization/87761
21442 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21443 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21444 as needed.
21445 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21446 rescans. Reprocess blocks as needed, calling df_analyze before
21447 reprocessing. Always call df_analyze before fixing up debug bind
21448 insns.
21449
21450 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21451
21452 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21453 big endian.
21454
21455 2019-03-22 Andrew Pinski <apinski@marvell.com>
21456
21457 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21458 attrribute for uxtw.
21459
21460 2019-03-26 Jeff Law <law@redhat.com>
21461
21462 PR rtl-optimization/87761
21463 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21464 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21465 (mips_split_move): Accept new INSN argument. Try to forward SRC
21466 into the next instruction.
21467 (mips_split_move_insn): Pass INSN through to mips_split_move.
21468
21469 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21470
21471 PR rtl-optimization/89676
21472 * lra-constraints.c (curr_insn_transform): Do match reload for
21473 early clobbers even if the match was successful.
21474
21475 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21476
21477 PR c++/87481
21478 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21479
21480 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21481
21482 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21483
21484 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21485
21486 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21487 <avx512>_fmsub_<mode>_mask3<round_name>,
21488 <avx512>_fnmadd_<mode>_mask3<round_name>,
21489 <avx512>_fnmsub_<mode>_mask3<round_name>,
21490 avx512f_vmfmadd_<mode>_mask3<round_name>,
21491 avx512f_vmfmsub_<mode>_mask3<round_name>,
21492 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21493 instead of register_operand and %v instead of v for match_operand 1.
21494 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21495 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21496 <round_nimm_predicate> instead of register_operand and %v instead of v
21497 for match_operand 1.
21498
21499 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21500 <avx512>_fmadd_<mode>_mask3<round_name>,
21501 <avx512>_fmsub_<mode>_mask<round_name>,
21502 <avx512>_fmsub_<mode>_mask3<round_name>,
21503 <avx512>_fnmadd_<mode>_mask<round_name>,
21504 <avx512>_fnmadd_<mode>_mask3<round_name>,
21505 <avx512>_fnmsub_<mode>_mask<round_name>,
21506 <avx512>_fnmsub_<mode>_mask3<round_name>,
21507 <avx512>_fmaddsub_<mode>_mask<round_name>,
21508 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21509 <avx512>_fmsubadd_<mode>_mask<round_name>,
21510 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21511 <round_nimm_predicate> instead of nonimmediate_operand.
21512 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21513 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21514 Use register_operand instead of <round_nimm_predicate> for the
21515 operand that needs to match output.
21516 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21517 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21518 Likewise. Formatting fixes.
21519
21520 PR target/89784
21521 * config/i386/i386.c (enum ix86_builtins): Remove
21522 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21523 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21524 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21525 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21526 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21527 __builtin_ia32_vfmsubss3_mask3): New builtins.
21528 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21529 avx512f_vmfmadd_<mode>_mask3<round_name>,
21530 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21531 *avx512f_vmfmsub_<mode>_mask<round_name>,
21532 avx512f_vmfmsub_<mode>_mask3<round_name>,
21533 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21534 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21535 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21536 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21537 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21538 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21539 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21540 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21541 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21542 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21543 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21544 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21545 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21546 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21547 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21548 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21549 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21550 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21551 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21552 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21553 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21554 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21555 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21556 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21557 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21558 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21559 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21560 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21561
21562 2019-03-21 Martin Sebor <msebor@redhat.com>
21563
21564 PR tree-optimization/89350
21565 * builtins.c (compute_objsize): Also ignore offsets whose upper
21566 bound is negative.
21567 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21568 (builtin_memref::builtin_memref): Initialize new member.
21569 Allow EXPR to be null.
21570 (builtin_memref::extend_offset_range): Replace local with a member.
21571 Avoid assuming pointer offsets are unsigned.
21572 (builtin_memref::set_base_and_offset): Determine base object
21573 before computing offset range.
21574 (builtin_access::builtin_access): Handle memset.
21575 (builtin_access::generic_overlap): Replace local with a member.
21576 (builtin_access::strcat_overlap): Same.
21577 (builtin_access::overlap): Same.
21578 (maybe_diag_overlap): Same.
21579 (maybe_diag_access_bounds): Same.
21580 (wrestrict_dom_walker::check_call): Handle memset.
21581 (check_bounds_or_overlap): Same.
21582
21583 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21584 Jakub Jelinek <jakub@redhat.com>
21585
21586 PR lto/89692
21587 * tree.c (fld_type_variant, fld_incomplete_type_of,
21588 fld_process_array_type): Call fld->pset.add and don't call
21589 add_tree_to_fld_list if it returns true.
21590 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21591 non-marked types from TYPE_NEXT_VARIANT list.
21592 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21593
21594 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21595
21596 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21597 to false, if true, don't alloc_entries during construction, but defer
21598 it to the first method that needs m_entries allocated.
21599 (hash_table::hash_table, hash_table::~hash_table,
21600 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21601 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21602 hash_table::clear_slot, hash_table::traverse_noresize,
21603 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21604 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21605 false.
21606 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21607 NO_INSERT instead of find_with_hash.
21608 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21609 hash_set::m_table): Add Lazy to template params of hash_table.
21610 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21611 * attribs.c (test_attribute_exclusions): Likewise.
21612 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21613 hash_set. Add tests for hash_set with Lazy = true.
21614
21615 2019-03-21 Richard Biener <rguenther@suse.de>
21616
21617 PR tree-optimization/89779
21618 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21619 checks with respect to released SSA names now having error_mark_node
21620 type.
21621 * fold-const.c (operand_equal_p): Likewise.
21622
21623 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21624
21625 PR target/89775
21626 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21627 available to ...
21628 (s390_optimize_register_info): Use global_not_special_regno_p to
21629 check for global regs.
21630
21631 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21632
21633 PR target/89752
21634 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21635 update this_alternative nor this_alternative_set.
21636
21637 2019-03-19 Jim Wilson <jimw@sifive.com>
21638
21639 PR target/89411
21640 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21641 align, size, offset. Use them to handle a BLKmode reference. Update
21642 comment.
21643 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21644
21645 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21646
21647 PR rtl-optimization/89768
21648 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21649 instead of GEN_INT.
21650 (unroll_loop_runtime_iterations): Likewise.
21651
21652 2019-03-19 Martin Sebor <msebor@redhat.com>
21653
21654 PR tree-optimization/89644
21655 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21656 rather than endptr as an indicator of nul-termination.
21657
21658 PR tree-optimization/89644
21659 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21660 arrays in determining sequence sizes in strncpy and stpncpy.
21661
21662 2019-03-19 Martin Liska <mliska@suse.cz>
21663
21664 PR middle-end/89737
21665 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21666 unlikely_edges if there's an edge that belongs to both these sets.
21667
21668 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21669
21670 PR target/89746
21671 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21672 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21673 go via a stack temporary.
21674
21675 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21676
21677 PR target/89378
21678 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21679 instead of gen_rtx_SUBREG.
21680 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21681
21682 2019-03-19 Richard Biener <rguenther@suse.de>
21683
21684 PR debug/88389
21685 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21686
21687 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21688
21689 PR lto/87809
21690 PR lto/89335
21691 * tree.c (free_lang_data_in_decl): Do not free context of C++
21692 destrutors.
21693
21694 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21695
21696 PR target/89506
21697 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21698 subs for the first alternative except when operands[3] is 1.
21699
21700 PR target/89752
21701 * gimplify.c (gimplify_asm_expr): For output argument with
21702 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21703 diagnose error.
21704
21705 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21706
21707 PR rtl-optimization/89753
21708 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21709 explicit unrolling factor even more robust.
21710
21711 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21712
21713 PR target/89726
21714 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21715 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21716 signed zeros, do another copysign after the compensation.
21717
21718 2019-03-18 Martin Sebor <msebor@redhat.com>
21719
21720 PR tree-optimization/89720
21721 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21722 more conservatively, the same as anti-range.
21723
21724 2019-03-18 Richard Biener <rguenther@suse.de>
21725
21726 PR middle-end/88945
21727 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21728 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21729 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21730 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21731
21732 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21733
21734 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21735 Extend queue to 1024 entries.
21736 Add "consumed" field.
21737 (gomp_print_output): Remove print_index parameter.
21738 Add final parameter.
21739 Change limit to unsigned.
21740 Use consumed field to implement circular buffer.
21741 Detect interrupted print in final pass.
21742 Flush output at the end.
21743 (run): Update gomp_print_output usage.
21744 (main): Initialize kernargs->output_data.consumed.
21745
21746 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21747
21748 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21749 calculation of the minimum number of scalar iterations for
21750 fully-predicated loops.
21751
21752 2019-03-18 Martin Jambor <mjambor@suse.cz>
21753
21754 PR tree-optimization/89546
21755 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21756 any propagation to its children took place.
21757
21758 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21759
21760 PR target/89627
21761 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21762 parameter, and make use of it.
21763 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21764
21765 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21766
21767 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21768 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21769 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21770 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21771 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21772 match what the ops is doing.
21773 (push_multi_fp_blink): Likewise.
21774 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21775 compiling for size and elf target.
21776 (arc_save_callee_enter): Adjust note to match what enter/leave
21777 operation does.
21778
21779 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21780
21781 * config/arc/arc.md (tst_movb): Fix constraint.
21782
21783 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21784
21785 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21786
21787 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21788
21789 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21790 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21791 reg_alloc_order references.
21792 (size_alloc_order): Define.
21793 (arc_adjust_reg_alloc_order): New function.
21794 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21795 order.
21796 (ADJUST_REG_ALLOC_ORDER): Define.
21797 (HONOR_REG_ALLOC_ORDER): Likewise.
21798
21799 2019-03-18 Richard Biener <rguenther@suse.de>
21800
21801 PR target/87561
21802 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21803 loads and stores a bit more.
21804
21805 2019-03-18 Richard Biener <rguenther@suse.de>
21806
21807 PR target/87561
21808 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21809 load pessimization to stores as well.
21810
21811 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21812
21813 PR middle-end/86979
21814 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21815 successor, use NULL as its av set.
21816
21817 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21818
21819 PR rtl-optimization/89721
21820 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21821
21822 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21823
21824 PR target/87532
21825 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21826 When handling vec_extract, use modular arithmetic to allow
21827 constant selectors greater than vector length.
21828 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21829 V1TImode vectors to have constant selector values greater than 0.
21830 Use modular arithmetic to compute vector index.
21831 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21832 index for in-memory vectors. Correct code generation for
21833 in-register vectors.
21834 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21835 compute index.
21836
21837 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21838
21839 PR c++/88534
21840 PR c++/88537
21841 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21842 VAR_DECL args.
21843
21844 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21845
21846 PR c++/89709
21847 * tree.c (inchash::add_expr): Strip any location wrappers.
21848 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21849 after hash verification.
21850
21851 PR debug/89704
21852 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21853 SIGN_EXTEND and ZERO_EXTEND.
21854
21855 2019-03-14 Jason Merrill <jason@redhat.com>
21856 Jakub Jelinek <jakub@redhat.com>
21857
21858 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21859 than if is_empty (*slot).
21860 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21861 existing elt and for elt removal.
21862 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21863 of already removed elt.
21864
21865 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21866
21867 PR target/89650
21868 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21869 REG_EH_REGION note.
21870
21871 2019-03-14 Martin Liska <mliska@suse.cz>
21872
21873 PR other/89712
21874 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21875
21876 2019-03-14 Richard Biener <rguenther@suse.de>
21877
21878 PR target/89711
21879 * config/i386/i386.c (make_resolver_func): Properly set
21880 DECL_CONTEXT on the RESULT_DECL.
21881 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21882
21883 2019-03-14 Richard Biener <rguenther@suse.de>
21884
21885 * gimple-pretty-print.c: Include cfgloop.h.
21886 (dump_gimple_phi): Adjust.
21887 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21888 (pp_cfg_jump): Adjust.
21889 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21890 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21891 (lower_phi_internal_fn): Remove.
21892 (verify_gimple_call): Remove IFN_PHI special-casing.
21893 (dump_function_to_file): Dump IL state.
21894 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21895 done to deal with PHI nodes being present in non-SSA state.
21896
21897 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21898
21899 PR ipa/89684
21900 * multiple_target.c (create_dispatcher_calls): Change
21901 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21902 In the node->iterate_referring loop, push *ref rather than ref, call
21903 ref->remove_reference () and always pass 0 to iterate_referring.
21904
21905 PR rtl-optimization/89679
21906 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21907 would contain a paradoxical SUBREG.
21908
21909 2019-03-14 Richard Biener <rguenther@suse.de>
21910
21911 PR tree-optimization/89710
21912 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21913 safe_dyn_cast.
21914
21915 2019-03-14 Martin Liska <mliska@suse.cz>
21916
21917 * coverage.c (coverage_begin_function): Stream also
21918 end_column.
21919 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21920 documentation about function declaration location.
21921 * gcov-dump.c (tag_function): Print whole range
21922 of function declaration.
21923 * gcov.c (struct function_info): Add end_column field.
21924 (function_info::function_info): Initialize it.
21925 (output_json_intermediate_file): Output {start,end}_column
21926 fields.
21927 (read_graph_file): Read end_column.
21928
21929 2019-03-14 Richard Biener <rguenther@suse.de>
21930
21931 PR middle-end/89698
21932 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21933 that the access types are similar.
21934
21935 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21936
21937 PR tree-optimization/89703
21938 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21939 aren't compatible also with builtin_decl_explicit. Check pure
21940 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21941 and BUILT_IN_STPNCPY{,_CHK}.
21942
21943 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21944
21945 PR target/89523
21946 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21947 addr32 prefix to VSIB address for X32.
21948 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21949 "%M2" to opcode.
21950 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21951 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21952 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21953 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21954 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21955 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21956 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21957 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21958 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21959 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21960 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21961 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21962 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21963 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21964 (*avx512f_scatterdi<mode>): Likewise.
21965
21966 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21967
21968 PR target/85860
21969 * lra-constraints.c (inherit_in_ebb): Update
21970 potential_reload_hard_regs along with live_hard_regs.
21971
21972 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21973
21974 PR debug/89498
21975 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21976 DWARF_OFFSET_SIZE.
21977 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21978
21979 2019-03-13 Martin Sebor <msebor@redhat.com>
21980
21981 PR tree-optimization/89662
21982 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21983 has a size.
21984
21985 2019-03-13 Richard Biener <rguenther@suse.de>
21986
21987 PR middle-end/89677
21988 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21989 throw FP expressions at tree-affine.
21990
21991 2019-03-14 Richard Biener <rguenther@suse.de>
21992
21993 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21994 dump negative integer constants using _Literal (type) -num.
21995
21996 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21997
21998 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21999 nonlocal_value member.
22000
22001 PR middle-end/88588
22002 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22003 (ipa_simd_modify_function_body): Handle PHIs.
22004
22005 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22006
22007 * config/s390/s390.c (s390_option_override_internal): Use more
22008 aggressive inlining parameters.
22009
22010 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22011
22012 * config/s390/3906.md: New file.
22013 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22014 (LONGRUNNING_THRESHOLD): Remove.
22015 (MAX_SCHED_MIX_SCORE): Decrease.
22016 (MAX_SCHED_MIX_DISTANCE): Decrease.
22017 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22018 (struct s390_sched_state): New struct to hold scheduling state.
22019 (S390_SCHED_STATE_NORMAL): Remove.
22020 (S390_SCHED_STATE_CRACKED): Remove.
22021 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22022 (s390_get_sched_attrmask): Use new attribute.
22023 (s390_get_unit_mask): Use new units.
22024 (s390_is_fpd): New function.
22025 (s390_is_fxd): New function.
22026 (s390_is_longrunning): New function.
22027 (s390_sched_score): Use new functions.
22028 (s390_sched_reorder): Likewise.
22029 (s390_sched_variable_issue): Rework and use new functions.
22030 (s390_sched_init): Use new functions.
22031 * config/s390/s390.h (s390_tune_attr): Add z14.
22032 * config/s390/s390.md: Add z14.
22033
22034 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22035
22036 * config/s390/2964.md: Update pipeline description.
22037 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22038 (LONGRUNNING_THRESHOLD): Remove.
22039 (LATENCY_FACTOR): Remove.
22040 (s390_get_unit_mask): Add unit.
22041 (s390_sched_score): Use fxd/fpd.
22042 (s390_sched_variable_issue): Use fxd/fpd.
22043
22044 2019-03-12 Martin Liska <mliska@suse.cz>
22045
22046 * config/i386/i386.c: Reword an error message.
22047
22048 2019-03-12 Martin Jambor <mjambor@suse.cz>
22049
22050 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22051 terminate with newline.
22052
22053 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22054
22055 PR target/52726
22056 * config/s390/s390.md (tabort): Use %wd instead of
22057 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22058 letters and periods.
22059 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22060 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22061 's with %< and %>.
22062
22063 PR middle-end/89663
22064 * builtins.c (expand_builtin_int_roundingfn,
22065 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22066 gcc_unreachable if validate_arglist fails.
22067
22068 2019-03-12 Richard Biener <rguenther@suse.de>
22069
22070 PR tree-optimization/89664
22071 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22072 free the occurance tree after the early out.
22073
22074 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22075
22076 PR middle-end/89655
22077 PR bootstrap/89656
22078 * vr-values.c (vr_values::update_value_range): If
22079 old_vr->varying_p (), don't update it, make new_vr also VARYING
22080 and return false.
22081
22082 2019-03-11 Martin Liska <mliska@suse.cz>
22083
22084 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22085 Fix double string quoting.
22086
22087 2019-03-11 Martin Liska <mliska@suse.cz>
22088
22089 * collect-utils.c (collect_wait): Wrap apostrophes
22090 in gcc internal format with %'.
22091 * collect2.c (main): Likewise.
22092 (scan_prog_file): Likewise.
22093 (scan_libraries): Likewise.
22094 * config/i386/i386.c (ix86_expand_call): Likewise.
22095 (ix86_handle_interrupt_attribute): Likewise.
22096 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22097 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22098 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22099 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22100 * symtab.c (symtab_node::verify_base): Likewise.
22101 * tree-cfg.c (verify_gimple_label): Likewise.
22102 * tree.c (verify_type_variant): Likewise.
22103
22104 2019-03-11 Martin Liska <mliska@suse.cz>
22105
22106 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22107 in a string format message and fix GNU coding style.
22108 (expand_builtin_set_thread_pointer): Likewise.
22109 * common/config/aarch64/aarch64-common.c
22110 (aarch64_rewrite_selected_cpu): Likewise.
22111 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22112 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22113 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22114 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22115 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22116 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22117 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22118 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22119 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22120 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22121 Likewise.
22122 * common/config/riscv/riscv-common.c
22123 (riscv_subset_list::parsing_subset_version): Likewise.
22124 (riscv_subset_list::parse_std_ext): Likewise.
22125 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22126 (riscv_subset_list::parse): Likewise.
22127 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22128 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22129 (aarch64_override_options_internal): Likewise.
22130 (aarch64_validate_mcpu): Likewise.
22131 (aarch64_validate_march): Likewise.
22132 (aarch64_validate_mtune): Likewise.
22133 (aarch64_override_options): Likewise.
22134 * config/alpha/alpha.c (alpha_option_override): Likewise.
22135 * config/arc/arc.c (arc_init): Likewise.
22136 (parse_mrgf_banked_regs_option): Likewise.
22137 (arc_override_options): Likewise.
22138 (arc_expand_builtin_aligned): Likewise.
22139 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22140 (arm_expand_builtin): Likewise.
22141 * config/arm/arm.c (arm_option_check_internal): Likewise.
22142 (arm_configure_build_target): Likewise.
22143 (arm_option_override): Likewise.
22144 (arm_options_perform_arch_sanity_checks): Likewise.
22145 (arm_handle_cmse_nonsecure_entry): Likewise.
22146 (arm_handle_cmse_nonsecure_call): Likewise.
22147 (arm_tls_referenced_p): Likewise.
22148 (thumb1_expand_prologue): Likewise.
22149 * config/avr/avr.c (avr_option_override): Likewise.
22150 * config/bfin/bfin.c (bfin_option_override): Likewise.
22151 * config/c6x/c6x.c (c6x_option_override): Likewise.
22152 * config/cr16/cr16.c (cr16_override_options): Likewise.
22153 * config/cris/cris.c (cris_option_override): Likewise.
22154 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22155 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22156 * config/darwin.c (darwin_override_options): Likewise.
22157 * config/frv/frv.c (frv_expand_builtin): Likewise.
22158 * config/h8300/h8300.c (h8300_option_override): Likewise.
22159 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22160 (ix86_option_override_internal): Likewise.
22161 (warn_once_call_ms2sysv_xlogues): Likewise.
22162 (ix86_expand_prologue): Likewise.
22163 (split_stack_prologue_scratch_regno): Likewise.
22164 (ix86_warn_parameter_passing_abi): Likewise.
22165 * config/ia64/ia64.c (fix_range): Likewise.
22166 * config/m68k/m68k.c (m68k_option_override): Likewise.
22167 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22168 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22169 (mips_set_compression_mode): Likewise.
22170 * config/mmix/mmix.c (mmix_option_override): Likewise.
22171 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22172 * config/msp430/msp430.c (msp430_option_override): Likewise.
22173 * config/nds32/nds32.c (nds32_option_override): Likewise.
22174 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22175 (nios2_option_override): Likewise.
22176 (nios2_expand_custom_builtin): Likewise.
22177 * config/nvptx/mkoffload.c (main): Likewise.
22178 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22179 * config/pa/pa.c (fix_range): Likewise.
22180 (pa_option_override): Likewise.
22181 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22182 (riscv_option_override): Likewise.
22183 * config/rl78/rl78.c (rl78_option_override): Likewise.
22184 * config/rs6000/aix61.h: Likewise.
22185 * config/rs6000/aix71.h: Likewise.
22186 * config/rs6000/aix72.h: Likewise.
22187 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22188 * config/rs6000/freebsd64.h: Likewise.
22189 * config/rs6000/linux64.h: Likewise.
22190 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22191 (rs6000_expand_zeroop_builtin): Likewise.
22192 (rs6000_expand_mtfsb_builtin): Likewise.
22193 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22194 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22195 (rs6000_invalid_builtin): Likewise.
22196 (rs6000_expand_split_stack_prologue): Likewise.
22197 * config/rs6000/rtems.h: Likewise.
22198 * config/rx/rx.c (valid_psw_flag): Likewise.
22199 (rx_expand_builtin): Likewise.
22200 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22201 * config/s390/s390.c (s390_expand_builtin): Likewise.
22202 (s390_function_profiler): Likewise.
22203 (s390_option_override_internal): Likewise.
22204 (s390_option_override): Likewise.
22205 * config/sh/sh.c (sh_option_override): Likewise.
22206 (sh_builtin_saveregs): Likewise.
22207 (sh_fix_range): Likewise.
22208 * config/sh/vxworks.h: Likewise.
22209 * config/sparc/sparc.c (sparc_option_override): Likewise.
22210 * config/spu/spu.c (spu_option_override): Likewise.
22211 (fix_range): Likewise.
22212 * config/visium/visium.c (visium_option_override): Likewise.
22213 (visium_handle_interrupt_attr): Likewise.
22214 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22215 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22216 (dbg_cnt_process_opt): Likewise.
22217 * dwarf2out.c (output_dwarf_version): Likewise.
22218 * except.c (expand_eh_return): Likewise.
22219 * gcc.c (defined): Likewise.
22220 (driver_handle_option): Likewise.
22221 (process_command): Likewise.
22222 (compare_files): Likewise.
22223 (driver::prepare_infiles): Likewise.
22224 (driver::do_spec_on_infiles): Likewise.
22225 (driver::maybe_run_linker): Likewise.
22226 * omp-offload.c (oacc_parse_default_dims): Likewise.
22227 * opts-global.c (handle_common_deferred_options): Likewise.
22228 * opts.c (parse_sanitizer_options): Likewise.
22229 (common_handle_option): Likewise.
22230 (enable_warning_as_error): Likewise.
22231 * passes.c (enable_disable_pass): Likewise.
22232 * plugin.c (parse_plugin_arg_opt): Likewise.
22233 (default_plugin_dir_name): Likewise.
22234 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22235 (default_pch_valid_p): Likewise.
22236 * toplev.c (init_asm_output): Likewise.
22237 (process_options): Likewise.
22238 (toplev::run_self_tests): Likewise.
22239 * tree-cfg.c (verify_gimple_call): Likewise.
22240 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22241 (tree_inlinable_function_p): Likewise.
22242 * var-tracking.c (vt_find_locations): Likewise.
22243
22244 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22245
22246 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22247 only on the else branch.
22248
22249 2019-03-11 Martin Liska <mliska@suse.cz>
22250
22251 * gcov.c (output_intermediate_json_line): Print function
22252 name of each line.
22253 (output_json_intermediate_file): Add new argument.
22254 * doc/gcov.texi: Document the change.
22255
22256 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22257
22258 PR rtl-optimization/89588
22259 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22260 explicit unrolling factor more robust.
22261
22262 2019-03-11 Richard Biener <rguenther@suse.de>
22263
22264 PR tree-optimization/89649
22265 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22266 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22267 on the prolog and epilog loops.
22268 (vect_loop_versioning): Return copy of loop.
22269 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22270 on the non-vectorized version of the loop.
22271
22272 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22273
22274 PR target/68924
22275 * config/i386/sse.md (*vec_extractv2di_0_sse):
22276 Add (=r,x) alternative and corresponding splitter.
22277
22278 2019-03-10 Martin Jambor <mjambor@suse.cz>
22279
22280 PR tree-optimization/85762
22281 PR tree-optimization/87008
22282 PR tree-optimization/85459
22283 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22284 it points to if there is a type changing MEM_REF. Adjust all callers.
22285 (build_accesses_from_assign): Disable total scalarization if
22286 contains_vce_or_bfcref_p returns true through the new parameter, for
22287 both rhs and lhs.
22288
22289 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22290
22291 PR c/88568
22292 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22293 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22294
22295 PR target/79645
22296 * common.opt (fdiagnostics-show-labels,
22297 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22298 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22299 gas-locview-support, ginline-points, ginternal-reset-location-views):
22300 Terminate description text with a dot.
22301 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22302 * config/mcore/mcore.opt (m210, m340): Likewise.
22303 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22304 mnops=): Start description text with a capital letter.
22305 * config/arc/arc.opt (msize-level=): Likewise.
22306 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22307 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22308 mnewlib): Likewise.
22309 * config/ft32/ft32.opt (msim): Likewise.
22310 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22311 (mnodiv, mnopm): Terminate description text with a dot.
22312 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22313 a colon.
22314 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22315 Likewise.
22316 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22317 text.
22318
22319 PR rtl-optimization/89634
22320 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22321 are modified in BB_END (e->src) instruction.
22322
22323 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22324
22325 PR target/79926
22326 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22327 messages more amenable to translation, and improve wording.
22328
22329 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22330
22331 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22332 ud- and du-chains between phases.
22333
22334 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22335
22336 PR debug/89631
22337 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22338 instead of POLY_INT_CST.
22339
22340 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22341
22342 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22343 requirement.
22344
22345 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22346
22347 PR target/68924
22348 PR target/78782
22349 PR target/87558
22350 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22351 (_mm_storeu_si64): Ditto.
22352
22353 2019-03-08 Martin Liska <mliska@suse.cz>
22354
22355 PR target/86952
22356 * config/i386/i386.c (ix86_option_override_internal): Disable
22357 jump tables when retpolines are used.
22358
22359 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22360
22361 PR go/63560
22362 * ipa-split.c (execute_split_functions): Do not split
22363 'noinline' or 'section' function.
22364
22365 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22366
22367 PR target/79846
22368 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22369 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22370 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22371
22372 PR ipa/80000
22373 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22374 from diagnostics. Formatting fixes.
22375
22376 PR target/85665
22377 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22378 warn_odr diagnostics.
22379
22380 PR other/80058
22381 * lra-constraints.c (process_alt_operands): Avoid one space before
22382 " at the end of line and another after " on another line in a string
22383 literal.
22384 * attribs.c (handle_dll_attribute): Likewise.
22385 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22386
22387 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22388 warning_at or inform messages in G_() if there is no ?:.
22389
22390 PR tree-optimization/89550
22391 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22392 returned true. Formatting fixes.
22393 (expand_builtin_strnlen): Formatting fixes.
22394 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22395 if warning_at returned true.
22396 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22397
22398 2019-03-08 Richard Biener <rguenther@suse.de>
22399
22400 PR middle-end/89578
22401 * cfgloop.h (struct loop): Add owned_clique field.
22402 * cfgloopmanip.c (copy_loop_info): Copy it.
22403 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22404 cliques.
22405 * tree-inline.c (copy_loops): Remap owned_clique.
22406 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22407 * lto-streamer-out.c (output_cfg): Likewise.
22408
22409 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22410
22411 PR target/80190
22412 * config/darwin.c: Include intl.h.
22413 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22414 composing the message out of two separate parts.
22415
22416 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22417
22418 PR target/80003
22419 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22420 doesn't start with a capital letter and doesn't end with a dot.
22421 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22422 with a capital letter.
22423 (ix86_mangle_function_version_assembler_name): Likewise.
22424 (ix86_generate_version_dispatcher_body): Likewise.
22425 (fold_builtin_cpu): Likewise.
22426 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22427 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22428 translators, wrap full type name in %qs.
22429
22430 PR translation/79999
22431 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22432 depend clause with source (or sink) modifier.
22433 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22434
22435 PR target/89602
22436 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22437 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22438 (avx512f_load<mode>_mask): New define_expand.
22439 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22440 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22441 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22442 __builtin_ia32_movess_mask): New builtins.
22443 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22444 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22445 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22446 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22447
22448 2019-03-07 Martin Jambor <mjambor@suse.cz>
22449
22450 PR lto/87525
22451 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22452 for extern inline functions.
22453
22454 2019-03-07 Martin Jambor <mjambor@suse.cz>
22455
22456 PR ipa/88235
22457 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22458 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22459 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22460 have multiple callees. At the end check if declarations match as
22461 opposed to cgraph_nodes.
22462
22463 2019-03-07 Martin Liska <mliska@suse.cz>
22464
22465 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22466 which is equivalent to searching for this in clones chain.
22467 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22468 names with a neighbour and special case first node in a chain.
22469
22470 2019-01-25 Jason Merrill <jason@redhat.com>
22471
22472 PR c++/80916 - spurious "static but not defined" warning.
22473 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22474 for an internal symbol with DECL_EXTERNAL.
22475
22476 2019-04-07 Richard Biener <rguenther@suse.de>
22477
22478 PR middle-end/89618
22479 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22480 * tree-inline.c (copy_loops): Simplify.
22481
22482 2019-03-07 Martin Liska <mliska@suse.cz>
22483
22484 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22485
22486 2019-03-07 Richard Biener <rguenther@suse.de>
22487
22488 PR tree-optimization/89595
22489 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22490 stmt iterator as reference, take boolean output parameter to
22491 indicate whether the stmt was removed and thus the iterator
22492 already advanced.
22493 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22494 stmts created by folding.
22495
22496 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22497
22498 PR c++/89585
22499 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22500 at toplevel.
22501
22502 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22503
22504 PR rtl-optimization/88845
22505 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22506 LRA.
22507 * lra.c (remove_scratches_1): New function.
22508 (remove_scratches): Use it.
22509 (lra_emit_move): Likewise.
22510
22511 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22512
22513 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22514 unaligned_access variable.
22515 * config/arc/arc.c (arc_override_options): Set unaligned access
22516 default on for HS CPUs.
22517 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22518
22519 2019-03-06 Martin Liska <mliska@suse.cz>
22520
22521 PR gcov-profile/89577
22522 * doc/gcov.texi: Prefer to use --coverage.
22523 * doc/sourcebuild.texi: Likewise.
22524
22525 2019-03-02 Jason Merrill <jason@redhat.com>
22526
22527 PR c++/86485 - -Wmaybe-unused with empty class ?:
22528 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22529
22530 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22531
22532 PR target/89587
22533 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22534 if_multiarch.
22535
22536 PR middle-end/89590
22537 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22538 exactly one argument.
22539
22540 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22541 Richard Sandiford <richard.sandiford@arm.com>
22542
22543 PR tree-optimization/89570
22544 * match.pd (vec_cond into cond_op simplification): Don't use
22545 get_conditional_internal_fn, use as_internal_fn (cond_op).
22546
22547 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22548
22549 PR target/89222
22550 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22551 to decide when to split off a non-zero offset from a symbol.
22552 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22553 in function symbols.
22554
22555 2019-03-05 Richard Biener <rguenther@suse.de>
22556
22557 PR tree-optimization/89594
22558 * tree-if-conv.c (pass_if_conversion::execute): Handle
22559 case where .LOOP_VECTORIZED_FUNCTION was removed.
22560
22561 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22562
22563 PR bootstrap/89560
22564 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22565 instead alloca it only when needed with the needed size.
22566
22567 PR tree-optimization/89570
22568 * match.pd (vec_cond into cond_op simplification): Guard with
22569 vectorized_internal_fn_supported_p test and #if GIMPLE.
22570
22571 PR tree-optimization/89566
22572 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22573 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22574 Punt if get_user_idx_format succeeds, but idx_format argument is
22575 not provided or doesn't have pointer type, or if idx_args is above
22576 number of provided arguments.
22577
22578 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22579
22580 PR tree-optimization/89437
22581 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22582
22583 2019-03-04 Richard Biener <rguenther@suse.de>
22584
22585 PR middle-end/89572
22586 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22587 safe_dyn_cast.
22588
22589 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22590
22591 PR tree-optimization/89487
22592 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22593 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22594 (distribute_loop): Don't do runtime alias check if there is non-
22595 addressable data reference.
22596 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22597 is a register variable.
22598
22599 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22600
22601 PR target/89506
22602 * config/arm/arm.md (cmpsi2_addneg): Use
22603 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22604 If operands[2] is 0 or INT_MIN, force use of subs.
22605 (*compare_scc splitter): Use gen_int_mode.
22606 (*negscc): Likewise.
22607 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22608
22609 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22610 Monk Chiang <sh.chiang04@gmail.com>
22611
22612 * common/config/riscv/riscv-common.c: Include sstream.
22613 (riscv_subset_list::to_string): New.
22614 (riscv_arch_str): Likewise.
22615 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22616 * config.in: Regen.
22617 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22618 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22619 (riscv_emit_attribute): New.
22620 (riscv_file_start): Emit attribute if needed.
22621 (riscv_option_override): Init riscv_emit_attribute_p.
22622 * config/riscv/riscv.opt (mriscv-attribute): New option.
22623 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22624 * configure: Regen.
22625 * doc/install.texi: Document --with-riscv-attribute.
22626 * doc/invoke.texi: Document -mriscv-attribute.
22627
22628 * common/config/riscv/riscv-common.c:
22629 Include config/riscv/riscv-protos.h.
22630 (INCLUDE_STRING): Defined.
22631 (RISCV_DONT_CARE_VERSION): Defined.
22632 (riscv_subset_t): Declare.
22633 (riscv_subset_t::riscv_subset_t): New.
22634 (riscv_subset_list): Declare.
22635 (riscv_subset_list::riscv_subset_list): New.
22636 (riscv_subset_list::~riscv_subset_list): Likewise.
22637 (riscv_subset_list::parsing_subset_version): Likewise.
22638 (riscv_subset_list::parse_std_ext): Likewise.
22639 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22640 (riscv_subset_list::add): Likewise.
22641 (riscv_subset_list::lookup): Likewise.
22642 (riscv_subset_list::xlen): Likewise.
22643 (riscv_subset_list::parse): Likewise.
22644 (riscv_supported_std_ext): Likewise.
22645 (current_subset_list): Likewise.
22646 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22647 parse.
22648
22649 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22650
22651 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22652 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22653 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22654
22655 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22656
22657 PR rtl-optimization/85899
22658 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22659 fallthru edges leading to the exit block.
22660
22661 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22662
22663 PR target/89517
22664 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22665 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22666
22667 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22668
22669 PR tree-optimization/89535
22670 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22671 for each operand. Calculate the fallback choice for mask operands
22672 and pass it to vect_get_vec_def_for_operand.
22673
22674 2019-03-01 Richard Biener <rguenther@suse.de>
22675
22676 PR middle-end/89541
22677 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22678 get virtual operands.
22679 (get_expr_operands): Handle CONST_DECL like other decls.
22680
22681 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22682
22683 PR middle-end/89503
22684 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22685 on DECL_P and EXPR_P.
22686
22687 2019-03-01 Richard Biener <rguenther@suse.de>
22688
22689 PR middle-end/89497
22690 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22691 argument, defaulted to zero.
22692 * passes.c (execute_function_todo): Pass down SSA update flags
22693 to cleanup_tree_cfg.
22694 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22695 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22696 form if requested.
22697 (cleanup_tree_cfg): Get and pass down SSA update flags.
22698
22699 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22700
22701 PR bootstrap/89539
22702 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22703 early_lto_debug argument.
22704
22705 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22706
22707 PR tree-optimization/89536
22708 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22709 only whether bit #0 of the value is 0 instead of the entire value.
22710
22711 2019-02-28 Marek Polacek <polacek@redhat.com>
22712
22713 PR c++/87068 - missing diagnostic with fallthrough statement.
22714 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22715 at the end of a seq, save its location to walk_stmt_info.
22716 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22717 a switch.
22718
22719 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22720
22721 PR lto/88585
22722 * tree.c (find_atomic_core_type): Move ahead in file.
22723 (check_base_type): Correctly compare alignments of atomic types.
22724
22725 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22726
22727 PR target/89455
22728 * config/i386/i386.c (get_builtin_code_for_version): Identify
22729 Westmere from PCLMUL, instead of AES.
22730
22731 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22732
22733 PR target/89434
22734 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22735 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22736 -UINTVAL (...).
22737
22738 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22739
22740 PR target/88530
22741 * config/aarch64/aarch64-option-extensions.def: Document it.
22742 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22743 if empty hwcaps.
22744
22745 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22746
22747 PR c/89520
22748 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22749 builtins if they don't have a single scalar floating point argument.
22750 Formatting fixes.
22751
22752 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22753
22754 PR rtl-optimization/89490
22755 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22756 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22757 block section is not mergeable.
22758
22759 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22760
22761 PR target/70341
22762 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22763 old define_insn to ...
22764 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22765 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22766 Rename old define_insn to ...
22767 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22768 (thumb2_casesi_internal_pic): New define_expand. Rename old
22769 define_insn to ...
22770 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22771 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22772 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22773
22774 2019-02-27 Richard Biener <rguenther@suse.de>
22775
22776 PR debug/88878
22777 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22778
22779 2019-02-27 Richard Biener <rguenther@suse.de>
22780
22781 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22782 building.
22783
22784 2019-02-27 Richard Biener <rguenther@suse.de>
22785
22786 PR debug/88878
22787 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22788 parameter, prefix section name with .gnu.debuglto_ if true.
22789 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22790 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22791
22792 2019-02-27 Richard Biener <rguenther@suse.de>
22793
22794 PR debug/89514
22795 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22796 rather than on use_debug_types, doing what output_die does.
22797 (value_format): Likewise.
22798
22799 2019-02-27 Martin Jambor <mjambor@suse.cz>
22800 Martin Sebor <msebor@redhat.com>
22801
22802 * doc/invoke.texi (Warning Options): Reword description of
22803 -Wno-absolute-value.
22804
22805 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22806
22807 PR tree-optimization/89280
22808 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22809 builtin_setjmp_setup_bb): New functions.
22810 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22811 When visiting __builtin_setjmp_setup block, queue in special
22812 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22813 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22814 from visited after the loop if they don't have any visited successor
22815 blocks.
22816
22817 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22818
22819 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22820 New function.
22821 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22822
22823 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22824
22825 PR c++/89507
22826 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22827 with types other than sizetype/ssizetype.
22828
22829 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22830
22831 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22832 (enum sparc_processor_type): ...this.
22833 (enum sparc_code_model_type): New enumeration type.
22834 (enum sparc_memory_model_type): Tweak comments.
22835 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22836 (mtune): Likewise.
22837 (mcmodel): Use sparc_code_model enumeration and variable.
22838 (sparc_code_model): New enumeration.
22839 (mdebug): Add Undocumented marker.
22840 * config/sparc/sparc.h (enum cmodel): Delete.
22841 (sparc_cmodel): Likewise.
22842 (TARGET_CM_MEDLOW): Adjust to above renaming.
22843 (TARGET_CM_MEDMID): Likewise.
22844 (TARGET_CM_MEDANY): Likewise.
22845 (TARGET_CM_EMBMEDANY): Likewise.
22846 * config/sparc/sparc.c (sparc_cmodel): Delete.
22847 (sparc_option_override): Remove string/value mapping support for the
22848 code model. Move code and memory model support to after the handling
22849 of target flags. Do private machine setup last.
22850 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22851 (sparc_legitimize_reload_address): Likewise.
22852 (sparc_output_mi_thunk): Likewise.
22853 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22854
22855 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22856
22857 PR tree-optimization/89500
22858 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22859 (handle_builtin_strlen): Remove noncst_bound variable. Always
22860 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22861 cst if the first cst bytes starting at x are known to be non-zero,
22862 even if the string is not zero terminated. Don't try to modify
22863 *si for strnlen. Update strlen_to_stridx only for strlen or if
22864 we can prove strnlen returns the same value as strlen would.
22865
22866 2019-02-26 Martin Liska <mliska@suse.cz>
22867
22868 * alloc-pool.h (struct pool_usage): Remove extra
22869 print_dash_line.
22870 * bitmap.h (struct bitmap_usage): Likewise.
22871 * ggc-common.c (struct ggc_usage): Likewise.
22872 * mem-stats.h (struct mem_usage): Likewise.
22873 (mem_alloc_description::dump): Print dash lines
22874 here and repeat header at the end of a table report.
22875 It's then more readable.
22876 * tree-phinodes.c (phinodes_print_statistics): Make
22877 horizontal alignment.
22878 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22879 * vec.c (struct vec_usage): Remove extra print_dash_line.
22880 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22881
22882 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22883
22884 * doc/extend.texi (__builtin_object_size):
22885 Use @pxref instead of @xref inside parenthesis.
22886 (__builtin_has_attribute): Add missing comma after @xref.
22887 (__builtin_object_size): Ditto.
22888 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22889
22890 2019-02-26 Jeff Law <law@redhat.com>
22891
22892 PR rtl-optimization/87761
22893 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22894 detect obviously dead insns and delete them.
22895
22896 2019-02-26 Richard Biener <rguenther@suse.de>
22897
22898 PR tree-optimization/89505
22899 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22900 to handle restrict pointed-to vars with multiple subvars
22901 correctly.
22902
22903 2019-02-26 Richard Biener <rguenther@suse.de>
22904
22905 PR tree-optimization/89489
22906 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22907
22908 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22909
22910 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22911 and move around comment.
22912 <BIT_AND_EXPR>: Likewise.
22913 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22914
22915 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22916
22917 PR target/89474
22918 * config/i386/i386.c (remove_partial_avx_dependency): Call
22919 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22920 after changing possibly many instructions to use that pseudo. Fix up
22921 insertion of v4sf_const0 setter at the start of bb.
22922
22923 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22924
22925 PR c/80409
22926 * doc/extend.texi (Variadic Pointer Args): New section.
22927
22928 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22929 Martin Sebor <msebor@gmail.com>
22930
22931 * common.opt (Wattribute-alias): Likewise.
22932 * doc/invoke.texi (Option Summary): List general form of
22933 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22934 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22935 Add cross-references.
22936 (-Wattribute-alias): Rewrite and correct default. Mention
22937 considered attributes (same as for -Wmissing-attributes).
22938
22939 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22940
22941 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22942 (_mm_cvtpd_ps): Likewise.
22943 (_mm_cvttpd_epi32): Likewise.
22944
22945 PR target/89338
22946 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22947 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22948
22949 PR target/89339
22950 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22951
22952 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22953
22954 PR target/88530
22955 * common/config/aarch64/aarch64-common.c
22956 (struct aarch64_option_extension): Add is_synthetic.
22957 (all_extensions): Use it.
22958 (TARGET_OPTION_INIT_STRUCT): Define hook.
22959 (struct gcc_targetm_common): Moved to end.
22960 (all_extensions_by_on): New.
22961 (opt_ext_cmp, typedef opt_ext): New.
22962 (aarch64_option_init_struct): New.
22963 (aarch64_contains_opt): New.
22964 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22965 * config/aarch64/aarch64-option-extensions.def
22966 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22967 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22968 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22969 Set is_synthetic to false.
22970 (crypto): Set is_synthetic to true.
22971 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22972 SYNTHETIC.
22973
22974 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22975
22976 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22977 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22978 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22979 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22980 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22981 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22982 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22983 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22984 Rename ...
22985 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22986 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22987 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22988 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22989 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22990 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22991 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22992 vfmlsl_laneq_high_f16): ... To this.
22993 * config/arm/neon.md: Update comments.
22994
22995 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22996
22997 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22998 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22999 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23000 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23001 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23002 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23003 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23004 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23005 Rename ...
23006 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23007 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23008 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23009 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23010 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23011 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23012 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23013 vfmlslq_laneq_high_f16): ... To this.
23014
23015 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23016
23017 PR rtl-optimization/86096
23018 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23019 comparing mw_order values.
23020
23021 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23022
23023 PR target/89434
23024 * config/arm/arm.md (*subsi3_carryin_const): Use
23025 arm_neg_immediate_operand predicate instead of
23026 arm_not_immediate_operand, "L" constraint instead of "K" and
23027 print it using %n2 instead of %B2.
23028 (*subsi3_carryin_const0): New define_insn.
23029 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23030 instead of arm_not_operand and "I" constraint instead of "K" and
23031 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23032 another match_operand and in the condition check that it is negation
23033 of operands[2].
23034 (*subsi3_carryin_compare_const0): New define_ins.
23035 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23036 *subsi3_carryin_const.
23037 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23038 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23039
23040 PR target/89438
23041 * config/arm.vfp.md (*negdf2_vfp): Use
23042 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23043 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23044
23045 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23046
23047 PR rtl-optimization/89445
23048 * simplify-rtx.c (simplify_ternary_operation): Don't use
23049 simplify_merge_mask on operands that may trap.
23050 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23051 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23052 second operand is CONST_VECTOR, check if any element could be zero.
23053 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23054 their operands can trap.
23055
23056 2019-02-23 Martin Sebor <msebor@redhat.com>
23057
23058 * gimple-ssa-sprintf.c (target_strtol): Rename...
23059 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23060 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23061 check for range error.
23062
23063 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23064
23065 PR driver/69471
23066 * opts-common.c (prune_options): Also prune joined switches
23067 with Negative and RejectNegative.
23068 * config/i386/i386.opt (march=): Add Negative(march=).
23069 (mtune=): Add Negative(mtune=).
23070 * doc/options.texi: Document Negative used together with Joined
23071 and RejectNegative.
23072
23073 2019-02-22 Martin Sebor <msebor@redhat.com>
23074
23075 * doc/extend.texi (Other Builtins): Add
23076 __builtin_is_constant_evaluated.
23077
23078 2019-02-22 Richard Biener <rguenther@suse.de>
23079
23080 PR tree-optimization/87609
23081 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23082
23083 2019-02-22 Jeff Law <law@redhat.com>
23084
23085 PR rtl-optimization/87761
23086 * config/mips/mips.md: Add new combiner pattern to recognize
23087 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23088
23089 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23090
23091 PR target/89324
23092 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23093 destination register in peepholes generating patterns for ADDS/SUBS.
23094 (add<mode>3_compare0,
23095 *addsi3_compare0_uxtw, add<mode>3_compareC,
23096 add<mode>3_compareV_imm, add<mode>3_compareV,
23097 *adds_<optab><ALLX:mode>_<GPI:mode>,
23098 *subs_<optab><ALLX:mode>_<GPI:mode>,
23099 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23100 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23101 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23102 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23103 sub<mode>3_compare1): Allow stack pointer for source register.
23104 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23105
23106 2019-02-22 Martin Sebor <msebor@redhat.com>
23107
23108 PR tree-optimization/88993
23109 PR tree-optimization/88853
23110 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23111 New helper.
23112 (sprintf_dom_walker::call_info::is_string_func): New helper.
23113 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23114 for formatted string functions.
23115 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23116
23117 2019-02-22 Martin Sebor <msebor@redhat.com>
23118
23119 PR c/89425
23120 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23121 unreachable subexpressions.
23122
23123 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23124 Hongtao Liu <hongtao.liu@intel.com>
23125 Sunil K Pandey <sunil.k.pandey@intel.com>
23126
23127 PR target/87007
23128 * config/i386/i386-passes.def: Add
23129 pass_remove_partial_avx_dependency.
23130 * config/i386/i386-protos.h
23131 (make_pass_remove_partial_avx_dependency): New.
23132 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23133 New function.
23134 (pass_data_remove_partial_avx_dependency): New.
23135 (pass_remove_partial_avx_dependency): Likewise.
23136 (make_pass_remove_partial_avx_dependency): Likewise.
23137 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23138 (*extendsfdf2): Add avx_partial_xmm_update.
23139 (truncdfsf2): Likewise.
23140 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23141 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23142
23143 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23144
23145 PR middle-end/85598
23146 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23147 analysis for pass.
23148
23149 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23150
23151 PR target/89444
23152 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23153 (PTA_SKYLAKE): Add PTA_AES.
23154 (PTA_GOLDMONT): Likewise.
23155
23156 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23157
23158 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23159 instruction if enabled.
23160 (aarch64_override_options): Remove reference to return address key.
23161
23162 2019-02-22 Richard Biener <rguenther@suse.de>
23163
23164 PR tree-optimization/89440
23165 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23166 not necessary assert.
23167
23168 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23169
23170 PR fortran/72741
23171 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23172 (oacc_replace_fn_attrib_attr): ... this new function.
23173 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23174 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23175
23176 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23177
23178 * config/arm/arm-cpus.in (ares): Rename to...
23179 (neoverse-n1): ... This. Add ares as alias.
23180 * config/arm/arm-tables.opt: Regenerate.
23181 * config/arm/arm-tune.md: Likewise.
23182 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23183
23184 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23185
23186 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23187 * config/aarch64/aarch64-tune.md: Regenerate.
23188 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23189
23190 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23191
23192 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23193 (neoversen1_tunings): ... This.
23194 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23195 (neoverse-n1): New CPU.
23196 * config/aarch64/aarch64-tune.md: Regenerate.
23197 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23198
23199 2019-02-22 Richard Biener <rguenther@suse.de>
23200
23201 PR middle-end/87609
23202 * cfghooks.h (dependence_hash): New typedef.
23203 (struct copy_bb_data): New type.
23204 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23205 (duplicate_block): Likewise.
23206 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23207 (copy_bbs): Create and pass down copy_bb_data.
23208 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23209 (rtl_duplicate_bb): Likewise.
23210 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23211 remap dependence info.
23212
23213 2019-02-22 Richard Biener <rguenther@suse.de>
23214
23215 PR tree-optimization/87609
23216 * tree-core.h (tree_base): Document special clique values.
23217 * tree-inline.c (remap_dependence_clique): Do not use the
23218 special clique value of one.
23219 (maybe_set_dependence_info): Use clique one.
23220 (clear_dependence_clique): New callback.
23221 (compute_dependence_clique): Clear clique one from all refs
23222 before assigning it (again).
23223
23224 2019-02-21 Martin Sebor <msebor@redhat.com>
23225
23226 * doc/extend.texi (__clear_cache): Correct signature.
23227
23228 2019-02-21 Ian Lance Taylor <iant@golang.org>
23229
23230 PR go/89170
23231 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23232 than output_constant_def.
23233 (add_constant_to_table): New static function.
23234 (output_constant_def): Call add_constant_to_table.
23235 (tree_output_constant_def): Likewise.
23236
23237 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23238
23239 PR c++/89285
23240 * builtins.c (fold_builtin_arith_overflow): If first two args are
23241 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23242 to ifn.
23243
23244 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23245
23246 PR target/87412
23247 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23248 error for -mindirect-branch/-mfunction-return with incompatible
23249 -fcf-protection.
23250
23251 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23252
23253 PR bootstrap/88714
23254 * constraints.md (q): Remove.
23255 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23256 instead of q.
23257
23258 2019-02-21 Martin Jambor <mjambor@suse.cz>
23259
23260 PR hsa/89302
23261 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23262 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23263 (omp_adjust_for_condition): ...here. Added necessary parameters.
23264 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23265 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23266 proper values to new parameters of omp_adjust_for_condition.
23267
23268 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23269
23270 PR middle-end/89412
23271 * expr.c (expand_assignment): If result is a MEM, use change_address
23272 instead of simplify_gen_subreg.
23273
23274 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23275 David Malcolm <dmalcolm@redhat.com>
23276
23277 PR middle-end/89091
23278 * fold-const.c (decode_field_reference): Return NULL_TREE if
23279 lang_hooks.types.type_for_size returns NULL. Check it before
23280 overwriting *exp_. Use return NULL_TREE instead of return 0.
23281
23282 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23283
23284 PR middle-end/88074
23285 PR middle-end/89415
23286 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23287 buggy mpc_norm.
23288
23289 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23290
23291 PR target/89397
23292 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23293 TARGET_SSE in addition to TARGET_SSE_MATH.
23294
23295 (ix86_excess_precision): Ditto.
23296 (ix86_float_exceptions_rounding_supported_p): Ditto.
23297 (use_rsqrt_p): Ditto.
23298 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23299
23300 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23301
23302 PR c/89410
23303 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23304 linenum_arith_t when determining if two adjacent line spans are
23305 close enough to merge.
23306 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23307 lines within each line_span.
23308
23309 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23310
23311 PR target/86487
23312 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23313 paradoxical SUBREGS.
23314
23315 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23316
23317 PR target/88100
23318 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23319 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23320 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23321 range checking it.
23322
23323 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23324
23325 * config/gcn/gcn.c (print_operand): Fix typo.
23326
23327 2019-02-19 Richard Biener <rguenther@suse.de>
23328
23329 PR middle-end/88074
23330 * toplev.c (do_compile): Initialize mpfr's exponent range
23331 based on available float modes.
23332
23333 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23334
23335 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23336 as long as the epilogue isn't completed.
23337
23338 2019-02-18 Martin Sebor <msebor@redhat.com>
23339
23340 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23341 __has_cpp_attribute, and __has_include.
23342
23343 2019-02-18 Martin Sebor <msebor@redhat.com>
23344
23345 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23346
23347 2019-02-18 Martin Sebor <msebor@redhat.com>
23348
23349 PR middle-end/89294
23350 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23351 expression.
23352 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23353
23354 2019-02-18 Richard Biener <rguenther@suse.de>
23355
23356 PR tree-optimization/89296
23357 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23358 of no-warning flag to cases that might emit the bogus warning.
23359
23360 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23361
23362 PR bootstrap/88714
23363 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23364 "q" constraint.
23365 * config/arm/vfp.md (*movdi_vfp): Likewise.
23366 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23367 "q" constraint for operands[0].
23368
23369 PR target/89369
23370 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23371 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23372 pattern in a temporary buffer.
23373 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23374 than 64-operands[2].
23375
23376 PR target/89361
23377 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23378 s390_indirect_branch_settings): Define unconditionally.
23379 (s390_set_current_function): Likewise, but guard the whole body except
23380 the s390_indirect_branch_settings call with
23381 #if S390_USE_TARGET_ATTRIBUTE.
23382 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23383
23384 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23385 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23386 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23387 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23388 HOST_WIDE_INT_1U instead of 1ULL.
23389 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23390 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23391 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23392 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23393 instead of 1UL.
23394 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23395 instead of 1ul.
23396
23397 2019-02-18 Martin Jambor <mjambor@suse.cz>
23398
23399 PR tree-optimization/89209
23400 * tree-sra.c (create_access_replacement): New optional parameter
23401 reg_tree. Use it as a type if non-NULL and access type is not of
23402 a register type.
23403 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23404 to create_access_replacement.
23405 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23406 Check lacc is non-NULL before attempting to re-create it on the RHS.
23407
23408 2019-02-18 Martin Liska <mliska@suse.cz>
23409
23410 PR ipa/89306
23411 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23412 by default.
23413 (symbol_table::free_edge): Recycle m_summary_id.
23414 * cgraph.h (get_summary_id): New.
23415 (symbol_table::release_symbol): Set m_summary_id to -1
23416 by default.
23417 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23418 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23419 function_summary to fast_function_summary.
23420 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23421 * ipa-pure-const.c (class funct_state_summary_t):
23422 Switch from function_summary to fast_function_summary.
23423 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23424 (class ipa_ref_opt_summary_t): Switch from function_summary
23425 to fast_function_summary.
23426 * symbol-summary.h (class function_summary_base): New class
23427 that is created from base of former function_summary.
23428 (function_summary_base::unregister_hooks): New.
23429 (class function_summary): Inherit from function_summary_base.
23430 (class call_summary_base): New class
23431 that is created from base of former call_summary.
23432 (class call_summary): Inherit from call_summary_base.
23433 (struct is_same): New.
23434 (class fast_function_summary): New summary class.
23435 (class fast_call_summary): New summary class.
23436 * vec.h (vec_safe_grow_cleared): New function.
23437
23438 2019-02-18 Martin Liska <mliska@suse.cz>
23439
23440 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23441 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23442 * doc/tm.texi: Document new target hook.
23443 * doc/tm.texi.in: Likewise.
23444 * target.def: Add new target macro.
23445 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23446 suffixes.
23447
23448 2019-02-17 Alan Modra <amodra@gmail.com>
23449
23450 PR target/89271
23451 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23452 output reg on add insn.
23453 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23454
23455 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23456
23457 PR target/89372
23458 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23459 (PMULHRSW): Likewise.
23460 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23461 TARGET_AVX2.
23462 (ssse3_pmulhrswv4hi3): New expander.
23463
23464 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23465
23466 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23467 MMX. Add isa attribute.
23468
23469 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23470
23471 PR rtl-optimization/66152
23472 * builtins.h (c_readstr): Declare.
23473 * builtins.c (c_readstr): Remove forward declaration. Add
23474 null_terminated_p argument, if false, read all bytes from the
23475 string instead of stopping after '\0'.
23476 * expr.c (string_cst_read_str): New function.
23477 (store_expr): Use string_cst_read_str instead of
23478 builtin_strncpy_read_str. Try to store by pieces the whole
23479 exp_len first, and only if that fails, split it up into
23480 store by pieces followed by clear_storage. Formatting fix.
23481
23482 * config/i386/i386.md (*movqi_internal): Remove static from
23483 buf variable. Use output_asm_insn (buf, operands); return "";
23484 instead of return buf;.
23485 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23486 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23487 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23488
23489 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23490
23491 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23492 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23493 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23494 (CC1_SPEC): Likewise.
23495 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23496
23497 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23498
23499 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23500 the base address on 64-bit strict-alignment platforms.
23501
23502 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23503
23504 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23505
23506 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23507
23508 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23509
23510 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23511
23512 PR rtl-optimization/88308
23513 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23514 on copied instruction.
23515
23516 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23517
23518 * final.c (insn_current_reference_address): Replace test on JUMP_P
23519 with test on jump_to_label_p.
23520 * config/visium/visium-passes.def: New file.
23521 * config/visium/t-visium (PASSES_EXTRA): Define.
23522 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23523 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23524 (TRAMPOLINE_ALIGNMENT): Define.
23525 * config/visium/visium.c (visium_option_override): Do not register
23526 the machine-specific reorg pass here.
23527 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23528 for the GR6.
23529 (output_branch): Adjust threshold for long branch instruction.
23530 * config/visium/visium.md (cpu): Move around.
23531 (length): Adjust for the GR6.
23532
23533 2019-02-15 Richard Biener <rguenther@suse.de>
23534 Jakub Jelinek <jakub@redhat.com>
23535
23536 PR tree-optimization/89278
23537 * tree-loop-distribution.c: Include tree-eh.h.
23538 (generate_memset_builtin, generate_memcpy_builtin): Call
23539 rewrite_to_non_trapping_overflow on builtin->size before passing it
23540 to force_gimple_operand_gsi.
23541
23542 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23543
23544 PR other/89342
23545 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23546 optimize_debug.
23547 * opth-gen.awk: Likewise.
23548
23549 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23550
23551 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23552 Enable MMX, SSE and SSE2 by default.
23553 * config/i386/i386.c (ix86_option_override_internal): Do not
23554 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23555
23556 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23557
23558 PR rtl-optimization/89354
23559 * combine.c (make_extraction): Punt if extraction_mode is narrower
23560 than len bits.
23561
23562 2019-02-14 Maya Rashish <coypu@sdf.org>
23563
23564 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23565 * config/netbsd-d.c: New file.
23566 * config/t-netbsd: Add netbsd-d.o
23567
23568 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23569
23570 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23571 affects_type_identity to true for aarch64_vector_pcs.
23572 (aarch64_comp_type_attributes): New function.
23573 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23574
23575 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23576
23577 PR target/88850
23578 * config/arm/iterators.md (ANY64): Add V4HF.
23579
23580 2019-02-14 Martin Liska <mliska@suse.cz>
23581
23582 PR rtl-optimization/89242
23583 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23584 process a transformation.
23585
23586 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23587
23588 PR tree-optimization/89314
23589 * fold-const.c (fold_binary_loc): Cast strlen argument to
23590 const char * before dereferencing it. Formatting fixes.
23591
23592 PR middle-end/89284
23593 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23594
23595 2019-02-13 Ian Lance Taylor <iant@golang.org>
23596
23597 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23598 and set current index for other optimizations.
23599
23600 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23601
23602 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23603 nonimmediate_operand as operand 2 predicate.
23604 (vec_set<VF2_512_256:mode>_0): Ditto.
23605 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23606 (*vec_concatv2si): Remove alternative 2.
23607 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23608 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23609 (vec_concatv2di): Split alternatives 4,5,6 to ...
23610 (*vec_concatv2di_0) ... new pattern.
23611
23612 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23613
23614 PR target/89190
23615 * config/arm/arm.c (ldm_stm_operation_p) Set
23616 addr_reg_in_reglist correctly for first register.
23617 (load_multiple_sequence): Remove dead base check.
23618 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23619
23620 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23621
23622 PR target/88847
23623 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23624 Expose as @aarch64_pred_mov.
23625 * config/aarch64/aarch64.c (aarch64_classify_address):
23626 Use expand_insn which legitimizes operands.
23627
23628 2019-02-13 Martin Liska <mliska@suse.cz>
23629
23630 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23631 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23632 and pointer_offset fields.
23633 (initialize_argument_information): Remove usage of dead
23634 fields.
23635 * cgraph.h (struct cgraph_thunk_info): Remove
23636 add_pointer_bounds_args.
23637 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23638 fields.
23639 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23640 fields.
23641 * config/i386/i386.c (ix86_function_arg_advance): Remove
23642 unrelated comment.
23643 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23644 (def_builtin): Remove usage of dead fields.
23645 (ix86_add_new_builtins): Likewise.
23646 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23647 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23648 (sem_function::init): Likewise.
23649 (sem_variable::merge): Likewise.
23650 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23651 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23652 * lto-cgraph.c (lto_output_node): Likewise.
23653 (lto_output_varpool_node): Likewise.
23654 (input_node): Likewise.
23655 (input_varpool_node): Likewise.
23656 * lto-streamer-out.c (lto_output): Likewise.
23657 * tree-inline.c (expand_call_inline): Remove usage of
23658 assign_stmts.
23659 * tree-inline.h (struct copy_body_data): Likewise.
23660 * varpool.c (varpool_node::dump): Likewise.
23661
23662 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23663
23664 PR middle-end/89303
23665 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23666 into pt->vars_contains_escaped_heap instead of setting
23667 pt->vars_contains_escaped_heap to it.
23668
23669 PR middle-end/89281
23670 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23671 INTVAL (size), compare it to GET_MODE_MASK instead of
23672 1 << GET_MODE_BITSIZE.
23673
23674 PR target/89290
23675 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23676 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23677 -mcmodel=large.
23678
23679 2019-02-13 Martin Liska <mliska@suse.cz>
23680
23681 PR lto/88858
23682 * cfgrtl.c (remove_barriers_from_footer): New function.
23683 (try_redirect_by_replacing_jump): Use it.
23684 (cfg_layout_redirect_edge_and_branch): Likewise.
23685
23686 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23687
23688 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23689 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23690 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23691 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23692 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23693 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23694 New BU_CRYPTO_2.
23695 * config/rs6000/rs6000.c (builtin_function_type)
23696 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23697 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23698 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23699 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23700 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23701
23702 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23703
23704 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23705 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23706
23707 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23708
23709 PR target/89229
23710 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23711 268678 and revision 268657.
23712 (*movti_internal): Likewise.
23713
23714 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23715
23716 PR target/89233
23717 * config/s390/s390.c (s390_decompose_address): Update comment.
23718 (s390_check_qrst_address): Reject invalid address forms after
23719 LRA.
23720
23721 2019-02-12 Martin Liska <mliska@suse.cz>
23722
23723 PR lto/88876
23724 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23725 we need default values of funct_state for a function that
23726 is not optimized.
23727
23728 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23729
23730 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23731 the object to pick the size of stores on strict-alignment platforms.
23732
23733 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23734 (*movdi_insn_sp32): Likewise.
23735 (*movdi_insn_sp64): Likewise.
23736
23737 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23738
23739 PR lto/88677
23740 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23741 types that needs constructiong.
23742 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23743
23744 2019-02-12 Richard Biener <rguenther@suse.de>
23745
23746 PR tree-optimization/89253
23747 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23748 duplicate the loop.
23749
23750 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23751
23752 PR lto/88147
23753 * input.c (selftest::test_line_offset_overflow): New selftest.
23754 (selftest::input_c_tests): Call it.
23755
23756 2019-02-11 Martin Sebor <msebor@redhat.com>
23757
23758 PR tree-optimization/88771
23759 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23760 when -Wstringop-overflow is set.
23761 (builtin_memref::builtin_memref): Adjust excessive upper bound
23762 only when lower bound is not excessive.
23763 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23764 -Wstringop-ovefflow.
23765 (maybe_diag_offset_bounds): Rename...
23766 (maybe_diag_access_bounds): ...to this.
23767 (check_bounds_or_overlap): Adjust for name change above.
23768
23769 2019-02-11 Martin Sebor <msebor@redhat.com>
23770
23771 PR c++/87996
23772 * builtins.c (max_object_size): Move from here...
23773 * builtins.h (max_object_size): ...and here...
23774 * tree.c (max_object_size): ...to here...
23775 * tree.h (max_object_size): ...and here.
23776
23777 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23778
23779 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23780 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23781 for correct semantics.
23782
23783 2019-02-11 Alan Modra <amodra@gmail.com>
23784
23785 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23786 -mlongcall and -mpltseq.
23787 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23788 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23789 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23790 * config/rs6000/sysv4.opt (mpltseq): New option.
23791 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23792 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23793 support is lacking. Don't allow -mpltseq with -mbss-plt.
23794 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23795 -mpltseq given for ELFv1.
23796 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23797 Only use UNSPEC_PLTSEQ for inline PLT calls.
23798 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23799 use UNSPEC_PLTSEQ for inline PLT calls.
23800 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23801 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23802 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23803 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23804 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23805 (pltseq_mtctr_<mode>): Likewise.
23806
23807 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23808
23809 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23810 Solaris ld.
23811 * configure: Regenerate.
23812
23813 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23814
23815 PR bootstrap/88714
23816 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23817 instead of r.
23818
23819 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23820
23821 * function.c (assign_parm_setup_block): Use the stored
23822 size, not the passed size, when allocating stack-space,
23823 also for a parameter with alignment larger than
23824 MAX_SUPPORTED_STACK_ALIGNMENT.
23825
23826 2019-02-11 Martin Liska <mliska@suse.cz>
23827
23828 PR ipa/89009
23829 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23830 * ipa-inline.c (inline_small_functions): Likewise.
23831 * ipa-pure-const.c (propagate_pure_const): Likewise.
23832 (propagate_nothrow): Likewise.
23833 * ipa-reference.c (propagate): Likewise.
23834 * ipa-utils.c (struct searchc_env): Remove unused field.
23835 (searchc): Always search across AVAIL_INTERPOSABLE.
23836 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23837 the only called IPA pure const can properly not propagate
23838 across interposable boundary.
23839 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23840
23841 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23842
23843 * config/nds32/nds32.md (call_internal, call_value_internal,
23844 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23845
23846 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23847
23848 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23849 typo.
23850
23851 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23852
23853 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23854 in comments
23855
23856 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23857
23858 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23859
23860 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23861
23862 PR tree-optimization/89268
23863 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23864 if preds is non-NULL.
23865
23866 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23867
23868 PR lto/89272
23869 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23870 polymorphic types.
23871
23872 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23873
23874 * config/nds32/nds32.md (trap): New pattern.
23875
23876 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23877
23878 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23879 dwarf span.
23880
23881 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23882
23883 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23884 to split POST_INC.
23885
23886 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23887
23888 * ipa-visibility.c (localize_node): Also do not localize
23889 LDPR_PREVAILING_DEF_IRONLY_EXP.
23890
23891 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23892
23893 PR lto/87957
23894 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23895 instead of type_with_linkage.
23896
23897 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23898
23899 PR ipa/88755
23900 * params.def (uninlined-function-insns, uninlined-function-time,
23901 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23902 bound so we don't get overflows.
23903
23904 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23905
23906 * config/rs6000/rs6000-string.c (expand_compare_loop,
23907 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23908 memcmp/strncmp.
23909
23910 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23911
23912 PR middle-end/89246
23913 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23914 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23915 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23916
23917 2019-02-09 Alan Modra <amodra@gmail.com>
23918
23919 PR target/88343
23920 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23921 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23922 setup.
23923
23924 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23925
23926 PR middle-end/88560
23927 * lra-constraints.c (process_alt_operands): Don't increase reject
23928 for memory when offset memory is required.
23929
23930 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23931
23932 * config/s390/vector.md: Implement vector copysign.
23933
23934 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23935
23936 * expr.c (expand_constructor): Correct indentations.
23937
23938 2019-02-08 Richard Biener <rguenther@suse.de>
23939
23940 PR tree-optimization/89247
23941 * tree-if-conv.c: Include tree-cfgcleanup.h.
23942 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23943 (tree_if_conversion): Pass through predicate vector.
23944 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23945 inline, see if any if-converted loops we refrece in
23946 LOOP_VECTORIZED calls vanished and fixup.
23947 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23948
23949 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23950
23951 * config/s390/constraints.md (jdd): New constraint.
23952
23953 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23954
23955 PR target/89229
23956 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23957 upper 16 vector registers without TARGET_AVX512VL.
23958 (*movti_internal): Likewise.
23959
23960 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23961
23962 PR rtl-optimization/89234
23963 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23964 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23965 (copy_reg_eh_region_note_backward): Likewise.
23966
23967 2019-02-08 Richard Biener <rguenther@suse.de>
23968
23969 PR middle-end/89223
23970 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23971 doesn't fit in HWI.
23972 (analyze_subscript_affine_affine): Handle failure from
23973 initialize_matrix_A.
23974
23975 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23976
23977 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23978 cfun everywhere.
23979
23980 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23981
23982 PR tree-optimization/86637
23983 PR tree-optimization/89235
23984 * tree-vect-loop.c (optimize_mask_stores): Add an
23985 auto_purge_vect_location sentinel to ensure that vect_location is
23986 purged on exit.
23987 * tree-vectorizer.c
23988 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23989 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23990 to ensure that vect_location is purged on exit.
23991 (pass_slp_vectorize::execute): Likewise, replacing the manual
23992 reset.
23993 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23994
23995 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23996
23997 * config/aarch64/iterators.md (max_opp): New code_attr.
23998 (USMAX): New code iterator.
23999 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24000 (aarch64_smax): Likewise.
24001 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24002 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24003 MINUS (MAX MIN).
24004
24005 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24006
24007 PR target/89229
24008 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24009 for TARGET_AVX512VL.
24010 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24011
24012 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24013
24014 * config/s390/s390-builtin-types.def: Add new types.
24015 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24016 (s390_vec_xlw4): Make the memory operand into a const pointer.
24017 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24018 float.
24019 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24020 a new vector type with the alignment of the scalar memory operand.
24021
24022 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24023 Jakub Jelinek <jakub@redhat.com>
24024
24025 PR bootstrap/88714
24026 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24027 arm_count_ldrdstrd_insns): New declarations.
24028 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24029 MINUS.
24030 (valid_operands_ldrd_strd): New function.
24031 (arm_count_ldrdstrd_insns): New function.
24032 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24033 sets instead of single DImode set and define new insns to match this.
24034
24035 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24036
24037 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24038 Make it a C initializer.
24039
24040 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24041
24042 PR/target 88850
24043 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24044
24045 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24046
24047 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24048 Use neon_dot<q> for type.
24049 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24050
24051 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24052
24053 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24054 Use neon_dot<q> for type.
24055 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24056 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24057
24058 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24059
24060 PR rtl-optimization/89225
24061 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24062 sizes check.
24063
24064 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24065
24066 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24067 after restoring registers saved to allocate the frame on Windows.
24068
24069 2019-02-06 Richard Biener <rguenther@suse.de>
24070
24071 PR tree-optimization/89182
24072 * graphite.h (cached_scalar_evolution_in_region): Declare.
24073 * graphite.c (struct seir_cache_key): New.
24074 (struct sese_scev_hash): Likewise.
24075 (seir_cache): New global.
24076 (cached_scalar_evolution_in_region): New function.
24077 (graphite_transform_loops): Allocate and release seir_cache.
24078 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24079 cached_scalar_evolution_in_region.
24080 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24081 Simplify.
24082 (scop_detection::graphite_can_represent_expr: Use
24083 cached_scalar_evolution_in_region.
24084 (scop_detection::stmt_simple_for_scop_p): Likewise.
24085 (find_params_in_bb): Likewise.
24086 (gather_bbs::before_dom_children): Likewise.
24087 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24088 (add_loop_constraints): Likewise.
24089
24090 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24091
24092 PR middle-end/89210
24093 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24094 operand to new_unary_operation only if both element types are integral
24095 and it isn't a widening conversion. Return NULL_TREE if
24096 new_unary_operation failed.
24097
24098 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24099
24100 PR target/88856
24101 * config/s390/s390.md: Remove load and test FP splitter.
24102
24103 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24104
24105 PR target/89112
24106 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24107 expand_compare_loop, expand_block_compare_gpr,
24108 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24109 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24110 #include "profile-count.h" and "predict.h" for types and functions
24111 needed to work with REG_BR_PROB notes.
24112
24113 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24114
24115 PR target/89112
24116 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24117 for the long branch case.
24118
24119 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24120
24121 PR target/89188
24122 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24123 can throw, non-call exceptions are enabled and we can't delete
24124 dead exceptions or alter cfg. Set must_clean if
24125 delete_insn_and_edges returns true, don't set it blindly for calls.
24126 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24127
24128 PR rtl-optimization/89195
24129 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24130 of the original MEM.
24131
24132 2019-02-05 Martin Liska <mliska@suse.cz>
24133
24134 PR gcov-profile/89000
24135 * gcov.c (function_summary): Remove argument.
24136 (file_summary): New function.
24137 (print_usage): Replace tabs with spaces.
24138 (generate_results): Use new function file_summary.
24139
24140 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24141
24142 PR target/89186
24143 * optabs.c (prepare_cmp_insn): Pass x and y to
24144 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24145
24146 2019-02-05 Richard Biener <rguenther@suse.de>
24147
24148 PR middle-end/89150
24149 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24150 (struct bitmap_element): Drop chain_prev so we properly recurse on
24151 the prev member, supporting tree views.
24152 (struct bitmap_head): GTY skip the obstack member.
24153
24154 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24155
24156 PR c/88698
24157 * doc/extend.texi (Vector Extensions): Add an example of using vector
24158 types together with x86 intrinsics.
24159
24160 2019-02-04 Alan Modra <amodra@gmail.com>
24161
24162 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24163 str[] size to 160, and comment.
24164
24165 2019-02-04 Alan Modra <amodra@gmail.com>
24166
24167 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24168 (rs6000_pltseq_template): Guard output of TLS markers with
24169 TARGET_TLS_MARKERS.
24170 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24171 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24172 to use inline PLT sequences.
24173 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24174 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24175 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24176
24177 2019-02-04 Martin Liska <mliska@suse.cz>
24178
24179 PR ipa/88985
24180 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24181 out when ipa_fn_summaries does not contain entry for callee.
24182
24183 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24184
24185 * config/sparc/sparc.h: Remove superfluous blank lines.
24186 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24187 (got_register_rtx): ...this.
24188 (sparc_got): Adjust to above renaming.
24189 (sparc_tls_got): Likewise.
24190 (sparc_delegitimize_address): Likewise.
24191 (sparc_output_mi_thunk): Likewise.
24192 (sparc_init_pic_reg): Likewise.
24193 (save_local_or_in_reg_p): Fix test on the GOT register.
24194 (USE_HIDDEN_LINKONCE): Move around.
24195 (get_pc_thunk_name): Likewise.
24196 (gen_load_pcrel_sym): Likewise.
24197 (load_got_register): Likewise.
24198
24199 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24200
24201 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24202 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24203
24204 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24205
24206 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24207 into consideration.
24208
24209 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24210
24211 * config.gcc (with_nds32_lib, glibc):
24212 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24213 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24214 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24215
24216 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24217
24218 PR target/89071
24219 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24220 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24221 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24222 (*rcpsf2_sse): Ditto.
24223 (*rsqrtsf2_sse): Ditto.
24224 (sse4_1_round<mode<2): Ditto.
24225
24226 2019-02-03 Richard Biener <rguenther@suse.de>
24227
24228 PR debug/87295
24229 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24230 orig.
24231
24232 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24233
24234 PR middle-end/87887
24235 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24236 Punt with warning on aggregate return or argument types. Ignore
24237 type/mode checking for uniform arguments.
24238
24239 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24240
24241 * combine.c (try_combine): Do not print "Can't combine" messages unless
24242 printing failed combination attempts.
24243
24244 2019-02-01 Martin Jambor <mjambor@suse.cz>
24245
24246 PR hsa/87863
24247 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24248 segment and global segment variables before making them static.
24249
24250 2019-02-01 Martin Jambor <mjambor@suse.cz>
24251
24252 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24253 missed optimization dump with dump_enabled_p.
24254
24255 2019-02-01 Richard Biener <rguenther@suse.de>
24256
24257 PR middle-end/88597
24258 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24259 the instantiate cache.
24260 (instantiate_scev_binary): Elide second operand procesing
24261 if equal to the first.
24262 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24263 (chrec_contains_undetermined): Likewise.
24264 (tree_contains_chrecs): Likewise.
24265
24266 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24267
24268 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24269
24270 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24271
24272 PR tree-optimization/89143
24273 * wide-int-range.h (wide_int_range_absu): Declare.
24274 * wide-int-range.cc (wide_int_range_absu): New function.
24275 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24276
24277 PR tree-optimization/88107
24278 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24279 instead of assertion that eh_region_outermost is non-NULL, if it
24280 is NULL, set *ALL to true and return NULL.
24281 (move_sese_region_to_fn): Adjust caller, if all is set, call
24282 duplicate_eh_regions with NULL region.
24283
24284 2019-02-01 Richard Biener <rguenth@suse.de>
24285
24286 PR rtl-optimization/88593
24287 * mode-switching.c (optimize_mode_switching): Free dominators before
24288 calling cleanup_cfg.
24289
24290 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24291
24292 PR tree-optimization/88932
24293 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24294
24295 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24296
24297 PR middle-end/89137
24298 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24299 bogus clang warning.
24300
24301 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24302
24303 PR target/89071
24304 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24305 alternative to avoid partial SSE register stall for TARGET_AVX.
24306 (truncdfsf2): Ditto.
24307 (sse4_1_round<mode>2): Ditto.
24308
24309 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24310
24311 PR tree-optimization/89008
24312 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24313 process anything of the form X * 0.
24314
24315 2019-01-31 Richard Biener <rguenther@suse.de>
24316
24317 PR tree-optimization/89135
24318 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24319 with abnormal preds.
24320
24321 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24322
24323 PR sanitizer/89124
24324 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24325 always_inline callees into no_sanitize_address callers.
24326
24327 2019-01-31 Richard Biener <rguenther@suse.de>
24328
24329 PR rtl-optimization/89115
24330 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24331
24332 2019-01-30 Martin Sebor <msebor@redhat.com>
24333
24334 PR other/89106
24335 * doc/extend.texi (cast to a union): Correct and expand.
24336
24337 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24338
24339 PR rtl-optimization/87246
24340 * lra-constraints.c (simplify_operand_subreg): Reload memory
24341 in subreg if the address became invalid.
24342
24343 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24344
24345 PR target/87064
24346 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24347 Disable for little-endian.
24348
24349 2019-01-30 Richard Biener <rguenther@suse.de>
24350
24351 PR rtl-optimization/89115
24352 * opts.c (default_options_optimization): Reduce
24353 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24354 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24355 to the default.
24356
24357 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24358
24359 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24360 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24361 type of vector element when vec_extract is implemented by direct
24362 move.
24363
24364 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24365
24366 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24367
24368 2019-01-30 Richard Biener <rguenther@suse.de>
24369
24370 PR tree-optimization/89111
24371 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24372 canonicalization to appropriately sized access types.
24373
24374 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24375
24376 PR c++/89105
24377 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24378 for arguments to functions that are TU-local and shouldn't be
24379 referenced by assembly.
24380
24381 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24382
24383 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24384 after '='.
24385
24386 2019-01-29 Martin Sebor <msebor@redhat.com>
24387
24388 PR c/88956
24389 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24390
24391 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24392
24393 PR c++/66676
24394 PR ipa/89104
24395 * omp-simd-clone.c (simd_clone_clauses_extract)
24396 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24397 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24398
24399 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24400
24401 * config.gcc: Force .init_array for ARC.
24402
24403 2019-01-29 Richard Biener <rguenther@suse.de>
24404
24405 PR debug/87295
24406 * dwarf2out.c (collect_skeleton_dies): New helper.
24407 (copy_decls_for_unworthy_types): Call it.
24408 (build_abbrev_table): Assert we do not try to replace
24409 DW_AT_signature refs with local refs.
24410
24411 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24412
24413 PR middle-end/89002
24414 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24415 for lastprivate/linear IV, push gimplify context around gimplify_assign
24416 and, if it needed any temporaries, pop it into a gimple bind around the
24417 sequence.
24418
24419 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24420
24421 * common.opt (-Wattribute-alias): Remove "no-" from name.
24422 Make -Wattribute-alias command line option and
24423 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24424
24425 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24426
24427 PR target/89073
24428 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24429 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24430 x86 ISA options.
24431 (bmi2): Add missing @opindex.
24432 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24433 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24434 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24435 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24436 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24437 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24438 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24439 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24440 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24441 xsavec, xsaveopt and xsaves options.
24442
24443 2019-01-28 Richard Biener <rguenther@suse.de>
24444
24445 PR debug/89076
24446 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24447 support removal.
24448
24449 2019-01-28 Richard Biener <rguenther@suse.de>
24450
24451 PR tree-optimization/88739
24452 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24453 BIT_FIELD_REFs only are applied to mode-precision operands
24454 when they are integral.
24455 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24456 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24457 BIT_FIELD_REFs of non-mode-precision integral operands.
24458
24459 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24460
24461 PR target/87214
24462 * config/i386/sse.md
24463 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24464 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24465 first constants in pairs are multiples of 2. Formatting fixes.
24466 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24467 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24468 first constants in each quadruple are multiples of 4. Formatting fixes.
24469
24470 2019-01-26 Martin Jambor <mjambor@suse.cz>
24471
24472 PR ipa/88933
24473 * tree-inline.c: Include tree-cfgcleanup.h.
24474 (delete_unreachable_blocks_update_callgraph): Move...
24475 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24476 ...here, make externally visible, make second argument bool, adjust
24477 all callers.
24478 * tree-cfgcleanup.c: Include cgraph.h.
24479 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24480 Declare.
24481 * ipa-prop.c: Include tree-cfgcleanup.h.
24482 (ipcp_transform_function): Call
24483 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24484
24485 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24486
24487 PR rtl-optimization/88846
24488 * ira.c (process_set_for_memref_referenced_p): New.
24489 (memref_referenced_p): Add new param. Use
24490 process_set_for_memref_referenced_p. Add new switch cases.
24491 (memref_used_between_p): Pass new arg to memref_referenced_p.
24492
24493 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24494
24495 PR target/88469
24496 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24497 argument ABI_BREAK. Set to true if the calculated alignment has
24498 changed in gcc-9. Check bit-fields for their base type alignment.
24499 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24500 (aarch64_function_arg_boundary): Likewise.
24501 (aarch64_gimplify_va_arg_expr): Likewise.
24502
24503 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24504
24505 PR middle-end/89037
24506 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24507 instead of accessing TREE_INT_CST_ELT directly.
24508
24509 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24510
24511 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24512 fenv_exceptions description.
24513
24514 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24515
24516 PR rtl-optimization/87763
24517 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24518 Allow SUBREG when matching CC_NZmode compare.
24519
24520 2019-01-25 Richard Biener <rguenther@suse.de>
24521
24522 PR tree-optimization/89049
24523 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24524 Look at the pattern stmt to determine if the stmt is vectorized.
24525
24526 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24527
24528 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24529 (pred_mov<mode>): Handle all-register forms using both a new
24530 alternative and a split.
24531
24532 2019-01-25 Richard Biener <rguenther@suse.de>
24533
24534 PR tree-optimization/86865
24535 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24536 Reject non-do-while loops.
24537
24538 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24539
24540 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24541 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24542 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24543 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24544 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24545 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24546 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24547 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24548 vlogical_operand, gpc_reg_operand, int_reg_operand,
24549 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24550 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24551 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24552 (save_world_operation, restore_world_operation, lmw_operation,
24553 stmw_operation): Use MEM_P and REG_P.
24554 (tie_operand): Use MEM_P.
24555 (vrsave_operation, crsave_operation): Use REG_P.
24556 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24557 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24558 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24559 (call_operand): Use HARD_REGISTER_P.
24560 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24561 Use CONST_INT_P.
24562 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24563 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24564 quad_aligned_load_p, replace_swapped_aligned_store,
24565 recombine_lvx_pattern, replace_swapped_aligned_load,
24566 recombine_stvx_pattern): Use MEM_P.
24567 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24568 Use MEM_P and SYMBOL_REF_P.
24569 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24570 (insn_is_swappable_p): Use REG_P and MEM_P.
24571 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24572 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24573 Use CONST_INT_P.
24574 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24575 Use CONST_DOUBLE_P.
24576 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24577 CONST_WIDE_INT_P.
24578 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24579 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24580 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24581 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24582 reg_or_subregno:
24583 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24584 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24585 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24586 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24587 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24588 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24589 rs6000_split_logical_di): Use CONST_INT_P.
24590 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24591 REG_P and SYMBOL_REF_P.
24592 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24593 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24594 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24595 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24596 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24597 (small_data_operand, print_operand_address): Use CONST_INT_P and
24598 SYMBOL_REF_P.
24599 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24600 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24601 Use HARD_REGISTER_NUM_P.
24602 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24603 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24604 SUBREG_P and SYMBOL_REF_P.
24605 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24606 and HARD_REGISTER_NUM_P.
24607 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24608 reg_or_subregno.
24609 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24610 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24611 MEM_P and REG_P.
24612 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24613 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24614 find_addr_reg): Use REG_P.
24615 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24616 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24617 (offsettable_ok_by_alignment, constant_pool_expr_p,
24618 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24619 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24620 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24621 rs6000_assemble_integer, create_TOC_reference,
24622 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24623 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24624 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24625 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24626 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24627 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24628 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24629 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24630 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24631 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24632 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24633 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24634 and cbranch<mode>4): Use CONST_INT_P.
24635 (multiple define_splits): Use REG_P and SUBREG_P.
24636 (define_expands call, call_value): Use MEM_P.
24637 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24638 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24639 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24640 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24641 and HARD_REGISTER_NUM_P.
24642 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24643
24644 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24645
24646 PR rtl-optimization/88948
24647 * rtl.h (prepare_copy_insn): New prototype.
24648 * gcse.c (prepare_copy_insn): New function, split out from
24649 process_insert_insn.
24650 (process_insert_insn): Use prepare_copy_insn.
24651 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24652 instead of gen_move_insn.
24653
24654 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24655
24656 PR debug/89006
24657 * config/i386/i386.c (ix86_pic_register_p): Return true for
24658 UNSPEC_SET_GOT too.
24659
24660 PR tree-optimization/88964
24661 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24662 punt if HONOR_SNANS (chrec).
24663
24664 PR middle-end/89015
24665 * tree-nested.c (convert_nonlocal_reference_stmt,
24666 convert_local_reference_stmt, convert_tramp_reference_stmt,
24667 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24668 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24669 or GIMPLE_OMP_TASK.
24670
24671 PR tree-optimization/89027
24672 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24673 for "omp simd array" variables.
24674
24675 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24676
24677 PR target/88469
24678 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24679 force the alignment of m_val.
24680
24681 2019-01-24 Richard Biener <rguenther@suse.de>
24682
24683 PR lto/87187
24684 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24685 When in "legacy" debug mode make sure to reset self-origins.
24686
24687 2019-01-24 Martin Liska <mliska@suse.cz>
24688
24689 PR gcov-profile/88994
24690 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24691 result will be always smaller or equal to the original.
24692 * gcov.c (mangle_name): Fix else branch where we should
24693 also copy to PTR and shift the pointer.
24694
24695 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24696
24697 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24698 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24699
24700 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24701
24702 * common/config/i386/i386-common.c
24703 (OPTION_MASK_ISA_ENQCMD_SET,
24704 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24705 (ix86_handle_option): Handle -menqcmd.
24706 * config.gcc (enqcmdintrin.h): New header file.
24707 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24708 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24709 -menqcmd.
24710 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24711 function type.
24712 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24713 __builtin_ia32_enqcmds): New builtins.
24714 * config/i386/i386-c.c (__ENQCMD__): New macro.
24715 * config/i386/i386-option.c (ix86_target_string): Add
24716 -menqcmd.
24717 (ix86_valid_target_attribute_inner_p): Likewise.
24718 * config/i386/i386-expand.c
24719 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24720 IX86_BUILTIN_ENQCMDS.
24721 * config/i386/i386.h (TARGET_ENQCMD): New.
24722 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24723 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24724 (movdir64b_<mode>): Parameterize to enable share expansion code
24725 with ENQCMD in function ix86_expand_builtin.
24726 * config/i386/i386.opt: Add -menqcmd.
24727 * config/i386/immintrin.h: Include enqcmdintrin.h.
24728 * config/i386/enqcmdintrin.h: New intrinsic file.
24729 * doc/invoke.texi: Add -menqcmd.
24730
24731 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24732 Steve Ellcey <sellcey@marvell.com>
24733
24734 PR target/85711
24735 * recog.c (address_operand): Return false on wrong mode for address.
24736 (constrain_operands): Check for mode with 'p' constraint.
24737
24738 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24739
24740 PR target/88998
24741 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24742 Disparage MMX alternative.
24743 (sse2_cvtpd2pi): Ditto.
24744 (sse2_cvttpd2pi): Ditto.
24745
24746 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24747
24748 PR driver/89014
24749 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24750 use-after-free of the result of
24751 aarch64_get_extension_string_for_isa_flags.
24752
24753 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24754
24755 PR c/44715
24756 * doc/extend.texi: Document break and continue behavior in
24757 statement expressions.
24758
24759 2019-01-23 Richard Biener <rguenther@suse.de>
24760
24761 PR tree-optimization/89008
24762 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24763 not leave another stray operand.
24764
24765 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24766
24767 * BASE-VER: Bump to 9.0.1.
24768
24769 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24770
24771 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24772 thunk that returns by reference, use the type of the return object
24773 of the thunk instead of that of the alias to build the dereference.
24774
24775 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24776
24777 * config/arc/atomic.md: Add operand to DMB instruction.
24778
24779 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24780
24781 PR tree-optimization/88964
24782 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24783 build_zero_cst instead of build_int_cst. Return false for loop
24784 invariants which honor signed zeros.
24785
24786 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24787
24788 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24789
24790 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24791
24792 PR target/88965
24793 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24794 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24795 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24796
24797 PR middle-end/88968
24798 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24799 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24800
24801 PR target/87064
24802 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24803 Disable for little endian.
24804
24805 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24806
24807 PR target/88469
24808 * config/arm/arm.c (arm_needs_double_word_align): Check
24809 DECL_BIT_FIELD_TYPE.
24810
24811 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24812 H.J. Lu <hongjiu.lu@intel.com>
24813
24814 PR target/88909
24815 * config/i386/i386-builtin.def: Add mask2 to all builtin
24816 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24817 SPECIAL_ARGS.
24818 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24819 (BDESC_FIRST): Likewise.
24820 (define_builtin): Add an argument for mask2. Updated to handle
24821 both ix86_isa_flags and ix86_isa_flags2.
24822 (define_builtin_const): Likewise.
24823 (define_builtin_pure): Likewise.
24824 (define_builtin2): Deleted.
24825 (define_builtin_const2): Likewise.
24826 (builtin_description): Add a member, mask2.
24827 (bdesc_*): Add mask2 to builtin initializations.
24828 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24829 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24830 support.
24831 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24832
24833 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24834
24835 PR target/88954
24836 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24837 noplt attribute.
24838
24839 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24840
24841 PR target/88469
24842 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24843 alignment is dominated by a bitfield with 64-bit aligned base type.
24844 (arm_function_arg): Emit a warning if the alignment has changed since
24845 earlier GCC releases.
24846 (arm_function_arg_boundary): Likewise.
24847 (arm_setup_incoming_varargs): Likewise.
24848
24849 2019-01-22 Richard Biener <rguenther@suse.de>
24850
24851 PR tree-optimization/88862
24852 * graphite-scop-detection.c
24853 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24854
24855 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24856
24857 * doc/extend.tex (AMD GCN Function Attributes): New section.
24858 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24859 * doc/invoke.texi (AMD GCN Options): New section.
24860 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24861
24862 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24863
24864 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24865 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24866
24867 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24868
24869 PR tree-optimization/88044
24870 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24871 is false in the first iteration, but !every_iteration, return false
24872 instead of true with niter->niter zero.
24873
24874 PR rtl-optimization/88904
24875 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24876 any nonequal registers before processing BB_END (b).
24877
24878 PR target/88905
24879 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24880 GET_MODE (op0).
24881 (expand_binop_directly, expand_doubleword_clz,
24882 expand_doubleword_popcount, expand_ctz, expand_ffs,
24883 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24884
24885 PR rtl-optimization/49429
24886 PR target/49454
24887 PR rtl-optimization/86334
24888 PR target/88906
24889 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24890 addressable from here...
24891 (emit_block_op_via_libcall): ... to here.
24892
24893 2019-01-22 Richard Biener <rguenther@suse.de>
24894
24895 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24896 auto_vec for cost vector to fix memleak.
24897 (vectorize_fold_left_reduction): Properly gather SLP defs.
24898 (vectorizable_comparison): Do not swap operands to properly
24899 gather SLP defs.
24900
24901 2019-01-22 Alan Modra <amodra@gmail.com>
24902
24903 PR target/88614
24904 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24905 stays a reg. Allow a const_int.
24906 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24907 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24908 (IS_NOMARK_TLSGETADDR): Define.
24909 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24910 (rs6000_output_tlsargs): New function.
24911 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24912 __tls_get_addr call takes an arg.
24913 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24914 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24915 delete split..
24916 (call_value_nonlocal_sysv): ..or here, delete split.
24917 (tls_gdld_nomark): Delete.
24918 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24919 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24920 (call_value_nonlocal_sysv): Likewise.
24921 (call_value_nonlocal_sysv_secure): Likewise.
24922 (call_value_nonlocal_aix): Likewise.
24923 (call_value_indirect_aix): Likewise.
24924 (call_value_indirect_elfv2): Likewise.
24925 (call_value_local32, call_value_local64): Disable for no-mark tls.
24926 (call_value_local_aix): Likewise.
24927
24928 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24929
24930 PR target/88938
24931 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24932 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24933
24934 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24935
24936 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24937 string contents as hash_map keys.
24938
24939 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24940
24941 PR c/88928
24942 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24943 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24944 instead of TYPE_ALIGN.
24945 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24946 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24947 pointer from TYPE_STUB_DECL.
24948
24949 2019-01-21 Richard Biener <rguenther@suse.de>
24950
24951 PR tree-optimization/88934
24952 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24953 at the possibly non-constant operand.
24954 (vect_get_constant_vectors): Adjust.
24955
24956 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24957
24958 PR target/71659
24959 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24960 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24961 instead of _X86INTRIN_H_INCLUDED.
24962 * onfig/i386/clwbintrin.h: Likewise.
24963 * config/i386/pkuintrin.h: Likewise.
24964 * config/i386/prfchwintrin.h: Likewise.
24965 * config/i386/rdseedintrin.h: Likewise.
24966 * config/i386/wbnoinvdintrin.h: Likewise.
24967 * config/i386/xsavecintrin.h: Likewise.
24968 * config/i386/xsavesintrin.h: Likewise.
24969 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24970 * config/i386/xsaveintrin.h: Likewise.
24971 * config/i386/xsaveoptintrin.h: Likewise.
24972 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24973 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24974 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24975 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24976 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24977 * config/i386/immintrin.h: Here.
24978
24979 2019-01-20 Martin Jambor <mjambor@suse.cz>
24980
24981 PR ipa/87615
24982 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24983 with aa_walk_budget.
24984 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24985 aa_walk_budget_p parameter.
24986 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24987 walk. Updated all callers.
24988 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24989 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24990 unmodified_parm.
24991 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24992 parameter info. Extract info from fbi. Pass fbi to recursive calls
24993 and to unmodified_parm.
24994 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24995 info, updated call to will_be_nonconstant_expr_predicate.
24996 (param_change_prob): New parameter fbi, limit AA walking.
24997 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24998 calls to various above functions.
24999 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25000 parameter. Use it to limit AA walking.
25001 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25002 fbi, limit AA walk.
25003 (detect_type_change): New parameter fbi, pass it on to
25004 detect_type_change_from_memory_writes.
25005 (detect_type_change_ssa): Likewise.
25006 (aa_overwalked): Removed.
25007 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25008 accordingly, adjust to the neew AA limiting scheme.
25009 (parm_ref_data_preserved_p): Likewise.
25010 (ipa_compute_jump_functions_for_edge): Adjust call to
25011 get_dynamic_type.
25012 (ipa_analyze_call_uses): Likewise.
25013 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25014 (ipa_analyze_node): Initialize aa_walk_budget.
25015 (ipcp_transform_function): Likewise.
25016 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25017 to get_dynamic_type.
25018
25019 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25020
25021 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25022 outside of #if CHECKING_P code.
25023
25024 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25025
25026 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25027 New function, split out from...
25028 (loop_versioning::analyze_stride): ...here.
25029 (loop_versioning::find_per_loop_multiplication): Use gassign.
25030 (loop_versioning::analyze_term_using_scevs): Return a success code.
25031 (loop_versioning::analyze_arbitrary_term): New function.
25032 (loop_versioning::analyze_address_fragment): Use
25033 analyze_arbitrary_term if all else fails.
25034
25035 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25036
25037 PR target/88892
25038 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25039 operands.
25040
25041 2019-01-18 Richard Biener <rguenther@suse.de>
25042
25043 PR tree-optimization/88903
25044 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25045 scalar stmts a SLP shift amount is composed of when detecting
25046 shifts by scalars.
25047
25048 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25049
25050 PR target/88799
25051 * config/arm/arm-cpus.in (mp): New feature.
25052 (sec): New feature.
25053 (fgroup ARMv7ve): Add mp and sec features.
25054 (arch armv7-a): Add options to allow mp and sec extensions.
25055 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25056 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25057 extenstions to the base architecture.
25058 (cpu cortex-a8): Add sec extension to the base architecture.
25059 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25060 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25061 variants down to the base v7-a varaint.
25062 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25063 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25064 of permitted extensions for -march=armv7-a and for
25065 -mcpu=generic-armv7-a.
25066
25067 2019-01-18 Martin Liska <mliska@suse.cz>
25068
25069 * params.def: Fix comment.
25070 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25071 name.
25072 (gimple_gen_ic_func_profiler): Likewise.
25073
25074 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25075
25076 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25077 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25078 and put in error checks for stack protector guard options.
25079 (aarch64_stack_protect_guard): New.
25080 (TARGET_STACK_PROTECT_GUARD): Define.
25081 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25082 (reg_stack_protect_address<mode>): New.
25083 (stack_protect_set): Adjust for SSP_GLOBAL.
25084 (stack_protect_test): Likewise.
25085 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25086 (-mstack-protector-guard): Likewise.
25087 (-mstack-protector-guard-offset): Likewise.
25088
25089 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25090
25091 PR tree-optimization/86214
25092 * tree-inline.h (struct copy_body_data): Add
25093 add_clobbers_to_eh_landing_pads member.
25094 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25095 (copy_edges_for_bb): Call it if EH edge destination is <
25096 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25097 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25098 if flag_stack_reuse != SR_NONE and clear it afterwards.
25099
25100 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25101
25102 PR target/85596
25103 * doc/install.texi (with-multilib-list): Document for aarch64.
25104
25105 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25106
25107 PR target/88734
25108 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25109 (("..."))) with ("...").
25110
25111 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25112
25113 * doc/extend.texi (Built-in Functions for Memory Model Aware
25114 Atomic Operations): Document atomic fetch and nand.
25115
25116 2019-01-18 Martin Liska <mliska@suse.cz>
25117 Richard Biener <rguenther@suse.de>
25118
25119 PR middle-end/88587
25120 * cgraph.h (create_version_clone_with_body): Add new argument
25121 with attributes.
25122 * cgraphclones.c (cgraph_node::create_version_clone): Add
25123 DECL_ATTRIBUTES to a newly created decl. And call
25124 valid_attribute_p so that proper cl_target_optimization_node
25125 is set for the newly created declaration.
25126 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25127 for declaration.
25128 (expand_target_clones): Do not call valid_attribute_p, it must
25129 be already done.
25130 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25131 vector types.
25132
25133 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25134
25135 PR target/88734
25136 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25137 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25138 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25139
25140 2019-01-17 Martin Sebor <msebor@redhat.com>
25141
25142 PR middle-end/88273
25143 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25144 Handle anti-ranges the same as no range at all.
25145
25146 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25147
25148 * config/aarch64/aarch64.c (cgraph.h): New include.
25149 (intl.h): New include.
25150 (supported_simd_type): New function.
25151 (currently_supported_simd_type): Ditto.
25152 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25153 (aarch64_simd_clone_adjust): Ditto.
25154 (aarch64_simd_clone_usable): Ditto.
25155 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25156 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25157 (TARGET_SIMD_CLONE_USABLE): Ditto.
25158 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25159 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25160 call.
25161
25162 2019-01-17 Martin Sebor <msebor@redhat.com>
25163
25164 PR tree-optimization/88800
25165 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25166 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25167 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25168 redundant argument. Add new argument and issue diagnostics under
25169 its control. Detect out-of-bounds access even with warnings
25170 disabled.
25171 (check_bounds_or_overlap): Change return type. Add argument.
25172 (wrestrict_dom_walker::check_call): Adjust.
25173 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25174 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25175 check_bounds_or_overlap's return value.
25176 (handle_builtin_stxncpy): Same.
25177 (handle_builtin_strcat): Same.
25178
25179 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25180 Kwok Cheung Yeung <kcy@codesourcery.com>
25181 Julian Brown <julian@codesourcery.com>
25182 Tom de Vries <tom@codesourcery.com>
25183
25184 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25185
25186 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25187
25188 * doc/sourcebuild.texi: Document dg-require-effective-target
25189 llvm_binutils and offload_gcn.
25190
25191 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25192 Kwok Cheung Yeung <kcy@codesourcery.com>
25193 Julian Brown <julian@codesourcery.com>
25194 Tom de Vries <tom@codesourcery.com>
25195
25196 * doc/sourcebuild.texi: Document dg-required-effective-target
25197 exceptions.
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 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25207 * configure.ac: Check for dlopen.
25208 * configure: Regenerate.
25209
25210 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25211 Kwok Cheung Yeung <kcy@codesourcery.com>
25212 Julian Brown <julian@codesourcery.com>
25213 Tom de Vries <tom@codesourcery.com>
25214 Jan Hubicka <hubicka@ucw.cz>
25215 Martin Jambor <mjambor@suse.cz>
25216
25217 * common/config/gcn/gcn-common.c: New file.
25218 * config/gcn/driver-gcn.c: New file.
25219 * config/gcn/gcn-builtins.def: New file.
25220 * config/gcn/gcn-hsa.h: New file.
25221 * config/gcn/gcn-modes.def: New file.
25222 * config/gcn/gcn-opts.h: New file.
25223 * config/gcn/gcn-passes.def: New file.
25224 * config/gcn/gcn-protos.h: New file.
25225 * config/gcn/gcn-run.c: New file.
25226 * config/gcn/gcn-tree.c: New file.
25227 * config/gcn/gcn.c: New file.
25228 * config/gcn/gcn.h: New file.
25229 * config/gcn/gcn.opt: New file.
25230 * config/gcn/t-gcn-hsa: New file.
25231
25232 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25233 Kwok Cheung Yeung <kcy@codesourcery.com>
25234 Julian Brown <julian@codesourcery.com>
25235 Tom de Vries <tom@codesourcery.com>
25236 Jan Hubicka <hubicka@ucw.cz>
25237 Martin Jambor <mjambor@suse.cz>
25238
25239 * config/gcn/constraints.md: New file.
25240 * config/gcn/gcn-valu.md: New file.
25241 * config/gcn/gcn.md: New file.
25242 * config/gcn/predicates.md: New file.
25243
25244 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25245
25246 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25247 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25248 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25249 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25250
25251 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25252
25253 PR target/88851
25254 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25255 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25256 it and document registers.
25257
25258 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25259
25260 * config/aarch64/aarch64.c (ares_tunings): Define.
25261 * config/aarch64/aarch64-cores.def (ares): Use the above.
25262
25263 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25264
25265 PR target/88794
25266 Revert:
25267 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25268
25269 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25270 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25271 (_mm512_maskz_fixupimm_round_pd): Ditto.
25272 (_mm512_fixupimm_round_ps): Ditto.
25273 (_mm512_maskz_fixupimm_round_ps): Ditto.
25274 (_mm_fixupimm_round_sd): Ditto.
25275 (_mm_maskz_fixupimm_round_sd): Ditto.
25276 (_mm_fixupimm_round_ss): Ditto.
25277 (_mm_maskz_fixupimm_round_ss): Ditto.
25278 (_mm512_fixupimm_pd): Ditto.
25279 (_mm512_maskz_fixupimm_pd): Ditto.
25280 (_mm512_fixupimm_ps): Ditto.
25281 (_mm512_maskz_fixupimm_ps): Ditto.
25282 (_mm_fixupimm_sd): Ditto.
25283 (_mm_maskz_fixupimm_sd): Ditto.
25284 (_mm_fixupimm_ss): Ditto.
25285 (_mm_maskz_fixupimm_ss): Ditto.
25286 (_mm512_mask_fixupimm_round_pd): Update builtin.
25287 (_mm512_mask_fixupimm_round_ps): Ditto.
25288 (_mm_mask_fixupimm_round_sd): Ditto.
25289 (_mm_mask_fixupimm_round_ss): Ditto.
25290 (_mm512_mask_fixupimm_pd): Ditto.
25291 (_mm512_mask_fixupimm_ps): Ditto.
25292 (_mm_mask_fixupimm_sd): Ditto.
25293 (_mm_mask_fixupimm_ss): Ditto.
25294 * config/i386/avx512vlintrin.h:
25295 (_mm256_fixupimm_pd): Update parameters and builtin.
25296 (_mm256_maskz_fixupimm_pd): Ditto.
25297 (_mm256_fixupimm_ps): Ditto.
25298 (_mm256_maskz_fixupimm_ps): Ditto.
25299 (_mm_fixupimm_pd): Ditto.
25300 (_mm_maskz_fixupimm_pd): Ditto.
25301 (_mm_fixupimm_ps): Ditto.
25302 (_mm_maskz_fixupimm_ps): Ditto.
25303 (_mm256_mask_fixupimm_pd): Update builtin.
25304 (_mm256_mask_fixupimm_ps): Ditto.
25305 (_mm_mask_fixupimm_pd): Ditto.
25306 (_mm_mask_fixupimm_ps): Ditto.
25307 * config/i386/i386-builtin-types.def: Add new types and remove
25308 useless ones.
25309 * config/i386/i386-builtin.def: Update builtin definitions.
25310 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25311 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25312 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25313 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25314 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25315 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25316 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25317 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25318 * config/i386/subst.md:
25319 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25320 (round_saeonly_sd_mask_op4): Ditto.
25321 (round_saeonly_expand_operand5): Ditto.
25322 (round_saeonly_expand): Update.
25323
25324 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25325
25326 PR target/88794
25327 Revert:
25328 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25329
25330 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25331 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25332 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25333 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25334 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25335 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25336 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25337
25338 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25339
25340 PR target/88794
25341 Revert:
25342 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25343
25344 PR target/88489
25345 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25346 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25347 instead of UNSPEC_FIXUPIMM.
25348
25349 2019-01-17 Richard Biener <rguenther@suse.de>
25350
25351 PR lto/86736
25352 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25353 and friends for the LTO part of debug info.
25354
25355 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25356
25357 PR tree-optimization/86214
25358 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25359 if x == y.
25360
25361 PR rtl-optimization/88870
25362 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25363 throw if we can't alter the cfg or delete dead exceptions.
25364 (mark_insn): Don't call find_call_stack_args for such calls.
25365
25366 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25367
25368 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25369 prototypes for vec_st.
25370 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25371 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25372 mainly on signed/unsigned long long and double.
25373
25374 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25375
25376 PR target/88861
25377 * combine.c (delete_noop_moves): Convert to "bool" return,
25378 returning true if any edges are eliminated.
25379 (combine_instructions): Also return true if delete_noop_moves
25380 returns true.
25381
25382 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25383
25384 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25385 correct max nunits for endian swap.
25386 (aarch64_expand_fcmla_builtin): Correct subreg code.
25387 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25388 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25389 lane endianness.
25390
25391 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25392
25393 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25394 Handle split indirect COMPLEX_TYPE arguments.
25395
25396 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25397
25398 PR target/86891
25399 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25400 bit is set by add and compare.
25401 (CC_ADC): New CC_MODE.
25402 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25403 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25404 comparison. Add detection for CC_ADCmode.
25405 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25406 CC_ADCmode.
25407 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25408 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25409 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25410 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25411 to eliminate the need for zero-extending the operands.
25412 (add<mode>3_compareC_imm): Delete. Merge into ...
25413 (add<mode>3_compareC): ... this. Restructure the comparison to
25414 eliminate the need for zero-extending the operands.
25415 (add<mode>3_carryin): Use LTU for the overflow detection.
25416 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25417 Reexpress comparison for overflow.
25418 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25419 (add<mode>3_carryinC): Likewise.
25420 (add<mode>3_carryinV): Use LTU for carry between partials.
25421 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25422 handling of CC_Cmode and add CC_ADCmode.
25423 (aarch64_borrow_operation): Likewise.
25424
25425 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25426
25427 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25428 Remove patternmode.
25429 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25430 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25431 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25432 Remove endianness conversion.
25433
25434 2019-01-16 Martin Liska <mliska@suse.cz>
25435
25436 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25437 for GCC driver.
25438 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25439 a new argument.
25440 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25441 (path_prefix_reset): Move up in the source file.
25442 (find_fortran_preinclude_file): Make complex search for the
25443 fortran header files.
25444
25445 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25446
25447 * godump.c (go_output_typedef): When outputting a typedef, refer
25448 to the underlying type by its name and not its structure.
25449
25450 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25451
25452 PR c++/88795
25453 * tree.c (build_function_type): Assert that arg_types is not
25454 error_mark_node.
25455
25456 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25457
25458 PR inline-asm/52813
25459 * doc/extend.texi: Document that listing the stack pointer in the
25460 clobber list of an asm is a deprecated feature.
25461 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25462 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25463 warning instead of an error for clobbers of the stack pointer.
25464 Add a note explaining why.
25465
25466 2019-01-15 Richard Biener <rguenther@suse.de>
25467
25468 PR debug/88046
25469 * dwarf2out.c (gen_member_die): Do not generate inheritance
25470 DIEs late.
25471
25472 2019-01-15 Richard Biener <rguenther@suse.de>
25473
25474 PR tree-optimization/88855
25475 * tree-if-conv.c (combine_blocks): Collect
25476 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25477
25478 2019-01-15 Tom de Vries <tdevries@suse.de>
25479
25480 PR target/80547
25481 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25482 lhs == NULL_TREE for gang-level reduction.
25483
25484 2019-01-15 Richard Biener <rguenther@suse.de>
25485 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25486
25487 PR ipa/88788
25488 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25489 return true if SSA_NAME is already marked in visited bitmap.
25490 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25491
25492 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25493
25494 PR tree-optimization/88775
25495 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25496 equal == 0 equality pointer comparisons some more if compared in
25497 integral types and either one points to an automatic var and the
25498 other to a global, or we can prove at least one points to the middle
25499 or both point to start or both point to end.
25500
25501 2019-01-14 Andi Kleen <ak@linux.intel.com>
25502
25503 * Makefile.in: Lower autofdo sampling rate by 10x.
25504 * Makefile.tpl: Dito.
25505
25506 2019-01-14 Tom Honermann <tom@honermann.net>
25507
25508 * defaults.h: Define CHAR8_TYPE.
25509
25510 2019-01-14 Martin Sebor <msebor@redhat.com>
25511
25512 PR target/88638
25513 * doc/extend.texi (Darwin Format Checks): Clarify.
25514
25515 2019-01-14 Richard Biener <rguenther@suse.de>
25516
25517 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25518 whether we are in (simplify ...) or (match ...) context.
25519
25520 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25521
25522 PR rtl-optimization/88796
25523 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25524 * cfgexpand.c (stack_protect_prologue): Initialize
25525 crtl->stack_protect_guard_decl.
25526 * function.c (stack_protect_epilogue): Use it instead of calling
25527 targetm.stack_protect_guard again.
25528 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25529 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25530 crtl->stack_protect_guard_decl.
25531 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25532 on the returned MEM_EXPR.
25533
25534 2019-01-12 Tom de Vries <tdevries@suse.de>
25535
25536 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25537 vector length using -fopenacc-dim.
25538
25539 2019-01-12 Tom de Vries <tdevries@suse.de>
25540
25541 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25542 lengths into account.
25543
25544 2019-01-12 Svante Signell <svante.signell@gmail.com>
25545
25546 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25547 (TARGET_CAN_SPLIT_STACK): Define.
25548 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25549
25550 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25551
25552 * params.def (inline-unit-growth): Set to 40.
25553
25554 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25555
25556 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25557
25558 2019-01-12 Tom de Vries <tdevries@suse.de>
25559
25560 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25561 region calling vector-partitionable routine, set default_vector_length
25562 to WARP_SIZE.
25563
25564 2019-01-12 Tom de Vries <tdevries@suse.de>
25565
25566 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25567 variable default_vector_length.
25568
25569 2019-01-12 Tom de Vries <tdevries@suse.de>
25570
25571 PR middle-end/88703
25572 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25573 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25574 dimensions limits.
25575
25576 2019-01-12 Tom de Vries <tdevries@suse.de>
25577
25578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25579 (nvptx_goacc_validate_dims): Add used parameter.
25580 * doc/tm.texi: Regenerate.
25581 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25582 argument to call to targetm.goacc.validate_dims.
25583 (default_goacc_validate_dims): Add used
25584 parameter.
25585 * target.def (validate_dims): Add used parameter in DEFHOOK.
25586 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25587
25588 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25589
25590 PR middle-end/85956
25591 PR lto/88733
25592 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25593 field.
25594 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25595 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25596 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25597 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25598
25599 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25600
25601 PR rtl-optimization/87305
25602 * lra-assigns.c
25603 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25604 for little endian pseudos used as paradoxical subreg.
25605
25606 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25607
25608 PR tree-optimization/88693
25609 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25610 for STRING_CSTs that don't contain any NUL characters in the first
25611 TREE_STRING_LENGTH bytes.
25612
25613 2019-01-11 Alan Modra <amodra@gmail.com>
25614
25615 PR 88777
25616 PR 88614
25617 * genattrtab.c (min_fn): Don't translate values.
25618 (min_attr_value): Return INT_MAX when the value can't be calculated.
25619 Return minimum among any values that can be calculated.
25620 (max_attr_value): Adjust.
25621
25622 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25623
25624 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25625
25626 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25627
25628 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25629 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25630 (aarch64_return_call_with_max_clobbers): New function.
25631 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25632 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25633 argument.
25634 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25635 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25636 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25637 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25638 * cselib.c (cselib_process_insn): Add argument to
25639 targetm.hard_regno_call_part_clobbered call.
25640 * ira-conflicts.c (ira_build_conflicts): Ditto.
25641 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25642 * lra-constraints.c (inherit_reload_reg): Ditto.
25643 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25644 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25645 argument. Call targetm.return_call_with_max_clobbers.
25646 Add argument to targetm.hard_regno_call_part_clobbered call.
25647 (calls_have_same_clobbers_p): New function.
25648 (process_bb_lives): Add call_insn and last_call_insn variables.
25649 Pass call_insn to check_pseudos_live_through_calls.
25650 Modify if stmt to check targetm.return_call_with_max_clobbers.
25651 Update setting of flush variable.
25652 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25653 to false.
25654 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25655 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25656 targetm.hard_regno_call_part_clobbered call.
25657 * reginfo.c (choose_hard_reg_mode): Ditto.
25658 * regrename.c (check_new_reg_p): Ditto.
25659 * reload.c (find_equiv_reg): Ditto.
25660 * reload1.c (emit_reload_insns): Ditto.
25661 * sched-deps.c (deps_analyze_insn): Ditto.
25662 * sel-sched.c (init_regs_for_mode): Ditto.
25663 (mark_unavailable_hard_regs): Ditto.
25664 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25665 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25666 (return_call_with_max_clobbers): New target function.
25667 * doc/tm.texi: Regenerate.
25668 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25669 * hooks.c (hook_bool_uint_mode_false): Change to
25670 hook_bool_insn_uint_mode_false.
25671 * hooks.h (hook_bool_uint_mode_false): Ditto.
25672
25673 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25674
25675 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25676 (aarch64_remove_extra_call_preserved_regs): New function.
25677 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25678 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25679 * doc/tm.texi: Regenerate.
25680 * final.c (get_call_reg_set_usage): Call new hook.
25681 * target.def (remove_extra_call_preserved_regs): New hook.
25682 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25683 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25684
25685 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25686
25687 PR bootstrap/88714
25688 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25689 inside of pass_combine_1 dump rather than pass_profile_1.
25690
25691 2019-01-11 Tom de Vries <tdevries@suse.de>
25692
25693 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25694 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25695 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25696 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25697 num_workers 16.
25698
25699 2019-01-11 Tom de Vries <tdevries@suse.de>
25700
25701 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25702
25703 2019-01-11 Jan Beulich <jbeulich@suse.com>
25704
25705 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25706 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25707 sse2_cvtsi2sd): Add {l}.
25708 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25709 syntax.
25710
25711 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25712
25713 PR target/88785
25714 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25715 define_expand.
25716 (*float<floatunssuffix>v2div2sf2): New define_insn.
25717 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25718 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25719 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25720 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25721 match_operands with "const0_operand" "C".
25722
25723 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25724
25725 * config/aarch64/aarch64-builtins.c
25726 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25727 (aarch64_init_simd_builtins): ...Here
25728
25729 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25730
25731 PR rtl-optimization/87305
25732 * lra-assigns.c
25733 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25734 allocation for big endian pseudos used as paradoxical subregs and
25735 spill them if it is wrong.
25736 * lra-constraints.c (lra_constraints): Add a comment.
25737
25738 2019-01-10 Richard Biener <rguenther@suse.de>
25739
25740 PR tree-optimization/88792
25741 * tree-ssa-pre.c (get_representative_for): Do not return a
25742 value-number here.
25743
25744 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25745
25746 PR middle-end/84877
25747 PR bootstrap/88450
25748 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25749 (assign_parm_setup_block): Do the argument slot realignment here
25750 instead.
25751
25752 2019-01-10 Stefan Agner <stefan@agner.ch>
25753
25754 PR target/88648
25755 * config/arm/arm.c (arm_option_override_internal): Force
25756 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25757
25758 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25759
25760 PR c/88568
25761 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25762 DECL_EXTERNAL.
25763
25764 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25765
25766 * config/arm/arm-builtins.c
25767 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25768 (MAC_LANE_PAIR_QUALIFIERS): New.
25769 (arm_expand_builtin_args): Use it.
25770 (arm_expand_builtin_1): Likewise.
25771 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25772 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25773 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25774 * config/arm/arm_neon.h:
25775 (vcadd_rot90_f16): New.
25776 (vcaddq_rot90_f16): New.
25777 (vcadd_rot270_f16): New.
25778 (vcaddq_rot270_f16): New.
25779 (vcmla_f16): New.
25780 (vcmlaq_f16): New.
25781 (vcmla_lane_f16): New.
25782 (vcmla_laneq_f16): New.
25783 (vcmlaq_lane_f16): New.
25784 (vcmlaq_laneq_f16): New.
25785 (vcmla_rot90_f16): New.
25786 (vcmlaq_rot90_f16): New.
25787 (vcmla_rot90_lane_f16): New.
25788 (vcmla_rot90_laneq_f16): New.
25789 (vcmlaq_rot90_lane_f16): New.
25790 (vcmlaq_rot90_laneq_f16): New.
25791 (vcmla_rot180_f16): New.
25792 (vcmlaq_rot180_f16): New.
25793 (vcmla_rot180_lane_f16): New.
25794 (vcmla_rot180_laneq_f16): New.
25795 (vcmlaq_rot180_lane_f16): New.
25796 (vcmlaq_rot180_laneq_f16): New.
25797 (vcmla_rot270_f16): New.
25798 (vcmlaq_rot270_f16): New.
25799 (vcmla_rot270_lane_f16): New.
25800 (vcmla_rot270_laneq_f16): New.
25801 (vcmlaq_rot270_lane_f16): New.
25802 (vcmlaq_rot270_laneq_f16): New.
25803 (vcadd_rot90_f32): New.
25804 (vcaddq_rot90_f32): New.
25805 (vcadd_rot270_f32): New.
25806 (vcaddq_rot270_f32): New.
25807 (vcmla_f32): New.
25808 (vcmlaq_f32): New.
25809 (vcmla_lane_f32): New.
25810 (vcmla_laneq_f32): New.
25811 (vcmlaq_lane_f32): New.
25812 (vcmlaq_laneq_f32): New.
25813 (vcmla_rot90_f32): New.
25814 (vcmlaq_rot90_f32): New.
25815 (vcmla_rot90_lane_f32): New.
25816 (vcmla_rot90_laneq_f32): New.
25817 (vcmlaq_rot90_lane_f32): New.
25818 (vcmlaq_rot90_laneq_f32): New.
25819 (vcmla_rot180_f32): New.
25820 (vcmlaq_rot180_f32): New.
25821 (vcmla_rot180_lane_f32): New.
25822 (vcmla_rot180_laneq_f32): New.
25823 (vcmlaq_rot180_lane_f32): New.
25824 (vcmlaq_rot180_laneq_f32): New.
25825 (vcmla_rot270_f32): New.
25826 (vcmlaq_rot270_f32): New.
25827 (vcmla_rot270_lane_f32): New.
25828 (vcmla_rot270_laneq_f32): New.
25829 (vcmlaq_rot270_lane_f32): New.
25830 (vcmlaq_rot270_laneq_f32): New.
25831 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25832 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25833 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25834 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25835 vcmlaq_lane270): New.
25836 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25837 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25838 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25839 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25840 (arm_option_reconfigure_globals): Use them.
25841 * config/arm/iterators.md (VDF, VQ_HSF): New.
25842 (VCADD, VCMLA): New.
25843 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25844 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25845 New.
25846 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25847 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25848
25849 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25850
25851 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25852 Add qualifier_lane_pair_index.
25853 (emit-rtl.h): Include.
25854 (TYPES_QUADOP_LANE_PAIR): New.
25855 (aarch64_simd_expand_args): Use it.
25856 (aarch64_simd_expand_builtin): Likewise.
25857 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25858 New.
25859 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25860 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25861 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25862 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25863 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25864 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25865 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25866 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25867 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25868 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25869 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25870 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25871 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25872 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25873 Add __ARM_FEATURE_COMPLEX.
25874 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25875 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25876 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25877 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25878 fcmlaq_lane270): New.
25879 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25880 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25881 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25882 * config/aarch64/arm_neon.h:
25883 (vcadd_rot90_f16): New.
25884 (vcaddq_rot90_f16): New.
25885 (vcadd_rot270_f16): New.
25886 (vcaddq_rot270_f16): New.
25887 (vcmla_f16): New.
25888 (vcmlaq_f16): New.
25889 (vcmla_lane_f16): New.
25890 (vcmla_laneq_f16): New.
25891 (vcmlaq_lane_f16): New.
25892 (vcmlaq_rot90_lane_f16): New.
25893 (vcmla_rot90_laneq_f16): New.
25894 (vcmla_rot90_lane_f16): New.
25895 (vcmlaq_rot90_f16): New.
25896 (vcmla_rot90_f16): New.
25897 (vcmlaq_laneq_f16): New.
25898 (vcmla_rot180_laneq_f16): New.
25899 (vcmla_rot180_lane_f16): New.
25900 (vcmlaq_rot180_f16): New.
25901 (vcmla_rot180_f16): New.
25902 (vcmlaq_rot90_laneq_f16): New.
25903 (vcmlaq_rot270_laneq_f16): New.
25904 (vcmlaq_rot270_lane_f16): New.
25905 (vcmla_rot270_laneq_f16): New.
25906 (vcmlaq_rot270_f16): New.
25907 (vcmla_rot270_f16): New.
25908 (vcmlaq_rot180_laneq_f16): New.
25909 (vcmlaq_rot180_lane_f16): New.
25910 (vcmla_rot270_lane_f16): New.
25911 (vcadd_rot90_f32): New.
25912 (vcaddq_rot90_f32): New.
25913 (vcaddq_rot90_f64): New.
25914 (vcadd_rot270_f32): New.
25915 (vcaddq_rot270_f32): New.
25916 (vcaddq_rot270_f64): New.
25917 (vcmla_f32): New.
25918 (vcmlaq_f32): New.
25919 (vcmlaq_f64): New.
25920 (vcmla_lane_f32): New.
25921 (vcmla_laneq_f32): New.
25922 (vcmlaq_lane_f32): New.
25923 (vcmlaq_laneq_f32): New.
25924 (vcmla_rot90_f32): New.
25925 (vcmlaq_rot90_f32): New.
25926 (vcmlaq_rot90_f64): New.
25927 (vcmla_rot90_lane_f32): New.
25928 (vcmla_rot90_laneq_f32): New.
25929 (vcmlaq_rot90_lane_f32): New.
25930 (vcmlaq_rot90_laneq_f32): New.
25931 (vcmla_rot180_f32): New.
25932 (vcmlaq_rot180_f32): New.
25933 (vcmlaq_rot180_f64): New.
25934 (vcmla_rot180_lane_f32): New.
25935 (vcmla_rot180_laneq_f32): New.
25936 (vcmlaq_rot180_lane_f32): New.
25937 (vcmlaq_rot180_laneq_f32): New.
25938 (vcmla_rot270_f32): New.
25939 (vcmlaq_rot270_f32): New.
25940 (vcmlaq_rot270_f64): New.
25941 (vcmla_rot270_lane_f32): New.
25942 (vcmla_rot270_laneq_f32): New.
25943 (vcmlaq_rot270_lane_f32): New.
25944 (vcmlaq_rot270_laneq_f32): New.
25945 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25946 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25947 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25948 (FCADD, FCMLA): New.
25949 (rot): New.
25950 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25951
25952 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25953
25954 PR other/16615
25955
25956 * config/pa/pa.c: Change "can not" to "cannot".
25957 * gimple-ssa-evrp-analyze.c: Likewise.
25958 * ipa-icf.c: Likewise.
25959 * ipa-polymorphic-call.c: Likewise.
25960 * ipa-pure-const.c: Likewise.
25961 * lra-constraints.c: Likewise.
25962 * lra-remat.c: Likewise.
25963 * reload1.c: Likewise.
25964 * reorg.c: Likewise.
25965 * tree-ssa-uninit.c: Likewise.
25966
25967 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25968
25969 PR other/16615
25970
25971 * Makefile.in: Mechanically replace "can not" with "cannot".
25972 * alias.c: Likewise.
25973 * builtins.c: Likewise.
25974 * calls.c: Likewise.
25975 * cgraph.c: Likewise.
25976 * cgraph.h: Likewise.
25977 * cgraphclones.c: Likewise.
25978 * cgraphunit.c: Likewise.
25979 * combine-stack-adj.c: Likewise.
25980 * combine.c: Likewise.
25981 * common/config/i386/i386-common.c: Likewise.
25982 * config/aarch64/aarch64.c: Likewise.
25983 * config/alpha/sync.md: Likewise.
25984 * config/arc/arc.c: Likewise.
25985 * config/arc/predicates.md: Likewise.
25986 * config/arm/arm-c.c: Likewise.
25987 * config/arm/arm.c: Likewise.
25988 * config/arm/arm.h: Likewise.
25989 * config/arm/arm.md: Likewise.
25990 * config/arm/cortex-r4f.md: Likewise.
25991 * config/csky/csky.c: Likewise.
25992 * config/csky/csky.h: Likewise.
25993 * config/darwin-f.c: Likewise.
25994 * config/epiphany/epiphany.md: Likewise.
25995 * config/i386/i386.c: Likewise.
25996 * config/i386/sol2.h: Likewise.
25997 * config/m68k/m68k.c: Likewise.
25998 * config/mcore/mcore.h: Likewise.
25999 * config/microblaze/microblaze.md: Likewise.
26000 * config/mips/20kc.md: Likewise.
26001 * config/mips/sb1.md: Likewise.
26002 * config/nds32/nds32.c: Likewise.
26003 * config/nds32/predicates.md: Likewise.
26004 * config/pa/pa.c: Likewise.
26005 * config/rs6000/e300c2c3.md: Likewise.
26006 * config/rs6000/rs6000.c: Likewise.
26007 * config/s390/s390.h: Likewise.
26008 * config/sh/sh.c: Likewise.
26009 * config/sh/sh.md: Likewise.
26010 * config/spu/vmx2spu.h: Likewise.
26011 * cprop.c: Likewise.
26012 * dbxout.c: Likewise.
26013 * df-scan.c: Likewise.
26014 * doc/cfg.texi: Likewise.
26015 * doc/extend.texi: Likewise.
26016 * doc/fragments.texi: Likewise.
26017 * doc/gty.texi: Likewise.
26018 * doc/invoke.texi: Likewise.
26019 * doc/lto.texi: Likewise.
26020 * doc/md.texi: Likewise.
26021 * doc/objc.texi: Likewise.
26022 * doc/rtl.texi: Likewise.
26023 * doc/tm.texi: Likewise.
26024 * dse.c: Likewise.
26025 * emit-rtl.c: Likewise.
26026 * emit-rtl.h: Likewise.
26027 * except.c: Likewise.
26028 * expmed.c: Likewise.
26029 * expr.c: Likewise.
26030 * fold-const.c: Likewise.
26031 * genautomata.c: Likewise.
26032 * gimple-fold.c: Likewise.
26033 * hard-reg-set.h: Likewise.
26034 * ifcvt.c: Likewise.
26035 * ipa-comdats.c: Likewise.
26036 * ipa-cp.c: Likewise.
26037 * ipa-devirt.c: Likewise.
26038 * ipa-fnsummary.c: Likewise.
26039 * ipa-icf.c: Likewise.
26040 * ipa-inline-transform.c: Likewise.
26041 * ipa-inline.c: Likewise.
26042 * ipa-polymorphic-call.c: Likewise.
26043 * ipa-profile.c: Likewise.
26044 * ipa-prop.c: Likewise.
26045 * ipa-pure-const.c: Likewise.
26046 * ipa-reference.c: Likewise.
26047 * ipa-split.c: Likewise.
26048 * ipa-visibility.c: Likewise.
26049 * ipa.c: Likewise.
26050 * ira-build.c: Likewise.
26051 * ira-color.c: Likewise.
26052 * ira-conflicts.c: Likewise.
26053 * ira-costs.c: Likewise.
26054 * ira-int.h: Likewise.
26055 * ira-lives.c: Likewise.
26056 * ira.c: Likewise.
26057 * ira.h: Likewise.
26058 * loop-invariant.c: Likewise.
26059 * loop-unroll.c: Likewise.
26060 * lower-subreg.c: Likewise.
26061 * lra-assigns.c: Likewise.
26062 * lra-constraints.c: Likewise.
26063 * lra-eliminations.c: Likewise.
26064 * lra-lives.c: Likewise.
26065 * lra-remat.c: Likewise.
26066 * lra-spills.c: Likewise.
26067 * lra.c: Likewise.
26068 * lto-cgraph.c: Likewise.
26069 * lto-streamer-out.c: Likewise.
26070 * postreload-gcse.c: Likewise.
26071 * predict.c: Likewise.
26072 * profile-count.h: Likewise.
26073 * profile.c: Likewise.
26074 * recog.c: Likewise.
26075 * ree.c: Likewise.
26076 * reload.c: Likewise.
26077 * reload1.c: Likewise.
26078 * reorg.c: Likewise.
26079 * resource.c: Likewise.
26080 * rtl.def: Likewise.
26081 * rtl.h: Likewise.
26082 * rtlanal.c: Likewise.
26083 * sched-deps.c: Likewise.
26084 * sched-ebb.c: Likewise.
26085 * sched-rgn.c: Likewise.
26086 * sel-sched-ir.c: Likewise.
26087 * sel-sched.c: Likewise.
26088 * shrink-wrap.c: Likewise.
26089 * simplify-rtx.c: Likewise.
26090 * symtab.c: Likewise.
26091 * target.def: Likewise.
26092 * toplev.c: Likewise.
26093 * tree-call-cdce.c: Likewise.
26094 * tree-cfg.c: Likewise.
26095 * tree-complex.c: Likewise.
26096 * tree-core.h: Likewise.
26097 * tree-eh.c: Likewise.
26098 * tree-inline.c: Likewise.
26099 * tree-loop-distribution.c: Likewise.
26100 * tree-nrv.c: Likewise.
26101 * tree-profile.c: Likewise.
26102 * tree-sra.c: Likewise.
26103 * tree-ssa-alias.c: Likewise.
26104 * tree-ssa-dce.c: Likewise.
26105 * tree-ssa-dom.c: Likewise.
26106 * tree-ssa-forwprop.c: Likewise.
26107 * tree-ssa-loop-im.c: Likewise.
26108 * tree-ssa-loop-ivcanon.c: Likewise.
26109 * tree-ssa-loop-ivopts.c: Likewise.
26110 * tree-ssa-loop-niter.c: Likewise.
26111 * tree-ssa-phionlycprop.c: Likewise.
26112 * tree-ssa-phiopt.c: Likewise.
26113 * tree-ssa-propagate.c: Likewise.
26114 * tree-ssa-threadedge.c: Likewise.
26115 * tree-ssa-threadupdate.c: Likewise.
26116 * tree-ssa-uninit.c: Likewise.
26117 * tree-ssanames.c: Likewise.
26118 * tree-streamer-out.c: Likewise.
26119 * tree.c: Likewise.
26120 * tree.h: Likewise.
26121 * vr-values.c: Likewise.
26122
26123 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26124
26125 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26126 (ix86_split_xorsign): Ditto.
26127 * config/i386/i386.c (ix86_expand_xorsign): New function.
26128 (ix86_split_xorsign): Ditto.
26129 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26130 (xorsign<mode>3): New expander.
26131 (xorsign<mode>3_1): New insn_and_split pattern.
26132 * config/i386/sse.md (xorsign<mode>3): New expander.
26133
26134 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26135
26136 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26137 (*tablejump_sp64): Likewise.
26138 (*tablejump<P:mode>): ...this.
26139 (*call_address_sp32): Merge into...
26140 (*call_address_sp64): Likewise.
26141 (*call_address<P:mode>): ...this.
26142 (*call_symbolic_sp32): Merge into...
26143 (*call_symbolic_sp64): Likewise.
26144 (*call_symbolic<P:mode>): ...this.
26145 (call_value): Remove constraint and add predicate.
26146 (*call_value_address_sp32): Merge into...
26147 (*call_value_address_sp64): Likewise.
26148 (*call_value_address<P:mode>): ...this.
26149 (*call_value_symbolic_sp32): Merge into...
26150 (*call_value_symbolic_sp64): Likewise.
26151 (*call_value_symbolic<P:mode>): ...this.
26152 (*sibcall_symbolic_sp32): Merge into...
26153 (*sibcall_symbolic_sp64): Likewise.
26154 (*sibcall_symbolic<P:mode>): ...this.
26155 (sibcall_value): Remove constraint and add predicate.
26156 (*sibcall_value_symbolic_sp32): Merge into...
26157 (*sibcall_value_symbolic_sp64): Likewise.
26158 (*sibcall_value_symbolic<P:mode>): ...this.
26159 (window_save): Minor tweak.
26160 (*branch_sp32): Merge into...
26161 (*branch_sp64): Likewise.
26162 (*branch<P:mode>): ...this.
26163
26164 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26165 James Clarke <jrtc27@jrtc27.com>
26166
26167 PR target/84010
26168 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26169 consistently in TLS address generation and adjust code to the renaming
26170 of patterns. Mark calls to __tls_get_addr as const.
26171 * config/sparc/sparc.md (tgd_hi22): Turn into...
26172 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26173 (tgd_lo10): Turn into...
26174 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26175 (tgd_add32): Merge into...
26176 (tgd_add64): Likewise.
26177 (tgd_add<P:mode>): ...this and use Pmode throughout.
26178 (tldm_hi22): Turn into...
26179 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26180 (tldm_lo10): Turn into...
26181 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26182 (tldm_add32): Merge into...
26183 (tldm_add64): Likewise.
26184 (tldm_add<P:mode>): ...this and use Pmode throughout.
26185 (tldm_call32): Merge into...
26186 (tldm_call64): Likewise.
26187 (tldm_call<P:mode>): ...this and use Pmode throughout.
26188 (tldo_hix22): Turn into...
26189 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26190 (tldo_lox10): Turn into...
26191 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26192 (tldo_add32): Merge into...
26193 (tldo_add64): Likewise.
26194 (tldo_add<P:mode>): ...this and use Pmode throughout.
26195 (tie_hi22): Turn into...
26196 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26197 (tie_lo10): Turn into...
26198 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26199 (tie_ld64): Use DImode throughout.
26200 (tie_add32): Merge into...
26201 (tie_add64): Likewise.
26202 (tie_add<P:mode>): ...this and use Pmode throughout.
26203 (tle_hix22_sp32): Merge into...
26204 (tle_hix22_sp64): Likewise.
26205 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26206 (tle_lox22_sp32): Merge into...
26207 (tle_lox22_sp64): Likewise.
26208 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26209 (*tldo_ldub_sp32): Merge into...
26210 (*tldo_ldub_sp64): Likewise.
26211 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26212 (*tldo_ldub1_sp32): Merge into...
26213 (*tldo_ldub1_sp64): Likewise.
26214 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26215 (*tldo_ldub2_sp32): Merge into...
26216 (*tldo_ldub2_sp64): Likewise.
26217 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26218 (*tldo_ldsb1_sp32): Merge into...
26219 (*tldo_ldsb1_sp64): Likewise.
26220 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26221 (*tldo_ldsb2_sp32): Merge into...
26222 (*tldo_ldsb2_sp64): Likewise.
26223 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26224 (*tldo_ldub3_sp64): Use DImode throughout.
26225 (*tldo_ldsb3_sp64): Likewise.
26226 (*tldo_lduh_sp32): Merge into...
26227 (*tldo_lduh_sp64): Likewise.
26228 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26229 (*tldo_lduh1_sp32): Merge into...
26230 (*tldo_lduh1_sp64): Likewise.
26231 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26232 (*tldo_ldsh1_sp32): Merge into...
26233 (*tldo_ldsh1_sp64): Likewise.
26234 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26235 (*tldo_lduh2_sp64): Use DImode throughout.
26236 (*tldo_ldsh2_sp64): Likewise.
26237 (*tldo_lduw_sp32): Merge into...
26238 (*tldo_lduw_sp64): Likewise.
26239 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26240 (*tldo_lduw1_sp64): Use DImode throughout.
26241 (*tldo_ldsw1_sp64): Likewise.
26242 (*tldo_ldx_sp64): Likewise.
26243 (*tldo_stb_sp32): Merge into...
26244 (*tldo_stb_sp64): Likewise.
26245 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26246 (*tldo_sth_sp32): Merge into...
26247 (*tldo_sth_sp64): Likewise.
26248 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26249 (*tldo_stw_sp32): Merge into...
26250 (*tldo_stw_sp64): Likewise.
26251 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26252 (*tldo_stx_sp64): Use DImode throughout.
26253
26254 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26255
26256 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26257 check configure option to set BTI and Return Address Signing.
26258 * configure.ac: Add --enable-standard-branch-protection and
26259 --disable-standard-branch-protection.
26260 * configure: Regenerated.
26261 * doc/install.texi: Document the same.
26262
26263 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26264 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26265
26266 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26267 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26268 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26269 if bti is enabled.
26270 * config/aarch64/aarch64-bti-insert.c: New file.
26271 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26272 pass.
26273 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26274 new bti pass.
26275 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26276 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26277 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26278 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26279
26280 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26281
26282 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26283 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26284 Disable bti for -mbranch-protection=none.
26285 (aarch64_handle_standard_branch_protection): Enable bti for
26286 -mbranch-protection=standard.
26287 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26288 -mbranch-protection.
26289 (aarch64_bti_enabled): Check if bti is enabled.
26290 * config/aarch64/aarch64.opt: Declare target variable.
26291 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26292
26293 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26294
26295 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26296 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26297 (aarch64_expand_epilogue): Likewise.
26298 (aarch64_output_mi_thunk): Likewise.
26299 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26300 TAILCALL_ADDR_REGS to x16 and x17.
26301 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26302
26303 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26304
26305 * config/aarch64/aarch64-option-extensions.def: Define
26306 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26307 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26308 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26309 (AARCH64_FL_PREDRES): New.
26310 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26311 AARCH64_FL_PREDRES by default.
26312 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26313
26314 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26315
26316 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26317 ARMv8.5-A.
26318 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26319 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26320 * doc/invoke.texi: Document ARMv8.5-A.
26321
26322 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26323
26324 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26325 (xorsign<mode>3): Likewise.
26326
26327 2019-01-09 Jelinek <jakub@redhat.com>
26328
26329 PR middle-end/88758
26330 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26331 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26332
26333 PR rtl-optimization/88331
26334 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26335 not currently_expanding_to_rtl.
26336
26337 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26338
26339 * doc/invoke.texi (-Os): Remove trailing spaces.
26340 (-finline-functions): Remove reference to -O2.
26341
26342 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26343
26344 PR rtl-optimization/79593
26345 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26346
26347 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26348 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26349
26350 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26351
26352 PR bootstrap/88721
26353 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26354 to -1 on entry.
26355
26356 PR debug/88723
26357 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26358 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26359
26360 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26361
26362 PR target/88717
26363 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26364 ix86_avx_u128_mode_entry.
26365
26366 2019-01-08 Martin Liska <mliska@suse.cz>
26367
26368 PR tree-optimization/88753
26369 * tree-switch-conversion.c (switch_conversion::build_one_array):
26370 Come up with local variable constructor. Convert first to
26371 type of constructor values.
26372
26373 2019-01-08 Richard Biener <rguenther@suse.de>
26374
26375 PR tree-optimization/86554
26376 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26377 rpo_avail): Move earlier.
26378 (visit_nary_op): When value-numbering to expressions
26379 with different overflow behavior make sure there's an
26380 available expression on the path.
26381
26382 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26383
26384 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26385 aarch64_parse_branch_protection,
26386 struct aarch64_branch_protect_type,
26387 aarch64_handle_no_branch_protection,
26388 aarch64_handle_standard_branch_protection,
26389 aarch64_validate_mbranch_protection,
26390 aarch64_handle_pac_ret_protection,
26391 aarch64_handle_attr_branch_protection,
26392 accepted_branch_protection_string,
26393 aarch64_pac_ret_subtypes,
26394 aarch64_branch_protect_types,
26395 aarch64_handle_pac_ret_leaf): Define.
26396 (aarch64_override_options_after_change_1, aarch64_override_options):
26397 Add check for accepted_branch_protection_string.
26398 (aarch64_option_save): Save accepted_branch_protection_string.
26399 (aarch64_option_restore): Save accepted_branch_protection_string.
26400 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26401 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26402 msign-return-address.
26403 * doc/invoke.texi: Add mbranch-protection.
26404
26405 2019-01-08 Alan Modra <amodra@gmail.com>
26406
26407 PR target/88614
26408 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26409 Delete "unknownp" parameter. Adjust callers. Handle
26410 CONST_INT, PLUS, MINUS, and MULT.
26411 (attr_value_aligned): Renamed from or_attr_value.
26412 (min_attr_value): Return INT_MIN for unhandled rtl case..
26413 (min_fn): ..and translate to INT_MAX here.
26414 (write_length_unit_log): Modify to cope without "unknown".
26415 (write_attr_value): Handle IF_THEN_ELSE.
26416
26417 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26418
26419 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26420 optimization for masked stores.
26421
26422 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26423
26424 PR middle-end/88567
26425 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26426 output vector directly to duplicate_and_interleave instead of
26427 going through a temporary. Postpone insertion of ctor_seq to
26428 the end of the loop.
26429
26430 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26431
26432 PR target/86891
26433 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26434 unsigned_p. Handle signed and unsigned overflow correction as
26435 required.
26436 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26437 prototype.
26438 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26439 for operand 2.
26440 (add<mode>3_compareV_imm): Make this callable for expanding.
26441 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26442 aarch64_plus_operand for operand 2.
26443 (subv<GPI:mode>_insn): New insn pattern.
26444 (subv<GPI:mode>_imm): Likewise.
26445 (negv<GPI:mode>3): New expand pattern.
26446 (negv<GPI:mode>_insn): New insn pattern.
26447 (negv<GPI:mode>_cmp_only): Likewise.
26448 (cmpv<GPI:mode>_insn): Likewise.
26449 (subvti4): Use register_operand for operand 1. Update call to
26450 aarch64_expand_subvti.
26451 (usubvti4): Likewise.
26452 (negvti3): New expand pattern.
26453 (negdi_carryout): New insn pattern.
26454 (negvdi_carryinV): New insn pattern.
26455 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26456 version the named version.
26457 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26458 operands.
26459 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26460 patterns.
26461 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26462 patterns.
26463 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26464 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26465 (sub<mode>3_carryinCV): Delete.
26466 (sub<GPI:mode>3_carryinV): New expand pattern.
26467 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26468
26469 2019-01-07 Richard Biener <rguenther@suse.de>
26470
26471 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26472 of tree_operand_hash.
26473
26474 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26475
26476 PR tree-optimization/88598
26477 * tree.h (single_nonzero_element): Declare.
26478 * tree.c (single_nonzero_element): New function.
26479 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26480 if I is the only nonzero element of CST.
26481
26482 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26483
26484 PR tree-optimization/88598
26485 * tree.h (initializer_each_zero_or_onep): Declare.
26486 * tree.c (initializer_each_zero_or_onep): New function.
26487 (signed_or_unsigned_type_for): Handle float types too.
26488 (unsigned_type_for, signed_type_for): Update comments accordingly.
26489 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26490 x & { 0 or -1, 0 or -1, ... }.
26491
26492 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26493
26494 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26495 with x86_64-pc-linux-gnu.
26496
26497 2019-01-07 Tom de Vries <tdevries@suse.de>
26498
26499 PR target/85486
26500 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26501 function.
26502 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26503 routines.
26504
26505 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26506
26507 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26508 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26509 TARGET_AVX512F as condition.
26510
26511 PR debug/88723
26512 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26513 const_not_ok_for_debug_p target hook.
26514 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26515 on UNSPEC and subexpressions thereof if all subexpressions of the
26516 UNSPEC are CONSTANT_P.
26517
26518 PR tree-optimization/88676
26519 * tree-ssa-phiopt.c (two_value_replacement): New function.
26520 (tree_ssa_phiopt_worker): Call it.
26521
26522 PR sanitizer/88619
26523 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26524 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26525
26526 PR c++/85052
26527 * tree-vect-generic.c: Include insn-config.h and recog.h.
26528 (expand_vector_piecewise): Add defaulted ret_type argument,
26529 if non-NULL, use that in preference to type for the result type.
26530 (expand_vector_parallel): Formatting fix.
26531 (do_vec_conversion, do_vec_narrowing_conversion,
26532 expand_vector_conversion): New functions.
26533 (expand_vector_operations_1): Call expand_vector_conversion
26534 for VEC_CONVERT ifn calls.
26535 * internal-fn.def (VEC_CONVERT): New internal function.
26536 * internal-fn.c (expand_VEC_CONVERT): New function.
26537 * fold-const-call.c (fold_const_vec_convert): New function.
26538 (fold_const_call): Use it for CFN_VEC_CONVERT.
26539 * doc/extend.texi (__builtin_convertvector): Document.
26540
26541 2019-01-07 Tom de Vries <tdevries@suse.de>
26542
26543 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26544 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26545 vector_red_partition, vector_red_sym): New global variables.
26546 (nvptx_option_override): Initialize vector_red_sym.
26547 (nvptx_declare_function_name): Restore red_partition register.
26548 (nvptx_file_end): Emit code to declare the vector reduction variables.
26549 (nvptx_output_red_partition): New function.
26550 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26551 large vector reductions.
26552 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26553 (nvptx_init_builtins): Add VECTOR_ADDR.
26554 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26555 Handle nvptx_expand_shared_addr.
26556 (nvptx_get_shared_red_addr): Add vector argument and handle large
26557 vectors.
26558 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26559 large vectors.
26560 (nvptx_goacc_reduction_init): Likewise.
26561 (nvptx_goacc_reduction_fini): Likewise.
26562 (nvptx_goacc_reduction_teardown): Likewise.
26563 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26564 init,fini,teardown}.
26565 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26566 (nvptx_set_current_function): Init vector_red_partition.
26567 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26568 (nvptx_red_partition): New insn.
26569 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26570
26571 2019-01-07 Tom de Vries <tdevries@suse.de>
26572
26573 PR target/85381
26574 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26575 empty loops.
26576
26577 2019-01-07 Tom de Vries <tdevries@suse.de>
26578
26579 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26580 (nvptx_option_override): Init oacc_bcast_partition.
26581 (nvptx_init_oacc_workers): New function.
26582 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26583 (nvptx_needs_shared_bcast): New function.
26584 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26585 to propagate state.
26586 (nvptx_shared_propagate): Initialize vector bcast partition and
26587 synchronization state.
26588 (nvptx_single): Generalize to enable vectors to use shared-memory
26589 to propagate state.
26590 (nvptx_process_pars): Likewise.
26591 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26592 * config/nvptx/nvptx.h (struct machine_function): Add
26593 bcast_partition and sync_bar members.
26594
26595 2019-01-07 Tom de Vries <tdevries@suse.de>
26596
26597 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26598 (nvptx_apply_dim_limits): New function.
26599 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26600 PTX_WARP_SIZE.
26601
26602 2019-01-07 Tom de Vries <tdevries@suse.de>
26603
26604 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26605 as late as possible.
26606
26607 2019-01-07 Tom de Vries <tdevries@suse.de>
26608
26609 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26610 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26611 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26612 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26613 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26614
26615 2019-01-07 Tom de Vries <tdevries@suse.de>
26616
26617 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26618
26619 2019-01-07 Tom de Vries <tdevries@suse.de>
26620
26621 * omp-offload.c (oacc_get_min_dim): New function.
26622 * omp-offload.h (oacc_get_min_dim): Declare.
26623
26624 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26625
26626 PR target/88521
26627 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26628 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26629
26630 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26631
26632 PR tree-opt/86020
26633 Revert:
26634 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26635
26636 * ipa-inline.c (edge_badness): Use inlined_time instead of
26637 inline_summaries->get.
26638
26639 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26640
26641 * opts.c (enable_fdo_optimizations): Enable
26642 version-loops-for-strides, loop-interchange, unrol-and-jam
26643 and tree-loop-distribution.
26644 * invoke.texi: Document newly enabled options.
26645
26646 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26647
26648 * doc/invoke.texi (max-inline-insns-small): New parameters.
26649 * ipa-inline.c (want_early_inline_function_p): simplify.
26650 (want_inline_small_function_p): Fix pasto from previous patch;
26651 use max-inline-insns-small bound.
26652 * params.def (max-inline-insns-small): New param.
26653 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26654 variables correctly.
26655
26656 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26657
26658 * doc/invoke.texi: Document max-inline-insns-size,
26659 uninlined-function-insns, uninlined-function-time,
26660 uninlined-thunk-insns and uninlined-thunk-time.
26661 * params.def: Add max-inline-insns-size,
26662 uninlined-function-insns, uninlined-function-time,
26663 uninlined-thunk-insns and uninlined-thunk-time.
26664 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26665 new parameters.
26666 * ipa-inline.c (can_inline_edge_by_limits_p,
26667 want_inline_small_function_p): Use new parameters.
26668
26669 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26670
26671 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26672
26673 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26674
26675 PR middle-end/82564
26676 PR target/88620
26677 * expr.c (expand_assignment): For calls returning VLA structures
26678 if to_rtx is not a MEM, force it into a stack temporary.
26679
26680 PR debug/88635
26681 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26682 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26683 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26684 subexpressions of both operands.
26685 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26686 subrtxes are CONSTANT_P.
26687 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26688 2018-11-09 changes.
26689
26690 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26691
26692 * params.def (hot-bb-count-ws-permille): Set to 990.
26693
26694 2019-01-04 Martin Sebor <msebor@redhat.com>
26695
26696 PR c/88546
26697 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26698 leaf.
26699
26700 2019-01-04 Martin Sebor <msebor@redhat.com>
26701
26702 PR c/88363
26703 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26704
26705 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26706
26707 * gdbinit.in: Turn off pagination for the skip commands, restore
26708 it to previous state afterwards.
26709
26710 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26711
26712 PR target/88594
26713 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26714 of GET_MODE (opN) as modes of the libcall arguments.
26715
26716 2019-01-04 Jan Beulich <jbeulich@suse.com>
26717
26718 * config/i386/sse.md
26719 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26720 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26721 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26722 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26723 avx512f_vmcmp<mode>3<round_saeonly_name>,
26724 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26725 avx512f_maskcmp<mode>3,
26726 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26727 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26728 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26729 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26730 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26731 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26732 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26733 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26734 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26735 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26736 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26737 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26738 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26739 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26740 avx512cd_maskb_vec_dup<mode>,
26741 avx512cd_maskw_vec_dup<mode>,
26742 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26743 avx512dq_vmfpclass<mode>,
26744 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26745 instead of =Yk.
26746
26747 2019-01-03 Martin Sebor <msebor@redhat.com>
26748
26749 PR tree-optimization/88659
26750 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26751
26752 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26753
26754 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26755 unaligned vsx and avoid lxvd2x/stxvd2x.
26756 (gen_lvx_v4si_move): New function.
26757
26758 2019-01-03 Tom de Vries <tdevries@suse.de>
26759
26760 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26761 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26762 function.
26763 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26764
26765 2019-01-03 Tom de Vries <tdevries@suse.de>
26766
26767 * config/nvptx/nvptx.c (struct offload_attrs): New.
26768 (populate_offload_attrs): New function. Factor mask extraction out of
26769 nvptx_reorg. Add extraction of dimensions.
26770 (nvptx_reorg): Use populate_offload_attrs.
26771
26772 2019-01-03 Tom de Vries <tdevries@suse.de>
26773
26774 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26775 cases for oacc_min_dims_p and routine_p. Add asserts for
26776 oacc_default_dims_p and offload_region_p.
26777
26778 2019-01-03 Tom de Vries <tdevries@suse.de>
26779
26780 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26781 factored out of ...
26782 (nvptx_goacc_validate_dims): ... here.
26783
26784 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26785
26786 PR tree-optimization/85574
26787 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26788 structure.
26789 (struct ssa_equip_hash_traits): Declare.
26790 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26791
26792 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26793
26794 PR debug/88644
26795 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26796 change it to qualified_type.
26797
26798 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26799
26800 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26801 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26802
26803 2019-01-02 Martin Sebor <msebor@redhat.com>
26804 Jeff Law <law@redhat.com>
26805
26806 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26807 (get_range_strlen_tree): Update appropriately.
26808 (get_range_strlen)
26809 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26810
26811 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26812 rather than set_range_info.
26813 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26814 maybe_set_strlen_range. Handle potentially boundary crossing
26815 cases more conservatively.
26816 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26817 Call set_strlen_range.
26818 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26819
26820 PR middle-end/88663
26821 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26822 need the flexp argument.
26823 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26824 from calls to get_range_strlen. Update comments. Just update
26825 VAL for an unterminated const char array and let the reset of the
26826 code handle it normally. No longer try to set *flexp. Adjust
26827 return value.
26828 (get_range_strlen): Update for the new get_range_strlen API.
26829 (get_maxval_strlen): Similarly.
26830 (gimple_fold_builtin_strlen): Handle update meaning of return value
26831 from get_range_strlen.
26832 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26833 get_range_strlen API.
26834
26835 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26836
26837 PR lto/88130
26838 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26839 false at WPA time when body was removed.
26840
26841 2019-01-02 Martin Liska <mliska@suse.cz>
26842
26843 PR tree-optimization/88650
26844 * predict.c (set_even_probabilities): Calculate probability
26845 remainer only when really used.
26846
26847 2019-01-02 Richard Biener <rguenther@suse.de>
26848
26849 PR middle-end/88651
26850 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26851 widest_ints when mangling max_stmt_execution results.
26852
26853 2019-01-02 Richard Biener <rguenther@suse.de>
26854
26855 PR tree-optimization/88621
26856 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26857 bitfields when canoncalizing.
26858
26859 2019-01-02 Richard Biener <rguenther@suse.de>
26860
26861 PR target/87545
26862 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26863 cost of cheap SSE instruction.
26864
26865 2019-01-02 Richard Biener <rguenther@suse.de>
26866
26867 PR ipa/85574
26868 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26869 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26870 function.
26871 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26872 set after UIDs before splitting them.
26873
26874 2019-01-01 Martin Sebor <msebor@redhat.com>
26875 Jeff Law <law@redhat.com>
26876
26877 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26878 length is optimistic. If it is, then arrange to compute the
26879 conservative length as well.
26880
26881 * gimple-fold.h (get_range_strlen): Update prototype.
26882 * builtins.c (check_access): Update call to get_range_strlen to use
26883 c_strlen_data pointer. Change various variable accesses to instead
26884 pull data from the c_strlen_data structure.
26885 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26886 * calls.c (maybe_warn_nonstring_arg): Likewise.
26887 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26888 minimum length if maximum lengh is unknown.
26889 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26890 that used c_strlen, it's no longer needed. Restructure slightly.
26891 (format_string): Set unlikely range appropriately.
26892 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26893 formatting issues.
26894 (get_range_strlen): Accept c_strlen_data pointer for external
26895 call sites as well. Pass through to call to internal get_range_strlen.
26896 Adjust minlen, maxlen and maxbound as needed.
26897 (get_maxval_strlen): Update comments.
26898 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26899 to use c_strlen_data pointer. Change variable accesses to instead
26900 use c_strlen_data data members.
26901
26902 * gimple-fold.c (get_range_strlen): Update prototype.
26903 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26904 local variables. Use pdata to return information to caller.
26905 Update calls to get_range_strlen. Update pdata->maxbound.
26906 (get_range_strlen -- static version): Similarly.
26907 (get_range_strlen -- extern version): Update for internal
26908 get_range_strlen API change. Convert to external data format.
26909 (get_maxval_strlen): Similarly.
26910
26911 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26912
26913 * coverage.c (get_coverage_counts): Use current_function_decl.
26914 * profile.c (read_thunk_profile): New function.
26915 (branch_prob): Add THUNK parameter.
26916 * tree-profile.c (tree_profiling): Handle thunks.
26917 * value-prof.c (init_node_map): Handle thunks.
26918 * value-prof.h (branch_prob): Upate prototype.
26919 (read_thunk_profile): Declare.
26920
26921 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26922
26923 Update copyright years.
26924
26925 * gcc.c (process_command): Update copyright notice dates.
26926 * gcov-dump.c (print_version): Ditto.
26927 * gcov.c (print_version): Ditto.
26928 * gcov-tool.c (print_version): Ditto.
26929 * gengtype.c (create_file): Ditto.
26930 * doc/cpp.texi: Bump @copying's copyright year.
26931 * doc/cppinternals.texi: Ditto.
26932 * doc/gcc.texi: Ditto.
26933 * doc/gccint.texi: Ditto.
26934 * doc/gcov.texi: Ditto.
26935 * doc/install.texi: Ditto.
26936 * doc/invoke.texi: Ditto.
26937 \f
26938 Copyright (C) 2019 Free Software Foundation, Inc.
26939
26940 Copying and distribution of this file, with or without modification,
26941 are permitted in any medium without royalty provided the copyright
26942 notice and this notice are preserved.